/* ==========================================================================
   株式会社Nanairo Creative — Creative Direction
   Stylesheet
   --------------------------------------------------------------------------
   目次:
   1. Design Tokens (CSS変数)  — 色・フォント・余白などを一元管理
   2. Reset / Base (font-feature-settings による日本語の自動カーニング含む)
   3. Layout (Container / Section / Divider)
   4. Header / Navigation
   5. Hero (トップページ用)
   6. Page Hero (サブページ用)
   7. Issues Section
   8. Change Section + Circular Diagram
   9. Benefits Section
  10. Services Section
  11. CTA Section
  12. Sub-page Content (Prose / Steps / Service List)
  13. Contact Form
  14. Footer
  15. Responsive (max-width: 900px)
   ========================================================================== */


/* ==========================================================================
   1. Design Tokens
   ここの値を変えると全体のトーンが一括で変わります
   --------------------------------------------------------------------------
   カラーパレットは「編集者の隣にある紙の本」をモチーフにした
   ホワイト × ダークネイビー × ライムイエローの3色構成
   ========================================================================== */
:root {
  /* Colors */
  --color-text:        #00111F;   /* 純黒ではなく、わずかに青みのある墨色 */
  --color-text-sub:    #4a5560;
  --color-text-mute:   #6b7480;
  --color-text-faint:  #a0a8b0;
  --color-bg:          #ffffff;
  --color-bg-alt:      #f5f5f5;   /* セクション背景（明るいグレー） */
  --color-bg-dark:     #00111F;   /* フッター背景 */
  --color-line:        #00111F;
  --color-line-soft:   #e5e7ea;

  --color-accent:      #d8fb01;   /* アクセント：ライムイエロー */
  --color-accent-soft: #eafd80;   /* 薄めの黄色（ハイライト用） */

  /* Typography
     - 見出し: Shippori Mincho （筑紫オールド明朝の代替・編集者らしい古典的明朝）
     - 本文  : Noto Sans JP    （筑紫ゴシックの代替）
  */
  --font-sans:  "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-serif: "Shippori Mincho", "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;

  --fs-hero:        56px;
  --fs-section:     28px;
  --fs-subsection:  20px;
  --fs-body:        13px;
  --fs-small:       12px;
  --fs-xs:          10px;

  --lh-base:   1.8;
  --lh-loose:  2.2;
  --ls-base:   0.05em;
  --ls-wide:   0.1em;

  /* Spacing */
  --space-section:  120px;   /* 各セクションの上下余白 */
  --space-inner:    80px;    /* セクション内の見出しと中身の間 */
  --container-max:  1200px;
  --container-pad:  40px;

  /* Misc */
  --transition: 0.3s ease;
}


/* ==========================================================================
   2. Reset / Base
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  font-weight: 400;
  line-height: var(--lh-base);
  -webkit-font-smoothing: antialiased;

  /* 日本語の自動カーニング（プロポーショナル和字）
     "palt" : 約物・かな・漢字を詰めて美しく整える
     "pkna" : プロポーショナルかな
     */
  font-feature-settings: "palt" 1, "pkna" 1;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

/* ==========================================================================
   全ページ共通の「縦の一本線」（編集の軸を象徴するデザイン要素）
   ========================================================================== */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 40px;
  width: 1px;
  height: 100vh;
  background: var(--color-text);
  opacity: 0.4;
  z-index: 100;
  pointer-events: none;
  /* ページロード時に上から線が描かれるアニメーション */
  transform-origin: top;
  animation: drawLine 1.4s ease-out forwards;
}
@keyframes drawLine {
  0%   { transform: scaleY(0); }
  100% { transform: scaleY(1); }
}

/* ==========================================================================
   スクロール時のリビールアニメーション（基本クラス）
   JS（script.js）が要素を検出して .is-visible を付与します
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* リビールのバリエーション */
.reveal--left  { transform: translateX(-24px); }
.reveal--right { transform: translateX(24px); }
.reveal--left.is-visible,
.reveal--right.is-visible { transform: translateX(0); }

/* アクセント（ライムイエロー）のマーカー風ハイライト */
.mark {
  background: linear-gradient(transparent 65%, var(--color-accent) 65%);
  padding: 0 4px;
}

/* 見出しは明朝体 + より強めのカーニング */
h1, h2, h3, .serif {
  font-feature-settings: "palt" 1, "pkna" 1, "kern" 1;
}

a   { color: inherit; text-decoration: none; }
ul  { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; height: auto; display: block; }


/* ==========================================================================
   3. Layout
   ========================================================================== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.section {
  padding: var(--space-section) 0;
}
.section--bg {
  background: var(--color-bg-alt);
}

/* セクション見出し */
.section__head {
  text-align: center;
  margin-bottom: var(--space-inner);
}
.section__title {
  font-family: var(--font-sans);
  font-size: var(--fs-section);
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  margin: 0 0 24px;
}

/* 区切り線（共通パーツ） */
.divider {
  display: block;
  width: 30px;
  height: 1px;
  background: var(--color-line);
  margin: 32px 0;
}
.divider--center {
  margin: 0 auto;
}


/* ==========================================================================
   4. Header / Navigation
   ========================================================================== */
.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  padding: 32px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

/* ヘッダーが背景に乗るサブページでは、上にスペースを取って白背景にしたい場合は
   <body class="has-fixed-header"> を付けて、ここで対応します */
.site-header--solid {
  position: relative;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-line-soft);
}

/* スクロール時、トップページのヘッダーを固定＆白背景に切り替え */
.site-header--scrolled {
  position: fixed;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-line-soft);
  padding-top: 16px;
  padding-bottom: 16px;
  animation: slideDown 0.4s ease-out;
}
@keyframes slideDown {
  from { transform: translateY(-100%); }
  to   { transform: translateY(0); }
}

.logo {
  font-family: var(--font-serif);
  display: inline-block;
}
.logo__name {
  display: block;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: var(--ls-base);
}
.logo__sub {
  display: block;
  font-size: var(--fs-xs);
  letter-spacing: 0.25em;
  color: var(--color-text-mute);
  margin-top: 2px;
}

.nav__list {
  display: flex;
  gap: 36px;
}
.nav__list a {
  position: relative;
  font-size: var(--fs-body);
  letter-spacing: var(--ls-wide);
  padding: 4px 0;
  transition: color var(--transition);
}
/* ホバー時に下線がスーッと伸びるアニメーション */
.nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav__list a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}


/* ==========================================================================
   5. Hero (トップページ用)
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 180px 60px 80px;
  overflow: hidden;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: var(--fs-hero);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.04em;
  margin: 0 0 60px;
}

.hero__lead {
  font-family: var(--font-serif);
  font-size: 25px;
  line-height: 2;
  letter-spacing: var(--ls-base);
  margin: 0 0 32px;
}
.hero__lead strong { font-weight: 500; }

.hero__text {
  font-size: var(--fs-body);
  line-height: var(--lh-loose);
  letter-spacing: var(--ls-base);
  color: var(--color-text-sub);
  max-width: 360px;
}

/* SCROLL インジケータ（左下） */
.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 60px;
  font-size: var(--fs-xs);
  letter-spacing: 0.3em;
  writing-mode: vertical-rl;
  color: var(--color-text-mute);
}
.hero__scroll::after {
  content: "";
  display: block;
  width: 1px;
  height: 40px;
  background: var(--color-text-faint);
  margin: 12px auto 0;
}


/* ==========================================================================
   6. Page Hero (サブページ用)
   ========================================================================== */
.page-hero {
  padding: 200px 60px 100px;
  text-align: center;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-line-soft);
}
.page-hero__label {
  position: relative;
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--color-text);
  margin: 0 0 32px;
  padding: 0 8px;
}
/* ライムイエローの背景ハイライト */
.page-hero__label::before {
  content: "";
  position: absolute;
  inset: 50% -4px -2px -4px;
  background: var(--color-accent);
  z-index: -1;
}
.page-hero__title {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.05em;
  margin: 0;
}


/* ==========================================================================
   7. Issues Section
   ========================================================================== */
.issues {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.issues__item {
  text-align: center;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.issues__item:hover {
  transform: translateY(-6px);
}
.issues__item:hover .issues__icon {
  color: var(--color-text);
}
.issues__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 24px;
  color: var(--color-text);
  display: block;
}
.issues__title {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: var(--ls-base);
  margin: 0 0 16px;
}
.issues__desc {
  font-size: var(--fs-small);
  line-height: 1.9;
  color: var(--color-text-sub);
  letter-spacing: 0.03em;
  margin: 0;
}

.issues__conclusion {
  text-align: center;
  margin: 100px 0 0;
  font-family: var(--font-serif);
  font-size: var(--fs-subsection);
  line-height: 2;
  letter-spacing: 0.08em;
}
.issues__conclusion em {
  font-style: normal;
  font-weight: 500;
}


/* ==========================================================================
   8. Change Section + Circular Diagram
   ========================================================================== */
.change {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.change__title {
  font-family: var(--font-serif);
  font-size: var(--fs-section);
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: var(--ls-base);
  margin: 0 0 32px;
}

.change__text {
  font-size: var(--fs-body);
  line-height: var(--lh-loose);
  color: var(--color-text-sub);
  letter-spacing: 0.03em;
  margin: 0 0 20px;
}

/* Circular Diagram */
.diagram {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  color: var(--color-text);
}
.diagram__circle {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.diagram__center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.diagram__center-title {
  font-family: var(--font-serif);
  font-size: 14px;
  letter-spacing: 0.1em;
  font-weight: 500;
  line-height: 1.9;
  margin: 0;
}

.diagram__node {
  position: absolute;
  text-align: center;
  font-family: var(--font-serif);
  white-space: nowrap;
}
.diagram__node-title {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.15em;
  line-height: 1.5;
  margin: 0;
  padding: 7px 18px;
  border: 1px solid var(--color-text);
  background: var(--color-bg);
}
.diagram__node-sub {
  font-size: 11px;
  color: var(--color-text-mute);
  letter-spacing: 0.05em;
  line-height: 1.5;
  margin: 9px 0 0;
}

/* 各ノードのタイトル中央が、SVGの円弧端点（7.5% / 92.5%）と一致するよう配置 */
.diagram__node--top {
  top: calc(7.5% - 18px);
  left: 50%;
  transform: translateX(-50%);
}
.diagram__node--right {
  top: calc(50% - 18px);
  left: 92.5%;
  transform: translateX(-50%);
}
.diagram__node--bottom {
  top: calc(92.5% - 18px);
  left: 50%;
  transform: translateX(-50%);
}
.diagram__node--left {
  top: calc(50% - 18px);
  left: 7.5%;
  transform: translateX(-50%);
}


/* ==========================================================================
   9. Benefits Section （デザインは、経営を加速させる）
   ========================================================================== */
.benefits {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.benefits__item {
  text-align: center;
  border-top: 1px solid var(--color-line);
  padding-top: 24px;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
/* 上端のラインが、ホバー時にイエローに変化 */
.benefits__item::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.benefits__item:hover { transform: translateY(-4px); }
.benefits__item:hover::before { width: 100%; }
.benefits__title {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin: 0 0 16px;
}
.benefits__desc {
  font-size: var(--fs-small);
  line-height: 1.9;
  color: var(--color-text-sub);
  letter-spacing: 0.03em;
  margin: 0;
}

.benefits__conclusion {
  text-align: center;
  margin: 80px 0 0;
  font-family: var(--font-serif);
  font-size: 18px;
  letter-spacing: 0.08em;
}


/* ==========================================================================
   10. Services Section
   ========================================================================== */
.services {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

.services__title {
  font-family: var(--font-serif);
  font-size: var(--fs-section);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: var(--ls-base);
  margin: 0 0 32px;
}

.services__text {
  font-size: var(--fs-body);
  line-height: var(--lh-loose);
  color: var(--color-text-sub);
  margin: 0 0 20px;
}

.services__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.services__list li {
  font-family: var(--font-serif);
  font-size: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-line-soft);
  letter-spacing: var(--ls-base);
}


/* ==========================================================================
   11. CTA Section
   ========================================================================== */
.cta {
  padding: 100px 0 140px;
  position: relative;
}

.cta__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.cta__title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: var(--ls-base);
  margin: 0 0 24px;
}

.cta__text {
  font-size: var(--fs-body);
  line-height: 2;
  color: var(--color-text-sub);
  margin: 0;
}

.cta__button {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 40px;
  border: 1px solid var(--color-line);
  font-family: var(--font-serif);
  font-size: 15px;
  letter-spacing: var(--ls-wide);
  overflow: hidden;
  z-index: 1;
  transition: color 0.5s ease;
}
/* ホバー時に背景がイエローへとスライドイン */
.cta__button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-accent);
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: -1;
}
.cta__button:hover::before {
  transform: translateY(0);
}
.cta__button:hover .cta__arrow {
  transform: translateX(8px);
}
.cta__arrow {
  font-size: 18px;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}


/* ==========================================================================
   12. Sub-page Content (Prose / Steps / Service List)
   サブページ共通のコンテンツスタイル
   ========================================================================== */

/* プロース（本文）— サブページ全般で使う中央寄せの読み物 */
.prose {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  font-family: var(--font-serif);
}
.prose__lead {
  font-size: var(--fs-subsection);
  line-height: 2;
  letter-spacing: 0.08em;
  margin: 0 0 60px;
}
.prose__text {
  font-size: 15px;
  line-height: 2.2;
  letter-spacing: 0.05em;
  color: var(--color-text);
  margin: 0 0 40px;
}
.prose__text--mute {
  color: var(--color-text-sub);
  font-size: 14px;
}

/* サービス一覧（サブページ用） */
.service-list {
  max-width: 600px;
  margin: 60px auto 0;
}
.service-list__title {
  font-family: var(--font-serif);
  font-size: 14px;
  letter-spacing: 0.2em;
  text-align: center;
  color: var(--color-text-mute);
  margin: 0 0 24px;
}
.service-list ul {
  border-top: 1px solid var(--color-line-soft);
}
.service-list li {
  font-family: var(--font-serif);
  font-size: 15px;
  padding: 18px 0;
  border-bottom: 1px solid var(--color-line-soft);
  letter-spacing: var(--ls-base);
  text-align: center;
}

/* ステップ（進め方） */
.steps {
  max-width: 720px;
  margin: 60px auto 0;
}
.steps__item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  align-items: baseline;
  padding: 32px 0;
  border-bottom: 1px solid var(--color-line-soft);
}
.steps__item:first-child {
  border-top: 1px solid var(--color-line-soft);
}
.steps__num {
  position: relative;
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--color-text);
  padding: 0 4px;
}
.steps__num::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 6px;
  background: var(--color-accent);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.steps__item:hover .steps__num::before,
.is-visible .steps__num::before {
  transform: scaleX(1);
}
.steps__title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin: 0 0 8px;
}
.steps__desc {
  font-size: var(--fs-body);
  line-height: 1.9;
  color: var(--color-text-sub);
  margin: 0;
}

/* 規約・プライバシーポリシー等の長文ページ用 */
.legal {
  max-width: 760px;
  margin: 0 auto;
}
.legal__intro {
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 2.1;
  letter-spacing: 0.04em;
  color: var(--color-text);
  margin: 0 0 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--color-line-soft);
}
.legal__section {
  margin-bottom: 48px;
}
.legal__section:last-child {
  margin-bottom: 0;
}
.legal__title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.6;
  margin: 0 0 20px;
}
.legal__text {
  font-size: 14px;
  line-height: 2.1;
  letter-spacing: 0.03em;
  color: var(--color-text-sub);
  margin: 0 0 16px;
}
.legal__text:last-child {
  margin-bottom: 0;
}
.legal__list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}
.legal__list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 2;
  color: var(--color-text-sub);
}
.legal__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95em;
  width: 8px;
  height: 1px;
  background: var(--color-text-mute);
}
.legal__link {
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity var(--transition);
}
.legal__link:hover { opacity: 0.6; }


/* 会社情報テーブル（dlで構成） */
.company-info {
  max-width: 720px;
  margin: 0 auto;
}
.company-info__row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--color-line-soft);
}
.company-info__row:first-child {
  border-top: 1px solid var(--color-line-soft);
}
.company-info__term {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  margin: 0;
  color: var(--color-text);
}
.company-info__desc {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.9;
  letter-spacing: 0.03em;
  color: var(--color-text-sub);
  margin: 0;
}


/* ==========================================================================
   13. Contact Form
   ========================================================================== */
.form {
  max-width: 640px;
  margin: 80px auto 0;
}

.form__group {
  margin-bottom: 36px;
}

.form__label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.form__required {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: #c43c3c;
  border: 1px solid #c43c3c;
  padding: 2px 8px;
  border-radius: 2px;
}

/* Input / Textarea / Select 共通 */
.form__input,
.form__textarea,
.form__select {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0.03em;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-line-soft);
  border-radius: 0;
  padding: 16px 18px;
  line-height: 1.6;
  transition: border-color var(--transition);
  -webkit-appearance: none;
  appearance: none;
}
.form__input::placeholder,
.form__textarea::placeholder {
  color: var(--color-text-faint);
  font-weight: 300;
}
.form__input:focus,
.form__textarea:focus,
.form__select:focus {
  outline: none;
  border-color: var(--color-line);
}

.form__textarea {
  resize: vertical;
  min-height: 180px;
}

/* Select 用の矢印 */
.form__select-wrap {
  position: relative;
}
.form__select-wrap::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1px solid var(--color-text);
  border-bottom: 1px solid var(--color-text);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.form__select {
  padding-right: 44px;
  cursor: pointer;
}

/* チェックボックス（個人情報同意） */
.form__group--consent {
  margin: 48px 0;
  padding: 28px;
  background: var(--color-bg-alt);
}
.form__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.7;
}
.form__checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.form__checkbox-mark {
  flex-shrink: 0;
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 1px solid var(--color-line);
  background: var(--color-bg);
  margin-top: 3px;
  transition: background var(--transition);
  position: relative;
}
.form__checkbox input[type="checkbox"]:checked + .form__checkbox-mark {
  background: var(--color-text);
}
.form__checkbox input[type="checkbox"]:checked + .form__checkbox-mark::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border-right: 2px solid var(--color-bg);
  border-bottom: 2px solid var(--color-bg);
  transform: rotate(45deg);
}
.form__checkbox input[type="checkbox"]:focus-visible + .form__checkbox-mark {
  outline: 2px solid var(--color-text);
  outline-offset: 2px;
}
.form__checkbox-text {
  flex: 1;
}
.form__link {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.form__link:hover { opacity: 0.6; }

/* Submit ボタン */
.form__submit {
  text-align: center;
  margin-top: 48px;
}
.form__button {
  position: relative;
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  min-width: 320px;
  gap: 24px;
  padding: 22px 36px;
  background: var(--color-text);
  color: var(--color-bg);
  border: 1px solid var(--color-text);
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.15em;
  cursor: pointer;
  overflow: hidden;
  z-index: 1;
  transition: color 0.5s ease;
}
.form__button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-accent);
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: -1;
}
.form__button:hover {
  color: var(--color-text);
}
.form__button:hover::before {
  transform: translateY(0);
}
.form__button:hover .form__button-arrow {
  transform: translateX(8px);
}
.form__button-arrow {
  font-size: 18px;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}


/* ==========================================================================
   14. Footer
   ========================================================================== */
.site-footer {
  background: var(--color-bg-dark);
  color: var(--color-bg);
  padding: 80px 0 32px;
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.logo--footer .logo__name { color: var(--color-bg); }
.logo--footer .logo__sub  { color: rgba(255, 255, 255, 0.6); }

.site-footer__tagline {
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 2;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.8);
  margin: 24px 0 0;
}

.site-footer__nav ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 40px;
  justify-content: end;
}
.site-footer__nav a {
  position: relative;
  font-size: var(--fs-body);
  letter-spacing: var(--ls-wide);
  color: rgba(255, 255, 255, 0.8);
  padding-bottom: 2px;
  transition: color var(--transition);
}
.site-footer__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.site-footer__nav a:hover {
  color: var(--color-bg);
}
.site-footer__nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-footer__bottom {
  padding-top: 32px;
  text-align: center;
}
.site-footer__bottom small {
  font-size: var(--fs-xs);
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.5);
}


/* ==========================================================================
   15. Responsive (max-width: 900px)
   スマホ・タブレット向け調整
   ========================================================================== */

/* モーション軽減が有効な環境ではアニメーションを無効化 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 900px) {

  :root {
    --space-section: 70px;
    --space-inner:   50px;
    --container-pad: 24px;
    --fs-hero:       30px;
    --fs-section:    20px;
  }

  /* モバイルでは縦線を非表示 */
  body::before { display: none; }

  /* Header */
  .site-header {
    position: relative;
    padding: 20px 24px;
    flex-direction: column;
    gap: 16px;
  }
  .nav__list {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
  .nav__list a { font-size: var(--fs-small); }

  /* Hero */
  .hero {
    padding: 60px 24px;
    min-height: auto;
  }
  .hero__title { margin-bottom: 32px; }
  .hero__scroll { display: none; }

  /* Page Hero */
  .page-hero {
    padding: 60px 24px 50px;
  }
  .page-hero__title { font-size: 26px; }

  /* Issues */
  .issues {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 20px;
  }
  .issues__conclusion {
    font-size: 15px;
    margin-top: 60px;
  }

  /* Change / Services / CTA — 1カラム化 */
  .change,
  .services,
  .cta__row {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .change__title,
  .services__title,
  .cta__title { font-size: 22px; }

  /* Diagram — 縮小 */
  .diagram {
    max-width: 320px;
    margin: 40px auto;
  }
  .diagram__node-title {
    font-size: 12px;
    padding: 6px 14px;
  }
  .diagram__node-sub {
    font-size: 10px;
  }
  .diagram__center-title {
    font-size: 12px;
  }

  /* Benefits */
  .benefits {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 20px;
  }
  .benefits__conclusion { font-size: 14px; }

  /* Services List */
  .services__list { grid-template-columns: 1fr; }
  .services__list li {
    font-size: var(--fs-body);
    padding: 12px 0;
  }

  /* Sub-page content */
  .prose__lead { font-size: 16px; margin-bottom: 40px; }
  .prose__text { font-size: 14px; }

  .steps__item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 24px 0;
  }
  .steps__num { font-size: 20px; }

  /* 会社情報テーブル */
  .company-info__row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 18px 0;
  }
  .company-info__term {
    font-size: 12px;
    color: var(--color-text-mute);
  }
  .company-info__desc {
    font-size: 13px;
  }

  /* 規約・プライバシーポリシー */
  .legal__intro {
    font-size: 14px;
    margin-bottom: 40px;
    padding-bottom: 32px;
  }
  .legal__section {
    margin-bottom: 36px;
  }
  .legal__title {
    font-size: 15px;
    margin-bottom: 14px;
  }
  .legal__text,
  .legal__list li {
    font-size: 13px;
    line-height: 2;
  }

  /* CTA */
  .cta__button {
    padding: 20px 24px;
    font-size: var(--fs-body);
  }

  /* Form */
  .form {
    margin-top: 40px;
  }
  .form__group {
    margin-bottom: 28px;
  }
  .form__input,
  .form__textarea,
  .form__select {
    font-size: 14px;
    padding: 14px 16px;
  }
  .form__group--consent {
    padding: 20px;
    margin: 32px 0;
  }
  .form__button {
    min-width: 0;
    width: 100%;
    padding: 18px 24px;
    font-size: 14px;
  }

  /* Footer */
  .site-footer {
    padding: 50px 0 24px;
  }
  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 40px;
  }
  .site-footer__nav ul {
    grid-template-columns: 1fr;
    gap: 12px;
    justify-content: start;
  }
}
