/* =============================================
   Hi-K Design — スタイルシート
   
   【目次】
     1. カラー・フォント変数
     2. リセット・ベーススタイル
     3. ナビゲーション
     4. ヒーローセクション
     5. ABOUTセクション
     6. SERVICESセクション
     7. CONTACTセクション
     8. フッター
     9. スクロールアニメーション
    10. ユーティリティ
    11. レスポンシブ（スマホ対応）
   ============================================= */


/* =============================================
   1. カラー・フォント変数
   ★ 色やフォントを変えたい場合はここを編集
   ============================================= */
:root {

  /* ── 背景色 ── */
  --color-bg:         hsl(40, 20%, 97%);   /* クリーム色の背景 */
  --color-bg-dark:    hsl(0, 0%, 10%);     /* ダーク（サービスセクション） */

  /* ── テキスト色 ── */
  --color-text:       hsl(0, 0%, 10%);     /* メインテキスト（チャコール） */
  --color-text-muted: hsl(0, 0%, 45%);     /* サブテキスト（グレー） */
  --color-text-light: hsl(40, 20%, 95%);   /* ダーク背景上のテキスト */

  /* ── 境界線 ── */
  --color-border:     hsl(0, 0%, 85%);     /* 罫線 */

  /* ── フォント ── */
  --font-serif:    'Playfair Display', Georgia, serif;  /* 英語見出し */
  --font-jp:       'Noto Serif JP', serif;              /* 日本語本文 */
  --font-sans:     'Inter', sans-serif;                 /* UIテキスト */

  /* ── サイズ ── */
  --max-width:     1280px;   /* コンテナ最大幅 */
  --section-py:    8rem;     /* セクション上下余白 */

  /* ── アニメーション ── */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

}


/* =============================================
   2. リセット・ベーススタイル
   ============================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color:            var(--color-text);
  font-family:      var(--font-jp);
  font-weight:      300;
  line-height:      1.8;
  overflow-x:       hidden;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}


/* =============================================
   3. ナビゲーション
   ============================================= */

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;    /* オーバーレイ(z:100)より上に常に来る */

  /* 最初は透明（スクロール後に背景が出る） */
  background: transparent;
  padding: 1.75rem 0;

  transition: background 0.5s, padding 0.5s, box-shadow 0.5s;
}

/* スクロール後は背景・ブラー・影を表示（JSで .scrolled クラス付与） */
#navbar.scrolled {
  background: hsla(40, 20%, 97%, 0.9);   /* プレビューの bg-background/90 と同じ色 */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem 0;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);  /* Tailwind shadow-sm 相当 */
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 3rem;

  position: relative;          /* ハンバーガーの絶対配置の基準 */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ── ロゴ ── */
.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--color-text);
  transition: letter-spacing 0.4s;
}

.nav-logo:hover {
  letter-spacing: 0.12em;
}

/* ── メニューリンク ── */
.nav-links {
  display: flex;
  gap: 3rem;
}

.nav-links a {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text);
  transition: color 0.3s, transform 0.3s;
  position: relative;
}

/* ホバー時の下線アニメーション */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-text);
  transition: width 0.3s var(--ease-out);
}

.nav-links a:hover {
  color: var(--color-text-muted);
  transform: translateY(-2px);
}

.nav-links a:hover::after {
  width: 100%;
}

/* ── ハンバーガーボタン（デフォルトは非表示、スマホのみ表示） ── */
.nav-hamburger {
  display: none;               /* デスクトップでは隠す */
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;

  /* 絶対配置：フレックスレイアウトに影響させない */
  position: absolute;
  right: 3rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;                 /* nav-inner の stacking context 内で最前面 */
}

.hamburger-bar {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--color-text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* 開いているとき → X 形に変形 */
.nav-hamburger.is-open .hamburger-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-hamburger.is-open .hamburger-bar:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.is-open .hamburger-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ── モバイルオーバーレイ ── */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: hsl(40, 20%, 97%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  /* 下からスライドして閉じるアニメーション */
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;        /* 閉じているとき操作を貫通させる */
}

.mobile-overlay.is-open {
  clip-path: inset(0 0 0% 0);
  pointer-events: auto;
}

.mobile-overlay-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.mobile-nav-link {
  font-family: var(--font-serif);
  font-size: 2rem;
  letter-spacing: 0.1em;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s, transform 0.3s;
}

.mobile-nav-link:hover {
  color: var(--color-text-muted);
  transform: translateX(8px);
}


/* =============================================
   4. ヒーローセクション
   ============================================= */

.section-hero {
  position: relative;    /* 絶対配置の子要素の基準になる */
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  padding-top: 80px;     /* ナビの高さ分ずらす */
}

/* スマホのみ表示する改行（デスクトップでは非表示） */
.mobile-br {
  display: none;
}

/* ── 背景SVGグラフィック ── */
.hero-graphic {
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: var(--color-text);
  /* コンテナには opacity を掛けない。各要素ごとに個別設定する */
}

.hero-graphic svg {
  width: 100%;
  height: 100%;
}

/* ── SVG各要素のアニメーションと不透明度 ── */

/* 大きな外側の円（opacity 8%）：ゆっくり時計回り */
.svg-circle-large {
  transform-origin: 900px 400px;
  animation: rotate-cw 60s linear infinite;
  opacity: 0.08;
}

/* 中くらいの円（opacity 10%）：反時計回り */
.svg-circle-medium {
  transform-origin: 920px 380px;
  animation: rotate-ccw 40s linear infinite;
  opacity: 0.10;
}

/* 小さな破線円（opacity 15%）：時計回り */
.svg-circle-small {
  transform-origin: 900px 400px;
  animation: rotate-cw 25s linear infinite;
  opacity: 0.15;
}

/* 四隅の大きな円（opacity 12%）：フェードイン */
.svg-circle-corner {
  opacity: 0;
  animation: fade-to-12 1s var(--ease-out) forwards;
  animation-delay: 0.5s;
}

/* 斜めの線（opacity 8%）：フェードイン */
.svg-line {
  opacity: 0;
  animation: fade-to-08 0.8s var(--ease-out) forwards;
  animation-delay: 0.8s;
}

/* 右端の縦線（opacity 6%）：フェードイン */
.svg-line-v {
  opacity: 0;
  animation: fade-to-06 1s ease forwards;
  animation-delay: 1s;
}

/* 中心のパルス円（opacity 25%でパルス） */
.svg-dot-center-pulse {
  transform-origin: 900px 400px;
  animation: pulse-ring 3.5s ease-in-out infinite;
  opacity: 0;
}

/* 中心の塗りつぶし点（opacity 40%）：フェードイン */
.svg-dot-center {
  transform-origin: 900px 400px;
  opacity: 0;
  animation: fade-to-40 0.5s ease forwards;
  animation-delay: 1.2s;
}

/* 軌道ドット（大）opacity 22% */
.orbit-dot {
  opacity: 0.22;
}

/* 軌道ドット（小）opacity 15% */
.orbit-dot--faint {
  opacity: 0.15;
}


/* ── ヒーローテキスト ── */
.hero-content {
  position: relative;
  z-index: 10;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 3rem;
}

/* キャッチコピー（1行目） */
.hero-title-line1 {
  font-family: var(--font-jp);
  font-weight: 300;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  letter-spacing: 0.15em;
  line-height: 1.8;
  color: var(--color-text);
}

/* キャッチコピー（2行目） */
.hero-title-line2 {
  font-family: var(--font-jp);
  font-weight: 300;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  letter-spacing: 0.15em;
  line-height: 1.8;
  color: var(--color-text);
}

/* 斜体部分（"かたち"） */
.hero-title-line2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05em;
}

/* 区切り線 */
.hero-divider {
  width: 80px;
  height: 1px;
  background: rgba(26, 26, 26, 0.3);
  margin: 1.5rem 0;
}

/* サブタイトル */
.hero-subtitle {
  font-family: var(--font-jp);
  font-weight: 300;
  font-size: 1rem;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
  padding-left: 1rem;
  border-left: 1px solid rgba(26, 26, 26, 0.3);
  line-height: 1.8;
}

/* 「Discover More」リンク */
.hero-discover {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 3rem;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: gap 0.3s;
}

.hero-discover:hover {
  gap: 1.25rem;
  color: var(--color-text);
}

.hero-discover-line {
  display: inline-block;
  width: 32px;
  height: 1px;
  background: currentColor;
  transition: width 0.3s;
}

.hero-discover:hover .hero-discover-line {
  width: 48px;
}

/* ── スクロールインジケーター ── */
.hero-scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  z-index: 10;
}

.scroll-label {
  font-family: var(--font-sans);
  font-size: 0.55rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.scroll-bar {
  width: 1px;
  height: 56px;
  background: var(--color-border);
  overflow: hidden;
  position: relative;
}

.scroll-bar-inner {
  position: absolute;
  top: -40%;
  left: 0;
  width: 100%;
  height: 40%;
  background: var(--color-text);
  animation: scroll-slide 1.8s ease-in-out infinite;
  animation-delay: 0.4s;
}


/* =============================================
   5. ABOUTセクション
   ============================================= */

.section-about {
  position: relative;
  padding: var(--section-py) 0;
  background: var(--color-bg);
  overflow: hidden;
}

/* 流れるドットのCanvas（全体背景） */
#dots-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  color: var(--color-text);
  pointer-events: none;
  z-index: 0;
}

/* 背景の大きな装飾数字 */
.section-number {
  position: absolute;
  right: 2rem;
  top: 6rem;
  font-family: var(--font-serif);
  font-size: 12rem;
  color: var(--color-border);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  opacity: 0.5;
  z-index: 1;
}

.section-number--light {
  color: rgba(255, 255, 255, 0.05);
  left: 2rem;
  right: auto;
  opacity: 1;
}

/* コンテナ */
.container {
  position: relative;
  z-index: 10;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 3rem;
}

.container--narrow {
  max-width: 860px;
}

/* ── セクションタイトル ── */
.section-title {
  text-align: center;
  margin-bottom: 5rem;
}

.section-title h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: 0.3em;
  font-weight: 400;
}

/* タイトル下の短い横線 */
.title-line {
  width: 48px;
  height: 1px;
  background: var(--color-text);
  margin: 2rem auto 0;
  transform: scaleX(0);
  transition: transform 0.8s var(--ease-out) 0.4s;
}

/* JSで .revealed が付くと線が伸びる */
.revealed .title-line,
.section-title.revealed .title-line {
  transform: scaleX(1);
}

.title-line--light {
  background: rgba(255, 255, 255, 0.4);
}

/* ── Aboutのコンテンツ全体 ── */
.about-content {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

/* ── テキストブロック ── */
.about-block h3 {
  font-family: var(--font-jp);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* h3の左の横線 */
.block-line {
  display: inline-block;
  width: 0;
  height: 1px;
  background: var(--color-text);
  transition: width 0.6s var(--ease-out) 0.3s;
  flex-shrink: 0;
}

.revealed .block-line {
  width: 24px;
}

.about-block p {
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  line-height: 2;
  text-align: justify;
  margin-bottom: 1em;
}

/* 小さな注釈テキスト */
.small-note {
  font-size: 0.8rem;
  opacity: 0.7;
}

/* ── 対応領域ボックス ── */
.about-scope {
  border: 1px solid var(--color-border);
  padding: 2rem;
  background: rgba(0, 0, 0, 0.02);
}

.about-scope h3 {
  font-family: var(--font-jp);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  margin-bottom: 1.5rem;
}

.about-scope ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.about-scope li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

/* リストの「―」 */
.list-dash {
  display: inline-block;
  width: 16px;
  height: 1px;
  background: var(--color-text-muted);
  flex-shrink: 0;
}

/* 対応領域ボックス下部の区切り線とテキスト */
.scope-note {
  font-family: var(--font-jp);
  font-size: 0.85rem;
  color: rgba(26, 26, 26, 0.8);
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
}


/* =============================================
   6. SERVICESセクション
   ============================================= */

.section-services {
  position: relative;
  padding: var(--section-py) 0;
  background: var(--color-bg-dark);
  color: var(--color-text-light);
  overflow: hidden;
}

/* ── グループ（WEB制作 / 紙媒体） ── */
.services-group {
  margin-bottom: 6rem;
}

/* グループのヘッダー（見出し＋説明） */
.services-group-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 1.5rem;
  margin-bottom: 3rem;
}

.services-group-header h3 {
  font-family: var(--font-jp);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 300;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
}

.services-group-header p {
  font-family: var(--font-jp);
  color: rgba(255, 255, 255, 0.5);
  font-weight: 300;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
}

/* ── プランカード（3列） ── */
.plan-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.plan-card {
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background 0.4s, transform 0.3s;
  cursor: default;
}

.plan-card:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-6px);
}

.plan-card h4 {
  font-family: var(--font-jp);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.plan-subtitle {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.plan-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  flex-grow: 1;
  margin-bottom: 2.5rem;
}

.plan-price {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.5rem;
}

/* 金額 */
.price-from {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  letter-spacing: 0.1em;
}

.price-from-suffix {
  font-family: var(--font-jp);
  font-size: 0.8rem;
  margin-left: 0.25rem;
}

/* ── 紙媒体アイテム（3列） ── */
.print-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.print-item {
  padding-bottom: 2rem;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  padding-right: 2rem;
}

/* 最後のアイテムは右ボーダーなし */
.print-item--last {
  border-right: none;
  padding-right: 0;
}

.print-item h4 {
  font-family: var(--font-jp);
  font-size: 1rem;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
}

.print-price {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  letter-spacing: 0.1em;
}

/* ── 注釈テキスト ── */
.services-note {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  text-align: right;
  margin-top: 1.5rem;
  font-family: var(--font-jp);
  letter-spacing: 0.03em;
}

/* ── ご相談ボックス ── */
.consultation-box {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 3.5rem 4rem;
  background: var(--color-bg);
  color: var(--color-text);
  position: relative;
}

.consultation-box h4 {
  font-family: var(--font-jp);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  margin-bottom: 1.5rem;
}

.consultation-box p {
  font-family: var(--font-jp);
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  line-height: 2.2;
}

/* 四隅のアクセント */
.consultation-box::before,
.consultation-box::after {
  content: '';
  position: absolute;
  width: 32px;
  height: 32px;
  border-color: rgba(26, 26, 26, 0.2);
  border-style: solid;
}

.consultation-box::before {
  top: 0;
  left: 0;
  border-width: 1px 0 0 1px;
}

.consultation-box::after {
  bottom: 0;
  right: 0;
  border-width: 0 1px 1px 0;
}


/* =============================================
   7. CONTACTセクション
   ============================================= */

.section-contact {
  position: relative;
  padding: var(--section-py) 0;
  background: var(--color-bg);
  overflow: hidden;
}

/* ── リード文 ── */
.contact-lead {
  text-align: center;
  font-family: var(--font-jp);
  font-size: 0.9rem;
  color: var(--color-text-muted);
  letter-spacing: 0.15em;
  margin-top: -2rem;
  margin-bottom: 4rem;
  line-height: 2;
}

/* ── フォーム全体 ── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

/* ── フォームグループ（ラベル＋入力） ── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.form-group label {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* 必須マーク */
.required {
  color: #c0392b;
  margin-left: 0.25rem;
}

/* ── 入力フィールド（テキスト・メール） ── */
.form-group input,
.form-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border);
  padding: 0.75rem 0;
  font-family: var(--font-jp);
  font-size: 1rem;
  font-weight: 300;
  color: var(--color-text);
  outline: none;
  resize: none;
  transition: border-color 0.3s;
  letter-spacing: 0.05em;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-border);
}

/* フォーカス時に線が暗くなる */
.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: var(--color-text);
}

/* ── 送信ボタン ── */
.form-submit {
  text-align: center;
  padding-top: 1.5rem;
}

.btn-submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.25rem 3.5rem;
  background: var(--color-text);
  color: var(--color-bg);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  overflow: hidden;
  transition: background 0.4s, transform 0.2s;
}

.btn-submit:hover {
  transform: scale(1.03);
}

/* 送信中（disabled）スタイル */
.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* 送信成功スタイル（JSで .is-success クラス付与） */
.btn-submit.is-success {
  background: hsl(142, 60%, 32%);
  color: #fff;
}

.btn-icon {
  font-size: 1rem;
  transition: transform 0.3s;
}

.btn-submit:hover:not(:disabled) .btn-icon {
  transform: translateX(4px);
}

/* ── 送信結果メッセージ ── */
.form-result {
  text-align: center;
  font-family: var(--font-jp);
  font-size: 0.85rem;
  padding: 0.75rem;
  letter-spacing: 0.05em;
  min-height: 2.5rem;
}

.form-result.success {
  color: hsl(142, 60%, 35%);
}

.form-result.error {
  color: #c0392b;
}


/* =============================================
   8. フッター
   ============================================= */

#footer {
  background: var(--color-text);
  color: var(--color-text-light);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

/* フッター上部のアクセントライン */
#footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 3rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

/* ロゴ */
.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  letter-spacing: 0.2em;
  font-weight: 500;
}

/* ナビゲーションリンク */
.footer-nav {
  display: flex;
  gap: 2rem;
}

.footer-nav a {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: rgba(255, 255, 255, 1);
}

/* コピーライト */
.footer-copy {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.3);
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  max-width: 480px;
}


/* =============================================
   9. スクロールアニメーション
   ============================================= */

/* 初期状態：非表示（下にずれている） */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fade-up 0.8s var(--ease-out) forwards;
}

/* スクロールで表示される要素の初期状態 */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease-out),
              transform 0.9s var(--ease-out);
}

/* JSで .revealed クラスが付いたとき表示 */
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}


/* =============================================
   10. キーフレームアニメーション
   ============================================= */

/* フェードアップ */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* フェードイン（不透明度 100%） */
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* SVG要素用：各不透明度にフェードイン */
@keyframes fade-to-06 { from { opacity: 0; } to { opacity: 0.06; } }
@keyframes fade-to-08 { from { opacity: 0; } to { opacity: 0.08; } }
@keyframes fade-to-12 { from { opacity: 0; } to { opacity: 0.12; } }
@keyframes fade-to-40 { from { opacity: 0; } to { opacity: 0.40; } }

/* 時計回り回転 */
@keyframes rotate-cw {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* 反時計回り回転 */
@keyframes rotate-ccw {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}

/* スクロールバーの動き */
@keyframes scroll-slide {
  0%   { top: -40%; }
  100% { top: 140%; }
}

/* 中心ドットのパルス */
@keyframes pulse-ring {
  0%, 100% {
    opacity: 0;
    transform: scale(0.5);
  }
  50% {
    opacity: 0.4;
    transform: scale(2);
  }
}


/* =============================================
   11. レスポンシブ（スマホ対応）
   ============================================= */

@media (max-width: 768px) {

  /* ── 変数の調整 ── */
  :root {
    --section-py: 5rem;
  }

  /* ── ナビ ── */
  .nav-inner {
    padding: 0 1.5rem;
  }

  /* ── ヒーロー ── */
  .hero-content {
    padding: 0 1.5rem;
  }

  /* ── コンテナ ── */
  .container {
    padding: 0 1.5rem;
  }

  /* ── 背景の装飾数字（スマホでは小さくする） ── */
  .section-number {
    font-size: 7rem;
    top: 3rem;
  }

  /* ── プランカード（スマホでは縦並び） ── */
  .plan-cards {
    grid-template-columns: 1fr;
  }

  /* ── 紙媒体アイテム（スマホでは縦並び） ── */
  .print-items {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .print-item,
  .print-item--last {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 2rem;
    padding-right: 0;
  }

  .print-item--last {
    border-bottom: none;
  }

  /* ── ご相談ボックス ── */
  .consultation-box {
    padding: 2.5rem 2rem;
  }

  /* ── デスクトップのナビリンクを隠す ── */
  .nav-links {
    display: none;
  }

  /* ── ハンバーガーボタンを表示（右位置をモバイル余白に合わせる） ── */
  .nav-hamburger {
    display: flex;
    right: 1.5rem;
  }

  /* ── スマホのみ表示する改行 ── */
  .mobile-br {
    display: block;
  }

  /* ── SCROLLインジケーターをセンターに固定 ── */
  .hero-scroll-indicator {
    left: 0;
    right: 0;
    transform: none;
    margin: 0 auto;
    width: fit-content;
  }

}
