:root{
  --bg:#0B1220;
  --panel:#0F1A33;
  --panel2:#0D1730;
  --text:#EAF0FF;
  --muted:#B8C4E6;
  --muted2:#8FA2D6;
  --line:rgba(234,240,255,.12);
  --accent:#7AA7FF;
  --accent2:#A6FFCB;
  --warn:#FFB86B;
  --shadow: 0 12px 30px rgba(0,0,0,.35);
  --radius:18px;
  --radius2:28px;
  --max:1120px;
  --lh:1.75;
  --header-height: 80px; /* 固定ヘッダーの高さ（PC） */
}
*{box-sizing:border-box}
html{
  scroll-padding-top: var(--header-height); /* 固定ヘッダーの高さ分のオフセット（アンカー遷移用） */
  height:100%;
}
/* すべてのidを持つ要素にscroll-margin-topを設定（アンカー遷移時の被り防止） */
[id]{
  scroll-margin-top: var(--header-height);
}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  background: radial-gradient(1200px 700px at 20% 0%, rgba(122,167,255,.18), transparent 60%),
              radial-gradient(900px 600px at 80% 10%, rgba(166,255,203,.10), transparent 55%),
              linear-gradient(180deg, #070B14 0%, #0B1220 40%, #070B14 100%);
  color:var(--text);
  line-height:var(--lh);
  letter-spacing:.2px;
}
a{color:inherit; text-decoration:none}
.wrap{max-width:var(--max); margin:0 auto; padding:0 18px}
.topbar{
  position:fixed; top:0; left:0; right:0; z-index:20;
  background: rgba(11,18,32,.72);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}
.topbar-inner{
  display:flex; align-items:center; justify-content:space-between;
  gap:14px; padding:12px 0;
}
.brand{display:flex; align-items:center; gap:10px; min-width: 220px; color:inherit; text-decoration:none}
.brand:hover{opacity:0.9}
.logo{
  height:34px; width:auto; display:block;
  flex-shrink:0;
  object-fit:contain; /* アスペクト比を維持 */
}
.brand strong{display:block; font-size:14px; letter-spacing:.6px}
.brand span{display:block; font-size:12px; color:var(--muted2)}
nav{display:flex; gap:14px; align-items:center; flex-wrap:wrap; justify-content:flex-end}
nav a{
  font-size:13px; color:var(--muted);
  padding:8px 10px; border-radius:12px;
  border:1px solid transparent;
}
nav a:hover{border-color:var(--line); background:rgba(255,255,255,.04); color:var(--text)}
.cta{
  display:inline-flex; align-items:center; gap:10px;
  background: linear-gradient(135deg, rgba(122,167,255,.95), rgba(122,167,255,.72));
  color:#061021;
  padding:10px 14px; border-radius:14px;
  box-shadow: 0 10px 25px rgba(122,167,255,.18);
  font-weight:700; font-size:13px;
}
.cta.secondary{
  background: transparent;
  border:1px solid var(--line);
  color:var(--text);
  box-shadow:none;
  font-weight:600;
}
.cta:hover{filter:brightness(1.03)}
main > *:first-child{
  margin-top:var(--header-height); /* 固定ヘッダーの高さ分のマージン */
}
.hero{
  padding:56px 0 48px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:22px;
  align-items:stretch;
}
.card{
  border:1px solid var(--line);
  background: rgba(15,26,51,.55);
  box-shadow: var(--shadow);
  border-radius: var(--radius2);
  overflow:hidden;
}
.card.pad{padding:22px}
.kicker{
  display:inline-flex; gap:8px; align-items:center;
  font-size:12px; color:var(--muted);
  border:1px solid var(--line);
  padding:6px 10px; border-radius:999px;
  background: rgba(255,255,255,.03);
}
h1{
  margin:14px 0 10px;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height:1.22;
  letter-spacing:.4px;
}
.lead{
  margin:0;
  color:var(--muted);
  font-size:15px;
  max-width: 60ch;
}
.hero-actions{display:flex; gap:12px; margin-top:16px; flex-wrap:wrap}
.panel{
  border-top:1px solid var(--line);
  margin-top:18px; padding-top:16px;
  display:grid; gap:12px;
}
.pill{
  display:flex; gap:10px; align-items:flex-start;
  padding:12px 12px;
  border-radius: var(--radius);
  border:1px solid var(--line);
  background: rgba(13,23,48,.55);
}
.pill b{display:block; font-size:13px}
.pill p{margin:2px 0 0; color:var(--muted); font-size:13px}
.dot{
  flex:0 0 auto;
  width:10px; height:10px; border-radius:999px;
  margin-top:6px;
  background: var(--accent2);
  box-shadow: 0 0 0 6px rgba(166,255,203,.10);
}

.right{
  display:flex; flex-direction:column; gap:12px; height:100%;
}
.notice{
  border:1px solid rgba(255,184,107,.35);
  background: rgba(255,184,107,.10);
  border-radius: var(--radius2);
  padding:16px 16px;
}
.notice h2{margin:0 0 6px; font-size:14px; letter-spacing:.4px}
.notice p{margin:0; color:var(--muted); font-size:13px}
.mini{
  border-top:1px dashed rgba(234,240,255,.18);
  margin-top:10px; padding-top:10px;
  color:var(--muted2); font-size:12px;
}
.stats{
  display:grid; gap:12px;
  grid-template-columns: 1fr 1fr;
}
.stat{
  border:1px solid var(--line);
  background: rgba(13,23,48,.55);
  border-radius: var(--radius2);
  padding:16px;
}
.stat .n{font-size:20px; font-weight:800; letter-spacing:.4px}
.stat .t{color:var(--muted); font-size:12px}
/* Z型レイアウト */
.z-section{
  padding:60px 0;
}
.z-block{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:32px;
  align-items:center;
  margin-bottom:80px;
  opacity:0;
  transform:translateY(20px);
  transition:opacity 0.6s ease, transform 0.6s ease;
}
@media (prefers-reduced-motion: reduce){
  .z-block{
    transition:none;
  }
}
.z-block.is-visible{
  opacity:1;
  transform:translateY(0);
}
.z-block.is-reversed{
  direction:rtl;
}
.z-block.is-reversed > *{
  direction:ltr;
}
.z-media{
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius:12px;
}
.z-media::before{
  content: "";
  display: block;
  padding-top: 56.25%; /* 16:9 */
}
.z-media img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.z-body h2{
  margin:0 0 12px;
  font-size:clamp(20px, 2.5vw, 28px);
  line-height:1.3;
  letter-spacing:.3px;
}
.z-body p{
  margin:0;
  color:var(--muted);
  font-size:15px;
  line-height:1.7;
}
@media (max-width:768px){
  .z-block{
    grid-template-columns: 1fr;
    gap:24px;
    margin-bottom:60px;
  }
  .z-block.is-reversed{
    direction:ltr;
  }
  /* iOS Chromeでの巨大化保険：過剰な縦占有を防ぐ */
  .z-media{
    max-height: 420px;
  }
}

.section{padding:34px 0}
.section h2{
  margin:0 0 10px;
  font-size:22px;
  letter-spacing:.3px;
}
.section p{margin:0; color:var(--muted)}
.grid-2{
  margin-top:16px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
}
.box{
  border:1px solid var(--line);
  background: rgba(15,26,51,.45);
  border-radius: var(--radius2);
  padding:18px;
  min-height: 100%;
}
.box h3{margin:0 0 8px; font-size:15px}
.box ul{margin:10px 0 0; padding:0 0 0 18px; color:var(--muted)}
.box li{margin:6px 0}
.tag{
  display:inline-flex; align-items:center; gap:8px;
  color:var(--muted2); font-size:12px;
  margin-top:10px;
}
.tag .chip{
  border:1px solid var(--line);
  border-radius:999px;
  padding:4px 10px;
  background: rgba(255,255,255,.03);
}

.ai{
  margin-top:16px;
  border:1px solid var(--line);
  background: linear-gradient(135deg, rgba(122,167,255,.12), rgba(166,255,203,.08));
  border-radius: var(--radius2);
  padding:18px;
}
.ai h3{margin:0 0 8px; font-size:16px}
.ai p{margin:0; color:var(--muted)}
.ai .note{
  margin-top:12px;
  border-top:1px dashed rgba(234,240,255,.18);
  padding-top:10px;
  color:var(--muted2);
  font-size:12px;
}

.how{
  display:grid; grid-template-columns: 1fr 1fr 1fr;
  gap:14px; margin-top:16px;
}
.step{
  border:1px solid var(--line);
  background: rgba(13,23,48,.55);
  border-radius: var(--radius2);
  padding:16px;
  position:relative;
  overflow:hidden;
}
.step:before{
  content:"";
  position:absolute; inset:-1px;
  background: radial-gradient(400px 200px at 10% 0%, rgba(122,167,255,.18), transparent 60%);
  opacity:.8;
  pointer-events:none;
}
.step *{position:relative}
.step .k{color:var(--muted2); font-size:12px}
.step h3{margin:6px 0 8px; font-size:15px}
.step p{margin:0; color:var(--muted); font-size:13px}

.faq{
  margin-top:16px;
  border:1px solid var(--line);
  border-radius: var(--radius2);
  overflow:hidden;
  background: rgba(15,26,51,.45);
}
details{
  border-top:1px solid var(--line);
  padding:14px 16px;
}
details:first-child{border-top:none}
summary{
  cursor:pointer;
  list-style:none;
  display:flex; align-items:flex-start; justify-content:space-between;
  gap:10px;
  font-weight:700;
  font-size:14px;
}
summary::-webkit-details-marker{display:none}
.chev{
  flex:0 0 auto;
  width:18px; height:18px;
  border:1px solid var(--line);
  border-radius:999px;
  display:grid; place-items:center;
  color:var(--muted2);
  margin-top:2px;
}
details[open] .chev{transform:rotate(180deg)}
details .ans{margin-top:10px; color:var(--muted); font-size:13px}
.ans ul{margin:8px 0 0; padding-left:18px}
.ans li{margin:6px 0}

.contact{
  margin-top:18px;
  border:1px solid var(--line);
  background: rgba(13,23,48,.60);
  border-radius: var(--radius2);
  padding:18px;
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:14px;
  align-items:start;
}
.contact h3{margin:0 0 8px; font-size:16px}
.contact p{margin:0; color:var(--muted); font-size:13px}
.form{
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius: var(--radius2);
  padding:16px;
}
label{display:block; font-size:12px; color:var(--muted2); margin-top:10px}
.required{color:var(--warn); font-weight:700; margin-left:2px}
.form-error{display:none}
.form-success{display:none}
input:invalid, textarea:invalid{border-color:rgba(255,184,107,.5)}
input:focus:invalid, textarea:focus:invalid{border-color:var(--warn); outline:2px solid rgba(255,184,107,.2)}
input, textarea{
  width:100%;
  margin-top:6px;
  padding:10px 12px;
  border-radius: 14px;
  border:1px solid rgba(234,240,255,.14);
  background: rgba(7,11,20,.55);
  color:var(--text);
  outline:none;
  transition: border-color 0.2s ease;
}
input:focus, textarea:focus{
  border-color: var(--accent);
  outline: 2px solid rgba(122,167,255,.2);
}
textarea{min-height:110px; resize:vertical}
.checks{
  margin-top:10px;
  border-top:1px dashed rgba(234,240,255,.18);
  padding-top:10px;
}
.checks .c{
  display:flex; gap:10px; align-items:flex-start;
  margin:8px 0;
  font-size:13px; color:var(--muted);
}
.checks input{width:auto; margin-top:3px}

/* 送信ボタン（40-60代経営者向けに読みやすく・押しやすく） */
.btn{
  display: block;
  width: 100%;
  padding: 14px 16px;
  font-size: 17px;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn.primary{
  background: linear-gradient(135deg, rgba(122,167,255,.95), rgba(122,167,255,.72));
  color: #061021;
  box-shadow: 0 4px 12px rgba(122,167,255,.25);
}
.btn.primary:hover{
  background: linear-gradient(135deg, rgba(122,167,255,1), rgba(122,167,255,.85));
  box-shadow: 0 6px 16px rgba(122,167,255,.35);
}
.btn.primary:active{
  transform: translateY(1px);
  box-shadow: 0 2px 8px rgba(122,167,255,.25);
}
.btn:disabled{
  opacity: .45;
  cursor: not-allowed;
  filter: saturate(.6);
}

/* 安心文（ボタン直下） */
.form-note{
  text-align: center;
  font-size: 14px;
  color: var(--muted2);
  margin-top: 12px;
  line-height: 1.6;
}

.fineprint{
  margin-top:10px;
  color:var(--muted2);
  font-size:12px;
}
footer{
  padding:26px 0 44px;
  color:var(--muted2);
  border-top:1px solid var(--line);
  margin-top:30px;
}
.footgrid{
  display:flex; gap:16px; justify-content:space-between; flex-wrap:wrap;
  align-items:flex-start;
}
.footgrid small{opacity:.9}
.links{display:flex; gap:10px; flex-wrap:wrap}
.links a{
  border:1px solid var(--line);
  padding:6px 10px;
  border-radius: 999px;
  font-size:12px;
  color:var(--muted);
  background: rgba(255,255,255,.03);
}
.links a:hover{color:var(--text)}
.sr{position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden}

@media (max-width: 920px){
  :root{
    --header-height: 100px; /* スマホ時はヘッダーが高くなる可能性があるため増やす */
  }
  .hero-grid{grid-template-columns:1fr}
  .stats{grid-template-columns:1fr 1fr}
  .how{grid-template-columns:1fr}
  .contact{grid-template-columns:1fr}
  nav{gap:6px}
  .brand{min-width:auto}
}
@media (max-width: 520px){
  :root{
    --header-height: 110px; /* より小さい画面ではさらに高くなる可能性 */
  }
  .stats{grid-template-columns:1fr}
  .card.pad{padding:18px}
  .section{padding:28px 0}
}

/* price.html用スタイル（index.htmlと同じデザイン思想に統一） */
.section-gray{background: rgba(13,23,48,.30); border-radius: var(--radius2); padding:34px 0; margin:0}
.table-wrap{margin-top:16px; overflow-x:auto}
.table-wrap table{width:100%; border-collapse:collapse; border:1px solid var(--line); border-radius: var(--radius2); overflow:hidden; background: rgba(15,26,51,.45)}
.table-wrap th{border-bottom:1px solid var(--line); padding:14px 16px; text-align:left; font-size:14px; font-weight:700; background: rgba(13,23,48,.55)}
.table-wrap td{border-bottom:1px solid var(--line); padding:14px 16px; color:var(--muted); font-size:13px}
.table-wrap tr:last-child td{border-bottom:none}
.price-list{margin:16px 0 0; padding:0; list-style:none; color:var(--muted)}
.price-list li{margin:12px 0; padding:12px 16px; border:1px solid var(--line); border-radius: var(--radius); background: rgba(15,26,51,.45)}
.price-list strong{color:var(--text); font-size:15px}
.price-monthly{margin:16px 0; font-size:20px; font-weight:800; letter-spacing:.4px; color:var(--text)}
.note{margin-top:16px; padding-top:16px; border-top:1px dashed rgba(234,240,255,.18); color:var(--muted2); font-size:13px}
.section-cta{padding:34px 0; text-align:center}
.section-cta h2{margin:0 0 10px; font-size:22px; letter-spacing:.3px}
.section-cta p{margin:0 0 16px; color:var(--muted)}

@media (max-width: 520px){
  .section-gray{padding:28px 0}
  .section-cta{padding:28px 0}
}

/* ===== Mobile readability (target: 40-60 business owners) ===== */
html { -webkit-text-size-adjust: 100%; }

body {
  font-size: 16px;            /* PC基準。モバイルは下のmediaで増やす */
  line-height: 1.7;
}

/* 本文・リストの可読性 */
p, li {
  line-height: 1.8;
}

/* フォーム：iOSの自動ズーム対策で16px以上 */
input, textarea, select, button {
  font-size: 16px;
  line-height: 1.6;
}

/* スマホ：本文を確実に大きくする（最小変更） */
@media (max-width: 480px) {
  body { font-size: 18px; }
}

/* 小さめスマホ：上げすぎ防止しつつ読みやすく */
@media (max-width: 360px) {
  body { font-size: 17px; }
}

/* 任意：長文ブロックが詰まって見えるのを軽減 */
@media (max-width: 480px) {
  h1, h2, h3 { line-height: 1.25; }
}

/* ===== Mobile hamburger nav ===== */
.menu-toggle{
  display:none;
  width:44px; height:44px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  align-items:center; justify-content:center;
  gap:6px;
}
.menu-toggle span{
  display:block;
  width:18px; height:2px;
  background: rgba(234,240,255,.9);
  border-radius:2px;
}
.desktop-nav{ display:flex; }

@media (max-width: 920px){
  /* ヘッダーを1行に固定したいので、スマホではPCナビを消す */
  .desktop-nav{ display:none; }
  .menu-toggle{ display:inline-flex; }

  /* これ以上ヘッダー高を増やさない（1行設計に戻す） */
  :root{ --header-height: 76px; }
}

/* ===== Mobile Drawer Menu (single source of truth) ===== */
.mobile-menu[hidden]{ display:none; }

.mobile-menu{
  position: fixed;
  inset: 0;
  z-index: 9999;
  /* backdrop handles background */
}

/* 暗幕（背景担当） */
.mobile-menu-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
}

.mobile-menu-panel{
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(86vw, 360px);

  background: #0b1220;           /* 完全不透明 */
  border-left: 1px solid rgba(234,240,255,.12);
  box-shadow: 0 20px 60px rgba(0,0,0,.45);

  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
}

.mobile-menu-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 2px 10px;
  border-bottom: 1px solid rgba(234,240,255,.12);
  margin-bottom: 6px;
}

/* ここが重要：a をブロック化して "浮き" を消す */
.mnav{
  display: block;
  width: 100%;
  margin: 0;
  padding: 14px 10px;

  background: transparent;
  border: 0;
  border-radius: 0;

  border-bottom: 1px solid rgba(234,240,255,.12);
}

.mnav:hover{
  background: rgba(255,255,255,.04);
}

.mcta{
  display: block;
  width: 100%;
  margin-top: 12px;
  border-radius: 16px;
}

@media (max-width: 360px){
  .mobile-menu-panel{ width: 100%; }
}

.menu-toggle{ flex-direction: column; }

/* ===== Mobile typography fix: fixed 12-15px text becomes unreadable on 40-60 target ===== */
@media (max-width: 520px){
  /* header/nav */
  .brand strong{ font-size:15px; }
  .brand span{ font-size:14px; }
  nav a{ font-size:15px; }
  .cta{ font-size:15px; }
  .cta.secondary{ font-size:15px; }

  /* footer links */
  .links a{ font-size:14px; }
}

@media (max-width: 480px){
  /* already set body=18px in current file; keep it, but fix “small fixed px” components */
  .notice h2{ font-size:16px; }
  .notice p{ font-size:16px; line-height:1.8; }
  .mini{ font-size:15px; line-height:1.7; }

  .stat .t{ font-size:15px; }

  .pill b{ font-size:16px; }
  .pill p{ font-size:16px; line-height:1.8; }

  .step .k{ font-size:15px; }
  .step p{ font-size:16px; line-height:1.8; }

  details .ans{ font-size:16px; line-height:1.8; }

  .contact p{ font-size:16px; line-height:1.8; }

  label{ font-size:15px; }

  /* price table readability */
  .table-wrap th{ font-size:15px; }
  .table-wrap td{ font-size:16px; line-height:1.7; }
}

@media (max-width: 360px){
  /* prevent over-scaling on very small devices */
  .brand span{ font-size:13px; }
  nav a{ font-size:14px; }
}
