/*
Theme Name: HokkaidoMak Child
Template: swell
Version: 1.0.0
Author: Tetsu Onodera
Description: HokkaidoMak タイ人向け北海道旅行ガイド 子テーマ
*/

/* ===== HokkaidoMak カラー変数 ===== */
:root {
  --blue: #0E4DA4;
  --blue-deep: #0A3470;
  --pink: #FF5A8A;
  --amber: #FFB020;
  --ink: #1B2430;
  --gray: #5B6675;
  --line: #E6EBF2;
  --bg: #F6F9FC;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(14,77,164,.10);
}

/* ===== フォント（Noto Sans Thai対応） ===== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&family=Noto+Sans+Thai:wght@400;500;700;900&display=swap');

body {
  font-family: "Noto Sans Thai", "Noto Sans JP", sans-serif !important;
  -webkit-font-smoothing: antialiased;
}

/* ===== プレースホルダ画像スタイル ===== */
.ph {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  font-weight: 700;
  font-size: .8rem;
  background: linear-gradient(135deg,#3a6fd0,#0E4DA4 60%,#0A3470);
  position: relative;
  overflow: hidden;
}
.ph span {
  position: relative;
  z-index: 2;
  opacity: .95;
  padding: 8px 14px;
  background: rgba(0,0,0,.18);
  border-radius: 8px;
  backdrop-filter: blur(2px);
}
.ph.warm { background: linear-gradient(135deg,#ff8aa9,#FF5A8A 60%,#e83e72); }
.ph.gold  { background: linear-gradient(135deg,#ffd071,#FFB020 60%,#e8920a); }
.ph.snow  { background: linear-gradient(135deg,#cfe2ff,#7fa8e8 70%,#4f7fd0); }

/* ===== TOPページ ヒーロー ===== */
.hkm-hero {
  position: relative;
  color: #fff;
  min-height: 560px;
  display: flex;
  align-items: center;
}
.hkm-hero .ph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hkm-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,rgba(10,52,112,.25),rgba(10,52,112,.72));
}
.hkm-hero-inner {
  position: relative;
  z-index: 3;
  padding: 60px 0;
}
.hkm-badge {
  display: inline-block;
  background: var(--pink);
  color: #fff;
  font-weight: 700;
  font-size: .8rem;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hkm-hero h1 {
  font-size: 2.7rem;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -.01em;
  margin-bottom: 8px;
  max-width: 16em;
}
.hkm-hero .th {
  font-size: 1.15rem;
  font-weight: 700;
  opacity: .95;
  margin-bottom: 14px;
}
.hkm-hero p {
  font-size: 1.05rem;
  max-width: 34em;
  opacity: .95;
  margin-bottom: 28px;
}
.hkm-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hkm-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 999px;
  cursor: pointer;
  transition: .15s;
  border: 0;
  text-decoration: none;
}
.hkm-btn-amber {
  background: var(--amber);
  color: #3a2700;
}
.hkm-btn-amber:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255,176,32,.4);
  color: #3a2700;
}
.hkm-btn-ghost {
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.6);
}
.hkm-btn-ghost:hover {
  background: rgba(255,255,255,.25);
  color: #fff;
}

/* ===== シーズンセレクター ===== */
.hkm-season {
  background: var(--bg);
  padding: 38px 0;
}
.hkm-season h2,
.hkm-sec-h {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 6px;
}
.hkm-sec-sub {
  color: var(--gray);
  margin-bottom: 22px;
}
.hkm-season-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.hkm-season-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: .18s;
  cursor: pointer;
}
.hkm-season-card:hover { transform: translateY(-4px); }
.hkm-season-card .ph { height: 120px; }
.hkm-season-card .body { padding: 14px 16px; }
.hkm-season-card h3 { font-size: 1.05rem; font-weight: 800; }
.hkm-season-card p  { font-size: .82rem; color: var(--gray); }
.hkm-tag-hot {
  display: inline-block;
  background: var(--pink);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 6px;
  vertical-align: middle;
}

/* ===== 記事カード ===== */
.hkm-articles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.hkm-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: .18s;
  text-decoration: none;
  color: var(--ink);
  display: block;
}
.hkm-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  color: var(--ink);
}
.hkm-card .ph { height: 190px; }
.hkm-card .body { padding: 18px 20px 22px; }
.hkm-cat {
  font-size: .72rem;
  font-weight: 700;
  color: var(--blue);
  background: #E8F0FC;
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.hkm-cat.soccer { color: #fff; background: var(--blue-deep); }
.hkm-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 8px;
}
.hkm-card p { font-size: .88rem; color: var(--gray); }
.hkm-ready { font-size: .72rem; color: #16a34a; font-weight: 700; margin-top: 10px; }
.hkm-soon  { font-size: .72rem; color: #b0863a; font-weight: 700; margin-top: 10px; }

/* ===== サッカーバンド ===== */
.hkm-soccer-band {
  background: linear-gradient(120deg,var(--blue-deep),var(--blue));
  color: #fff;
  border-radius: 24px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
}
.hkm-soccer-band .txt { padding: 46px; }
.hkm-soccer-band .ph  { min-height: 320px; height: 100%; }
.hkm-badge2 {
  display: inline-block;
  background: var(--amber);
  color: #3a2700;
  font-weight: 800;
  font-size: .78rem;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.hkm-soccer-band h2 {
  font-size: 1.9rem;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 14px;
}
.hkm-soccer-band p { opacity: .92; margin-bottom: 24px; font-size: 1rem; }

/* ===== Why / 信頼 ===== */
.hkm-why { background: var(--bg); }
.hkm-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}
.hkm-why-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.hkm-why-card .ic { font-size: 2rem; margin-bottom: 10px; }
.hkm-why-card h3  { font-size: 1.1rem; font-weight: 800; margin-bottom: 6px; }
.hkm-why-card p   { font-size: .9rem; color: var(--gray); }

/* ===== SNS ===== */
.hkm-sns { text-align: center; }
.hkm-sns h2   { font-size: 1.6rem; font-weight: 900; margin-bottom: 8px; }
.hkm-sns p    { color: var(--gray); margin-bottom: 24px; }
.hkm-sns-row  { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.hkm-sns-btn  {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 14px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}
.hkm-fb { background: #1877F2; }
.hkm-tt { background: #000; }
.hkm-ig { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.hkm-pt { background: #27ae60; }

/* ===== カスタムフッター ===== */
.hkm-footer {
  background: var(--ink);
  color: #b8c2cf;
  padding: 48px 0 28px;
  font-size: .88rem;
}
.hkm-foot-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
}
.hkm-foot-col h4 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.hkm-foot-col a  { display: block; color: #9aa6b4; margin-bottom: 7px; text-decoration: none; }
.hkm-foot-col a:hover { color: #fff; }
.hkm-copy {
  border-top: 1px solid #2b3644;
  padding-top: 18px;
  color: #7d8a99;
  font-size: .8rem;
}
.hkm-disc { font-size: .72rem; color: #6b7787; margin-top: 8px; }

/* ===== 共通ユーティリティ ===== */
.hkm-wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.hkm-section { padding: 54px 0; }
.hkm-lang {
  display: flex;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  font-size: .8rem;
}
.hkm-lang button {
  border: 0;
  background: none;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  color: var(--gray);
}
.hkm-lang button.on { background: var(--blue); color: #fff; }

/* ===== レスポンシブ ===== */
@media (max-width: 860px) {
  .hkm-hero h1         { font-size: 2rem; }
  .hkm-season-grid     { grid-template-columns: repeat(2,1fr); }
  .hkm-articles        { grid-template-columns: 1fr; }
  .hkm-why-grid        { grid-template-columns: 1fr; }
  .hkm-soccer-band     { grid-template-columns: 1fr; }
  .hkm-soccer-band .ph { min-height: 220px; order: -1; }
}

/* ============================================================
   記事本文 — リッチコンポーネント
   ============================================================ */

/* ── 概要カード（記事冒頭サマリー） ── */
.hkm-summary {
  background: linear-gradient(135deg, #EFF4FF 0%, #F6F9FC 100%);
  border: 1.5px solid #C7D9F7;
  border-radius: 16px;
  padding: 24px 28px;
  margin: 0 0 32px;
}
.hkm-summary h4 {
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 14px;
}
.hkm-summary table {
  width: 100%;
  border-collapse: collapse;
}
.hkm-summary table tr td {
  padding: 7px 12px;
  font-size: .92rem;
  border-bottom: 1px solid #D6E4F7;
  vertical-align: top;
}
.hkm-summary table tr:last-child td { border-bottom: none; }
.hkm-summary table tr td:first-child {
  font-weight: 700;
  color: var(--blue);
  white-space: nowrap;
  width: 38%;
}

/* ── インフォボックス ── */
.hkm-box {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border-radius: 14px;
  padding: 18px 20px;
  margin: 24px 0;
  line-height: 1.65;
}
.hkm-box .hkm-box-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.hkm-box .hkm-box-body { flex: 1; }
.hkm-box .hkm-box-body strong {
  display: block;
  font-size: .82rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.hkm-box p { margin: 0; font-size: .93rem; }

.hkm-box-tip  { background: #EAF6FF; border-left: 4px solid #2196F3; }
.hkm-box-tip  .hkm-box-body strong { color: #1565C0; }

.hkm-box-warn { background: #FFF8E7; border-left: 4px solid var(--amber); }
.hkm-box-warn .hkm-box-body strong { color: #B8870A; }

.hkm-box-check { background: #EDFAF2; border-left: 4px solid #27AE60; }
.hkm-box-check .hkm-box-body strong { color: #1A7A44; }

.hkm-box-hot { background: #FFF0F4; border-left: 4px solid var(--pink); }
.hkm-box-hot .hkm-box-body strong { color: #C0295A; }

/* ── ステップガイド ── */
.hkm-steps { margin: 28px 0; }
.hkm-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
  position: relative;
}
.hkm-step::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 44px;
  width: 2px;
  height: calc(100% - 8px);
  background: #D0DFEF;
}
.hkm-step:last-child::before { display: none; }
.hkm-step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
  font-size: .95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(14,77,164,.25);
}
.hkm-step-body { flex: 1; padding-top: 7px; }
.hkm-step-body h4 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}
.hkm-step-body p { margin: 0; font-size: .9rem; color: var(--gray); }

/* ── ハイライトグリッド（3〜4カード） ── */
.hkm-highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.hkm-highlight-card {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 20px 16px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(14,77,164,.06);
}
.hkm-highlight-card .ic  { font-size: 1.8rem; margin-bottom: 10px; }
.hkm-highlight-card strong { display: block; font-size: .9rem; color: var(--blue); margin-bottom: 6px; }
.hkm-highlight-card p { margin: 0; font-size: .82rem; color: var(--gray); line-height: 1.5; }

/* ── 比較テーブル（記事内汎用） ── */
.hkm-table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(14,77,164,.08);
}
.hkm-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.hkm-table-wrap table th {
  background: var(--blue);
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  font-size: .85rem;
  white-space: nowrap;
}
.hkm-table-wrap table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.hkm-table-wrap table tr:last-child td { border-bottom: none; }
.hkm-table-wrap table tr:nth-child(even) td { background: #F6F9FC; }
.hkm-table-wrap table td:first-child { font-weight: 600; color: var(--blue); }

/* ── タイムライン（スケジュール） ── */
.hkm-timeline { margin: 28px 0; }
.hkm-timeline-item {
  display: flex;
  gap: 0;
  margin-bottom: 0;
}
.hkm-tl-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80px;
  flex-shrink: 0;
}
.hkm-tl-time {
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: .8rem;
  padding: 4px 8px;
  border-radius: 20px;
  white-space: nowrap;
  z-index: 1;
}
.hkm-tl-line {
  width: 2px;
  background: #D0DFEF;
  flex: 1;
  margin: 4px 0;
  min-height: 20px;
}
.hkm-timeline-item:last-child .hkm-tl-line { display: none; }
.hkm-tl-right {
  flex: 1;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 0 0 12px 12px;
}
.hkm-tl-right h4 { margin: 0 0 4px; font-size: .95rem; color: var(--ink); }
.hkm-tl-right p  { margin: 0; font-size: .85rem; color: var(--gray); }

/* ── バッジ付きリスト ── */
.hkm-checklist { list-style: none; padding: 0; margin: 16px 0; }
.hkm-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: .92rem;
}
.hkm-checklist li:last-child { border-bottom: none; }
.hkm-checklist li::before {
  content: '✓';
  color: #27AE60;
  font-weight: 900;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── コストバッジ ── */
.hkm-cost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFF3CD;
  border: 1px solid #F0C94A;
  border-radius: 20px;
  padding: 4px 14px;
  font-size: .82rem;
  font-weight: 700;
  color: #7A5900;
}

@media (max-width: 600px) {
  .hkm-highlight-grid { grid-template-columns: repeat(2,1fr); }
  .hkm-tl-left { width: 62px; }
  .hkm-tl-time { font-size: .72rem; padding: 3px 6px; }
  .hkm-summary table tr td:first-child { width: 45%; }
}
