/*
 * _shared.css — B-DASH PROMOTION 共通スタイル
 * WordPress Arkhe + Gutenberg 実装前提
 * ============================================= */

/* =============================================
 * TOKENS — Arkhe子テーマの style.css に転記
 * ============================================= */
:root {
  --bg:         #F5F3F0;
  --bg-light:   #FFFFFF;
  --bg-beige:   #EDE9E3;
  --text:       #1c1c1e;
  --accent:     #5AC8E8;
  --accent-dk:  #38B4D8;
  --muted:      #8a8a8e;
  --border:     rgba(0,0,0,.09);
  --font-serif: 'Noto Serif JP', serif;
  --font-ja:    'Noto Sans JP', sans-serif;
  --font-en:    'Cormorant Garamond', serif;
}

/* =============================================
 * GOOGLE FONTS
 * ============================================= */
/* @import はWordPress側でenqueueするため省略 */
/* Noto Serif JP:wght@300;400;600 */
/* Noto Sans JP:wght@300;400;500 */
/* Cormorant Garamond:ital,wght@0,300;0,400;0,600;1,400 */

/* =============================================
 * RESET
 * ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-ja);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a    { color: inherit; text-decoration: none; }
img  { display: block; max-width: 100%; }

/* =============================================
 * SCROLL REVEAL
 * WP: IntersectionObserver — functions.php で enqueue
 * ============================================= */
.r {
  opacity: 0;
  transform: translateY(40px) scale(.98);
  transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1);
}
.r.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* =============================================
 * HEADER
 * WP: Arkhe グローバルヘッダー → カスタマイザー
 * ============================================= */
.hdr {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 52px;
  transition: background .35s, padding .3s, border-color .35s;
  border-bottom: 1px solid transparent;
}
html[data-scrolled="true"] .hdr {
  background: rgba(245,243,240,.96);
  backdrop-filter: blur(8px);
  border-color: var(--border);
  padding: 18px 52px;
}
.hdr__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.hdr__logo img { height: 40px; width: auto; }
.hdr__logo-text { display: flex; flex-direction: column; gap: 2px; }
.hdr__logo-en {
  font-family: var(--font-en);
  font-size: 14px;
  letter-spacing: .20em;
  color: #fff;
  line-height: 1;
}
.hdr__logo-ja {
  font-family: var(--font-ja);
  font-size: 9px;
  letter-spacing: .10em;
  color: rgba(255,255,255,.6);
}
html[data-scrolled="true"] .hdr__logo-en { color: var(--text); }
html[data-scrolled="true"] .hdr__logo-ja { color: var(--muted); }
.hdr__nav {
  display: flex;
  gap: 20px;
  list-style: none;
}
.hdr__nav a {
  font-size: 12px;
  letter-spacing: .10em;
  color: #fff;
  text-decoration: none;
  opacity: .85;
  transition: opacity .2s;
}
.hdr__nav a:hover { opacity: 1; }
html[data-scrolled="true"] .hdr__nav a { color: var(--text); opacity: .72; }
.hdr__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hdr__cta-nav {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  letter-spacing: .10em;
  color: #fff;
  background: #06C755;
  text-decoration: none;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: 4px;
  transition: background .2s;
  white-space: nowrap;
}
.hdr__cta-nav:hover { background: #05B84D; }
.hdr__cta-nav svg { flex-shrink: 0; }
.hdr__cta-partner {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--text);
  background: #fff;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.3);
  padding: 8px 16px;
  border-radius: 4px;
  transition: color .2s, border-color .2s, background .2s;
  white-space: nowrap;
}
.hdr__cta-partner:hover { border-color: rgba(255,255,255,.6); }
html[data-scrolled="true"] .hdr__cta-partner {
  background: transparent;
  color: var(--muted);
  border-color: var(--border);
}
html[data-scrolled="true"] .hdr__cta-partner:hover { color: var(--text); border-color: rgba(0,0,0,.25); }
.hdr__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hdr__burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #fff;
  transition: transform .3s, opacity .3s;
}
html[data-scrolled="true"] .hdr__burger span { background: var(--text); }

/* Mobile Menu Drawer */
.mob-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 200;
  background: rgba(245,243,240,.98);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.mob-menu.is-open { display: flex; }
.mob-menu__close {
  position: absolute;
  top: 22px; right: 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 28px;
  color: var(--text);
  line-height: 1;
}
.mob-menu__nav { list-style: none; text-align: center; }
.mob-menu__nav li { margin-bottom: 24px; }
.mob-menu__nav a {
  font-family: var(--font-serif);
  font-size: 18px;
  letter-spacing: .12em;
  color: var(--text);
  text-decoration: none;
}
.mob-menu__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-dk);
  color: #fff;
  font-size: 13px;
  letter-spacing: .10em;
  font-weight: 500;
  padding: 14px 32px;
  border-radius: 4px;
  text-decoration: none;
}

/* =============================================
 * BREADCRUMB
 * WP: Arkheパンくずリスト → カスタマイザー
 * ============================================= */
.breadcrumb {
  padding: 100px 60px 0;
  display: flex;
  gap: 8px;
  align-items: center;
}
.breadcrumb__item {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: .20em;
  color: var(--muted);
}
.breadcrumb__item a { transition: color .2s; }
.breadcrumb__item a:hover { color: var(--text); }
.breadcrumb__sep { font-size: 11px; color: var(--border); }

/* =============================================
 * PAGE HERO — Full-width dark photo hero
 * WP: wp:cover（フルワイド + 暗色オーバーレイ）
 * ============================================= */
.page-hero {
  position: relative;
  width: 100%;
  min-height: 44vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 52px 100px;
  background:
    linear-gradient(rgba(15,20,40,.68), rgba(15,20,40,.68)),
    url('/wp-content/themes/bdash/image/other_1280px/image_002.jpg') center / cover no-repeat;
  background-color: #0f1428;
  border-bottom: none;
  overflow: hidden;
}
.page-hero__eyebrow {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: .32em;
  color: var(--accent);
  text-transform: uppercase;
  display: block;
  margin-bottom: 20px;
}
.page-hero__h1 {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.5vw, 48px);
  font-weight: 300;
  letter-spacing: .10em;
  line-height: 1.7;
  color: #fff;
  margin-bottom: 24px;
}
.page-hero__lead {
  font-size: 14px;
  letter-spacing: .10em;
  line-height: 2.4;
  color: rgba(255,255,255,.72);
  max-width: 600px;
}

/* =============================================
 * SECTION WRAPPER
 * WP: wp:group {"layout":{"type":"constrained","contentSize":"1100px"}}
 * ============================================= */
.sec { padding: 100px 60px; }
.sec--beige { background: var(--bg-beige); }
.sec--light { background: var(--bg-light); }
.sec--dark   { background: var(--bg); }
.sec__inner { max-width: 1100px; margin: 0 auto; }
.sec__inner--narrow { max-width: 800px; margin: 0 auto; }
.sec__inner--center { max-width: 800px; margin: 0 auto; text-align: center; }

/* セクション見出し */
.sec-head { margin-bottom: 56px; }
.sec-head__eyebrow {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: .28em;
  color: var(--accent-dk);
  margin-bottom: 14px;
  display: block;
}
.sec-head__title {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.6vw, 38px);
  font-weight: 300;
  letter-spacing: .10em;
  line-height: 1.7;
  color: var(--text);
}
.sec-head__lead {
  font-size: 14px;
  letter-spacing: .09em;
  line-height: 2.4;
  color: var(--muted);
  margin-top: 20px;
  max-width: 600px;
}
.sec-head--center { text-align: center; }
.sec-head--center .sec-head__lead { margin: 20px auto 0; }

/* =============================================
 * BUTTONS
 * WP: wp:buttons + wp:button
 * ============================================= */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  letter-spacing: .10em;
  font-weight: 500;
  padding: 15px 32px;
  text-decoration: none;
  border-radius: 2px;
  transition: background .25s, transform .2s;
  white-space: nowrap;
}
.btn-primary:hover { background: var(--accent-dk); transform: translateY(-1px); }
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--accent);
  color: var(--accent-dk);
  font-size: 13px;
  letter-spacing: .10em;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: 2px;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .10em;
  padding: 12px 28px;
  border-radius: 2px;
  text-decoration: none;
  transition: color .2s, border-color .2s;
}
.btn-ghost:hover { color: var(--text); border-color: rgba(0,0,0,.25); }
.btn-cta-line {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  letter-spacing: .10em;
  font-weight: 500;
  padding: 18px 44px;
  text-decoration: none;
  border-radius: 2px;
  animation: linePulse 2.5s ease infinite;
  transition: background .25s;
}
.btn-cta-line:hover { background: var(--accent-dk); }

/* =============================================
 * CTA SECTION — 写真背景 + 暗色オーバーレイ
 * WP: wp:cover（暗色オーバーレイ + フルワイド）
 * 背景画像はCSS shorthandで一括処理
 * ============================================= */
.cta-section {
  position: relative;
  overflow: hidden;
  padding: 120px 60px;
  text-align: center;
  background:
    linear-gradient(rgba(15,20,40,.62), rgba(15,20,40,.62)),
    url('/wp-content/themes/bdash/image/other_1280px/image_004.jpg') center / cover no-repeat;
  background-color: #0f1428; /* 画像未読み込み時fallback */
}
/* .cta-section__bg / .cta-section__overlay は使用しない */
.cta-section__bg, .cta-section__overlay { display: none; }
.cta-section > * { position: relative; z-index: 2; }
.cta-section__eyebrow {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: .28em;
  color: rgba(90,200,232,.9);
  display: block;
  margin-bottom: 18px;
}
.cta-section__title {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.8vw, 40px);
  font-weight: 300;
  letter-spacing: .10em;
  line-height: 1.8;
  color: #fff;
  margin-bottom: 24px;
}
.cta-section__sub {
  font-size: 14px;
  letter-spacing: .08em;
  line-height: 2.2;
  color: rgba(255,255,255,.72);
  margin-bottom: 48px;
}
.cta-section__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.cta-section__sub-link {
  font-size: 12px;
  letter-spacing: .12em;
  color: rgba(255,255,255,.5);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.25);
  padding-bottom: 2px;
  transition: color .2s, border-color .2s;
}
.cta-section__sub-link:hover {
  color: rgba(255,255,255,.85);
  border-color: rgba(255,255,255,.5);
}

/* =============================================
 * FOOTER
 * WP: Arkhe フッターエリア → カスタマイザー
 * ============================================= */
.ftr {
  background: #1c1c1e;
  color: #F5F3F0;
  padding: 64px 60px 32px;
}
.ftr__inner {
  max-width: 1100px;
  margin: 0 auto;
}
.ftr__top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  align-items: start;
}
.ftr__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.ftr__logo-name {
  font-family: var(--font-en);
  font-size: 15px;
  letter-spacing: .20em;
  color: #F5F3F0;
  line-height: 1;
}
.ftr__address {
  font-size: 12px;
  letter-spacing: .08em;
  line-height: 2.0;
  color: rgba(245,243,240,.5);
}
.ftr__nav-grid {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 12px 48px;
  align-items: start;
}
.ftr__nav-col { display: flex; flex-direction: column; gap: 12px; }
.ftr__nav-col a {
  font-size: 12px;
  letter-spacing: .10em;
  color: rgba(245,243,240,.6);
  text-decoration: none;
  transition: color .2s;
}
.ftr__nav-col a:hover { color: #F5F3F0; }
.ftr__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.ftr__copy {
  font-size: 11px;
  letter-spacing: .08em;
  color: rgba(245,243,240,.4);
}
.ftr__bottom-links {
  display: flex;
  gap: 20px;
}
.ftr__bottom-links a {
  font-size: 11px;
  letter-spacing: .08em;
  color: rgba(245,243,240,.35);
  text-decoration: none;
  transition: color .2s;
}
.ftr__bottom-links a:hover { color: rgba(245,243,240,.7); }

/* =============================================
 * MOBILE STICKY BAR
 * ============================================= */
.sticky-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  flex-direction: row;
  height: 60px;
  box-shadow: 0 -2px 12px rgba(0,0,0,.12);
}
.sticky-bar__line {
  flex: 1;
  background: #06C755;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  font-size: 13px;
  letter-spacing: .08em;
  font-weight: 500;
  text-decoration: none;
}
.sticky-bar__tel {
  flex: 1;
  background: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  font-size: 13px;
  letter-spacing: .06em;
  font-weight: 500;
  text-decoration: none;
}

/* =============================================
 * TRUST BAR
 * ============================================= */
.trust {
  background: var(--bg-light);
  border-top: 1px solid var(--border);
  padding: 18px 60px 22px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.trust__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 14px 8px;
  border-right: 1px solid var(--border);
  gap: 6px;
}
.trust__item:last-child { border-right: none; }
.trust__num {
  font-family: var(--font-en);
  font-size: clamp(17px, 1.9vw, 26px);
  font-weight: 400;
  color: var(--accent-dk);
  letter-spacing: .06em;
  line-height: 1;
}
.trust__label {
  font-size: 10.5px;
  letter-spacing: .06em;
  color: var(--muted);
  line-height: 1.7;
}
.trust__note {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--muted);
  padding-top: 12px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
  opacity: .75;
}

/* =============================================
 * KEYFRAMES
 * ============================================= */
@keyframes slowZoom {
  from { transform: scale(1.04); }
  to   { transform: scale(1.00); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(22px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes linePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(90,200,232,.35); }
  50%       { box-shadow: 0 0 0 14px rgba(90,200,232,0); }
}
@keyframes scrollDown {
  0%   { top: -56px; opacity: 1; }
  100% { top:  56px; opacity: 0; }
}
@keyframes pageHeroAurora {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* =============================================
 * PROTOTYPE NOTE
 * ============================================= */
.pnote {
  position: fixed;
  bottom: 16px; left: 16px;
  background: rgba(28,28,30,.78);
  color: #fff;
  font-size: 11px;
  line-height: 1.8;
  padding: 10px 14px;
  border-radius: 4px;
  z-index: 9999;
  pointer-events: none;
}

/* =============================================
 * RESPONSIVE
 * ============================================= */
@media (max-width: 768px) {
  /* Header */
  .hdr { padding: 18px 24px; }
  html[data-scrolled="true"] .hdr { padding: 14px 24px; }
  .hdr__nav { display: none; }
  .hdr__actions { display: none; }
  .hdr__burger { display: flex; }

  /* Breadcrumb */
  .breadcrumb { padding: 80px 24px 0; }

  /* Page Hero */
  .page-hero { padding: 120px 24px 72px; min-height: 36vh; }
  .page-hero__h1 { font-size: clamp(22px, 6.5vw, 34px); }
  .page-hero__lead { font-size: 13px; }

  /* Sections */
  .sec { padding: 64px 24px; }

  /* Trust */
  .trust { padding: 14px 20px 18px; grid-template-columns: repeat(2, 1fr); }
  .trust__item:nth-child(5) { grid-column: span 2; border-right: none; }
  .trust__item:nth-child(2n) { border-right: none; }
  .trust__item:nth-child(1),
  .trust__item:nth-child(2),
  .trust__item:nth-child(3),
  .trust__item:nth-child(4) { border-bottom: 1px solid var(--border); }

  /* CTA Section */
  .cta-section { padding: 80px 24px; }
  .cta-section__actions { width: 100%; }
  .btn-cta-line { width: 100%; justify-content: center; }

  /* Footer */
  .ftr { padding: 48px 24px 100px; }
  .ftr__top { grid-template-columns: 1fr; gap: 32px; }
  .ftr__bottom { flex-direction: column; text-align: center; gap: 8px; }
  .ftr__bottom-links { justify-content: center; }

  /* Sticky Bar */
  .sticky-bar { display: flex; }
}
