/* ═══════ EX·NAKATA 共通スタイル ═══════ */

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

:root {
  --c-navy:    #0d1b2e;
  --c-navy2:   #2a3a52;
  --c-slate:   #5b6a82;
  --c-border:  #dde4ee;
  --c-border2: #c8d3e2;
  --c-bg:      #ffffff;
  --c-bg-alt:  #f6f8fb;
  --c-accent:  #c8a000;
  --c-white70: rgba(255,255,255,.70);
  --c-white40: rgba(255,255,255,.40);
  --shadow-btn: 0 1px 4px rgba(13,27,46,.18);
  --shadow-card: 0 2px 4px rgba(13,27,46,.04), 0 4px 16px rgba(13,27,46,.06);
  --shadow-img:  0 6px 16px rgba(13,27,46,.06), 0 20px 60px rgba(13,27,46,.12);
  --f-serif: 'Shippori Mincho', serif;
  --f-sans:  'Zen Kaku Gothic New', sans-serif;
  --f-mono:  'JetBrains Mono', monospace;
  --f-num:   'Inter', 'Zen Kaku Gothic New', sans-serif;
  --max-w: 1200px;
}

html { scroll-behavior: smooth; }
body { font-family: var(--f-sans); color: var(--c-navy); background: var(--c-bg); line-height: 1.6; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.nav-hamburger { display: none; }
.nav-mobile-menu { display: none; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 40px; }

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 68px;
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(16px) saturate(1.8);
  border-bottom: none;
  box-shadow: 0 1px 0 rgba(0,0,0,.07), 0 4px 20px rgba(0,0,0,.08);
}
nav::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #1a3fa0 0%, #4a7ae0 50%, #1a3fa0 100%);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 48px;
  height: 100%; display: flex; align-items: center; gap: 0;
}
.nav-logo { display: flex; flex-direction: row; align-items: center; gap: 12px; }
.nav-logo-mark { width: auto; height: 46px; flex-shrink: 0; object-fit: contain; border-radius: 5px; }
.nav-logo-text { display: flex; flex-direction: column; gap: 0; }
.nav-logo-name {
  font-family: var(--f-serif); font-size: 22px; letter-spacing: 1.76px; color: #1a4aaa;
  line-height: 1.2;
}
.nav-logo-sub {
  font-family: var(--f-num); font-size: 9px; letter-spacing: 2.2px;
  color: #1a4aaa; text-transform: uppercase;
}
.nav-links { display: flex; align-items: center; gap: 32px; margin: 0 auto; }
.nav-links a {
  font-size: 13px; font-weight: 500; letter-spacing: .52px;
  color: var(--c-navy); white-space: nowrap;
  position: relative; padding-bottom: 3px;
  transition: color .2s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 50%; right: 50%;
  height: 1.5px; background: #1a4aaa;
  transition: left .25s ease, right .25s ease;
}
.nav-links a:hover { color: #1a4aaa; }
.nav-links a:hover::after { left: 0; right: 0; }
.nav-links a.is-active { color: #1a4aaa; font-weight: 700; }
.nav-links a.is-active::after { left: 0; right: 0; }
.nav-tel {
  font-family: var(--f-num); font-size: 13px; font-weight: 600; letter-spacing: .8px;
  color: var(--c-navy); white-space: nowrap;
  margin-right: 16px; padding: 0 12px; height: 36px; min-width: 148px;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 10px;
  background: rgba(0,0,0,.03);
  display: none; align-items: center; justify-content: center; gap: 6px;
  transition: background .18s, border-color .18s, color .18s;
}
.nav-tel::before {
  content: '';
  display: inline-block; width: 14px; height: 14px; flex-shrink: 0;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.654 1.328a.678.678 0 0 0-1.015-.063L1.605 2.3c-.483.484-.661 1.169-.45 1.77a17.6 17.6 0 0 0 4.168 6.608 17.6 17.6 0 0 0 6.608 4.168c.601.211 1.286.033 1.77-.45l1.034-1.034a.678.678 0 0 0-.063-1.015l-2.307-1.794a.68.68 0 0 0-.58-.122l-2.19.547a1.745 1.745 0 0 1-1.657-.459L5.482 8.062a1.745 1.745 0 0 1-.46-1.657l.548-2.19a.68.68 0 0 0-.122-.58L3.654 1.328z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.654 1.328a.678.678 0 0 0-1.015-.063L1.605 2.3c-.483.484-.661 1.169-.45 1.77a17.6 17.6 0 0 0 4.168 6.608 17.6 17.6 0 0 0 6.608 4.168c.601.211 1.286.033 1.77-.45l1.034-1.034a.678.678 0 0 0-.063-1.015l-2.307-1.794a.68.68 0 0 0-.58-.122l-2.19.547a1.745 1.745 0 0 1-1.657-.459L5.482 8.062a1.745 1.745 0 0 1-.46-1.657l.548-2.19a.68.68 0 0 0-.122-.58L3.654 1.328z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.nav-tel:hover {
  background: rgba(26,63,160,.07);
  border-color: rgba(26,63,160,.25);
  color: #1a3fa0;
}
.nav-cta {
  background: linear-gradient(135deg, #1a3fa0 0%, #2d5cd4 100%); color: #fff;
  font-size: 13px; font-weight: 700; letter-spacing: .5px;
  padding: 0 12px; height: 36px; min-width: 148px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(26,63,160,.35), 0 1px 4px rgba(26,63,160,.2);
  white-space: nowrap;
  transition: box-shadow .2s, transform .15s;
}
.nav-cta:hover {
  box-shadow: 0 6px 24px rgba(26,63,160,.45), 0 2px 8px rgba(26,63,160,.25);
  transform: translateY(-1px);
}

/* ─── PAGE HEAD ─── */
.page-head {
  padding: 140px 0 60px;
  background: var(--c-bg-alt);
  border-bottom: .667px solid var(--c-border);
}
.page-head-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.page-label {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 2.4px;
  color: var(--c-slate); text-transform: uppercase; margin-bottom: 12px;
}
.page-title {
  font-family: var(--f-serif); font-size: 48px; line-height: 1.2;
  color: var(--c-navy); letter-spacing: 1.5px;
}
.page-sub { font-size: 14px; color: var(--c-slate); margin-top: 10px; max-width: 560px; }
.breadcrumb { font-family: var(--f-mono); font-size: 11px; color: var(--c-slate); letter-spacing: 1px; }
.breadcrumb a:hover { color: var(--c-navy); }
.breadcrumb-sep { margin: 0 8px; color: var(--c-border2); }

/* ─── SECTION COMMON ─── */
section { padding: 80px 0; }
.section-label {
  font-family: var(--f-mono); font-size: 9px; letter-spacing: 2.2px;
  color: var(--c-slate); text-transform: uppercase; margin-bottom: 8px;
}
.section-title {
  font-family: var(--f-serif); font-size: 36px; line-height: 1.2;
  color: var(--c-navy); margin-bottom: 12px; letter-spacing: 1px;
}
.section-sub { font-size: 14px; color: var(--c-slate); margin-bottom: 40px; }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 40px; }

/* ─── BUTTONS ─── */
.btn-primary {
  background: var(--c-navy); color: #fff;
  font-size: 14px; font-weight: 700; letter-spacing: .7px;
  padding: 0 24px; height: 52px; border-radius: 6px;
  box-shadow: var(--shadow-btn);
  display: inline-flex; align-items: center;
  transition: opacity .2s;
}
.btn-primary:hover { opacity: .85; }
.btn-outline {
  background: transparent; color: var(--c-navy);
  border: 1px solid var(--c-border2);
  font-size: 14px; font-weight: 700; letter-spacing: .7px;
  padding: 0 24px; height: 52px; border-radius: 6px;
  display: inline-flex; align-items: center;
  transition: border-color .2s;
}
.btn-outline:hover { border-color: var(--c-navy); }

/* ─── CTA ─── */
.cta-section {
  background: var(--c-navy); text-align: center; padding: 80px 0;
  color: #fff;
}
.cta-label { font-family: var(--f-mono); font-size: 9px; letter-spacing: 2.2px; color: var(--c-white70); text-transform: uppercase; margin-bottom: 16px; }
.cta-title { font-family: var(--f-serif); font-size: 36px; color: #fff; line-height: 1.3; margin-bottom: 12px; letter-spacing: 1px; }
.cta-desc { font-size: 14px; color: var(--c-white70); margin-bottom: 32px; }
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-cta-primary {
  background: #fff; color: var(--c-navy);
  font-size: 14px; font-weight: 700; letter-spacing: .7px;
  padding: 0 28px; height: 55px; border-radius: 6px;
  box-shadow: var(--shadow-btn);
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-cta-primary:hover { opacity: .88; }
.btn-cta-tel {
  background: rgba(255,255,255,.12); color: #fff;
  border: .667px solid rgba(255,255,255,.3);
  font-size: 14px; font-weight: 700; letter-spacing: .7px;
  padding: 0 28px; height: 55px; border-radius: 6px;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-cta-tel:hover { opacity: .75; }

/* ─── FOOTER ─── */
footer {
  background: var(--c-navy); color: var(--c-white70);
  border-top: .667px solid rgba(255,255,255,.08);
  padding: 60px 0 32px;
}
.footer-brand-area { margin-bottom: 20px; }
.footer-top { display: grid; grid-template-columns: 1fr auto; gap: 60px; align-items: start; margin-bottom: 48px; }

/* ─── FOOTER SNS ─── */
.footer-sns { display: flex; align-items: center; padding-top: 2px; }
.footer-sns-brand { display: none; }
.footer-sns-icons { display: flex; gap: 10px; }
.footer-sns-link {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.7);
  transition: background .2s, color .2s, transform .2s;
}
.footer-sns-link[aria-label="Instagram"] { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); color: #fff; }
.footer-sns-link[aria-label="TikTok"]   { background: #010101; color: #fff; }
.footer-sns-link[aria-label="LINE"]     { background: #06C755; color: #fff; }
.footer-sns-link:hover { opacity: .82; transform: translateY(-2px); }
.footer-sns-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.footer-brand-name { font-family: var(--f-serif); font-size: 22px; color: #fff; letter-spacing: 1.76px; margin-bottom: 6px; }
.footer-brand-sub { font-family: var(--f-sans); font-size: 9px; letter-spacing: 2.2px; color: var(--c-white40); text-transform: uppercase; margin-bottom: 0; }
.footer-addr { font-size: 13px; line-height: 1.9; color: var(--c-white70); white-space: pre-line; }
.footer-nav-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.footer-nav-col--wide { grid-column: span 2; }
.footer-nav-col.footer-nav-col--wide ul { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
.footer-nav-col h4 { font-size: 12px; font-weight: 700; color: #fff; letter-spacing: .5px; margin-bottom: 12px; }
.footer-nav-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-nav-col ul li a { font-size: 12px; color: var(--c-white70); transition: color .2s; }
.footer-nav-col ul li a:hover { color: #fff; }
.footer-bottom {
  border-top: .667px solid rgba(255,255,255,.08);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-copy { font-size: 11px; color: var(--c-white40); font-family: var(--f-sans); letter-spacing: .5px; }
.footer-tagline { font-size: 11px; color: var(--c-white40); font-family: var(--f-sans); letter-spacing: .5px; }

/* ─── PLACEHOLDER IMAGE ─── */
.ph-img {
  background: repeating-linear-gradient(
    135deg,
    #e8ecf2 0,
    #e8ecf2 12px,
    #dfe5ef 12px,
    #dfe5ef 24px
  );
  display: flex; align-items: center; justify-content: center;
  color: var(--c-slate); font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:none; } }
.anim { opacity: 0; }
.anim.visible { animation: fadeUp .6s ease forwards; }
.anim-delay-1 { animation-delay: .08s; }
.anim-delay-2 { animation-delay: .16s; }
.anim-delay-3 { animation-delay: .24s; }
.anim-delay-4 { animation-delay: .32s; }
.anim-delay-5 { animation-delay: .40s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  /* backdrop-filter を外すことで fixed 子要素が viewport 基準で配置される */
  nav { backdrop-filter: none; -webkit-backdrop-filter: none; }

  /* ─ Bottom CTA bar (tablet + mobile) ─ */
  .nav-tel { display: none; }
  .nav-cta {
    position: fixed; bottom: 0; left: 0; right: 0;
    width: 100%; height: 54px;
    z-index: 200; margin: 0; min-width: 0;
    border-radius: 0;
    box-shadow: 0 -2px 12px rgba(26,63,160,.20);
    font-size: 14px; font-weight: 700;
  }
  .nav-cta:hover { transform: none; }
  body { padding-bottom: 54px; }

  .page-title { font-size: 36px; }
  .section-title { font-size: 28px; }
  .footer-top { grid-template-columns: 1fr; }
  /* footer-nav-cols は PC と同じ 4列グリッドをタブレットでも維持 */
  .footer-sns { display: none; }
}

@media (max-width: 768px) {
  /* ─ CONTAINER ─ */
  .container { padding: 0 20px; }

  /* ─ NAV ─ */
  nav { height: 56px; }
  .nav-inner { padding: 0 20px; }
  .nav-links { display: none; }
  /* nav-tel / nav-cta は bottom bar に固定（900px ルール継続）*/
  .nav-logo-mark { height: 38px; }
  .nav-logo-name { font-size: 18px; }
  .nav-logo-sub { font-size: 8px; letter-spacing: 1.5px; }

  .nav-hamburger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 36px; height: 36px; margin-left: auto;
    background: none; border: none; cursor: pointer; padding: 6px;
  }
  .nav-hamburger span {
    display: block; width: 22px; height: 1.5px;
    background: var(--c-navy); border-radius: 2px;
    transition: transform .25s, opacity .2s;
    transform-origin: center;
  }
  .nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-hamburger.open span:nth-child(2) { opacity: 0; }
  .nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .nav-mobile-menu {
    display: flex; flex-direction: column;
    position: fixed; top: 56px; left: 0; right: 0; z-index: 99;
    background: #fff;
    border-bottom: .667px solid var(--c-border);
    max-height: 0; overflow: hidden;
    transition: max-height .35s cubic-bezier(.4,0,.2,1);
  }
  .nav-mobile-menu.open { max-height: 520px; }
  .nav-mobile-menu a {
    font-size: 15px; font-weight: 500; color: var(--c-navy2);
    padding: 14px 24px; border-bottom: .667px solid var(--c-border);
  }
  .nav-mobile-divider { height: 8px; background: var(--c-bg-alt); flex-shrink: 0; }
  .nav-mobile-tel-link {
    font-family: var(--f-num); font-size: 17px; font-weight: 600;
    color: var(--c-navy); padding: 14px 24px;
  }
  .nav-mobile-cta {
    margin: 12px 20px 16px;
    background: linear-gradient(135deg, #1a3fa0 0%, #2d5cd4 100%); color: #fff !important;
    text-align: center; padding: 14px 20px !important;
    border-radius: 10px; font-weight: 700;
    font-size: 14px; letter-spacing: .5px; border: none !important;
    box-shadow: 0 4px 16px rgba(26,63,160,.3);
  }

  /* ─ PAGE HEAD ─ */
  .page-head { padding: 72px 0 20px; }
  .page-title { font-size: 28px; }
  .page-sub { font-size: 13px; }

  /* ─ SECTIONS ─ */
  section { padding: 36px 0; }
  .section-title { font-size: 22px; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 20px; }

  /* ─ CTA ─ */
  .cta-section { padding: 36px 0; }
  .cta-title { font-size: 26px; }
  .cta-btns { flex-direction: column; align-items: center; gap: 10px; }
  .btn-cta-primary, .btn-cta-tel { width: 100%; max-width: 320px; justify-content: center; }

  /* ─ FOOTER ─ */
  footer { padding: 32px 0 16px; }
  .footer-brand-area { margin-bottom: 14px; }
  .footer-top { gap: 24px; margin-bottom: 24px; }
  .footer-brand-name { font-size: 17px; margin-bottom: 3px; }
  .footer-brand-sub { margin-bottom: 0; }
  .footer-addr { font-size: 10.5px; line-height: 1.6; white-space: normal; }
  .footer-nav-cols { gap: 16px; }                    /* タブレットは4列維持・gap縮小 */
  .footer-nav-col h4 { font-size: 10px; margin-bottom: 6px; letter-spacing: .3px; }
  .footer-nav-col ul { gap: 5px; }
  .footer-nav-col ul li a { font-size: 10.5px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 3px; padding-top: 14px; }
  .footer-copy { font-size: 10px; }
  .footer-tagline { font-size: 10px; }
  /* スマホ: footer-top の SNS を非表示、ブランド横に SNS を表示 */
  .footer-top .footer-sns { display: none; }
  .footer-brand-area { display: grid; grid-template-areas: "name sns" "sub sub"; grid-template-columns: 1fr auto; align-items: center; row-gap: 0; }
  .footer-brand-name { grid-area: name; margin-bottom: 0; }
  .footer-brand-sub { grid-area: sub; }
  .footer-sns-brand { grid-area: sns; display: flex; flex-direction: row; gap: 8px; align-items: center; padding-top: 0; }
  .footer-sns-brand .footer-sns-link { width: 36px; height: 36px; }
  .footer-sns-brand .footer-sns-link svg { width: 16px; height: 16px; }
}

@media (max-width: 480px) {
  /* ─ PAGE HEAD ─ */
  .page-head { padding: 66px 0 14px; }
  .page-title { font-size: 24px; }

  /* ─ SECTIONS ─ */
  section { padding: 28px 0; }
  .cta-section { padding: 28px 0; }

  /* ─ FOOTER ─ スマホでも4列横並び維持 */
  .footer-nav-cols { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .footer-nav-col h4 { font-size: 9px; margin-bottom: 5px; }
  .footer-nav-col ul { gap: 4px; }
  .footer-nav-col ul li a { font-size: 9.5px; }
  .footer-nav-col.footer-nav-col--wide ul { grid-template-columns: 1fr 1fr; column-gap: 4px; }
  .footer-nav-col.footer-nav-col--wide ul li a { font-size: 8px; }
}

/* ─── スクロールトップボタン ─── */
#scroll-top {
  position: fixed; bottom: 80px; right: 16px; z-index: 999;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(13,27,64,.5); color: #fff;
  border: .667px solid rgba(255,255,255,.3);
  font-size: 20px; cursor: pointer;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .3s, transform .3s;
}
#scroll-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
@media (min-width: 901px) { #scroll-top { display: none !important; } }

/* ─── 電話番号スクレイピング対策 ─── */
a.tel-obf { cursor: pointer; }
a.tel-obf::before { content: attr(data-d); }
