/* ============================================================
   about.css  ―  私たちの想いページ専用スタイル
   トップページ (style.css) のデザインルールを完全踏襲
   ============================================================ */

/* ============================================================
   リード文エリア イラスト画像装飾
   トップページの既存アセットを流用 — Flexbox一体化レイアウト
   ============================================================ */

/* セクション外側コンテナ */
.abt-lead-section {
  background: #fff;
  overflow: hidden;
}

/* Flexboxラッパー：イラスト⭐テキスト⭐イラスト を水平並びで中央寄せ */
.abt-lead-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  /* イラストを大きくした分、全体幅を広げてテキスト幅を確保 */
  gap: 0 clamp(24px, 3vw, 48px);
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) clamp(24px, 4vw, 48px);
}

/* イラスト共通：Flexbox内では static 配置 */
.abt-lead-illust {
  flex: 0 0 auto;
  pointer-events: none;
}
.abt-lead-illust-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.06));
}

/* 左イラスト：バルーン束 */
.abt-lead-illust--left {
  /* 装飾イラストとしてふさわしいサイズ感に拡大 */
  width: clamp(120px, 14vw, 180px);
  opacity: 0.58;
  align-self: flex-end;   /* 左下寄りでテキストに寄り添う */
  animation: abt-float 7s ease-in-out infinite;
  transform-origin: center bottom;
  margin-bottom: -32px;   /* セクション下端に少しはみ出して自然な浮き感 */
}

/* 右イラスト：ハートバルーン */
.abt-lead-illust--right {
  /* 装飾イラストとしてふさわしいサイズ感に拡大 */
  width: clamp(110px, 12vw, 165px);
  opacity: 0.50;
  align-self: flex-start; /* 右上寄りでテキストに寄り添う */
  animation: abt-float 8s ease-in-out infinite;
  animation-delay: 1.5s;
  transform-origin: center top;
  margin-top: -32px;      /* セクション上端に少しはみ出して自然な浮き感 */
}

/* フロートアニメーション（トップページの float-illust と同じリズム） */
@keyframes abt-float {
  0%, 100% { transform: translateY(0px) rotate(-1deg); }
  50%       { transform: translateY(-14px) rotate(1deg); }
}

/* ============================================================
   スクロールアニメーション（共通）
   ============================================================ */
.scroll-hidden {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.scroll-hidden.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   subpage-hero 共通コンポーネント
   ============================================================ */
.subpage-hero {
  position: relative;
  min-height: 540px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
  padding: 160px 60px 120px;
}
.subpage-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  transform: scale(1.04);
  animation: subpageHeroZoom 14s ease-in-out infinite alternate;
}
@keyframes subpageHeroZoom {
  0%   { transform: scale(1.04); }
  100% { transform: scale(1.0); }
}
.subpage-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(10, 5, 20, 0.72) 0%,
    rgba(10, 5, 20, 0.52) 55%,
    rgba(10, 5, 20, 0.25) 100%
  );
  z-index: 1;
}
.subpage-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
}
.subpage-hero-en {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  color: rgba(255, 255, 255, 0.72);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.subpage-hero-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  letter-spacing: 0.04em;
  margin: 0 0 24px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.45);
}
.subpage-hero-lead {
  font-size: clamp(0.84rem, 1.6vw, 0.97rem);
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.9;
  font-weight: 300;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 8px rgba(0,0,0,0.35);
}
.subpage-breadcrumb {
  position: absolute;
  bottom: 24px;
  left: 60px;
  z-index: 3;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.62);
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.subpage-breadcrumb a {
  color: rgba(255,255,255,0.62);
  text-decoration: none;
  transition: color 0.2s;
}
.subpage-breadcrumb a:hover { color: #fff; }
.subpage-breadcrumb-sep { opacity: 0.45; }

/* ============================================================
   リード文セクション
   ============================================================ */
/* .abt-lead-section は上部のイラスト装飾ブロックで定義済み */
.abt-lead-inner {
  flex: 1 1 auto;
  /* イラストに挙んでも十分な幅を確保し、孤立行を防止 */
  min-width: 0;
  width: min(600px, 100%);
  max-width: 600px;
  text-align: center;
  z-index: 1;
}
.abt-lead-text {
  font-family: var(--font-sans, 'Noto Sans JP', sans-serif);
  font-size: clamp(0.95rem, 1.6vw, 1.08rem);
  line-height: 2;
  color: var(--color-text-light, #555);
  margin-bottom: 28px;
  /* 文節の途中で折り返さず、孤立行を最小化 */
  word-break: keep-all;
  overflow-wrap: break-word;
}
.abt-lead-accent {
  font-family: var(--font-serif, 'Noto Serif JP', serif);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 1.9;
  color: var(--color-text, #1a1a1a);
  font-weight: 600;
  letter-spacing: 0.03em;
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* ============================================================
   ジグザグ（左右交互）セクション共通
   トップページの .concept-layout / .business-layout を踏襲
   ============================================================ */
.abt-section {
  padding: clamp(64px, 8vw, 112px) clamp(24px, 5vw, 60px);
}
.abt-section--white {
  background: #fff;
}
.abt-section--warm {
  background: var(--color-bg-warm, #FAFAF8);
}

/* ジグザグ行コンテナ */
.abt-row {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  align-items: center;
  position: relative;
}
/* 逆順（テキスト左・画像右）*/
.abt-row--reverse {
  grid-template-columns: 1fr 1.1fr;
}
.abt-row--reverse .abt-row-img {
  order: 2;
}
.abt-row--reverse .abt-row-text {
  order: 1;
}

/* 画像カラム */
.abt-row-img {
  position: relative;
  z-index: 1;
}
.abt-img-frame {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}
.abt-img {
  width: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 4/5;
  border-radius: 4px;
}

/* テキストカラム（トップページの .concept-text を踏襲）*/
.abt-row-text {
  position: relative;
  z-index: 2;
  background: #fff;
  padding: clamp(32px, 4vw, 64px);
  border-radius: 4px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.04);
}
/* 左画像・右テキスト → テキストを左に -60px ずらしてオーバーラップ */
.abt-row-text--overlap-left {
  margin-left: -60px;
}
/* 右画像・左テキスト → テキストを右に -60px ずらしてオーバーラップ */
.abt-row-text--overlap-right {
  margin-right: -60px;
}

/* セクション英語ラベル（トップページの .section-en-deco を踏襲）*/
.abt-en-label {
  display: block;
  font-family: var(--font-en, 'Cormorant Garamond', serif);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent, #b8a98a);
  margin-bottom: 12px;
}

/* セクション見出し（トップページの .section-title を踏襲）*/
.abt-section-title {
  font-family: var(--font-serif, 'Noto Serif JP', serif);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 700;
  line-height: 1.55;
  color: var(--color-text, #1a1a1a);
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}

/* 本文テキスト */
.abt-section-body p {
  font-family: var(--font-sans, 'Noto Sans JP', sans-serif);
  font-size: clamp(0.9rem, 1.5vw, 0.98rem);
  line-height: 2;
  color: var(--color-text-light, #555);
  margin-bottom: 16px;
}
.abt-section-body p:last-child {
  margin-bottom: 0;
}
.abt-closing-line {
  font-family: var(--font-serif, 'Noto Serif JP', serif) !important;
  font-weight: 600 !important;
  color: var(--color-text, #1a1a1a) !important;
  margin-top: 8px;
}

/* ============================================================
   CTA セクション（user-guide / how-to-choose と完全統一）
   htc-section-cta / htc-cta-body / btn-hero-line / btn-outline
   ============================================================ */

/* --- セクション背景（how-to-choose.cssと同一） --- */
.htc-section-cta {
  background: linear-gradient(135deg, #2a1a10 0%, #3d2415 50%, #2a1a10 100%);
  position: relative;
  overflow: hidden;
}
.htc-section-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('images/top/top-hero-slide3.webp') center/cover no-repeat;
  opacity: 0.12;
}
.htc-section-cta .htc-container {
  position: relative;
  z-index: 1;
}
.htc-section-cta .section-en-deco {
  color: rgba(255,255,255,0.5) !important;
}
.htc-section-cta .section-title {
  color: #fff !important;
}

/* --- CTAコンテナ（htc-containerはhow-to-choose.cssで定義済み） --- */
/* about.htmlはhow-to-choose.cssを読み込まないため、ここで定義 */
.htc-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}
.htc-section {
  padding: clamp(64px, 8vw, 112px) 0;
}
.htc-section-header {
  text-align: center;
  margin-bottom: 48px;
}

/* --- CTAボディ --- */
.htc-cta-body {
  text-align: center;
}
.htc-cta-text {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.9;
  margin-bottom: 16px;
  font-family: 'Noto Serif JP', serif;
  letter-spacing: 0.04em;
}
.htc-cta-subtext {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.8;
  margin-bottom: 36px;
  letter-spacing: 0.03em;
}
.htc-cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- LINEボタン（緑・メインCTA） --- */
.btn-hero-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: #06C755;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: background 0.25s;
  text-decoration: none;
}
.btn-hero-line:hover {
  background: #05a847;
}

/* --- アウトラインボタン（サブCTA） --- */
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.6);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: background 0.25s, border-color 0.25s;
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}
.btn-arrow {
  transition: transform 0.2s;
}
.btn-outline:hover .btn-arrow {
  transform: translateX(4px);
}

/* ============================================================
   レスポンシブ：タブレット（〜1024px）
   ============================================================ */
@media (max-width: 1024px) {
  .abt-row,
  .abt-row--reverse {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }
  .abt-row-text--overlap-left {
    margin-left: -40px;
  }
  .abt-row-text--overlap-right {
    margin-right: -40px;
  }
}

/* ============================================================
   レスポンシブ：スマートフォン（〜768px）
   縦積み：画像が上、テキストが下
   ============================================================ */
@media (max-width: 768px) {
  /* FV */
  .subpage-hero {
    padding: 120px 24px 80px;
    align-items: center;
    text-align: center;
  }
  .subpage-breadcrumb {
    left: 50%;
    transform: translateX(-50%);
  }

  .abt-section {
    padding: 56px 20px;
  }

  /* ジグザグ → 縦積みに変換 */
  .abt-row,
  .abt-row--reverse {
    grid-template-columns: 1fr;
    gap: 0;
  }
  /* 逆順でも画像を上に */
  .abt-row--reverse .abt-row-img {
    order: 1;
  }
  .abt-row--reverse .abt-row-text {
    order: 2;
  }

  /* 画像 */
  .abt-img {
    aspect-ratio: 4/3;
    border-radius: 4px 4px 0 0;
  }
  .abt-img-frame {
    border-radius: 4px 4px 0 0;
  }

  /* テキストボックス：オーバーラップを解除して画像直下に */
  .abt-row-text {
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: -20px;
    border-radius: 0 0 4px 4px;
    padding: 28px 20px 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  }

  /* リード文：モバイルではイラストを非表示にしテキストの可読性を最優先 */
  .abt-lead-flex {
    flex-direction: column;
    gap: 0;
    padding: 48px 24px;
  }
  .abt-lead-inner {
    max-width: 100%;
    text-align: center;
  }

  /* イラスト画像：モバイルでは非表示（テキスト圧迫防止） */
  .abt-lead-illust--left,
  .abt-lead-illust--right {
    display: none;
  }

  /* CTA */
  .htc-cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-hero-line,
  .btn-outline {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
  }
}

/* ============================================================
   レスポンシブ：小型スマートフォン（〜480px）
   ============================================================ */
@media (max-width: 480px) {
  .abt-section-title {
    font-size: 1.2rem;
  }
  .abt-lead-text {
    font-size: 0.92rem;
  }
  .abt-lead-accent {
    font-size: 0.95rem;
  }
  .abt-row-text {
    padding: 24px 16px 28px;
  }
}
