/* =====================================================================
   人生と仕事と自然。 TOP  —  Figma「最小」(1200) / 「大きいとき」(2000) 実測値ベース
   - 1200px 未満 〜 768px: body min-width 1200 で横スクロール（SOU 指定）
   - 767px 以下: SP レイアウト（Figma 未作成のためここで設計）
   - 1200px 超: コンテンツ 1120 を中央固定、MV 左パネル・背景帯だけが伸びる
   余白は Figma 実測。理由のない値を置かない（各所コメント参照）
   ===================================================================== */

:root {
  --navy: #322823;      /* 本文・上帯・暗色帯 */
  --blue: #23557d;      /* キーカラー（地域特集・ボタン線） */
  --blue-deep: #14436a; /* 長野パネル内の濃い帯 */
  --red: #965050;       /* 地方の仕事 */
  --green: #467846;     /* 暮らし */
  --gold: #8c7d3c;      /* 子育て */
  --purple: #735a82;    /* 観光と文化 */
  --slate: #415564;     /* 趣味と自然 */
  --bg: #f8f6f1;        /* ページ背景 */
  --line: #dcd5c7;      /* 罫線 */
  --cream: #faf3e2;     /* 画像プレースホルダ */
  --sky: #fff8eb;       /* 薄い青パネル */
  --mint: #dbf0db;      /* 移住後予想ヘッダ */
  --pink: #faecea;      /* 注目イベント パネル */
  --ph: #b9b2a4;        /* placeholder 文字 */
  --shadow: 2px 2px 8px rgba(0, 0, 0, .04);   /* Figma: DROP_SHADOW 2/2/8 4% 共通 */
  --gutter: 40px;       /* 1200 幅時の左右余白（Figma 実測） */
  --cw: 1120px;         /* コンテンツ幅 */
  --sec-gap: 80px;      /* セクション間（Figma 実測: 全て 80） */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0 auto;
  max-width: 2680px;                    /* Retina 規約: hero 画像 4080px ÷ 2 = 2040 が MV パネルの上限 → 2040+640 */
  min-width: 1200px;                    /* 1200 未満は横スクロール（SOU 指定・SP で解除） */
  background: var(--bg);
  color: var(--navy);
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: auto;
}
h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
em { font-style: normal; color: var(--blue); }
small { font-weight: 500; }
.num { font-family: Roboto, "Noto Sans JP", sans-serif; font-weight: 800; font-size: 36px; line-height: 1; letter-spacing: 0; color: var(--num, var(--blue)); }
.num--max { color: var(--red); }
.unit { display: inline-block; font-size: 13px; font-weight: 800; line-height: 1; margin-left: 2px; vertical-align: top; padding-top: 4px; }
.ic { display: inline-block; width: 24px; height: 24px; flex: 0 0 auto; }
.ic--play14 { width: 14px; height: 14px; color: var(--blue); }.ic--arw { width: 20px; height: 20px; color: var(--blue); }
.ic--arw14 { width: 14px; height: 14px; color: var(--blue); }
.ic--arw30 { width: 30px; height: 30px; }

.container { width: var(--cw); margin: 0 auto; }
.sec { margin-top: var(--sec-gap); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-start; height: 60px; margin-bottom: 30px; /* Figma: title行60 + 30 で本文 */ }
.sec-ttl { font-size: 38px; font-weight: 600; letter-spacing: .02em; line-height: 1; padding-top: 12px; } /* Figma: 見出し4518 → grid4596 = 78 (=12+38+28) */

/* --- ボタン類 ------------------------------------------------------ */
.btn-line {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 280px; height: 60px; padding: 0 20px 0 30px;
  border: 1px solid var(--blue); border-radius: 100px;
  font-size: 15px; font-weight: 600; letter-spacing: .04em; color: var(--blue);
  /* ホバー: 右から左へ色が流れ込む（gradient の位置移動） */
  background-image: linear-gradient(90deg, transparent 0 50%, var(--hover-bg, var(--blue)) 50% 100%);
  background-size: 200% 100%; background-position: 0 0;
  transition: background-position .55s cubic-bezier(.22, .61, .36, 1), color .35s, border-color .35s;
}
.btn-line:hover { background-position: -100% 0; color: var(--hover-fg, #fff); }
.btn-line .ic--arw, .btn-line .ic--arw14 { transition: color .35s, transform .45s cubic-bezier(.22, .61, .36, 1); }
.btn-line:hover .ic--arw, .btn-line:hover .ic--arw14 { color: var(--hover-fg, #fff); --tri: var(--hover-bg, #23557d); transform: translateX(3px); }
.btn-line--sm { width: 100%; height: 44px; padding: 0 20px; font-size: 14px; }
.btn-line--white { border-color: #fff; color: #fff; --hover-bg: #fff; --hover-fg: #322823; }
.btn-line--white .ic--arw { color: #fff; --tri: #322823; }
.btn-fill {
  display: inline-flex; align-items: center; justify-content: center; gap: 30px;
  height: 60px; padding: 0 20px 0 55px;
  background: var(--blue); color: #fff; border-radius: 100px; box-shadow: var(--shadow);
  font-size: 18px; font-weight: 700; letter-spacing: .08em; position: relative; overflow: hidden;
  transition: box-shadow .45s;
}
.btn-fill::before {   /* ホバー: 薄い光が右から左へ流れる */
  content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .22) 50%, transparent 80%);
  transform: translateX(110%); transition: transform .7s cubic-bezier(.22, .61, .36, 1);
}
.btn-fill:hover::before { transform: translateX(-110%); }
.btn-fill .ic--arw30 { color: #fff; --tri: #23557d; position: relative; transition: transform .45s cubic-bezier(.22, .61, .36, 1); }
.btn-fill:hover { box-shadow: 2px 6px 16px rgba(35, 85, 125, .25); }
.btn-fill:hover .ic--arw30 { transform: translateX(4px); }
.btn-fill > :not(.ic) { position: relative; }
.pill { display: inline-flex; align-items: center; justify-content: center; height: 30px; padding: 0 12px; border-radius: 100px; font-size: 13px; font-weight: 600; letter-spacing: .04em; line-height: 1; }
.pill--fill { min-width: 80px; background: var(--blue); color: #fff; }
.pill--line { min-width: 120px; border: 1px solid var(--blue); color: var(--blue); }
.tag {
  position: relative; z-index: 1; align-self: flex-start; margin: -15px 0 0 10px;   /* Figma: 画像下端(130)を 15px 跨ぐ。通常フローなので SP の可変画像高でも追従 */
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 100px; height: 30px; padding: 0 12px; border-radius: 100px;
  background: var(--tag, var(--blue)); color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .04em; line-height: 1;
}
.search { position: relative; display: block; }
.search input {
  width: 100%; height: 40px; padding: 0 44px 0 20px; border: 0; border-radius: 100px; background: #fff;
  font: inherit; font-size: 12px; letter-spacing: .04em; color: var(--navy); outline: none;
}
.search input::placeholder { color: var(--ph); }
.search button { position: absolute; right: 15px; top: 50%; width: 24px; height: 24px; transform: translateY(-50%); color: var(--navy); }
.search button .ic { width: 24px; height: 24px; }

/* --- カード共通ホバー: 3px 浮いて影がにじむ・画像がゆっくり寄る --------------- */
.card, .story__item, .ev, .dt, .fbox {
  transition: transform .55s cubic-bezier(.22, .61, .36, 1), box-shadow .55s cubic-bezier(.22, .61, .36, 1);
}
.card:hover, .story__item:hover, .ev:hover, .dt:hover, .fbox:hover {
  transform: translateY(-3px); box-shadow: 4px 10px 24px rgba(50, 40, 35, .10);
}
.card img, .story__img img, .ev__img img, .fbox img { transition: transform 1.2s cubic-bezier(.22, .61, .36, 1), filter .6s; }
.card:hover img, .story__item:hover .story__img img, .ev:hover img { transform: scale(1.035); }
.fbox:hover img { filter: brightness(1.04); }
.dt:hover .dt__img { background: var(--blue-deep); }
.dt__img { transition: background .45s; }

/* --- カード共通（右下の三角は Figma "Rectangle 73" 12px） -------------- */
.card > a::after, .story__item > a::after, .ev > a::after, .dt > a::after, .fbox::after {
  background: var(--tag, var(--c, var(--blue)));   /* 位置・形は v3.css 冒頭「右下の三角（全ページ共通）」 */
}

/* =====================================================================
   HEADER
   ===================================================================== */.topbar {
  display: flex; align-items: center; height: 60px; padding: 0 10px 0 20px; background: var(--navy); color: #fff;
}
.head { position: absolute; left: 0; right: 0; top: 60px; height: 150px; pointer-events: none; }     /* Figma: mark94+text+eng = 213×94 */
.menu-btn { display: none; }.gnav__ico { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--blue); border-radius: 50%; }.topbar a, .foot__nav a, .fcol a { transition: color .35s, opacity .35s; }
.topbar a:hover { opacity: .7; }
.foot__nav a:hover, .fcol a:hover { color: var(--blue); }
.gnav__ico { transition: background .4s, border-color .4s; }
.gnav__ico img { transition: filter .4s; }.fcol a .ic--arw { transition: transform .45s cubic-bezier(.22, .61, .36, 1); }
.fcol a:hover .ic--arw { transform: translateX(3px); }

/* SP ドロワー（PC では非表示） */
.drawer { display: none; }

/* =====================================================================
   MV
   ===================================================================== */  /* パララックス用に上下へ余白 */ /* z-index を付けると独立合成層になり video の screen 合成が背景に届かない */ /* Figma: header150 + 128 = キャラ上端 188 */   /* Figma: キャラ画像 x13 */
.mv__video { width: 300px; height: 300px; }  /* 動画は輝度→アルファ化した透過版（VP9 webm / HEVC mov）。JS がブラウザで選ぶ */               /* 白線アニメ（黒背景）→ screen で線だけ乗せる */ /* Figma: cards y244 = 60+184, 左パネルへ 80 重なる */
.card-grid { display: grid; gap: 12px 10px; }
.card { position: relative; background: #fff; box-shadow: var(--shadow); border-radius: 12px 12px 0 12px; }   /* Figma [12,12,0,12] */
.card > a { position: relative; display: flex; flex-direction: column; height: 100%; }
.card__img { width: 200px; height: 130px; overflow: hidden; background: #86766c; border-radius: 12px 0 12px 0; }  /* Figma [12,0,12,0] */
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__ttl { padding: 10px 20px 20px; font-size: 18px; font-weight: 800; letter-spacing: .02em; line-height: 25.2px; }
.card__ttl em { color: var(--tag); }   /* Figma: cards下端856 → btn874 = 18、x520 = 480+40 */

/* =====================================================================
   1. 診断
   ===================================================================== */                       /* Figma: MV下端970 → 1039 */  /* Figma [24,24,0,24] */  /* Figma Rectangle 73 白・右下 4px 内側 */  /* Figma: 画像は帯(220〜)より前面で 20px 重なる */ /* Figma: x346-40 */
/* =====================================================================
   2. 移住ストーリー
   ===================================================================== */
.story { display: grid; grid-template-columns: 640px 460px; gap: 20px; }
.story__list { display: grid; gap: 10px; }
.story__item { position: relative; height: 160px; background: #fff; box-shadow: var(--shadow); border-radius: 16px 16px 0 16px; }
.story__item > a { position: relative; display: flex; height: 100%; padding: 10px; gap: 20px; }
.story__img { flex: 0 0 200px; width: 200px; height: 140px; border-radius: 12px; overflow: hidden; background: var(--cream); }
.story__img img { width: 100%; height: 100%; object-fit: cover; }
.story__body { flex: 1 1 auto; padding-top: 6px; }
.story__meta { display: flex; align-items: center; gap: 5px; }
.story__who { margin-left: 5px; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--blue); }
.story__quote { margin-top: 8px; font-size: 20px; font-weight: 800; letter-spacing: .02em; line-height: 28px; }
/* =====================================================================
   3. 人気移住地の注目情報まとめ
   ===================================================================== */
.area__tab {
  width: 126px; height: 60px; border: 1px solid var(--blue); border-bottom: 0; background: #fff; color: var(--blue); border-radius: 8px 8px 0 0;  /* Figma [8,8,0,0] */
  font-size: 22px; font-weight: 800; letter-spacing: .02em; transition: background .2s, color .2s;
}
.area__tab { transition: background .35s, color .35s; }
.area__tab:hover { background: var(--sky); }
.area__tab.is-active { background: var(--blue); color: #fff; }
.area__panel { background: var(--blue); color: #fff; padding: 20px 0 0; border-radius: 0 28px 0 0; }  /* Figma [0,28,0,0] */.area__name { font-size: 92px; font-weight: 800; line-height: 1; margin-top: 6px; margin-left: -6px; }
.area__lead { margin-top: 19px; font-size: 22px; font-weight: 800; letter-spacing: .02em; line-height: 33px; }
.area__desc { margin-top: 10px; font-size: 15px; font-weight: 500; letter-spacing: .04em; line-height: 27px; } /* Figma 40,2599 1120x274 */
.area__col--stat { width: 420px; }
.area__col--feat { width: 360px; }
.area__col--more { width: 260px; }
.area__h3 { font-size: 24px; font-weight: 700; line-height: 36px; letter-spacing: 0; }
.area__h3 small { display: inline-block; vertical-align: top; line-height: 36px; font-size: 14px; font-weight: 500; margin-left: 10px; } /* inline のままだと行箱が 4px 伸びる */
.stat { margin-top: 14px; height: 184px; background: #fff; color: var(--navy); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; position: relative; }
.stat::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--line); }
.stat__head { display: grid; grid-template-columns: 1fr 1fr; height: 40px; }
.stat__head span { display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; letter-spacing: .02em; background: var(--sky); border-radius: 12px 0 0 0; }
.stat__head span + span { background: var(--mint); border-radius: 0 12px 0 0; }
.stat__body { display: grid; grid-template-columns: 1fr 1fr; }
.stat__side { padding: 10px 15px 0; }
.stat__row { display: flex; align-items: flex-start; justify-content: flex-end; height: 36px; }
.stat__row + .stat__row { margin-top: -1px; }
.stat__lbl { font-size: 14px; font-weight: 700; letter-spacing: .02em; line-height: 1; margin-right: 6px; padding-top: 8px; }
.stat__note { margin-top: 5px; font-size: 13px; font-weight: 500; line-height: 19.5px; text-align: center; letter-spacing: -.01em; }
.feat { margin-top: 14px; height: 184px; padding: 20px; background: #fff; color: var(--navy); border-radius: 12px; box-shadow: var(--shadow); }
.feat li { display: flex; align-items: center; gap: 6px; height: 22px; font-size: 16px; font-weight: 700; letter-spacing: .02em; line-height: 22.4px; white-space: nowrap; }
.feat li + li { margin-top: 8px; }
.feat .ic { width: 12px; height: 12px; }
.feat__good .ic, .feat__good em { color: var(--green); }
.feat__care .ic, .feat__care em { color: var(--gold); }
.more { margin-top: 14px; height: 184px; padding: 20px 15px; background: #fff; border-radius: 12px; box-shadow: var(--shadow); display: grid; gap: 6px; align-content: start; }
.jobs { padding: 20px 20px 20px; }  /* 2026-09-29 SOU: 注記は12px・レギュラー・少し透過。目立たせない */
.jobs__list { display: grid; grid-template-columns: repeat(4, 262px); gap: 10px; margin-top: 14px; }
.job { position: relative; height: 295px; background: #fff; color: var(--navy); box-shadow: var(--shadow); border-radius: 12px 12px 0 12px; }
.job__ttl { height: 44px; padding: 20px 20px 0; font-size: 16px; font-weight: 800; letter-spacing: .02em; line-height: 22.4px; }
.job__ttl em { color: var(--blue); font-weight: 700; }
.job__pay { display: flex; align-items: flex-start; height: 36px; padding: 0 20px; margin-top: 26px; }
.job__tilde { font-size: 16px; font-weight: 700; line-height: 22.4px; margin: 6px 4px 0; }
.job__cond { padding: 0 20px; margin-top: 2px; height: 40px; font-size: 14px; font-weight: 600; line-height: 19.6px; letter-spacing: 0; }
.job__memo { position: absolute; left: 0; right: 0; bottom: 0; height: 130px; padding: 10px 20px; background: var(--sky); border-radius: 0 0 0 12px; font-size: 14px; font-weight: 500; line-height: 21px; letter-spacing: 0; }
.area__foot { display: flex; justify-content: center; align-items: center; height: 100px; background: var(--navy); border-radius: 0 0 28px 28px; }  /* Figma [0,0,28,28] */

/* =====================================================================
   4. 地域別リンク＋都道府県ボイス（背景: ぼかし写真＋#002341 30%）
   ===================================================================== */ /* リンクカードは暗色帯より 89px 上から始まる（Figma: 3438→3527） */  /* 2026-09-29 SOU: パララックス廃止（スクロールで上に黒帯が出るため）。背景は固定 */.links { display: grid; grid-template-columns: repeat(3, 360px); gap: 20px; } /* Figma: cards下端3588 → 3648 */  /* Figma: 3686 → 3716 */  /* 2026-09-29 SOU: 上段は常に右へ、下段は常に左へ。JS(main.js)が中身を2周分複製し 50% で継ぎ目なしループ */@keyframes marquee-l { from { transform: translate3d(0, 0, 0); }
 to { transform: translate3d(-50%, 0, 0); } }
@keyframes marquee-r { from { transform: translate3d(-50%, 0, 0); }
 to { transform: translate3d(0, 0, 0); } }               /* Figma: row1 下端4017 → row2 4057 */  /* Figma: prf は comment より前面 */ /* Figma: 吹き出し下端3836 と丸(3821) が 15 重なる */
/* =====================================================================
   5. 最新のコラム
   ===================================================================== */
.cols { display: flex; gap: 25px; }
.card--lg { height: 430px; }
.card--lg .card__img { width: 305px; height: 200px; }
.card--lg .card__ttl { padding: 10px 20px 0; font-size: 26px; line-height: 36.4px; }
/* =====================================================================
   6. イベント（白帯・全幅）
   ===================================================================== */
.events { display: grid; grid-template-columns: repeat(2, 540px); gap: 40px; }
.events__panel { height: 600px; padding: 27px 20px 0; border-radius: 18px 18px 0 18px; }  /* Figma [18,18,0,18] */
.events__panel--pick { background: var(--pink); }
.events__panel--week { background: var(--sky); }
.events__h3 { font-size: 28px; font-weight: 600; letter-spacing: .02em; line-height: 1; }
.events__list { display: grid; gap: 10px; margin-top: 25px; }
.ev { position: relative; height: 160px; background: #fff; box-shadow: var(--shadow); border-radius: 16px 16px 0 16px; }
.ev > a { position: relative; display: flex; gap: 20px; height: 100%; padding: 10px; }
.ev__img { flex: 0 0 190px; width: 190px; height: 140px; border-radius: 12px; overflow: hidden; background: var(--cream); }
.ev__img img { width: 100%; height: 100%; object-fit: cover; }
.ev__body { width: 260px; padding-top: 3px; }
.ev__date { font-size: 15px; font-weight: 700; letter-spacing: .04em; line-height: 22.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ev__ttl { margin-top: 4px; font-size: 22px; font-weight: 800; letter-spacing: .02em; line-height: 30.8px; }

/* =====================================================================
   7. データ／制度
   ===================================================================== */
.data { display: grid; grid-template-columns: repeat(2, 530px); gap: 60px; }
.data__col .sec-ttl { padding-top: 0; }
.data__col:last-child .sec-ttl { color: var(--navy); }
.data__list { display: grid; gap: 10px; margin-top: 40px; }   /* Figma: 見出し38 + 40 → 6564 */
.dt { position: relative; height: 210px; background: #fff; box-shadow: var(--shadow); border-radius: 16px 16px 0 16px; }
.dt > a { position: relative; display: flex; gap: 20px; height: 100%; padding: 10px; }
.dt__img { flex: 0 0 190px; display: flex; align-items: center; justify-content: center; width: 190px; height: 190px; padding: 0 20px; border-radius: 12px; background: var(--blue); color: #fff; text-align: center; font-size: 36px; font-weight: 800; letter-spacing: .02em; line-height: 46.8px; }
.dt__body { width: 290px; padding-top: 12px; }
.dt__ttl { font-size: 26px; font-weight: 800; letter-spacing: .02em; line-height: 36.4px; height: 108px; overflow: hidden; }
.dt__txt { margin-top: 8px; font-size: 14px; font-weight: 500; line-height: 22.4px; letter-spacing: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }        /* Figma: list下端7214 → btn7244 */

/* =====================================================================
   FOOTER
   ===================================================================== */
.foot { margin-top: var(--sec-gap); }
.foot__top { background: #fff; }
.foot__top-in { display: flex; align-items: flex-start; gap: 60px; height: 140px; padding-top: 30px; }
.foot__logo img { width: 180px; height: 80px; }
.foot__intro { flex: 1 1 auto; }
.foot__lead { font-size: 24px; font-weight: 700; letter-spacing: .08em; line-height: 1; padding-bottom: 23px; border-bottom: 1px solid var(--line); }
.foot__nav { display: flex; gap: 20px; margin-top: 16px; }
.foot__nav a { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 600; letter-spacing: .04em; line-height: 1; white-space: nowrap; }
.foot__mid { position: relative; overflow: hidden; background: var(--navy); }
.foot__bg { position: absolute; inset: 0; }
.foot__bg img { width: 100%; height: 100%; object-fit: cover; }
.foot__bg::after { content: ""; position: absolute; inset: 0; background: #002341; opacity: .3; }
.foot__mid-in { position: relative; display: grid; grid-template-columns: 220px 540px 300px; gap: 20px; padding: 40px 0; }
.fcol { height: 440px; background: #fff; box-shadow: var(--shadow); border-radius: 16px 16px 0 16px; overflow: hidden; }
.fcol__h { display: flex; align-items: center; justify-content: center; height: 75px; background: var(--navy); color: #fff; font-size: 24px; font-weight: 700; letter-spacing: .1em; }
.fcol ul { padding: 19px 0 0; }
.fcol li { position: relative; }
.fcol li + li::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 1px; background: var(--line); }
.fcol li + li { margin-top: 19px; }
.fcol a { display: flex; align-items: center; justify-content: center; height: 42px; font-size: 18px; font-weight: 600; letter-spacing: .04em; }
.fcol a .ic--arw { position: absolute; right: 15px; top: 11px; }
.fmap { position: relative; height: 440px; background: #fff; box-shadow: var(--shadow); border-radius: 16px 16px 0 16px; }
.fmap__ttl { position: absolute; left: 30px; top: 22px; }  /* Figma のレイヤー順は MAP が title より前面 */
.fmap__h { font-size: 28px; font-weight: 600; letter-spacing: .02em; line-height: 36.4px; }
.fmap__txt { margin-top: 6px; font-size: 14px; font-weight: 500; line-height: 25.2px; letter-spacing: 0; }
.fmap__map { position: absolute; left: 18px; top: 0; width: 504px; }   /* Figma: japan 群 (300,7584) = card(280,7564)+(20,20)。viewBox に -20 の上余白を持たせ幅 504 */
.jmap { display: block; width: 100%; height: auto; overflow: visible; }
.jmap__pref { cursor: pointer; outline: none; }
.jmap__pref path { fill: var(--pc); transition: fill .35s, filter .35s; }
.jmap__pref text { font-family: "Noto Sans JP", sans-serif; font-size: 13px; font-weight: 500; letter-spacing: .04em; fill: #fff; stroke: var(--pc); stroke-width: 2px; stroke-linejoin: round; paint-order: stroke; pointer-events: none; transition: stroke .35s; }
.jmap__pref:hover path, .jmap__pref:focus-visible path { filter: brightness(1.22) saturate(1.1); }
.jmap__pref:hover text, .jmap__pref:focus-visible text { filter: brightness(1.22) saturate(1.1); }  /* 縁取りは県色のまま明るく（黒縁は SOU NG） */
.fside { display: grid; gap: 10px; align-content: start; }
.fbox { position: relative; display: flex; gap: 15px; height: 120px; padding: 10px; background: #fff; box-shadow: var(--shadow); border-radius: 16px 16px 0 16px; }
.fbox img { width: 150px; height: 100px; object-fit: cover; }
.fbox__body { width: 105px; padding-top: 4px; }
.fbox__ttl { font-size: 16px; font-weight: 800; letter-spacing: .02em; line-height: 22.4px; }
.fbox__txt { margin-top: 2px; font-size: 14px; font-weight: 500; line-height: 22.4px; letter-spacing: 0; }
.foot__search { margin-top: 10px; }
.foot__search input { height: 50px; padding-left: 30px; }
.foot__search button { right: 20px; }
.sns { display: flex; justify-content: center; gap: 20px; margin-top: 10px; }
.sns a { display: block; width: 60px; height: 60px; border-radius: 50%; transition: background .4s, transform .4s; }
.sns a:hover { background: rgba(255, 255, 255, .15); transform: translateY(-2px); }
.foot__btm { background: var(--navy); color: #fff; }
.foot__btm-in { display: flex; justify-content: space-between; align-items: center; height: 80px; font-size: 14px; font-weight: 500; line-height: 22.4px; }
.foot__copy { font-size: 12px; font-weight: 400; line-height: 19.2px; }

.carousel__ui { display: none; }

/* =====================================================================
   スクロール演出（IntersectionObserver で .is-in 付与）
   ===================================================================== */
.reveal-boot main { opacity: 0; }
.js-reveal .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.22, .61, .36, 1), transform .7s cubic-bezier(.22, .61, .36, 1); }
.js-reveal .reveal.is-in { opacity: 1; transform: none; }
/* 動きのバリエーション（main.js の REVEAL 表で割り当て） */
.js-reveal .reveal[data-reveal="left"] { transform: translateX(-40px); }
.js-reveal .reveal[data-reveal="right"] { transform: translateX(32px); }
.js-reveal .reveal[data-reveal="zoom"] { transform: scale(.92); }
.js-reveal .reveal[data-reveal="fade"] { transform: none; transition-duration: 1.1s; }
/* wipe は中身側を切る（要素自体を clip-path で隠すと IntersectionObserver が「見えていない」と判定して発火しない） */
.js-reveal .reveal[data-reveal="wipe"] { opacity: 1; transform: none; }
.js-reveal .reveal[data-reveal="wipe"] > * { clip-path: inset(0 100% 0 0); transition: clip-path 1.2s cubic-bezier(.65, 0, .35, 1); transition-delay: inherit; }
.js-reveal .reveal[data-reveal="wipe"].is-in > * { clip-path: inset(0 0 0 0); }
.js-reveal .reveal.is-in[data-reveal] { transform: none; }
/* 順番の遅延は main.js が画面上の位置（上→左）から付ける */

/* =====================================================================
   SP（767px 以下）— Figma に SP 版は無いためここで設計
   基準幅 390 / 左右余白 16 / セクション間 60 / カード余白は PC の比率を維持
   ===================================================================== */
@media (max-width: 767px) {
  :root { --gutter: 16px; --cw: auto; --sec-gap: 60px; }
  body { min-width: 0; overflow-x: hidden; }
  .container { width: auto; margin: 0 16px; }
  .sec-ttl { font-size: 26px; padding-top: 0; }
  .sec-head { height: auto; flex-direction: column; gap: 14px; margin-bottom: 20px; }
  .sec-head .btn-line { width: 100%; }
  /* header */
  .topbar { height: auto; padding: 8px 16px; }  .head { position: sticky; top: 0; height: 60px; background: #fff; box-shadow: 0 1px 0 var(--line); pointer-events: auto; z-index: 30; }  .menu-btn { display: flex; position: absolute; right: 8px; top: 8px; width: 44px; height: 44px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
  .menu-btn span { display: block; width: 22px; height: 2px; background: var(--navy); transition: transform .25s, opacity .25s; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }  .drawer { display: block; position: fixed; inset: 0; z-index: 25; background: rgba(50, 40, 35, .6); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
  .drawer.is-open { opacity: 1; visibility: visible; transition: opacity .3s, visibility 0s; }   /* 開く瞬間に visible にしないと閉じるボタンへ focus できない */
  .drawer__inner { position: absolute; right: 0; top: 0; bottom: 0; width: min(320px, 85vw); padding: 116px 20px 40px; /* 上帯(可変〜46)+ヘッダー60 の下から */ background: #fff; overflow-y: auto; transform: translateX(100%); transition: transform .3s; }
  .drawer.is-open .drawer__inner { transform: none; }
  .drawer__search input { background: var(--bg); }
  .drawer__main { margin-top: 20px; }
  .drawer__main a { display: flex; align-items: center; gap: 12px; padding: 8px 0; font-size: 17px; font-weight: 700; }
  .drawer__cat { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
  .drawer__cat a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 100px; font-size: 13px; font-weight: 600; }
  .drawer__cat a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--dot); }
  .drawer__sub { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
  .drawer__sub a { display: flex; align-items: center; gap: 8px; padding: 7px 0; font-size: 14px; font-weight: 500; }

  /* MV */  .mv__video { width: 240px; height: 240px; }  /* パネル角丸(62)の分だけ最初のカードを下げる */         /* 写真パネルの下端へ少し重ねて、PC の重なりを踏襲 */
  .carousel { position: relative; }
  .carousel__track { display: flex !important; gap: 12px; overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 4px 16px 12px; }
  .carousel__track::-webkit-scrollbar { display: none; }
  .carousel__track > li { flex: 0 0 76%; scroll-snap-align: center; }
  .carousel__ui { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 4px; }
  .carousel__dots { display: flex; gap: 8px; }
  .carousel__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: background .3s, transform .3s; }
  .carousel__dot.is-on { background: var(--blue); transform: scale(1.25); }
  .carousel__btn { width: 36px; height: 36px; border: 1px solid var(--blue); border-radius: 50%; color: var(--blue); display: flex; align-items: center; justify-content: center; }
  .carousel__btn svg { width: 12px; height: 12px; }
  .carousel__btn[disabled] { opacity: .3; }
  .card__img { width: 100%; height: auto; aspect-ratio: 200 / 130; }
  /* 1 診断 */
  /* 2 ストーリー */
  .story { grid-template-columns: 1fr; gap: 10px; }
  .story__item { height: auto; }
  .story__item > a { gap: 12px; }
  .story__item .story__img { flex-basis: 120px; width: 120px; height: 84px; }   /* 画像は 2x=400px 書き出し → 表示 200px 以下を守る */
  .story__body { padding: 0 0 4px; }
  .story__meta { flex-wrap: wrap; }
  .story__quote { font-size: 17px; line-height: 26px; }
  /* 3 地域 */  .area__tab { flex: 0 0 auto; width: auto; min-width: 84px; height: 48px; padding: 0 14px; font-size: 17px; }
  .area__panel { padding-top: 16px; }
  .area__name { font-size: 56px; margin: 4px 0 0; }
  .area__lead { margin-top: 10px; font-size: 18px; line-height: 28px; }
  .area__desc { font-size: 14px; line-height: 24px; }
  .area__col--stat, .area__col--feat, .area__col--more { width: auto; }
  .area__h3 { font-size: 20px; line-height: 30px; }
  .area__h3 small { display: block; margin: 2px 0 0; font-size: 12px; line-height: 18px; }
  .stat { height: auto; }
  .stat__side { padding-bottom: 12px; }
  .stat__row { justify-content: center; }
  .stat__lbl { white-space: nowrap; }
  .num { font-size: 28px; }
  .feat { height: auto; }
  .feat li { height: auto; white-space: normal; font-size: 14px; line-height: 20px; }
  .more { height: auto; }
  .jobs { padding: 16px 12px 12px; }
  .jobs__list { margin: 12px -12px 0 !important; padding: 4px 12px 12px !important; }
  .jobs .carousel__ui { margin-top: 0; }
  .jobs .carousel__dot { background: rgba(255, 255, 255, .35); }
  .jobs .carousel__dot.is-on { background: #fff; }
  .jobs .carousel__btn { border-color: #fff; color: #fff; }
  .area__foot { height: auto; padding: 20px 16px; }
  .area__foot .btn-line { width: 100%; }

  /* 4 地域別 */  .links { grid-template-columns: 1fr; gap: 12px; }  /* 5 コラム */
  .cols { flex-direction: column; gap: 16px; }
  .card--lg { height: auto; }
  .card--lg .card__img { width: 100%; height: auto; aspect-ratio: 305 / 200; }
  .card--lg .card__ttl { padding: 10px 16px 18px; font-size: 20px; line-height: 30px; }
  /* 6 イベント */
  .events { grid-template-columns: 1fr; gap: 16px; }
  .events__panel { height: auto; padding: 20px 12px 12px; }
  .events__h3 { font-size: 22px; }
  .events__list { margin-top: 16px; }
  .ev { height: auto; }
  .ev > a { gap: 12px; }
  .ev__img { flex-basis: 120px; width: 120px; height: 90px; }
  .ev__body { width: auto; flex: 1 1 auto; padding-top: 0; }
  .ev__date { font-size: 12px; line-height: 18px; }
  .ev__ttl { font-size: 16px; line-height: 24px; }

  /* 7 データ */
  .data { grid-template-columns: 1fr; gap: 50px; }
  .data__list { margin-top: 20px; }
  .dt { height: auto; }
  .dt > a { gap: 12px; }
  .dt__img { flex-basis: 110px; width: 110px; height: 110px; padding: 0 8px; font-size: 18px; line-height: 26px; }
  .dt__body { width: auto; flex: 1 1 auto; padding-top: 2px; }
  .dt__ttl { height: auto; font-size: 17px; line-height: 26px; }
  .dt__txt { margin-top: 6px; font-size: 12px; line-height: 19px; }
  /* footer */
  .foot__top-in { flex-direction: column; gap: 16px; height: auto; padding: 24px 0; }
  .foot__logo img { width: 135px; height: 60px; }
  .foot__lead { font-size: 16px; line-height: 26px; padding-bottom: 12px; }
  .foot__nav { flex-wrap: wrap; gap: 10px 16px; margin-top: 12px; }
  .foot__nav a { font-size: 14px; }
  .foot__mid-in { grid-template-columns: 1fr; gap: 12px; padding: 24px 0; }
  .fcol { height: auto; padding-bottom: 12px; }
  .fmap { height: auto; padding: 20px 12px 12px; }
  .fmap__ttl { position: static; }
  .fmap__h { font-size: 24px; line-height: 32px; }
  .fmap__map { position: static; width: 100%; margin-top: 12px; }
  .fbox__body { flex: 1 1 auto; width: auto; }
  .foot__btm-in { flex-direction: column; gap: 6px; height: auto; padding: 16px 0; text-align: center; font-size: 12px; }
}
