/*
Theme Name: Town Marche Child
Theme URI: https://example.com/townmarche-child
Template: townmarche
Author: Town Marche Dev
Description: タウンマルシェ（親テーマ：Town Marche）の子テーマです。配色やちょっとした見た目の調整はこのファイルに追記してください。
Version: 1.0.0
Text Domain: townmarche-child
*/

/* ここに親テーマのCSSを上書きするスタイルを追記します。 */

/* 例：アクセントカラーを変更したい場合
:root{
  --accent:#2E6F5E;
}
*/

/* ============================================================
   1. ヘッダーロゴを一回り大きく
   ============================================================ */
.header-primary-link{gap:14px;}
.header-logo-mark{width:44px;height:44px;}
.custom-logo{max-height:44px;}
.header-heading b{font-size:16px;}

/* ============================================================
   2. ヒーローセクション：上部バッジと日時バッジの間に横長ロゴを表示
   front-page.php 側で .mv-content 内、
   上部バッジ（会場名）と日時バッジの間に .mv-logo-wide ブロックを追加し、
   「タウンマルシェ」の見出し（h1）は削除しています。
   ============================================================ */
.mv-logo-wide{
  margin:24px auto;
  width:100%;
  max-width:520px;
  padding:0 24px;
}
.mv-logo-wide img{
  width:100%;
  height:auto;
  filter:drop-shadow(0 10px 26px rgba(0,0,0,0.35));
}

/* 日時バッジ（2026.10.11 SUN 10:00-16:00 入場無料）を大きく目立たせる */
.mv-badge-date{
  margin-top:18px;
  font-size:clamp(16px,2.6vw,22px);
  font-weight:700;
  letter-spacing:.03em;
  padding:14px 30px;
  background:var(--accent);
  border-color:var(--accent);
  box-shadow:0 14px 30px -12px rgba(193,81,42,0.7);
}

/* カウントダウンタイマー */
.mv-countdown{margin-top:26px;}
.mv-countdown-caption{
  margin:0 0 10px;
  font-size:12px;
  letter-spacing:.16em;
  color:rgba(255,255,255,0.85);
}
.mv-countdown-grid{
  display:flex;
  gap:12px;
  justify-content:center;
}
.mv-countdown-item{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-width:64px;
  padding:10px 8px;
  border-radius:14px;
  background:rgba(255,255,255,0.14);
  border:1px solid rgba(255,255,255,0.4);
  backdrop-filter:blur(3px);
}
.mv-countdown-num{
  font-family:"Kaisei Decol",serif;
  font-size:clamp(22px,3.6vw,32px);
  font-weight:700;
  line-height:1.1;
}
.mv-countdown-label{
  margin-top:2px;
  font-size:11px;
  letter-spacing:.05em;
  color:rgba(255,255,255,0.85);
}
.mv-countdown.is-finished .mv-countdown-caption::after{
  content:" 開催中！";
}
@media(max-width:480px){
  .mv-countdown-grid{gap:8px;}
  .mv-countdown-item{min-width:54px;padding:8px 6px;}
}

/* ============================================================
   3. ギャラリーセクションをスクラップブック風の乱雑な写真配置に変更
   ============================================================ */
.scrapbook-gallery{
  width:100vw;
  position:relative;
  left:50%;
  right:50%;
  margin-left:-50vw;
  margin-right:-50vw;
  padding:30px 40px 20px;
  overflow:hidden;
}
.scrap-row{
  display:flex;
  flex-wrap:nowrap;
  justify-content:space-between;
  align-items:flex-end;
  position:relative;
  z-index:1;
  width:100%;
}
.scrap-row-top{margin-bottom:-46px;}
.scrap-row-bottom{margin-top:-46px;}

.scrap-photo{
  flex:1 1 auto;
  width:260px;
  aspect-ratio:1/1;
  max-width:19%;
  min-width:120px;
  margin:24px 4px;
  background-color:#fff;
  background-size:cover;
  background-position:center;
  border:10px solid #fff;
  border-bottom-width:34px;
  box-shadow:0 20px 38px -14px rgba(36,36,32,0.4);
  transition:transform .3s ease, box-shadow .3s ease, opacity .35s ease;
  position:relative;
}
.scrap-photo:hover{
  box-shadow:0 28px 50px -16px rgba(36,36,32,0.5);
  z-index:5 !important;
  transform:translateY(-8px) scale(1.05) rotate(0deg) !important;
}

/* ランダムな回転・サイズでスクラップブックらしい乱雑さを演出 */
.scrap-photo:nth-child(6n+1){transform:rotate(-7deg);}
.scrap-photo:nth-child(6n+2){transform:rotate(4deg);}
.scrap-photo:nth-child(6n+3){transform:rotate(-3deg);}
.scrap-photo:nth-child(6n+4){transform:rotate(6deg);}
.scrap-photo:nth-child(6n+5){transform:rotate(-5deg);}
.scrap-photo:nth-child(6n+6){transform:rotate(3deg);}
.scrap-photo:nth-child(3n){width:300px;}
.scrap-photo:nth-child(5n){width:340px;}
.scrap-photo:nth-child(7n){width:280px;}

/* 中央のキャプション */
.scrapbook-caption{
  position:relative;
  z-index:3;
  text-align:center;
  margin:20px auto;
  max-width:340px;
  background:#fff;
  padding:22px 32px;
  border-radius:6px;
  box-shadow:0 20px 44px -16px rgba(36,36,32,0.45);
  transform:rotate(-2deg);
}
.scrapbook-caption-eyebrow{
  margin:0 0 6px;
  font-size:11px;
  letter-spacing:.24em;
  color:var(--accent);
  font-weight:700;
}
.scrapbook-caption-main{
  margin:0;
  font-family:"Kaisei Decol",serif;
  font-weight:700;
  font-size:clamp(20px,3.4vw,30px);
  color:var(--ink);
  letter-spacing:.04em;
  line-height:1.4;
}

@media(max-width:768px){
  .scrapbook-gallery{padding:24px 16px 14px;}
  .scrap-row{flex-wrap:wrap;justify-content:center;}
  .scrap-photo{width:130px;min-width:110px;max-width:40%;margin:10px 6px;border-width:6px;border-bottom-width:20px;}
  .scrap-photo:nth-child(3n){width:150px;}
  .scrap-photo:nth-child(5n){width:170px;}
  .scrap-photo:nth-child(7n){width:140px;}
  .scrap-row-top{margin-bottom:-14px;}
  .scrap-row-bottom{margin-top:-14px;}
  .scrapbook-caption{padding:16px 22px;}
}

@media (prefers-reduced-motion: reduce){
  .scrap-photo{transition:none;}
}

/* ============================================================
   4. コンセプトセクションの高さを300pxほど低くする
   ============================================================ */
.concept{
  height:calc(100vh - 300px);
  min-height:300px;
}

/* ============================================================
   5. Googleマップ埋め込み（iframe）がコンテナいっぱいに表示されるように
   ============================================================ */
.access-map iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
}

/* ============================================================
   6. ハウスメーカーロゴが切れる問題を解決 ＋ カードをリンク化
   ============================================================ */
.housemaker-thumb{
  background-size:contain !important;
  background-repeat:no-repeat;
  background-position:center;
  background-color:#fff;
  border:1px solid var(--line);
}
.housemaker-card{
  display:block;
  color:inherit;
  text-decoration:none;
}
.housemaker-card:hover h3{
  color:var(--accent);
}

/* ============================================================
   7. 会場のご案内：施設ロゴ（リンク付き）
   ============================================================ */
.access-facility-logo{
  display:inline-flex;
  align-items:center;
  gap:12px;
  margin-top:24px;
  padding:12px 18px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:12px;
  transition:box-shadow .2s ease, transform .2s ease;
}
.access-facility-logo:hover{
  box-shadow:0 14px 30px -18px rgba(36,36,32,0.4);
  transform:translateY(-2px);
}
.access-facility-logo img{
  max-height:44px;
  width:auto;
  max-width:180px;
}

/* ============================================================
   8. 出店者一覧／ハウスメーカー紹介：PC4カラム・スマホ2カラム
   ============================================================ */
.card-grid{
  grid-template-columns:repeat(2,1fr) !important;
  gap:14px;
}
@media(min-width:980px){
  .card-grid{
    grid-template-columns:repeat(4,1fr) !important;
    gap:20px;
  }
}

/* ============================================================
   9. スマホ表示時：ハンバーガーメニュー化
   ============================================================ */
.menu-toggle{
  display:none;
  order:2;
  flex:none;
  background:none;
  border:0;
  padding:8px;
  cursor:pointer;
}
.menu-toggle-box{display:flex;flex-direction:column;gap:5px;width:26px;}
.menu-toggle-bar{
  display:block;
  height:2px;
  width:100%;
  background:var(--ink);
  border-radius:2px;
  transition:transform .25s ease, opacity .25s ease;
}
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(1){transform:translateY(7px) rotate(45deg);}
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(2){opacity:0;}
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(3){transform:translateY(-7px) rotate(-45deg);}

@media(max-width:959px){
  .menu-toggle{display:inline-flex;}
  .main-navigation{
    order:4;
    flex:1 1 100%;
    overflow:visible;
    max-height:0;
    opacity:0;
    pointer-events:none;
    transition:max-height .3s ease, opacity .25s ease;
  }
  .main-navigation.is-open{
    max-height:400px;
    opacity:1;
    pointer-events:auto;
  }
  .main-navigation ul{
    flex-direction:column;
    gap:0;
    white-space:normal;
    padding:10px 0 4px;
  }
  .main-navigation a{
    display:block;
    padding:12px 4px;
    border-bottom:1px solid var(--line);
  }
}

/* ============================================================
   10. ヒーローセクション上部に余白（ロゴが見やすいように）
   ============================================================ */
@media(max-width:768px){
  .mv-content{padding-top:110px;}
}

/* ============================================================
   11. 日時バッジ：日付・時間・入場無料をそれぞれ改行して強調
   ============================================================ */
.mv-badge-date{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  padding:18px 32px;
}
.mv-date-line{
  display:block;
  line-height:1.3;
}
.mv-date-line:nth-child(1){
  font-family:"Kaisei Decol",serif;
  font-size:clamp(20px,3.6vw,26px);
  font-weight:700;
  letter-spacing:.03em;
}
.mv-date-line:nth-child(2){
  font-size:clamp(15px,2.6vw,18px);
  font-weight:600;
  opacity:.95;
}
.mv-date-line:nth-child(3){
  margin-top:4px;
  padding:5px 20px;
  border-radius:999px;
  background:#fff;
  color:var(--accent);
  font-weight:800;
  font-size:clamp(14px,2.4vw,16px);
  letter-spacing:.1em;
}

/* ============================================================
   12. コンセプトセクション：上部の文字が切れないように余白を確保
   ============================================================ */
@media(max-width:768px){
  .concept{height:auto;min-height:0;}
  .concept-inner{padding-top:120px;padding-bottom:60px;}
}

/* ============================================================
   13. 背景画像使用時の視認性向上：オレンジのドットオーバーレイ
   ============================================================ */
.mv-scrim{
  background:
    radial-gradient(rgba(231,120,42,0.4) 1.6px, transparent 1.7px) 0 0/20px 20px,
    linear-gradient(180deg, rgba(20,22,18,0.15), rgba(20,22,18,0.55));
}
.concept-scrim{
  background:
    radial-gradient(rgba(231,120,42,0.4) 1.6px, transparent 1.7px) 0 0/20px 20px,
    linear-gradient(0deg, rgba(20,22,18,0.82) 10%, rgba(20,22,18,0.15) 62%, transparent 100%);
}

/* ============================================================
   14. ハウスメーカー紹介：見出し下のエリアマップ画像
   ============================================================ */
.housemaker-area-map{
  max-width:1080px;
  margin:0 auto 44px;
  padding:0 24px;
}
.housemaker-area-map img{
  width:100%;
  height:auto;
  border-radius:16px;
  border:1px solid var(--line);
  box-shadow:0 20px 44px -24px rgba(36,36,32,0.4);
}

/* ============================================================
   15. お楽しみポイント：とにかく目立つ特集バナー（hype）
   ============================================================ */
.feature-banner-hype{
  box-shadow:0 0 0 3px #FFD166, 0 30px 64px -20px rgba(214,52,54,0.55);
  animation:tm-hype-glow 2.4s ease-in-out infinite;
}
.feature-banner-hype .feature-banner-visual{
  position:relative;
}
.feature-banner-hype .feature-banner-visual::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(135deg, rgba(214,52,54,0.25), rgba(244,163,0,0.15));
  mix-blend-mode:multiply;
}
.feature-banner-hype .feature-banner-copy{
  background:linear-gradient(150deg, #B21E2B 0%, #D6342E 40%, #F0722B 100%);
}
.feature-banner-hype .feature-banner-hype-eyebrow{
  display:inline-block;
  color:#3B0A0A;
  background:#FFD166;
  font-weight:800;
  letter-spacing:.08em;
  padding:5px 14px;
  border-radius:999px;
  animation:tm-hype-bounce 1.6s ease-in-out infinite;
}
.feature-banner-hype .feature-banner-title{
  color:#fff;
  text-shadow:0 4px 14px rgba(0,0,0,0.25);
}
.feature-banner-hype .feature-banner-copy p{
  color:rgba(255,255,255,0.94);
}
.feature-banner-hype .feature-banner-stat{
  background:#fff;
}
.feature-banner-hype .feature-banner-stat b{
  color:#D6342E;
}

@keyframes tm-hype-glow{
  0%,100%{ box-shadow:0 0 0 3px #FFD166, 0 30px 64px -20px rgba(214,52,54,0.55); }
  50%{ box-shadow:0 0 0 6px #FFD166, 0 34px 74px -18px rgba(214,52,54,0.8); }
}
@keyframes tm-hype-bounce{
  0%,100%{ transform:translateY(0); }
  50%{ transform:translateY(-3px); }
}
@media (prefers-reduced-motion: reduce){
  .feature-banner-hype,
  .feature-banner-hype .feature-banner-hype-eyebrow{
    animation:none;
  }
}
