@charset "UTF-8";
/*
 * pages/top.css : トップページ(固定ページ top=3977)専用CSS
 *   旧構成(3977本文内の<style>3ブロック＋blog_parts 8047のKV CSS)を脱SWELL移植で本ファイルへ集約(2026-07-26)。
 *   スラッグ自動読込(noside_base_enqueue_page_css)でトップのみ読み込まれる。
 *   帯レイアウト(tn-band)・新着(tn-news-list)・ボタン(tn-more-btn)・ヘッダーHubナビは assets/css/site.css 側。
 */

/* ============================================================
   KV(旧 blog_parts 8047 top_kv)
   ============================================================ */
/* ====================================
   とーんと日本橋 KV (SE Optimized)
   ==================================== */

:root {
    /* サイト共通カラー変数 */
    --tn-red: #b91c1c;
    --tn-gold: #d97706;
    --tn-black: #222;
    --tn-bg-overlay: rgba(255, 255, 255, 0.94);
    --tn-font-mincho: "Yu Mincho", "YuMincho", serif;
    --tn-font-gothic: "Noto Sans JP", sans-serif;
    /* PCのKVの高さ。KV右へ移す4街の帯(.tn-area-band)が同じ値を参照して高さを合わせるので、
       ここを変えると帯も一緒に追従する（2か所を手で揃えなくてよい） */
    --tn-kv-h: clamp(700px, 90vh, 1000px);
}

/* --- ベースコンテナ --- */
.tn-hero-wrapper {
    position: relative;
    width: 100%;
    height: var(--tn-kv-h); /* PC画面の90%の高さ（700〜1000pxに収める） */
    overflow: hidden;
    background-color: #333;
    font-family: var(--tn-font-mincho);
}

/* --- 背景画像エリア --- */
.tn-hero-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    /* アニメーション設定: 24秒かけてゆっくり引く */
    transform: scale(1.15);
    animation: tnZoomOut 24s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* 
  ▼▼▼ PC用画像設定 (960px以上) ▼▼▼ 
*/
@media screen and (min-width: 960px) {
    .tn-hero-bg {
        /* ★ここにPC画像のURLを入れる */
        background-image: url('/wp-content/uploads/2025/11/kv_pc.jpg') !important;
        
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
    }
}

/* 
  ▼▼▼ SP用画像設定 (959px以下) ▼▼▼ 
*/
@media screen and (max-width: 959px) {
    .tn-hero-wrapper {
        height: 100vh; /* スマホは画面いっぱい */
    }
    
    .tn-hero-bg {
        /* ★ここにSP画像のURLを入れる */
        background-image: url('/wp-content/uploads/2025/11/kv_sp.jpg') !important;
        
        transform: scale(1.1);
        animation: tnZoomOutSP 24s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    }
}

/* アニメーション定義 */
@keyframes tnZoomOut { 0% { transform: scale(1.15); } 100% { transform: scale(1.0); } }
@keyframes tnZoomOutSP { 0% { transform: scale(1.1); } 100% { transform: scale(1.0); } }


/* 
===================================================
  デザイン装飾
===================================================
*/
.tn-hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: radial-gradient(rgba(0,0,0,0.1) 1px, transparent 1px); background-size: 4px 4px; background-color: rgba(0,0,0,0.05); z-index: 2; pointer-events: none; }

/* 中央の白いパネル */
.tn-hero-content { position: absolute; top: 50%; left: 10%; transform: translateY(-50%); z-index: 10; background: var(--tn-bg-overlay); min-width: 360px; padding: 60px 50px; border-radius: 2px; box-shadow: 0 20px 50px rgba(0,0,0,0.15); background-image: linear-gradient(to right, rgba(255,255,255,0.8), rgba(255,255,255,0.95)), url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.07'/%3E%3C/svg%3E"); border-left: 8px solid var(--tn-red); display: flex; justify-content: center; align-items: center; }
.tn-hero-content::after { content: ''; position: absolute; top: 8px; left: 8px; right: 8px; bottom: 8px; border: 1px solid var(--tn-gold); opacity: 0.4; pointer-events: none; }

/* テキスト周り */
.tn-text-wrapper { writing-mode: vertical-rl; display: flex; flex-direction: row; gap: 30px; align-items: flex-start; justify-content: center; margin: 0 auto; }
.tn-hero-copy-main { font-size: 2.8rem; font-weight: 700; line-height: 1.4; letter-spacing: 0.15em; color: var(--tn-black); margin: 0; white-space: nowrap; }
.tn-hero-copy-sub { font-size: 1.1rem; line-height: 1.8; color: #444; letter-spacing: 0.15em; border-top: 1px solid #ccc; padding-top: 20px; margin: 0; white-space: nowrap; }
.tn-hero-eng { position: absolute; bottom: 15px; right: 15px; font-family: var(--tn-font-gothic); font-size: 0.65rem; color: var(--tn-red); letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.8; }

/* ナビゲーションボタン */
.tn-hero-nav { position: absolute; bottom: 60px; right: 5%; z-index: 10; display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.tn-hero-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 130px; height: 100px; background: rgba(255, 255, 255, 0.95); text-decoration: none !important; border-radius: 2px; transition: all 0.3s ease; box-shadow: 0 5px 15px rgba(0,0,0,0.1); border-bottom: 3px solid #ddd; }
.tn-hero-btn:hover { transform: translateY(-4px); background: #fff; border-bottom-color: var(--tn-red); box-shadow: 0 12px 30px rgba(0,0,0,0.2); }
.tn-hero-btn:hover .tn-btn-icon { fill: var(--tn-red); transform: scale(1.1); }
.tn-hero-btn:hover .tn-btn-jp { color: var(--tn-red); }
.tn-btn-icon { width: 28px; height: 28px; margin-bottom: 8px; fill: #444; transition: all 0.3s; }
.tn-btn-jp { font-size: 0.9rem; font-weight: 600; color: #333; transition: all 0.3s; margin-bottom: 3px; font-family: var(--tn-font-mincho); }
.tn-btn-en { font-family: var(--tn-font-gothic); font-size: 0.55rem; color: #999; text-transform: uppercase; letter-spacing: 0.05em; }

/* スクロール誘導 */
.tn-scroll-down { position: absolute; bottom: 25px; left: 50%; transform: translateX(-50%); z-index: 5; color: #fff; font-family: var(--tn-font-gothic); font-size: 0.75rem; letter-spacing: 0.2em; display: flex; flex-direction: column; align-items: center; text-shadow: 0 1px 3px rgba(0,0,0,0.5); opacity: 0.9; }
.tn-scroll-line { width: 1px; height: 70px; background: rgba(255,255,255,0.3); margin-top: 10px; position: relative; overflow: hidden; }
.tn-scroll-line::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 50%; background: #fff; animation: scrollAnim 2s cubic-bezier(0.77, 0, 0.175, 1) infinite; }
@keyframes scrollAnim { 0% { top: -50%; } 100% { top: 100%; } }

/* 
===================================================
  SP調整 (iPhone SE等対応)
===================================================
*/
@media screen and (max-width: 959px) {
    .tn-hero-content {
        /* 上下の位置を調整 (40% -> 36%へ変更し上に逃がす) */
        top: 36%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 85%;
        max-width: 400px;
        min-width: auto;
        
        /* 余白を削減 (50px 30px -> 30px 20pxへ変更) */
        padding: 30px 20px;
        
        border-left: none;
        border-top: 6px solid var(--tn-red);
    }
    
    /* テキスト間隔も少し詰める */
    .tn-text-wrapper {
        gap: 15px; 
        align-items: flex-start;
    }
    .tn-hero-copy-main { font-size: clamp(24px, 7vw, 36px); line-height: 1.5; }
    .tn-hero-copy-sub { font-size: clamp(12px, 3.5vw, 15px); line-height: 1.8; padding-top: 12px; }
    
    /* ナビゲーション位置調整 */
    .tn-hero-nav {
        right: 0; left: 0; bottom: 15px; width: 100%; padding: 0 10px; box-sizing: border-box;
        display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; grid-template-columns: none;
    }
    
    /* ボタンの高さを少し抑える (75px -> 65px) */
    .tn-hero-btn { width: 31%; height: 65px; border-bottom-width: 2px; }
    .tn-btn-icon { width: 22px; height: 22px; margin-bottom: 4px; }
    .tn-btn-jp { font-size: 0.7rem; margin-bottom: 0; }
    .tn-btn-en { display: none; }
    
    /* スクロール誘導の位置調整 */
    .tn-scroll-down { bottom: 175px; }
    .tn-scroll-line { height: 35px; }
}

/* ============================================================
   トップ改修(エリアカード/新着見出し/カテゴリー/横断検索) 旧3977本文内CSS
   ============================================================ */
/* ============================================================
   とーんと日本橋 トップ改修 2026-06-29
   対象: ①エリアカード(tn-area2) ②新着記事(tn-news) ③カテゴリー(tn-cat2)
   方針: AI生成感排除マニュアル準拠 / 上場企業メディアの落ち着き
   - 純黒禁止(#1a1a1a) / 装飾下線・border-left・::before罫線なし
   - 英字eyebrow/英語サブラベルなし / 角丸は最小 / 単色トーン
   - 親クラス前置(0,2,0+)で詳細度を確保
   - ラベル/キャッチ/ボタンは必ず1行(white-space:nowrap + clamp)
   ============================================================ */

/* ============================================================
   ① エリアカード
   ============================================================ */

/* セクション見出し(共通の上品トーン) */
.tn-sec-head { text-align: center; margin: 0 0 28px; }
.tn-sec-head__ttl {
  display: block;
  font-family: "Shippori Mincho", "Yu Mincho", serif;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 0.08em;
  line-height: 1.3;
  margin: 0;
}
.tn-sec-head__sub {
  display: block;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.82rem;
  color: #6b6b6b;
  letter-spacing: 0.04em;
  margin-top: 8px;
}

/* レイアウト枠(tn-ネイティブ構造) */
/* 4街の帯。地色は本文のinline styleではなくここで持つ（PCでKVへ移すときに透明へ切り替えるため） */
.tn-area-band { background-color: #ffffff; }
.tn-area-row { max-width: 1120px; margin-left: auto; margin-right: auto; }
.tn-area-row__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.tn-area-row__col {
  margin: 0;
  min-width: 0;
}

/* カード本体 */
.tn-area-row a.tn-area-card,
.tn-area-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none !important;
  color: inherit !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tn-area-row a.tn-area-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.10);
  opacity: 1 !important;
}

/* 画像 */
.tn-area-card__media {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f3f3f3;
}
.tn-area-row .tn-area-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25,0.8,0.25,1);
}
.tn-area-row a.tn-area-card:hover .tn-area-card__media img { transform: scale(1.06); }

/* 本文 */
.tn-area-card__body {
  display: flex;
  flex-direction: column;
  padding: 16px 16px 18px;
  flex: 1 1 auto;
}
.tn-area-row .tn-area-card__name {
  display: block;
  font-family: "Shippori Mincho", "Yu Mincho", serif;
  font-size: clamp(0.95rem, 0.85rem + 0.4vw, 1.12rem);
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 0.02em;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0 0 6px;
}
/* キャッチ＝地図(tone-area-nav)の各エリア色に連動。丸ピンを連想させるドット＋エリア色テキスト */
.tn-area-row .tn-area-card__catch {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--tn-act, #b8242b);
  letter-spacing: 0.03em;
  line-height: 1.4;
  margin: 0 0 10px;
}
.tn-area-row .tn-area-card__dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tn-ac, #b8242b);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--tn-ac, #b8242b) 16%, transparent);
}
.tn-area-row .tn-area-card__catchtxt {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tn-area-row .tn-area-card__desc {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.78rem;
  line-height: 1.7;
  color: #555;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tn-area-row .tn-area-card__keys {
  display: block;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.72rem;
  color: #8a8a8a;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0 0 14px;
}
.tn-area-card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--tn-act, #b8242b);
  white-space: nowrap;
}
.tn-area-card__more svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--tn-act, #b8242b);
  stroke-width: 2;
  transition: transform 0.25s ease;
}
.tn-area-row a.tn-area-card:hover .tn-area-card__more svg { transform: translateX(4px); }

/* SPスワイプ誘導(SPのみ表示) */
.tn-area-hint { display: none; }

/* ---- SP: 横スクロール カルーセル ---- */
@media screen and (max-width: 768px) {
  .tn-area-row { max-width: 100%; }
  .tn-area-row__inner {
    display: flex;
    flex-wrap: nowrap;
    grid-template-columns: none;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 4px 16px 14px;
    scroll-padding-left: 16px;
  }
  .tn-area-row__inner::-webkit-scrollbar { height: 6px; }
  .tn-area-row__inner::-webkit-scrollbar-thumb {
    background: #d9d9d9; border-radius: 6px;
  }
  .tn-area-row__col {
    flex: 0 0 80%;
    max-width: 80%;
    scroll-snap-align: start;
  }
  .tn-area-card__body { padding: 14px 15px 16px; }
  .tn-area-row .tn-area-card__name { font-size: 1.05rem; }
  .tn-area-row .tn-area-card__catch { font-size: 0.85rem; }
  .tn-area-row .tn-area-card__desc { font-size: 0.82rem; }
  .tn-area-row .tn-area-card__keys { font-size: 0.76rem; }

  .tn-area-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 4px 16px 0;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 0.72rem;
    color: #9a9a9a;
    letter-spacing: 0.04em;
  }
  .tn-area-hint svg { width: 16px; height: 16px; fill: #c2c2c2; }
}

/* 中間幅(タブレット): 2列に */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .tn-area-row__inner { grid-template-columns: repeat(2, 1fr); }
}

/* ---- エリア導入ヒーロー(JSリビール) ---- */
.tn-area-lead {
  text-align: center;
  margin: 0 auto 34px;
  padding: 0 16px;
  max-width: 1000px;
}
.tn-area-lead .tn-area-lead__sub {
  display: block;
  font-family: "Shippori Mincho", "Yu Mincho", serif;
  font-size: clamp(0.92rem, 0.85rem + 0.3vw, 1.05rem);
  font-weight: 500;
  color: #b8242b;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  line-height: 1.4;
  margin: 0 0 0.7em;
  /* リビール(全体フェード) */
  opacity: 0;
  transform: translateY(0.5em);
  filter: blur(4px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2,0.7,0.2,1), filter 0.7s ease;
}
.tn-area-lead .tn-area-lead__main {
  display: block;
  font-family: "Shippori Mincho", "Yu Mincho", serif;
  font-size: clamp(1.55rem, 1.1rem + 2.3vw, 2.7rem);
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 0.1em;
  line-height: 1.4;
  margin: 0;
}
/* 1文字ずつのリビール(JSでspan分割) */
.tn-area-lead .tn-area-lead__ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.55em);
  filter: blur(6px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2,0.7,0.2,1), filter 0.6s ease;
  transition-delay: calc(var(--i) * 42ms);
  will-change: opacity, transform;
}
.tn-area-lead.is-in .tn-area-lead__sub {
  opacity: 1; transform: none; filter: none;
}
.tn-area-lead.is-in .tn-area-lead__ch {
  opacity: 1; transform: none; filter: none;
}
/* JS未実行/未分割時のフォールバック(必ず読める) */
.tn-area-lead.no-js .tn-area-lead__sub,
.tn-area-lead.no-js .tn-area-lead__main { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) {
  .tn-area-lead .tn-area-lead__sub,
  .tn-area-lead .tn-area-lead__ch {
    opacity: 1 !important; transform: none !important; filter: none !important;
    transition: none !important;
  }
}

/* ============================================================
   ①-2 PC(1280px以上): KVの右側を「4つの個性豊かな街 2x2 ＋ 横断検索」にする
                       （2026-07-26 UI期第4回・嶋崎指示）
   ------------------------------------------------------------
   KV右にあった6カテゴリーナビ(.tn-hero-nav)は、ヘッダーのHubナビと項目もリンクも同じで
   PCでは二重になっていたため出さない。空いた右側へ、KVの下にあった2つの帯

     ・「4つの個性豊かな街」(.tn-area-band)
     ・記事と用語集の横断検索(.tn-hsearch-wrap)

   を、帯そのまま .site-main 基準で絶対配置して移す。同じ要素を動かしているので、
   KVの下からは自動的に消える（同じリンク・同じ検索窓をHTMLに二重に持たない）。

   縦の積み方＝KVの高さ(--tn-kv-h)から、見出し＋カード2行＋間隔＋検索窓の合計を引いて
   上下に均等配分する（--tn-kv-block-top）。KVの高さが端末で変わっても、
   4街と検索窓の間隔だけは一定に保つため、カードの高さは固定値で持つ。

   幅1280px未満（狭いノートPC・小さいウィンドウ）は従来どおり「KVの下に帯が2つ」のまま。
   カードを2列に置くと1枚が350pxを切り、写真の横に紹介文を並べる余地がなくなるため。
   SP(959px以下)は一切変えない（検索窓もKVの下のまま）。
   ============================================================ */
@media screen and (min-width: 960px) {
  /* ヘッダーのHubナビと重複するため、PCではKV内のカテゴリーナビを出さない */
  .tn-hero-nav { display: none; }
}

@media screen and (min-width: 1280px) {
  :root {
    --tn-kv-card-h: 176px;  /* カード1枚の高さ（固定＝検索窓の位置を計算で決めるため） */
    --tn-kv-lead-h: 84px;   /* 「日本橋を彩る、/ 4つの個性豊かな街」の高さ */
    --tn-kv-search-h: 105px;/* 見出し＋検索フォームの高さ（実測に合わせる） */
    --tn-kv-row-gap: 20px;  /* 見出しとカード・カード同士の間隔 */
    --tn-kv-gap: 48px;      /* カードと検索窓の間隔 */
    --tn-kv-area-h: calc(var(--tn-kv-lead-h) + var(--tn-kv-row-gap) * 2 + var(--tn-kv-card-h) * 2);
    --tn-kv-block-top: calc((var(--tn-kv-h) - var(--tn-kv-area-h) - var(--tn-kv-gap) - var(--tn-kv-search-h)) / 2);
    --tn-kv-col: calc(10% + 380px); /* KVの白パネル(left:10% + 幅360px)を避ける左端 */
  }
  .tn-front .site-main { position: relative; } /* 2つの帯を絶対配置する基準 */
  /* 右側がカードと検索窓で埋まり、続きがあることが見て分かるので、KV下端の誘導は出さない */
  .tn-front .tn-scroll-down { display: none; }

  /* --- 4つの個性豊かな街（KVの右上） --- */
  .tn-front .tn-area-band {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: var(--tn-kv-h);
    z-index: 8; /* KV背景(1)・粒子オーバーレイ(2)より前、左の白パネル(10)より後ろ */
    display: flex;
    flex-direction: column;
    gap: var(--tn-kv-row-gap);
    padding: var(--tn-kv-block-top) 4% 0 var(--tn-kv-col);
    background-color: transparent;
    /* 写真の右側をわずかに沈めて、白いカードと見出しの可読性を確保する（装飾ではなく可読性の処理） */
    background-image: linear-gradient(90deg, rgba(24, 18, 14, 0) 30%, rgba(24, 18, 14, 0.26) 58%, rgba(24, 18, 14, 0.44) 100%);
    pointer-events: none; /* カード以外の余白ではKVのクリックを妨げない */
  }
  .tn-front .tn-area-band .tn-area-lead,
  .tn-front .tn-area-band .tn-area-row {
    width: 100%;
    max-width: 860px;
    margin: 0 0 0 auto;
    padding: 0;
  }

  /* 見出し：中央揃えの黒文字から、カード列の左肩に置く白文字へ */
  .tn-front .tn-area-band .tn-area-lead {
    height: var(--tn-kv-lead-h);
    text-align: left;
  }
  .tn-front .tn-area-band .tn-area-lead__sub {
    color: #f2dcc6; /* 写真の上では朱が沈むため、淡い暖色に置き換える */
    margin-bottom: 0.5em;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
  }
  .tn-front .tn-area-band .tn-area-lead__main {
    color: #fff;
    font-size: clamp(1.5rem, 0.85rem + 1.35vw, 2.05rem);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  }

  /*
   * カード：2列2行。KVに収まる高さでSPと同じ情報（街の名前・キャッチ・紹介文・
   * キーワード・エリアの記事を見る）を全部入れるため、写真を左・本文を右の横組みにする。
   * 写真はカードの高さいっぱいに置き、上下は切らない（前回の16:9のように被写体の
   * 頭が切れることがない）。左右だけがわずかに詰まる。
   */
  .tn-front .tn-area-band .tn-area-row__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--tn-kv-row-gap);
  }
  .tn-front .tn-area-band .tn-area-card {
    flex-direction: row;
    height: var(--tn-kv-card-h);
    pointer-events: auto;
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  }
  .tn-front .tn-area-band .tn-area-card__media {
    flex: 0 0 52%;
    width: auto;
    aspect-ratio: auto; /* 高さはカードに合わせる（幅は49%固定） */
  }
  .tn-front .tn-area-band .tn-area-card__body {
    min-width: 0;
    padding: 14px 16px 15px;
  }
  .tn-front .tn-area-band .tn-area-card__name {
    font-size: 0.95rem;
    line-height: 1.32;
    margin: 0 0 4px;
  }
  .tn-front .tn-area-band .tn-area-card__catch {
    font-size: 0.79rem;
    line-height: 1.32;
    gap: 6px;
    margin: 0 0 6px;
  }
  .tn-front .tn-area-band .tn-area-card__dot { width: 7px; height: 7px; }
  .tn-front .tn-area-band .tn-area-card__desc {
    font-size: 0.75rem;
    line-height: 1.65;
    margin: 0 0 6px;
  }
  .tn-front .tn-area-band .tn-area-card__keys {
    font-size: 0.71rem;
    margin: 0 0 7px;
  }
  .tn-front .tn-area-band .tn-area-card__more { font-size: 0.77rem; }
  .tn-front .tn-area-band .tn-area-card__more svg { width: 13px; height: 13px; }

  /* --- 横断検索（KVの右下・4街カードの真下） --- */
  .tn-front .tn-hsearch-wrap {
    position: absolute;
    top: calc(var(--tn-kv-block-top) + var(--tn-kv-area-h) + var(--tn-kv-gap));
    left: 0;
    right: 0;
    z-index: 9;
    padding: 0 4% 0 var(--tn-kv-col);
    background-color: transparent;
    pointer-events: none;
  }
  .tn-front .tn-hsearch-wrap .tn-hsearch {
    width: 100%;
    max-width: 860px;
    margin: 0 0 0 auto;
    padding: 0;
    text-align: center;
    pointer-events: auto;
  }
  /* 見出しは煙りガラスの面に白抜き（賑やかな写真の上でも読めるようにする可読性の処理） */
  .tn-front .tn-hsearch-wrap .tn-hsearch__lead {
    display: inline-block;
    color: #fff;
    font-size: 1.05rem;
    letter-spacing: 0.14em;
    margin: 0 0 12px;
    padding: 7px 22px;
    background: rgba(24, 18, 14, 0.5);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
  /* 入力欄はブロック幅いっぱいにせず標準的な検索窓の幅で、見出しごとブロック中央に置く */
  .tn-front .tn-hsearch-wrap .tn-hero-search { max-width: 520px; margin: 0 auto; }
  .tn-front .tn-hsearch-wrap .tn-hero-search__field {
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  }
}

/* ============================================================
   ② 新着記事
   ============================================================ */
.tn-news-head {
  text-align: center;
  margin: 0 0 26px;
}
.tn-news-head__ttl {
  display: block;
  font-family: "Shippori Mincho", "Yu Mincho", serif;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.7rem);
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 0.1em;
  line-height: 1.3;
  margin: 0;
}
.tn-news-head__sub {
  display: block;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.8rem;
  color: #6b6b6b;
  letter-spacing: 0.04em;
  margin-top: 8px;
}

/* 帯(tn-band)の中身を本文幅に収める */
.tn-news-wrap .tn-band__inner {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

.tn-news-wrap .p-postList { margin-top: 4px; }

/* カテゴリバッジ: 赤ベタ+フォルダアイコン → 落ち着いた白ラベル */
.tn-news-wrap .c-postThumb__cat {
  top: 12px; left: 12px; right: auto;
  background: rgba(255,255,255,0.94);
  color: #1a1a1a;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 4px 10px;
  border-radius: 2px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}
.tn-news-wrap .c-postThumb__cat::before { content: none !important; } /* フォルダアイコン除去 */

/* サムネ角丸を控えめに、ホバーは静かに */
.tn-news-wrap .c-postThumb { border-radius: 4px; overflow: hidden; }
.tn-news-wrap .c-postThumb__img { transition: transform 0.6s cubic-bezier(0.25,0.8,0.25,1); }
.tn-news-wrap .p-postList__link:hover .c-postThumb__img { transform: scale(1.04); }

/* タイトル: 明朝で雑誌的に */
.tn-news-wrap .p-postList__title {
  font-family: "Shippori Mincho", "Yu Mincho", serif;
  font-size: 0.98rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.6;
  letter-spacing: 0.01em;
  margin-top: 12px;
}
.tn-news-wrap .p-postList__link:hover .p-postList__title { color: #b8242b; }

/* 日付: 控えめに */
.tn-news-wrap .c-postTimes,
.tn-news-wrap .p-postList__times {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.72rem;
  color: #9a9a9a;
  letter-spacing: 0.02em;
}
.tn-news-wrap .c-postTimes__posted.icon-posted::before { opacity: 0.5; }

@media screen and (max-width: 768px) {
  /* SP: 全幅innerに左右16px余白を付与し、見出し/カード/ボタンを画面端から離す
     (post-list の ul は -7.8px のガター相殺マージンを持つため、inner側に padding を当てる
      ことでカード"内容"の端がちょうど16pxに揃う。エリアカルーセル/カテゴリと統一) */
  .tn-news-wrap .tn-band__inner { padding-inline: 16px; }
  .tn-news-wrap .p-postList__title { font-size: 0.9rem; line-height: 1.55; }
}

/* ============================================================
   ③ カテゴリーから探す(refine)
   ============================================================ */
.tn-cat2 {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}
.tn-cat2__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 4px;
}
.tn-cat2 a.tn-cat2__card,
.tn-cat2__card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 6px;
  padding: 18px 20px;
  text-decoration: none !important;
  color: inherit !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.tn-cat2 a.tn-cat2__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
  border-color: #e3c2c0;
  opacity: 1 !important;
}
.tn-cat2__icon {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: #f7f4f2;
  border-radius: 50%;
}
.tn-cat2__icon svg { width: 24px; height: 24px; fill: #8a4a44; transition: fill 0.25s ease; }
.tn-cat2 a.tn-cat2__card:hover .tn-cat2__icon { background: #b8242b; }
.tn-cat2 a.tn-cat2__card:hover .tn-cat2__icon svg { fill: #fff; }
.tn-cat2 .tn-cat2__name {
  font-family: "Shippori Mincho", "Yu Mincho", serif;
  font-size: 1.02rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

@media screen and (max-width: 768px) {
  .tn-cat2 { padding: 0 16px; }
  .tn-cat2__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tn-cat2 a.tn-cat2__card { padding: 14px 14px; gap: 10px; }
  .tn-cat2__icon { width: 38px; height: 38px; }
  .tn-cat2__icon svg { width: 20px; height: 20px; }
  .tn-cat2 .tn-cat2__name { font-size: 0.92rem; }
}

/* ============================================================
   ④ 横断検索（KV直下・記事＋用語集をまとめて検索）
   ※検索結果ページ側の同名CSSは assets/css/search.css（is_searchで読込）。
     トップは自己完結のため box の形をここにも持つ（マークアップは3977本文に直書き）。
   ============================================================ */
/* 地色は本文のinline styleではなくここで持つ（PCでKVへ移すときに透明へ切り替えるため） */
.tn-hsearch-wrap { background-color: #f7f4f2; }
.tn-hsearch { max-width: 720px; margin: 0 auto; padding: 0 16px; text-align: center; }
.tn-hsearch__lead {
  display: block;
  font-family: "Shippori Mincho", "Yu Mincho", serif;
  font-size: clamp(0.95rem, 0.88rem + 0.3vw, 1.1rem);
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 0.06em;
  margin: 0 0 14px;
}
.tn-hero-search { max-width: 680px; margin: 0 auto; width: 100%; }
.tn-hero-search__field {
  display: flex;
  align-items: stretch;
  background: #fff;
  border: 1px solid #e2ddd9;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(31,28,26,0.06);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.tn-hero-search__field:focus-within {
  border-color: #b8242b;
  box-shadow: 0 6px 20px rgba(184,36,43,0.12);
}
.tn-hero-search__icon { display: flex; align-items: center; padding-left: 16px; color: #9a8f8a; }
.tn-hero-search__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.tn-hsearch .tn-hero-search__input {
  flex: 1 1 auto; min-width: 0;
  border: 0; outline: 0; background: transparent;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1rem; color: #1a1a1a;
  padding: 14px 12px; text-align: left;
}
.tn-hero-search__input::placeholder { color: #b3aaa4; }
.tn-hero-search__btn {
  flex: 0 0 auto;
  border: 0; cursor: pointer;
  background: #b8242b; color: #fff;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.92rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 0 24px;
  transition: background 0.25s ease;
}
.tn-hero-search__btn:hover { background: #a01f25; }
@media screen and (max-width: 768px) {
  .tn-hsearch .tn-hero-search__input { font-size: 16px; padding: 12px 10px; } /* 16px=iOSの自動ズーム防止 */
  .tn-hero-search__btn { padding: 0 16px; }
}


/* ============================================================
   エリア検索ナビゲーション(tone-area-nav) 旧3977本文内CSS
   ※ピン画像は旧toneto-themeから本テーマ assets/img/top/ へ移設(2026-07-26)
   ============================================================ */
/* ============================================
   エリア検索ナビゲーションスタイル (動作修正版)
   ============================================ */
:root {
    --tan-color-green: #0CAC8D;
    --tan-color-purple: #BF42A7;
    --tan-color-blue: #009DD6;
    --tan-color-yellow: #F89208;
    --tan-gold: #d97706;
}

/* セクション全体 */
.tone-area-nav {
    position: relative;
    padding: 80px 0 72px;
    overflow: hidden;
    font-family: "Noto Sans JP", sans-serif;
    color: #333;
    /*
     * 2026-07-26 UI期第4回: 背景画像を差し替えた。
     * 旧 /wp-content/uploads/2025/11/bg-firstview2_min.png は 1500x768 のうち下端50px(約6.5%)が
     * 透明で、そこに鯉と橋の絵が垂れ下がる作りだった。cover で敷くと透明部分がそのまま白く抜け、
     * 地図帯とフッターの間に白い帯として出てしまう（嶋崎報告のPC/SP両方の症状の主因）。
     * 透明部分を落とした 1500x718 をテーマ同梱の画像として持ち、赤い帯がフッターに接するようにした。
     * （ベタ色で埋める案は、和柄のテクスチャが途中で止まって継ぎ目が見えるため不採用）
     * background-color は読み込み中の白い一瞬を防ぐための下地。
     */
    background-image: url('../../img/top/bg-area-nav.png');
    background-color: #ca462e;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    width: 100%;
}

.tone-area-nav__inner {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* 見出しエリア（強制リセット） */
.tone-area-nav__header_wrapper {
    display: block !important;
    text-align: center !important;
    width: 100% !important;
    margin-bottom: 60px !important;
    border: none !important;
    background: transparent !important;
}

/* 見出しボックス本体 */
.tone-area-nav__title_box {
    display: inline-block !important;
    position: relative !important;
    background-color: #fff !important;
    padding: 1.2rem 4rem !important;
    min-width: 300px !important;
    border: 1px solid var(--tan-gold) !important;
    outline: 5px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2) !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    border-radius: 0 !important;
}

/* 装飾ライン */
.tone-area-nav__title_box::before,
.tone-area-nav__title_box::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 1px;
    background-color: #eee;
    z-index: 1;
}
.tone-area-nav__title_box::before { top: 8px; }
.tone-area-nav__title_box::after { bottom: 8px; }

/* テキスト */
.tone-area-nav__title_box .en {
    display: block !important;
    font-family: "Shippori Mincho", "Yu Mincho", serif !important;
    font-size: 0.9rem !important;
    color: var(--tan-gold) !important;
    letter-spacing: 0.2em !important;
    font-weight: bold !important;
    margin-bottom: 4px !important;
    text-transform: uppercase !important;
    line-height: 1.5 !important;
    border: none !important;
}
.tone-area-nav__title_box .ja {
    display: block !important;
    font-family: "Shippori Mincho", "Yu Mincho", serif !important;
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: #222 !important;
    letter-spacing: 0.1em !important;
    line-height: 1.2 !important;
    border: none !important;
}

/* --- マップエリア --- */
.tone-area-nav__map-box {
    position: relative;
    width: 100%;
    max-width: 696px;
    margin: 0 auto;
}

.tone-area-nav__map-img img {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.25));
}

/* --- ピン（ボタン）共通設定 --- */
.tone-area-pin {
    position: absolute;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none !important;
    /* transitionからtransformを除外して、SPでの意図しない動きを防ぐ */
    transition: opacity 0.3s ease, transform 0.3s ease; 
    width: 140px;
    color: #fff !important;
}

/* 共通ホバー設定（ここでは透明度のみ。動きは個別に定義） */
.tone-area-pin:hover {
    opacity: 1 !important;
}

.tone-area-pin__thumb {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    overflow: hidden;
    background: #fff;
    margin-bottom: 5px;
    position: relative;
    transition: border-color 0.3s;
}

/* 色設定 */
.pin-green .tone-area-pin__thumb { border-color: var(--tan-color-green); }
.pin-purple .tone-area-pin__thumb { border-color: var(--tan-color-purple); }
.pin-blue .tone-area-pin__thumb { border-color: var(--tan-color-blue); }
.pin-yellow .tone-area-pin__thumb { border-color: var(--tan-color-yellow); }

.tone-area-pin__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.tone-area-pin:hover .tone-area-pin__thumb img {
    transform: scale(1.1);
}

.tone-area-pin__label {
    display: inline-block;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    padding: 6px 16px;
    border-radius: 50px;
    line-height: 1.3;
    white-space: nowrap;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
    color: #fff !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    border: 2px solid #fff;
}

/* ラベル背景 */
.pin-green .tone-area-pin__label { background-color: var(--tan-color-green); }
.pin-purple .tone-area-pin__label { background-color: var(--tan-color-purple); }
.pin-blue .tone-area-pin__label { background-color: var(--tan-color-blue); }
.pin-yellow .tone-area-pin__label { background-color: var(--tan-color-yellow); }


/* 
   ============================================
   配置調整 & PC用ホバーアクション
   【重要】ホバー時も配置用の translate を維持することで「逃げる」現象を防ぐ
   ============================================
*/

/* 1. Green (PC) */
.pin-green {
    top: 23%; left: 47.5%;
    transform: translate(-50%, 0);
}
@media (min-width: 768px) {
    .pin-green:hover {
        /* 元の配置(-50%, 0)を維持しつつ、上に8px移動(-8px)して拡大 */
        transform: translate(-50%, -8px) scale(1.05);
    }
}

/* 2. Purple (PC) */
.pin-purple {
    top: 59%; right: 31.5%; left: auto;
    transform: translate(50%, -50%);
}
@media (min-width: 768px) {
    .pin-purple:hover {
        /* 元の配置(50%, -50%)を維持 */
        transform: translate(50%, calc(-50% - 8px)) scale(1.05);
    }
}

/* 3. Blue (PC) */
.pin-blue {
    top: auto; bottom: 10%; left: 43.5%;
    transform: translate(-50%, 0);
}
@media (min-width: 768px) {
    .pin-blue:hover {
        transform: translate(-50%, -8px) scale(1.05);
    }
}

/* 4. Yellow (PC) */
.pin-yellow {
    top: 47.5%; left: 24.7%;
    transform: translate(-50%, -50%);
}
@media (min-width: 768px) {
    .pin-yellow:hover {
        transform: translate(-50%, calc(-50% - 8px)) scale(1.05);
    }
}

/* 
   ============================================
   SP (スマホ) 用スタイル
   【重要】SPではホバーによる transform 変化をさせない（配置がずれるのを防ぐ）
   ============================================
*/
@media (max-width: 767px) {
    .tone-area-nav {
        padding: 50px 0 80px;
        background-image: url('/wp-content/uploads/2023/05/bg-firstview-sp2.jpg');
    }
    
    .tone-area-nav__header_wrapper {
        margin-bottom: 40px !important;
    }
    
    .tone-area-nav__title_box {
        padding: 1rem 1rem !important;
        min-width: auto !important;
        width: 80% !important;
        max-width: 320px !important;
    }
    .tone-area-nav__title_box .ja { font-size: 1.5rem !important; }
    .tone-area-nav__title_box .en { font-size: 0.8rem !important; }

    .tone-area-nav__map-box {
        max-width: 306px;
        margin-top: 10px;
    }

    .tone-area-pin { width: 100px; }
    .tone-area-pin__thumb { width: 60px; height: 60px; border-width: 3px; }
    .tone-area-pin__label { font-size: 0.75rem; padding: 4px 10px; border-width: 1px; }

    /* SP配置 (transformは固定し、ホバー等の上書きを発生させない) */
    .pin-green {
        top: 14.5%; left: 49.5%;
        transform: translate(-50%, 0);
    }
    .pin-purple {
        top: 61.8%; right: 29.5%; left: auto;
        transform: translate(50%, -50%);
    }
    .pin-blue {
        bottom: 5%; left: 44.2%; top: auto;
        transform: translate(-50%, 0);
    }
    .pin-yellow {
        top: 46%; left: 21.5%;
        transform: translate(-50%, -50%);
    }
}
