/* ============================================================
   THANK YOU RENT-A-CAR — main.css
   Figma準拠 ライトテーマ / フルレスポンシブ
   ============================================================ */

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --bg:           #f7f7f7;
  --bg-alt:       #ebebeb;
  --bg-brand:     #e9e9e9;
  --bg-company:   #f3f3f3;
  --bg-contact:   #e8e8e8;

  --black:        #0a0a0a;
  --white:        #ffffff;
  --text:         #181818;
  --text-body:    #444444;
  --text-gray:    #7a7a7a;
  --text-mid:     #909090;
  --text-light:   #b0b0b0;

  --border:       #d4d4d4;
  --border-light: #c4c4c4;

  --sidebar-w:    200px;
  --sp-bar-h:     60px;
  --ease:         cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --font-display: 'Bebas Neue', sans-serif;
  --font-nav:     'Barlow Condensed', sans-serif;  /* サイドバーナビ専用（変更なし） */
  --font-en:      'Raleway', sans-serif;              /* 本文英語: Raleway ExtraBold */
  --font-jp:      'Noto Sans JP', sans-serif;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-jp);
  font-weight: 300;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* スナップ不要ページ */
body.page-template-page-privacy-policy,
body.page-privacy-policy,
body.page-contact,
body.contact-template-default,
body.single,
body.error404,
body.tyrac-no-snap { overflow: auto; }

a { text-decoration: none; color: inherit; transition: color 0.3s var(--ease); }
img { max-width: 100%; height: auto; display: block; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.site-sidebar {
  position: fixed;
  left: 0; top: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--white);
  border-right: 1px solid var(--border);
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* ロゴエリア — テキストロゴ時（デフォルト） */
.sidebar-logo-link {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px 20px 18px;
  background: var(--black);
  min-height: 130px;
  flex-shrink: 0;
  transition: opacity 0.3s;
}
.sidebar-logo-link:hover { opacity: 0.85; }

/* ロゴエリア — 画像ロゴ時（200×200px） */
.sidebar-logo-link.has-logo-img {
  display: block;
  padding: 0;
  min-height: 0;
  background: var(--black);
  width: var(--sidebar-w);
  height: var(--sidebar-w); /* 200×200の正方形 */
  overflow: hidden;
  flex-shrink: 0;
}

.sidebar-logo-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.sidebar-logo-name {
  font-family: var(--font-nav);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: 0.03em;
  color: var(--white);
  text-transform: uppercase;
}

.sidebar-logo-sub {
  display: block;
  margin-top: 8px;
  font-family: var(--font-nav);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: #999;
  text-transform: uppercase;
  line-height: 1.7;
}

.site-nav {
  list-style: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 24px;
  gap: 4px;
}

.site-nav a {
  display: block;
  font-family: var(--font-nav);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--text-gray);
  text-transform: uppercase;
  padding: 10px 0;
  position: relative;
  transition: color 0.25s var(--ease);
  writing-mode: horizontal-tb;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 6px; left: 0;
  width: 0; height: 1.5px;
  background: var(--black);
  transition: width 0.3s var(--ease);
}

.site-nav a:hover { color: var(--black); }
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after,
.site-nav a.active::after { width: 100%; }
.site-nav a[aria-current="page"],
.site-nav a.active { color: var(--black); }

/* ============================================================
   SNAP WRAPPER
   ============================================================ */
.snap-wrapper {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  left: var(--sidebar-w);
  overflow-y: scroll;
  scroll-snap-type: y proximity;
  scroll-behavior: smooth;
  background: var(--bg);
}
.snap-wrapper::-webkit-scrollbar { display: none; }
.snap-wrapper { -ms-overflow-style: none; scrollbar-width: none; }

/* FVのみスナップ（Privacy等）: 1セクション分だけ占有してスクロールで次へ */
.snap-wrapper--fv-only {
  position: relative;
  height: 100vh;
  overflow: hidden;
  scroll-snap-type: none;
  left: 0;
}

/* ============================================================
   PAGE FV — contact / privacy 用（snap-wrapperを使わない）
   ============================================================ */
.page-fv {
  height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  margin-left: var(--sidebar-w);
}

.page-fv-bg {
  position: absolute;
  inset: 0;
  background: #e0e0e0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.page-fv-content {
  position: relative;
  z-index: 2;
  padding: clamp(40px, 5vw, 72px) clamp(40px, 7vw, 96px);
  width: 100%;
}

.page-fv-content .page-hero-tag {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: rgba(0,0,0,0.5);
  display: block;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.page-fv-content h1 {
  font-family: var(--font-display);
  font-size: clamp(52px, 8vw, 96px);
  letter-spacing: 0.03em;
  line-height: 0.9;
  color: var(--black);
}

.snap-section {
  height: 100vh;
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}


/* ============================================================
   SECTION BACKGROUND — 汎用全画面背景・オーバーレイ
   ============================================================ */

/* 全画面背景画像（position:absolute inset:0） */
.section-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

/* オーバーレイは使用しない（削除済み） */

/* 背景画像あり時：テキストが上に来るよう z-index 確保 */
.section-inner,
.philosophy-content,
.service-about-content,
.company-info-inner,
.features-inner,
.flow-inner {
  position: relative;
  z-index: 2;
}

/* 背景画像あり時：セクション内のボーダー・カラー調整 */
.has-bg .tag-label  { color: var(--text-mid); }
.has-bg .heading-jp { color: var(--black); }
.has-bg .body-text  { color: var(--text-body); }

/* PHILOSOPHY / SERVICE ABOUT — 背景化後はシングルカラムレイアウト */
.philosophy-section,
.service-about {
  align-items: center;
}

.philosophy-content,
.service-about-content {
  max-width: 680px;
}

/* SECTION INNER 共通 */
.section-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 6vw, 88px) clamp(40px, 7vw, 96px);
  width: 100%;
}

/* ============================================================
   GLOBAL COMPONENTS
   ============================================================ */
.tag-label {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--text-mid);
  display: block;
  margin-bottom: 22px;
  text-transform: uppercase;
}

.heading-jp {
  font-size: clamp(22px, 3.2vw, 38px);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.5;
  color: var(--black);
}

.body-text {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-body);
  font-weight: 700;
}

.rule {
  width: 32px; height: 1px;
  background: var(--border-light);
  margin: 24px 0;
}

.ghost-label {
  position: absolute;
  right: -10px; bottom: -10px;
  font-family: var(--font-display);
  font-size: clamp(90px, 14vw, 180px);
  color: transparent;
  -webkit-text-stroke: 1px rgba(0,0,0,0.07);
  letter-spacing: 0.04em;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  border: 2px solid rgba(0,0,0,0.25);
  padding: 13px 28px;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.btn::after { content: '→'; font-size: 12px; transition: transform 0.3s var(--ease); }
.btn:hover { background: var(--black); color: var(--white); border-color: var(--black); }
.btn:hover::after { transform: translateX(4px); }

/* SP非表示クラス */
@media (max-width: 767px) { .sp-hide { display: none !important; } }

/* ボタン幅をコンテンツに合わせるラッパー */
.btn-wrap {
  display: flex;
  align-items: flex-start;
}

/* LEARN MORE等: コンテンツ幅、border 2px */
.btn-sm {
  font-size: 10px;
  letter-spacing: 0.22em;
  padding: 9px 22px;
  border-width: 2px;
  gap: 10px;
  width: auto;
  min-width: 0;
  display: inline-flex;
}
.btn-sm::after { font-size: 10px; }

.btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  color: var(--white);
  border: none;
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 16px 48px;
  cursor: pointer;
  transition: opacity 0.3s;
}
.btn-solid:hover { opacity: 0.8; }

.img-placeholder {
  background: #e4e4e4;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-mid);
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.25em;
  width: 100%;
  height: 100%;
  min-height: 200px;
  position: relative;
}
.img-placeholder::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(-45deg, transparent, transparent 14px, rgba(0,0,0,0.028) 14px, rgba(0,0,0,0.028) 15px);
}

/* ============================================================
   SECTION INNER — 共通
   ============================================================ */
.section-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 6vw, 88px) clamp(40px, 7vw, 96px);
}

/* ============================================================
   PAGE HERO（内部ページ共通）
   ============================================================ */
.page-hero {
  background: #e6e6e6;
  align-items: flex-end;
}

.page-hero-bg {
  position: absolute; inset: 0;
  background: #e0e0e0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.page-hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.25) 0%, transparent 70%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  padding: clamp(40px, 5vw, 72px) clamp(40px, 7vw, 96px);
  width: 100%;
}

.page-hero-tag {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: rgba(0,0,0,0.5);
  display: block;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(52px, 8vw, 96px);
  letter-spacing: 0.03em;
  line-height: 0.9;
  color: var(--black);
}

.page-hero-ghost {
  position: absolute;
  right: -10px; bottom: -16px;
  font-family: var(--font-display);
  font-size: clamp(140px, 22vw, 280px);
  color: transparent;
  -webkit-text-stroke: 1px rgba(0,0,0,0.06);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

/* ============================================================
   TOP — HERO
   ============================================================ */
.top-hero {
  background: #e8e8e8;
  align-items: flex-end;
}

.top-hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(165deg, #ececec 0%, #e4e4e4 30%, #e8e8e8 60%, #f0f0f0 100%);
  background-size: cover;
  background-position: center;
  z-index: 0;
}

/* PC用背景: デフォルト表示 / SP時は非表示 */
.top-hero-bg--pc {
  display: block;
}

/* SP用背景: デフォルト非表示 / SP時のみ表示 */
.top-hero-bg--sp {
  display: none;
}

.top-hero-content {
  position: relative;
  z-index: 3;
  padding: clamp(48px, 6vh, 80px) clamp(40px, 7vw, 96px);
  width: 100%;
}

.top-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(72px, 11vw, 148px);
  letter-spacing: 0.025em;
  line-height: 0.88;
  color: rgba(0,0,0,0.18);
  margin-bottom: 20px;
}

.top-hero .tagline {
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.38em;
  color: var(--text-mid);
  font-weight: 300;
}

.scroll-indicator {
  position: absolute;
  right: 48px; top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  z-index: 3;
}
.scroll-indicator span {
  font-family: var(--font-en);
  font-size: 8px;
  letter-spacing: 0.32em;
  color: var(--text-mid);
  writing-mode: vertical-rl;
}
.scroll-indicator::after {
  content: '';
  width: 1px; height: 64px;
  background: linear-gradient(to bottom, var(--border), transparent);
}

/* ============================================================
   TOP — SERVICE
   ============================================================ */
.top-service-section {
  background: linear-gradient(105deg, #f5f5f5 50%, #f0f0f0 100%);
  align-items: center;
}
.top-service-section .section-inner { justify-content: center; }

/* ============================================================
   TOP — BRAND
   ============================================================ */
.top-brand-section {
  background: var(--bg-brand);
  align-items: center;
}
.top-brand-section .section-inner { justify-content: center; }

.brand-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 40px;
  max-width: 520px;
  background: var(--border);
  border: 1px solid var(--border);
}

.brand-cell {
  background: var(--white);
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
}
.brand-cell:hover { background: var(--white); }

.brand-cell img {
  max-width: 70%; max-height: 70%;
  object-fit: contain;
  filter: grayscale(100%);
}

.brand-cell-text {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-body);
  font-weight: 600;
  text-align: center;
  padding: 4px;
  line-height: 1.3;
}

/* ブランドグリッド + etc... の横並び */
.brand-grid-wrap {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  margin-top: 20px;
}

.brand-note {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--text-body);
  margin: 12px 0 0 !important;
}

.brand-etc {
  font-family: var(--font-en);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-gray);
  padding-bottom: 4px;
  white-space: nowrap;
}

/* ============================================================
   TOP — COMPANY
   ============================================================ */
.top-company-section {
  background: var(--bg-company);
  align-items: center;
}
.top-company-section .section-inner { justify-content: center; }

/* ============================================================
   TOP — CONTACT CTA + FOOTER
   ============================================================ */
.top-contact-cta {
  background: var(--black);
  align-items: stretch;
  flex-direction: column;
}

.contact-cta-body {
  display: flex; flex-direction: column;
  justify-content: space-between;
  height: 100%; width: 100%;
}

.contact-cta-inner {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding: clamp(48px, 6vw, 88px) clamp(40px, 7vw, 96px) 32px;
}

.cta-text { flex: 1; min-width: 240px; }

/* CTA内テキスト白反転 */
.contact-cta-inner .tag-label { color: rgba(255,255,255,0.5); }
.contact-cta-inner .heading-jp { color: var(--white); }
.contact-cta-inner .body-text { color: rgba(255,255,255,0.7); }

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cta-actions .btn {
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
  min-width: 220px;
  justify-content: center;
}
.cta-actions .btn:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}
.cta-actions .btn::after { color: var(--white); }
.cta-actions .btn:hover::after { color: var(--black); }

/* 電話番号ボタン: Noto Sans JP Bold */
.cta-actions a[href^="tel"] {
  font-family: var(--font-jp) !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  font-size: 14px !important;
}

.cta-phone {
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--text-gray);
  margin-top: 16px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--black);
  padding: 40px clamp(40px, 7vw, 96px) 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  gap: 40px;
  flex-wrap: wrap;
}

.footer-logo-en {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.04em;
  color: var(--white);
  line-height: 1;
}

.footer-logo-jp {
  display: block;
  font-family: var(--font-jp);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.4);
  font-weight: 300;
  margin-top: 6px;
}

.footer-info p {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  line-height: 2.1;
  font-weight: 300;
}

.footer-links {
  display: flex; gap: 24px; flex-wrap: wrap;
  padding: 20px 0 14px;
}

.footer-links a {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.4);
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--white); }

.footer-copy {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.25);
}

/* ============================================================
   SERVICE — ABOUT
   ============================================================ */
.service-about {
  background: var(--bg);
  align-items: center;
}

/* service-about-inner → section-inner + service-about-content に統合（背景化対応） */

/* ============================================================
   SERVICE — FEATURES
   ============================================================ */
.service-features {
  background: var(--bg-alt);
  align-items: center;
}

.features-inner {
  position: relative; z-index: 2;
  width: 100%;
  padding: clamp(48px, 6vw, 88px) clamp(40px, 7vw, 96px);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 48px;
}

.feature-card {
  border-top: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
  padding: 32px 28px 32px 0;
}
.feature-card:last-child { border-right: none; }
.feature-card:not(:first-child) { padding-left: 28px; }

.feature-num {
  font-family: var(--font-display);
  font-size: 52px;
  color: var(--border-light);
  line-height: 1;
  margin-bottom: 16px;
}

.feature-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--black);
}

/* ============================================================
   SERVICE — FLOW
   ============================================================ */
.service-flow {
  background: #f6f6f6;
  align-items: center;
}

.flow-inner {
  position: relative; z-index: 2;
  width: 100%;
  padding: clamp(48px, 6vw, 88px) clamp(40px, 7vw, 96px);
}

.flow-track {
  display: flex;
  margin-top: 48px;
  position: relative;
}
.flow-track::before {
  content: '';
  position: absolute;
  top: 22px; left: 22px; right: 22px;
  height: 1px;
  background: var(--border-light);
}

.flow-step {
  flex: 1;
  text-align: center;
  position: relative;
}

.flow-num {
  width: 44px; height: 44px;
  border: 1px solid var(--border-light);
  background: #f6f6f6;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--text-gray);
  margin: 0 auto 16px;
  position: relative; z-index: 1;
}

.flow-title {
  font-size: 16px; font-weight: 700;
  color: var(--black);
  margin-bottom: 8px;
}

.flow-text {
  font-family: var(--font-jp);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-body);
  line-height: 1.75;
  padding: 0 8px;
}

/* ============================================================
   SERVICE — CTA
   ============================================================ */
.service-cta {
  background: var(--black);
  align-items: stretch;
  flex-direction: column;
}

/* ============================================================
   COMPANY — PHILOSOPHY
   ============================================================ */
.philosophy-section {
  background: var(--bg);
  align-items: center;
}

/* philosophy-inner → section-inner + philosophy-content に統合（背景化対応） */

/* ============================================================
   COMPANY — INFO TABLE
   ============================================================ */
.company-info-section {
  background: #eeeeee;
  align-items: flex-start;
}

.company-info-inner {
  position: relative; z-index: 2;
  width: 100%;
  padding: clamp(48px, 6vw, 88px) clamp(40px, 7vw, 96px);
  overflow-y: auto;
  max-height: 100vh;
}

.info-table {
  width: 100%;
  max-width: 720px;
  border-collapse: collapse;
  margin-top: 48px;
}
.info-table tr { border-bottom: 1px solid #aaaaaa; }
.info-table tr:first-child { border-top: 1px solid #aaaaaa; }

.info-table th {
  padding: 13px 32px 13px 0;
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--text-gray);
  font-weight: 400;
  text-align: left;
  width: 200px;
  vertical-align: top;
  white-space: nowrap;
}

.info-table td {
  padding: 13px 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.85;
}

.info-table a {
  color: var(--text);
  border-bottom: 1px solid var(--border-light);
  transition: border-color 0.3s;
}
.info-table a:hover { border-color: var(--black); }

/* ============================================================
   COMPANY — MAP
   ============================================================ */
.company-map-section {
  background: var(--white);
  align-items: stretch;
  flex-direction: column;
}

.company-map-inner {
  display: flex; flex-direction: column;
  height: 100%; width: 100%;
}

/* 地図エリア — 可変高（残りスペースを埋める） */
.map-container {
  flex: 1;
  position: relative;
  min-height: 200px;
  overflow: hidden;
}
.map-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  filter: grayscale(100%);
  -webkit-filter: grayscale(100%);
  pointer-events: none; /* ズーム・ドラッグ無効化 → ピン位置固定 */
}

/* 地図操作オーバーレイ（念のためiframeの上に透明レイヤー） */
.map-container::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: default;
}

.map-placeholder {
  height: 100%;
  min-height: 200px;
  background: #d4d4d4;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-mid);
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.28em;
}

/* 地図下の情報欄 */
.map-info-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  background: var(--white);
  flex-shrink: 0;
}

.map-info-item {
  padding: 20px 24px;
  border-right: 1px solid var(--border);
}
.map-info-item:last-child { border-right: none; }

.map-info-label {
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--text-mid);
  display: block;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.map-info-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.7;
}

.map-info-value a {
  color: var(--text);
  border-bottom: 1px solid var(--border-light);
}
.map-info-value a:hover { border-color: var(--black); }

/* ============================================================
   CONTACT ページ
   ============================================================ */
.contact-form-section {
  background: var(--bg);
  width: 100%;
  margin-left: var(--sidebar-w);
}

/* フッターラッパー（CONTACTページ専用: フォームセクションの外） */
.contact-footer-wrap {
  margin-left: var(--sidebar-w);
  width: calc(100% - var(--sidebar-w));
}

/* フォームエリア: 全幅1カラム */
.contact-form-inner {
  width: 100%;
  max-width: 860px;
  padding: clamp(56px, 7vw, 96px) clamp(40px, 7vw, 96px);
}

.form-intro {
  margin-bottom: 40px;
}

.form-intro .heading-jp {
  font-size: clamp(28px, 3.5vw, 42px);
  margin-top: 8px;
  line-height: 1.35;
}

.form-intro p {
  margin-top: 16px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.9;
  color: var(--text-body);
}

.form-wrap {
  width: 100%;
}

/* フォームフィールドグリッド: 2カラム */
.cf7-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 32px;
}

.cf7-grid-full {
  grid-column: 1 / -1;
}

/* 必須バッジ */
.cf7-req {
  display: inline-flex;
  align-items: center;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  padding: 3px 10px;
  border-radius: 100px;
  margin-left: 8px;
  vertical-align: middle;
  line-height: 1.4;
}

/* フォーム各フィールドのラベル行 */
.cf7-field {
  display: block;
  width: 100%;
}

.contact-form-wrap {
  position: relative; z-index: 2;
  width: 100%;
  padding: clamp(48px, 5vw, 72px) clamp(40px, 7vw, 96px);
  overflow-y: auto;
  max-height: 100vh;
}

/* ============================================================
   CF7 — CF7標準 <p> タグ出力に完全対応
   ============================================================ */

/* フォーム全体 */
.wpcf7 {
  width: 100%;
}

/* CF7が出力する <p> タグ — ラベル＋入力の1ブロック */
.wpcf7 p {
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ラベルテキスト */
.wpcf7 p label {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--text-gray);
  text-transform: uppercase;
  display: block;
  width: 100%;
}

/* ラベル内のspan（cf7-req）は inline-flex のまま維持 */
.wpcf7 p label .cf7-req {
  display: inline-flex;
}

/* br タグで改行してinput/textareaを下に配置 */
.wpcf7 p label br + * ,
.wpcf7 p label input,
.wpcf7 p label textarea,
.wpcf7 p label select {
  display: block;
  margin-top: 8px;
}

/* テキスト・メール・電話入力 */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 input[type="date"] {
  display: block !important;
  width: 100% !important;
  background: #f0f0f0 !important;
  border: 1px solid var(--border) !important;
  border-radius: 0 !important;
  padding: 14px 16px !important;
  font-family: var(--font-jp) !important;
  font-size: 16px !important;  /* iOSズーム防止: 16px必須 */
  font-weight: 700 !important;
  color: var(--text) !important;
  outline: none !important;
  -webkit-appearance: none !important;
  transition: border-color 0.25s !important;
  box-shadow: none !important;
}

/* セレクト */
.wpcf7 select {
  display: block !important;
  width: 100% !important;
  background: #f0f0f0 !important;
  border: 1px solid var(--border) !important;
  border-radius: 0 !important;
  padding: 14px 16px !important;
  font-family: var(--font-jp) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--text) !important;
  outline: none !important;
  -webkit-appearance: none !important;
}

/* テキストエリア */
.wpcf7 textarea {
  display: block !important;
  width: 100% !important;
  background: #f0f0f0 !important;
  border: 1px solid var(--border) !important;
  border-radius: 0 !important;
  padding: 14px 16px !important;
  font-family: var(--font-jp) !important;
  font-size: 16px !important;  /* iOSズーム防止 */
  font-weight: 700 !important;
  color: var(--text) !important;
  outline: none !important;
  -webkit-appearance: none !important;
  transition: border-color 0.25s !important;
  box-shadow: none !important;
  height: 180px !important;
  resize: vertical !important;
  line-height: 1.8 !important;
}

/* フォーカス */
.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
  border-color: var(--black) !important;
  outline: none !important;
  box-shadow: none !important;
}

/* 送信ボタン */
.wpcf7 input[type="submit"] {
  display: block !important;
  width: 100% !important;
  background: var(--black) !important;
  color: var(--white) !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 18px 0 !important;
  font-family: var(--font-en) !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  letter-spacing: 0.28em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  -webkit-appearance: none !important;
  transition: opacity 0.25s !important;
  margin-top: 8px !important;
}
.wpcf7 input[type="submit"]:hover { opacity: 0.75 !important; }

/* バリデーションエラー */
.wpcf7-not-valid-tip {
  font-size: 11px !important;
  color: #c00 !important;
  margin-top: 4px !important;
  display: block !important;
}
.wpcf7 .wpcf7-not-valid {
  border-color: #c00 !important;
}

/* レスポンスメッセージ */
.cf7-privacy-note {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-body);
  line-height: 1.9;
  margin-bottom: 16px;
  display: block !important;
}

/* flex解除: リンクを inline で並べる */
.wpcf7 p.cf7-privacy-note,
.wpcf7 .cf7-privacy-note {
  display: block !important;
  flex-direction: unset !important;
  margin: 0 0 16px !important;
  gap: 0 !important;
}

.cf7-privacy-note a {
  display: inline !important;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cf7-privacy-note a:hover {
  opacity: 0.7;
}

.wpcf7-response-output {
  border: none !important;
  background: transparent !important;
  margin: 16px 0 0 !important;
  padding: 0 !important;
  font-family: var(--font-jp) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--text-body) !important;
  line-height: 1.8 !important;
}

/* ============================================================
   PRIVACY POLICY
   ============================================================ */

/* Privacyページ全体ラッパー */
.privacy-site-main {
  margin-left: var(--sidebar-w);
  background: var(--bg);
}

/* FV: スナップ対象の全画面セクション */
.privacy-fv {
  height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  scroll-snap-align: start;
}

/* FV背景 */
.privacy-hero {
  background: #e6e6e6;
  height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.privacy-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.privacy-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.2) 0%, transparent 70%);
}

.privacy-hero-content {
  position: relative;
  z-index: 2;
  padding: clamp(48px, 7vw, 96px) clamp(40px, 7vw, 96px) clamp(40px, 5vw, 64px);
}

.policy-content,
.policy-section {
  padding: clamp(48px, 7vw, 96px) clamp(40px, 7vw, 96px);
  background: var(--bg);
}

.policy-wrap { max-width: 760px; }

.policy-wrap h2 {
  font-size: 15px; font-weight: 700;
  color: var(--black);
  margin: 48px 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.04em;
}
.policy-wrap h2:first-child { margin-top: 0; }

.policy-wrap p,
.policy-wrap li {
  font-size: 13px; line-height: 2;
  color: var(--text-body);
}
.policy-wrap ul { margin: 12px 0 0 20px; }
.policy-wrap li { margin-bottom: 6px; }

.policy-updated {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-mid);
}

.policy-footer {
  background: #e0e0e0;
  padding: 40px clamp(40px, 7vw, 96px) 24px;
  border-top: 1px solid var(--border);
}

/* ============================================================
   SP NAV BAR — Figma準拠：下部固定バー
   ============================================================ */
.sp-nav-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--sp-bar-h);
  background: var(--black);
  z-index: 1000;
  align-items: center;
  padding: 0 20px;
  gap: 16px;
}

/* CONTACTピル型ボタン */
.sp-contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--white);
  background: transparent;
  border: 2px solid var(--white);
  border-radius: 100px;
  padding: 0 28px;
  height: 38px;
  transition: background 0.25s, color 0.25s;
  flex-shrink: 0;
  text-decoration: none;
}
.sp-contact-btn:hover {
  background: var(--white);
  color: var(--black);
}

/* ハンバーガーボタン（右端） */
.sp-menu-btn {
  margin-left: auto;
  width: 44px;
  height: var(--sp-bar-h);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.sp-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
/* メニューオープン時：× */
.menu-open .sp-menu-btn span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-open .sp-menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .sp-menu-btn span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================================
   SP MENU OVERLAY — Figma準拠：下から展開する白パネル
   ============================================================ */
.sp-menu-overlay {
  display: none !important;
  position: fixed;
  left: 0; right: 0;
  top: 0;
  bottom: var(--sp-bar-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  z-index: 999;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px 32px 24px;
  overflow-y: hidden;
}
.sp-menu-overlay.is-open {
  display: flex !important;
}

/* sp-menu-closeは使わない（× はhamburgerボタンが担当） */
.sp-menu-close { display: none; }

.sp-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sp-nav-links li a {
  display: block;
  font-family: var(--font-nav);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--black);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s, padding-left 0.2s;
}
.sp-nav-links li:first-child a { border-top: 1px solid var(--border); }
.sp-nav-links li a:hover {
  color: var(--text-gray);
  padding-left: 8px;
}

.sp-menu-info {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.sp-menu-info p {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-body);
  line-height: 2;
  letter-spacing: 0.05em;
}
.sp-menu-info a { color: var(--text-body); }

/* ============================================================
   PAGE TRANSITION
   ============================================================ */
/* Page transition — 削除済み（WordPress環境ではJSタイミングが不安定なため無効化） */
body.page-leaving { opacity: 0; transition: opacity 0.3s ease; }

/* ============================================================
   FADE IN
   ============================================================ */
.fade-hidden {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in { opacity: 1; transform: translateY(0); }

/* ============================================================
   404
   ============================================================ */
.error-wrap {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 48px;
  background: var(--bg);
  text-align: center;
}
.error-num {
  font-family: var(--font-display);
  font-size: clamp(100px, 18vw, 200px);
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(0,0,0,0.12);
  line-height: 1;
  margin-bottom: 24px;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============================================================
   RESPONSIVE — TABLET (≤1024px)
   ============================================================ */
@media (max-width: 1024px) {
  

  .service-about-inner,
  .philosophy-inner { gap: 48px; }

  .top-hero h1 { font-size: clamp(60px, 9vw, 110px); }
}

/* ============================================================
   RESPONSIVE — SP (≤767px)
   ============================================================ */
@media (max-width: 767px) {
  :root {
    --sidebar-w: 0px;
    --sp-bar-h: 60px;
  }

  /* サイドバー非表示、SPバー表示 */
  .site-sidebar { display: none; }
  .sp-nav-bar { display: flex; }
  /* .sp-menu-overlay は .is-open 時のみ display:flex（上部で定義済み） */

  /* SPメニューオープン時：ページスクロール無効 */
  body.menu-open { overflow: hidden; }

  /* SPのbody-textフォントサイズ調整 */
  .body-text { font-size: 15px; }

  /* SP内のfeature body-text */
  .feature-card .body-text,
  .flow-text { font-size: 13px; }

  /* =====================================================
     SP: スクロールスナップ有効化
     （TOP / SERVICE / COMPANY はスワイプ型を維持）
     ===================================================== */
  html {
    overflow: hidden;
    height: 100%;
  }
  body {
    overflow: hidden;
    height: 100%;
  }

  /* snap-wrapper: SP でも fixed スナップを維持 */
  .snap-wrapper {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: var(--sp-bar-h) !important; /* ボトムバー分除く */
    width: auto !important;
    height: auto !important;
    overflow-y: hidden !important;  /* JS制御のためCSS snapを無効化 */
    scroll-snap-type: none !important;
    -webkit-overflow-scrolling: touch;
  }

  /* 各セクション: 100svh で1画面スナップ */
  .snap-section {
    height: 100svh !important;
    min-height: 100svh !important;
    scroll-snap-align: none !important;
    overflow: hidden !important;
    align-items: center;
  }

  /* TOP HERO */
  .top-hero {
    align-items: flex-end;
  }
  .top-hero h1 { font-size: clamp(52px, 14vw, 80px); }
  .top-hero .tagline { font-size: 11px; letter-spacing: 0.22em; }
  .scroll-indicator { display: none; }

  /* SP/PC 背景画像切り替え */
  .top-hero-bg--pc { display: none; }   /* PC用背景をSPで非表示 */
  .top-hero-bg--sp { display: block; }  /* SP用背景をSPで表示 */

  /* section-inner SP padding */
  .section-inner,
  .features-inner,
  .flow-inner {
    padding: 56px 24px;
  }

  .contact-cta-inner {
    padding: 32px 24px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 24px;
    height: 100%;
  }

  /* Service About — 背景化によりsingle column（SP追加対応不要）*/

  /* Features SP — 数字と見出しを横並び */
  .features-grid { grid-template-columns: 1fr; margin-top: 12px; }
  .features-inner { padding: 40px 24px calc(40px + var(--sp-bar-h)) !important; }
  .feature-card {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    padding: 18px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0;
  }
  .feature-card:not(:first-child) { padding-left: 0; }
  /* 数字: 左に配置 */
  .feature-num {
    flex: 0 0 auto;
    margin-right: 12px !important;
    margin-bottom: 0 !important;
    font-size: 32px !important;
    line-height: 1 !important;
  }
  /* 見出し: 数字と同じ行・下揃え */
  .feature-card .feature-title {
    flex: 1;
    align-self: flex-end;
    margin-bottom: 0 !important;
  }
  /* テキスト: 全幅で下に */
  .feature-card .body-text {
    flex: 0 0 100%;
    margin-top: 8px !important;
    font-size: 13px !important;
    line-height: 1.7 !important;
  }

  /* Flow SP — 上に移動 */
  .flow-inner { padding-top: 32px !important; }
  .flow-track { flex-direction: column; }
  .flow-track::before {
    top: 22px; left: 22px;
    right: auto; bottom: 22px;
    width: 1px; height: auto;
  }
  .flow-step {
    text-align: left;
    display: flex; align-items: flex-start; gap: 20px;
    padding-bottom: 24px;
  }
  .flow-step:last-child { padding-bottom: 0; }
  .flow-num { margin: 0; flex-shrink: 0; }

  /* Philosophy — 背景化によりsingle column（SP追加対応不要）*/

  /* Company info table */
  .company-info-inner {
    padding: 48px 24px calc(48px + var(--sp-bar-h)) !important;
    max-height: none;
  }
  .info-table th {
    width: 110px; font-size: 9px;
    padding-right: 12px;
    white-space: normal;
  }
  .info-table th, .info-table td { padding: 14px 0; }
  .info-table td { font-size: 13px; }

  /* Brand grid SP */
  .brand-grid { grid-template-columns: repeat(4, 1fr); max-width: 100%; }

  /* Contact form SP */
  .contact-form-section { margin-left: 0 !important; }
  .contact-footer-wrap { margin-left: 0 !important; width: 100% !important; padding-bottom: var(--sp-bar-h); }
  .contact-form-inner {
    padding: 48px 24px;
  }
  .cf7-grid { grid-template-columns: 1fr; }
  .cf7-grid-full { grid-column: 1; }

  /* Page hero SP */
  .page-hero-content { padding: 32px 24px; }
  .page-hero h1 { font-size: clamp(40px, 12vw, 64px); }
  .page-hero-ghost { font-size: clamp(80px, 22vw, 140px); }

  /* Footer SP */
  .site-footer { padding: 20px 24px calc(16px + var(--sp-bar-h)); }
  .footer-inner { flex-direction: column; gap: 12px; padding-bottom: 16px; }
  .footer-links { display: none !important; }  /* SPではナビ非表示 */
  .footer-copy { font-size: 9px; }
  .footer-links { gap: 16px; }

  /* Policy SP */
  .policy-content { margin-left: 0; padding: 40px 24px; }
  .policy-footer { margin-left: 0; padding: 32px 24px 20px; margin-bottom: var(--sp-bar-h); }
  .policy-hero { min-height: 40vw; }

  /* Ghost labels SP */
  .ghost-label { font-size: clamp(60px, 20vw, 100px); }

  /* CTA actions SP */
  .cta-actions { width: 100%; }
  .cta-actions .btn { width: 100%; justify-content: center; }

  /* Map section SP: 全画面、地図が残りを埋める */
  .company-map-section {
    height: 100svh !important;
    min-height: 100svh !important;
  }
  .company-map-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  /* 地図: 固定高で圧縮、info-barが確実に表示される */
  .map-container {
    flex: none !important;
    height: calc(100svh - var(--sp-bar-h) - 130px) !important;
  }
  .map-container iframe,
  .map-placeholder {
    height: 100% !important;
  }
  .map-info-bar {
    grid-template-columns: 1fr 1fr !important;
    flex-shrink: 0;
    height: 130px;
  }
  .map-info-item { padding: 8px 12px; }
  .map-info-item:nth-child(2) { border-right: none; }
  .map-info-item:nth-child(4) { border-right: none; }
  .map-info-label { font-size: 9px !important; margin-bottom: 3px !important; }
  .map-info-value { font-size: 11px !important; line-height: 1.5 !important; }

  /* Contact form SP */
  .contact-form-section { margin-left: 0 !important; }
  .contact-form-inner { padding: 48px 24px; }
  .cf7-grid { grid-template-columns: 1fr; }
  .cf7-grid-full { grid-column: 1; }

  /* Privacy / Contact SP: page-fv — 固定高なし、引っかかり解消 */
  .page-fv {
    margin-left: 0;
    height: auto !important;
    min-height: 60svh;
    padding: 80px 28px 60px;
    align-items: flex-start;
    justify-content: flex-end;
    scroll-snap-align: none !important;
  }
  .page-fv-content {
    padding: 48px 28px;
    text-align: left;
  }

  /* CTA sections SP */
  .top-contact-cta, .service-cta, .company-cta-section {
    height: 100svh !important;
    min-height: 100svh !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
  }
  /* contact-cta-body: flex:1 でセクション全高を占有 */
  .contact-cta-body {
    flex: 1 !important;
    width: 100%;
    min-height: 0;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
  }
  /* contact-cta-inner: flex:1 + justify-content:center で上下センター */
  .contact-cta-inner {
    flex: 1 !important;
    min-height: 0;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    padding: 32px 24px !important;
    gap: 24px !important;
  }

  /* Error SP */
  .error-wrap { margin-left: 0; }
}
