/* 海外旅行の準備を整える — 見た目の単位を組み合わせるユーティリティクラス方式 */

@font-face {
  font-family: "Kiwi Maru";
  src: url("/frame/kiwi-maru-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --bg: #f7fbfd;
  --white: #ffffff;
  --ink: #1b2a3a;
  --sub: #55667a;
  --azure: #1c6fb8;
  --azure-deep: #155a96;
  --apricot: #f29a3a;
  --apricot-deep: #b65a10;
  --apricot-pale: #fde3c4;
  --sky: #e6f3fb;
  --sky-top: #d6ecfa;
  --sand: #fbf3e6;
  --line: #d7e3ec;
  --ff-body: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium", YuGothic, Meiryo, sans-serif;
  --ff-kiwi: "Kiwi Maru", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sail: 18px 0 18px 0;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.88;
  overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--azure); text-underline-offset: 3px; }
a:hover { color: var(--azure-deep); }
ol, ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 500; }
b { font-weight: 700; }
:focus-visible { outline: 3px solid var(--apricot); outline-offset: 2px; }

/* ---- レイアウト ---- */
.wrap { max-width: 1120px; margin-inline: auto; padding-inline: 20px; }
.wrap-narrow { max-width: 740px; margin-inline: auto; padding-inline: 20px; }
.row { display: flex; }
.between { justify-content: space-between; flex-wrap: wrap; }
.center-v { align-items: center; }
.block { display: block; }
.w-full { width: 100%; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-8 { gap: 32px; }

/* ---- 余白 ---- */
.m-0 { margin: 0; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 20px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mt-12 { margin-top: 56px; }
.pt-4 { padding-top: 16px; }
.pt-8 { padding-top: 40px; }
.pb-6 { padding-bottom: 28px; }
.py-4 { padding-block: 16px; }
.py-5 { padding-block: 20px; }
.py-8 { padding-block: 36px; }
.p-3 { padding: 12px 14px 16px; }
.p-4 { padding: 16px 20px; }
.p-5 { padding: 24px; }

/* ---- 文字 ---- */
.ff-kiwi { font-family: var(--ff-kiwi); font-weight: 500; }
.fs-xs { font-size: 13px; }
.fs-s { font-size: 14px; }
.fs-m { font-size: 17px; }
.fs-l { font-size: 22px; }
.fs-card { font-size: 15px; }
.fs-brand { font-size: 22px; line-height: 1.4; }
.fs-title { font-size: clamp(23px, 3.6vw, 30px); }
.fs-hero { font-size: clamp(24px, 4.4vw, 40px); letter-spacing: 0.04em; }
.lh-s { line-height: 1.55; }
.fw-b { font-weight: 700; }
.c-ink { color: var(--ink); }
.c-sub { color: var(--sub); }
.c-azure { color: var(--azure); }
.no-ul { text-decoration: none; }

/* ---- 面・形 ---- */
.bg-white { background: var(--white); }
.bg-sky { background: var(--sky); }
.bg-sand { background: var(--sand); }
.sail { border-radius: var(--sail); overflow: hidden; }
.sq { aspect-ratio: 1 / 1; object-fit: cover; }
.dash-top { border-top: 2px dashed var(--apricot); }
.sky { background: linear-gradient(180deg, var(--sky-top) 0%, var(--bg) 100%); }
.lift { transition: transform 0.2s; }
.lift:hover { transform: translateY(-3px); }
.lift:hover .ff-kiwi { color: var(--azure); }
@media (prefers-reduced-motion: reduce) { .lift { transition: none; } .lift:hover { transform: none; } }

.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip:focus { position: static; width: auto; height: auto; clip: auto; display: block; padding: 8px 20px; background: var(--white); }

/* ---- 順路の丸 ---- */
.pin {
  display: inline-grid; place-items: center; flex: none;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--apricot-deep); color: var(--white);
  font-size: 14px; font-weight: 700; line-height: 1;
}
.pin-s { width: 24px; height: 24px; font-size: 12px; }

/* ヘッダーのミニ旅程：番号の丸を破線でつなぐ */
.dots { display: flex; align-items: center; }
.dots li { display: flex; align-items: center; }
.dots li + li::before { content: ""; width: 14px; border-top: 2px dashed var(--apricot); }
.dots a {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid var(--apricot); background: var(--white);
  color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none;
}
.dots a:hover { border-color: var(--apricot-deep); }
.dots a[aria-current="page"] { background: var(--apricot-deep); border-color: var(--apricot-deep); color: var(--white); }

/* TOPの順路：5枚の絵はがきを横1列に並べ、上を破線でつなぐ */
.route-top { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.route-top li, .route-mini li { isolation: isolate; }
.stop { position: relative; display: flex; align-items: center; gap: 8px; color: var(--sub); }
.stop b { color: var(--ink); }
.route-top li:not(:last-child) .stop::after {
  content: ""; position: absolute; z-index: -1; top: 14px; left: 30px; right: -20px;
  border-top: 2px dashed var(--apricot);
}
.stop span:last-child { background: var(--bg); padding-right: 6px; }
@media (max-width: 959px) {
  .route-top {
    display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
    padding-bottom: 12px; margin-inline: -20px; padding-inline: 20px; scroll-padding-inline: 20px;
  }
  .route-top li { flex: 0 0 min(68%, 260px); scroll-snap-align: start; }
  .route-top li:not(:last-child) .stop::after { right: -16px; }
}

/* 記事ページの現在地 */
.steps { display: inline-flex; gap: 5px; }
.steps i { width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--apricot); }
.steps i.on { background: var(--apricot-deep); border-color: var(--apricot-deep); }

/* ---- パンくず：区切りは短い破線 ---- */
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; }
.crumbs li { display: flex; align-items: center; }
.crumbs li + li::before { content: ""; width: 14px; margin-inline: 8px; border-top: 2px dashed var(--apricot); }

/* ---- 記事の絵はがき形ヘッダー ---- */
.postcard { display: grid; grid-template-columns: minmax(0, 300px) 1fr; align-items: center; }
@media (max-width: 719px) {
  .postcard { grid-template-columns: 1fr; }
  .postcard img { max-width: 400px; margin-inline: auto; border-radius: 18px 0 0 0; }
}

/* ---- 目次 ---- */
.toc { padding: 18px 22px; }
.toc summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "＋"; margin-left: auto; color: var(--azure); font-family: var(--ff-body); }
.toc[open] summary::after { content: "－"; }
.toc ol { margin-top: 12px; }
.toc li + li { margin-top: 6px; }
.toc a { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); text-decoration: none; font-size: 15px; line-height: 1.6; }
.toc a .pin { margin-top: 1px; }
.toc a:hover { color: var(--azure); text-decoration: underline; }

/* ---- 本文 ---- */
.prose p { margin: 0 0 1.25em; }
.prose h2 {
  position: relative; display: flex; align-items: flex-start; gap: 12px;
  margin: 2.6em 0 1em; padding-bottom: 12px;
  font-family: var(--ff-kiwi); font-size: clamp(20px, 2.8vw, 24px); line-height: 1.5;
}
.prose h2::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, var(--azure), rgba(28, 111, 184, 0.25) 60%, transparent);
}
.prose h2 .num {
  display: inline-grid; place-items: center; flex: none; margin-top: 3px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--apricot-deep); color: var(--white);
  font-family: var(--ff-body); font-size: 15px; font-weight: 700; line-height: 1;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  width: fit-content; margin: 2em 0 0.7em; padding-inline: 2px;
  color: var(--azure-deep); font-size: 18px; font-weight: 700; line-height: 1.6;
  background: linear-gradient(transparent 62%, var(--apricot-pale) 62%);
}

/* ---- 関連記事 ---- */
.next { display: grid; grid-template-columns: 180px 1fr; align-items: center; }
.next img { width: 180px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-3 a { align-items: center; }
.grid-3 a:hover span { color: var(--azure); text-decoration: underline; }
.thumb { width: 80px; flex: none; }
@media (max-width: 719px) {
  .next { grid-template-columns: 110px 1fr; }
  .next img { width: 110px; }
  .grid-3 { grid-template-columns: 1fr; }
}

/* ---- プライバシーポリシー ---- */
.paper { position: relative; padding: 32px clamp(20px, 4vw, 40px) 16px; }
.stamp {
  float: right; margin: -6px 0 12px 16px;
  display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%;
  border: 2px dashed var(--apricot-deep); color: var(--apricot-deep);
  font-size: 12px; font-weight: 700; line-height: 1.35; text-align: center; transform: rotate(-8deg);
}
.paper .prose h2 { font-size: 19px; }

/* ---- 404 ---- */
.route-mini { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.route-mini li { position: relative; }
.route-mini li:not(:last-child)::after {
  content: ""; position: absolute; z-index: -1; top: 14px; left: 30px; right: -14px;
  border-top: 2px dashed var(--apricot);
}
@media (max-width: 719px) {
  .route-mini { grid-template-columns: 1fr; gap: 18px; }
  .route-mini li { padding-left: 42px; }
  .route-mini .pin { position: absolute; left: 0; top: 0; }
  .route-mini li span.block { margin-top: 0; }
  .route-mini li:not(:last-child)::after { top: 34px; bottom: -16px; left: 14px; right: auto; border-top: 0; border-left: 2px dashed var(--apricot); }
}

/* ---- フッター ---- */
.split-foot { display: grid; grid-template-columns: 1.2fr 1fr; }
.route-v li { display: flex; gap: 10px; align-items: flex-start; }
.route-v li + li { margin-top: 8px; }
.route-v a { color: var(--ink); }
.route-v a:hover { color: var(--azure); }
@media (max-width: 719px) {
  .split-foot { grid-template-columns: 1fr; }
}
