/* Tailwind overrides — plain CSS components.
   Loaded AFTER Tailwind Play CDN. Provides parts hard to express with utilities alone
   (decorative ::before borders, sub-menu dropdowns, hero-mode topbar transition, etc.). */

/* ─── Design tokens (CSS variables) ────────────────────────────────── */
:root{
  --ink:#0e1a36;
  --ink-2:#25324e;
  --ink-3:#5b6683;
  --ink-4:#9aa2b6;
  --paper:#ffffff;
  --paper-2:#f4f5f8;
  --paper-3:#eaecf1;
  --navy:#0e2e5f;
  --navy-2:#0a2248;
  --navy-ink:#081a3a;
  --gold:#b08a3e;
  --gold-2:#8a6c2c;
  --line:#e2e5ec;
  --line-2:#c8cedb;
}
html,body{margin:0;padding:0;background:var(--paper);color:var(--ink);}
body{
  font-family:"Noto Sans JP","Hiragino Kaku Gothic ProN",sans-serif;
  font-weight:400; line-height:1.7; -webkit-font-smoothing:antialiased; font-size:16px;
}
a{color:inherit;text-decoration:none;}
*{box-sizing:border-box;}

/* ─── Topbar / Nav ─────────────────────────────────────────────────── */
.topbar{
  position:fixed; top:0; left:0; right:0; z-index:50;
  background:rgba(255,255,255,.95);
  backdrop-filter:blur(10px);
  border-bottom:1px solid #e2e5ec;
}
.topbar .inner{
  max-width:1400px; margin:0 auto; padding:16px 40px;
  display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:40px;
}
.brand{display:flex;align-items:center;gap:14px;}
.brand-mark{
  width:42px; height:42px; border:1.5px solid #0e2e5f; color:#0e2e5f;
  display:grid; place-items:center;
  font-family:"Noto Serif JP",serif; font-weight:700; font-size:21px;
}
.brand-name{font-family:"Noto Serif JP",serif;font-weight:700;font-size:16px;line-height:1.2;letter-spacing:.03em;}
.brand-en{font-family:"Cormorant Garamond",serif;font-style:italic;font-size:12px;color:#5b6683;margin-top:2px;letter-spacing:.06em;}

.main-nav{display:flex;justify-content:flex-end;align-items:center;gap:22px;}
.main-nav .nav-item{position:relative;display:flex;align-items:center;}
.main-nav .nav-item > a{
  display:inline-block; text-align:center;
  font-size:13.5px; font-weight:500; cursor:pointer; transition:color .2s;
  position:relative;
}
.main-nav a.current{color:#0e2e5f;}
.main-nav .nav-item > a::after{
  content:"";position:absolute;left:0;right:0;bottom:-6px;height:2px;background:#0e2e5f;
  transform:scaleX(0);transition:transform .25s ease;
}
.main-nav .nav-item > a:hover::after,
.main-nav .nav-item > a:focus-visible::after,
.main-nav a.current::after{transform:scaleX(1);}
.main-nav a:hover{color:#0e2e5f;}
.main-nav .en{display:block;font-family:"Cormorant Garamond",serif;font-style:italic;font-size:11px;color:#9aa2b6;margin-top:2px;letter-spacing:.1em;font-weight:400;}
.main-nav .has-sub > a{padding-right:14px;position:relative;}
.main-nav .has-sub > a::before{
  content:""; position:absolute; right:0; top:9px; width:4px; height:4px;
  border-right:1.2px solid currentColor; border-bottom:1.2px solid currentColor;
  transform:rotate(45deg); opacity:.55;
}
.main-nav .sub-menu{
  position:absolute; top:100%; left:50%; transform:translateX(-50%) translateY(8px);
  min-width:180px; background:#fff; border:1px solid #e2e5ec;
  box-shadow:0 12px 32px rgba(11,26,56,.12);
  padding:8px 0; opacity:0; visibility:hidden;
  transition:opacity .2s, transform .2s, visibility .2s; z-index:80;
}
.main-nav .sub-menu::before{content:"";position:absolute;top:-10px;left:0;right:0;height:10px;}
.main-nav .sub-menu a{
  display:block; padding:11px 22px;
  font-family:"Noto Serif JP",serif; font-size:14px; font-weight:500;
  text-align:left; white-space:nowrap; color:#0e1a36 !important;
}
.main-nav .sub-menu a:hover{background:#f5f1e8;color:#0e2e5f !important;}
.main-nav .has-sub:hover .sub-menu,
.main-nav .has-sub:focus-within .sub-menu{
  opacity:1; visibility:visible; transform:translateX(-50%) translateY(0);
}

.right-nav{display:flex;justify-content:flex-end;align-items:center;gap:20px;}
.right-nav .nav-sns{
  display:inline-flex; align-items:center; justify-content:center;
  width:38px; height:38px; border:1px solid #d8dbe4; border-radius:50%;
  color:#0e2e5f; transition:background .2s, color .2s, border-color .2s;
}
.right-nav .nav-sns:hover{background:#0e2e5f; color:#fff; border-color:#0e2e5f;}
.right-nav .nav-sns svg{width:18px; height:18px;}
.menu-toggle{
  display:none; width:44px; height:44px;
  border:1.5px solid #0e2e5f; background:transparent; color:#0e2e5f;
  cursor:pointer; padding:0; align-items:center; justify-content:center;
}
.menu-toggle svg{width:20px;height:20px;}

.mobile-nav{
  display:none; position:fixed; inset:0; z-index:60;
  background:#0e2e5f; color:#fff;
  flex-direction:column; padding:80px 28px 40px; overflow-y:auto;
}
.mobile-nav.open{display:flex;}
.mobile-nav .close-btn{
  position:absolute; top:20px; right:20px; width:44px; height:44px;
  border:1.5px solid rgba(255,255,255,.5); background:transparent; color:#fff;
  cursor:pointer; display:grid; place-items:center; font-size:21px;
}
.mobile-nav a{
  display:flex; justify-content:space-between; padding:10px; border-bottom:1px solid rgba(255,255,255,.15);
  font-family:"Noto Serif JP",serif; font-size:16px; font-weight:600;
}
.mobile-nav a .en{
  display:block; font-family:"Cormorant Garamond",serif; font-style:italic;
  font-size:14px; color:rgba(255,255,255,.6); margin-top:4px; letter-spacing:.1em; font-weight:400;
}
.mobile-nav .mobile-sub{padding-left:18px;border-bottom:1px solid rgba(255,255,255,.15);}
.mobile-nav .mobile-sub a.mobile-sub-a{
  font-size:16px; font-weight:400; padding:10px;
  border-bottom:1px solid rgba(255,255,255,.08); color:rgba(255,255,255,.85);
}
.mobile-nav .mobile-sub a.mobile-sub-a:last-child{border-bottom:none;}
.mobile-nav .mobile-sns{
  display:inline-flex; align-items:center; gap:11px; margin-top:28px;
  padding:0; border-bottom:none;
  font-family:"Noto Sans JP",sans-serif; font-size:16px; font-weight:500;
  letter-spacing:.02em; color:rgba(255,255,255,.9); justify-content:flex-start;
}
.mobile-nav .mobile-sns svg{width:24px; height:24px; flex:none;}

/* ─── Page hero (with bg image + gradient overlay) ──────────────────── */
.page-hero{
  padding:200px 40px 110px;
  background:#081a3a; border-bottom:1px solid #e2e5ec;
  position:relative; overflow:hidden; color:#fff;
}
.page-hero .hero-bg{
  position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover; opacity:.45; z-index:0;
}
.page-hero .hero-overlay{
  position:absolute; inset:0; z-index:0;
  background:linear-gradient(180deg, rgba(11,26,56,.3) 0%, rgba(11,26,56,.5) 60%, rgba(11,26,56,.6) 100%);
}
.page-hero-inner{max-width:1400px;margin:0 auto;position:relative;z-index:2;}
.crumb{
  font-family:"Azeret Mono",monospace; font-size:12px; letter-spacing:.22em;
  color:rgba(255,255,255,.7); display:flex; align-items:center; gap:10px;
  margin-bottom:28px; flex-wrap:wrap;
}
.crumb .sep{color:rgba(255,255,255,.4);}
.crumb a{color:rgba(255,255,255,.7);}
.crumb a:hover{color:#fff;}
.page-hero .eyebrow-en{
  font-family:"Cormorant Garamond",serif; font-style:italic; font-size:23px;
  color:#b08a3e; letter-spacing:.08em; margin-bottom:10px;
}
.page-hero h1{
  font-family:"Noto Serif JP",serif; font-weight:600;
  font-size:clamp(36px,4vw,56px); line-height:1.25; margin:0 0 20px;
  letter-spacing:.02em; color:#fff;
}
.page-hero .lede{
  max-width:620px; color:rgba(255,255,255,.82); font-size:16px; line-height:2;
}

/* ─── Section primitives ─────────────────────────────────────────── */
section{padding:100px 40px;}
.container{max-width:1400px;margin:0 auto;}
.section-head{margin-bottom:50px;display:flex;justify-content:space-between;align-items:flex-end;gap:30px;}
.section-eyebrow{
  display:inline-flex; align-items:center; gap:14px;
  font-family:"Cormorant Garamond",serif; font-style:italic; font-size:16px;
  letter-spacing:.18em; color:#0e2e5f; text-transform:uppercase;
}
.section-eyebrow::before{content:"";width:36px;height:1px;background:#0e2e5f;display:block;}
.section-title{
  font-family:"Noto Serif JP",serif; font-weight:600;
  font-size:clamp(28px,3vw,40px); line-height:1.3; margin:14px 0 0; letter-spacing:.02em;
}
.section-note{font-size:14px;color:#5b6683;max-width:600px;}

/* ─── Buttons ────────────────────────────────────────────────────── */
.btn{
  display:inline-flex; align-items:center; gap:14px;
  padding:16px 28px; font-size:14px; font-weight:500; letter-spacing:.08em;
  transition:all .25s; cursor:pointer; border:1.5px solid transparent;
}
.btn .arr{font-family:"Azeret Mono",monospace;font-weight:300;transition:transform .25s;}
.btn:hover .arr{transform:translateX(4px);}
.btn-primary{background:#0e2e5f;color:#fff;border-color:#0e2e5f;}
.btn-primary:hover{background:#0a2248;border-color:#0a2248;}
.btn-ghost{border-color:#0e2e5f;color:#0e2e5f;}
.btn-ghost:hover{background:#0e2e5f;color:#fff;}

/* ─── Footer ─────────────────────────────────────────────────────── */
footer{background:#081a3a;color:rgba(255,255,255,.8);padding:80px 40px 40px;}
.f-inner{max-width:1400px;margin:0 auto;}
.f-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:60px;}
.f-brand .brand-mark{border-color:#fff;color:#fff;}
.f-brand .brand-name{color:#fff;}
.f-brand .brand-en{color:rgba(255,255,255,.55);}
.f-brand .addr{margin-top:28px;font-size:14px;line-height:2;color:rgba(255,255,255,.7);}
.f-brand .f-sns{display:inline-flex;align-items:center;gap:9px;margin-top:22px;font-size:14px;letter-spacing:.02em;color:rgba(255,255,255,.7);text-decoration:none;transition:color .2s;}
.f-brand .f-sns:hover{color:#fff;}
.f-brand .f-sns svg{width:20px;height:20px;flex:none;}
.f-col h5{
  font-family:"Cormorant Garamond",serif; font-style:italic; font-size:15px;
  letter-spacing:.15em; text-transform:uppercase; margin:0 0 20px; color:#fff; font-weight:500;
}
.f-col ul{list-style:none;margin:0;padding:0;}
.f-col li{padding:6px 0;font-size:14px;color:rgba(255,255,255,.7);cursor:pointer;}
.f-col li:hover{color:#fff;}
.f-col a{color:rgba(255,255,255,.7);text-decoration:none;}
.f-col a:hover{color:#fff;}
.f-bottom{
  margin-top:60px; padding-top:28px; border-top:1px solid rgba(255,255,255,.12);
  display:flex; justify-content:space-between;
  font-size:12px; font-family:"Azeret Mono",monospace; letter-spacing:.18em; color:rgba(255,255,255,.5);
}

/* ─── Responsive ─────────────────────────────────────────────────── */
@media (max-width:1100px){
  .topbar .inner{padding:14px 24px;grid-template-columns:1fr auto;gap:20px;}
  .main-nav, .right-nav{display:none;}
  .menu-toggle{display:inline-flex;}
  .page-hero{padding:130px 24px 60px;}
  section{padding:80px 24px;}
  .section-head{flex-direction:column;align-items:flex-start;}
  footer{padding:60px 24px 30px;}
  .f-grid{grid-template-columns:1fr 1fr;gap:40px;}
  .f-brand{grid-column:1/-1;}
  .f-bottom{flex-direction:column;gap:12px;}
}
@media (max-width:640px){
  body{font-size:15px;}
  .topbar .inner{padding:12px 18px;}
  .brand-mark{width:36px;height:36px;font-size:18px;}
  .brand-name{font-size:14px;}
  .brand-en{font-size:11px;}
  .page-hero{padding:110px 20px 50px;}
  .page-hero h1{font-size:30px;}
  .page-hero .eyebrow-en{font-size:19px;}
  section{padding:60px 20px;}
  footer{padding:50px 20px 24px;}
  .f-grid{grid-template-columns:1fr;gap:30px;}
  .f-brand{grid-column:auto;}
}

/* ─── Back-to-top button ───────────────────────────────────────────── */
.back-to-top{
  position:fixed; right:28px; bottom:28px; z-index:900;
  display:inline-flex; flex-direction:column; align-items:center; justify-content:center; gap:2px;
  width:56px; height:56px; padding:0;
  background:var(--navy); color:#fff; border:1px solid var(--navy);
  cursor:pointer; border-radius:2px;
  box-shadow:0 6px 20px rgba(14,46,95,.28);
  opacity:0; visibility:hidden; transform:translateY(12px);
  transition:opacity .3s, transform .3s, visibility .3s, background .2s, border-color .2s;
}
.back-to-top.visible{ opacity:1; visibility:visible; transform:translateY(0); }
.back-to-top:hover{ background:var(--gold); border-color:var(--gold); }
.back-to-top svg{ width:20px; height:20px; display:block; }
.back-to-top .btt-label{
  font-family:"Azeret Mono",monospace; font-size:9.5px; letter-spacing:.14em; line-height:1;
}
@media (max-width:640px){
  .back-to-top{ right:16px; bottom:16px; width:48px; height:48px; }
  .back-to-top svg{ width:18px; height:18px; }
}
