@charset "UTF-8";

/* -----------------------------------
   全体設定
----------------------------------- */
html, body {
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: "M PLUS Rounded 1c", sans-serif;
  color: #333;
  line-height: 1.8;
  background-color: #fff;
  margin: 0;
  padding: 0;
}

/* -----------------------------------
   PC表示：左固定ヘッダーエリア
----------------------------------- */
.header {
  position: fixed;
  top: 60px;
  left: 60px;
  width: 180px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.site-title-group {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.site-title {
  margin: 0;
  text-align: center;
}

.site-title a {
  font-family: "Nothing You Could Do", cursive;
  font-size: 32px;
  font-weight: bold;
  text-decoration: none;
  color: #333;
  display: block;
  line-height: 1.1;
}

.site-subtitle {
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: #333;
  margin: 6px 0 0 0;
  letter-spacing: 0.08em;
  text-align: center;
}

.nav {
  margin-top: 85px;
}

.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.nav-list a {
  font-family: "Nothing You Could Do", cursive;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  color: #333;
  letter-spacing: 0.05em;
  transition: opacity 0.3s;
}

.nav-list a:hover {
  opacity: 0.6;
}

/* -----------------------------------
   PC表示：右側メインコンテンツ
----------------------------------- */
main {
  margin-left: 300px;
  max-width: 1100px;
  padding: 60px 40px 60px 0;
}

h2,
.section-title {
  font-family: "Nothing You Could Do", cursive;
  font-size: 16px;
  font-weight: bold;
  text-align: left;
  margin-bottom: 40px;
  letter-spacing: 0.05em;
}

/* -----------------------------------
   WORKS セクション
----------------------------------- */
.works-list {
  display: flex;
  flex-direction: column;
  gap: 120px;
  width: 100%;
}

.work-card {
  display: flex;
  align-items: flex-start;
  gap: 100px;
  width: 100%;
}

.work-info {
  width: 245px;
  flex-shrink: 0;
}

/* WAScafe 1 などのロゴ画像エリア */
.work-logo {
  margin-bottom: 16px;
  width: 100%;         /* 親要素に対してフレキシブルに */
  max-width: 160px;    /* ← ロゴの最大幅（140px〜180pxあたりでお好み調整） */
}

.work-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.work-label {
  display: inline-block;
  background: #f0f0f0;
  font-size: 0.8rem;
  padding: 2px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
  font-weight: bold;
}

.work-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 24px;
  line-height: 1.4;
}

.work-block {
  margin-bottom: 20px;
}

.work-block h4 {
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: #333;
  margin: 0 0 4px 0;
}

.work-block p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #333;
  margin: 0;
}

.work-link {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 24px;
  background: #333;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.85rem;
}

.work-gallery {
  flex-grow: 1;
}

.work-gallery img {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 8px;
  display: block;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* -----------------------------------
   VALUES セクション
----------------------------------- */
.values {
  margin-top: 140px;
}

.values-list {
  display: flex;
  flex-direction: column;
  gap: 80px;
  width: 100%;
}

.value-card {
  display: flex;
  align-items: flex-start;
  gap: 100px;
  width: 100%;
}

.value-info {
  width: 245px;
  flex-shrink: 0;
}

.value-title {
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.5;
  color: #333;
  margin: 0;
}

/* 右側：詳細テキストエリア */
.value-detail {
  flex-shrink: 1;   /* 0 から 1 に変更（画面に合わせて縮むようにする） */
  width: 100%;
  max-width: 550px;
}

.value-detail p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #333;
  margin: 0;
}

/* -----------------------------------
   ABOUT セクション
----------------------------------- */
.about {
  margin-top: 140px;
}

.about-card {
  display: flex;
  align-items: flex-start;
  gap: 100px;
  width: 100%;
}

.about-info {
  width: 245px;
  flex-shrink: 0;
}

.about-img-frame {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid #dcd1c4;
  padding: 12px;
  box-sizing: border-box;
  background: #fff;
}

.about-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 右側：プロフィールテキスト */
.about-detail {
  flex-shrink: 1;   /* 0 から 1 に変更（画面に合わせて縮むようにする） */
  width: 100%;
  max-width: 550px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-item h4 {
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: #333;
  margin: 0 0 6px 0;
}

.about-item p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #333;
  margin: 0;
}
footer {
  text-align: center;
  padding: 20px 0;
  font-size: 14px;
  color: #666;
}

/* ===================================
   スマホ表示（VALUES・ABOUTの崩れ完全防止）
=================================== */
@media (max-width: 800px) {
  /* 1. 左固定ヘッダーを解除して上部に配置 */
  .header {
    position: static !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    margin-bottom: 40px !important;
    padding: 20px 20px 0 20px !important;
    box-sizing: border-box !important;
  }

  /* 2. メインコンテンツの左余白（300px）を解除 */
  main {
    margin-left: 0 !important;
    padding: 20px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 3. すべてのカード（WORKS, VALUES, ABOUT）を縦並びに強制変更 */
  .work-card,
  .value-card,
  .about-card {
    display: flex !important;
    flex-direction: column !important;
    gap: 30px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 4. 左側の幅固定（245px）および右側の固定幅（550px）を解除して100%に広げる */
  .work-info,
  .value-info,
  .about-info,
  .work-gallery,
  .value-detail,
  .about-detail {
    width: 100% !important;
    max-width: 100% !important;
    flex-shrink: 1 !important;
    box-sizing: border-box !important;
  }

  /* 5. 画像サイズをスマホ幅にフィットさせる */
  .work-gallery img,
  .about-img-frame,
  .about-img-frame img,
  .work-logo,
  .work-logo img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }
}