@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&display=swap');

:root{
  --bg: #f5f8fb;
  --panel: #ffffff;
  --text: #222;
  --muted: #666;
  --brand: #0074c8;
  --brand-dark: #005fa3;
  --line: #e5e7eb;
  --alt: #eef6ff;
  --shadow: 0 8px 24px rgba(0,0,0,0.06);
  --radius: 14px;
  --max: 1120px;
  --anchor-offset: 92px; /* ヘッダー高さに合わせて調整 */
}

*{ box-sizing: border-box; }

html, body{
  margin:0;
  padding:0;
  font-family: 'Noto Sans JP', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

html{
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
}

img{ max-width: 100%; height: auto; display:block; }

a{ color: var(--brand); text-decoration: none; }
a:hover{ text-decoration: underline; }

.skip-link{
  position:absolute;
  left:-9999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}
.skip-link:focus{
  left: 16px;
  top: 16px;
  width:auto;
  height:auto;
  background:#fff;
  padding:10px 12px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  z-index: 9999;
}

/* header */
.site-header{
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 16px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
}

.brand img{
  width: 180px;
  max-width: 40vw;
}

.top-nav{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
}

.top-nav__item{
  padding: 10px 12px;
  border-radius: 999px;
  color: #0b2340;
  font-weight: 700;
  border: 1px solid transparent;
}
.top-nav__item:hover{ background: #f3f7ff; text-decoration:none; }
.top-nav__item.is-current{
  border-color: #cfe4ff;
  background: #eaf4ff;
}

.top-nav__cta{
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(0,116,200,0.18);
}
.top-nav__cta:hover{
  background: var(--brand-dark);
  text-decoration:none;
}

.top-nav__cta--ghost{
  background: #41c9b4;
  border: 1px solid #41c9b4;
  color: #fff;            /* 白文字が見やすい */
}
.top-nav__cta--ghost:hover{
  filter: brightness(0.95); /* 任意：ホバーで少し濃く */
}

/* hero */
.hero{
  background:
    radial-gradient(1200px 420px at 30% 10%, rgba(0,116,200,0.15), transparent 60%),
    radial-gradient(900px 360px at 80% 30%, rgba(250,202,67,0.25), transparent 55%),
    linear-gradient(180deg, #ffffff, #f8fbff);
  border-bottom: 1px solid var(--line);
}

.hero.hero--alt{
  background:
    radial-gradient(1200px 420px at 30% 10%, rgba(60, 200, 160, 0.16), transparent 60%),
    radial-gradient(900px 360px at 80% 30%, rgba(190, 240, 170, 0.22), transparent 55%),
    linear-gradient(180deg, #ffffff, #f3fffb);
}

/* hero: top switch (対象者の切替) */
.hero__switch{
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 16px 0;
}

.hero__switch-inner{
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(217,230,247,0.9);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.06);
  padding: 14px 14px 6px;
  backdrop-filter: blur(10px);
}

.hero__switch-heading{
  margin: 0 0 10px;
  color: #0b2340;
  font-size: clamp(1.05rem, 1.4vw, 1.35rem);
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.page-switch.page-switch--hero{
  margin: 8px 0 6px;
}

@media (max-width: 640px){
  .hero__switch{ padding: 12px 12px 0; }
  .hero__switch-inner{ padding: 12px 12px 4px; }
  .hero__switch-heading{ margin-bottom: 8px; }
}

.hero__inner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 16px;
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  align-items:center;
}

.hero__eyebrow{
  display:inline-block;
  font-weight: 700;
  color: #0b2340;
  background: #eaf4ff;
  border: 1px solid #cfe4ff;
  padding: 6px 10px;
  border-radius: 999px;
  margin: 0 0 10px;
  font-size: 0.95rem;
}

.hero__title{
  margin: 0 0 10px;
  color: #0b2340;
  font-size: clamp(1.7rem, 2.4vw, 2.6rem);
  line-height: 1.25;
}

.hero__lead{
  margin: 0 0 16px;
  color: var(--muted);
}

.hero__actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  text-decoration:none;
}

.btn--primary{
  background: var(--brand);
  color:#fff;
  box-shadow: 0 8px 18px rgba(0,116,200,0.18);
}
.btn--primary:hover{ background: var(--brand-dark); text-decoration:none; }

.btn--ghost{
  background: #fff;
  color: #0b2340;
  border-color: #d9e6f7;
}
.btn--ghost:hover{ background: #f7fbff; text-decoration:none; }

.hero__media .ratio-16x9{
  width: 100%;
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow);
  background:#000;
  aspect-ratio: 16/9;
}
.hero__media iframe{
  width:100%;
  height:100%;
  border:0;
  display:block;
}

.hero--alt .hero__media{
  display:flex;
  justify-content:flex-end;
}
.hero__panel{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  width: min(420px, 100%);
}
.hero__panel-title{
  font-weight: 700;
  margin: 0 0 8px;
  color: #0b2340;
}
.hero__panel-list{
  margin: 0;
  padding-left: 1.2em;
  color: var(--muted);
}

/* page layout: left nav + right content */
.page{
  padding: 26px 0 40px;
}

.page__inner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
  display:grid;
  grid-template-columns: 280px 1fr;
  gap: 18px;
  align-items:start;
}

.side-nav{
  position: sticky;
  top: 86px;
  align-self: start;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
}

.side-nav__title{
  margin: 0 0 10px;
  font-weight: 700;
  color: #0b2340;
}

.side-nav__list{
  list-style:none;
  padding:0;
  margin:0 0 14px;
  display:flex;
  flex-direction:column;
  gap: 4px;
}

.side-nav__list a{
  display:block;
  padding: 8px 10px;
  border-radius: 10px;
  color:#0b2340;
  font-weight: 600;
}
.side-nav__list a:hover{
  background: #f3f7ff;
  text-decoration:none;
}
.side-nav__list a.is-active{
  background: #eaf4ff;
  border: 1px solid #cfe4ff;
}

.side-nav__box{
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.side-nav__box-title{
  margin:0 0 6px;
  font-weight:700;
  color:#0b2340;
}
.side-nav__box-text{
  margin:0 0 8px;
  color: var(--muted);
  font-size: 0.95rem;
}
.side-nav__box-link{
  font-weight:700;
  text-decoration:none;
}
.side-nav__box-link:hover{ text-decoration: underline; }

.content{
  display:flex;
  flex-direction:column;
  gap: 14px;
}

/* sections */
.section{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  scroll-margin-top: var(--anchor-offset);
}

.section--alt{
  background: #f7fbff;
}

.section h2{
  margin: 0 0 12px;
  color: #0b2340;
  font-size: 1.5rem;
}

.section h3{
  margin: 0 0 10px;
  color: #0b2340;
}

.section__lead{
  margin-top: -6px;
  color: var(--muted);
}

.lead{
  color: var(--muted);
}

.cards{
  display:grid;
  gap: 12px;
  grid-template-columns: 1fr;
  margin-top: 12px;
}
.cards--2{ grid-template-columns: repeat(2, 1fr); }
.cards--3{ grid-template-columns: repeat(3, 1fr); }

.card{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}
.card--accent{
  border-left: 6px solid #cfe4ff;
}

.badge{
  display:inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e6f4f1;
  color:#007b8a;
  font-weight:700;
  margin: 0 0 10px;
}

/* テーブル風の枠 */
.kv{
  list-style:none;
  margin: 0;
  padding: 0;
  border-radius: 12px;
  background: #fff;
  overflow: hidden; /* 角丸に合わせて線を切る */
}

/* 各行 */
.kv li{
  display: grid;
  grid-template-columns: 7em 1fr; /* 左列幅はお好みで */
  column-gap: 14px;
  align-items: start;
  padding: 14px 16px;
  border-bottom: 1px solid #ededed; /* 下線 */
  overflow-wrap: anywhere;          /* 右列で折り返す */
}

/* 最後の行だけ下線なし */
.kv li:last-child{ border-bottom: none; }

/* ホバーでうっすら行が浮く（任意） */
.kv li:hover{ background: #fafafa; }

/* 左のラベル（ピル） */
.kv li > span{
  display: inline-flex;
  justify-content: center;
  align-items: center;
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  border: 1px solid #e2e2e2;
  background: #f6f6f6;
}

/* 右側の本文の見栄え（任意） */
.kv li{
  line-height: 1.6;
}

/* モバイル：少し詰めて見やすく */
@media (max-width: 480px){
  .kv li{
    grid-template-columns: 5.8em 1fr;
    padding: 12px 12px;
  }
}

.two-col{
  display:grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  align-items:start;
  margin-top: 10px;
}
.figure{
  background:#fff;
  border:1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}
.figure__cap{
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.check{
  list-style:none;
  padding:0;
  margin: 12px 0 0;
  display:flex;
  flex-direction:column;
  gap: 8px;
}
.check li{
  padding-left: 1.6em;
  position: relative;
}
.check li::before{
  content: "◯";
  position:absolute;
  left: 0;
  top: 0;
  color:#007b8a;
  font-weight:700;
}

.steps{
  margin: 12px 0 0;
  padding-left: 1.2em;
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.steps li{
  background:#fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}

/* カード内 手順リスト（見出し＋説明が分かれる版） */
.steps-list{
  counter-reset: step;
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  border: 1px solid #e9e9e9;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.steps-list > li{
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 8px;
  padding: 14px 14px;
  border-bottom: 1px solid #eeeeee;
  align-items: start;
}

.steps-list > li:last-child{
  border-bottom: none;
}

/* 左の番号（丸） */
.steps-list > li::before{
  counter-increment: step;
  content: counter(step);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f2f2f2;
  border: 1px solid #e2e2e2;
  font-weight: 800;
  line-height: 1;
  margin-top: 2px;
}

/* 見出し */
.steps-list__title{
  font-weight: 800;
  font-size: 1.02rem;
  line-height: 1.25;
  color: var(--text, #111);
}

/* 説明 */
.steps-list__desc{
  margin-top: 2px;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.7;	
}

/* タイトル・説明は常に右カラムへ */
.steps-list > li > .steps-list__title,
.steps-list > li > .steps-list__desc{
  grid-column: 2;
}



/* 行ホバー（任意） */
.steps-list > li:hover{
  background: #fafafa;
}

/* モバイル調整 */
@media (max-width: 520px){
  .steps-list > li{
    grid-template-columns: 36px 1fr;
    padding: 12px 12px;
  }
  .steps-list > li::before{
    width: 30px;
    height: 30px;
    font-size: 0.95rem;
  }
}

.cta-inline{
  margin-top: 14px;
  padding: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0,144,224,0.08), rgba(250,202,67,0.18));
  border: 1px solid #d9e6f7;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.operator .note{
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 10px;
}

/* FAQ (details) */
.faq{
  border: 1px solid var(--line);
  border-radius: 12px;
  background:#fff;
  padding: 0;
  overflow:hidden;
  margin-top: 10px;
}
.faq summary{
  cursor:pointer;
  padding: 14px 16px;
  font-weight:700;
  color:#0b2340;
  list-style: none;
}
.faq summary::-webkit-details-marker { display:none; }
.faq[open] summary{ border-bottom: 1px solid var(--line); background:#f7fbff; }
.faq__a{
  padding: 14px 16px;
  color: var(--muted);
}

/* checklist */
.checklist{
  display:flex;
  flex-direction:column;
  gap: 10px;
  margin-top: 12px;
}
.checklist label{
  display:flex;
  gap: 10px;
  align-items:flex-start;
  padding: 10px 12px;
  background:#fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.checklist input{ margin-top: 4px; }

/* footer */
.footer{
  border-top: 1px solid var(--line);
  background:#ffffff;
}
.footer__inner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 16px;
}
.footer__links{
  margin: 0 0 6px;
  color: var(--muted);
}
.footer__copy{
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* responsive */
@media (max-width: 980px){
  .hero__inner{ grid-template-columns: 1fr; }
  .page__inner{ grid-template-columns: 1fr; }
  .side-nav{ position: relative; top: 0; }
  .cards--2{ grid-template-columns: 1fr; }
  .cards--3{ grid-template-columns: 1fr; }
  .two-col{ grid-template-columns: 1fr; }
  .cta-inline{ justify-content: flex-start; }
}


/* ページ切替（概要直下の大きなボタン） */
.page-switch{
  display:flex;
  gap:14px;
  margin: 10px 0 18px;
  flex-wrap:wrap;
}

.switch-btn{
  flex: 1 1 280px;
  display:block;
  text-decoration:none;
  border: 2px solid var(--line);
  background: #fff;
  border-radius: 16px;
  padding: 3px 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  transition: transform .08s ease, border-color .15s ease, box-shadow .15s ease;
}

.switch-btn:hover{
  transform: translateY(-1px);
  border-color: rgba(0,116,200,0.45);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.switch-btn__label{
  display:block;
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1.2;
  margin-bottom: 6px;
  color: var(--brand);
  align-items: center;     /* 縦中央 */
  justify-content: center; /* 横中央 */
  text-align: center;      /* 念のため */
  width: 100%;             /* ラベルがボタン幅いっぱいを使う前提 */
}

.switch-btn__desc{
  display:block;
  font-size: .95rem;
  color: var(--muted);
}

.switch-btn.is-current{
  border-color: rgba(0,116,200,0.7);
  background: var(--alt);
}

@media (max-width: 640px){
  .page-switch{ gap:10px; }
  .switch-btn{ padding: 14px 14px; }
}

/* --- 追記：ボタン内部を2カラム（左テキスト／右画像）にする --- */
.switch-btn__inner{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px; /* 左：可変、右：画像 */
  gap: 14px;
  align-items: center;
}

.switch-btn__text{ min-width: 0; }

.switch-btn__inner .switch-btn__label{
  text-align: center;
  width: 100%;
}

.switch-btn__inner .switch-btn__desc{
  text-align: center;
  width: 100%;
}

.switch-btn__media{
  display: flex;
  justify-content: center;
  align-items: center;
}

.switch-btn__media img{
  width: 100%;
  max-width: 130px;
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: contain;
}

/* スマホ：縦積み（テキスト→画像） */
@media (max-width: 640px){
  .switch-btn__inner{
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .switch-btn__media{
    justify-content: center;
  }
  .switch-btn__media img{
    max-width: 220px;
  }
}

/* --- Card media (optional image slot inside .card) --- */
.card__media:empty { display: none; }
.card__media { margin: 0 0 12px; }
.card__media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
}

/* --- Scroll popup animation for images --- */
.scroll-popup {
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  transition: opacity 520ms ease, transform 520ms cubic-bezier(.2,.9,.2,1);
  will-change: opacity, transform;
}
.scroll-popup.is-inview {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (max-width: 768px) {
  /* Make images smaller on mobile while keeping them readable */
  .card__media img {
    max-width: 260px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .scroll-popup {
    transition: none;
    transform: none;
    opacity: 1;
  }
}
