@charset "UTF-8";
/* ==========================================================================
   資格のミカタ ／ トップページ専用
   style.css のトークン（--sm-indigo など）を前提にしている。
   このファイルはトップページでだけ読み込まれる（functions.php 参照）。
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. スクロールで現れる
   要素は最初から DOM にあるので、JS が動かない環境では
   （下の :not(.sm-js) 指定により）最初から見えている状態になる。
   -------------------------------------------------------------------------- */
.sm-js [data-sm-reveal]{
  opacity:0;
  transform:translateY(16px);
  transition:opacity .55s cubic-bezier(.22,.61,.36,1), transform .55s cubic-bezier(.22,.61,.36,1);
  will-change:opacity, transform;
}
.sm-js [data-sm-reveal].is-in{ opacity:1; transform:none; }

@media (prefers-reduced-motion:reduce){
  .sm-js [data-sm-reveal]{ opacity:1; transform:none; transition:none; }
}

/* メーターは伸びるところを見せたいので、幅にトランジションを掛ける */
.sm-meter > i{ transition:width 1.1s cubic-bezier(.22,.61,.36,1); }
@media (prefers-reduced-motion:reduce){
  .sm-meter > i{ transition:none; }
}

/* --------------------------------------------------------------------------
   2. ヒーロー
   本文カラム（最大1080px）の外へ出して画面幅いっぱいに広げる。
   .entry-content の中にいるので、左右へ引き伸ばす形で全幅にする。
   -------------------------------------------------------------------------- */
.sm-goals--2col{ grid-template-columns:1fr 1fr; }

.sm-hero{
  position:relative;
  /* フルブリード：親の幅に関係なく画面いっぱいへ。
     padding を含めた幅で 100vw にしたいので box-sizing を明示する
     （テーマ側の指定に依存させない）。 */
  box-sizing:border-box;
  width:100vw;
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);
  margin-top:0;
  margin-bottom:0;
  padding:clamp(48px, 6vw, 76px) 24px clamp(88px, 9vw, 112px);
  border-radius:0;
  overflow:hidden;
  isolation:isolate;
  background:
    linear-gradient(168deg, #17325C 0%, #12294D 48%, #0E2140 100%);
  color:#F4F7FC;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-height:min(80vh, 680px);
}
.sm-hero *{ box-sizing:border-box; }

/* 本文が横スクロールしないように（100vw はスクロールバー分だけはみ出す）。
   clip が使えない環境では hidden にフォールバックする。 */
.home #container,
.home .content{
  overflow-x:hidden;
  overflow-x:clip;
}

/* 方眼ノートの罫。うっすらとだけ。 */
.sm-hero__grid{
  position:absolute;
  inset:0;
  z-index:-2;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size:44px 44px;
  mask-image:radial-gradient(120% 90% at 50% 20%, #000 0%, transparent 78%);
  -webkit-mask-image:radial-gradient(120% 90% at 50% 20%, #000 0%, transparent 78%);
  pointer-events:none;
}

/* デスクライトの光。ゆっくり呼吸する。 */
.sm-hero__glow{
  position:absolute;
  z-index:-2;
  top:-32%;
  right:-6%;
  width:min(760px, 88vw);
  aspect-ratio:1;
  background:radial-gradient(circle, rgba(217,138,11,.22) 0%, rgba(217,138,11,.06) 42%, rgba(217,138,11,0) 66%);
  pointer-events:none;
  animation:sm-breathe 11s ease-in-out infinite;
}
@keyframes sm-breathe{
  0%,100%{ transform:scale(1);    opacity:1; }
  50%    { transform:scale(1.16); opacity:.62; }
}

/* 机の明かり（粒）。JSで描く。 */
.sm-hero__canvas{
  position:absolute;
  inset:0;
  z-index:-1;
  width:100%;
  height:100%;
  pointer-events:none;
}

@media (prefers-reduced-motion:reduce){
  .sm-hero__glow{ animation:none; }
  .sm-hero__canvas{ display:none; }
}

.sm-hero__inner{
  position:relative;
  z-index:1;
  width:100%;
  max-width:1080px;
  text-align:center;
}

.sm-hero__eyebrow{
  margin:0 0 22px !important;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  font-family:var(--sm-f-mono);
  font-size:11px;
  letter-spacing:.22em;
  color:#F4B740 !important;
}
.sm-hero__eyebrow::before,
.sm-hero__eyebrow::after{
  content:"";
  width:clamp(24px, 6vw, 56px);
  height:1px;
  background:linear-gradient(90deg, transparent, rgba(244,183,64,.6));
}
.sm-hero__eyebrow::after{ background:linear-gradient(90deg, rgba(244,183,64,.6), transparent); }

.sm-hero__title{
  font-family:var(--sm-f-display);
  font-size:clamp(34px, 6.4vw, 68px) !important;
  font-weight:900;
  line-height:1.24;
  letter-spacing:-.02em;
  color:var(--sm-white) !important;
  margin:0 !important;
  border:0 !important;
  padding:0 !important;
  background:none !important;
  text-wrap:balance;
}
.sm-hero__line{ display:inline-block; }
.sm-hero__title em{
  font-style:normal;
  position:relative;
  color:#F4B740;
}
/* 「ミカタ」の下に引く線。読み込み後に左から伸びる。 */
.sm-hero__title em::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:.06em;
  height:.1em;
  border-radius:99px;
  background:linear-gradient(90deg, rgba(244,183,64,.95), rgba(217,138,11,.35));
  transform:scaleX(0);
  transform-origin:left center;
  animation:sm-underline .9s cubic-bezier(.22,.61,.36,1) .45s forwards;
}
@keyframes sm-underline{ to{ transform:scaleX(1); } }
@media (prefers-reduced-motion:reduce){
  .sm-hero__title em::after{ animation:none; transform:scaleX(1); }
}

.sm-hero__lede{
  margin:22px auto 0 !important;
  max-width:640px;
  font-size:clamp(13.5px, 1.5vw, 15.5px);
  line-height:2;
  color:#BCCBE2 !important;
}

/* 検索フォーム：ヒーローの主役なので大きく取る */
.sm-hero__search{
  margin:32px auto 0;
  max-width:600px;
  display:flex;
  background:var(--sm-white);
  border-radius:8px;
  overflow:hidden;
  box-shadow:0 22px 44px -22px rgba(0,0,0,.75);
  transition:transform .18s ease, box-shadow .18s ease;
}
.sm-hero__search:focus-within{
  transform:translateY(-2px);
  box-shadow:0 26px 52px -22px rgba(0,0,0,.8);
}
.sm-hero__search input[type="search"],
.sm-hero__search input[type="text"]{
  flex:1;
  border:0;
  padding:17px 20px;
  font-size:15px;
  min-width:0;
}
.sm-hero__search button{
  padding:17px 34px;
  font-size:15px;
  border:0;
  background:var(--sm-amber);
  color:var(--sm-white);
  font-family:var(--sm-f-display);
  font-weight:700;
  cursor:pointer;
  white-space:nowrap;
  transition:background .18s ease;
}
.sm-hero__search button:hover{ background:#E89A15; }

.sm-hero__chips{
  margin-top:18px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  justify-content:center;
}
.sm-hero__chipslabel{
  font-size:11.5px;
  color:#8DA2C0;
  margin-right:2px;
}
.sm-hero__chips a{
  font-size:12.5px;
  border:1px solid rgba(255,255,255,.26);
  border-radius:20px;
  padding:6px 15px;
  color:#D5E0F0 !important;
  text-decoration:none !important;
  transition:background .16s ease, border-color .16s ease, transform .16s ease;
}
.sm-hero__chips a:hover{
  background:rgba(255,255,255,.14);
  border-color:rgba(255,255,255,.5);
  transform:translateY(-1px);
}

/* 数字。実際に数えた値だけを出している。 */
.sm-hero__stats{
  margin:44px auto 0 !important;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:clamp(24px, 6vw, 64px);
  padding-top:26px;
  border-top:1px solid rgba(255,255,255,.12);
  max-width:640px;
}
.sm-hero__stat{ text-align:center; }
.sm-hero__stat dt{ margin:0; }
.sm-hero__stat dt b,
.sm-hero__stattext{
  font-family:var(--sm-f-mono);
  font-size:clamp(24px, 3.4vw, 34px);
  font-weight:500;
  color:var(--sm-white);
  font-variant-numeric:tabular-nums;
  line-height:1.1;
}
.sm-hero__stattext{ font-size:clamp(17px, 2.4vw, 22px); }
.sm-hero__stat dd{
  margin:8px 0 0;
  font-size:11.5px;
  color:#8DA2C0;
  letter-spacing:.04em;
}

@media screen and (max-width:834px){
  .sm-hero{ min-height:auto; padding:56px 18px 96px; }
  .sm-hero__search{ flex-direction:column; border-radius:10px; }
  .sm-hero__search button{ padding:14px; }
  .sm-hero__stats{ gap:22px; margin-top:34px !important; }
}

/* --------------------------------------------------------------------------
   2-a. 写真のヒーロー（2026-09-24〜）
   左にコピーと検索、右に「夜の勉強机」の写真。数字は写真の上に重ねる。
   粒のアニメーションはやめ、灯りのにじみも止めた（静止画で見せる）。
   -------------------------------------------------------------------------- */
.sm-hero--photo{
  min-height:auto;
  align-items:stretch;
  padding:clamp(28px, 4vw, 48px) 24px clamp(104px, 10vw, 132px);
  background:
    radial-gradient(90% 70% at 88% 18%, rgba(217,138,11,.16) 0%, rgba(217,138,11,0) 60%),
    linear-gradient(160deg, #1A375F 0%, #12294D 52%, #0C1C37 100%);
}
.sm-hero--photo .sm-hero__glow{ animation:none; opacity:.7; }

/* ヘッダーとヒーローの間の余白を消す（Cocoon の #content の上マージンと #main の上パディング）。
   以前は PR表記がここに入っていたが、ヒーローの中へ移したので空白だけが残っていた。 */
.home #content{ margin-top:0 !important; }
.home #main{ padding-top:0 !important; }

.sm-hero__pr{
  width:100%;
  max-width:1120px;
  margin:0 auto 22px !important;
  font-size:11px !important;
  line-height:1.6 !important;
  color:#8DA2C0 !important;
  text-align:left;
}

.sm-hero--photo .sm-hero__inner{
  max-width:1120px;
  margin:0 auto;
  display:grid;
  grid-template-columns:minmax(0, 1.02fr) minmax(0, .98fr);
  gap:clamp(36px, 5vw, 72px);
  align-items:center;
  text-align:left;
}

.sm-hero--photo .sm-hero__eyebrow{ justify-content:flex-start; }
.sm-hero--photo .sm-hero__eyebrow::before{ display:none; }

.sm-hero--photo .sm-hero__title{
  font-size:clamp(34px, 4.6vw, 60px) !important;
  line-height:1.2;
}
/* 下線は動かさずに最初から引いておく */
.sm-hero--photo .sm-hero__title em::after{
  animation:none;
  transform:scaleX(1);
}

.sm-hero--photo .sm-hero__lede{
  margin:22px 0 0 !important;
  max-width:600px;
  font-size:clamp(13.5px, 1.1vw, 15px);
}
.sm-hero--photo .sm-hero__search{
  margin:30px 0 0;
  max-width:540px;
}
.sm-hero--photo .sm-hero__chips{ justify-content:flex-start; }

/* 写真。琥珀の細い枠を少しずらして重ね、机の灯りの色を拾う。 */
.sm-hero__visual{
  position:relative;
  margin:0 !important;
  padding:0;
}
.sm-hero__visual::before{
  content:"";
  position:absolute;
  inset:22px -22px -22px 22px;
  border:1px solid rgba(244,183,64,.5);
  border-radius:22px;
  pointer-events:none;
}
.sm-hero__visual picture{ display:block; position:relative; }
.sm-hero__visual img{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:5 / 4;
  object-fit:cover;
  object-position:42% 50%;
  border-radius:18px;
  box-shadow:0 40px 80px -40px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.06);
}

/* 数字のカード（写真の左下に重ねる） */
.sm-hero--photo .sm-hero__stats{
  position:absolute;
  left:-34px;
  bottom:30px;
  margin:0 !important;
  padding:16px 24px;
  max-width:none;
  gap:28px;
  flex-wrap:nowrap;
  border:1px solid rgba(255,255,255,.14);
  border-radius:14px;
  background:rgba(12,28,55,.74);
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
  box-shadow:0 24px 48px -24px rgba(0,0,0,.8);
}
.sm-hero--photo .sm-hero__stat dt b,
.sm-hero--photo .sm-hero__stattext{ font-size:clamp(22px, 2.4vw, 28px); }
.sm-hero--photo .sm-hero__stat dd{ margin-top:6px; font-size:11px; }

@media screen and (max-width:1024px){
  .sm-hero--photo .sm-hero__stats{ left:16px; }
}

/* スマホ・タブレット：写真を上に、コピーを下に */
@media screen and (max-width:834px){
  .sm-hero--photo{ padding:18px 16px 96px; }
  .sm-hero__pr{ margin-bottom:14px !important; }
  .sm-hero--photo .sm-hero__inner{
    grid-template-columns:1fr;
    gap:28px;
  }
  .sm-hero--photo .sm-hero__visual{ order:-1; margin:0 0 30px !important; }
  .sm-hero__visual::before{ inset:12px -10px -12px 10px; border-radius:18px; }
  .sm-hero__visual img{ aspect-ratio:16 / 10; border-radius:14px; object-position:45% 50%; }
  .sm-hero--photo .sm-hero__stats{
    left:50%;
    bottom:-26px;
    transform:translateX(-50%);
    padding:12px 18px;
    gap:18px;
    width:max-content;
    max-width:calc(100% - 24px);
  }
  .sm-hero--photo .sm-hero__stat dt b,
  .sm-hero--photo .sm-hero__stattext{ font-size:20px; }
  .sm-hero--photo .sm-hero__stat dd{ font-size:10px; white-space:nowrap; }
  .sm-hero--photo .sm-hero__title{ font-size:clamp(30px, 8.4vw, 40px) !important; }
  .sm-hero--photo .sm-hero__lede{ font-size:14px; text-wrap:pretty; }
  .sm-hero--photo .sm-hero__lede br{ display:none; }
}
/* タブレット縦：写真が画面を占めすぎないよう横長に */
@media screen and (min-width:600px) and (max-width:834px){
  .sm-hero__visual img{ aspect-ratio:2 / 1; }
}

/* --------------------------------------------------------------------------
   2-a'. エディトリアル（2026-09-24〜 現行）
   生成りの紙に藍の明朝体。写真はアーチ型に切り抜く。
   配置の土台（.sm-hero__visual / .sm-hero__pr など）は上の 2-a を使い、ここで上書きする。
   -------------------------------------------------------------------------- */
.sm-hero--editorial{
  background:#F5EFE3 !important; color:#14254A; min-height:auto;
  padding:clamp(28px,4vw,44px) 28px clamp(110px,10vw,140px);
}
.sm-hero--editorial .sm-hero__glow{ display:none; }
.sm-hero--editorial::before{
  content:""; position:absolute; inset:0; z-index:-1; pointer-events:none; opacity:.5;
  background-image:radial-gradient(rgba(20,37,74,.09) 1px, transparent 1px); background-size:18px 18px;
  mask-image:linear-gradient(90deg,#000 0%,transparent 55%); -webkit-mask-image:linear-gradient(90deg,#000 0%,transparent 55%);
}
.sm-hero--editorial .sm-hero__pr{ color:#8A8272 !important; max-width:1140px; }
.sm-hero--editorial .sm-hero__inner{
  max-width:1140px; margin:0 auto; display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);
  gap:clamp(40px,6vw,90px); align-items:center; text-align:left;
}
.sm-hero--editorial .sm-hero__eyebrow{ justify-content:flex-start; color:#B5720A !important; letter-spacing:.3em; }
.sm-hero--editorial .sm-hero__eyebrow::before{ display:none; }
.sm-hero--editorial .sm-hero__eyebrow::after{ background:#B5720A; opacity:.5; }
.sm-hero--editorial .sm-hero__title{
  font-family:"Shippori Mincho B1","Yu Mincho",serif !important; font-weight:800; color:#14254A !important;
  font-size:clamp(42px,5.8vw,82px) !important; line-height:1.14; letter-spacing:.01em;
}
.sm-hero--editorial .sm-hero__title em{ display:inline; color:#14254A; background:linear-gradient(transparent 76%, rgba(242,181,68,.62) 76%, rgba(242,181,68,.62) 94%, transparent 94%); padding:0 .04em; }
.sm-hero--editorial .sm-hero__line{ display:inline; }
.sm-hero--editorial .sm-hero__title em::after{ display:none; }
.sm-hero--editorial .sm-hero__lede{ margin:26px 0 0 !important; color:#4A5670 !important; font-size:15px; max-width:540px; }
.sm-hero--editorial .sm-hero__search{
  margin:34px 0 0; max-width:540px; background:#fff; border-radius:999px; box-shadow:0 18px 40px -24px rgba(20,37,74,.45);
  border:1px solid rgba(20,37,74,.12);
}
.sm-hero--editorial .sm-hero__search input[type="search"]{ padding:17px 26px; }
.sm-hero--editorial .sm-hero__search button{ margin:6px; border-radius:999px; padding:11px 28px; background:#14254A; }
.sm-hero--editorial .sm-hero__search button:hover{ background:#B5720A; }
.sm-hero--editorial .sm-hero__chipslabel{ color:#8A8272; }
.sm-hero--editorial .sm-hero__chips{ justify-content:flex-start; }
.sm-hero--editorial .sm-hero__chips a{ color:#14254A !important; border-color:rgba(20,37,74,.2); background:rgba(255,255,255,.6); }
.sm-hero--editorial .sm-hero__chips a:hover{ background:#14254A; color:#fff !important; }
.sm-hero--editorial .sm-hero__visual{ position:relative; margin:0 !important; }
.sm-hero--editorial .sm-hero__visual::before{
  inset:-16px -16px auto auto; width:78%; height:78%; border:0; border-radius:999px 999px 24px 24px;
  background:rgba(242,181,68,.28);
}
.sm-hero--editorial .sm-hero__visual img{
  aspect-ratio:4/5; object-position:36% 50%; border-radius:999px 999px 20px 20px;
  box-shadow:0 40px 70px -40px rgba(20,37,74,.6);
}
.sm-hero--editorial .sm-hero__caption{
  position:absolute; right:-26px; top:50%; transform:translateY(-50%) rotate(180deg); writing-mode:vertical-rl;
  font-family:var(--sm-f-mono); font-size:10px; letter-spacing:.35em; color:#8A8272; white-space:nowrap;
}
.sm-hero--editorial .sm-hero__stats{
  position:absolute; left:-44px; bottom:34px; margin:0 !important; padding:16px 22px; gap:24px; flex-wrap:nowrap; max-width:none;
  background:#fff; border:1px solid rgba(20,37,74,.1); border-radius:16px; box-shadow:0 24px 48px -28px rgba(20,37,74,.5);
  -webkit-backdrop-filter:none; backdrop-filter:none;
}
.sm-hero--editorial .sm-hero__stat dt b{ font-weight:700; color:#14254A; font-family:"Shippori Mincho B1",serif; font-size:28px; font-weight:700; }
.sm-hero--editorial .sm-hero__stat dd{ color:#8A8272; }
@media screen and (max-width:834px){
  .sm-hero--editorial{ padding:18px 18px 100px; }
  .sm-hero--editorial .sm-hero__inner{ grid-template-columns:1fr; gap:26px; }
  .sm-hero--editorial .sm-hero__visual{ order:-1; width:74%; margin:6px auto 34px !important; }
  .sm-hero--editorial .sm-hero__visual img{ aspect-ratio:4/5; }
  .sm-hero--editorial .sm-hero__caption{ right:-34px; }
  .sm-hero--editorial .sm-hero__lede{ font-size:14px; text-wrap:pretty; }
  .sm-hero--editorial .sm-hero__lede br{ display:none; }
  .sm-hero--editorial .sm-hero__stats{ left:50%; transform:translateX(-50%); bottom:-30px; padding:11px 16px; gap:16px; width:max-content; }
  .sm-hero--editorial .sm-hero__stat dt b{ font-size:21px; }
  .sm-hero--editorial .sm-hero__stat dd{ font-size:10px; white-space:nowrap; }
  .sm-hero--editorial .sm-hero__title{ font-size:clamp(36px,10.5vw,46px) !important; }
  .sm-hero--editorial .sm-hero__search{ flex-direction:row; }
  .sm-hero--editorial .sm-hero__search button{ padding:10px 18px; }
}

@media (prefers-reduced-motion:reduce){
  .sm-hero--editorial .sm-hero__chips a{ transition:none; }
}

/* --------------------------------------------------------------------------
   2-b. 目的から探す（ヒーローに半分重ねるカード）
   -------------------------------------------------------------------------- */
.sm-steps{
  position:relative;
  z-index:2;
  margin-top:clamp(-72px, -6vw, -48px);
  margin-bottom:44px;
}
.sm-goals--4col{ grid-template-columns:repeat(4,1fr); gap:14px; }

.sm-goal--card{
  position:relative;
  background:var(--sm-white);
  border:1px solid var(--sm-line);
  border-radius:var(--sm-radius);
  padding:20px 18px 22px;
  box-shadow:0 18px 34px -24px rgba(18,41,77,.7);
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.sm-goal--card:hover{
  background:var(--sm-white);
  transform:translateY(-4px);
  border-color:var(--sm-indigo);
  box-shadow:0 24px 40px -24px rgba(18,41,77,.85);
}
.sm-goal--card .sm-goal__no{ color:var(--sm-amber); }
.sm-goal--card .sm-goal__name{ color:var(--sm-ink); font-size:15.5px; }
.sm-goal--card .sm-goal__desc{ color:var(--sm-slate); }
.sm-goal__arrow{
  position:absolute;
  right:16px;
  bottom:14px;
  font-size:13px;
  color:var(--sm-indigo);
  opacity:0;
  transform:translateX(-4px);
  transition:opacity .2s ease, transform .2s ease;
}
.sm-goal--card:hover .sm-goal__arrow{ opacity:1; transform:none; }

@media screen and (max-width:834px){
  .sm-steps{ margin-top:-64px; }
  .sm-goals--4col{ grid-template-columns:1fr 1fr; gap:10px; }
  .sm-goal--card{ padding:15px 13px 18px; }
}

/* --------------------------------------------------------------------------
   3. 学習時間シミュレーター
   -------------------------------------------------------------------------- */
.sm-sim{
  background:var(--sm-white);
  border:1px solid var(--sm-line);
  border-radius:var(--sm-radius);
  padding:24px 26px;
}
.sm-sim__controls{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);
  gap:26px;
  align-items:start;
}
.sm-sim__field{ display:block; }
.sm-sim__label{
  display:block;
  font-family:var(--sm-f-display);
  font-size:13px;
  font-weight:700;
  color:var(--sm-slate);
  margin-bottom:9px;
}
.sm-sim__label b{
  font-family:var(--sm-f-mono);
  font-size:16px;
  color:var(--sm-indigo);
  font-variant-numeric:tabular-nums;
}
.sm-sim__select{
  width:100%;
  padding:11px 14px;
  font-size:14px;
  font-family:var(--sm-f-body);
  color:var(--sm-ink);
  background:var(--sm-white);
  border:1px solid #C9C6BE;
  border-radius:5px;
}
.sm-sim__select:focus{ outline:2px solid var(--sm-indigo); outline-offset:1px; }

.sm-sim__range{
  -webkit-appearance:none;
  appearance:none;
  width:100%;
  height:6px;
  border-radius:3px;
  background:linear-gradient(90deg, var(--sm-indigo) 0%, var(--sm-indigo) var(--sm-fill,25%), #E9E7E1 var(--sm-fill,25%), #E9E7E1 100%);
  margin:8px 0 0;
}
.sm-sim__range::-webkit-slider-thumb{
  -webkit-appearance:none;
  appearance:none;
  width:22px; height:22px;
  border-radius:50%;
  background:var(--sm-amber);
  border:3px solid var(--sm-white);
  box-shadow:0 2px 7px -1px rgba(0,0,0,.35);
  cursor:pointer;
}
.sm-sim__range::-moz-range-thumb{
  width:16px; height:16px;
  border-radius:50%;
  background:var(--sm-amber);
  border:3px solid var(--sm-white);
  box-shadow:0 2px 7px -1px rgba(0,0,0,.35);
  cursor:pointer;
}
.sm-sim__range:focus-visible{ outline:2px solid var(--sm-indigo); outline-offset:4px; }
.sm-sim__scale{
  display:flex;
  justify-content:space-between;
  margin-top:7px;
  font-family:var(--sm-f-mono);
  font-size:10px;
  color:#9A958C;
}
.sm-sim__scale i{ font-style:normal; }

.sm-sim__result{
  margin-top:22px;
  padding:20px 22px;
  border-radius:var(--sm-radius);
  background:
    radial-gradient(120% 160% at 92% -20%, rgba(217,138,11,.16) 0%, rgba(217,138,11,0) 55%),
    linear-gradient(168deg,#1B3A6B 0%,#12294D 100%);
  color:#DDE6F3;
}
.sm-sim__headline{ display:flex; align-items:baseline; gap:8px; flex-wrap:wrap; }
.sm-sim__num{
  font-family:var(--sm-f-mono);
  font-size:52px;
  font-weight:500;
  line-height:1;
  color:#F4B740;
  font-variant-numeric:tabular-nums;
}
.sm-sim__unit{
  font-family:var(--sm-f-display);
  font-size:19px;
  font-weight:700;
  color:var(--sm-white);
}
.sm-sim__sub{
  font-family:var(--sm-f-mono);
  font-size:12px;
  color:#A9BBD5;
  margin-left:6px;
}
.sm-sim__meta{ margin:12px 0 0 !important; font-size:13px; color:#BCCBE2 !important; line-height:1.8; }

/* 月のマス目。何ヶ月ぶんかが目で分かるようにする。 */
.sm-sim__timeline{ display:flex; flex-wrap:wrap; gap:4px; margin-top:16px; }
.sm-sim__month{
  width:16px; height:16px;
  border-radius:3px;
  background:rgba(255,255,255,.13);
  border:1px solid rgba(255,255,255,.16);
  transition:background .3s ease;
}
.sm-sim__month.is-on{ background:var(--sm-amber); border-color:var(--sm-amber); }
.sm-sim__month.is-half{
  background:linear-gradient(90deg, var(--sm-amber) 50%, rgba(255,255,255,.13) 50%);
  border-color:rgba(217,138,11,.7);
}

.sm-sim__link{
  display:inline-block;
  margin-top:16px;
  font-family:var(--sm-f-display);
  font-size:13px;
  font-weight:700;
  color:#F4B740 !important;
  text-decoration:none !important;
  border-bottom:1px solid rgba(244,183,64,.45);
  padding-bottom:2px;
}
.sm-sim__link:hover{ border-bottom-color:#F4B740; }

.sm-sim__note{ margin:14px 0 0 !important; font-size:11.5px; color:#8A857C !important; line-height:1.7; }

@media screen and (max-width:834px){
  .sm-sim{ padding:18px 16px; }
  .sm-sim__controls{ grid-template-columns:1fr; gap:20px; }
  .sm-sim__num{ font-size:42px; }
}

/* --------------------------------------------------------------------------
   4. 難易度 × 学習時間チャート
   -------------------------------------------------------------------------- */
.sm-chart{
  position:relative;
  background:var(--sm-white);
  border:1px solid var(--sm-line);
  border-radius:var(--sm-radius);
  padding:20px 22px 14px;
}
.sm-chart__filters{ display:flex; flex-wrap:wrap; gap:6px; margin-bottom:14px; }
.sm-chart__filter{
  font-family:var(--sm-f-display);
  font-size:11.5px;
  font-weight:700;
  padding:5px 12px;
  border-radius:20px;
  border:1px solid #D6D3CB;
  background:var(--sm-white);
  color:var(--sm-slate);
  cursor:pointer;
  transition:background .15s ease, color .15s ease, border-color .15s ease;
}
.sm-chart__filter:hover{ border-color:var(--sm-indigo); color:var(--sm-indigo); }
.sm-chart__filter.is-on{
  background:var(--sm-indigo);
  border-color:var(--sm-indigo);
  color:var(--sm-white);
}

.sm-chart__canvas{ width:100%; }
.sm-chart__canvas svg{ display:block; width:100%; height:auto; overflow:visible; }

.sm-chart__grid line{ stroke:#EDEBE5; stroke-width:1; }
.sm-chart__axis line{ stroke:#D6D3CB; stroke-width:1; }
.sm-chart__axis text{
  font-family:var(--sm-f-mono);
  font-size:10px;
  fill:#9A958C;
}
.sm-chart__axistitle{
  font-family:var(--sm-f-display);
  font-size:11px;
  font-weight:700;
  fill:var(--sm-slate);
}
.sm-chart__zone{ font-family:var(--sm-f-display); font-size:10.5px; fill:#B8B3AA; }

.sm-chart__dot{ cursor:pointer; transition:opacity .25s ease; }
/* 点の大きさ。SVG は viewBox で縮小されるので、画面が狭いほど実寸が小さくなる。
   スマホでは見つけられないほど小さくなっていたため、幅に応じて段階的に大きくする。 */
.sm-chart__dot circle{
  r:9;
  fill:var(--sm-indigo);
  stroke:var(--sm-white);
  stroke-width:2;
  transition:r .18s ease, fill .18s ease;
}
.sm-chart__dot:hover circle,
.sm-chart__dot:focus circle{ fill:var(--sm-amber); }
.sm-chart__dot text{
  font-family:var(--sm-f-display);
  font-size:10.5px;
  font-weight:700;
  fill:var(--sm-ink);
  pointer-events:none;
}
.sm-chart__dot.is-dim{ opacity:.16; pointer-events:none; }
.sm-chart__dot:focus{ outline:none; }
.sm-chart__dot:focus-visible circle{ stroke:var(--sm-amber); stroke-width:3; }

/* 点が現れるときの間 */
.sm-js .sm-chart__dot{ opacity:0; }
.sm-js .sm-chart.is-drawn .sm-chart__dot{ opacity:1; transition:opacity .4s ease; }
.sm-js .sm-chart.is-drawn .sm-chart__dot.is-dim{ opacity:.16; }
@media (prefers-reduced-motion:reduce){
  .sm-js .sm-chart__dot{ opacity:1; }
}

.sm-chart__tip{
  position:absolute;
  z-index:5;
  min-width:170px;
  padding:11px 13px;
  border-radius:6px;
  background:#12294D;
  color:#E8EEF7;
  box-shadow:0 10px 26px -12px rgba(0,0,0,.6);
  pointer-events:none;
  transform:translate(-50%, -100%);
}
.sm-chart__tip b{
  display:block;
  font-family:var(--sm-f-display);
  font-size:13px;
  color:var(--sm-white);
  margin-bottom:6px;
}
.sm-chart__tip span{
  display:flex;
  justify-content:space-between;
  gap:12px;
  font-size:11.5px;
  color:#A9BBD5;
  font-family:var(--sm-f-mono);
}
.sm-chart__tip span i{ font-style:normal; color:#F4B740; }

/* タッチ端末で「次に何をすればよいか」を添える。
   1回目のタップでは移動しないので、そのことが伝わらないと迷う。 */
.sm-chart__tiphint{
  display:block;
  margin-top:7px;
  padding-top:7px;
  border-top:1px solid rgba(255,255,255,.18);
  font-size:11px;
  color:#9FB3D0;
}

/* JSが動くときは、下の素のテーブルは隠す */
.sm-chart__table{ margin-top:18px; }
.sm-js .sm-chart__table{ display:none; }

@media screen and (max-width:834px){
  .sm-chart{ padding:14px 12px 10px; }
  .sm-chart__dot circle{ r:13; stroke-width:2.5; }
  .sm-chart__dot text{ font-size:13px; }
  /* 点を大きくするとラベルが点の内側に入るので、その分だけ外へ逃がす */
  .sm-chart__dot text[text-anchor="start"]{ transform:translateX(6px); }
  .sm-chart__dot text[text-anchor="end"]{ transform:translateX(-6px); }
}
@media screen and (max-width:600px){
  .sm-chart__dot circle{ r:17; stroke-width:3; }
  .sm-chart__dot text{ font-size:15px; }
  .sm-chart__dot text[text-anchor="start"]{ transform:translateX(8px); }
  .sm-chart__dot text[text-anchor="end"]{ transform:translateX(-8px); }
}

/* --------------------------------------------------------------------------
   5. 新着記事カード
   -------------------------------------------------------------------------- */
.sm-cards{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.sm-card{
  display:block;
  background:var(--sm-white);
  border:1px solid var(--sm-line);
  border-radius:var(--sm-radius);
  overflow:hidden;
  text-decoration:none !important;
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.sm-card:hover{
  transform:translateY(-3px);
  border-color:var(--sm-indigo);
  box-shadow:0 12px 24px -16px rgba(27,58,107,.6);
}
.sm-card__thumb{ display:block; aspect-ratio:16/10; background:var(--sm-sunk); overflow:hidden; }
.sm-card__thumb img{
  width:100%; height:100%;
  object-fit:cover;
  display:block;
  border-radius:0 !important;
  transition:transform .35s ease;
}
.sm-card:hover .sm-card__thumb img{ transform:scale(1.04); }
.sm-card__thumb--empty{
  display:block; width:100%; height:100%;
  background:linear-gradient(135deg,#EFEDE7,#E4E1D9);
}
.sm-card__body{ display:block; padding:13px 14px 15px; }
.sm-card__title{
  display:block;
  font-family:var(--sm-f-display);
  font-size:13.5px;
  font-weight:700;
  line-height:1.55;
  color:var(--sm-ink);
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.sm-card__date{
  display:block;
  margin-top:9px;
  font-family:var(--sm-f-mono);
  font-size:10.5px;
  color:#9A958C;
}

.sm-rankcard__thumb--empty{
  display:block;
  width:100%;
  aspect-ratio:16/10;
  border-radius:4px;
  background:linear-gradient(135deg,#EFEDE7,#E4E1D9);
}

@media screen and (max-width:834px){
  .sm-cards{ grid-template-columns:1fr 1fr; gap:12px; }
}

/* --------------------------------------------------------------------------
   6. トップページでは記事用のパーツを出さない
   the_content を差し替えている都合で、Cocoon が記事ページ向けに出している
   パーツ（SNSシェア・投稿日・パンくず・著者情報）がトップにも並んでしまう。
   トップページに要らないものはここで止める。
   -------------------------------------------------------------------------- */
.home .article-header,
.home .date-tags,
.home .entry-title,
.home .eye-catch-wrap,
.home .sns-share,
.home .sns-share-message,
.home .sns-follow,
.home .sns-follow-message,
.home .breadcrumb,
.home .author-info,
.home .author-box,
.home .entry-categories-tags,
.home .footer-meta,
.home .page-navi,
.home .comment-area,
.home .related-entries{
  display:none !important;
}

/* 本文まわりの余白も、記事ページ用の値ではなくトップ用にする */
.home .article{
  border:0 !important;
  padding:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}
.home .entry-content{ margin-top:0 !important; }

/* --------------------------------------------------------------------------
   7. 通信講座の比較
   価格を載せない代わりに、判断の軸を先に示す構成にしている。
   -------------------------------------------------------------------------- */
.sm-course{
  background:var(--sm-white);
  border:1px solid var(--sm-line);
  border-radius:var(--sm-radius);
  padding:24px 26px;
}
.sm-course__lead p{
  margin:0 0 12px !important;
  font-size:14px;
  line-height:1.9;
  color:var(--sm-ink-soft) !important;
}
.sm-course__lead p:last-child{ margin-bottom:0 !important; }

/* 選ぶときの3つの軸 */
.sm-course__axes{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
  margin:20px 0 24px;
}
.sm-course__axis{
  position:relative;
  background:#FAFAF7;
  border:1px solid var(--sm-line);
  border-radius:var(--sm-radius);
  padding:16px 16px 15px;
}
.sm-course__axisno{
  display:block;
  font-family:var(--sm-f-mono);
  font-size:11px;
  color:var(--sm-amber);
  letter-spacing:.1em;
  margin-bottom:7px;
}
.sm-course__axis b{
  display:block;
  font-family:var(--sm-f-display);
  font-size:14.5px;
  color:var(--sm-ink);
  margin-bottom:6px;
}
.sm-course__axis span:not(.sm-course__axisno){
  display:block;
  font-size:12.5px;
  line-height:1.75;
  color:var(--sm-slate);
}

/* 比較表 */
/* 列幅は指定する。auto に任せると、文字数の多い列が幅を奪って
   "サポート" が1文字ずつ折り返される。 */
.sm-table--course{ table-layout:fixed; min-width:860px; font-size:13.5px; }
.sm-table--course th{ white-space:nowrap; }
.sm-table--course th:nth-child(1), .sm-table--course td:nth-child(1){ width:15.5%; }
.sm-table--course th:nth-child(2), .sm-table--course td:nth-child(2){ width:16%; }
.sm-table--course th:nth-child(3), .sm-table--course td:nth-child(3){ width:24%; }
.sm-table--course th:nth-child(4), .sm-table--course td:nth-child(4){ width:17.5%; }
.sm-table--course th:nth-child(5), .sm-table--course td:nth-child(5){ width:15%; }
.sm-table--course th:nth-child(6), .sm-table--course td:nth-child(6){ width:12%; text-align:center; }
.sm-table--course td{ vertical-align:top; line-height:1.7; }
.sm-table--course td b{
  font-family:var(--sm-f-display);
  font-size:14.5px;
  color:var(--sm-ink);
}
.sm-course__band{
  display:inline-block;
  margin-top:4px;
  font-size:11px;
  color:var(--sm-slate);
}
.sm-table--course .sm-btn{
  display:inline-block;
  white-space:nowrap;
  background:var(--sm-amber);
  color:var(--sm-white) !important;
  font-family:var(--sm-f-display);
  font-weight:700;
  font-size:12.5px;
  padding:8px 14px;
  border-radius:5px;
  text-decoration:none !important;
  white-space:nowrap;
  box-shadow:0 2px 0 var(--sm-amber-dark);
}
.sm-table--course .sm-btn:hover{ background:#E89A15; }

/* 申し込む前に確認したいこと */
.sm-course__note{
  margin-top:20px;
  padding:16px 18px;
  background:var(--sm-indigo-tint);
  border-radius:var(--sm-radius);
}
.sm-course__note b{
  display:block;
  font-family:var(--sm-f-display);
  font-size:13.5px;
  color:var(--sm-indigo);
  margin-bottom:8px;
}
.sm-course__note p{
  margin:0 0 8px !important;
  font-size:13px;
  line-height:1.85;
  color:var(--sm-ink-soft) !important;
}
.sm-course__note p:last-child{ margin-bottom:0 !important; }
.sm-course__note a{ font-weight:700; color:var(--sm-indigo); }

@media screen and (max-width:834px){
  .sm-course{ padding:18px 16px; }
  .sm-course__axes{ grid-template-columns:1fr; gap:10px; }
}

/* --------------------------------------------------------------------------
   7-3. 書影の帯（横に流れる）
   ヒーロー直下の「目的から探す」の次に置く。
   ここは読ませる場所ではなく、「独学でも行ける」と一目で伝える場所。
   画面幅いっぱいに広げて、端で切れて見えるようにしている。
   -------------------------------------------------------------------------- */
.sm-mq{
  box-sizing:border-box;
  width:100vw;
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);
  margin-top:44px;
  padding:26px 0 28px;
  background:var(--sm-sunk);
  border-top:1px solid var(--sm-line);
  border-bottom:1px solid var(--sm-line);
  overflow:hidden;
}
.sm-mq__head{
  max-width:var(--sm-wrap);
  margin:0 auto 18px;
  padding:0 24px;
}
.sm-mq__head b{
  display:block;
  font-family:var(--sm-f-display);
  font-size:16px;
  color:var(--sm-ink);
  margin-bottom:5px;
}
.sm-mq__head span{
  display:block;
  font-size:12.5px;
  line-height:1.8;
  color:var(--sm-slate);
}

/* 左右の端をぼかして、帯の外へ流れ出ていくように見せる */
.sm-mq__viewport{
  position:relative;
  overflow:hidden;
  -webkit-mask-image:linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image:linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}

.sm-mq__track{
  display:flex;
  width:max-content;
  gap:18px;
  padding:2px 0 4px;
  animation:sm-mq-scroll 70s linear infinite;
}
/* 2周ぶん並べてあるので、半分まで動かしたら先頭に戻ると継ぎ目が出ない */
@keyframes sm-mq-scroll{
  from{ transform:translate3d(0, 0, 0); }
  to  { transform:translate3d(-50%, 0, 0); }
}
/* 見たい表紙の上で止められる */
.sm-mq__viewport:hover .sm-mq__track,
.sm-mq__viewport:focus-within .sm-mq__track{
  animation-play-state:paused;
}

.sm-mq__item{
  flex:0 0 auto;
  width:96px;
  text-decoration:none !important;
  text-align:center;
  transition:transform .25s cubic-bezier(.22,.61,.36,1);
}
.sm-mq__item:hover{ transform:translateY(-4px); }

.sm-mq__thumb{
  display:block;
  line-height:0;
  margin-bottom:7px;
}
.sm-mq__thumb img{
  width:96px;
  height:auto;
  border:1px solid var(--sm-line);
  border-radius:3px;
  background:var(--sm-white);
  box-shadow:0 2px 6px rgba(22,32,46,.10);
}
.sm-mq__cert{
  display:block;
  font-size:11px;
  line-height:1.5;
  color:var(--sm-slate);
}

/* 動きが苦手な人には止めて見せる（横スクロールで自分で動かせる） */
@media (prefers-reduced-motion:reduce){
  .sm-mq__viewport{ overflow-x:auto; }
  .sm-mq__track{ animation:none; }
}

@media screen and (max-width:834px){
  .sm-mq{ margin-top:32px; padding:20px 0 22px; }
  .sm-mq__head{ padding:0 16px; margin-bottom:14px; }
  .sm-mq__head b{ font-size:15px; }
  .sm-mq__track{ gap:13px; animation-duration:52s; }
  .sm-mq__item, .sm-mq__thumb img{ width:76px; }
}

/* --------------------------------------------------------------------------
   7-4. 資格診断（ステップ形式）
   散布図があった場所。数字を眺めさせるより、答えさせて絞るほうが
   「何を取ればいいか分からない」人には届く。
   1画面1問。答えるたびに画面ごと入れ替える。
   -------------------------------------------------------------------------- */
.sm-dx{
  position:relative;
  background:linear-gradient(168deg, #17325C 0%, #12294D 55%, #0E2140 100%);
  border-radius:var(--sm-radius);
  padding:34px 30px 32px;
  color:#EAF0FA;
  overflow:hidden;
}
/* 右上にうっすら光を置いて、平らな紺一色にしない */
.sm-dx::before{
  content:"";
  position:absolute;
  top:-120px; right:-90px;
  width:320px; height:320px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(217,138,11,.20) 0%, transparent 70%);
  pointer-events:none;
}

.sm-dx__stage{ position:relative; min-height:330px; }

.sm-dx__panel{
  opacity:0;
  transform:translateY(10px);
  transition:opacity .32s cubic-bezier(.22,.61,.36,1), transform .32s cubic-bezier(.22,.61,.36,1);
}
.sm-dx__panel.is-in{ opacity:1; transform:none; }
.sm-dx__panel.is-out{
  position:absolute; inset:0;
  opacity:0;
  transform:translateY(-10px);
  pointer-events:none;
}

/* ---- 見出しまわり ---- */
.sm-dx__eyebrow{
  display:inline-block;
  font-family:var(--sm-f-mono);
  font-size:11px;
  letter-spacing:.12em;
  color:#E8A93A;
  border:1px solid rgba(232,169,58,.55);
  border-radius:999px;
  padding:4px 11px;
  margin-bottom:14px;
}
.sm-dx__title{
  font-family:var(--sm-f-display);
  font-size:clamp(19px, 2.4vw, 25px) !important;
  line-height:1.5;
  color:#FFF !important;
  margin:0 0 10px !important;
  padding:0 !important;
  border:none !important;
}
.sm-dx__title::before, .sm-dx__title::after{ display:none !important; }

.sm-dx__lead{
  font-size:13.5px;
  line-height:1.9;
  color:#B9C7DE !important;
  margin:0 0 22px !important;
  max-width:560px;
}

/* ---- 開始ボタン ---- */
.sm-dx__intro{ padding:14px 0 8px; }
.sm-dx__start{
  font-family:var(--sm-f-display);
  font-weight:700;
  font-size:15px;
  color:#0E2140;
  background:var(--sm-amber);
  border:none;
  border-radius:7px;
  padding:14px 34px;
  cursor:pointer;
  box-shadow:0 3px 0 var(--sm-amber-dark);
  transition:transform .16s ease, background .16s ease;
}
.sm-dx__start:hover{ background:#E89A15; transform:translateY(-2px); }
.sm-dx__start:active{ transform:translateY(1px); box-shadow:0 1px 0 var(--sm-amber-dark); }

/* ---- 進捗 ---- */
.sm-dx__prog{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:20px;
}
.sm-dx__dots{ display:flex; gap:7px; }
.sm-dx__dots i{
  width:26px; height:4px;
  border-radius:2px;
  background:rgba(255,255,255,.18);
  transition:background .3s ease;
}
.sm-dx__dots i.is-done{ background:var(--sm-amber); }
.sm-dx__dots i.is-now{ background:#FFF; }
.sm-dx__count{
  font-family:var(--sm-f-mono);
  font-size:12px;
  color:#FFF;
}
.sm-dx__count i{ font-style:normal; color:#93A5C2; }

/* ---- 質問 ---- */
/* 質問はh3で出しているので、テーマ側の .entry-content h3
   （墨色・下線・16.5px）に負ける。ここで全部打ち消す。 */
.sm-dx__q{
  font-family:var(--sm-f-display) !important;
  font-size:clamp(18px, 2.2vw, 23px) !important;
  line-height:1.5 !important;
  color:#FFF !important;
  margin:0 0 6px !important;
  padding:0 !important;
  border:none !important;
  background:none !important;
}
.sm-dx__q::before, .sm-dx__q::after{ display:none !important; }
.sm-dx__qlead{
  font-size:12.5px;
  color:#93A5C2 !important;
  margin:0 0 20px !important;
}

/* ---- 選択肢 ---- */
.sm-dx__opts{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:11px;
}
.sm-dx__opts.is-3col{ grid-template-columns:repeat(3, 1fr); }

.sm-dx__opt{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:3px;
  text-align:left;
  font-family:var(--sm-f-body);
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.16);
  border-radius:9px;
  padding:15px 16px;
  color:#EAF0FA;
  cursor:pointer;
  transition:background .18s ease, border-color .18s ease, transform .18s ease;
}
.sm-dx__opt:hover{
  background:rgba(255,255,255,.12);
  border-color:var(--sm-amber);
  transform:translateY(-2px);
}
.sm-dx__opt.is-picked{
  background:var(--sm-amber);
  border-color:var(--sm-amber);
  color:#0E2140;
  transform:translateY(-2px);
}
.sm-dx__optic{ display:block; color:#E8A93A; margin-bottom:4px; }
.sm-dx__opt.is-picked .sm-dx__optic{ color:#0E2140; }
.sm-dx__icon{ width:24px; height:24px; display:block; }

.sm-dx__optlabel{
  font-family:var(--sm-f-display);
  font-size:14.5px;
  line-height:1.45;
}
.sm-dx__optsub{
  font-size:11.5px;
  color:#93A5C2;
  line-height:1.5;
}
.sm-dx__opt.is-picked .sm-dx__optsub{ color:#2A1B02; }

/* 時間・期間のように短い語は大きく見せる */
.sm-dx__opts.is-big .sm-dx__optlabel{
  font-size:clamp(20px, 2.6vw, 26px);
  line-height:1.25;
}
.sm-dx__opts.is-big .sm-dx__opt{ padding:18px 16px; }

.sm-dx__back{
  margin-top:16px;
  font-family:var(--sm-f-body);
  font-size:12.5px;
  color:#93A5C2;
  background:none;
  border:none;
  padding:2px 0;
  cursor:pointer;
}
.sm-dx__back:hover{ color:#FFF; }

/* ---- 集計中 ---- */
.sm-dx__panel--crunch{
  min-height:300px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.sm-dx__crunch{ text-align:center; }
.sm-dx__crunch p{
  font-size:13.5px;
  color:#B9C7DE !important;
  margin:16px 0 0 !important;
}
.sm-dx__spin{
  display:inline-block;
  width:38px; height:38px;
  border:3px solid rgba(255,255,255,.16);
  border-top-color:var(--sm-amber);
  border-radius:50%;
  animation:sm-dx-spin .8s linear infinite;
}
@keyframes sm-dx-spin{ to{ transform:rotate(360deg); } }

/* ---- 結果（表彰台） ---- */
.sm-dx__resulthead{ margin-bottom:20px; }

.sm-dx__podium{
  display:grid;
  grid-template-columns:1fr 1.22fr 1fr;
  align-items:end;
  gap:12px;
}
.sm-dx__win{
  display:block;
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.16);
  border-radius:10px;
  padding:16px 15px 15px;
  text-decoration:none !important;
  color:#EAF0FA !important;
  transition:transform .2s ease, border-color .2s ease, background .2s ease;
}
.sm-dx__win:hover{
  transform:translateY(-3px);
  border-color:var(--sm-amber);
  background:rgba(255,255,255,.11);
}
/* 表彰台は 2位・1位・3位 の順に置いてある */
.sm-dx__win--1{
  order:2;
  background:rgba(255,255,255,.13);
  border-color:rgba(217,138,11,.55);
  padding:22px 18px 20px;
}
.sm-dx__win--2{ order:1; }
.sm-dx__win--3{ order:3; }

.sm-dx__medal{
  display:inline-flex;
  align-items:center; justify-content:center;
  width:24px; height:24px;
  border-radius:50%;
  font-family:var(--sm-f-display);
  font-size:12.5px;
  color:#0E2140;
  background:#8FA3C2;
  margin-bottom:9px;
}
.sm-dx__win--1 .sm-dx__medal{
  width:30px; height:30px;
  font-size:15px;
  background:var(--sm-amber);
}

.sm-dx__wname{
  display:block;
  font-family:var(--sm-f-display);
  font-size:15px;
  line-height:1.45;
  color:#FFF;
  margin-bottom:11px;
}
.sm-dx__win--1 .sm-dx__wname{ font-size:19px; }

.sm-dx__meter{
  display:block;
  height:5px;
  background:rgba(255,255,255,.14);
  border-radius:3px;
  overflow:hidden;
  margin-bottom:5px;
}
.sm-dx__meter i{
  display:block;
  height:100%;
  background:linear-gradient(90deg, #D98A0B, #F0B23F);
  border-radius:3px;
  transition:width 1s cubic-bezier(.22,.61,.36,1);
}
.sm-dx__match{
  display:block;
  font-family:var(--sm-f-mono);
  font-size:11.5px;
  color:#93A5C2;
  margin-bottom:10px;
}
.sm-dx__match b{ font-size:14px; color:#E8A93A; }

.sm-dx__wnums{
  display:flex;
  flex-wrap:wrap;
  gap:2px 12px;
  font-size:11.5px;
  color:#93A5C2;
  margin-bottom:9px;
}
.sm-dx__wnums b{ font-family:var(--sm-f-mono); font-size:12px; color:#FFF; }

.sm-dx__wwhy{
  display:block;
  font-size:12px;
  line-height:1.8;
  color:#B9C7DE;
  margin-bottom:10px;
}
.sm-dx__wlink{
  display:block;
  font-size:12px;
  font-weight:700;
  color:#E8A93A;
}

.sm-dx__note{
  margin:18px 0 0 !important;
  font-size:11.5px;
  line-height:1.8;
  color:#93A5C2 !important;
}
.sm-dx__again{
  margin-top:14px;
  font-family:var(--sm-f-body);
  font-size:12.5px;
  color:#93A5C2;
  background:none;
  border:1px solid rgba(255,255,255,.22);
  border-radius:999px;
  padding:8px 18px;
  cursor:pointer;
  transition:border-color .18s ease, color .18s ease;
}
.sm-dx__again:hover{ color:#FFF; border-color:#FFF; }

.sm-dx__nojs{
  font-size:13px;
  color:var(--sm-ink-soft) !important;
  line-height:1.9;
}

@media (prefers-reduced-motion:reduce){
  .sm-dx__panel, .sm-dx__meter i, .sm-dx__opt, .sm-dx__win{ transition:none; }
  .sm-dx__spin{ animation:none; }
}

@media screen and (max-width:834px){
  .sm-dx{ padding:24px 18px 22px; }
  .sm-dx__stage{ min-height:400px; }
  .sm-dx__opts{ gap:9px; }
  .sm-dx__opts.is-3col{ grid-template-columns:repeat(2, 1fr); }
  .sm-dx__opt{ padding:13px 13px; }
  .sm-dx__optlabel{ font-size:13.5px; }
  /* 表彰台はスマホでは縦に。1位を先頭へ持ってくる。 */
  .sm-dx__podium{ grid-template-columns:1fr; align-items:stretch; }
  .sm-dx__win--1{ order:1; }
  .sm-dx__win--2{ order:2; }
  .sm-dx__win--3{ order:3; }
  .sm-dx__win--1 .sm-dx__wname{ font-size:17px; }
}

/* --------------------------------------------------------------------------
   8. つまずいたときに読む（2026-08-27 改修）
   濃紺一色だと、悩んでいる人にはかえって硬く見える。
   写真を並べて面積を分け、机の温度が伝わるようにした。
   -------------------------------------------------------------------------- */
.sm-hub__inner{
  display:grid;
  grid-template-columns:minmax(0,250px) minmax(0,1fr);
  gap:32px;
  align-items:center;
}
.sm-hub__visual{ position:relative; }
.sm-hub__img{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:3/4;
  object-fit:cover;
  border-radius:10px;
  /* 濃紺の面に置くので、写真だけが浮かないよう少し落ち着かせる */
  filter:saturate(.92) brightness(.97);
}
.sm-hub__caption{
  margin:12px 2px 0 !important;
  font-size:12.5px;
  color:#A9BBD5;
  line-height:1.7;
}
.sm-hub__body h2{ margin-top:0; }
/* リード文をカードと同じ幅にそろえる。ここがずれていると落ち着かない */
.sm-hub__body > p{ margin-bottom:22px !important; }
/* カードの面をわずかに起こして、暗さで沈まないようにする */
.sm-hub .sm-goal{ background:rgba(255,255,255,.09); border-radius:10px; }
.sm-hub .sm-goal:hover{ background:rgba(255,255,255,.15); }
/* カードはひとまわり大きく、余白も広めに。詰まって見えると急かされている感じになる */
.sm-hub .sm-goal{ padding:18px 18px 20px; transition:background .18s ease, transform .18s ease; }
.sm-hub .sm-goal:hover{ transform:translateY(-2px); }
@media screen and (max-width:834px){
  .sm-hub__inner{ grid-template-columns:1fr; gap:20px; }
  .sm-hub__img{ aspect-ratio:16/9; }
  .sm-hub__caption{ margin-top:9px !important; }
}

/* --------------------------------------------------------------------------
   写真（2026-09-24〜）
   写真のなかったセクションに、ヒーローと同じ「夜の勉強机」の温度の写真を足す。
   画像は assets/top/ 、出典は assets/top/_sources.json。
   -------------------------------------------------------------------------- */

/* セクション見出しの右に置く写真 */
.sm-sec__head:has(.sm-sec__photo){ align-items:center; }
.sm-sec__photo{
  position:relative;
  flex:0 0 auto;
  width:clamp(220px, 26vw, 300px);
  margin:0 !important;
}
.sm-sec__photo::before{
  content:"";
  position:absolute;
  inset:10px -10px -10px 10px;
  border:1px solid rgba(181,114,10,.45);
  border-radius:16px;
  pointer-events:none;
}
.sm-sec__photo picture{ display:block; position:relative; }
.sm-sec__photo img{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:16 / 10;
  object-fit:cover;
  border-radius:14px;
  box-shadow:0 22px 40px -28px rgba(20,37,74,.55);
}

/* 通信講座の3つの軸：カードの上に写真 */
.sm-course__axis{ overflow:hidden; }
.sm-course__axis .sm-course__axisphoto{
  display:block;
  margin:-16px -16px 14px;
}
.sm-course__axisphoto picture{ display:block; }
.sm-course__axisphoto img{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:16 / 9;
  object-fit:cover;
}

/* コンセプト：写真を左に、アーチ型で */
.sm-concept--photo{
  display:grid;
  grid-template-columns:minmax(0, 260px) minmax(0, 1fr);
  gap:clamp(24px, 4vw, 44px);
  align-items:center;
  padding:26px 30px 26px 26px;
}
.sm-concept__photo{ margin:0 !important; }
.sm-concept__photo picture{ display:block; }
.sm-concept__photo img{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:4 / 5;
  object-fit:cover;
  border-radius:999px 999px 16px 16px;
  box-shadow:0 26px 48px -30px rgba(20,37,74,.6);
}

@media screen and (max-width:834px){
  .sm-sec__head:has(.sm-sec__photo){ flex-direction:column; align-items:stretch; }
  .sm-sec__photo{ width:auto; margin:4px 10px 8px 0 !important; }
  .sm-sec__photo img{ aspect-ratio:21 / 9; }
  .sm-concept--photo{ grid-template-columns:1fr; padding:18px 18px 22px; }
  .sm-concept__photo{ width:62%; margin:0 auto !important; }
}

/* 「つまずいたときに読む」のリード文が本文色（濃い灰）のままで、濃紺の上で読めなかった */
.entry-content .sm-hub__body > p{ color:#C3D1E6 !important; }
.entry-content .sm-hub__caption{ color:#A9BBD5 !important; }


/* --------------------------------------------------------------------------
   デザイン監査の修正（2026-09-24）
   -------------------------------------------------------------------------- */
/* 補足文字のコントラスト */
.sm-hero__pr{ font-size:12px !important; color:#6B6558 !important; }
.sm-hero--editorial .sm-hero__caption{ font-size:11px; color:#6B6558; }
.sm-goal__no{ color:#9C6207 !important; }
.sm-card__date{ font-size:11.5px !important; color:#6B6558 !important; }
.sm-sim__scale i{ font-size:11px; color:#6B6558; }
.sm-rankcard__no{ color:#9A968C; }

/* スマホの「注目されている資格」：合格率・学習時間のバーまで消えていて、カードが空いていた */
@media screen and (max-width:834px){
  .sm-rankcard .sm-rankcard__stats{
    display:block;
    grid-column:2 / -1;
    margin-top:-4px;
  }
  /* 診断ブロックの下に 150px ほどの空いた帯ができていた */
  .sm-dx__stage{ min-height:0; }
  /* コンセプトの見出しが「学べ／る」で割れていた */
  .sm-concept h2{ font-size:17px; text-wrap:balance; }
}


/* ==========================================================================
   紙もののブロック（2026-09-24〜）
   箱・細枠・ぼかし影・ピル型ボタンという「どこにでもあるカードUI」をやめ、
   資格の勉強で実際に手にする紙を題材にした。
     逆算の結果 … 方眼ノート。月のマスはマークシートの楕円を塗る
     資格診断   … 答案用紙。選択肢はマークシートの番号を塗る
     つまずいたとき … 参考書の付箋（インデックス）
   ========================================================================== */
:root{
  --sm-sheet-ink:#1D222C;
  --sm-sheet-sub:#555A64;
  --sm-sheet-mute:#6E6A60;
  --sm-sheet-rule:rgba(29,34,44,.16);
  --sm-sheet-grid:rgba(74,120,176,.13);
  --sm-sheet-mark:#C8B89A;
}

/* ---------- 逆算の結果：方眼ノート ---------- */
.sm-sim__result{
  background-color:#FFFEFA;
  background-image:
    linear-gradient(var(--sm-sheet-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--sm-sheet-grid) 1px, transparent 1px);
  background-size:16px 16px;
  background-position:-1px -1px;
  border:0;
  border-top:2px solid var(--sm-sheet-ink);
  border-bottom:1px solid var(--sm-sheet-rule);
  border-radius:0;
  color:var(--sm-sheet-ink);
  padding:22px 22px 20px;
}
.sm-sim__num{
  font-family:"Shippori Mincho B1","Yu Mincho","Hiragino Mincho ProN",serif;
  font-weight:800;
  font-size:60px;
  color:var(--sm-sheet-ink);
}
.sm-sim__unit{ color:var(--sm-sheet-ink); }
.sm-sim__sub{ color:var(--sm-sheet-mute); }
.sm-sim__meta{ color:var(--sm-sheet-sub) !important; }
/* 月＝マークシートの楕円。塗った月だけ鉛筆で塗りつぶす */
.sm-sim__timeline{ gap:6px 5px; }
.sm-sim__month{
  width:11px; height:19px;
  border-radius:50%;
  background:#FFFEFA;
  border:1.5px solid var(--sm-sheet-mark);
}
.sm-sim__month.is-on{ background:var(--sm-sheet-ink); border-color:var(--sm-sheet-ink); }
.sm-sim__month.is-half{
  background:linear-gradient(180deg, #FFFEFA 50%, var(--sm-sheet-ink) 50%);
  border-color:var(--sm-sheet-ink);
}
.sm-sim__link{
  color:var(--sm-sheet-ink) !important;
  border-bottom:2px solid #D98A0B;
}
.sm-sim__link:hover{ border-bottom-color:var(--sm-sheet-ink); }

/* ---------- 資格診断：答案用紙 ---------- */
.sm-dx{
  background:#FFFEFA;
  border:0;
  border-top:4px double var(--sm-sheet-ink);
  border-bottom:1px solid var(--sm-sheet-ink);
  border-radius:0;
  color:var(--sm-sheet-ink);
  padding:28px 4px 30px;
}
.sm-dx::before{ display:none; }
/* 表紙の左上にある受験案内の枠 */
.sm-dx__eyebrow{
  border:1px solid var(--sm-sheet-ink);
  border-radius:0;
  padding:5px 10px;
  color:var(--sm-sheet-ink);
  letter-spacing:.14em;
  background:transparent;
}
.sm-dx__title,
.sm-dx__q{ color:var(--sm-sheet-ink) !important; }
.sm-dx__lead,
.sm-dx__crunch p{ color:var(--sm-sheet-sub) !important; }
.sm-dx__qlead,
.sm-dx__note{ color:var(--sm-sheet-mute) !important; }

/* 角の立った墨のボタン。影はぼかさず、ずらすだけ */
.sm-dx__start{
  color:#fff;
  background:var(--sm-sheet-ink);
  border-radius:0;
  padding:14px 30px;
  box-shadow:4px 4px 0 #D98A0B;
  transition:transform .12s ease, box-shadow .12s ease;
}
.sm-dx__start:hover{ background:var(--sm-sheet-ink); transform:translate(-1px,-1px); box-shadow:5px 5px 0 #D98A0B; }
.sm-dx__start:active{ transform:translate(3px,3px); box-shadow:1px 1px 0 #D98A0B; }

/* はじめの画面：右に写真（図版として、角は立てたまま） */
.sm-dx:has(.sm-dx__intro)::after{
  content:"";
  position:absolute;
  top:28px; right:4px; bottom:30px;
  width:min(36%, 340px);
  background:url("top/shindan-planner.webp") 50% 50% / cover no-repeat;
  border-radius:0;
}
.sm-dx:has(.sm-dx__intro) .sm-dx__stage{ min-height:0; }
.sm-dx:has(.sm-dx__intro) .sm-dx__lead{ max-width:52%; }

/* 進み具合 */
.sm-dx__dots i{ background:var(--sm-sheet-rule); border-radius:0; height:3px; }
.sm-dx__dots i.is-done{ background:var(--sm-sheet-ink); }
.sm-dx__dots i.is-now{ background:#D98A0B; }
.sm-dx__count{ color:var(--sm-sheet-ink); }
.sm-dx__count i{ color:var(--sm-sheet-mute); }

/* 選択肢：マークシート。番号入りの楕円を塗る */
.sm-dx__opts{ counter-reset:sm-mark; gap:0 28px; border-top:1px solid var(--sm-sheet-rule); }
.sm-dx__opt{
  counter-increment:sm-mark;
  display:grid;
  grid-template-columns:22px 1fr;
  grid-template-rows:auto auto;
  column-gap:14px;
  align-items:center;
  background:transparent;
  border:0;
  border-bottom:1px solid var(--sm-sheet-rule);
  border-radius:0;
  padding:14px 4px;
  color:var(--sm-sheet-ink);
  transform:none !important;
}
.sm-dx__opt::before{
  content:counter(sm-mark);
  grid-row:1 / span 2;
  display:flex; align-items:center; justify-content:center;
  width:16px; height:26px;
  border-radius:50%;
  border:1.5px solid var(--sm-sheet-mark);
  font-family:var(--sm-f-mono);
  font-size:10px;
  color:#A08D6B;
  transition:background .15s ease, border-color .15s ease, color .15s ease;
}
.sm-dx__opt:hover{ background:rgba(217,138,11,.06); border-color:var(--sm-sheet-rule); }
.sm-dx__opt:hover::before{ border-color:var(--sm-sheet-ink); color:var(--sm-sheet-ink); }
.sm-dx__opt.is-picked{ background:transparent; color:var(--sm-sheet-ink); border-color:var(--sm-sheet-rule); }
.sm-dx__opt.is-picked::before{ background:var(--sm-sheet-ink); border-color:var(--sm-sheet-ink); color:#fff; }
.sm-dx__optic{ display:none !important; }
.sm-dx__optlabel{ grid-column:2; }
.sm-dx__optsub{ grid-column:2; color:var(--sm-sheet-mute); }
.sm-dx__opt.is-picked .sm-dx__optsub{ color:var(--sm-sheet-mute); }
.sm-dx__opts.is-big .sm-dx__opt{ padding:16px 4px; }
.sm-dx__back{ color:var(--sm-sheet-mute); }
.sm-dx__back:hover{ color:var(--sm-sheet-ink); }
.sm-dx__spin{ border-color:var(--sm-sheet-rule); border-top-color:var(--sm-sheet-ink); }

/* 結果：成績表のように、罫線で区切る */
.sm-dx__podium{ gap:0; border-top:2px solid var(--sm-sheet-ink); }
.sm-dx__win{
  background:transparent;
  border:0;
  border-right:1px solid var(--sm-sheet-rule);
  border-radius:0;
  color:var(--sm-sheet-ink) !important;
  transform:none !important;
}
.sm-dx__win--3{ border-right:0; }
.sm-dx__win:hover{ background:rgba(217,138,11,.06); border-color:var(--sm-sheet-rule); }
.sm-dx__win--1{ background:rgba(217,138,11,.07); border:0; border-right:1px solid var(--sm-sheet-rule); }
.sm-dx__medal{
  width:auto !important; height:auto !important;
  border-radius:0;
  background:none !important;
  color:var(--sm-sheet-ink) !important;
  font-family:"Shippori Mincho B1","Yu Mincho",serif;
  font-size:26px !important;
  line-height:1;
}
.sm-dx__win--1 .sm-dx__medal{ font-size:34px !important; color:#B5720A !important; }
.sm-dx__wname{ color:var(--sm-sheet-ink); }
.sm-dx__meter{ background:var(--sm-sheet-rule); border-radius:0; }
.sm-dx__meter i{ background:var(--sm-sheet-ink); border-radius:0; }
.sm-dx__match,
.sm-dx__wnums{ color:var(--sm-sheet-mute); }
.sm-dx__match b,
.sm-dx__wnums b{ color:var(--sm-sheet-ink); }
.sm-dx__wwhy{ color:var(--sm-sheet-sub); }
.sm-dx__wlink{ color:#9C6207; }
.sm-dx__again{ color:var(--sm-sheet-ink); border:1px solid var(--sm-sheet-ink); border-radius:0; }
.sm-dx__again:hover{ color:#fff; background:var(--sm-sheet-ink); }

/* ---------- つまずいたときに読む：参考書の付箋 ---------- */
.sm-hub{
  background:transparent;
  border:0;
  border-top:2px solid var(--sm-sheet-ink);
  border-bottom:1px solid var(--sm-sheet-rule);
  border-radius:0;
  color:var(--sm-sheet-ink);
  padding:30px 0;
}
.entry-content .sm-hub.sm-hub h2,
.entry-content .sm-hub .sm-hub__body h2{ color:var(--sm-sheet-ink) !important; }
.entry-content .sm-hub .sm-hub__body > p{ color:var(--sm-sheet-sub) !important; }
.entry-content .sm-hub .sm-hub__caption{ color:var(--sm-sheet-mute) !important; font-size:12px; }
.sm-hub .sm-hub__img{ filter:none; border-radius:0 !important; }

.sm-hub .sm-goals{
  display:flex;
  flex-direction:column;
  gap:0;
  margin-right:14px;
  border-top:1px solid var(--sm-sheet-rule);
}
.sm-hub .sm-goal{
  position:relative;
  display:grid;
  grid-template-columns:6em minmax(0,11em) 1fr;
  align-items:baseline;
  gap:12px;
  padding:15px 16px 15px 0;
  background:transparent;
  border:0;
  border-bottom:1px solid var(--sm-sheet-rule);
  border-radius:0;
  transform:none !important;
}
/* 右端からはみ出す付箋。色は付箋の定番4色を落ち着かせたもの */
.sm-hub .sm-goal::after{
  content:"";
  position:absolute;
  top:10px; bottom:10px; right:-14px;
  width:14px;
  background:var(--sm-tab, #E9C46A);
  transition:right .15s ease;
}
.sm-hub .sm-goal:nth-child(1){ --sm-tab:#E9C46A; }
.sm-hub .sm-goal:nth-child(2){ --sm-tab:#9CC5A1; }
.sm-hub .sm-goal:nth-child(3){ --sm-tab:#E8A0A0; }
.sm-hub .sm-goal:nth-child(4){ --sm-tab:#9DB8DA; }
.sm-hub .sm-goal:hover{ background:rgba(217,138,11,.05); }
.sm-hub .sm-goal:hover::after{ right:-18px; }
.sm-hub .sm-goal__no{ color:var(--sm-sheet-mute) !important; margin:0; letter-spacing:.14em; }
.sm-hub .sm-goal__name{ color:var(--sm-sheet-ink); font-size:16px; }
.sm-hub .sm-goal__desc{ color:var(--sm-sheet-sub); margin:0; }

@media screen and (max-width:834px){
  .sm-dx{ padding:22px 0 24px; }
  .sm-dx:has(.sm-dx__intro)::after{
    position:relative; top:auto; right:auto; bottom:auto;
    display:block; width:auto; height:170px;
    margin-top:26px;
  }
  .sm-dx:has(.sm-dx__intro) .sm-dx__lead{ max-width:none; }
  .sm-dx__opts{ gap:0; }
  .sm-dx__win{ border-right:0; border-bottom:1px solid var(--sm-sheet-rule); }
  .sm-hub{ padding:22px 0; }
  .sm-hub .sm-goal{ grid-template-columns:5em 1fr; }
  .sm-hub .sm-goal__desc{ grid-column:2; margin-top:-6px; }
  .sm-sim__result{ padding:18px 16px; }
  .sm-sim__num{ font-size:48px; }
}
@media (prefers-reduced-motion:reduce){
  .sm-dx__start, .sm-dx__opt::before, .sm-hub .sm-goal::after{ transition:none; }
}
