/* === Clean Consolidated CSS — white base + navy header/footer === */

/* 1) Tokens (single :root) */
:root{
  /* surfaces */
  --bg:#ffffff; --panel:#ffffff; --card-bg:#ffffff; --surface-2:#f7f7f7;

  /* text */
  --text:#111111; --text-2:#222222; --headline:#111111; --sub:#5f6b7a;

  /* brand / accents */
  --brand:#3ea6ff; --accent:#46d19b;
  --brand-navy:#0b2a4a; --text-on-navy:#eef3fb;

  /* lines / depth */
  --line:#e2e8f0; --line-strong:#c5cfdb; --border:#e2e8f0;
  --shadow:none;

  /* layout */
  --radius:16px;
  --container:min(1200px,92vw);
}

/* 2) Base reset / typography */
*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  background:#fff;
  color:var(--text);
  line-height:1.8;
  font-family:"Noto Sans JP",system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Hiragino Kaku Gothic ProN","Yu Gothic UI","Meiryo",sans-serif;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;
}
img{ max-width:100%; display:block; border-radius:12px; }
a{ color:var(--brand); text-decoration:none; }
a:hover{ opacity:.9; }

/* 3) Generic layout */
.container{ width:var(--container); margin-inline:auto; }
.section{ padding:64px 0; }
.section-title{ font-size:clamp(22px,2.8vw,34px); margin:0 0 16px; }
.section-title.center{ text-align:center; }
.grid-2{ display:grid; gap:28px; grid-template-columns:1.2fr .8fr; }
@media (max-width:900px){ .grid-2{ grid-template-columns:1fr; } }

/* products-section: text must be black */
.products-section{ color:#000; }

/* 4) Header (navy variant scoped to .site-header) */
.site-header{
  position:sticky; top:0; z-index:50;
  background:var(--brand-navy);
  color:var(--text-on-navy);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
}
.logo{ font-weight:800; color:#fff; letter-spacing:.4px; }
.logo span{ color:var(--brand); }
.site-header a{ color:var(--text-on-navy); }
.header-scrolled{ box-shadow:0 4px 20px rgba(0,0,0,.3); }

/* 5) Primary menu */
.menu{
  display:flex; list-style:none; gap:18px; margin:0; padding:0; align-items:center;
}
.menu a{ color:inherit; }
.nav-toggle{ display:none; background:none; border:none; }
.nav-toggle-bar{ display:block; width:26px; height:2px; background:currentColor; margin:6px 0; border-radius:2px; }

@media (max-width:900px){
  .nav-toggle{ display:block; }
  .menu{
    position:fixed; inset:64px 16px auto 16px;
    flex-direction:column; gap:12px;
    background:#fff; color:#000;
    padding:16px; border:1px solid var(--line); border-radius:12px;
    transform:translateY(-16px); opacity:0; pointer-events:none; transition:.2s ease; z-index:1200;
  }
  .menu.is-open{ transform:none; opacity:1; pointer-events:auto; }
  .nav-toggle[aria-expanded="true"]{ outline:2px solid #9cf; }
}
/* fallback */
@media (max-width:780px){
  body.nav-open #primary-menu{ transform:translateY(0) !important; opacity:1 !important; pointer-events:auto !important; }
}

/* 6) Buttons */
.btn{
  display:inline-block; padding:10px 16px; border-radius:999px; font-weight:700;
  border:1px solid var(--line-strong); color:var(--text);
  background:#f4f6f8; box-shadow:var(--shadow);
  transition:background .25s ease, color .25s ease, border-color .25s ease;
}
.btn:hover,.btn:focus{ background:#e9ecef; outline:2px solid #d0e2ff; outline-offset:2px; }
.btn-cta{ border-color:var(--brand); color:var(--brand); background:transparent; }
.btn-cta:hover,.btn-cta:focus{ background:var(--brand); color:#0b0c0f; border-color:var(--brand); }

/* 7) Hero */
.hero{ padding:48px 0 32px; background:#fff; color:var(--text); }
.hero-inner{ display:grid; grid-template-columns:1.1fr .9fr; gap:32px; align-items:center; }
@media (max-width:900px){ .hero-inner{ grid-template-columns:1fr; } }
.hero-slider{
  position:relative; aspect-ratio:3/2; border-radius:12px; overflow:hidden;
  background:#fff; border:1px solid var(--line);
}
.hero-slider img.hero-slide{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  opacity:0; transition:opacity .6s cubic-bezier(.2,.6,0,1);
}
.hero-slider img.is-active{ opacity:1; }

/* 8) Drawer */
.drawer-btn{
  margin-left:12px; padding:8px 12px; border-radius:10px;
  background:#f4f6f8; color:var(--text); border:1px solid var(--line-strong); cursor:pointer;
}
.drawer-btn:hover{ background:#e9ecef; border-color:var(--line-strong); }

/* Ellipsis button */
.drawer-btn.ellipsis{
  position:fixed; right:10px; top:10px; z-index:70; min-width:44px; height:44px; padding:0 12px;
  display:flex; align-items:center; justify-content:center; font-size:22px; line-height:1; letter-spacing:2px;
  background:#f4f6f8; color:var(--text); border:1px solid var(--line-strong); border-radius:12px; cursor:pointer;
}
.drawer-btn.ellipsis:hover,.drawer-btn.ellipsis:focus-visible{ background:#e9ecef; }

/* Drawer panel (merged: layout + colors + robust scroll) */
.products-drawer{
  position:fixed; top:0; right:0; z-index:60;
  width:min(360px,92vw); height:100dvh;
  display:flex; flex-direction:column;
  background:var(--card-bg); color:var(--text);
  border-left:1px solid var(--line); box-shadow:var(--shadow);
  transform:translateX(100%); transition:transform .25s ease;
}
.products-drawer.is-open{ transform:none; }
.products-drawer .drawer-title{ flex:0 0 auto; margin:0 0 10px; color:var(--headline); }
.products-drawer .drawer-list{
  flex:1 1 auto; min-height:0; overflow-y:auto; overflow-x:hidden;
  -webkit-overflow-scrolling:touch; overscroll-behavior:contain; touch-action:pan-y;
  padding-right:4px; display:grid; gap:6px;
}
.drawer-overlay{
  position:fixed; inset:0; background:rgba(0,0,0,.25); backdrop-filter:blur(1px); z-index:55;
}

/* 9) Cards / lists */
.cards-3{ display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:18px; }
.card{
  background:var(--card-bg); border:1px solid var(--line-strong); padding:18px; border-radius:var(--radius); box-shadow:var(--shadow);
}
.card h3{ margin:10px 0 6px; }
.group-title{ margin:1.5rem 0 .75rem; font-size:1.125rem; font-weight:600; }
.drawer-group-title{ margin:.75rem 0 .25rem; font-size:.95rem; opacity:.8; }

/* 10) Info / Pricing / Steps / FAQ / Form */
.info{ display:grid; grid-template-columns:120px 1fr; gap:8px 12px; margin:0; }
.info dt{ color:var(--sub); } .info dd{ margin:0; }

.price-table{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.price-card{
  background:var(--card-bg); border:1px solid var(--line-strong); padding:22px; border-radius:var(--radius); text-align:center;
  color:var(--text);
}
.price-card .price{ font-size:28px; margin:10px 0 18px; color:var(--headline); }
.price-card ul{ list-style:none; padding-left:0; margin:0 0 12px; }

/* Steps (no hover) */
.steps{ list-style:none; padding:0; margin:0; display:grid; gap:10px; }
.steps li{
  background:var(--card-bg); border:1px solid var(--line-strong); padding:14px 16px; border-radius:12px; text-align:center;
  box-shadow:var(--shadow); transform:none;
  transition:background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.steps li figure{ margin:10px 0 0; display:grid; justify-items:center; }
.steps li figure img{ width:min(100%,600px); min-width:50px; height:auto; }

/* FAQ (hover enabled) */
.faq{
  background:var(--panel); border:1px solid var(--line); border-radius:12px; padding:14px 16px; margin:12px 0;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease, transform .25s ease;
  will-change: transform;
}
.faq summary{ cursor:pointer; font-weight:700; }
.faq:hover, .faq:focus-within{
  border-color:var(--brand);
  background:linear-gradient(180deg, rgba(62,166,255,.14), rgba(62,166,255,.06));
  box-shadow:0 0 0 2px rgba(62,166,255,.25), var(--shadow);
  transform:translateY(-2px);
}

/* Forms */
.form{
  display:grid; gap:12px; background:var(--panel); border:1px solid var(--line); padding:18px; border-radius:var(--radius);
}
.form label{ display:grid; gap:6px; }
input, textarea, select{
  background:#fff; color:var(--text); border:1px solid var(--line); padding:10px 12px; border-radius:10px; outline:0;
}
input:focus, textarea:focus, select:focus{ border-color:var(--brand); box-shadow:0 0 0 3px rgba(62,166,255,.24); }

/* 11) Hover harmonization (EXCLUDING steps; products/pricing/cards/drawer links only) */
.products-section .card,
.products-section .product-card,
.price-card,
.drawer-list a,
.card{
  transition:background .25s ease, border-color .25s ease, box-shadow .25s ease, transform .25s ease;
  will-change:transform;
}
.products-section .card:hover,
.products-section .card:focus-within,
.products-section .product-card:hover,
.products-section .product-card:focus-within,
.price-card:hover,
.price-card:focus-within,
.drawer-list a:hover,
.drawer-list a:focus-visible,
.card:hover,
.card:focus-within{
  border-color:var(--brand);
  background:linear-gradient(180deg, rgba(62,166,255,.14), rgba(62,166,255,.06));
  box-shadow:0 0 0 2px rgba(62,166,255,.25), var(--shadow);
  transform:translateY(-2px);
}
.card a:focus-visible{ outline:2px solid #bcd4ff; outline-offset:2px; }

/* 12) Products image hover */
.products-section .card a{ position:relative; overflow:hidden; border-radius:12px; }
.products-section .card a img{ transition:transform .4s ease, filter .4s ease; }
.products-section .card a:hover img,
.products-section .card a:focus-visible img{ transform:scale(1.05); filter:brightness(.95); }

/* 13) Footer (navy + white & centered) */
.site-footer{
  border-top:1px solid rgba(255,255,255,.08);
  margin-top:32px;
  background:var(--brand-navy);
  color:#fff;
  text-align:center;
}
.site-footer a{ color:#fff; }
.footer-inner{ display:flex; align-items:center; justify-content:center; gap:12px; padding:20px 0; }
.footer-inner nav{ display:flex; gap:14px; justify-content:center; }
@media (max-width:900px){ .footer-inner{ flex-direction:column; } }

/* 14) Utilities */
.pagetop-btn{ position:fixed; right:16px; bottom:16px; z-index:80; }
@media (max-width:480px){ .pagetop-btn{ right:10px; bottom:10px; } }
.section-title > #about-logo{ height:1em; width:auto; vertical-align:-0.12em; margin-right:.5ch; border-radius:0; }

/* Reduced motion */
@media (prefers-reduced-motion:reduce){
  .products-section .card, .price-card, .faq{ transition:none; }
  .products-section .card:hover, .products-section .card:focus-within,
  .price-card:hover, .price-card:focus-within,
  .faq:hover, .faq:focus-within{ transform:none; }
}

/* 3) FAQ のホバー効果を付与（カード持ち上げ + 枠/背景の強調） */
.faq,
.faq-item{
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease, transform .25s ease;
  will-change: transform;
}
.faq:hover,
.faq:focus-within,
.faq-item:hover,
.faq-item:focus-within{
  border-color: var(--brand);
  background: linear-gradient(180deg, rgba(62,166,255,.14), rgba(62,166,255,.06));
  box-shadow: 0 0 0 2px rgba(62,166,255,.25), var(--shadow);
  transform: translateY(-2px);
}

/* Reduced motion respect (FAQのみ適用を継続) */
@media (prefers-reduced-motion: reduce){
  .faq, .faq-item{
    transition: none;
  }
  .faq:hover, .faq:focus-within,
  .faq-item:hover, .faq-item:focus-within{
    transform: none;
    box-shadow: 0 0 0 2px rgba(62,166,255,.25);
  }
}

/* v8.7.24 banner + header-logo styles (merge) */
.banner-host{ text-align:center; }
.banner-list{
  display:flex; flex-wrap:wrap; gap:16px; row-gap:20px; justify-content:center; align-items:center; margin:16px 0;
}
.banner-list .banner-link{
  display:inline-block !important; width:auto !important; padding:0 !important; margin:0 !important; line-height:0;
}
.banner-list .banner-link img{
  display:block; max-width:100%; height:auto;
}
.site-header .site-logo-img, header .site-logo-img{
  max-height: 50px; height:auto; width:auto; margin-right:.5rem; display:inline-block; vertical-align:middle;
}
.site-header a.logo, header a.logo{ display:inline-block; vertical-align:middle; }
/* 既定（ヘッダー内のハンバーガー色） */
.site-header .nav-toggle{ color: var(--text-on-navy); } 

/* カードの本文色を統一 */
.card{ color:#0b2a4a; }

/* ロゴサイズ */
.section-title-icon{
  inline-size:2.0em;
  block-size:2.0em;
  object-fit:contain;
  border-radius:4px;
}
