@charset "UTF-8";
/* ============================================================
   main-plan 下層ページ用 CSS（構成案モック専用）
   service-pop.css（v4 マガジン調）を継承し、下層ページの
   部品だけを追加：page-hero / steps / plan-grid / cost-card /
   legal-grid / quick-bar / carousel 等
   ※ 共有ファイルには手を入れない（仕訳ルール）
   ============================================================ */
/* enqueued directly */

/* 横スクロール防止：head-doodle の右端はみ出し対策。軸単位 clip なので
   overflow-y は visible のまま＝doodle の上はみ出しは維持。scroll container を
   作らず sticky も無傷。root/body だと viewport 伝播で効かないため .section に適用 */
.section { overflow-x: clip; }

/* ============ サブページ用ヒーロー（写真なし・タイポ主導） ============ */
.page-hero {
  position: relative; overflow: hidden;
  padding: 72px 0 60px;
  border-bottom: 3px solid var(--bd-ink);
  background: linear-gradient(120deg, #FFF7ED 0%, #FFFDF7 55%, #F0F9FF 100%);
}
/* パンくず：チップ型・右寄せ（左上のはみ出しロゴと重ならない位置） */
.breadcrumb { display: flex; justify-content: flex-end; align-items: center; gap: 9px; margin: 0 0 18px; }
.breadcrumb a, .breadcrumb .here {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 2px solid var(--bd-ink); border-radius: 999px;
  padding: 4px 13px; font-size: 0.78rem; font-weight: 700; color: var(--ink-900);
  box-shadow: 2px 2px 0 var(--bd-ink); white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.breadcrumb a:hover { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--bd-ink); color: var(--orange-600); }
.breadcrumb .here { background: var(--amber-200); transform: rotate(1.5deg); }
.breadcrumb .sep { font-weight: 700; color: var(--ink-500); }
.page-hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.45;
  font-weight: 700; color: var(--ink-900); margin: 22px 0 18px;
}
.page-hero h1 .accent { color: var(--orange-600); background: linear-gradient(transparent 55%, var(--amber-200) 55%); padding: 0 4px; }
.page-hero .lead { font-size: 1.1rem; max-width: 720px; }
.page-hero .hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-chips { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.hero-chips .chip {
  border: 3px solid var(--bd-ink); background: #fff; border-radius: 999px;
  padding: 5px 15px; font-size: 0.82rem; font-weight: 700; color: var(--ink-900);
  box-shadow: var(--hard-sm);
}
.page-hero .deco {
  position: absolute; border-radius: 50%; z-index: 0; pointer-events: none;
  border: 28px solid rgba(255,255,255,0.6);
}
.page-hero .deco.a { width: 220px; height: 220px; top: -70px; right: -40px; }
.page-hero .deco.b { width: 150px; height: 150px; bottom: -60px; left: 4%; border-color: var(--sky-100); }
.page-hero .container { position: relative; z-index: 1; }

/* ============ 枝ページ用スリムヒーロー（格下：写真なし・コンパクト・タイポ主導） ============
   コアサービス（visa/esim/seminar）は写真ヒーロー維持。それ以外の下層ページは
   .page-hero.slim にして「枝ページ」であることを一目でわかるように格差をつける。 */
.page-hero.slim {
  padding: 48px 0 44px;
  background:
    radial-gradient(circle at 16% 20%, rgba(249,115,22,0.10), transparent 40%),
    radial-gradient(circle at 86% 82%, rgba(56,189,248,0.13), transparent 44%),
    radial-gradient(rgba(69,54,43,0.05) 1.4px, transparent 1.5px) 0 0 / 22px 22px,
    linear-gradient(120deg, #FFF9F0 0%, #FFFDFB 58%, #F4FAFF 100%);
}
.page-hero.slim .deco { display: none; }
/* 枝ページは中央寄せ（ユーザー指示 2026-07-04） */
.page-hero.slim .ph-slim { max-width: 720px; margin: 0 auto; text-align: center; }
.page-hero.slim .breadcrumb { justify-content: center; }
.page-hero.slim h1 { font-size: clamp(1.9rem, 3.6vw, 2.5rem); line-height: 1.3; margin: 12px auto 8px; }
/* キャッチコピー＝タイトル下のタグライン（ページ名を h1 に譲った分、ここで訴求） */
.page-hero.slim .hero-tagline {
  font-size: clamp(1.05rem, 1.9vw, 1.32rem); font-weight: 700; line-height: 1.55;
  color: var(--ink-800, #43382d); max-width: 600px; margin: 0 auto 14px;
}
.page-hero.slim .hero-tagline .accent { color: var(--orange-600); background: linear-gradient(transparent 55%, var(--amber-200) 55%); padding: 0 3px; }
.page-hero.slim .lead { font-size: 1rem; max-width: 620px; margin-left: auto; margin-right: auto; }
.page-hero.slim .hero-actions { margin-top: 24px; gap: 12px; justify-content: center; }
.page-hero.slim .hero-chips { margin-top: 18px; justify-content: center; }
.page-hero.slim .hero-chips .chip { border-width: 2px; padding: 4px 12px; font-size: 0.78rem; box-shadow: 2px 2px 0 var(--bd-ink); }
/* 見出し下の手描き風フローリッシュ（波線） */
.page-hero.slim h1::after {
  content: ""; display: block; width: 112px; height: 11px; margin: 15px auto 0; opacity: 0.85;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='12' viewBox='0 0 120 12'%3E%3Cpath d='M3 7 Q13 1 23 7 T43 7 T63 7 T83 7 T103 7 T117 6' fill='none' stroke='%23F97316' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
}
/* エディトリアル調キッカー（大・中央・水平／ラベルではない）：両サイドのカラー罫＋トラッキング小キャップ */
.page-hero.slim .slim-kicker {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin: 34px auto 30px; white-space: nowrap;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.1rem, 2.8vw, 1.9rem);
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-800, #43382d);
}
.page-hero.slim .slim-kicker::before,
.page-hero.slim .slim-kicker::after {
  content: ""; flex: none; width: clamp(22px, 6vw, 54px); height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--orange-500, #F97316), var(--amber-400, #FBBF24));
}
.page-hero.slim .slim-kicker .k-emoji { font-size: 1.2em; letter-spacing: 0; }

/* ---- ヒーロー 2 カラム（右側ビジュアル） ---- */
.ph-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 56px; align-items: center; margin-top: 6px; }
.hero-visual { position: relative; }
.hero-visual > img.photo {
  width: 100%; height: 360px; object-fit: cover;
  border: 3px solid var(--bd-ink); border-radius: 20px;
  box-shadow: 10px 10px 0 var(--amber-200);
  transform: rotate(1.5deg);
}
.hero-visual.sky > img.photo { box-shadow: 10px 10px 0 var(--sky-100); }
.hero-visual.pink > img.photo { box-shadow: 10px 10px 0 var(--pink-100); }
.hero-visual.emerald > img.photo { box-shadow: 10px 10px 0 var(--emerald-100); }
.hero-visual .mascot {
  position: absolute; top: -42px; right: 16px; width: 90px; height: 90px;
  transform: rotate(8deg);
  filter: drop-shadow(4px 5px 0 rgba(28,25,23,0.18));
}
.hero-float {
  position: absolute; left: -20px; bottom: 24px;
  display: flex; gap: 16px; align-items: center;
  background: #fff; border: 3px solid var(--bd-ink); border-radius: 16px;
  box-shadow: 5px 5px 0 var(--bd-ink);
  padding: 16px 20px; transform: rotate(-2deg);
  transition: transform 0.2s ease;
}
.hero-float:hover { transform: rotate(0deg); }
.hero-float .hf-big {
  font-family: var(--font-display); font-weight: 700; font-size: 1.6rem;
  color: var(--orange-600); line-height: 1.1; white-space: nowrap; flex: none; text-align: center;
}
.hero-float .hf-big small { display: block; font-size: 0.64rem; letter-spacing: 0.14em; color: var(--ink-500); font-weight: 700; }
.hero-float .hf-t { display: block; font-size: 0.95rem; font-weight: 700; color: var(--ink-900); line-height: 1.5; }
.hero-float .hf-s { display: block; font-size: 0.78rem; color: var(--ink-700); }

/* ---- 空白対策：密度と装飾 ---- */
.section { padding: 78px 0; }
.section > .container, .band-warm > .container { position: relative; z-index: 1; }
.head-doodle {
  position: absolute; top: -34px; right: 0;
  font-size: 5.5rem; line-height: 1; pointer-events: none;
  transform: rotate(10deg);
  filter: drop-shadow(5px 5px 0 rgba(69,54,43,0.18));
}
.band-warm { position: relative; overflow: hidden; }
.band-warm::before {
  content: ''; position: absolute; top: 28px; right: 3%;
  width: 170px; height: 96px; opacity: 0.45; pointer-events: none;
  background-image: radial-gradient(var(--pink-400) 2.4px, transparent 3px);
  background-size: 20px 20px;
}
.band-warm::after {
  content: ''; position: absolute; bottom: -46px; left: -36px;
  width: 170px; height: 170px; border-radius: 50%;
  border: 26px solid rgba(56,189,248,0.16); pointer-events: none;
}

/* ============ ステップ（進め方） ============ */
/* ※ .stage 内のラベル <span class="step"> と衝突しないよう .steps 配下にスコープ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
.steps.three { grid-template-columns: repeat(3, 1fr); }
.steps .step {
  position: relative; background: #fff;
  border: 3px solid var(--bd-ink); border-radius: 16px;
  padding: 24px 22px; box-shadow: var(--hard-sm);
  font-family: var(--font-body); font-size: 1rem; letter-spacing: 0.01em; color: var(--ink-700);
}
.steps .step .s-num {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--orange-500); color: #fff;
  border: 3px solid var(--bd-ink); box-shadow: 2px 2px 0 var(--bd-ink);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem;
  margin-bottom: 14px;
}
.steps .step:nth-child(2) .s-num { background: var(--sky-400); }
.steps .step:nth-child(3) .s-num { background: var(--pink-400); }
.steps .step:nth-child(4) .s-num { background: var(--emerald-400); }
.steps .step h3 { margin: 0 0 8px; font-size: 1.08rem; color: var(--ink-900); line-height: 1.6; }
.steps .step p { margin: 0; font-size: 0.9rem; color: var(--ink-700); line-height: 1.9; }
.steps .step .s-meta {
  display: inline-block; margin-top: 12px;
  font-size: 0.78rem; font-weight: 700; color: var(--ink-900);
  background: var(--amber-100); border: 2px solid var(--bd-ink);
  border-radius: 999px; padding: 2px 12px;
}

/* ============ プラン一覧（eSIM） ============ */
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 52px; align-items: stretch; }
.plan-grid .plan-card { display: flex; flex-direction: column; }
.plan-grid .plan-card .btn { margin-top: auto; }
.plan-card.featured { border-color: var(--orange-500); box-shadow: 8px 8px 0 var(--orange-100); }

/* ============ 費用カード（ビザ延長） ============ */
.cost-card {
  background: #fff; border: 3px solid var(--bd-ink); border-radius: 20px;
  box-shadow: 8px 8px 0 var(--amber-200); padding: 36px;
}
.cost-row { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 15px 0; border-bottom: 3px dashed var(--line); }
.cost-row .k { font-size: 0.98rem; color: var(--ink-700); }
.cost-row .k small { display: block; font-size: 0.78rem; color: var(--ink-500); }
.cost-row .v { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--ink-900); white-space: nowrap; }
.cost-row.total { border-bottom: none; padding-top: 20px; }
.cost-row.total .k { font-weight: 700; color: var(--ink-900); font-size: 1.05rem; }
.cost-row.total .v { color: var(--orange-600); font-size: 1.5rem; }
.cost-note { margin-top: 14px; font-size: 0.82rem; color: var(--ink-700); }

/* ============ eSIM：ローミング比較表（マガジン調） ============ */
.compare-wrap { overflow-x: auto; margin-top: 44px; padding: 4px; }
.compare {
  width: 100%; min-width: 660px; border-collapse: separate; border-spacing: 0;
  background: #fff; border: 3px solid var(--bd-ink); border-radius: 18px;
  overflow: hidden; box-shadow: var(--hard);
}
.compare th, .compare td { padding: 14px 16px; font-size: 0.9rem; text-align: center; border-bottom: 3px dashed var(--line); color: var(--ink-700); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: none; }
.compare thead th { font-weight: 700; color: var(--ink-900); border-bottom: 3px solid var(--bd-ink); background: #fff; font-size: 0.92rem; }
.compare th:first-child, .compare td:first-child {
  text-align: left; font-weight: 700; color: var(--ink-900);
  background: var(--paper-warm); border-right: 3px solid var(--line); white-space: nowrap;
}
.compare .win { background: var(--amber-100); font-weight: 700; color: var(--ink-900); }
.compare thead .win { background: var(--amber-200); }
.compare .s { display: block; font-size: 0.72rem; font-weight: 400; color: var(--ink-500); margin-top: 2px; }

/* ============ コンプライアンス・記事リンク束 ============ */
.legal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 40px; }
.legal-grid a {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  background: #fff; border: 3px solid var(--bd-ink); border-radius: 14px;
  padding: 14px 18px; font-size: 0.92rem; font-weight: 700; color: var(--ink-900);
  box-shadow: var(--hard-sm);
}
.legal-grid a:hover { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--bd-ink); background: var(--orange-50); }
.legal-grid a .arrow { color: var(--orange-600); }

/* ============ ご利用中クイックバー（eSIM） ============ */
.quick-bar {
  background: #fff; border: 3px dashed var(--bd-ink); border-radius: 20px;
  padding: 26px 28px; margin-top: -34px; position: relative; z-index: 2;
  box-shadow: var(--hard);
}
.quick-bar .qb-title { font-size: 1.02rem; font-weight: 700; color: var(--ink-900); margin: 0 0 14px; }
.quick-bar .row { display: flex; gap: 12px; flex-wrap: wrap; }
.quick-bar .hint { margin: 14px 0 0; font-size: 0.82rem; color: var(--ink-700); }

/* ============ 体験談・声 ============ */
.voice-meta { font-size: 0.8rem; color: var(--ink-500); margin-top: 4px; }

/* ============ ブログ：記事リンク（エディトリアル型・「箱」に入れない） ============
   UI カード（.stage / .path / .step 等）＝枠 + ハードシャドウの箱、
   記事リンク＝額装写真 + マーカー下線タイトル + 「読む →」で文法を分離 */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 24px; margin-top: 48px; }
.post-grid.two { grid-template-columns: repeat(2, 1fr); }
.post-card { display: flex; flex-direction: column; }
.post-card .thumb {
  position: relative; overflow: visible;
  height: 170px; border: 3px solid var(--bd-ink); border-radius: 16px;
  background: linear-gradient(135deg, #FFEDD5, #FED7AA);
  box-shadow: 6px 6px 0 var(--orange-100);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.post-card:nth-child(3n+2) .thumb { box-shadow: 6px 6px 0 var(--sky-100); }
.post-card:nth-child(3n) .thumb { box-shadow: 6px 6px 0 var(--pink-100); }
.post-card:hover .thumb { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--bd-ink); }
.post-grid.two .thumb { height: 210px; }
.post-card .body { padding: 16px 2px 0; display: flex; flex-direction: column; gap: 9px; flex: 1; align-items: flex-start; }
.post-card h3 {
  margin: 0; font-size: 1.04rem; line-height: 1.75; color: var(--ink-900);
  text-decoration: underline; text-decoration-thickness: 3px;
  text-underline-offset: 6px; text-decoration-color: var(--amber-200);
  transition: text-decoration-color 0.15s ease;
}
.post-card:hover h3 { text-decoration-color: var(--orange-500); }
.post-grid.two .post-card h3 { font-size: 1.18rem; }
.post-card .excerpt { margin: 0; font-size: 0.86rem; color: var(--ink-700); line-height: 1.85; }
.post-meta { display: flex; gap: 8px 14px; flex-wrap: wrap; align-items: center; font-size: 0.76rem; color: var(--ink-500); margin-top: auto; padding-top: 4px; }
.post-meta .upd { color: #0F766E; font-weight: 700; }

/* 「読む →」明示ラベル */
.read { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.88rem; color: var(--orange-600); }
.read::after { content: '→'; transition: transform 0.15s ease; }
.post-card:hover .read::after, .cover-main:hover .read::after { transform: translateX(4px); }

/* 新着＝記事リスト（ニュース欄スタイル） */
.article-list { margin-top: 44px; border-top: 3px solid var(--bd-ink); }
.article-list a {
  display: grid; grid-template-columns: 176px 1fr 30px; gap: 6px 20px; align-items: center;
  padding: 19px 8px; border-bottom: 3px dashed var(--line);
  transition: background 0.15s ease;
}
.article-list a:hover { background: var(--orange-50); }
.article-list .al-meta { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.article-list .al-meta .d { font-family: var(--font-display); font-weight: 700; font-size: 0.84rem; color: var(--ink-500); }
.article-list h3 {
  margin: 0; font-size: 1.02rem; line-height: 1.75; font-weight: 700; color: var(--ink-900);
  text-decoration: underline; text-decoration-thickness: 3px;
  text-underline-offset: 6px; text-decoration-color: var(--amber-200);
}
.article-list a:hover h3 { text-decoration-color: var(--orange-500); }
.article-list h3 .upd { font-size: 0.74rem; color: #0F766E; text-decoration: none; display: inline-block; margin-left: 10px; }
.article-list .go { font-size: 1.15rem; font-weight: 700; color: var(--orange-600); text-align: right; }

/* ============ ブログ：ランキング ============ */
.rank-list { list-style: none; counter-reset: rank; margin: 44px 0 0; padding: 0; display: grid; gap: 12px; }
.rank-list a {
  counter-increment: rank;
  display: flex; align-items: center; gap: 16px;
  background: #fff; border: 3px solid var(--bd-ink); border-radius: 14px;
  padding: 14px 20px; font-size: 0.98rem; font-weight: 700; color: var(--ink-900);
  box-shadow: var(--hard-sm);
}
.rank-list a::before {
  content: counter(rank); flex: none;
  width: 38px; height: 38px; border-radius: 50%;
  border: 3px solid var(--bd-ink); background: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
}
.rank-list a:nth-child(1)::before { background: var(--orange-500); color: #fff; }
.rank-list a:nth-child(2)::before { background: var(--sky-400); color: #fff; }
.rank-list a:nth-child(3)::before { background: var(--pink-400); color: #fff; }
.rank-list a:hover { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--bd-ink); }
.rank-list .tag { margin-left: auto; flex: none; }

/* ============ ブログ：カテゴリタイルの記事数 ============ */
.cat-count { margin-left: auto; font-size: 0.74rem; font-weight: 500; color: var(--ink-500); padding-right: 6px; }

/* ============ ブログ：マガジンレイアウト（旅メディア風） ============ */
.mag-tagline { text-align: center; padding: 30px 0 4px; }
.mag-tagline .en { display: block; font-family: var(--font-display); font-weight: 700; letter-spacing: 0.3em; font-size: 0.7rem; color: var(--orange-600); }
.mag-tagline .ja { font-size: 0.92rem; font-weight: 700; color: var(--ink-700); }

/* 表紙：大きな特集 1 本 + サブ 4 本（2×2）。表紙だけコンテナより広くセンタリング */
.cover { padding: 26px 0 8px; }
.cover-grid {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; align-items: stretch;
  width: min(1400px, calc(100vw - 48px));
  position: relative; left: 50%; transform: translateX(-50%);
}
.cover-main { position: relative; display: block; }
.cover-main > img {
  width: 100%; height: 100%; min-height: 400px; object-fit: cover;
  border: 3px solid var(--bd-ink); border-radius: 20px;
  box-shadow: 10px 10px 0 var(--amber-200);
}
.cover-main .sticker { position: absolute; top: -16px; right: 20px; margin: 0; transform: rotate(5deg); }
.cover-panel {
  position: absolute; left: -14px; bottom: -18px;
  width: max-content; max-width: 86%;
  background: #fff; border: 3px solid var(--bd-ink); border-radius: 16px;
  box-shadow: 5px 5px 0 var(--bd-ink); padding: 18px 24px 20px;
  transform: rotate(-1.2deg); transition: transform 0.2s ease;
}
.cover-main:hover .cover-panel { transform: rotate(0deg); }
.cover-panel h2 { margin: 8px 0 8px; font-size: 1.4rem; line-height: 1.55; color: var(--ink-900); }
.cover-side { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-content: stretch; }
.cover-side .post-card { height: 100%; }
.cover-side .thumb { height: 130px; }
.cover-side .post-card h3 { font-size: 0.95rem; }
.cover-side .read { font-size: 0.8rem; }

/* カテゴリピル（センター寄せ） */
.pill-nav { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 50px; }
.pill-nav a {
  border: 3px solid var(--bd-ink); border-radius: 999px; background: #fff;
  padding: 9px 19px; font-size: 0.92rem; font-weight: 700; color: var(--ink-900);
  box-shadow: var(--hard-sm);
}
.pill-nav a:nth-child(4n+1) { border-color: var(--orange-500); }
.pill-nav a:nth-child(4n+2) { border-color: var(--sky-400); }
.pill-nav a:nth-child(4n+3) { border-color: var(--pink-400); }
.pill-nav a:nth-child(4n)   { border-color: var(--emerald-400); }
.pill-nav a:hover { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--bd-ink); }
.pill-nav .count { font-size: 0.72rem; color: var(--ink-500); font-weight: 500; margin-left: 4px; }

/* 雑誌風センター見出し */
.mag-head { text-align: center; margin-bottom: 10px; }
.mag-head .eyebrow { transform: rotate(-2deg); }
.mag-head .sv-h2 { margin-top: 18px; }
.mag-head .lead { margin: 0 auto; }

/* 特集：横スクロール */
/* ワイド配置（コンテナより広く・左右に余白）・スクロールなしの 4 枚グリッド */
.mag-scroll {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  width: min(1400px, calc(100vw - 48px));
  position: relative; left: 50%; transform: translateX(-50%);
  margin-top: 30px; padding: 14px 0 10px;
}
.post-card .thumb, .rank-card .thumb { position: relative; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }

/* カテゴリーラベル：写真の上に斜めステッカー */
.thumb .tag {
  position: absolute; z-index: 2; top: 10px; left: -9px;
  transform: rotate(-4deg);
  box-shadow: 2px 2px 0 var(--bd-ink);
}
.rank-card .thumb .tag { top: auto; bottom: 8px; font-size: 0.72rem; padding: 2px 9px; transform: rotate(-3deg); }
.cover-main > .tag {
  position: absolute; z-index: 2; top: 20px; left: -12px;
  transform: rotate(-4deg);
  box-shadow: 2px 2px 0 var(--bd-ink);
  font-size: 0.92rem; padding: 5px 15px;
}

/* ランキング：額装サムネ + 番号バッジ（3 列 × 2 段） */
.rank-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 20px; margin-top: 46px; }
.rank-card { position: relative; display: flex; flex-direction: column; }
.rank-card .thumb {
  position: relative; height: 128px; overflow: visible;
  border: 3px solid var(--bd-ink); border-radius: 14px;
  background: linear-gradient(135deg, #FFEDD5, #FED7AA);
  box-shadow: 4px 4px 0 var(--amber-100);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.rank-card:hover .thumb { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--bd-ink); }
.rank-card .rk {
  position: absolute; top: -14px; left: -12px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  border: 3px solid var(--bd-ink); background: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--ink-900);
  box-shadow: 2px 2px 0 var(--bd-ink); transform: rotate(-8deg);
}
.rank-card:nth-child(1) .rk { background: var(--orange-500); color: #fff; }
.rank-card:nth-child(2) .rk { background: var(--sky-400); color: #fff; }
.rank-card:nth-child(3) .rk { background: var(--pink-400); color: #fff; }
.rank-card .body { padding: 12px 2px 0; display: flex; flex-direction: column; gap: 7px; align-items: flex-start; }
.rank-card h3 {
  margin: 0; font-size: 0.92rem; line-height: 1.7; color: var(--ink-900);
  text-decoration: underline; text-decoration-thickness: 2px;
  text-underline-offset: 5px; text-decoration-color: var(--amber-200);
}
.rank-card:hover h3 { text-decoration-color: var(--orange-500); }

/* コミュニティ：ポラロイド写真ストリップ */
.photo-strip { display: flex; flex-wrap: wrap; gap: 18px 14px; justify-content: center; margin-top: 48px; }
.polaroid {
  background: #fff; border: 3px solid var(--bd-ink); border-radius: 10px;
  padding: 8px 8px 28px; box-shadow: var(--hard-sm);
  transform: rotate(-3deg); position: relative; transition: transform 0.2s ease;
}
.polaroid:nth-child(even) { transform: rotate(2.6deg); }
.polaroid:nth-child(3n) { transform: rotate(-1.2deg); }
.polaroid:hover { transform: rotate(0deg) scale(1.03); z-index: 2; }
.polaroid img { width: 168px; height: 148px; object-fit: cover; border-radius: 6px; border: 2px solid var(--line); display: block; }
.polaroid .cap { position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; font-size: 0.68rem; font-weight: 700; color: var(--ink-700); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 6px; }

/* デスクトップ：6 枚を必ず 1 行に（可変幅・大きめ） */
@media (min-width: 961px) {
  .photo-strip { flex-wrap: nowrap; width: min(1400px, calc(100vw - 48px)); position: relative; left: 50%; transform: translateX(-50%); }
  .polaroid { flex: 1 1 0; min-width: 0; }
  .polaroid img { width: 100%; height: 175px; }
}

/* 編集部（つくっている人たち） */
.writers { display: flex; flex-wrap: wrap; gap: 28px; justify-content: center; margin-top: 46px; }
.writer { width: 168px; text-align: center; }
.writer .face {
  width: 88px; height: 88px; margin: 0 auto 12px; border-radius: 50%;
  border: 3px solid var(--bd-ink); background: var(--amber-200);
  display: grid; place-items: center; font-size: 2.3rem;
  box-shadow: var(--hard-sm);
}
.writer:nth-child(2) .face { background: var(--sky-100); }
.writer:nth-child(3) .face { background: var(--pink-100); }
.writer .nm { font-weight: 700; font-size: 0.95rem; color: var(--ink-900); }
.writer .rl { font-size: 0.74rem; color: var(--ink-500); line-height: 1.7; margin-top: 2px; }

/* ============ ブログ：記事詳細 ============ */
.article-head { max-width: 860px; margin: 0 auto; }
.article-head h1 { font-size: clamp(1.65rem, 3.6vw, 2.4rem); line-height: 1.65; color: var(--ink-900); margin: 18px 0 18px; }
.meta-chips { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.meta-chips .m {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 2px solid var(--bd-ink); border-radius: 999px;
  padding: 4px 13px; font-size: 0.78rem; font-weight: 700; color: var(--ink-900);
  box-shadow: 2px 2px 0 var(--bd-ink); white-space: nowrap;
}
.meta-chips .m.upd { background: #ECFDF5; color: #0F766E; }
.meta-chips .m.sup { background: var(--amber-200); }

.eyecatch { max-width: 860px; margin: 34px auto 0; position: relative; }
.eyecatch img { width: 100%; height: 380px; object-fit: cover; border: 3px solid var(--bd-ink); border-radius: 20px; box-shadow: 10px 10px 0 var(--sky-100); }
.eyecatch .tag { position: absolute; z-index: 2; top: 14px; left: -9px; transform: rotate(-4deg); box-shadow: 2px 2px 0 var(--bd-ink); }

.article-wrap { max-width: 760px; margin: 0 auto; }
.knowledge {
  background: #fff; border: 3px solid var(--bd-ink); border-radius: 16px;
  box-shadow: var(--hard-sm); padding: 22px 26px; margin: 40px 0 0;
}
.k-t { margin: 0 0 12px; font-weight: 700; font-size: 0.96rem; color: var(--ink-900); }
.toc { background: var(--orange-50); border: 3px dashed var(--bd-ink); border-radius: 16px; padding: 20px 26px; margin: 26px 0 0; }
.toc ol { margin: 0; padding-left: 1.4em; display: grid; gap: 9px; font-size: 0.92rem; font-weight: 700; color: var(--ink-900); }
.toc a:hover { color: var(--orange-600); }

.article-body { margin-top: 28px; font-size: 1.02rem; line-height: 2.15; color: var(--ink-700); }
.article-body h2 {
  font-size: 1.45rem; line-height: 1.65; color: var(--ink-900);
  margin: 58px 0 22px; padding: 6px 0 6px 18px; border-left: 7px solid var(--orange-500);
}
.article-body h3 { font-size: 1.12rem; color: var(--ink-900); margin: 38px 0 16px; padding-bottom: 8px; border-bottom: 3px dashed var(--line); }
.article-body p { margin: 0 0 26px; }
.article-body ul { margin: 0 0 26px; }
.marker { background: linear-gradient(transparent 62%, var(--amber-200) 62%); font-weight: 700; color: var(--ink-900); padding: 0 2px; }
.tbl { border: 3px solid var(--bd-ink); border-radius: 14px; overflow: hidden; box-shadow: var(--hard-sm); margin: 0 0 26px; background: #fff; }
.tbl table { width: 100%; border-collapse: collapse; font-size: 0.92rem; line-height: 1.8; }
.tbl th { background: var(--orange-50); font-weight: 700; color: var(--ink-900); }
.tbl th, .tbl td { padding: 12px 16px; text-align: left; border-bottom: 2px dashed var(--line); }
.tbl tr:last-child td { border-bottom: none; }
.note-box { background: #FFF1F2; border: 3px solid var(--pink-400); border-radius: 14px; padding: 16px 20px; margin: 0 0 26px; font-size: 0.94rem; }
.note-box .t { display: block; font-weight: 700; color: #9F1239; margin-bottom: 4px; }

.visa-callout.mini { max-width: none; padding: 30px 28px; margin: 44px 0; }
.visa-callout.mini h2 { font-size: 1.3rem; margin: 12px 0 10px; padding: 0; border: none; }
.visa-callout.mini p { font-size: 0.9rem; }

.share-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 44px 0 0; }

.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: none; gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 251, 242, 0.95);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-top: 3px solid var(--bd-ink);
}

/* ============ ブログ：アーカイブ／カテゴリ一覧 ============ */
.archive-hero { text-align: center; }
.archive-hero .cat-emoji {
  width: 76px; height: 76px; margin: 0 auto 14px; border-radius: 20px;
  border: 3px solid var(--bd-ink); box-shadow: var(--hard); background: var(--orange-50);
  display: grid; place-items: center; font-size: 2.4rem; transform: rotate(-3deg);
}
.archive-hero h1 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin: 8px 0 12px; }
.archive-hero .lead { margin: 0 auto; }
.archive-hero .count { display: inline-block; margin-top: 16px; font-family: var(--font-display); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.08em; color: var(--orange-600); background: #fff; border: 3px solid var(--bd-ink); border-radius: 999px; padding: 5px 16px; box-shadow: var(--hard-sm); }

.filter-bar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-top: 44px; padding-bottom: 20px; border-bottom: 3px solid var(--bd-ink); }
.filter-bar .subcats { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-bar .subcats a { border: 2px solid var(--bd-ink); border-radius: 999px; background: #fff; padding: 6px 14px; font-size: 0.82rem; font-weight: 700; color: var(--ink-900); box-shadow: 2px 2px 0 var(--bd-ink); }
.filter-bar .subcats a.on { background: var(--orange-500); color: #fff; }
.filter-bar .subcats a:hover { transform: translate(1px,1px); box-shadow: 1px 1px 0 var(--bd-ink); }
.filter-bar .sort { font-size: 0.84rem; font-weight: 700; color: var(--ink-700); display: inline-flex; gap: 8px; align-items: center; }

.pager { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 52px; }
.pager a, .pager span {
  min-width: 44px; height: 44px; padding: 0 8px; border: 3px solid var(--bd-ink); border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--ink-900); background: #fff; box-shadow: var(--hard-sm);
}
.pager a:hover { transform: translate(1px,1px); box-shadow: 1px 1px 0 var(--bd-ink); }
.pager .on { background: var(--orange-500); color: #fff; }
.pager .dots { border: none; box-shadow: none; background: none; }

/* ============ ブログ：検索 ============ */
.search-box { display: flex; gap: 12px; max-width: 640px; margin: 26px auto 0; }
.search-box input {
  flex: 1; border: 3px solid var(--bd-ink); border-radius: 14px; padding: 14px 18px;
  font-family: var(--font-body); font-size: 1rem; color: var(--ink-900); background: #fff; box-shadow: var(--hard-sm);
}
.search-box input:focus { outline: none; box-shadow: 5px 5px 0 var(--orange-200, #FDBA74); }
.results-meta { text-align: center; margin-top: 22px; font-size: 0.92rem; color: var(--ink-700); }
.results-meta b { color: var(--orange-600); font-family: var(--font-display); }
.no-results { text-align: center; background: var(--orange-50); border: 3px dashed var(--bd-ink); border-radius: 20px; padding: 40px 28px; margin-top: 30px; }
.no-results .big { font-size: 3rem; line-height: 1; }
.hot-queries { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }

/* ============ ブログ：FAQ ハブ ============ */
.faq-cat { margin-top: 52px; }
.faq-cat > h2 {
  display: inline-flex; align-items: center; gap: 10px; font-size: 1.3rem; color: var(--ink-900);
  background: #fff; border: 3px solid var(--bd-ink); border-radius: 14px; padding: 10px 20px; box-shadow: var(--hard-sm); transform: rotate(-1deg); margin: 0 0 22px;
}
.faq-jump { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }
.faq-jump a { border: 3px solid var(--bd-ink); border-radius: 999px; background: #fff; padding: 9px 18px; font-size: 0.9rem; font-weight: 700; color: var(--ink-900); box-shadow: var(--hard-sm); }
.faq-jump a:hover { transform: translate(1px,1px); box-shadow: 2px 2px 0 var(--bd-ink); background: var(--orange-50); }

/* ============ ブログ：監修者・著者ページ ============ */
.author-hero { display: grid; grid-template-columns: auto 1fr; gap: 34px; align-items: center; max-width: 900px; margin: 0 auto; }
.author-face {
  width: 148px; height: 148px; border-radius: 50%; flex: none;
  border: 3px solid var(--bd-ink); box-shadow: var(--hard); background: var(--amber-200);
  display: grid; place-items: center; font-size: 4rem; transform: rotate(-3deg);
}
.author-hero h1 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin: 6px 0 10px; }
.author-role { display: inline-block; font-size: 0.82rem; font-weight: 700; color: #fff; background: var(--orange-500); border: 2px solid var(--bd-ink); border-radius: 999px; padding: 4px 14px; box-shadow: 2px 2px 0 var(--bd-ink); }
.author-cred { margin-top: 12px; font-family: var(--font-display); font-size: 0.9rem; letter-spacing: 0.04em; color: var(--ink-700); }
.author-bio { margin-top: 14px; font-size: 0.96rem; line-height: 1.95; color: var(--ink-700); }
.author-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 900px; margin: 40px auto 0; }
.astat { background: #fff; border: 3px solid var(--bd-ink); border-radius: 16px; box-shadow: var(--hard-sm); padding: 22px 20px; text-align: center; }
.astat:nth-child(2) { box-shadow: 4px 4px 0 var(--sky-100); }
.astat:nth-child(3) { box-shadow: 4px 4px 0 var(--pink-100); }
.astat .n { font-family: var(--font-display); font-weight: 700; font-size: 2rem; color: var(--orange-600); line-height: 1.1; }
.astat .k { font-size: 0.82rem; color: var(--ink-700); font-weight: 700; margin-top: 4px; }

/* ============ ブログ：404 ============ */
.notfound { text-align: center; max-width: 680px; margin: 0 auto; padding: 30px 0; }
.notfound .big { font-family: var(--font-display); font-weight: 700; font-size: clamp(4rem, 14vw, 8rem); line-height: 1; color: var(--orange-500); text-shadow: 5px 5px 0 var(--bd-ink); }
.notfound h1 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 18px 0 12px; }
.notfound .torakun { width: 120px; margin: 8px auto 0; transform: rotate(-6deg); filter: drop-shadow(4px 5px 0 rgba(28,25,23,0.18)); }

@media (max-width: 960px) {
  .author-hero { grid-template-columns: 1fr; text-align: center; gap: 20px; }
  .author-face { margin: 0 auto; }
  .author-stats { grid-template-columns: 1fr; }
}

/* ============ ブログ：ビザ認知コールアウト（コンパクト版） ============ */
.visa-callout {
  position: relative; max-width: 880px; margin: 0 auto;
  background: linear-gradient(120deg, #FFF7ED 0%, #FFE9D6 48%, #FCE7F3 100%);
  border: 3px solid var(--bd-ink); border-radius: 24px;
  box-shadow: var(--hard);
  padding: 40px 44px; text-align: center;
}
.visa-callout .eyebrow { transform: rotate(-2deg); }
.visa-callout h2 { margin: 16px 0 12px; font-size: clamp(1.45rem, 2.8vw, 1.9rem); line-height: 1.6; color: var(--ink-900); }
.visa-callout p { margin: 0 auto; max-width: 560px; font-size: 0.94rem; color: var(--ink-700); line-height: 1.95; }
.visa-callout .dark-actions { justify-content: center; margin-top: 26px; }
.visa-callout .dark-note { margin-top: 18px; font-size: 0.8rem; color: var(--ink-500); }
.visa-callout .sticker { position: absolute; margin: 0; top: -22px; right: -12px; left: auto; transform: rotate(5deg); }

/* ============ ステッカーをコンテンツ幅にクランプ ============ */
.dark-band > .sticker-pink { right: max(24px, calc((100% - 1120px) / 2 + 12px)); }
.cta-final > .sticker-amber { left: max(24px, calc((100% - 1120px) / 2 + 12px)); }

/* ============ レスポンシブ ============ */
@media (max-width: 960px) {
  .page-hero { padding: 52px 0 46px; }
  .ph-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual > img.photo { height: 250px; }
  .hero-visual .mascot { width: 66px; height: 66px; top: -28px; right: 10px; }
  .hero-float { left: 10px; bottom: 14px; padding: 12px 16px; gap: 12px; }
  .hero-float .hf-big { font-size: 1.3rem; }
  .head-doodle { display: none; }
  .section { padding: 64px 0; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps.three { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: 1fr; }
  .legal-grid { grid-template-columns: 1fr 1fr; }
  .post-grid, .post-grid.two { grid-template-columns: 1fr 1fr; }
  .mag-scroll { grid-template-columns: 1fr 1fr; }
  .cover-grid { grid-template-columns: 1fr; }
  .cover-main > img { height: 300px; min-height: 0; }
  .cover-panel { left: 10px; bottom: -14px; max-width: 94%; padding: 14px 16px 16px; }
  .cover-panel h2 { font-size: 1.12rem; }
  .cover-side { grid-template-columns: 1fr 1fr; margin-top: 18px; }
  .rank-grid { grid-template-columns: 1fr 1fr; }
  .pill-nav { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 10px; }
  .pill-nav a { white-space: nowrap; flex: none; }
}
@media (max-width: 620px) {
  .steps { grid-template-columns: 1fr; }
  .legal-grid { grid-template-columns: 1fr; }
  .quick-bar { margin-top: -20px; }
  .post-grid, .post-grid.two { grid-template-columns: 1fr; }
  .rank-list .tag { display: none; }
  .cover-side { grid-template-columns: 1fr; }
  .rank-grid { grid-template-columns: 1fr 1fr; }
  .polaroid img { width: 140px; height: 120px; }
  .article-list a { grid-template-columns: 1fr 26px; padding: 16px 4px; }
  .article-list .al-meta { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 10px; }
  .visa-callout { padding: 30px 22px; }
  .visa-callout .sticker { top: -20px; right: 6px; }
  .eyecatch img { height: 230px; }
  .article-body { font-size: 0.98rem; }
}
@media (max-width: 960px) {
  .sticky-cta { display: flex; }
  .sticky-cta .btn { flex: 1; padding: 12px 8px; font-size: 0.85rem; box-shadow: var(--hard-sm); }
  body.has-sticky { padding-bottom: 88px; }
}
