/*
Theme Name:  Creative Office N
Theme URI:   https://creative-office-n.com/
Description: Creative Office N 公式 WordPress テーマ
Author:      Creative Office N
Version:     1.0.0
Text Domain: creative-office-n
*/

/* ================================================================
   1. CSS Custom Properties
   ================================================================ */
:root {
  /* --- Color --- */
  --navy:    #0b1326;
  --gold:    #d4af37;
  --gold-c:  #c29463;   /* Figma CONTACT ラベル */
  --white:   #ffffff;

  /* --- Layout size --- */
  --gnav-w:    70px;    /* Figma Gnav 幅 */
  --sidebar-w: 820px;   /* Figma CONTACT sidebar 幅 */

  /* --- Typography --- */
  --font-ja: 'Noto Sans JP', sans-serif;
  --font-en: 'Montserrat', sans-serif;

  --top-track-w: 2641px;
  --top-hero-w:  741px;
  --top-union-w: 645px;
  --top-watermark-w: 96px;
  --top-panel-w: 250px;
  --top-contact-w: calc(var(--top-track-w) - var(--top-hero-w) - (var(--top-panel-w) * 4)); /* 900px */

  /* WORKS ページ: design/02WORKS_制作実績.jpg 実測 (5894×2048 の2x書き出し → 実寸/2)
     実績はカスタム投稿タイプ化により件数が可変のため、トラック全幅は
     「イントロ + (アイテム幅250px × 件数) + CONTACT」から動的に算出する。
     --works-item-count は PHP (con_enqueue_works_dynamic_width) が実際の
     公開件数で上書きする (未上書き時は当初の4件を既定値とする)。 */
  --works-intro-w:   917px;
  --works-contact-w: 960px;
  --works-item-count: 4;
  --works-track-w:  calc(var(--works-intro-w) + (var(--top-panel-w) * var(--works-item-count)) + var(--works-contact-w));
  --works-bg-image: none; /* PHP (con_enqueue_works_bg) が実画像 URL に上書き */

  /* FAQ ページ: design/06FAQ_よくある質問.jpg 実測 (7474×2048 の2x書き出し → 実寸/2 - gnav幅) */
  --faq-track-w:   3667px;
  --faq-intro-w:   600px;
  --faq-col-w:     600px;
  --faq-col-gap:   105px;
  --faq-columns-w: calc((var(--faq-col-w) * 3) + (var(--faq-col-gap) * 2)); /* 2010px */
  --faq-contact-w: calc(var(--faq-track-w) - var(--faq-intro-w) - var(--faq-columns-w)); /* 1057px */

  /* BLOG ページ: design/07BLOG_ブログ.jpg 実測 (6214×2048 の2x書き出し → 実寸/2 - gnav幅) を基準に
     top-panel-w(250px) の単位でモジュール化 */
  --blog-track-w:   3025px;
  --blog-intro-w:   650px;
  --blog-card-w:    var(--top-panel-w); /* 250px */
  --blog-card-gap:  35px;
  --blog-card-count: 6;
  --blog-list-w:    calc((var(--blog-card-w) * var(--blog-card-count)) + (var(--blog-card-gap) * (var(--blog-card-count) - 1))); /* 1675px */
  --blog-contact-w: calc(var(--blog-track-w) - var(--blog-intro-w) - var(--blog-list-w)); /* 700px */

  /* --- 画面の高さが 1024px より低いときに上下を詰める量 ---
     1024px 以上: 0 (デザインどおり) / 723px: 301px。それより低い画面ではこれ以上は詰めない。
     各要素は「デザインの位置 − (この量 × 係数)」で上下の位置・余白だけを詰める (大きさは変えない) */
  --hdef: clamp(0px, 1024px - 100vh, 301px);

  /* --- Motion --- */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur:  0.3s;
}

/* ================================================================
   2. Reset
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

/* ================================================================
   3. Base
   ================================================================ */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-ja);
  background: var(--navy);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.8;
}

/* ================================================================
   3.5. サイトロゴ — 全ページ共通の固定ロゴ (クリックで TOP へ)
   TOP page (front-page.php) と同じ位置 (left 120px = gnav 70px + 50px / top 54.55px)
   ================================================================ */
#site-logo {
  position: fixed;
  left: 120px;
  top: 54.55px;
  z-index: 1001;
}
#site-logo img {
  width: 192px;
  height: 79px;
  object-fit: contain;
  display: block;
}
/* TOP ページは横スクロール内に独自のロゴ (.top-logo) を持つため重複を避ける */
body.home #site-logo {
  display: none;
}

/* ================================================================
   4. Gnav — 左固定ナビゲーション
   Figma: node 336:13433
   幅 70px / backdrop-blur(10px) / 縦書きナビ / 底部インジケーター
   ================================================================ */
#gnav {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--gnav-w);
  height: 100vh;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-right: 0.5px solid #ffffff;
  z-index: 1000;
}

/* デスクトップ：縦書きナビ本体
   Figma: top 137.5px / left 25px / gap 50px (リストとインジケーター) */
.gnav-body {
  position: absolute;
  top: calc(137.5px - var(--hdef) * 0.2558); /* 723px で 60.5px */
  left: 25px;
  width: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(50px - var(--hdef) * 0.0664); /* 723px で 30px */
}

/* ナビリスト: Figma gap 30px */
.gnav-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(30px - var(--hdef) * 0.0498); /* 723px で 15px */
}

/* ナビリンク: Figma Noto Sans JP Regular / 14px / white / text-shadow */
.gnav-link {
  writing-mode: vertical-rl;
  font-family: var(--font-ja);
  font-size: 14px;
  font-weight: 400;
  color: var(--white);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.25);
  letter-spacing: 0.1em;
  transition: opacity var(--dur) var(--ease);
}
.gnav-link:hover { opacity: 0.6; }

/* スクロールインジケーター (Figma: Group303 / 43×43px) */
.gnav-indicator { line-height: 0; }

/* モバイル要素（デスクトップでは非表示） */
.gnav-mobile-logo { display: none; }
.gnav-toggle      { display: none; }

/* ================================================================
   5. Page Layout
   Gnav 70px (fixed) | #main-content (可変) | #contact-sidebar 820px (fixed)
   ================================================================ */
#page-content {
  margin-left: var(--gnav-w);  /* Gnav 固定幅ぶんオフセット */
}

#main-content {
  margin-right: var(--sidebar-w); /* #contact-sidebar ぶんの余白 */
  min-height: 100vh;
}

/* TOPページ: sidebar を持たないため margin-right 不要 */
body.home #main-content {
  margin-right: 0;
}

/* ================================================================
   6. Contact Sidebar — 右固定サイドバー
   Figma: node 553:9121 / bg rgba(14,34,61,0.5) / padding 100px
   ================================================================ */
#contact-sidebar {
  position: fixed;
  right: 0;
  top: 0;
  width: var(--sidebar-w);
  height: 100vh;
  overflow-y: auto;
  overscroll-behavior: contain; /* 中身の端まで来ても、ページ全体に動きを伝えない */
  /* デザインの見た目の色 (#87909F)。以前は半透明の紺 rgba(14,34,61,0.5) で、
     背景が白いデザイン上ではこの色に見えていたが、実装の濃い背景の上では暗く見えていた。
     どのページでも同じ色に見えるよう不透明色にする */
  background: #87909f;
  padding: 100px;
  z-index: 100;
  display: flex;
  flex-direction: column;
}

/* ----------------------------------------------------------------
   Contact Sidebar — 内部コンテンツ
   Figma: node 553:9121 "Frame 621" / flex-col gap 60px
   ---------------------------------------------------------------- */
.sidebar-inner {
  display: flex;
  flex-direction: column;
  gap: 103px; /* デザイン実測: 会社情報の下端 → 入力欄の名前 約109px */
  flex-shrink: 0;
}

.sidebar-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: flex-start;
}

/* CONTACT ラベル: Figma Quattrocento (ウォーターマークと同系統のセリフ体) */
.sidebar-contact-label {
  font-family: 'Quattrocento', serif;
  font-size: 28px;
  color: var(--gold-c);
}

.sidebar-company {
  display: flex;
  flex-direction: column;
  gap: 6px; /* デザイン実測: 会社名の下端 → 本社 約20px */
  width: 100%; /* 親が align-items:flex-start のため、幅いっぱいにしないと本社/サテライトが縦に並ぶ */
}
.sidebar-company-name {
  font-weight: 700;
  font-size: 20px;
  color: var(--white);
}

/* 本社 / サテライトオフィス: 左右に横並び (デザイン: 各330px・間隔40px)
   パネルが狭いページ (BLOG 700px など) では2列のまま縮むが、行の途中で折り返さない幅は保つ */
.sidebar-offices {
  display: flex;
  gap: 40px;
  width: 100%;
}

/* <address> の既定 font-style:italic を解除 (「文字が斜め」の原因) */
.sidebar-office {
  font-style: normal;
  flex: 0 1 330px;
  min-width: max-content;
}
.sidebar-office-head {
  font-weight: 400; /* デザイン: 太字ではない */
  line-height: 23px;
}
/* 住所・営業時間: デザインは白の細字 (Light) で 16px。
   Mac の Chrome は既定の描き方だと細字が太めに出るため、antialiased でデザインの細さに近づける */
.sidebar-office-addr,
.sidebar-office-hours {
  font-size: 16px;
  font-weight: 300;
  line-height: 23px;
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.sidebar-office-hours {
  margin-top: 11.5px; /* デザイン実測: 住所 → 営業時間 */
}

.sidebar-form-wrap {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}
.sidebar-form {
  display: flex;
  flex-direction: column;
  gap: 30px; /* デザイン実測: 2段目の入力欄 → メッセージ本文 / 本文 → 同意欄 / 同意欄 → 送信 約30px */
  width: 100%;
}

.sidebar-form-cols {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 20px; /* デザイン実測: 入力欄どうしの左右の間隔 20px */
}
.sidebar-form-col {
  display: flex;
  flex-direction: column;
  gap: 16px; /* デザイン実測: 入力欄の下端 → 次の入力欄の名前 16px */
  flex: 1 1 260px;
}

.sidebar-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sidebar-field label {
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}
.sidebar-field input,
.sidebar-field textarea {
  width: 100%;
  border: none;
  border-radius: 0;
  font-size: 14px;
  background: var(--white);
}
.sidebar-field input {
  height: 30px; /* デザイン実測 */
  padding: 0 10px;
}
.sidebar-field--full textarea {
  height: 120px; /* デザイン実測 */
  padding: 8px 10px;
  resize: vertical;
}

.sidebar-privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 300;
  line-height: 20px;
}
.sidebar-privacy a {
  text-decoration: underline;
}
/* チェックボックス: デザインの平らな灰色の四角 (20px・枠なし・角丸なし) */
.sidebar-privacy input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin: 0;
  border: none;
  border-radius: 0;
  background: #939ba8;
  cursor: pointer;
  position: relative;
}
/* チェック時の印 (デザインに未チェック状態しかないため、白いチェック印を表示) */
.sidebar-privacy input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.sidebar-privacy input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

.sidebar-submit-row {
  display: flex;
  justify-content: center;
}
.sidebar-submit-btn {
  width: 100px;  /* デザイン実測 100×34 */
  height: 34px;
  border: 1px solid var(--white);
  background: transparent;
  color: var(--white);
  border-radius: 100px;
  padding: 0;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.sidebar-submit-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.sidebar-notice {
  font-size: 14px;
  line-height: 1.6;
}
.sidebar-notice--error {
  color: #ff8a8a;
}

/* コピーライト + SNS: 右下にまとめて配置 (デザイン実測: 右端・下端から 20px)
   パネルの padding 100px を負の margin で 20px まで戻す。内容が長いときは内容の下に来る */
.sidebar-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  align-self: flex-end;
  margin: auto -80px -80px 0;
  padding-top: 40px;
}
.sidebar-copy {
  font-size: 15.5px; /* デザイン実測: 文字列の幅・高さから約15.5px */
  font-weight: 300;
}
.sidebar-social {
  display: flex;
  gap: 20px;
}
/* アイコンを行の高さぴったりにする (インラインのままだと文字の下の余白ぶん上にずれる) */
.sidebar-social-link svg {
  display: block;
}

/* ----------------------------------------------------------------
   Contact Form 7 — CONTACT 欄のフォーム
   CF7 が出力する部品 (入力欄を囲む span・送信中の印・メッセージ) を
   これまでのフォームと同じ見た目・配置にそろえる。
   CF7 の CSS より後から効くよう #contact-sidebar を付けて指定する。
   ---------------------------------------------------------------- */
/* 入力欄を囲む span をブロックにし、入力欄の幅・高さをこれまでどおりにする */
#contact-sidebar .sidebar-field .wpcf7-form-control-wrap {
  display: block;
}
#contact-sidebar .sidebar-field--full textarea {
  display: block;
}

/* 同意のチェックボックス: CF7 の余白 (左 1em) を消し、これまでどおり中央に並べる */
#contact-sidebar .sidebar-privacy {
  position: relative;
}
#contact-sidebar .sidebar-privacy .wpcf7-form-control-wrap {
  position: static; /* 未同意のメッセージを .sidebar-privacy 基準で置くため */
  display: flex;
}
#contact-sidebar .sidebar-privacy .wpcf7-acceptance,
#contact-sidebar .sidebar-privacy .wpcf7-list-item {
  display: flex;
  margin: 0;
}

/* 送信ボタン (CF7 は <input type="submit">) */
#contact-sidebar .sidebar-submit-btn {
  -webkit-appearance: none;
  appearance: none;
}
#contact-sidebar .sidebar-submit-btn:disabled {
  cursor: default;
  opacity: 0.6;
}
/* 送信中の印: ボタンの右に重ねて置き、ボタンの中央寄せを崩さない */
#contact-sidebar .sidebar-submit-row {
  position: relative;
}
#contact-sidebar .sidebar-submit-row .wpcf7-spinner {
  position: absolute;
  left: calc(50% + 50px + 16px);
  top: 50%;
  margin: -12px 0 0;
}

/* 未入力などのメッセージ (各項目の下): CONTACT 欄の中で読める淡い黄色 */
#contact-sidebar .wpcf7-not-valid-tip {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  color: #ffeeb3;
}
/* 同意の未チェックのメッセージ: 同意の行の真下・中央 (送信ボタンとの間) に出す */
#contact-sidebar .sidebar-privacy .wpcf7-not-valid-tip {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 4px;
  text-align: center;
}

/* 送信結果のメッセージ (送信ボタンの下)。枠の色は CF7 の状態ごとの色 (送信完了=緑・入力不備=黄 など) */
#contact-sidebar .wpcf7 form .wpcf7-response-output {
  margin: 0;
  padding: 10px 16px;
  border-width: 1px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--white);
  text-align: center;
}

/* ================================================================
   7. Responsive — 1024px 以下
   ================================================================ */
@media (max-width: 1024px) {

  /* --- Sidebar 非表示 --- */
  #contact-sidebar {
    display: none;
  }

  /* --- モバイルは .gnav-mobile-logo が同じ役割を担うため非表示 --- */
  #site-logo {
    display: none;
  }

  /* --- 右マージン解除 --- */
  #main-content {
    margin-right: 0;
  }

  /* --- Gnav をモバイルトップバーに変更 --- */
  #gnav {
    width: 100%;
    height: 60px;
    border-right: none;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.4);
  }

  .gnav-body { display: none; }

  .gnav-body.open {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    position: fixed;
    inset: 60px 0 0 0;
    background: rgba(11, 19, 38, 0.97);
    z-index: 999;
  }

  .gnav-body.open .gnav-list {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem 2rem;
  }

  .gnav-body.open .gnav-link {
    writing-mode: horizontal-tb;
    font-size: 1rem;
    letter-spacing: 0.15em;
  }

  .gnav-mobile-logo {
    display: flex;
    align-items: center;
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--white);
    font-family: var(--font-en);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
  }
  .gnav-mobile-logo em { font-style: normal; color: var(--gold); }

  .gnav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
  }
  .gnav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: transform var(--dur) var(--ease), opacity var(--dur);
  }

  #page-content {
    margin-left: 0;
    padding-top: 60px;
  }
}

/* ================================================================
   8. TOP Page — Figma: node 553:8152
   横スクロールトラック 2641px / FV 741px + パネル 1000px + CONTACT 900px
   ================================================================ */

body.home {
  overflow: hidden;
}
body.home #main-content {
  margin-right: 0;
  height: 100vh;
  overflow: hidden;
}

/* ----------------------------------------------------------------
   ラッパー
   ---------------------------------------------------------------- */
.top-wrapper {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* ----------------------------------------------------------------
   背景 — 動画 + ::before フォールバック (CSS変数 --top-bg-image)
   z-index: 0 で最背面。子要素に z-index を付けない（mix-blend 合成を妨げない）
   ---------------------------------------------------------------- */
.top-bg {
  /* fixed + inset:0 でビューポート全体に敷く (GNAV の裏側まで届かせる) */
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.top-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--top-bg-image);
  background-size: cover;
  background-position: center;
  opacity: 0.7;
}
.top-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.7;
}
/* TOP の背景をもっと鮮やかに・濃く (2026-10-16 ご指示): 色の鮮やかさを上げ、少し暗くする */
body.home .top-bg-video,
body.home .top-bg::before {
  opacity: 1;
  filter: saturate(1.8) brightness(0.82) contrast(1.08);
}
/* フィルムグレイン — Figma: 写真全体に粒状ノイズが乗っている */
.top-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
  opacity: 0.4;
  mix-blend-mode: overlay;
}

/* ----------------------------------------------------------------
   横スクロール共通 — 右端に「次のセクションがうっすら透けて見える」効果
   viewport (可視幅=固定) 自体に mask-image を掛けることで、スクロール位置に
   関わらず「画面右端の一定範囲は薄く」という状態を常に保つ。トラック側に
   掛けると全長に対する割合になってしまうため viewport 側に適用する。
   スクロールでその範囲を通過した瞬間に、同じマスクの中央側(黒=不透明)に
   入るため自然にはっきり見える状態へ切り替わる。
   ---------------------------------------------------------------- */
/* 右端の濃さ (0.32=ぼかしあり / 1=ぼかしなし)。@property で登録して切り替えをなめらかにする */
@property --hscroll-edge-alpha {
  syntax: '<number>';
  inherits: false;
  initial-value: 0.32;
}
.top-scroll-viewport,
.works-scroll-viewport,
.faq-scroll-viewport,
.blog-scroll-viewport,
.plan-scroll-viewport,
.business-scroll-viewport {
  --hscroll-edge-alpha: 0.32;
  -webkit-mask-image: linear-gradient(to right, #000 0%, #000 82%, rgba(0, 0, 0, var(--hscroll-edge-alpha)) 100%);
  mask-image: linear-gradient(to right, #000 0%, #000 82%, rgba(0, 0, 0, var(--hscroll-edge-alpha)) 100%);
  transition: --hscroll-edge-alpha 0.4s ease-out;
}
/* いちばん右までスクロールしたとき (theme.js が .is-scroll-end を付ける) はぼかしを消す */
.top-scroll-viewport.is-scroll-end,
.works-scroll-viewport.is-scroll-end,
.faq-scroll-viewport.is-scroll-end,
.blog-scroll-viewport.is-scroll-end,
.plan-scroll-viewport.is-scroll-end,
.business-scroll-viewport.is-scroll-end {
  --hscroll-edge-alpha: 1;
}

/* ----------------------------------------------------------------
   横スクロール viewport / トラック
   背景(z-index:0)の上に DOM 順で重ねる（z-index なしで mix-blend を通す）
   ---------------------------------------------------------------- */
.top-scroll-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  outline: none;
  background: transparent;
}
.top-scroll-viewport::-webkit-scrollbar {
  display: none;
}

.top-content-track {
  display: flex;
  width: var(--top-track-w);
  height: 100%;
  flex-shrink: 0;
}

/* ----------------------------------------------------------------
   FV ヒーロー — Union 645px + ウォーターマーク 96px = 741px
   ---------------------------------------------------------------- */
.top-hero-section {
  position: relative;
  width: var(--top-hero-w);
  height: 100%;
  flex-shrink: 0;
  display: flex;
  overflow: hidden;
}

.top-union {
  width: var(--top-union-w);
  height: 100%;
  flex-shrink: 0;
  pointer-events: none;
  /* TOP.jpg 実測: グロー中心は R/G がほぼ同値の紫寄りのトーン (青緑寄りではない) */
  background:
    radial-gradient(
      ellipse 70% 55% at 45% 35%,
      rgba(225, 222, 248, 0.55) 0%,
      rgba(195, 195, 230, 0.32) 40%,
      rgba(150, 165, 210, 0.12) 65%,
      transparent 85%
    );
}
.top-union img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.top-watermark {
  width: var(--top-watermark-w);
  height: 100%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
}
.top-watermark-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  /* Figma 基準高さ 1024px に対する比率 (1080px / 109px) を vh に変換
     固定 px だと画面の高さが低い実機で文字が上下に大きくはみ出すため */
  width: 105.5vh;
  height: 10.6vh;
  transform: rotate(-90deg);
  flex-shrink: 0;
}
.top-watermark-text {
  font-family: 'Quattrocento', serif;
  font-size: 11.7vh;
  color: #e5e8f0;
  letter-spacing: 1.17vh;
  white-space: nowrap;
  line-height: 1.3;
}

/* ヒーローオーバーレイ — Figma: 553:8166 / left 50px / top 54.55px / 542×915 */
.top-hero-overlay {
  position: absolute;
  left: 50px;
  top: 54.55px;
  width: 542px;
  height: 915px;
  pointer-events: none;
  z-index: 2;
}

.top-hero-left {
  position: absolute;
  left: 0;
  top: 0;
  width: 288px;
  height: 915px;
}

.top-logo {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: auto;
}
.top-logo a {
  display: block;
}
.top-logo img {
  width: 192px;
  height: 79px;
  object-fit: contain;
  display: block;
}

.top-catchphrase {
  position: absolute;
  left: 0;
  top: calc(807px - var(--hdef)); /* 画面の下端からの距離をデザインと同じに保つ */
  font-family: var(--font-ja);
  font-size: 36px;
  font-weight: 400;
  color: var(--white);
  text-shadow: 0 4px 4px rgba(14, 44, 76, 0.3);
  letter-spacing: 18px;
  line-height: 54px;
  text-align: right;
  /* 親 .top-hero-overlay (542px) と幅を合わせる。552px のままだと右端が overflow:hidden で欠ける */
  width: 542px;
}
.top-catchphrase p { margin: 0; }

/* Scroll インジケーター — Figma: 553:8170 / left 388 / top 439.5 / 154×36 */
.top-scroll-indicator {
  position: absolute;
  left: 388px;
  top: 439.5px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--white);
  padding: 10px 100px 10px 10px;
}
.top-scroll-indicator::before {
  content: '';
  position: absolute;
  left: 0;
  /* border-bottom の線上にドットを重ねる (以前は top:31px でテキスト直下に浮いていた) */
  bottom: -5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--white);
}
.top-scroll-text {
  font-family: 'Gabarito', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--white);
  white-space: nowrap;
}

/* ----------------------------------------------------------------
   パネル列 — 4 × 250px = 1000px / タイトルのみ
   ---------------------------------------------------------------- */
.top-panels {
  display: flex;
  width: calc(var(--top-panel-w) * 4);
  height: 100%;
  flex-shrink: 0;
}

.top-panel {
  position: relative;
  width: var(--top-panel-w);
  height: 100%;
  flex-shrink: 0;
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: var(--white);
  cursor: pointer;
  background: transparent;
}

.top-panel-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.top-panel--works    .top-panel-overlay { background-color: #45608f; }
.top-panel--plan     .top-panel-overlay { background-color: #314166; }
.top-panel--business .top-panel-overlay { background-color: #586b8a; }
.top-panel--blog     .top-panel-overlay { background-color: #3b6089; }

.top-panel-title-col {
  position: relative;
  z-index: 1;
  mix-blend-mode: normal;
  width: 100%;
  height: 100%;
  padding: 10px;
}

.top-panel-labels {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  text-shadow: 0 4px 4px rgba(14, 44, 76, 0.25);
}
/* Figma タイトル位置 (パネル内 px) */
.top-panel-labels--works    { left: 78px;  top: 481px; }
.top-panel-labels--plan      { left: 85px;  top: 481px; }
.top-panel-labels--business  { left: 62.5px; top: 452.5px; }
.top-panel-labels--blog      { left: 90.5px; top: 481px; }

.top-panel-en {
  font-family: 'Gabarito', sans-serif;
  font-weight: 500;
  font-size: 24px;
  letter-spacing: 2.4px;
  line-height: normal;
  display: block;
  color: var(--white);
}
.top-panel-en--semibold { font-weight: 600; }

.top-panel-ja {
  font-family: var(--font-ja);
  font-size: 16px;
  font-weight: 500;
  line-height: normal;
  display: block;
}

/* ----------------------------------------------------------------
   CONTACT — sidebar-contact.php を track 内パネルとして再利用
   Figma 数値: 741(FV) + 1000(4panels) + 900(CONTACT) = 2641 (--top-track-w)
   ---------------------------------------------------------------- */
body.home #contact-sidebar {
  position: relative;
  top: auto;
  right: auto;
  width: var(--top-contact-w);
  height: 100%;
  flex-shrink: 0;
  z-index: auto;
}

/* ================================================================
   9. WORKS Page — design/02WORKS_制作実績.jpg
   横スクロールトラック 2877px / イントロ 917px + アイテム 1000px(250×4) + CONTACT 960px
   ================================================================ */

.page-template-page-works-php {
  overflow: hidden;
}
.page-template-page-works-php #main-content {
  margin-right: 0;
  height: 100vh;
  overflow: hidden;
}

.works-wrapper {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* ----------------------------------------------------------------
   背景 — 動画 + ::before フォールバック画像 (CSS変数 --works-bg-image)
   TOP ページ .top-bg と同一パターン。fixed + inset:0 で GNAV の裏側も含め
   画面全体に敷く (スクロールでは動かない固定バックドロップ)
   ---------------------------------------------------------------- */
.works-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  /* TOP ページのパネル (#45608f 等) と同系統の青を全面のベースカラーに敷く。
     --navy (#0b1326) は黒に近すぎて「青」に見えないため使わない */
  background-color: #3d5c8f;
}
.works-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--works-bg-image);
  background-size: cover;
  background-position: center;
  opacity: 0.15;
}
.works-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.15;
}
/* フィルムグレイン — .top-bg::after と同じ手法 */
.works-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
  opacity: 0.4;
  mix-blend-mode: overlay;
}
/* ----------------------------------------------------------------
   横スクロール viewport / トラック
   ---------------------------------------------------------------- */
.works-scroll-viewport {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  outline: none;
}
.works-scroll-viewport::-webkit-scrollbar {
  display: none;
}

.works-content-track {
  position: relative;
  display: flex;
  width: var(--works-track-w);
  height: 100%;
  flex-shrink: 0;
  /* 背景は .works-bg (固定・動画) が担うため、ここでは透過のまま */
}

/* ----------------------------------------------------------------
   イントロ — パンくず・タイトル・フィルター (917px)
   ---------------------------------------------------------------- */
.works-intro {
  position: relative;
  width: var(--works-intro-w);
  height: 100%;
  flex-shrink: 0;
}

.works-filters {
  position: absolute;
  left: 561px;
  top: calc(370px - var(--hdef) * 0.3); /* 723px で 280px */
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.works-filter-btn {
  border: 1px solid var(--white);
  background: transparent;
  color: var(--white);
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0.1em;
  padding: 10px 24px;
  cursor: pointer;
}
.works-filter-btn[aria-selected="true"] {
  background: var(--white);
  color: #3d5478;
  border-color: var(--white);
}

.works-title-block {
  position: absolute;
  left: 50px;
  bottom: 47px; /* デザイン実測: パンくずの位置 */
}
.works-title {
  display: flex;
  flex-direction: column;
  gap: 10px; /* デザイン実測: 英字の下端 → 日本語 約40px */
}
.works-title-en {
  font-family: var(--font-en);
  font-weight: 100;
  font-size: 100px; /* デザイン実測: 大文字の高さ 70px */
  line-height: 1;
  color: #dddddd;
}
.works-title-ja {
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 32px; /* デザイン実測 */
  color: #dddddd;
}
.works-breadcrumb {
  margin-top: 14.5px; /* デザイン実測: 日本語の下端 → パンくず 約36px */
}
.works-breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ja);
  font-size: 14px; /* デザイン実測 */
  color: rgba(255, 255, 255, 0.7);
}
.works-breadcrumb li:not(:last-child)::after {
  content: '>';
  margin-left: 8px;
}
.works-breadcrumb a:hover {
  opacity: 0.7;
}

/* ----------------------------------------------------------------
   実績一覧 — 250px × 4 (TOP パネルと同じ幅の単位を再利用)
   ---------------------------------------------------------------- */
.works-list {
  position: relative; /* .works-empty (Coming soon) の絶対配置の基準 */
  display: flex;
  height: 100%;
  min-width: 500px; /* 絞り込みで0件になった際も .works-empty を表示するための最低幅 */
  flex-shrink: 0;
}
.works-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.55);
}
.works-empty[hidden] {
  display: none;
}
.works-item {
  position: relative;
  width: var(--top-panel-w);
  height: 100%;
  flex-shrink: 0;
  padding: calc(370px - var(--hdef) * 0.3) 30px 0; /* フィルターと同じ高さから始める */
}
.works-item-number {
  display: block;
  font-family: var(--font-en);
  font-weight: 400;
  font-size: 32px;
  color: var(--white);
  margin-bottom: 20px;
}
.works-item-thumb-btn {
  display: block;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.works-item-thumb {
  width: 190px;
  height: 190px;
  overflow: hidden;
  /* 白背景の画像 (例: ロゴ系) が白いページ背景に溶けて枠が見えなくなるのを防ぐ */
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: opacity var(--dur) var(--ease);
}
.works-item-thumb-btn:hover .works-item-thumb,
.works-item-thumb-btn:focus-visible .works-item-thumb {
  opacity: 0.8;
}
.works-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.works-item-client {
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 18px;
  color: var(--white);
  margin-top: 24px;
}
.works-item-type {
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 8px;
}


/* ----------------------------------------------------------------
   CONTACT — sidebar-contact.php を track 内パネルとして再利用
   ---------------------------------------------------------------- */
.works-content-track #contact-sidebar {
  position: relative;
  top: auto;
  right: auto;
  width: var(--works-contact-w);
  height: 100%;
  flex-shrink: 0;
  z-index: auto;
}

/* ----------------------------------------------------------------
   実績詳細モーダル — サムネイルクリックでふわっと表示
   横スクロールトラックの外 (.works-wrapper 直下) に置き、
   viewport 全体に固定表示する。中身は theme.js が動的に差し替える。
   ---------------------------------------------------------------- */
.works-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.works-modal[hidden] {
  display: none;
}
.works-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 19, 38, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.works-modal.is-open .works-modal-backdrop {
  opacity: 1;
}

.works-modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 860px;
  max-height: 85vh;
  overflow-y: auto;
  background: #16294a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 60px;
  opacity: 0;
  transform: translateY(16px) scale(0.97);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.works-modal.is-open .works-modal-dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.works-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: var(--white);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background var(--dur) var(--ease);
}
.works-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.works-modal-image {
  width: 100%;
  margin-bottom: 30px;
  background: #0e223d;
}
.works-modal-image img {
  width: 100%;
  height: auto;
  max-height: 50vh;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.works-modal-client {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 24px;
  color: var(--white);
  margin-bottom: 8px;
}
.works-modal-type {
  font-family: var(--font-ja);
  font-weight: 300;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 28px;
}
.works-modal-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--white);
  border-radius: 100px;
  padding: 10px 28px;
  color: var(--white);
  font-family: var(--font-en);
  font-size: 14px;
  transition: background var(--dur) var(--ease);
}
.works-modal-link:hover {
  background: rgba(255, 255, 255, 0.1);
}
.works-modal-link[hidden] {
  display: none;
}

@media (max-width: 640px) {
  .works-modal-dialog {
    padding: 40px 24px;
  }
}

/* ================================================================
   10. FAQ Page — design/06FAQ_よくある質問.jpg
   横スクロールトラック 3667px / イントロ 600px + カテゴリ列 2010px(600×3+105×2) + CONTACT 1057px
   ================================================================ */

.page-template-page-faq-php {
  overflow: hidden;
}
.page-template-page-faq-php #main-content {
  margin-right: 0;
  height: 100vh;
  overflow: hidden;
}

.faq-wrapper {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* ----------------------------------------------------------------
   背景 — 専用の書き出し画像/動画を持たないため、TOP の .top-union と
   同系統のラジアルグラデーション + フィルムグレインで再現
   ---------------------------------------------------------------- */
.faq-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  background-color: #16294a;
  background-image:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(120, 150, 200, 0.35) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 70% 70%, rgba(90, 120, 170, 0.25) 0%, transparent 70%);
}
.faq-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
  opacity: 0.4;
  mix-blend-mode: overlay;
}

/* ----------------------------------------------------------------
   横スクロール viewport / トラック
   ---------------------------------------------------------------- */
.faq-scroll-viewport {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  outline: none;
}
.faq-scroll-viewport::-webkit-scrollbar {
  display: none;
}

.faq-content-track {
  position: relative;
  display: flex;
  width: var(--faq-track-w);
  height: 100%;
  flex-shrink: 0;
}

/* ----------------------------------------------------------------
   イントロ — パンくず・タイトル (600px)
   ---------------------------------------------------------------- */
.faq-intro {
  position: relative;
  width: var(--faq-intro-w);
  height: 100%;
  flex-shrink: 0;
}

.faq-title-block {
  position: absolute;
  left: 50px;
  bottom: 47px; /* デザイン実測: パンくずの位置 */
}
.faq-title {
  display: flex;
  flex-direction: column;
  gap: 10px; /* デザイン実測: 英字の下端 → 日本語 約40px */
}
.faq-title-en {
  font-family: var(--font-en);
  font-weight: 100;
  font-size: 100px; /* デザイン実測: 大文字の高さ 70px */
  line-height: 1;
  color: #dddddd;
}
.faq-title-ja {
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 32px; /* デザイン実測 */
  color: #dddddd;
}
.faq-breadcrumb {
  margin-top: 14.5px; /* デザイン実測: 日本語の下端 → パンくず 約36px */
}
.faq-breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ja);
  font-size: 14px; /* デザイン実測 */
  color: rgba(255, 255, 255, 0.7);
}
.faq-breadcrumb li:not(:last-child)::after {
  content: '>';
  margin-left: 8px;
}
.faq-breadcrumb a:hover {
  opacity: 0.7;
}

/* ----------------------------------------------------------------
   カテゴリ列 — GRAPHIC / WEB / OTHERS (600px × 3 / gap 105px)
   ---------------------------------------------------------------- */
.faq-columns {
  display: flex;
  gap: var(--faq-col-gap);
  height: 100%;
  flex-shrink: 0;
  padding-top: calc(190px - var(--hdef) * 0.1329); /* 723px で 150px (ロゴ・戻るボタンの下) */
}
.faq-category {
  width: var(--faq-col-w);
  flex-shrink: 0;
}
.faq-category-title {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 0.2em;
  color: var(--white);
  line-height: calc(50.4px - var(--hdef) * 0.0532); /* 1024px では従来の 1.8 と同じ */
  margin-bottom: calc(40px - var(--hdef) * 0.0664);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: calc(24px - var(--hdef) * 0.0532); /* 723px で 8px */
}
.faq-item {
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  overflow: hidden;
}
.faq-question {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  /* 画面の高さが 1024px より低いときだけ上下の余白を詰めてカードを小さくする
     (723px で 19.5px: 5つ目のカードまで画面に収まる最小限。1024px 以上は 24px のまま) */
  padding: calc(24px - var(--hdef) * 0.01495) 28px;
  background: transparent;
  border: none;
  color: var(--white);
  text-align: left;
  cursor: pointer;
}
.faq-q-icon {
  flex-shrink: 0;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 32px;
  line-height: 1;
}
.faq-q-text {
  font-family: var(--font-ja);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
}
.faq-answer {
  padding: 0 28px 24px 76px;
  font-family: var(--font-ja);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
}
.faq-item.is-open .faq-question {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* ----------------------------------------------------------------
   CONTACT — sidebar-contact.php を track 内パネルとして再利用
   ---------------------------------------------------------------- */
.faq-content-track #contact-sidebar {
  position: relative;
  top: auto;
  right: auto;
  width: var(--faq-contact-w);
  height: 100%;
  flex-shrink: 0;
  z-index: auto;
}

/* ================================================================
   11. BLOG Page — design/07BLOG_ブログ.jpg / 07BLOG_ブログ（詳細）.jpg
   横スクロールトラック 3025px / イントロ+ARCHIVES 650px + 記事一覧 1675px(250×6+35×5) + CONTACT 700px
   一覧⇄詳細は同一トラック内でのパネル表示切替 (別ページ遷移・モーダルなし)
   ================================================================ */

.page-template-page-blog-php {
  overflow: hidden;
}
.page-template-page-blog-php #main-content {
  margin-right: 0;
  height: 100vh;
  overflow: hidden;
}

.blog-wrapper {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* ----------------------------------------------------------------
   背景 — .faq-bg と同系統のグラデーション + フィルムグレイン
   ---------------------------------------------------------------- */
.blog-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  background-color: #1c3358;
  background-image:
    radial-gradient(ellipse 60% 55% at 25% 25%, rgba(110, 145, 195, 0.3) 0%, transparent 70%),
    radial-gradient(ellipse 55% 60% at 75% 75%, rgba(90, 120, 170, 0.22) 0%, transparent 70%);
}
.blog-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
  opacity: 0.4;
  mix-blend-mode: overlay;
}

/* ----------------------------------------------------------------
   横スクロール viewport / トラック
   ---------------------------------------------------------------- */
.blog-scroll-viewport {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  outline: none;
}
.blog-scroll-viewport::-webkit-scrollbar {
  display: none;
}

.blog-content-track {
  position: relative;
  display: flex;
  width: var(--blog-track-w);
  height: 100%;
  flex-shrink: 0;
}

/* ----------------------------------------------------------------
   イントロ — パンくず・タイトル・ARCHIVES (650px)
   ---------------------------------------------------------------- */
.blog-intro {
  position: relative;
  width: var(--blog-intro-w);
  height: 100%;
  flex-shrink: 0;
}

.blog-title-block {
  position: absolute;
  left: 50px;
  bottom: 47px; /* デザイン実測: パンくずの位置 */
}
.blog-title {
  display: flex;
  flex-direction: column;
  gap: 10px; /* デザイン実測: 英字の下端 → 日本語 約40px */
}
.blog-title-en {
  font-family: var(--font-en);
  font-weight: 100;
  font-size: 100px; /* デザイン実測: 大文字の高さ 70px */
  line-height: 1;
  color: #dddddd;
}
.blog-title-ja {
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 32px; /* デザイン実測 */
  color: #dddddd;
}
.blog-breadcrumb {
  margin-top: 14.5px; /* デザイン実測: 日本語の下端 → パンくず 約36px */
}
.blog-breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ja);
  font-size: 14px; /* デザイン実測 */
  color: rgba(255, 255, 255, 0.7);
}
.blog-breadcrumb li:not(:last-child)::after {
  content: '>';
  margin-left: 8px;
}
.blog-breadcrumb a:hover {
  opacity: 0.7;
}

/* --- ARCHIVES ボックス --- */
.blog-archive {
  position: absolute;
  left: 350px;
  top: 260px;
  width: 260px;
}
.blog-archive-label {
  background: var(--white);
  color: #2c4a70;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.1em;
  text-align: center;
  padding: 14px 0;
}
.blog-archive-body {
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 20px 0 26px;
}
.blog-archive-year {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: transparent;
  border: none;
  color: var(--white);
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 26px;
  padding: 6px 0 18px;
  cursor: pointer;
}
.blog-archive-year::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 8px solid var(--white);
  transition: transform var(--dur) var(--ease);
}
.blog-archive-year[aria-expanded="false"]::after {
  transform: rotate(180deg);
}
.blog-archive-months {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.blog-archive-months[hidden] {
  display: none;
}
.blog-archive-month {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-en);
  font-size: 18px;
  padding: 8px 0;
  cursor: pointer;
}
.blog-archive-month.is-active {
  color: var(--white);
  font-weight: 700;
}
.blog-archive-month:hover {
  opacity: 0.8;
}

/* ----------------------------------------------------------------
   記事一覧 — 250px × 6 / gap 35px
   ---------------------------------------------------------------- */
.blog-detail-slot > .blog-list {
  position: absolute;
  inset: 0;
}
.blog-list {
  display: flex;
  align-items: flex-start;
  gap: var(--blog-card-gap);
  height: 100%;
  flex-shrink: 0;
  padding-top: 250px;
}
.blog-list[hidden],
.blog-detail[hidden] {
  display: none;
}
.blog-card {
  width: var(--blog-card-w);
  flex-shrink: 0;
}
.blog-card-link {
  display: block;
  color: var(--white);
}
.blog-card-meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}
.blog-card-year {
  font-family: var(--font-en);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}
.blog-card-title {
  font-family: var(--font-ja);
  font-size: 15px;
  font-weight: 500;
}
.blog-card-date-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.blog-card-date {
  font-family: var(--font-en);
  font-size: 26px;
  font-weight: 400;
}
.blog-card-cat {
  background: var(--white);
  color: #2c4a70;
  font-size: 12px;
  font-weight: 500;
  border-radius: 100px;
  padding: 4px 14px;
  white-space: nowrap;
}
.blog-card-thumb {
  width: 100%;
  height: 150px;
  overflow: hidden;
  background: #a8a8a8;
}
.blog-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-card-excerpt {
  font-family: var(--font-ja);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ----------------------------------------------------------------
   記事詳細パネル — 一覧と同じ枠(track内 --blog-list-w 分の領域)に重ねて表示
   ---------------------------------------------------------------- */
.blog-detail-slot {
  position: relative;
  width: var(--blog-list-w);
  height: 100%;
  flex-shrink: 0;
}
.blog-detail {
  position: absolute;
  top: 0;
  left: 0;
  width: 1050px;
  max-width: 100%;
  height: 100%;
  padding: 100px 60px 60px;
  display: flex;
  flex-direction: column;
}
.blog-detail[hidden] {
  display: none;
}
.blog-detail-close {
  position: absolute;
  top: 40px;
  right: 60px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: var(--white);
  font-family: var(--font-en);
  font-size: 14px;
  letter-spacing: 0.05em;
  cursor: pointer;
}
.blog-detail-head {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  flex-shrink: 0;
}
.blog-detail-date-badge {
  flex-shrink: 0;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--white);
  color: #2c4a70;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  line-height: 1.3;
}
.blog-detail-date-badge span:first-child { font-size: 14px; }
.blog-detail-date-badge span:last-child   { font-size: 20px; }
.blog-detail-title-wrap {
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 14px;
}
.blog-detail-title {
  font-family: var(--font-ja);
  font-size: 26px;
  font-weight: 500;
  margin-bottom: 12px;
}
.blog-detail-cat {
  display: inline-block;
  background: var(--white);
  color: #2c4a70;
  font-size: 12px;
  font-weight: 500;
  border-radius: 100px;
  padding: 4px 14px;
}
.blog-detail-scroll {
  flex: 1;
  overflow-y: auto;
  margin-top: 40px;
  scrollbar-width: thin;
}
.blog-detail-thumb {
  width: 100%;
  max-width: 460px;
  height: 300px;
  background: #a8a8a8;
  overflow: hidden;
}
.blog-detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-detail-body {
  margin-top: 30px;
  max-width: 620px;
  font-family: var(--font-ja);
  font-size: 14px;
  font-weight: 300;
  line-height: 2;
  color: rgba(255, 255, 255, 0.85);
}
.blog-detail-scroll-label {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
}

/* ----------------------------------------------------------------
   CONTACT — sidebar-contact.php を track 内パネルとして再利用
   ---------------------------------------------------------------- */
.blog-content-track #contact-sidebar {
  position: relative;
  top: auto;
  right: auto;
  width: var(--blog-contact-w);
  height: 100%;
  flex-shrink: 0;
  z-index: auto;
}

/* ================================================================
   12. COMPANY Page — design/COMPANY_アコーディオン.jpg
   TOP/WORKS/FAQ/BLOG と異なり横スクロールトラックを使わない通常の縦スクロールページ。
   Gnav 固定 70px / CONTACT 固定 820px(デフォルトのサイト共通レイアウトをそのまま使用) は
   footer.php が自動で sidebar-contact.php を描画するため、本テンプレート側での特別な
   margin/overflow 上書きは不要。
   ================================================================ */

.company-hero {
  position: relative;
  min-height: 100vh;
}

/* --- 背景: .faq-bg と同系統のグラデーション + フィルムグレイン + company-ellipse 装飾 --- */
.company-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  background-color: #16294a;
  background-image:
    radial-gradient(ellipse 55% 50% at 30% 20%, rgba(120, 150, 200, 0.3) 0%, transparent 70%),
    radial-gradient(ellipse 50% 55% at 80% 60%, rgba(90, 120, 170, 0.2) 0%, transparent 70%);
}
.company-bg-ellipse {
  position: absolute;
  top: 10%;
  left: 30%;
  width: 55%;
  max-width: 900px;
  opacity: 0.5;
}
.company-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
  opacity: 0.4;
  mix-blend-mode: overlay;
}

.company-hero-inner {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 160px 50px 47px; /* 下 47px: デザイン実測のパンくずの位置 */
}

/* --- タイトル --- */
.company-title-block {
  margin-top: 80px;
}
.company-title {
  display: flex;
  flex-direction: column;
  gap: 1px; /* デザイン実測: 英字の下端 → 日本語 約31px */
}
.company-title-en {
  font-family: var(--font-en);
  font-weight: 100;
  font-size: 100px; /* デザイン実測: 大文字の高さ 70px */
  line-height: 1;
  color: #dddddd;
}
.company-title-ja {
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 32px; /* デザイン実測 */
  color: #dddddd;
}
.company-breadcrumb {
  margin-top: 14.5px; /* デザイン実測: 日本語の下端 → パンくず 約36px */
}
.company-breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ja);
  font-size: 14px; /* デザイン実測 */
  color: rgba(255, 255, 255, 0.7);
}
.company-breadcrumb li:not(:last-child)::after {
  content: '>';
  margin-left: 8px;
}
.company-breadcrumb a:hover {
  opacity: 0.7;
}

/* --- アコーディオン一覧 (01 会社概要 / 02 代表メッセージ / 03 POWER of "N") --- */
.company-accordion-list {
  width: 100%;
  max-width: 900px;
}
/* 区切り線は各項目の下だけ (デザイン: 01 の上には線がない) */
.company-accordion-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}
.company-accordion-trigger {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  padding: 28px 10px;
  background: transparent;
  border: none;
  color: var(--white);
  cursor: pointer;
  text-align: left;
}
.company-accordion-num {
  font-family: var(--font-en);
  font-weight: 700;  /* デザイン: 項目名と同じ太字・白 */
  font-size: 18px;
  color: var(--white);
}
.company-accordion-label {
  flex: 1;
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 22px;
}
.company-accordion-icon {
  display: flex;
  width: 24px;
  height: 24px;
  transition: transform var(--dur) var(--ease);
}
.company-accordion-item.is-open .company-accordion-icon {
  transform: rotate(45deg);
}

.company-accordion-panel {
  padding: 0 10px 50px;
}
.company-accordion-panel[hidden] {
  display: none;
}

/* 01 会社概要: 定義リスト */
.company-info-table {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px 30px;
}
.company-info-table dt {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
}
.company-info-table dd {
  font-family: var(--font-ja);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.8;
}

/* 02 代表メッセージ — 十分な幅がない場合は自動で写真+本文が縦積みになる */
.company-message {
  display: flex;
  flex-wrap: wrap;
  gap: 30px 50px;
  align-items: flex-start;
}
.company-message-photo {
  flex-shrink: 0;
  width: 180px;
}
.company-message-photo img {
  width: 100%;
  height: auto;
  display: block;
}
.company-message-body {
  flex: 1 1 240px;
  min-width: 240px;
}
.company-message-text {
  font-family: var(--font-ja);
  font-weight: 300;
  font-size: 15px;
  line-height: 2;
  color: rgba(255, 255, 255, 0.9);
}
.company-message-text p + p {
  margin-top: 1.5em;
}
.company-message-sign {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
}
.company-message-sign img {
  width: 120px;
  height: auto;
}
.company-message-name {
  font-family: var(--font-ja);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}
.company-message-name {
  line-height: 1.8;
}

/* 02 代表メッセージ — 企業理念・代表挨拶 (2026-10-15 追加) */
.company-message-section + .company-message-section {
  margin-top: 60px;
  padding-top: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}
.company-message-heading {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.5;
  color: var(--white);
  margin-bottom: 28px;
}
.company-message-heading span {
  display: block;
  margin-top: 4px;
  font-family: var(--font-en);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.6);
}
/* 大きなテーマ「Give and Give and, Take」を目立たせる */
.company-message-theme-block {
  margin: 0 0 40px;
  padding: 28px 0 26px;
  border-top: 1px solid var(--gold-c);
  border-bottom: 1px solid var(--gold-c);
}
.company-message-text .company-message-theme-block p {
  margin-top: 0;
}
.company-message-theme-label {
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.7);
}
.company-message-theme {
  margin: 6px 0 10px;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--gold-c);
}
.company-message-theme-lead {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.7;
  color: var(--white);
}
.company-message-subheading {
  margin-top: 36px;
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.7);
}
.company-message-text .company-message-catch {
  margin-top: 8px;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.7;
  color: var(--white);
}
.company-message-text .company-message-catch + p {
  margin-top: 10px;
}
.company-message-values {
  margin-top: 10px;
  list-style: none;
  padding: 0;
}
.company-message-values li + li {
  margin-top: 14px;
}
.company-message-values strong {
  display: block;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 15px;
  color: var(--white);
}
.company-message-em {
  font-family: var(--font-en);
  font-weight: 600;
  color: var(--gold-c);
}

/* 03 POWER of "N" — 十分な幅がない場合は自動で図版+本文が縦積みになる */
.company-power {
  display: flex;
  flex-wrap: wrap;
  gap: 30px 50px;
  align-items: center;
}
.company-power-image {
  flex-shrink: 0;
  width: 260px;
}
.company-power-image img {
  width: 100%;
  height: auto;
  display: block;
}
.company-power-text {
  flex: 1 1 240px;
  min-width: 240px;
  font-family: var(--font-ja);
  font-weight: 300;
  font-size: 15px;
  line-height: 2;
  color: rgba(255, 255, 255, 0.9);
}

/* ----------------------------------------------------------------
   Responsive — 1024px 以下 (アコーディオン内2カラムを縦積みに)
   ---------------------------------------------------------------- */
@media (max-width: 1024px) {
  .company-hero-inner {
    padding: 120px 24px 40px;
  }
  .company-info-table {
    grid-template-columns: 1fr;
    gap: 6px 0;
  }
  .company-info-table dt {
    margin-top: 16px;
  }
  .company-message,
  .company-power {
    flex-direction: column;
  }
  .company-message-photo,
  .company-power-image {
    width: 160px;
  }
}

/* ================================================================
   12-2. PRIVACY POLICY Page — page-privacy-policy.php
   COMPANY と同じ作り (背景・タイトル・パンくずは .company-* をそのまま使う)。
   COMPANY のアコーディオンの位置に本文 (the_content) を表示する。
   PC では画面の高さに収め、本文の部分だけを縦にスクロールして最後まで読めるようにする
   (CONTACT 欄の縦スクロールと同じ考え方)。
   ================================================================ */
.privacy-hero {
  position: relative;
}
.privacy-hero-inner {
  position: relative;
  z-index: 1;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 160px 50px 47px; /* COMPANY と同じ */
}

/* 本文の欄: 残りの高さいっぱい。入りきらない分はこの中で縦にスクロール */
.privacy-body {
  flex: 1 1 auto;
  min-height: 0;
  max-width: 900px; /* COMPANY のアコーディオンと同じ */
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 16px; /* スクロールバーと文字の間 */
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.4) transparent;
}

/* 本文: COMPANY の本文と同じ書体・大きさ (Noto Sans JP Light 15px)、白い文字 */
.privacy-content {
  max-width: 40em; /* 1行が長くなりすぎない幅で折り返す */
  font-family: var(--font-ja);
  font-weight: 300;
  font-size: 15px;
  line-height: 2;
  color: var(--white);
}
.privacy-content h2 {
  margin: 2.6em 0 0.6em; /* 見出しの上に十分な余白 */
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.6;
}
.privacy-content p + p,
.privacy-content ul + p,
.privacy-content p + ul {
  margin-top: 0.8em;
}
.privacy-content ul {
  list-style: none;
  padding: 0;
}
/* 箇条書き: 「・」を行頭に付け、2行目以降は文字の頭にそろえる */
.privacy-content li {
  position: relative;
  padding-left: 1em;
}
.privacy-content li::before {
  content: '・';
  position: absolute;
  left: 0;
}
.privacy-content a {
  text-decoration: underline;
}
.privacy-content a:hover {
  opacity: 0.7;
}

/* 1024px 以下: ページ全体を縦にスクロールして読む (本文の欄の中ではスクロールしない) */
@media (max-width: 1024px) {
  .privacy-hero-inner {
    height: auto;
    min-height: calc(100vh - 60px);
    padding: 120px 24px 40px; /* COMPANY と同じ */
  }
  .privacy-body {
    flex: none;
    overflow: visible;
    padding-right: 0;
  }
}

/* ================================================================
   13. 横スクロールページ共通 — 「1つ前のセクションに戻る」ボタン
   TOP・WORKS・FAQ・BLOG (COMPANYは縦スクロールのため対象外) の
   各 .xxx-wrapper 内、左端中央に配置。トラック直下の子要素
   (イントロ/一覧/CONTACT等) の境界を1セクションとして扱う。
   ================================================================ */
.hscroll-back-btn {
  /* ロゴ (#site-logo: 左120〜312px / 上55〜134px) の右横、ロゴと上下中央をそろえる。
     この位置はスクロールが止まるどの位置でもタイトル・本文の文字に重ならない */
  position: absolute;
  left: 270px;
  top: 66px;
  z-index: 20;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(14, 34, 61, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--white);
  transition: opacity var(--dur) var(--ease), background var(--dur) var(--ease);
}
.hscroll-back-btn:hover:not(:disabled) {
  background: rgba(14, 34, 61, 0.7);
}
.hscroll-back-btn:disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}
.hscroll-back-btn svg {
  width: 20px;
  height: 20px;
  display: block;
}

@media (max-width: 1024px) {
  .hscroll-back-btn {
    left: 16px;
    top: 8px; /* 上部バー (60px) のすぐ下。TOP のロゴ (上端 約112px) に重ならない高さ */
    width: 44px;
    height: 44px;
  }
  .hscroll-back-btn svg {
    width: 16px;
    height: 16px;
  }
}

/* ================================================================
   14. PLAN Page — design/03PLAN_プラン.jpg
   横スクロールトラック 6142px
   イントロ 900 + グラフィックデザインプラン 1205 + 料金カード 1925 + 制作の流れ 1212 + CONTACT 900
   各要素の位置はデザイン画像の実測値 (2x書き出し → 実寸/2、トラック座標 = 画像座標 - gnav 70px)
   ================================================================ */

.page-template-page-plan-php {
  overflow: hidden;
}
.page-template-page-plan-php #main-content {
  margin-right: 0;
  height: 100vh;
  overflow: hidden;
}

.plan-wrapper {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* ----------------------------------------------------------------
   背景 — 固定レイヤー
   デザインでは左の青い面(1画面分)以外は白地。Gnav(左70px)の背後だけは
   常に青にして、白い面にスクロールしても Gnav の白文字が読めるようにする。
   ---------------------------------------------------------------- */
.plan-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(90deg, transparent 0, transparent var(--gnav-w), #fff var(--gnav-w)),
    linear-gradient(180deg, #47619e 0%, #465d90 50%, #465782 100%);
}

.plan-scroll-viewport {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  outline: none;
}
.plan-scroll-viewport::-webkit-scrollbar {
  display: none;
}

.plan-content-track {
  position: relative;
  display: flex;
  width: 6142px;
  height: 100%;
  flex-shrink: 0;
}

/* トラックと一緒に動く背景 */
.plan-track-bg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  background: #ffffff;
}
.plan-track-bg-panel {
  position: absolute;
  left: 0;
  top: 0;
  width: 1370px;
  height: 100%;
  background: linear-gradient(180deg, #47619e 0%, #465d90 50%, #465782 100%);
}
/* フィルムグレイン — .top-bg::after と同じ手法 */
.plan-track-bg-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
  opacity: 0.4;
  mix-blend-mode: overlay;
}
/* 料金カード下の青緑の色だまり
   デザイン実測から濃さを推定: 中心は画像座標 x2500 / y940、濃さが半分になる距離は
   横 約400px・縦 約260px (左に広く右に狭い)。ガウス分布に近い減衰で近似 */
.plan-track-bg-blob {
  position: absolute;
  left: 1550px;
  top: 368px;
  width: 1760px;
  height: 1144px;
  background: radial-gradient(ellipse closest-side at center, rgba(114, 150, 166, 1.000) 0%, rgba(114, 150, 166, 0.967) 10%, rgba(114, 150, 166, 0.874) 20%, rgba(114, 150, 166, 0.739) 30%, rgba(114, 150, 166, 0.585) 40%, rgba(114, 150, 166, 0.432) 50%, rgba(114, 150, 166, 0.299) 60%, rgba(114, 150, 166, 0.193) 70%, rgba(114, 150, 166, 0.117) 80%, rgba(114, 150, 166, 0.066) 90%, rgba(114, 150, 166, 0.000) 100%);
}

.plan-intro,
.plan-graphic,
.plan-prices,
.plan-flow {
  position: relative;
  z-index: 1;
  height: 100%;
  flex-shrink: 0;
}
.plan-intro   { width: 900px; }
.plan-graphic { width: 1205px; }
.plan-prices  { width: 1925px; }
.plan-flow    { width: 1212px; }

/* --- イントロ: タイトル (WORKS などと同じ扱い) --- */
.plan-title-block {
  position: absolute;
  left: 50px;
  bottom: 47px; /* デザイン実測: パンくずの位置 */
}
.plan-title {
  display: flex;
  flex-direction: column;
  gap: 10px; /* デザイン実測: 英字の下端 → 日本語 約40px */
}
.plan-title-en {
  font-family: var(--font-en);
  font-weight: 100;
  font-size: 100px; /* デザイン実測: 大文字の高さ 70px */
  line-height: 1;
  color: #dddddd;
}
.plan-title-ja {
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 32px; /* デザイン実測 */
  color: #dddddd;
}
.plan-breadcrumb {
  margin-top: 14.5px; /* デザイン実測: 日本語の下端 → パンくず 約36px */
}
.plan-breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ja);
  font-size: 14px; /* デザイン実測 */
  color: rgba(255, 255, 255, 0.7);
}
.plan-breadcrumb li:not(:last-child)::after {
  content: '>';
  margin-left: 8px;
}
.plan-breadcrumb a:hover {
  opacity: 0.7;
}

/* --- イントロ: タブ (GRAPHIC / WEB / Ai-Bow) --- */
.plan-tabs {
  position: absolute;
  left: 617px;
  top: 401px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
}
.plan-tab {
  border: 1px solid var(--white);
  background: transparent;
  color: var(--white);
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0.1em;
  padding: 13px 24px;
  cursor: pointer;
}
.plan-tab[aria-selected="true"] {
  background: var(--white);
  color: #3e557f;
}

/* --- グラフィックデザインプラン --- */
.plan-graphic-heading {
  position: absolute;
  left: 25px;
  top: calc(276px - var(--hdef) * 0.1329);
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0;
  color: var(--white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.plan-cards {
  position: absolute;
  left: 25px;
  top: calc(344px - var(--hdef) * 0.1329);
  display: grid;
  grid-template-columns: repeat(2, 500px);
  gap: 30px 100px;
}
.plan-card {
  display: grid;
  grid-template-columns: 193px 1fr;
  align-items: center;
  width: 500px;
  height: 100px;
  padding: 0 20px 0 30px;
  border-radius: 10px;
  background: linear-gradient(90deg, #b1c7ff 0%, #b1c7ff 36%, #ffe9d2 52%, #ffffff 64%, #ffffff 100%);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.25);
}
.plan-card-title {
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: 0.1em;
  color: var(--white);
}
.plan-card-price {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 22px;
  line-height: 26px;
  letter-spacing: 0.05em;
  color: var(--white);
}
.plan-card-price-suffix {
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.02em;
}
.plan-card-bullets li {
  position: relative;
  padding-left: 23.5px;
  font-family: var(--font-ja);
  font-size: 14px;
  line-height: 21px;
  letter-spacing: 0.1em;
  color: #333333;
}
.plan-card-bullets li + li {
  margin-top: 5px;
}
.plan-card-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3.5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #9bb9ff;
}

.plan-tags {
  position: absolute;
  left: 270px;
  top: calc(644px - var(--hdef) * 0.1329);
  display: flex;
  flex-direction: column;
  gap: 30.5px;
}
.plan-tags-row {
  display: flex;
  gap: 20px;
}
.plan-tag {
  height: 26.5px;
  padding: 0 20px;
  border-radius: 13.25px;
  background: #5b82df;
  font-family: var(--font-ja);
  font-size: 14px;
  line-height: 26.5px;
  letter-spacing: 0.15em;
  color: var(--white);
  white-space: nowrap;
}

/* --- 料金カード (Figma「Frame 13」の座標) --- */
.plan-prices-frame {
  position: absolute;
  left: 70px;
  top: calc(216.5px - var(--hdef) * 0.2292); /* 723px で 147.5px (ロゴの下) */
  --plan-row2-lift: calc(var(--hdef) * 0.0831); /* 2段目をさらに 25px 詰める (page-plan.php) */
  width: 1644px;
  height: 590px;
}
/* 見出し: デザインで薄く見えている「写真撮影」「サーバー」と同じ白文字 */
.plan-price-head {
  position: absolute;
  left: var(--x);
  top: var(--y);
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 16px;
  line-height: 18px;
  letter-spacing: 0.05em;
  color: var(--white);
  white-space: nowrap;
}
.plan-price-card {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 240.56px;
  height: 240.56px;
  border-radius: 8px;
}
.plan-price-card--plain  { background: #ffffff; }
.plan-price-card--raised { background: #ffffff; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15); }
.plan-price-card--muted  { background: #fafafa; }

.plan-price-card-text {
  position: absolute;
  left: var(--tx);
  top: var(--ty);
  color: #0e223d;
  white-space: nowrap;
}
.plan-price-card-label {
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 16px;
  line-height: 18px;
  letter-spacing: 0.05em;
}
.plan-price-card-price {
  margin-top: 4px;
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 26px;
  line-height: 30px;
  letter-spacing: 0.06em;
}
.plan-price-card-price:first-child {
  margin-top: 0;
}
.plan-price-card-suffix {
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.plan-price-card-img {
  position: absolute;
  left: var(--ix);
  top: var(--iy);
}

/* --- 制作の流れ (01〜08) --- */
.plan-flow-list {
  position: absolute;
  left: 59.5px;
  top: calc(223px - var(--hdef) * 0.0664);
  display: grid;
  grid-template-columns: repeat(4, 150px);
  gap: 175.5px 130.65px;
}
.plan-flow-step {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 8px 8px -2px rgba(0, 0, 0, 0.22);
}
.plan-flow-num {
  font-family: var(--font-en);
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  font-size: 25px;
  line-height: 1;
  color: #becae4;
}
.plan-flow-text {
  font-family: var(--font-ja);
  font-size: 12px;
  line-height: 1.25;
  letter-spacing: 0.05em;
  text-align: center;
  color: #485778;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}
.plan-flow-step--last {
  box-shadow: 0 0 14px 3px rgba(91, 130, 223, 0.55);
}
.plan-flow-step--last .plan-flow-text {
  font-size: 24px;
  line-height: 1;
}

/* --- CONTACT: sidebar-contact.php を track 内パネルとして再利用 --- */
.plan-content-track #contact-sidebar {
  position: relative;
  top: auto;
  right: auto;
  width: 900px;
  height: 100%;
  flex-shrink: 0;
  z-index: 1;
}

/* ================================================================
   15. BUSINESS DETAILS Page — design/04Business detail_事業内容.jpg
   横スクロールトラック 4184px
   イントロ 700 + 説明 670 + 円の図 750 + 一文 1164 + CONTACT 900
   ================================================================ */

.page-template-page-business-php {
  overflow: hidden;
}
.page-template-page-business-php #main-content {
  margin-right: 0;
  height: 100vh;
  overflow: hidden;
}

.business-wrapper {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* 背景: .plan-bg と同じ考え方 (Gnav の背後だけ青) */
.business-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(90deg, transparent 0, transparent var(--gnav-w), #fff var(--gnav-w)),
    linear-gradient(180deg, #485871 0%, #505c72 50%, #4a5970 100%);
}

.business-scroll-viewport {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  outline: none;
}
.business-scroll-viewport::-webkit-scrollbar {
  display: none;
}

.business-content-track {
  position: relative;
  display: flex;
  width: 4184px;
  height: 100%;
  flex-shrink: 0;
}

.business-track-bg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  background: #ffffff;
}
.business-track-bg-panel {
  position: absolute;
  left: 0;
  top: 0;
  width: 1370px;
  height: 100%;
  background: linear-gradient(180deg, #485871 0%, #505c72 50%, #4a5970 100%);
}
.business-track-bg-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
  opacity: 0.4;
  mix-blend-mode: overlay;
}
/* 上部の青緑の色だまり (中心 x2230 / y150 付近) */
.business-track-bg-blob {
  position: absolute;
  left: 1450px;
  top: -350px;
  width: 1560px;
  height: 1000px;
  background: radial-gradient(ellipse at center, #c0dfe1 0%, #cfe9ea 30%, rgba(234, 246, 246, 0.8) 52%, rgba(255, 255, 255, 0) 72%);
}

.business-intro,
.business-services,
.business-venn,
.business-statement {
  position: relative;
  z-index: 1;
  height: 100%;
  flex-shrink: 0;
}
.business-intro     { width: 700px; }
.business-services  { width: 670px; }
.business-venn      { width: 750px; }
.business-statement { width: 1164px; }

/* --- イントロ: タイトル --- */
.business-title-block {
  position: absolute;
  left: 50px;
  bottom: 47px; /* デザイン実測: パンくずの位置 */
}
.business-title {
  display: flex;
  flex-direction: column;
  gap: 10px; /* デザイン実測: 英字の下端 → 日本語 約40px */
}
.business-title-en {
  font-family: var(--font-en);
  font-weight: 100;
  font-size: 100px; /* デザイン実測: 大文字の高さ 70px */
  line-height: 0.96; /* デザイン実測: 2行の間隔 96px */
  color: #dddddd;
}
.business-title-ja {
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 32px; /* デザイン実測 */
  color: #dddddd;
}
.business-breadcrumb {
  margin-top: 14.5px; /* デザイン実測: 日本語の下端 → パンくず 約36px */
}
.business-breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ja);
  font-size: 14px; /* デザイン実測 */
  color: rgba(255, 255, 255, 0.7);
}
.business-breadcrumb li:not(:last-child)::after {
  content: '>';
  margin-left: 8px;
}
.business-breadcrumb a:hover {
  opacity: 0.7;
}

/* --- GRAPHIC DESIGN / WEB DESIGN の説明 --- */
.business-service {
  position: absolute;
  left: 68px;
  width: 487px; /* デザインの改行位置 (1行目 25文字) に合わせた幅 */
}
.business-service--graphic { top: calc(336.5px - var(--hdef) * 0.1329); }
.business-service--web     { top: calc(562.5px - var(--hdef) * 0.1329); }

.business-service-en {
  display: inline-block;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 18px;
  line-height: 18px;
  letter-spacing: 0.86em;
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 40%, #cddcff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.3));
}
.business-service-ja {
  margin-top: 9px;
  font-family: var(--font-ja);
  font-size: 14px;
  line-height: 14px;
  letter-spacing: 0.5em;
  color: var(--white);
}
.business-service-text {
  margin-top: 25px;
  font-family: var(--font-ja);
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.18em;
  color: var(--white);
}

/* --- 円が重なった図 --- */
.business-venn-svg {
  position: absolute;
  left: 0;
  top: 212px;
  overflow: visible;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.9));
}
.business-venn-ring {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 26px;
  fill: #c8c0e6;
}
.business-venn-items text {
  font-family: var(--font-ja);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.05em;
  fill: #0e223d;
}

/* --- 薄く表示される一文 --- */
.business-statement-line {
  position: absolute;
  left: 63px;
  top: 515px;
  width: 298px;
  height: 1px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.business-statement-text {
  position: absolute;
  left: 415px;
  top: 489.5px;
  width: 640px;
  font-family: var(--font-ja);
  font-size: 14px;
  line-height: 25px;
  letter-spacing: 0.33em;
  text-align: center;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}

/* --- CONTACT --- */
.business-content-track #contact-sidebar {
  position: relative;
  top: auto;
  right: auto;
  width: 900px;
  height: 100%;
  flex-shrink: 0;
  z-index: 1;
}

/* ----------------------------------------------------------------
   PLAN / BUSINESS DETAILS — 1024px 以下
   Gnav が上部バーになるため、固定背景は全面を青にしてバーの白文字を読めるようにする
   ---------------------------------------------------------------- */
/* ----------------------------------------------------------------
   横スクロールの全ページ — 1024px 以下
   上部バー (60px) の下に置かれるため、高さを画面の高さ − 60px にする
   (100vh のままだと下の約60pxが画面の外に出ていた)。
   英字の大見出しは画面幅に合わせて縮め、右端で切れないようにする (最大 100px。COMPANY も同じ)
   ---------------------------------------------------------------- */
@media (max-width: 1024px) {
  body.home #main-content,
  .page-template-page-works-php #main-content,
  .page-template-page-faq-php #main-content,
  .page-template-page-blog-php #main-content,
  .page-template-page-plan-php #main-content,
  .page-template-page-business-php #main-content,
  .top-wrapper,
  .works-wrapper,
  .faq-wrapper,
  .blog-wrapper,
  .plan-wrapper,
  .business-wrapper {
    height: calc(100vh - 60px);
    height: calc(100dvh - 60px);
  }
  :root {
    --hdef: clamp(0px, 1024px - (100vh - 60px), 301px);
    --hdef: clamp(0px, 1024px - (100dvh - 60px), 301px);
  }
  /* CONTACT 欄はスマホでは表示しないため、その分の幅をトラックに残さない */
  .top-content-track,
  .works-content-track,
  .faq-content-track,
  .blog-content-track,
  .plan-content-track,
  .business-content-track {
    width: max-content;
  }
  .works-title-en,
  .faq-title-en,
  .blog-title-en,
  .plan-title-en,
  .business-title-en,
  .company-title-en {
    font-size: min(100px, 15.5vw);
  }
}

@media (max-width: 1024px) {
  .plan-bg {
    background: linear-gradient(180deg, #47619e 0%, #465d90 50%, #465782 100%);
  }
  .business-bg {
    background: linear-gradient(180deg, #485871 0%, #505c72 50%, #4a5970 100%);
  }
}

/* 代表メッセージ 署名：サインを大きく、社名・役職・氏名をサインの下に一行で */
.company-message-sign {
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.company-message-sign img {
  width: 78%;
  max-width: 390px;
  margin-left: auto;
  margin-right: 4%;
}
.company-message-name {
  white-space: nowrap;
  width: 96%;
  text-align: right;
  font-weight: 300;
}
@media (max-width: 480px) {
  .company-message-name {
    white-space: normal;
    font-size: clamp(11px, 3.2vw, 13px);
  }
}

/* ================================================================
   TOP — デザイン刷新 (2026-10-16)
   参考: クライマークスのような「深い紺のギャラリーを、横に歩いて見ていく」見せ方。
   横スクロールの仕組み・色・書体・文章はそのまま。TOP (body.home) だけに効かせる。
   ================================================================ */
body.home {
  --tw-col: 290px;          /* 実績の列の幅 */
  --tw-overlap: 90px;      /* 実績の写真が1つ前の列に重なる最大の幅 (theme.js が読む) */
  --tw-vhead: 21vh;         /* 縦向きの大見出しの文字の大きさ */
  --tw-grid: rgba(255, 255, 255, 0.14);
  --tw-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ロゴ: TOP も他のページと同じ位置に固定する (以前は横スクロールと一緒に流れていた) */
body.home #site-logo {
  display: block;
  transition: filter 0.5s ease, opacity 1s ease 0.5s;
}
/* 暗い実績の列の上に来たら、ロゴを白にして見えるようにする (theme.js が .is-logo-light を付ける) */
html.is-logo-light body.home #site-logo {
  filter: brightness(0) invert(1);
}

/* トラック: 中身の幅に合わせて伸ばす (等間隔の細い縦線は 2026-10-16 のご指示で削除) */
body.home .top-content-track {
  position: relative;
  width: max-content;
}

/* ----------------------------------------------------------------
   FV — キャッチコピー
   ---------------------------------------------------------------- */
.top-fv {
  position: relative;
  flex-shrink: 0;
  width: clamp(560px, 42vw, 680px);
  height: 100%;
}
.top-fv-catch {
  position: absolute;
  left: 50px;
  bottom: calc(120px - var(--hdef) * 0.15);
  margin: 0;
  font-family: var(--font-ja);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.32em;
  color: var(--white);
  text-shadow: 0 4px 4px rgba(14, 44, 76, 0.3);
  white-space: nowrap;
}
.top-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}
.top-line > span {
  display: inline-block;
}
.top-fv-scroll {
  position: absolute;
  left: 50px;
  bottom: calc(56px - var(--hdef) * 0.05);
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'Gabarito', sans-serif;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
}
.top-fv-scroll-bar {
  position: relative;
  width: 90px;
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
  overflow: hidden;
}
.top-fv-scroll-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--white);
  transform: translateX(-100%);
  animation: top-scroll-bar 2.4s var(--tw-ease) infinite;
}
@keyframes top-scroll-bar {
  0%   { transform: translateX(-100%); }
  55%  { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

/* ----------------------------------------------------------------
   縦向きの大見出し (Quattrocento)
   下から上へ読む向き。画面に入ると下から現れ、横スクロールに合わせて
   縦に流れて全体が読める (theme.js が --vhead-shift を更新)
   ---------------------------------------------------------------- */
.top-vhead {
  position: relative;
  flex-shrink: 0;
  width: calc(var(--tw-vhead) * 1.08);
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}
/* 縦向きの大見出しは、文字の右端を右隣 (実績の列・案内の欄・CONTACT) にくっつける。
   文字の枠の右側には文字のない余白 (約0.19文字分) があるため、その分だけ右へ出す */
.top-vhead {
  width: calc(var(--tw-vhead) * 0.84);
}
.top-vhead .top-vhead-text {
  left: auto;
  right: -0.185em;
}
.top-vhead-text {
  position: absolute;
  left: 0;
  bottom: 0;
  writing-mode: vertical-rl;
  transform: translateY(var(--vhead-shift, 0px)) rotate(180deg);
  font-family: 'Quattrocento', serif;
  font-size: var(--tw-vhead);
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: rgba(229, 232, 240, 0.4); /* 強すぎないよう薄く (以前は #e5e8f0 の不透明) */
  will-change: transform;
}

/* ----------------------------------------------------------------
   実績 — 画面の高さいっぱいの縦長の列
   ---------------------------------------------------------------- */
.top-works {
  display: flex;
  flex-shrink: 0;
  height: 100%;
}
.top-works-list {
  display: flex;
  height: 100%;
}
.top-work {
  position: relative;
  flex-shrink: 0;
  width: var(--tw-col);
  height: 100%;
}
.top-work-link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  color: var(--white);
}
/* 写真: 自分の列の幅にぴったり収める (色の境目と文字の列をそろえる)。
   スクロールに合わせて、列の中で写真だけが横に少しずれて動く (--work-shift は theme.js) */
.top-work-bg {
  position: absolute;
  inset: 0;
  z-index: 0; /* 重ねの色 (::before/::after) をこの中に閉じ込め、文字より下にする */
  overflow: hidden;
  box-shadow: -18px 0 40px rgba(11, 19, 38, 0.35);
}
/* 写真の層ではマウスを拾わず、列 (リンク) 全体で拾う */
.top-work-bg {
  pointer-events: none;
}
.top-work-bg img {
  width: calc(100% + var(--tw-overlap));
  height: 100%;
  max-width: none;
  object-fit: cover;
  transform: translateX(var(--work-shift, 0px)) scale(1.04);
  transform-origin: center;
  transition: transform 1.2s var(--tw-ease);
  will-change: transform;
}
/* 紺の重ね: 文字が読める濃さ。色はこれまでの TOP のパネルの色を順番に使う */
.top-work-bg::before,
.top-work-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1; /* 写真 (transform で重なり順が上がる) より上に重ねる */
  pointer-events: none;
  transition: opacity 0.6s var(--tw-ease);
}
.top-work-bg::before {
  background-color: #45608f;
  mix-blend-mode: multiply;
  opacity: 0.25; /* 写真が何か分かるよう、色の重ねはごく薄く (以前は 0.85 → 0.5) */
}
.top-work:nth-child(4n+2) .top-work-bg::before { background-color: #314166; }
.top-work:nth-child(4n+3) .top-work-bg::before { background-color: #586b8a; }
.top-work:nth-child(4n+4) .top-work-bg::before { background-color: #3b6089; }
.top-work-bg::after {
  /* 文字のある上半分だけ少し暗くし、写真の下半分は明るく見せる (以前は全体を 0.5〜0.75 で暗くしていた) */
  background: linear-gradient(180deg, rgba(11, 19, 38, 0.45) 0%, rgba(11, 19, 38, 0.35) 45%, rgba(11, 19, 38, 0.1) 75%, rgba(11, 19, 38, 0.3) 100%);
}
.top-work-link:hover .top-work-bg img,
.top-work-link:focus-visible .top-work-bg img {
  transform: translateX(var(--work-shift, 0px)) scale(1.1);
}
.top-work-link:hover .top-work-bg::before,
.top-work-link:focus-visible .top-work-bg::before {
  opacity: 0;
}

.top-work-body {
  position: absolute;
  z-index: 1;
  left: 26px;
  right: 26px; /* 写真が隣の列に重ならなくなったので、列の幅いっぱいまで使う */
  top: calc(22vh - var(--hdef) * 0.05);
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-shadow: 0 2px 8px rgba(11, 19, 38, 0.45);
}
.top-work-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Gabarito', sans-serif;
  font-size: 12px;
  letter-spacing: 0.2em;
}
.top-work-label::before {
  content: '';
  width: 18px;
  height: 1px;
  background: currentColor;
}
.top-work-label em {
  font-style: normal;
  color: var(--gold-c);
}
.top-work-client {
  margin-top: 18px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
}
.top-work-type {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.7;
  opacity: 0.9;
}
/* 社名・種別は必ず1行にして、下の線と説明文の高さを全部の列でそろえる
   (長い名前で入りきらないときは「…」で省略) */
.top-work-client,
.top-work-type {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.top-work-concept {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 13px;
  font-weight: 300;
  line-height: 2;
  -webkit-font-smoothing: antialiased;
}

/* 実績の写真: どの列も同じ大きさの枠に、列の右端まで見切れる形で入れる (2026-10-16 ご指示の赤枠)。
   枠の上端は文字の下 (文字の始まり + 約270px)、高さは画面の高さの約34% (低い画面では下の矢印の分を残して縮める)。
   背景には同じ写真をぼかして敷く */
.top-work-bg img {
  filter: blur(14px) brightness(0.8) saturate(1.4);
}
.top-work {
  --shot-top: calc(22vh + 270px);
}
.top-work-shot {
  position: absolute;
  z-index: 1;
  left: 54px;
  right: 0;
  top: var(--shot-top);
  height: min(34vh, calc(100vh - var(--shot-top) - 96px));
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(11, 19, 38, 0.45);
  pointer-events: none;
}
.top-work-shot img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transition: transform 1.2s var(--tw-ease);
}
.top-work-link:hover .top-work-shot img {
  transform: scale(1.05);
}
/* 写真の右端に、隣の列から落ちる影 (列の背景と同じ影) を内側に重ねる */
.top-work-shot::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to left, rgba(11, 19, 38, 0.5) 0, rgba(11, 19, 38, 0.22) 24px, rgba(11, 19, 38, 0) 70px);
}
/* いちばん最後の列は右隣に列がないので影を付けない */
.top-work:last-child .top-work-shot::after {
  content: none;
}

/* 実績の列: マウスを重ねたときだけ、列の下のほうに丸い矢印が現れる
   (参考: クライマークス。丸の線がぐるっと描かれ、少し遅れて矢印が左からすっと出る) */
.top-work-go {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 26px; /* 写真の枠の下 */
  width: 52px;
  height: 52px;
  margin-left: -26px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  pointer-events: none;
}
.top-work-go-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg); /* 線を真上から描き始める */
}
.top-work-go-ring circle {
  fill: none;
  stroke: var(--white);
  stroke-width: 1;
  stroke-dasharray: 158;   /* 円周 (2 × 3.14 × 25) */
  stroke-dashoffset: 158;  /* 最初は線が見えない */
  transition: stroke-dashoffset 0.4s ease;
}
.top-work-go-arrow {
  width: 20px;
  height: 20px;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.top-work-link:hover .top-work-go-ring circle,
.top-work-link:focus-visible .top-work-go-ring circle {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.top-work-link:hover .top-work-go-arrow,
.top-work-link:focus-visible .top-work-go-arrow {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.5s ease 0.2s, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}
@media (prefers-reduced-motion: reduce) {
  .top-work-go-ring circle,
  .top-work-go-arrow { transition: none; }
}
/* スマホ (マウスがない) では、いつも丸い矢印を出しておく */
@media (hover: none) {
  .top-work-go-ring circle { stroke-dashoffset: 0; }
  .top-work-go-arrow { opacity: 1; transform: none; }
}

/* 「制作実績」へのリンク */
.top-more {
  position: relative;
  flex-shrink: 0;
  width: 320px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding-left: 60px;
  color: var(--white);
}
.top-more-en,
.top-card-en {
  font-family: 'Gabarito', sans-serif;
  font-size: 13px;
  letter-spacing: 0.2em;
}
.top-more-ja {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.1em;
}

/* 丸い矢印 (左に線が伸びる) */
.top-arrow {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-top: 26px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  transition: background var(--dur) var(--ease), translate 0.6s var(--tw-ease);
}
.top-arrow::before {
  content: '';
  position: absolute;
  right: 100%;
  top: 50%;
  width: 40px;
  height: 1px;
  background: rgba(255, 255, 255, 0.7);
  transform-origin: right center;
  transition: width 0.6s var(--tw-ease);
}
.top-arrow svg {
  width: 20px;
  height: 20px;
}
.top-more .top-arrow,
.top-card .top-arrow {
  margin-left: 40px;
}
.top-more:hover .top-arrow,
.top-card:hover .top-arrow,
.top-more:focus-visible .top-arrow,
.top-card:focus-visible .top-arrow {
  background: rgba(255, 255, 255, 0.15);
  /* transform ではなく translate で動かす。transform は「画面に入ったときに現れる動き」の
     指定 (transform: none) に上書きされて丸が動かず、線だけが左へ伸びて位置がずれていたため */
  translate: 10px 0;
}
/* 線は左端 (文字の頭) をそろえたまま、丸が右へ動いた分 (10px) だけ伸ばす。
   以前は 60px に伸ばしていたため、線の左端が文字より左にはみ出していた */
.top-more:hover .top-arrow::before,
.top-card:hover .top-arrow::before,
.top-more:focus-visible .top-arrow::before,
.top-card:focus-visible .top-arrow::before {
  width: 50px;
}
/* 「制作実績」などのリンクに、列の高さいっぱいの四角い枠 (ブラウザの青い枠) を出さない。
   クリック後やキーボード操作後でも出ないよう、:focus-visible も含めて消す。
   キーボードで選んだときの目印は、四角い枠の代わりに丸い矢印のまわりにだけ白い輪を出す */
.top-more:focus,
.top-card:focus,
.top-work-link:focus,
.top-more:focus-visible,
.top-card:focus-visible,
.top-work-link:focus-visible {
  outline: none;
}
.top-more:focus-visible .top-arrow,
.top-card:focus-visible .top-arrow {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.55);
}
.top-work-link:focus-visible .top-work-body {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ----------------------------------------------------------------
   PLAN / BUSINESS DETAILS / BLOG — 大見出し + 案内の列
   ---------------------------------------------------------------- */
.top-section {
  display: flex;
  flex-shrink: 0;
  height: 100%;
}
.top-card {
  position: relative;
  flex-shrink: 0;
  width: 340px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 0 50px;
  color: var(--white);
  border-left: 1px solid rgba(255, 255, 255, 0.25);
  border-right: 1px solid rgba(255, 255, 255, 0.25);
  transition: background 0.6s var(--tw-ease);
}
.top-card--works    { background: rgba(69, 96, 143, 0.5); } /* これまでの TOP の WORKS パネルの色 */
.top-card--plan     { background: rgba(49, 65, 102, 0.55); }
.top-card--business { background: rgba(88, 107, 138, 0.5); }
.top-card--blog     { background: rgba(59, 96, 137, 0.5); }
.top-card:hover { background: rgba(11, 19, 38, 0.55); }
.top-card-ja {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0.12em;
}

/* ----------------------------------------------------------------
   CONTACT — 横スクロールのいちばん最後 (sidebar-contact.php を流用)
   ---------------------------------------------------------------- */
body.home .top-section--contact #contact-sidebar {
  position: relative;
  top: auto;
  right: auto;
  width: 900px;
  height: 100%;
  flex-shrink: 0;
  z-index: auto;
}

/* ----------------------------------------------------------------
   右上のお問い合わせボタン
   ---------------------------------------------------------------- */
.top-contact-btn {
  position: fixed;
  top: 48px;
  right: 40px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--white);
  text-shadow: 0 2px 6px rgba(11, 19, 38, 0.35);
}
.top-contact-btn-label {
  font-family: 'Gabarito', sans-serif;
  font-size: 13px;
  letter-spacing: 0.2em;
}
.top-contact-btn-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--gold-c);
  box-shadow: 0 6px 18px rgba(11, 19, 38, 0.3);
  transition: transform 0.5s var(--tw-ease), background var(--dur) var(--ease);
}
.top-contact-btn-circle svg {
  width: 22px;
  height: 22px;
}
.top-contact-btn:hover .top-contact-btn-circle,
.top-contact-btn:focus-visible .top-contact-btn-circle {
  transform: scale(1.08);
  background: #b5844f;
}

/* ----------------------------------------------------------------
   動き — theme.js が html に .js-top-anim を付けたときだけ「隠れた状態」から始める
   (JS が動かない環境では最初から全部見える)
   ---------------------------------------------------------------- */
.js-top-anim .top-line > span {
  transform: translateY(105%);
  transition: transform 1.2s var(--tw-ease);
}
.js-top-anim .top-line:nth-child(2) > span { transition-delay: 0.15s; }
.js-top-anim.is-top-loaded .top-line > span { transform: translateY(0); }

.js-top-anim #site-logo,
.js-top-anim .top-contact-btn,
.js-top-anim .top-fv-scroll {
  opacity: 0;
  transition: opacity 1s ease 0.5s;
}
.js-top-anim.is-top-loaded #site-logo,
.js-top-anim.is-top-loaded .top-contact-btn,
.js-top-anim.is-top-loaded .top-fv-scroll {
  opacity: 1;
}

/* 大見出しは文字の側を切り抜く (180度回しているので「下端 → 上」に現れる)。
   見出しの枠に clip-path を付けると、画面に入ったかの判定が働かないため */
.js-top-anim .top-vhead-text {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.8s var(--tw-ease);
}
.js-top-anim .top-vhead.is-inview .top-vhead-text { clip-path: inset(0 0 0 0); }
.js-top-anim .top-vhead--brand .top-vhead-text { transition-delay: 0.3s; }

.js-top-anim .top-work-body > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 1s var(--tw-ease);
}
.js-top-anim .top-work.is-inview .top-work-body > * { opacity: 1; transform: none; }
.js-top-anim .top-work.is-inview .top-work-body > :nth-child(2) { transition-delay: 0.08s; }
.js-top-anim .top-work.is-inview .top-work-body > :nth-child(3) { transition-delay: 0.16s; }
.js-top-anim .top-work.is-inview .top-work-body > :nth-child(4) { transition-delay: 0.24s; }

.js-top-anim .top-more > *,
.js-top-anim .top-card > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 1s var(--tw-ease), background var(--dur) var(--ease);
}
.js-top-anim .top-more.is-inview > *,
.js-top-anim .top-card.is-inview > * { opacity: 1; transform: none; }
.js-top-anim .top-more.is-inview > :nth-child(2),
.js-top-anim .top-card.is-inview > :nth-child(2) { transition-delay: 0.1s; }
.js-top-anim .top-more.is-inview > :nth-child(3),
.js-top-anim .top-card.is-inview > :nth-child(3) { transition-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
  .top-fv-scroll-bar::after { animation: none; transform: none; }
  .js-top-anim .top-line > span,
  .js-top-anim .top-work-body > *,
  .js-top-anim .top-more > *,
  .js-top-anim .top-card > * { transform: none; opacity: 1; transition: none; }
  .js-top-anim #site-logo,
  .js-top-anim .top-contact-btn,
  .js-top-anim .top-fv-scroll { opacity: 1; transition: none; }
  .js-top-anim .top-vhead-text { clip-path: none; transition: none; }
  .top-work-bg img { transform: scale(1.04); }
  .top-vhead-text { transform: rotate(180deg); }
}

/* ----------------------------------------------------------------
   1024px 以下 (タブレット・スマホ)
   ---------------------------------------------------------------- */
@media (max-width: 1024px) {
  body.home {
    --tw-col: 240px;
    --tw-overlap: 60px;
    --tw-vhead: 16vh;
  }
  .top-fv {
    width: calc(100vw - 40px);
    max-width: 560px;
  }
  .top-fv-catch {
    left: 24px;
    bottom: 96px;
    font-size: 22px;
    letter-spacing: 0.22em;
  }
  .top-fv-scroll {
    left: 24px;
    right: auto;
    bottom: 48px;
  }
  .top-work-body {
    left: 20px;
    right: 20px;
    top: 15vh;
  }
  .top-work { --shot-top: calc(15vh + 300px); }
  .top-work-shot {
    left: 40px;
    /* スマホは上部バー (60px) の分だけ画面が低いので、その分も差し引く */
    height: min(30vh, calc(100vh - 60px - var(--shot-top) - 96px));
  }
  .top-work-client { font-size: 15px; }
  .top-work-concept { font-size: 12px; line-height: 1.9; }
  .top-more { width: 260px; padding-left: 40px; }
  .top-card { width: 260px; padding: 0 32px; }
  .top-card-ja { font-size: 22px; }

  /* 固定ロゴは上部バーの文字ロゴと重なるため、他のページと同じく出さない */
  body.home #site-logo { display: none; }

  /* CONTACT: スマホでも最後に表示する (他のページでは非表示のまま) */
  body.home .top-section--contact #contact-sidebar {
    display: flex;
    width: 100vw;
    padding: 84px 24px 96px; /* 上: 戻るボタン、下: お問い合わせボタンをよける */
  }
  body.home .top-section--contact .sidebar-inner { gap: 48px; }
  body.home .top-section--contact .sidebar-offices { flex-direction: column; gap: 16px; }
  body.home .top-section--contact .sidebar-office { flex: none; min-width: 0; }
  body.home .top-section--contact .sidebar-bottom {
    margin: auto 0 0;
    justify-content: center;
    align-self: center;
  }

  .top-contact-btn {
    top: auto;
    bottom: 20px;
    right: 16px;
  }
  .top-contact-btn-label { display: none; }
  .top-contact-btn-circle { width: 50px; height: 50px; }
}

/* ================================================================
   実績の詳細ページ (single-works.php) — 2026-10-16 新規
   参考: クライマークスの実績詳細ページ。
   左に背景の動画と大きな英字「WORKS」を固定し、右の本文を縦にスクロールする。
   ================================================================ */
body.single-works {
  --wd-side-w: clamp(360px, 34vw, 560px);
  --wd-ink: #1b2433;          /* 本文の文字色 (紺) */
  --wd-paper: #eef1f5;        /* 右側の背景色 */
  --wd-line: rgba(27, 36, 51, 0.15);
  background: var(--wd-paper);
}
body.single-works #main-content {
  margin-right: 0;
}
/* 左のメニュー: 右側の背景が白っぽいので、白い文字が読めるよう紺の帯にする */
body.single-works #gnav {
  background: rgba(11, 19, 38, 0.92);
}

/* --- 左: 固定 --- */
.wd-side {
  position: fixed;
  top: 0;
  bottom: 0;
  left: var(--gnav-w);
  width: var(--wd-side-w);
  overflow: hidden;
  z-index: 1;
  background: var(--navy);
}
.wd-side-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.8) brightness(0.82) contrast(1.08); /* TOP の背景と同じ見え方 */
}
.wd-side::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 19, 38, 0) 40%, rgba(11, 19, 38, 0.45) 100%);
  pointer-events: none;
}
.wd-side-inner {
  position: absolute;
  z-index: 1;
  left: 50px;
  right: 40px;
  bottom: calc(70px - var(--hdef) * 0.05);
  color: var(--white);
}
.wd-side-en {
  font-family: 'Quattrocento', serif;
  font-size: clamp(64px, 7vw, 104px);
  line-height: 1;
  letter-spacing: 0.02em;
}
.wd-side-ja {
  margin-top: 14px;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.08em;
}
.wd-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin-top: 28px;
  font-size: 12px;
  letter-spacing: 0.05em;
}
.wd-breadcrumb li + li::before {
  content: '>';
  margin: 0 10px;
  opacity: 0.7;
}
.wd-breadcrumb a:hover { opacity: 0.7; }

/* 右上のお問い合わせボタン: TOP と同じ見た目。白い背景の上でも見えるよう文字は紺 */
.wd-contact-btn { color: var(--wd-ink); text-shadow: none; }
.wd-contact-btn .top-contact-btn-circle { color: var(--white); }

/* --- 右: 本文 --- */
.wd-main {
  margin-left: var(--wd-side-w);
  padding: 170px clamp(40px, 7vw, 120px) 0;
  color: var(--wd-ink);
  min-height: 100vh;
}
.wd-head,
.wd-section,
.wd-pager {
  max-width: 820px;
}
.wd-cat {
  font-family: 'Gabarito', sans-serif;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--gold-c);
}
.wd-title {
  margin-top: 10px;
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.04em;
}
.wd-type {
  margin-top: 6px;
  font-size: 14px;
  color: rgba(27, 36, 51, 0.6);
}
.wd-lead {
  margin-top: 40px;
  font-size: 15px;
  line-height: 2.1;
}
.wd-info {
  margin-top: 40px;
  border-top: 1px solid var(--wd-line);
}
.wd-info > div {
  display: grid;
  grid-template-columns: 9em 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--wd-line);
  font-size: 14px;
  line-height: 1.8;
}
.wd-info dt { font-weight: 700; }
.wd-info a {
  color: #2f5fb3;
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-all;
}

/* 実績の画像: 右側の幅いっぱい (余白を超えて右端まで) */
.wd-visual {
  margin: 80px calc(-1 * clamp(40px, 7vw, 120px)) 0 0;
  background: #1b2433;
  overflow: hidden;
}
.wd-visual img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  margin: 0 auto;
  transition: transform 1.4s var(--tw-ease, ease);
}

.wd-section { margin-top: 120px; }

/* 英字の大見出し: 薄い文字の上に濃い文字を重ね、画面に入ると左から濃い色に変わる */
.wd-heading-en {
  position: relative;
  display: flex;
  align-items: center;
  gap: 32px;
  font-family: 'Quattrocento', serif;
  font-size: clamp(56px, 6vw, 88px);
  line-height: 1;
  letter-spacing: 0.02em;
  color: rgba(27, 36, 51, 0.12);
  white-space: nowrap;
}
.wd-heading-en::before {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  color: var(--wd-ink);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.1s;
}
.wd-heading-en::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(27, 36, 51, 0.3);
}
.wd-heading.is-inview .wd-heading-en::before { clip-path: inset(0 0 0 0); }
.wd-heading-ja {
  margin-top: 18px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.wd-text {
  margin-top: 40px;
  font-size: 15px;
  line-height: 2.1;
}
.wd-list {
  margin-top: 20px;
  padding-left: 1.6em;
  list-style: decimal;
  font-size: 15px;
  line-height: 2;
}
.wd-list li + li { margin-top: 8px; }
.wd-list strong { font-weight: 700; }

/* 前後の実績 */
.wd-pager {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  margin-top: 140px;
  padding: 36px 0;
  border-top: 1px solid var(--wd-line);
  border-bottom: 1px solid var(--wd-line);
}
.wd-pager-link { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.wd-pager-link--prev { grid-column: 1; }
.wd-pager-link--next { grid-column: 3; text-align: right; }
.wd-pager-label {
  font-family: 'Gabarito', sans-serif;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--gold-c);
}
.wd-pager-name {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wd-pager-all {
  grid-column: 2;
  padding: 12px 28px;
  border: 1px solid var(--wd-ink);
  border-radius: 100px;
  font-size: 14px;
  white-space: nowrap;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.wd-pager-all:hover { background: var(--wd-ink); color: var(--white); }
.wd-pager-link:hover .wd-pager-name { text-decoration: underline; text-underline-offset: 4px; }

/* CONTACT: 右側のいちばん最後 (右端まで) */
.wd-contact {
  margin: 140px calc(-1 * clamp(40px, 7vw, 120px)) 0 calc(-1 * clamp(40px, 7vw, 120px));
}
body.single-works .wd-contact #contact-sidebar {
  position: relative;
  top: auto;
  right: auto;
  width: auto;
  height: auto;
  min-height: 100vh;
  overflow: visible;
  z-index: auto;
}

/* 文字・画像が下からふわっと現れる (theme.js が .is-inview を付ける) */
.js-wd-anim .wd-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.js-wd-anim .wd-reveal.is-inview {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .js-wd-anim .wd-reveal { opacity: 1; transform: none; transition: none; }
  .wd-heading-en::before { clip-path: none; transition: none; }
}

/* --- 1024px 以下: 左の固定をやめ、上に見出し、下に本文 --- */
@media (max-width: 1024px) {
  .wd-side {
    position: relative;
    left: 0;
    width: 100%;
    height: 56vh;
  }
  .wd-side-inner { left: 24px; right: 24px; bottom: 32px; }
  .wd-side-en { font-size: 64px; }
  .wd-side-ja { font-size: 20px; }
  .wd-main {
    margin-left: 0;
    padding: 56px 24px 0;
  }
  .wd-visual { margin: 56px -24px 0; }
  .wd-section { margin-top: 88px; }
  .wd-heading-en { font-size: 48px; gap: 20px; }
  .wd-info > div { grid-template-columns: 7em 1fr; }
  .wd-pager { grid-template-columns: 1fr 1fr; margin-top: 96px; }
  .wd-pager-all { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
  .wd-pager-link--next { grid-column: 2; }
  .wd-contact { margin: 96px -24px 0; }
  body.single-works .wd-contact #contact-sidebar {
    display: flex;
    min-height: 0;
    padding: 48px 24px 96px;
  }
  body.single-works .wd-contact .sidebar-inner { gap: 48px; }
  body.single-works .wd-contact .sidebar-offices { flex-direction: column; gap: 16px; }
  body.single-works .wd-contact .sidebar-office { flex: none; min-width: 0; }
  body.single-works .wd-contact .sidebar-bottom { margin: auto 0 0; justify-content: center; align-self: center; }
  .wd-contact-btn { top: auto; bottom: 20px; right: 16px; }
  .wd-contact-btn .top-contact-btn-label { display: none; }
}

/* ================================================================
   WORKS 一覧ページ — デザイン刷新 (2026-10-16)
   参考: クライマークスの実績一覧。横スクロールはそのまま。
   背景は TOP と同じ鮮やかな空の動画、左下に大きな英字「WORKS」、
   実績は横長の画像 + 社名・種別・コンセプト文の列を並べる。
   ================================================================ */
.works-wrapper {
  --wk-item-w: 420px;
}
/* 背景: TOP と同じ見え方 (以前は青の上に動画を 15% だけ重ねていた) */
.works-wrapper .works-bg { background-color: var(--navy); }
.works-wrapper .works-bg::before { opacity: 0; }
.works-wrapper .works-bg-video {
  opacity: 1;
  filter: saturate(1.8) brightness(0.82) contrast(1.08);
}
/* 文字が読めるよう、全体を少しだけ暗くする */
.works-wrapper .works-bg::after {
  background-image: linear-gradient(180deg, rgba(11, 19, 38, 0.15) 0%, rgba(11, 19, 38, 0.35) 100%);
  background-size: auto; /* 以前のざらつき模様の指定 (140px の繰り返し) を打ち消し、横じまが出ないようにする */
  opacity: 1;
  mix-blend-mode: normal;
}

.works-wrapper .works-content-track {
  width: max-content;
}

/* --- イントロ: 左下に大見出し、右寄りに絞り込み --- */
.works-wrapper .works-intro {
  width: 640px;
}
.works-wrapper .works-title-en {
  font-family: 'Quattrocento', serif;
  font-weight: 400;
  font-size: clamp(72px, 7vw, 104px);
  letter-spacing: 0.02em;
  color: var(--white);
}
.works-wrapper .works-title-ja {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--white);
}
.works-wrapper .works-breadcrumb ol { font-size: 12px; color: rgba(255, 255, 255, 0.85); }
.works-wrapper .works-filters {
  left: 470px;
  top: calc(200px - var(--hdef) * 0.15);
  gap: 12px;
}
.works-wrapper .works-filter-btn {
  min-width: 112px;
  padding: 7px 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 100px;
  font-family: 'Gabarito', sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.15em;
  text-align: left;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.works-wrapper .works-filter-btn:hover { background: rgba(255, 255, 255, 0.15); }
.works-wrapper .works-filter-btn[aria-selected="true"] {
  background: var(--white);
  color: var(--navy);
}

/* --- 実績の列 --- */
.works-wrapper .works-item {
  width: var(--wk-item-w);
  padding: calc(200px - var(--hdef) * 0.15) 26px 0;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}
.works-wrapper .works-item-number {
  position: relative;
  margin-bottom: 22px;
  font-family: 'Gabarito', sans-serif;
  font-size: 13px;
  letter-spacing: 0.12em;
}
/* 列の線の上に、短い縦の目印 */
.works-wrapper .works-item-number::before {
  content: '';
  position: absolute;
  left: -27px;
  top: -2px;
  width: 1px;
  height: 18px;
  background: var(--white);
}
.works-wrapper .works-item-thumb-btn { display: block; }
.works-wrapper .works-item-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  border: none;
  box-shadow: 0 10px 30px rgba(11, 19, 38, 0.35);
}
.works-wrapper .works-item-thumb img {
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.works-wrapper .works-item-thumb-btn:hover .works-item-thumb,
.works-wrapper .works-item-thumb-btn:focus-visible .works-item-thumb { opacity: 1; }
.works-wrapper .works-item-thumb-btn:hover .works-item-thumb img { transform: scale(1.06); }
.works-wrapper .works-item-client {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.works-wrapper .works-item-client::before {
  content: '';
  flex-shrink: 0;
  width: 14px;
  height: 1px;
  background: currentColor;
}
.works-wrapper .works-item-client a:hover { text-decoration: underline; text-underline-offset: 4px; }
.works-wrapper .works-item-type {
  margin: 4px 0 0 26px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
}
.works-wrapper .works-item-concept {
  margin: 18px 0 0 26px;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.9);
  -webkit-font-smoothing: antialiased;
}

@media (max-width: 1024px) {
  .works-wrapper { --wk-item-w: 300px; }
  .works-wrapper .works-intro { width: 100vw; max-width: 520px; }
  .works-wrapper .works-filters { left: 24px; top: 72px; flex-direction: row; flex-wrap: wrap; gap: 8px; } /* 上: 戻るボタンをよける */
  .works-wrapper .works-filter-btn { min-width: 0; padding: 6px 12px; font-size: 11px; letter-spacing: 0.1em; }
  .works-wrapper .works-title-block { left: 24px; bottom: 32px; }
  .works-wrapper .works-item { padding: 18vh 20px 0; }
  .works-wrapper .works-item-number::before { left: -21px; }
}

/* ================================================================
   下層ページ — 横スクロール (PLAN / BUSINESS / FAQ / BLOG) デザイン刷新 (2026-10-16)
   参考: クライマークス。横スクロール・色・書体・文章はそのまま。
   TOP・WORKS と同じ空の動画の上に、左下の大きな英字の見出し → 縦向きの英字の大見出し +
   白っぽい面 (中身) を並べる。動きは TOP と同じ (assets/js/theme.js「11.」)。
   ================================================================ */
.lp {
  --tw-vhead: 21vh;
  --tw-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --lp-ink: #1b2433;
  --lp-paper: #eef1f5;
  --lp-line: rgba(27, 36, 51, 0.15);
  --lp-pad-top: calc(150px - var(--hdef) * 0.2);
}

/* 背景: TOP・WORKS と同じ空の動画 (固定) */
.lp-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--navy);
}
.lp-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.8) brightness(0.82) contrast(1.08);
}
.lp-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 19, 38, 0.15) 0%, rgba(11, 19, 38, 0.35) 100%);
}

/* トラック: 中身の幅に合わせて伸ばす (以前は固定の幅) */
.lp .lp-track {
  width: max-content;
}

/* --- 最初: 左下の大きな英字の見出し --- */
.lp-intro {
  position: relative;
  flex-shrink: 0;
  width: 640px;
  height: 100%;
  color: var(--white);
}
.lp-title-block {
  position: absolute;
  left: 50px;
  bottom: 47px;
}
.lp-title {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lp-title-en {
  font-family: 'Quattrocento', serif;
  font-weight: 400;
  font-size: clamp(72px, 7vw, 104px);
  line-height: 1;
  letter-spacing: 0.02em;
}
.business-wrapper .lp-title-en { font-size: clamp(64px, 6vw, 92px); }
.lp-title-ja {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.08em;
}
.lp-breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
}
.lp-breadcrumb li:not(:last-child)::after {
  content: '>';
  margin-left: 8px;
}
.lp-breadcrumb a:hover { opacity: 0.7; }

/* 丸い小さなボタン (タブ・月の絞り込み)。WORKS の絞り込みと同じ見た目 */
.lp-pills {
  position: absolute;
  left: 470px;
  top: calc(200px - var(--hdef) * 0.15);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lp-pill {
  min-width: 112px;
  padding: 7px 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 100px;
  background: transparent;
  color: var(--white);
  font-family: 'Gabarito', sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.15em;
  text-align: left;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.lp-pill:hover { background: rgba(255, 255, 255, 0.15); }
.lp-pill[aria-selected="true"],
.lp-pill.is-active {
  background: var(--white);
  color: var(--navy);
}

/* --- 縦向きの英字の大見出し (TOP の .top-vhead をそのまま使う) --- */
.lp-vhead { z-index: 1; }

/* --- 白っぽい面 --- */
.lp-panel {
  position: relative;
  flex-shrink: 0;
  height: 100%;
  padding: var(--lp-pad-top) 90px 56px 80px;
  background: var(--lp-paper);
  color: var(--lp-ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.lp-panel-head { margin-bottom: 40px; }
.lp-panel-en {
  font-family: 'Gabarito', sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--gold-c);
}
.lp-panel-title {
  margin-top: 10px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* --- 動き: 画面に入ると下からふわっと現れる --- */
.js-lp-anim .lp-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 1s var(--tw-ease);
  transition-delay: var(--d, 0s);
}
.js-lp-anim .lp-reveal.is-inview {
  opacity: 1;
  transform: none;
}
.js-lp-anim .lp-title-block { transition-delay: 0.2s; }
@media (prefers-reduced-motion: reduce) {
  .js-lp-anim .lp-reveal { opacity: 1; transform: none; transition: none; }
}

/* ----------------------------------------------------------------
   PLAN
   ---------------------------------------------------------------- */
.lp-plan-cards {
  display: grid;
  grid-template-columns: repeat(2, 330px);
  gap: 0 48px;
  border-top: 1px solid var(--lp-line);
}
.lp-plan-card {
  padding: 22px 0 24px;
  border-bottom: 1px solid var(--lp-line);
}
.lp-plan-card-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.lp-plan-card-price {
  margin-top: 6px;
  font-family: 'Gabarito', sans-serif;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.02em;
}
.lp-plan-card-price span,
.lp-price-card-price span {
  margin-left: 4px;
  font-size: 12px;
  font-weight: 400;
  color: rgba(27, 36, 51, 0.6);
}
.lp-plan-card-bullets {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(27, 36, 51, 0.8);
}
.lp-plan-card-bullets li {
  position: relative;
  padding-left: 16px;
}
.lp-plan-card-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.9em;
  width: 8px;
  height: 1px;
  background: var(--gold-c);
}
.lp-plan-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 708px;
  margin-top: 36px;
}
.lp-plan-tags li {
  padding: 5px 16px;
  border: 1px solid rgba(27, 36, 51, 0.35);
  border-radius: 100px;
  font-size: 12px;
  letter-spacing: 0.08em;
}

/* 料金: 見出しごとのまとまりを2段に並べる */
.lp-plan-prices { gap: 36px; }
.lp-price-row {
  display: flex;
  gap: 36px;
}
.lp-price-head {
  margin-bottom: 12px;
  padding-left: 14px;
  border-left: 2px solid var(--gold-c);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.3;
}
.lp-price-cards {
  display: flex;
  gap: 12px;
}
.lp-price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 200px;
  height: calc(230px - var(--hdef) * 0.12);
  padding: 18px 20px 0;
  background: var(--white);
  overflow: hidden;
  transition: transform 0.6s var(--tw-ease), box-shadow 0.6s var(--tw-ease);
}
.lp-price-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(27, 36, 51, 0.12);
}
.lp-price-card-label {
  font-size: 12px;
  line-height: 1.6;
  color: rgba(27, 36, 51, 0.75);
}
.lp-price-card-price {
  font-family: 'Gabarito', sans-serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.4;
}
.lp-price-card-img {
  width: auto;
  max-width: 82%;
  height: auto;
  max-height: 46%;
  margin: auto auto 16px;
  object-fit: contain;
}

/* 制作の流れ: 横に並べた番号と線 */
.lp-flow {
  display: flex;
  border-top: 1px solid var(--lp-line);
}
.lp-flow-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 128px;
  padding: 26px 18px 0 0;
}
.lp-flow-step::before {
  content: '';
  position: absolute;
  left: 0;
  top: -4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lp-ink);
}
.lp-flow-num {
  font-family: 'Quattrocento', serif;
  font-size: 40px;
  line-height: 1;
  color: rgba(27, 36, 51, 0.25);
}
.lp-flow-text {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: 0.04em;
}
.lp-flow-step--last .lp-flow-num { color: var(--gold-c); }
.lp-flow-step--last::before { background: var(--gold-c); box-shadow: 0 0 0 5px rgba(194, 148, 99, 0.2); }

/* ----------------------------------------------------------------
   BUSINESS
   ---------------------------------------------------------------- */
.lp-biz {
  flex-direction: row;
  align-items: center;
  gap: 72px;
}
.lp-biz-services {
  display: flex;
  flex-direction: column;
  gap: 48px;
  width: 360px;
}
.lp-biz-service-en {
  font-family: 'Quattrocento', serif;
  font-weight: 400;
  font-size: 38px;
  line-height: 1.1;
  letter-spacing: 0.02em;
}
.lp-biz-service-ja {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold-c);
}
.lp-biz-service-text {
  margin-top: 18px;
  font-size: 14px;
  line-height: 2;
}
.lp-biz-venn .business-venn-svg {
  position: static;
  display: block;
  width: min(700px, 60vw);
  height: auto;
  filter: drop-shadow(0 10px 24px rgba(27, 36, 51, 0.12));
}

/* 一文: 空の上に大きく */
.lp-statement {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 48px;
  height: 100%;
  padding: 0 120px 0 100px;
  color: var(--white);
}
.lp-statement-line {
  flex-shrink: 0;
  width: 120px;
  height: 1px;
  background: rgba(255, 255, 255, 0.7);
}
.lp-statement-text {
  font-size: 26px;
  font-weight: 400;
  line-height: 2.1;
  letter-spacing: 0.16em;
  white-space: nowrap;
  text-shadow: 0 4px 4px rgba(14, 44, 76, 0.3);
}

/* ----------------------------------------------------------------
   FAQ
   ---------------------------------------------------------------- */
.lp-faq { width: 620px; justify-content: flex-start; padding-top: calc(var(--lp-pad-top) + 40px); }
.lp-faq .lp-panel-en { font-size: 15px; }
.lp-faq-list {
  border-top: 1px solid var(--lp-line);
  overflow-y: auto;
}
.lp-faq-item { border-bottom: 1px solid var(--lp-line); }
.lp-faq-q {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  width: 100%;
  padding: 20px 0;
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.lp-faq-mark {
  flex-shrink: 0;
  width: 1em;
  font-family: 'Quattrocento', serif;
  font-size: 22px;
  line-height: 1.1;
  color: var(--gold-c);
}
.lp-faq-q-text {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.8;
}
.lp-faq-toggle {
  position: relative;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  margin-top: 6px;
}
.lp-faq-toggle::before,
.lp-faq-toggle::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  background: currentColor;
  transition: transform 0.4s var(--tw-ease);
}
.lp-faq-toggle::after { transform: rotate(90deg); }
.lp-faq-item.is-open .lp-faq-toggle::after { transform: rotate(0deg); }
.lp-faq-q:hover .lp-faq-q-text { text-decoration: underline; text-underline-offset: 4px; }
.lp-faq-a {
  display: flex;
  gap: 18px;
  padding: 0 32px 22px 0;
  font-size: 14px;
  line-height: 1.9;
  color: rgba(27, 36, 51, 0.8);
}
.lp-faq-a[hidden] { display: none; }

/* ----------------------------------------------------------------
   BLOG — 記事の列は WORKS の一覧と同じ見せ方
   ---------------------------------------------------------------- */
.lp-archive {
  position: absolute;
  left: 470px;
  top: calc(200px - var(--hdef) * 0.15);
}
.lp-archive-label {
  font-family: 'Gabarito', sans-serif;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.8);
}
.lp-archive-year {
  margin: 10px 0 12px;
  padding: 0;
  background: none;
  border: none;
  color: var(--white);
  font-family: 'Quattrocento', serif;
  font-size: 26px;
  cursor: pointer;
}
.lp-archive-months {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lp-archive-months[hidden] { display: none; }

.lp .lp-blog-slot {
  display: flex;
  flex-shrink: 0;
  width: auto; /* 以前の固定の幅を打ち消し、記事の数・開いた記事に合わせる */
  height: 100%;
}
.lp .lp-blog-list {
  position: static; /* 以前は記事詳細と重ねるため絶対配置だった */
  display: flex;
  gap: 0;
  height: 100%;
  padding-top: 0;
}
.lp-blog-list[hidden] { display: none; }
.lp .lp-blog-card {
  flex-shrink: 0;
  width: 380px;
  height: 100%;
  padding: calc(200px - var(--hdef) * 0.15) 26px 0;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--white);
}
.lp-blog-card-link { display: block; }
.lp-blog-card-date {
  position: relative;
  margin-bottom: 22px;
  font-family: 'Gabarito', sans-serif;
  font-size: 13px;
  letter-spacing: 0.12em;
}
.lp-blog-card-date::before {
  content: '';
  position: absolute;
  left: -27px;
  top: -2px;
  width: 1px;
  height: 18px;
  background: var(--white);
}
.lp-blog-card-thumb {
  aspect-ratio: 16 / 10;
  margin: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.08)); /* 写真がまだないため */
  box-shadow: 0 10px 30px rgba(11, 19, 38, 0.35);
  transition: transform 1.2s var(--tw-ease);
}
.lp-blog-card-link:hover .lp-blog-card-thumb { transform: scale(1.03); }
.lp-blog-card-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.lp-blog-card-title::before {
  content: '';
  flex-shrink: 0;
  width: 14px;
  height: 1px;
  background: currentColor;
}
.lp-blog-card-link:hover .lp-blog-card-title { text-decoration: underline; text-underline-offset: 4px; }
.lp-blog-card-cat {
  margin: 4px 0 0 26px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
}
.lp-blog-card-excerpt {
  margin: 18px 0 0 26px;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.9);
}

/* 記事を開いたとき: 白っぽい面で本文を表示 */
.lp-blog-detail {
  width: min(860px, 70vw);
  justify-content: flex-start;
}
.lp-blog-detail[hidden] { display: none; }
.lp-blog-close {
  position: absolute;
  top: calc(var(--lp-pad-top) - 70px);
  right: 40px;
  padding: 8px 20px;
  border: 1px solid var(--lp-ink);
  border-radius: 100px;
  background: none;
  color: var(--lp-ink);
  font-family: 'Gabarito', sans-serif;
  font-size: 13px;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.lp-blog-close:hover { background: var(--lp-ink); color: var(--white); }
.lp-blog-detail-cat {
  margin-left: 16px;
  font-family: var(--font-ja);
  letter-spacing: 0.08em;
  color: rgba(27, 36, 51, 0.6);
}
.lp-blog-detail-head { margin-bottom: 32px; }
.lp-blog-detail-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 12px;
}
.lp-blog-detail-thumb {
  aspect-ratio: 16 / 9;
  max-height: 40vh;
  margin: 0;
  background: linear-gradient(135deg, #c9d3e3, #e6ebf2);
}
.lp-blog-detail-body {
  margin-top: 32px;
  font-size: 15px;
  line-height: 2.1;
}

/* ----------------------------------------------------------------
   1024px 以下 (タブレット・スマホ)
   ---------------------------------------------------------------- */
@media (max-width: 1024px) {
  .lp {
    --tw-vhead: 16vh;
    --lp-pad-top: 84px; /* 戻るボタンをよける */
  }
  .lp-intro { width: 100vw; max-width: 520px; }
  .lp-title-block { left: 24px; bottom: 32px; }
  .lp-title-en { font-size: min(88px, 15.5vw); }
  .business-wrapper .lp-title-en { font-size: min(72px, 14vw); }
  .lp-title-ja { font-size: 20px; }
  .lp-pills,
  .lp-archive {
    left: 24px;
    top: 72px;
  }
  .lp-pills,
  .lp-archive-months { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .lp-archive-year { margin: 4px 0 8px; font-size: 20px; }
  .lp-pill { min-width: 0; padding: 6px 12px; font-size: 11px; letter-spacing: 0.1em; }

  .lp-panel {
    padding: var(--lp-pad-top) 28px 28px 28px;
    overflow-y: auto;
    justify-content: flex-start;
  }
  .lp-panel-head { margin-bottom: 24px; }
  .lp-panel-title { font-size: 20px; }

  .lp-plan-cards { grid-template-columns: repeat(2, 230px); gap: 0 24px; } /* 2列のまま (1列だと画面の高さに入りきらない) */
  .lp-plan-tags { max-width: 484px; }
  .lp-plan-card { padding: 14px 0 16px; }
  .lp-plan-card-price { font-size: 24px; }
  .lp-plan-tags { margin-top: 24px; }

  .lp-plan-prices { gap: 24px; }
  .lp-price-row { gap: 20px; }
  .lp-price-card { width: 150px; height: 190px; padding: 14px 14px 0; }
  .lp-price-card-price { font-size: 18px; }

  .lp-plan-flow { justify-content: center; }
  .lp-flow-step { width: 104px; padding-right: 12px; }
  .lp-flow-num { font-size: 32px; }
  .lp-flow-text { font-size: 12px; }

  .lp-biz { gap: 40px; }
  .lp-biz-services { width: 280px; gap: 32px; }
  .lp-biz-service-en { font-size: 28px; }
  .lp-biz-venn .business-venn-svg { width: 520px; }
  .lp-statement { padding: 0 48px 0 40px; gap: 24px; }
  .lp-statement-line { width: 48px; }
  .lp-statement-text { font-size: 17px; letter-spacing: 0.1em; }

  .lp-faq { width: 88vw; max-width: 460px; padding-top: var(--lp-pad-top); }

  .lp .lp-blog-card { width: 300px; padding: 22vh 20px 0; }
  .lp-blog-card-date::before { left: -21px; }
  .lp-blog-detail { width: 92vw; }
  .lp-blog-close { top: 24px; right: 20px; }
}

/* ================================================================
   下層ページ — 縦スクロール (COMPANY / PRIVACY POLICY) デザイン刷新 (2026-10-16)
   実績の詳細ページ (.wd) と同じ作り。左に空の動画と大きな英字を固定し、右の本文を縦にスクロール。
   ================================================================ */
body.con-wd-page {
  --wd-side-w: clamp(360px, 34vw, 560px);
  --wd-ink: #1b2433;
  --wd-paper: #eef1f5;
  --wd-line: rgba(27, 36, 51, 0.15);
  --tw-ease: cubic-bezier(0.22, 1, 0.36, 1);
  background: var(--wd-paper);
}
body.con-wd-page #main-content { margin-right: 0; }
body.con-wd-page #gnav { background: rgba(11, 19, 38, 0.92); }
.wd-side-title { display: block; }
.wd-side-title > span { display: block; }
body.con-wd-page .wd-side-en { font-size: clamp(56px, 5.6vw, 92px); }

body.con-wd-page .wd-contact #contact-sidebar {
  position: relative;
  top: auto;
  right: auto;
  width: auto;
  height: auto;
  min-height: 100vh;
  overflow: visible;
  z-index: auto;
}
.wd--page .wd-main { padding-top: 120px; }
.wd--page .wd-section { max-width: 820px; }
.wd--page .wd-section--first { margin-top: 0; }
.wd--page .wd-heading { margin-bottom: 40px; }
.wd-heading-num {
  margin-right: 16px;
  font-family: 'Gabarito', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--gold-c);
  vertical-align: 0.15em;
}
.wd--page .wd-info { margin-top: 0; }

/* COMPANY: 代表メッセージ */
.co-photo { margin: 0 0 64px; overflow: hidden; }
.co-photo img { width: 100%; height: auto; max-width: 545px; }
.co-block + .co-block { margin-top: 80px; }
.co-block p { margin-top: 18px; font-size: 15px; line-height: 2.1; }
.co-block-heading {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--wd-line);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.co-block-heading span {
  font-family: 'Gabarito', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--gold-c);
}
.co-theme {
  margin: 36px 0 12px;
  padding: 36px 40px;
  background: var(--white);
}
.co-block .co-theme-label { margin-top: 0; font-size: 12px; letter-spacing: 0.15em; color: rgba(27, 36, 51, 0.6); }
.co-block .co-theme-text {
  margin-top: 8px;
  font-family: 'Quattrocento', serif;
  font-size: clamp(34px, 3.4vw, 48px);
  line-height: 1.2;
  letter-spacing: 0.02em;
}
.co-block .co-theme-lead { margin-top: 14px; font-size: 16px; font-weight: 700; letter-spacing: 0.08em; }
.co-sub {
  margin-top: 40px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold-c);
}
.co-block .co-catch { margin-top: 8px; font-size: 17px; font-weight: 700; line-height: 1.9; }
.co-values {
  margin-top: 16px;
  border-top: 1px solid var(--wd-line);
  counter-reset: co-values;
}
.co-values li {
  display: grid;
  grid-template-columns: 2.4em 15em 1fr;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--wd-line);
  font-size: 14px;
  line-height: 1.8;
  counter-increment: co-values;
}
.co-values li::before {
  content: counter(co-values, decimal-leading-zero);
  font-family: 'Gabarito', sans-serif;
  color: var(--gold-c);
}
.co-values strong { font-family: 'Gabarito', sans-serif; font-weight: 600; letter-spacing: 0.04em; }
.co-em { font-weight: 700; }
.co-sign {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  margin-top: 56px;
}
.co-sign img { width: 78%; max-width: 360px; height: auto; }
.co-sign-name { font-size: 14px; font-weight: 300; line-height: 1.9; text-align: right; }
.co-power-image { margin: 0; background: var(--white); padding: 32px; }
.co-power-image img { width: 100%; height: auto; }

/* PRIVACY POLICY: 本文 */
.wd-prose {
  max-width: 820px;
  font-size: 15px;
  line-height: 2.1;
}
.wd-prose > * + * { margin-top: 1.2em; }
.wd-prose h2 {
  margin-top: 64px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--wd-line);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.wd-prose > h2:first-child { margin-top: 0; }
.wd-prose h3 { margin-top: 36px; font-size: 16px; font-weight: 700; }
.wd-prose ul,
.wd-prose ol { padding-left: 1.6em; }
.wd-prose ul { list-style: disc; }
.wd-prose ol { list-style: decimal; }
.wd-prose a { color: #2f5fb3; text-decoration: underline; text-underline-offset: 3px; word-break: break-all; }

@media (max-width: 1024px) {
  body.con-wd-page .wd-side-en { font-size: min(64px, 14vw); }
  .wd--page .wd-main { padding-top: 56px; }
  body.con-wd-page .wd-contact #contact-sidebar {
    display: flex;
    min-height: 0;
    padding: 48px 24px 96px;
  }
  body.con-wd-page .wd-contact .sidebar-inner { gap: 48px; }
  body.con-wd-page .wd-contact .sidebar-offices { flex-direction: column; gap: 16px; }
  body.con-wd-page .wd-contact .sidebar-office { flex: none; min-width: 0; }
  body.con-wd-page .wd-contact .sidebar-bottom { margin: auto 0 0; justify-content: center; align-self: center; }
  .co-theme { padding: 28px 24px; }
  .co-values li { display: block; }
  .co-values li::before { display: inline-block; width: 2.2em; }
  .co-values strong::after { content: '\A'; white-space: pre; }
  .co-power-image { padding: 16px; }
}

/* 採用情報 (page-recruit.php) — 2026-10-16 新規。今は募集していないお知らせ */
.wd-recruit-note {
  max-width: 820px;
  padding: 48px 52px;
  background: var(--white);
  font-size: 15px;
  line-height: 2.1;
}
.wd-recruit-note p + p { margin-top: 0.6em; }
.wd-recruit-note .wd-recruit-status {
  margin-bottom: 1.2em;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.wd--page .wd-section--first + .wd-contact { margin-top: 160px; }
@media (max-width: 1024px) {
  .wd-recruit-note { padding: 32px 24px; }
  .wd-recruit-note .wd-recruit-status { font-size: 17px; }
}
/* スマホで文の途中 (「おりま／せん」など) で改行されないよう、読点のところで折り返す */
.wd-recruit-note span { display: inline-block; }

/* COMPANY 企業理念「Give and Give and, Take」: 大きく・白い面なし (2026-10-16 ご指示) */
.co-theme {
  margin: 48px 0 24px;
  padding: 0;
  background: none;
}
.co-block .co-theme-text {
  margin-top: 14px;
  font-size: clamp(56px, 6vw, 96px);
  line-height: 1.1;
}
.co-block .co-theme-lead { margin-top: 22px; font-size: 18px; }
@media (max-width: 1024px) {
  .co-theme { padding: 0; }
  .co-block .co-theme-text { font-size: min(52px, 13vw); }
}

/* PLAN: WEBデザインプラン・Ai-Bow (2026-10-16 追加) */
.lp-plan-cards--3 { grid-template-columns: repeat(3, 260px); gap: 0 36px; }
.lp-plan-card.is-recommend .lp-plan-card-price { color: var(--gold-c); }
.lp-plan-badge {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 10px;
  border-radius: 100px;
  background: var(--gold-c);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  vertical-align: 0.1em;
}
.lp-plan-lead {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.9;
  color: rgba(27, 36, 51, 0.8);
}
.lp-plan-note {
  margin-top: 20px;
  font-size: 12px;
  color: rgba(27, 36, 51, 0.7);
}
@media (max-width: 1024px) {
  .lp-plan-cards--3 { grid-template-columns: repeat(3, 210px); gap: 0 20px; }
  .lp-plan-lead { font-size: 13px; }
}

/* PLAN: 会社案内パンフレットどおりの料金表 (2026-10-16) */
.lp-plan-cols {
  display: flex;
  border-top: 1px solid var(--lp-line);
}
.lp-plan-col {
  position: relative;
  width: 250px;
  padding: 24px 28px 8px 0;
}
.lp-plan-col + .lp-plan-col {
  padding-left: 28px;
  border-left: 1px solid var(--lp-line);
}
#plan-graphic .lp-plan-col:first-child { width: 300px; }
.lp-plan-col-title {
  min-height: 2.9em;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.04em;
}
.lp-plan-col-title::after {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  margin-top: 10px;
  background: var(--gold-c);
}
.lp-plan-pricelist { margin-top: 18px; }
.lp-plan-pricelist > div {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 6px 0;
}
.lp-plan-pricelist dt {
  min-width: 3em;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-c);
}
.lp-plan-pricelist dd,
.lp-plan-col-price {
  font-family: 'Gabarito', sans-serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}
.lp-plan-pricelist dd span,
.lp-plan-col-price span {
  margin-left: 2px;
  font-family: var(--font-ja);
  font-size: 11px;
  font-weight: 400;
  color: rgba(27, 36, 51, 0.6);
}
#plan-graphic .lp-plan-col:nth-child(2) .lp-plan-pricelist > div { flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 0; }
#plan-graphic .lp-plan-col:nth-child(2) .lp-plan-pricelist dt { min-width: 0; }
.lp-plan-col-price { margin-top: 14px; font-size: 26px; }
.lp-plan-col-pages {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 12px;
  background: var(--white);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}
.lp-plan-items {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.85;
}
.lp-plan-items li {
  position: relative;
  padding-left: 14px;
}
.lp-plan-items li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-c);
}
.lp-plan-col .lp-plan-note { margin-top: 12px; font-size: 11px; line-height: 1.7; }
.lp-plan-stamp {
  display: inline-block;
  margin-top: 14px;
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--gold-c);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.lp-plan-card-price span { font-family: var(--font-ja); }
/* オプション: 見出しを付けた分、カードを少し低くして画面の高さに収める */
.lp-plan-prices .lp-panel-head { margin-bottom: 0; }
.lp-plan-prices .lp-price-card { height: calc(190px - var(--hdef) * 0.12); }
.lp-price-note { max-width: 420px; margin-top: 8px; font-size: 11px; line-height: 1.6; }
.lp-price-head sup { font-size: 0.6em; }

@media (max-width: 1024px) {
  .lp-plan-col { width: 220px; padding-right: 20px; }
  .lp-plan-col + .lp-plan-col { padding-left: 20px; }
  #plan-graphic .lp-plan-col:first-child { width: 250px; }
  .lp-plan-pricelist dd, .lp-plan-col-price { font-size: 20px; }
  .lp-plan-items { font-size: 12px; }
  .lp-plan-prices .lp-price-card { height: 170px; }
}

/* 404 ページ (404.php) — 2026-10-16 新規 */
.wd-404-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px !important; }
.wd-404-links .wd-pager-all { display: inline-block; }

/* PLAN: Ai-Bow の強み・DX伴走支援 (2026-10-16 追加) */
.lp-plan-aibow .lp-plan-lead { max-width: 820px; }
.lp-plan-point {
  max-width: 852px;
  margin-top: 28px;
  padding: 18px 24px;
  background: var(--white);
  font-size: 13px;
  line-height: 1.8;
}
.lp-plan-point-title { font-weight: 700; color: var(--gold-c); }
.lp-plan-dx { width: 1000px; }
.lp-dx {
  display: flex;
  gap: 56px;
}
.lp-dx-info {
  width: 460px;
  border-top: 1px solid var(--lp-line);
}
.lp-dx-info > div {
  padding: 18px 0;
  border-bottom: 1px solid var(--lp-line);
}
.lp-dx-info dt {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.lp-dx-info dd {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.9;
}
.lp-dx-term {
  display: block;
  font-family: var(--font-ja);
  font-size: 18px;
  color: var(--gold-c);
}
.lp-dx-case { width: 400px; }
.lp-dx-case-title {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--lp-line);
  font-size: 15px;
  font-weight: 700;
}
.lp-dx-steps { counter-reset: dx; }
.lp-dx-steps li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  font-size: 14px;
  line-height: 1.7;
  counter-increment: dx;
}
.lp-dx-steps li::before {
  content: counter(dx, decimal-leading-zero);
  flex-shrink: 0;
  font-family: 'Quattrocento', serif;
  font-size: 28px;
  line-height: 1;
  color: var(--gold-c);
}
.lp-dx-steps li + li::after {
  content: '';
  position: absolute;
  left: 14px;
  top: -10px;
  width: 1px;
  height: 14px;
  background: var(--lp-line);
}
.lp-dx-steps strong { font-weight: 700; }
@media (max-width: 1024px) {
  .lp-plan-dx { width: auto; }
  .lp-dx { gap: 32px; }
  .lp-dx-info { width: 300px; }
  .lp-dx-case { width: 280px; }
  .lp-dx-info dd, .lp-dx-steps li { font-size: 13px; }
  .lp-plan-point { max-width: 640px; }
}

/* PLAN: 制作の流れを料金の下に小さく (会社案内パンフレットと同じ置き方。2026-10-16) */
.lp-plan-sheet { --mf: calc(92px - var(--hdef) * 0.07); }
.lp-plan-sheet .lp-panel-head { margin-bottom: 28px; }
.lp-plan-sheet .lp-plan-col { padding-top: 18px; padding-bottom: 4px; }
.lp-plan-sheet .lp-plan-pricelist > div { padding: 4px 0; }
.lp-plan-sheet .lp-plan-items { line-height: 1.75; }
.lp-miniflow {
  display: flex;
  gap: 22px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--lp-line);
}
.lp-miniflow li {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--mf);
  height: var(--mf);
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 6px 14px rgba(27, 36, 51, 0.08);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
  letter-spacing: 0.02em;
}
/* 丸と丸をつなぐ線 */
.lp-miniflow li + li::before {
  content: '';
  position: absolute;
  right: 100%;
  top: 50%;
  width: 22px;
  height: 1px;
  background: var(--lp-ink);
}
.lp-miniflow li.is-last::before { width: 22px; }
.lp-miniflow li.is-last::after {
  content: '';
  position: absolute;
  right: calc(100% - 1px);
  top: calc(50% - 4px);
  border: 4px solid transparent;
  border-left: 6px solid var(--lp-ink);
  border-right: 0;
}
.lp-miniflow li.is-last {
  font-size: 12px;
  color: var(--white);
}
.lp-miniflow--gold li.is-last { background: var(--gold-c); font-size: 15px; letter-spacing: 0.2em; }
.lp-miniflow--navy li.is-last { background: var(--lp-ink); }
@media (max-width: 1024px) {
  .lp-plan-sheet { --mf: 76px; }
  .lp-miniflow { gap: 16px; }
  .lp-miniflow li + li::before, .lp-miniflow li.is-last::before { width: 16px; }
  .lp-miniflow li { font-size: 9.5px; }
}
/* WEB の料金表: 金額とページ数を横に並べ、項目の行の間を詰めて、制作の流れまで画面の高さに収める */
#plan-web .lp-plan-col-title { min-height: 0; }
.lp-plan-col-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-top: 12px; }
.lp-plan-col-meta .lp-plan-col-price,
.lp-plan-col-meta .lp-plan-col-pages { margin-top: 0; }
.lp-plan-col-meta .lp-plan-col-price { flex-basis: 100%; }
#plan-web .lp-plan-items { margin-top: 12px; font-size: 12px; line-height: 1.65; }
#plan-web .lp-plan-col .lp-plan-note { margin-top: 8px; }
#plan-web .lp-plan-stamp { margin-top: 8px; padding: 4px 12px; }
@media (max-height: 760px) and (min-width: 1025px) {
  .lp-plan-sheet .lp-panel-head { margin-bottom: 18px; }
  .lp-plan-sheet .lp-plan-col-title { font-size: 15px; }
  .lp-miniflow { margin-top: 18px; padding-top: 16px; }
}
@media (max-width: 1024px) {
  .lp-plan-sheet .lp-panel-head { margin-bottom: 16px; }
  .lp-plan-sheet .lp-plan-col { padding-top: 12px; }
  .lp-plan-sheet .lp-plan-col-title { min-height: 0; font-size: 14px; }
  .lp-plan-sheet .lp-plan-pricelist { margin-top: 10px; }
  .lp-plan-sheet .lp-plan-pricelist > div { padding: 2px 0; }
  .lp-miniflow { margin-top: 16px; padding-top: 16px; }
}
#plan-web .lp-plan-col-pages { padding: 3px 10px; }

/* FAQ の答え: ふわっと開くとき、高さの動きに合わせて余白も一緒に動くよう、余白を中身の側に持たせる (2026-10-16) */
.lp-faq-a { padding: 0 32px 0 0; }
.lp-faq-a > * { margin-bottom: 22px; }
.lp-faq-a.is-opening > * { animation: con-fade-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) both; }
.lp-archive-months { padding-bottom: 2px; }
@keyframes con-fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* 代表メッセージの写真: 写真の右端と下端の1pxの明るい線を、少し拡大して枠の外に出す (2026-10-16) */
.co-photo { width: fit-content; max-width: 100%; }
.co-photo img { display: block; transform: scale(1.015); transform-origin: left top; }

/* BLOG を WordPress の「投稿」から読み込む (2026-10-17) */
.lp-blog-card-thumb { position: relative; overflow: hidden; }
.lp-blog-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lp-blog-detail-thumb { overflow: hidden; }
.lp-blog-detail-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lp-blog-detail-body.wd-prose { max-width: none; }
.lp .lp-blog-empty .lp-blog-card-title::before { content: none; }
.lp .lp-blog-empty .lp-blog-card-title { margin-top: 0; font-weight: 500; }

/* ブログ記事 1件のページ (single.php) */
.wd-post-cat {
  margin-left: 16px;
  font-family: var(--font-ja);
  letter-spacing: 0.08em;
  color: rgba(27, 36, 51, 0.6);
}
.wd-post-thumb { margin: 48px 0 0; max-width: 820px; overflow: hidden; }
.wd-post-thumb img { width: 100%; height: auto; display: block; }
.wd-post-body { margin-top: 48px; }
.wd-post-body img { max-width: 100%; height: auto; }

/* ブログ記事の表・小さい文字 (2026-10-17)。薄いグレーの面は使わず、線だけで区切る */
.wd-prose .wp-block-table { margin: 1.6em 0 0; overflow-x: auto; }
.wd-prose table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.7; }
.wd-prose th,
.wd-prose td { padding: 10px 14px; border-bottom: 1px solid rgba(27, 36, 51, 0.15); text-align: left; vertical-align: top; }
.wd-prose th { border-bottom: 2px solid var(--wd-ink, #1b2433); font-weight: 700; white-space: nowrap; }
.wd-prose td:first-child { white-space: nowrap; font-weight: 500; }
.wd-prose small { font-size: 12px; color: rgba(27, 36, 51, 0.6); }
@media (max-width: 767px) {
  .wd-prose table { font-size: 13px; }
  .wd-prose th, .wd-prose td { padding: 8px 10px; }
}

/* スマホのメニュー (2026-10-19)
   ハンバーガーを押したとき、メニューが左端の細い帯 (パソコン用の幅 20px) のまま出ていたのを直す。
   画面いっぱいの紺の面に、横書きで縦に並べる */
@media (max-width: 1024px) {
  .gnav-body.open {
    inset: auto;
    top: 60px;
    left: 0;
    right: 0;
    width: 100%;
    height: calc(100vh - 60px);
    height: calc(100dvh - 60px);
    padding: 40px 24px;
    overflow-y: auto;
    justify-content: flex-start;
    padding-top: 12vh;
    background: #0b1326; /* 下の白いページが透けないよう、不透明に */
  }
  .gnav-body.open .gnav-list {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    gap: 28px;
  }
  .gnav-body.open .gnav-link {
    display: block;
    font-size: 17px;
    letter-spacing: 0.2em;
    white-space: nowrap;
  }
  /* メニューを開いている間は、右下の丸いお問い合わせボタンを隠す */
  body:has(.gnav-body.open) .top-contact-btn { opacity: 0; pointer-events: none; }
}

/* メニューのメールアイコンをリンクにした (2026-10-19) */
a.gnav-indicator { display: block; transition: opacity var(--dur) var(--ease); }
a.gnav-indicator:hover { opacity: 0.6; }

/* スマホでも、横に動くページ (実績・プラン・事業内容・よくある質問・ブログ) の最後にお問い合わせフォームを出す (2026-10-19)
   TOP のスマホと同じ出し方 */
@media (max-width: 1024px) {
  .works-content-track #contact-sidebar,
  .faq-content-track #contact-sidebar,
  .blog-content-track #contact-sidebar,
  .plan-content-track #contact-sidebar,
  .business-content-track #contact-sidebar {
    display: flex;
    width: 100vw;
    padding: 84px 24px 48px; /* 上: 戻るボタンをよける */
  }
  :is(.works-content-track, .faq-content-track, .blog-content-track, .plan-content-track, .business-content-track) .sidebar-inner { gap: 48px; }
  :is(.works-content-track, .faq-content-track, .blog-content-track, .plan-content-track, .business-content-track) .sidebar-offices { flex-direction: column; gap: 16px; }
  :is(.works-content-track, .faq-content-track, .blog-content-track, .plan-content-track, .business-content-track) .sidebar-office { flex: none; min-width: 0; }
  :is(.works-content-track, .faq-content-track, .blog-content-track, .plan-content-track, .business-content-track) .sidebar-bottom { margin: auto 0 0; justify-content: center; align-self: center; }
}
