/* ============================================================
   about.css — ABOUT page scoped styles
   about.html 専用。style.css の共通パーツに依存。

   フォント分類：
   1. Page Title   : clamp(1.8rem,4vw,2.8rem) / 500 / 1.3  / navy
   2. Section Label: 0.69rem / 500 / 1.2   / blue  / uppercase
   3. Section Title: clamp(1.5rem,3.5vw,2.2rem) / 500 / 1.4 / navy
   4. Lead Text    : 0.97rem / 500 / 1.82  / text-mid
   5. Body Text    : 0.86rem / 500 / 1.7   / text-mid
   6. Card Title   : 0.9rem  / 500 / 1.45  / navy
   7. Small/Note   : 0.78〜0.84rem / 500 / 1.6 / text-light or text-mid

   font-weight 例外ルール：
   - 300 : .about-system-step のみ（装飾的大数字を細く見せるデザイン上の例外）
   - 700 : .about-trouble-list li::before（✓記号）
           .about-compare-label（uppercase＋letter-spacing ラベルの視認性確保）
   - 通常 UI テキストはすべて 500 で統一
   ============================================================ */

/* ABOUTページカラー定義 */
.subpage-hero.about-hero,
body.page-about {
  --page-main: #0078d4;
  --page-main-pale: #dbeafe;
  --page-dot-color: rgba(3,186,252,0.08);
}

/* ABOUTページは --blue を濃い青に上書き */
.about-trouble-section,
.about-why,
.about-system,
.about-compare,
.about-company,
.cta-section,
body.page-about {
  --blue: #0078d4;
  --blue-pale: #dbeafe;
}

/* ── ② よくある課題 ── */
.about-trouble-section {
  background: var(--off-white);
  overflow: visible;
  position: relative;
  z-index: 1;
}
.about-trouble-3col {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.atc-img-left {
  margin-top: -88px;
  overflow: hidden;
  border-radius: 0 0 30px 0;
  background: var(--gray-100);
  width: 66.7%;
  aspect-ratio: 2 / 3;
}
.atc-img-left img { width: 100%; height: 100%; object-fit: cover; display: block; }

.atc-center {
  padding-top: 48px;
  text-align: center;
}
.atc-center .section-label { display: block; }
.atc-center .section-title { margin-left: auto; margin-right: auto; }

/* [6] Card Title として list item */
.about-trouble-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.about-trouble-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--navy);
  list-style: none;
  text-align: left;
}
.about-trouble-list li::before {
  content: '✓';
  color: var(--blue);
  font-weight: 700; /* 擬似要素のチェックマーク記号を太く見せるための例外 */
  font-size: 0.86rem;
  flex-shrink: 0;
}

/* [7] Small/Note */
.about-trouble-note {
  display: block;
  margin-top: 14px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-mid);
  line-height: 1.6;
  text-align: center;
  padding: 10px 0;
  border-top: 0.5px solid var(--gray-100);
  letter-spacing: 0;
}
.about-trouble-note .en {
  color: var(--blue);
  font-weight: 500; /* 同一ウェイトで統一（強調は色で表現） */
}

.atc-img-right {
  overflow: hidden;
  border-radius: 30px 0 0 0;
  background: var(--gray-100);
  width: 66.7%;
  margin-left: auto;
  align-self: end;
  position: relative;
  z-index: 2;
  aspect-ratio: 2 / 3.8;
  margin-bottom: -160px;
}
.atc-img-right img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 768px) {
  /* セクション全体のoverflow制御 */
  .about-trouble-section {
    overflow: hidden;
  }

  /* containerのpadding調整 */
  .about-trouble-section .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* 3col → 縦積みレイアウトに切り替え */
  .about-trouble-3col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0;
    min-height: unset;
  }

  /* 画像2枚を横並びで上部に配置 */
  .atc-img-left,
  .atc-img-right {
    position: static;
    width: calc(50% - 4px);
    aspect-ratio: 3 / 5;
    margin: 0;
    border-radius: 10px;
    align-self: auto;
    z-index: 0;
    margin-bottom: 0;
  }

  /* 画像2枚を横並びラッパーで包む */
  .about-trouble-3col::before {
    content: '';
    display: none;
  }

  /* 画像2枚を横並びにするためのwrapper的対応 */
  .atc-img-left {
    border-radius: 10px;
    order: 1;
    flex: 0 0 calc(50% - 6px);
  }
  .atc-img-right {
    border-radius: 10px;
    order: 2;
    flex: 0 0 calc(50% - 6px);
  }

  /* 画像行のためにflexを横並びに + テキストを後に */
  .about-trouble-3col {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  /* テキストブロック: 全幅で画像の下に */
  .atc-center {
    order: 3;
    width: 100%;
    flex: 0 0 100%;
    position: static;
    background: none;
    border-radius: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 24px 0 8px;
    text-align: left;
  }
  .atc-center .section-label,
  .atc-center .section-title {
    text-align: left;
  }
}

/* ── ③ Why HALUHANA ── */
.about-why { background: var(--white); padding-top: 200px; }
.about-why > .container > .section-label,
.about-why > .container > .section-title {
  text-align: center;
  display: block;
}
.about-why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.about-why-card {
  background: var(--white);
  padding: 24px 20px;
  border-radius: var(--radius-md);
  text-align: left;
}
.about-why-card:nth-child(1),
.about-why-card:nth-child(3) { margin-top: 20px; margin-bottom: -20px; }

/* [6] Card Title */
.about-why-card h3 {
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

/* [5] Body Text */
.about-why-card p {
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.7;
  color: var(--text-mid);
  letter-spacing: 0;
}

@media (max-width: 768px) {
  .about-why { padding-top: 64px; }
  .about-why-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) { .about-why-grid { grid-template-columns: 1fr; } }

/* ── ④ 学習システム ── */
.about-system { background: var(--off-white); overflow: hidden; }
.about-system-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-system-right {
  display: flex;
  align-items: stretch;
}
.about-system-imgs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
}
.about-system-imgs img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-md);
}
.about-system-imgs img:first-child {
  border-radius: var(--radius-md);
  margin-top: 24px;
}
.about-system-left { position: relative; z-index: 1; }

.about-system-grid {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--gray-100);
  margin-top: 40px;
}
.about-system-card {
  background: var(--white);
  padding: 20px 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

/* [7] Small/Note（薄い大数字） */
.about-system-step {
  font-size: 2.5rem;
  font-weight: 300; /* 装飾的な大数字。意図的に細くしているデザイン上の例外 */
  letter-spacing: -0.02em;
  color: #e8eaed;
  line-height: 1;
  font-family: var(--font);
  flex-shrink: 0;
  min-width: 48px;
}

/* [6] Card Title */
.about-system-body h3 {
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--navy);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

/* [5] Body Text */
.about-system-body p {
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.7;
  color: var(--text-mid);
  letter-spacing: 0;
}

/* [7] Small/Note */
.about-system-note {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-mid);
  line-height: 1.6;
  margin-top: 24px;
  letter-spacing: 0;
}

/* ── ⑤ 比較 ── */
.about-compare { background: var(--white); }
.about-compare > .container > .section-label,
.about-compare > .container > .section-title {
  text-align: center;
  display: block;
}
.about-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 40px;
}
.about-compare-card { padding: 28px 24px; border-radius: var(--radius-md); }
.about-compare-other { background: var(--off-white); }
.about-compare-haluhana { background: var(--white); border: 1.5px solid var(--blue); }

/* [7] Small/Note */
.about-compare-label {
  font-size: 0.78rem;
  font-weight: 700; /* uppercase + letter-spacing のラベルに視認性を確保するための例外 */
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.6;
}
.about-compare-haluhana .about-compare-label { color: var(--blue); }

.about-compare-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* [5] Body Text */
.about-compare-list li {
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.7;
  padding-left: 14px;
  position: relative;
  letter-spacing: 0;
}
.about-compare-other .about-compare-list li {
  color: var(--text-light);
}
.about-compare-other .about-compare-list li::before {
  content: '–'; position: absolute; left: 0; color: var(--gray-300);
}
.about-compare-haluhana .about-compare-list li {
  color: var(--navy);
  font-weight: 500;
}
.about-compare-haluhana .about-compare-list li::before {
  content: '✓'; position: absolute; left: 0; color: var(--blue); font-size: 0.78rem;
}

@media (max-width: 767px) {
  .about-compare-grid { grid-template-columns: 1fr; }
  .about-compare-haluhana {
    border: 1px solid var(--blue);
    border-radius: 10px;
  }
  .about-compare-other {
    border-radius: 10px;
  }
  .about-compare-card { padding: 22px 18px; border-radius: 10px; }
}

/* ── ⑥ 運営会社 ── */
.about-company { background: var(--off-white); overflow: hidden; }
.about-company-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* 左: 4枚グリッド画像 */
.about-company-left {
  width: 100%;
}
.about-company-imgs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  aspect-ratio: 1 / 1;
}
.about-company-imgs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-xl);
  background: var(--gray-100);
}

/* 右: ロゴ */
.about-company-logo {
  display: inline-block;
  margin-bottom: 20px;
}
.about-company-logo img {
  height: 200px;
  width: auto;
  display: block;
}

@media (max-width: 767px) {
  .about-company-imgs img {
    border-radius: 5px;
  }
}

/* ── CTA ── */
.cta-section { background: var(--white); }

/* ── RESPONSIVE: タブレット ── */
@media (max-width: 991px) {
  .about-photo-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; }
  .apg-main { grid-column: 1 / -1; min-height: 260px; }
  .apg-sub { min-height: 180px; border-left: none; border-top: 1px solid rgba(255,255,255,0.08); }
  .apg-caption { border-left: 1px solid rgba(255,255,255,0.08); border-top: 1px solid rgba(255,255,255,0.08); padding: 28px 24px; }
}

/* ── RESPONSIVE: スマホ ── */
@media (max-width: 767px) {
  .about-system-2col {
    grid-template-columns: 1fr;
    gap: 0;
  }
  /* 画像ブロックをテキストの直下（order:1）へ */
  .about-system-left { order: 0; }
  .about-system-right {
    order: 1;
    width: 100%;
    margin-top: 24px;
  }
  .about-system-imgs { grid-template-columns: 1fr 1fr; }
  .about-system-imgs img { aspect-ratio: 1 / 1; margin-top: 0 !important; }

  .about-company-2col { grid-template-columns: 1fr; gap: 32px; }
  .about-company-left { order: -1; }
}
