/* =========================
   Ame no Oto - Unified Styles（完全版）
   ========================= */

/* ===== Design Tokens ===== */
:root{
  --bg:#F7F4EF;
  --panel:#FBF9F5;
  --ink:#2B2B2B;
  --muted:#6D665A;
  --accent:#B79C68;
  --line:#E7E1D7;
  --radius:18px;
  --shadow:0 10px 28px rgba(0,0,0,.08);
  --navy:#1E2A5A;

  /* アンカー停止位置（ヘッダー高さに合わせて一元管理） */
  --anchor-offset: 84px;

  /* 予約ボタン */
  --reserve:#C59A4A;
  --reserve-hover:#B48635;
  --reserve-ink:#ffffff;

  /* Header Logo: 見た目固定サイズ */
  --logo-pc: 72px;
  --logo-sp: 56px;
  --logo-ar: 352/144;
}

/* ===== Base ===== */
*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
html{ scroll-behavior:smooth; scroll-padding-top: var(--anchor-offset); }
[id]{ scroll-margin-top: var(--anchor-offset); } /* 保険 */
body{
  background:var(--bg);
  color:var(--ink);
  font-family:"Noto Sans JP",system-ui,-apple-system,Roboto,"Hiragino Sans","Yu Gothic",Meiryo,sans-serif;
  line-height:1.8;
  -webkit-text-size-adjust:100%;
}
img{ max-width:100%; height:auto; display:block; }
a{ color:var(--accent); text-decoration:none; transition:color .2s ease; }
a:hover{ color:#8f774d; text-decoration:underline; }
[hidden]{ display: none !important; }

/* ===== Header ===== */
.header{
  position:sticky; top:0; z-index:50;
  background:rgba(251,249,245,.82);
  backdrop-filter:saturate(1.3) blur(6px);
  border-bottom:1px solid var(--line);
}
.header-inner{
  max-width:1100px; margin:0 auto; padding:10px 16px;
  display:flex; align-items:center; justify-content:space-between; gap:16px;
}
.brand{ display:flex; align-items:center; gap:10px; text-decoration:none; color:inherit; }
.brand .logo{
  height: var(--logo-pc) !important; width:auto !important; aspect-ratio: var(--logo-ar);
  display:block; margin:0; padding:0;
}

/* ===== Desktop nav ===== */
.nav{
  display:flex; gap:14px; align-items:center;
  flex-wrap:nowrap; white-space:nowrap; min-width:0;
}
.nav a{
  color:#3a352b; font-size:14px; padding:6px 10px;
  border:1px solid #d6cbb7; border-radius:999px; background:#f5efe6;
  text-decoration:none; font-weight:600; line-height:1;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.nav a:hover{ background:#e8dfcf; color:var(--navy); }

/* ===== Instagram nav button ===== */
.nav a.instagram-link,
.nav-drawer a.instagram-link{ display:flex; align-items:center; gap:6px; color:#E4405F; font-weight:600; }
.nav a.instagram-link svg{ width:16px; height:16px; fill:currentColor; }
.nav-drawer a.instagram-link svg{ width:18px; height:18px; fill:currentColor; }

/* ===== Hamburger ===== */
.hamburger{
  display:none; appearance:none; background:transparent; border:none; color:#3a352b;
  border-radius:12px; padding:8px 10px; cursor:pointer; line-height:0; box-shadow:none;
}
.hamburger:focus{ outline:2px solid #cdb88c; outline-offset:2px; }
.hamburger .bars{ display:inline-block; width:24px; height:2px; background:#3a352b; position:relative; }
.hamburger .bars::before,.hamburger .bars::after{
  content:""; position:absolute; left:0; width:24px; height:2px; background:#3a352b;
  transition:transform .18s ease, top .18s ease, opacity .18s ease;
}
.hamburger .bars::before{ top:-7px; }
.hamburger .bars::after{ top:7px; }
.hamburger[aria-expanded="true"] .bars{ background:transparent; }
.hamburger[aria-expanded="true"] .bars::before{ top:0; transform:rotate(45deg); }
.hamburger[aria-expanded="true"] .bars::after{ top:0; transform:rotate(-45deg); }

/* ===== Mobile Drawer ===== */
.nav-overlay{
  position:fixed; inset:0; background:rgba(0,0,0,.28);
  opacity:0; pointer-events:none; transition:opacity .18s ease; z-index:900;
}
.nav-drawer{
  position:fixed; right:0; top:0; height:100%; width:min(86vw,360px);
  background:var(--panel); border-left:1px solid var(--line);
  box-shadow:-8px 0 24px rgba(0,0,0,.08);
  transform:translateX(100%); transition:transform .22s ease;
  z-index:901; display:flex; flex-direction:column;
}
.nav-drawer header{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:14px 16px; border-bottom:1px solid var(--line);
}
.nav-drawer .title{ font-weight:600; color:var(--navy); }
.nav-drawer nav{ padding:8px 10px 12px; display:flex; flex-direction:column; }
.nav-drawer nav a{
  display:block; padding:12px 14px; color:#3a352b; text-decoration:none; font-weight:600;
  border-radius:10px; background:transparent; position:relative;
}
.nav-drawer nav a:not([href*="#reserve"]){ border-bottom:1px solid #e6dece; }
.nav-drawer nav a:last-child{ border-bottom:none; }
.nav-drawer nav a:not([href*="#reserve"]):hover{ background:#f7f2e8; }

/* Drawer: 予約ボタン（強調） */
.nav-drawer a[href*="#reserve"]{
  background:var(--reserve) !important; color:var(--reserve-ink) !important;
  border:0 !important; border-radius:12px !important; margin:8px 0;
  box-shadow:0 6px 16px rgba(197,154,74,.28);
}
.nav-drawer a[href*="#reserve"]:hover{ background:var(--reserve-hover) !important; }

.nav-open .nav-overlay{ opacity:1; pointer-events:auto; }
.nav-open .nav-drawer{ transform:translateX(0); }
body.nav-open { overscroll-behavior: contain; }

/* ===== Sections / Cards ===== */
.section{ max-width:1100px; margin:26px auto 0; padding:0 16px; }
.card{
  background:var(--panel); border:1px solid var(--line); border-radius:var(--radius);
  box-shadow:var(--shadow); overflow:hidden;
}
.card-head{ display:flex; align-items:center; gap:10px; padding:18px 18px 4px; }
.card-head .bar{ width:8px; height:22px; border-radius:4px; background:var(--accent); }
.card-head h2{ margin:0; font-size:clamp(18px,2.6vw,24px); color:var(--navy); }
.card-body{ padding:0 18px 18px; }

/* ===== Hero（Top） ===== */
.hero{
  max-width:1100px;
  margin:16px auto 0;
  padding:0 16px;
}
.hero .hero-card{
  position: relative;
  width:100%;
  aspect-ratio:16/9;
  max-height:80vh;
  overflow:hidden;
  border-radius:22px;
  border:1px solid var(--line);
  box-shadow:var(--shadow);
}

/* 動画・静止画 共通 */
.hero-media{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* ミュートボタン：デフォルトは非表示（動画を読み込んだ PC だけで表示） */
.mute-toggle{
  position:absolute;
  top:12px;
  right:12px;
  display:none;  /* ★ いったん非表示に */
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  border-radius:9999px;
  background:rgba(0,0,0,.45);
  backdrop-filter:blur(4px);
  border:1px solid rgba(255,255,255,.25);
  color:#fff;
  cursor:pointer;
  z-index:3;
}
.hero-has-video .mute-toggle{
  display:inline-flex;  /* ★ 動画ありのときだけ表示 */
}
.mute-toggle .icon{ width:22px; height:22px; }
.mute-toggle .icon-sound-on{ display:none; }
.mute-toggle[aria-pressed="false"] .icon-sound-on{ display:block; }
.mute-toggle[aria-pressed="false"] .icon-sound-off{ display:none; }
.mute-toggle:focus-visible{
  outline:2px solid #fff;
  outline-offset:2px;
}

/* ===== Top: main title (Heroの下) ===== */
.top-main-title{
  max-width:1100px;
  margin:18px auto 0;
  padding:0 16px;
  text-align:center;

  font-family:"Noto Sans JP",system-ui,-apple-system,"Hiragino Sans","Yu Gothic",Meiryo,sans-serif;
  font-size:clamp(20px,3.0vw,28px);
  font-weight:600;          /* 700にすると圧が出るので600 */
  letter-spacing:.08em;     /* 少し広げて柔らかく */
  color: #3a352b;           /* 真っ黒を避ける（inkより少し薄め） */
  line-height:1.35;
}

/* ===== News (Top) ===== */
.news-list{ list-style:none; padding:0; margin:0; }
.news-list li{
  padding:10px 0; border-bottom:1px solid var(--line);
  display:flex; gap:12px; align-items:baseline;
}
.news-list li:last-child{ border-bottom:none; }
.news-list time{ color:var(--muted); font-size:14px; flex-shrink:0; width:100px; }

/* ===== About grid (Top) ===== */
.grid{
  display:grid; gap:16px; grid-template-columns:1.2fr .8fr; align-items:start;
}
.grid figure{
  margin:0; border-radius:14px; overflow:hidden; border:1px solid var(--line);
  background:#fff; box-shadow:0 6px 18px rgba(0,0,0,.06);
}
.grid img{ width:100%; height:auto; display:block; }

/* ===== Buttons ===== */
.btns{ display:flex; flex-wrap:wrap; gap:10px; margin-top:14px; }
.btn{
  display:inline-block; cursor:pointer; padding:10px 16px; border-radius:999px;
  font-weight:600; letter-spacing:.02em; text-decoration:none; transition:transform .05s ease;
}
.btn:active{ transform:translateY(1px); }
.btn-primary{ color:#fff; background:var(--accent); border:1px solid rgba(0,0,0,.04); }
.btn-ghost{ color:#3a352b; background:#fff; border:1px solid var(--line); }
.btn-ghost:hover{ background:#f7f3ea; }

/* Brand buttons */
.btn-line{ color:#fff; background:#06C755; border:1px solid #06C755; }
.btn-line:hover{ filter:brightness(0.95); text-decoration:none; }
.btn-line:focus{ outline:2px solid #1f8b47; outline-offset:2px; }
.btn-hotpepper{ color:#fff; background:#E4007F; border:1px solid #E4007F; }
.btn-hotpepper:hover{ filter:brightness(0.95); text-decoration:none; }
.btn-hotpepper:focus{ outline:2px solid #a50059; outline-offset:2px; }

/* ===== Text decorations (Top) ===== */
.about-text .lead{ font-size:17px; font-weight:500; line-height:1.9; margin-bottom:20px; color:#2B2B2B; }
.about-text p{ margin:0 0 18px; color:#3f392f; }
.about-text strong{ font-weight:600; }
.about-text .highlight{ background:linear-gradient(transparent 70%, #f0e6d6 70%); font-weight:600; }

/* ===== Therapist (Top) ===== */
.therapist-profile{
  display:grid; grid-template-columns:minmax(180px,220px) 1fr; gap:24px; align-items:start;
}
.therapist-profile figure{ margin:0; }
.therapist-profile img{
  width:100%; height:auto; border-radius:12px; box-shadow:0 6px 18px rgba(0,0,0,.08);
}
.profile-text{ min-width:0; }
.profile-text h3{ margin-top:0; font-size:20px; color:#2B2B2B; }
.profile-text h4{ margin-top:18px; font-size:18px; color:#6D665A; }
.profile-text ul{ margin:10px 0 0; padding-left:20px; line-height:1.6; word-wrap:break-word; }

/* ===== TOC（共通） ===== */
.toc{ display:flex; flex-wrap:wrap; gap:10px; margin:8px 0 14px; }
.toc a{
  display:inline-block; padding:8px 12px; border:1px solid var(--line);
  border-radius:999px; background:#fff; text-decoration:none; color:#3a352b; font-weight:600;
}
.toc a:hover{ background:#f7f3ea; }

/* ===== Gallery (Top) ===== */
.menu-intro{ font-size:15px; color:var(--muted); margin:0 0 16px; text-align:left; line-height:1.8; }
.menu-gallery{
  display:grid; grid-template-columns:repeat(3, 1fr); gap:14px; margin-top:10px;
}
.menu-gallery figure{
  margin:0; border:1px solid var(--line); border-radius:14px; overflow:hidden;
  box-shadow:0 6px 18px rgba(0,0,0,.06); position:relative;
}
.menu-gallery img{ width:100%; height:100%; display:block; object-fit:cover; aspect-ratio:4/3; }

/* オーバーレイ＆キャプション（必要なページで <figcaption> を置く） */
.menu-gallery figure::after{
  content:""; position:absolute; inset:0;
  background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0) 70%);
  pointer-events:none; z-index:0;
}
.menu-gallery figcaption{
  position:absolute; left:12px; right:12px; bottom:12px; z-index:1;
  color:#fff; line-height:1.3; text-shadow:0 1px 2px rgba(0,0,0,.35);
  font-weight:700; font-size:clamp(16px, 2.3vw, 20px);
}
/* トップの6枚でサブ見出しを隠す指定（必要に応じて削除） */
.section .card .menu-gallery .menu-sub{ display:none !important; }

/* ===== Notes ===== */
.notes{
  margin-top:20px; padding:14px 18px; background:#fdfbf7;
  border:1px solid var(--line); border-radius:var(--radius);
  color:#6D665A; font-size:15px; line-height:1.7;
}
.notes p{ margin:6px 0; }

/* ===== Access (Top) ===== */
.access{ display:grid; gap:16px; grid-template-columns:1fr 1fr; }
.access .map{ border:1px solid var(--line); border-radius:14px; overflow:hidden; background:#eee; min-height:260px; }
.access .map iframe{ width:100%; height:100%; border:0; }

.access-list{
  margin:10px 0 0; padding:12px 14px; background:#fdfbf7;
  border:1px solid var(--line); border-radius:12px; color:#3f392f; line-height:1.9;
}
.access-list p{ margin:0 0 8px; }
.access-list .item{ display:flex; gap:8px; align-items:flex-start; margin:6px 0; }
.access-list .dot{ color:var(--accent); line-height:1.6; }

/* 丸位置の調整 */
.access-list .item{ display:flex; align-items:center; gap:6px; margin:6px 0; }
.access-list .dot{ color:var(--accent); font-size:13px; line-height:1; flex-shrink:0; display:inline-block; transform:translateY(-1px); }
.access-list p{ margin:0; }

/* ===== Footer ===== */
.footer{
  max-width:1100px; margin:30px auto; padding:0 16px 40px;
  color:#6D665A; font-size:13px; text-align:center;
}
.footer small{ display:block; margin-top:6px; }

/* ===== Instagram grid (Top) ===== */
.insta-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap:14px; margin-top:10px; }
.insta-card{
  background:var(--panel); border:1px solid var(--line); border-radius:14px; overflow:hidden;
  box-shadow:0 6px 18px rgba(0,0,0,.06); text-align:center; color:var(--muted);
}
.insta-card img{ width:100%; height:auto; aspect-ratio:1 / 1; object-fit:cover; opacity:0.9; }
.insta-meta{ padding:8px 0; font-size:14px; color:var(--muted); background:#fdfbf7; }

/* ===== Menu page: H1 animation ===== */
main > h1{
  max-width:1100px; margin:40px auto 0; padding:0 16px; text-align:center;
  font-size:clamp(22px,3.4vw,30px); letter-spacing:.05em; color:#1E365C;
  font-family:"Noto Sans JP",system-ui,-apple-system,"Hiragino Sans","Yu Gothic",Meiryo,sans-serif;
}

/* メニューページH1：スマホでは少し小さく */
@media (max-width: 600px){
  main#top > h1{
    font-size: clamp(16px, 4.2vw, 20px);
    line-height: 1.3;
  }
}

.char{ opacity:0; display:inline-block; transform:translateX(-1em); will-change:transform,opacity; }
.char.show{ animation:charSlideIn 1.6s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes charSlideIn{ to{ opacity:1; transform:none; } }

/* ===== Menu page: detail + method ===== */
.detail{ margin:18px 0 10px; }
.detail-grid{
  display:grid; gap:24px; align-items:start;
  grid-template-columns:1.2fr 0.8fr;
}
.detail-grid .text p{ margin:0 0 14px; color:#3f392f; }
.detail-grid figure{
  margin:0; border-radius:14px; overflow:hidden; border:1px solid var(--line);
  background:#fff; box-shadow:0 6px 18px rgba(0,0,0,.06);
}
.detail-grid img{ width:100%; height:auto; display:block; object-fit:cover; }

.text{ color:#3f392f; line-height:1.9; font-size:16px; }
.text p{ margin-bottom:1.2em; }

.aroma-list{
  list-style:none; margin:8px 0 0; padding:0;
  display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:6px 14px; color:#4a4338;
}
.aroma-list li::before{ content:"・"; color:var(--accent); margin-right:4px; }

.method{
  background:var(--panel); border-left:4px solid var(--accent);
  padding:18px 20px; border-radius:10px; margin:14px 0 18px;
  box-shadow:0 4px 12px rgba(0,0,0,.04);
}
.method h3,
.method h4{ color:var(--accent); font-size:17px; font-weight:600; margin:0 0 8px; }
.method p{ margin:0 0 8px; }
.method ul{
  list-style:none; padding-left:0; margin:12px 0 0;
  display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:6px 20px; color:#4a4338;
}
.method li{ position:relative; padding-left:1.2em; margin-bottom:4px; color:#3f392f; line-height:1.8; font-size:15.5px; }
.method li::before{ content:"●"; color:var(--accent); font-size:12px; position:absolute; left:0; top:0.2em; }

.caution{
  background:#f9f6f1; border:1px solid var(--line); border-radius:10px;
  padding:12px 16px; font-size:15px; color:#4a4338; box-shadow:0 4px 12px rgba(0,0,0,.03);
}
.caution ul{ margin:6px 0 0 1.2em; padding:0; }
.caution li{ margin-bottom:4px; list-style:"※ "; }

/* ===== Symptom / Effect grids ===== */
.symptom-list,.effect-list{
  list-style:none; margin:8px 0 0; padding:0;
  display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:6px 14px;
  color:#3f392f; font-size:15px; line-height:1.7;
}
/* 丸サイズを方法（method）と統一：12px・位置 .70em */
.symptom-list > li,
.effect-list  > li{ position:relative; padding-left:1.2em; }
.symptom-list > li::before,
.effect-list  > li::before{
  content:"●"; position:absolute; left:0; top:.70em;
  font-size:12px; line-height:1; color:var(--accent);
}

/* ===== Add menu images (#add) ===== */
.add-images{ display:flex; flex-direction:column; gap:14px; }
.add-images figure{
  margin:0; border-radius:12px; overflow:hidden;
  border:1px solid var(--line); box-shadow:0 4px 12px rgba(0,0,0,.08);
}
.add-images img{ width:100%; height:100%; object-fit:cover; display:block; }

/* ==== #add：PCで“行ごとにテキストと画像を揃える（安定版） ==== */
@media (min-width: 901px){
  #add .detail-grid{
    display:grid !important;
    grid-template-columns:1.2fr .8fr !important;
    gap:16px !important;
    align-items:start !important;
    grid-auto-rows:auto !important;
  }
  /* ラッパーをフラット化（中身を同一グリッドに参加） */
  #add .detail-grid > .text,
  #add .detail-grid > .add-images{ display:contents !important; }

  /* 左列：.method を 1/2/3 行に割当 */
  #add .detail-grid .method{ grid-column:1 !important; margin:0 !important; }
  #add .detail-grid .method:nth-of-type(1){ grid-row:1 !important; }
  #add .detail-grid .method:nth-of-type(2){ grid-row:2 !important; }
  #add .detail-grid .method:nth-of-type(3){ grid-row:3 !important; }

  /* 右列：figure を同じ行番号に対応、伸ばさない */
  #add .detail-grid .add-images figure{
    grid-column:2 !important; margin:0 !important;
    align-self:start !important; height:auto !important;
    border-radius:14px !important; overflow:hidden !important;
  }
  #add .detail-grid .add-images figure:nth-child(1){ grid-row:1 !important; }
  #add .detail-grid .add-images figure:nth-child(2){ grid-row:2 !important; }
  #add .detail-grid .add-images figure:nth-child(3){ grid-row:3 !important; }

  /* 画像は“自サイズ優先”。必要なら max-height を調整 */
  #add .detail-grid .add-images img{
    width:100% !important; height:auto !important; aspect-ratio:4/3 !important;
    max-height:240px !important; object-fit:cover !important; display:block !important;
  }
}

/* ===== Menu table ===== */
.menu{
  width:100%; border-collapse:collapse; table-layout:auto; font-size:16px; margin-top:6px;
}
.menu thead th{
  background:#f3eee5; color:var(--muted); font-weight:600; text-align:center; padding:12px 14px;
}
.menu td{
  padding:12px 10px; border-bottom:1px solid var(--line); background:var(--panel); vertical-align:middle;
}
.menu thead th.name, .menu td.name   { text-align:left;  padding-left:14px; width:40%; }
.menu thead th.time, .menu td.time   { text-align:center;                     width:22%; }
.menu thead th.price,.menu td.price  { text-align:left;  padding-left:10px;   width:28%; font-weight:700; color:#2b2b2b; }

/* ===== Policy note ===== */
.policy-note{ margin-top:10px; color:#6D665A; font-size:14px; }

/* ===== 予約ボタン（全ページで強調） ===== */
.nav a[href$="#reserve"],
.nav a[href$="index.html#reserve"],
.nav a[href*="#reserve"]{
  background:var(--reserve) !important; color:var(--reserve-ink) !important;
  border-color:transparent !important; font-weight:800; letter-spacing:.02em;
  padding:8px 16px; box-shadow:0 6px 16px rgba(197,154,74,.28); border-radius:12px !important;
}
.nav a[href*="#reserve"]:hover{ background:var(--reserve-hover) !important; color:var(--reserve-ink) !important; }
.nav a[href*="#reserve"]:focus{
  outline:3px solid rgba(197,154,74,.45); outline-offset:2px;
  box-shadow:0 0 0 3px rgba(255,255,255,.6), 0 6px 16px rgba(197,154,74,.28);
}
/* ご予約(#reserve)だけ少し上寄せ */
#reserve{ scroll-margin-top: calc(var(--anchor-offset) - 30px); }

/* ===== 強調ボックス ===== */
.highlight-box{
  display:inline-block; background:#f3e9d2; color:#3a352b; padding:4px 10px;
  border-left:4px solid #cdb88c; border-radius:6px; font-weight:700; font-size:1.05em; letter-spacing:.03em; margin-bottom:4px;
}

/* ===== PC/SP 表示切替（文章の出し分け用） ===== */
.pc-only{ display:block; }
.sp-only{ display:none; }

/* ===== Responsive ===== */
@media (max-width:1100px){
  .header-inner{ padding:10px 12px; }
}
@media (max-width:1100px) and (min-width:901px){
  .nav{ gap:8px; }
  .nav a{ font-size:13px; padding:5px 9px; }
}
@media (max-width:900px){
  .grid{ grid-template-columns:1fr; }
  .access{ grid-template-columns:1fr; }
  .nav{ display:none; }  /* SPはデスクトップナビ非表示 */
  .hamburger{ display:inline-flex; align-items:center; gap:10px; }
  .detail-grid{ grid-template-columns:1fr; }
  .brand .logo{ height: var(--logo-sp) !important; }
  :root{ --anchor-offset: 96px; } /* SP時のアンカー余白 */
  .pc-only{ display:none; }
  .sp-only{ display:block; }
}
/* スマホ時：セラピスト写真を小さく（今の約半分） */
@media (max-width:860px){
  .therapist-profile{
    grid-template-columns:1fr;
  }
  .therapist-profile figure{
    max-width: 200px;   /* PCよりかなり小さめ */
    margin: 0 auto 12px;
  }
}

/* さらに小さい画面ではもっと小さく */
@media (max-width:480px){
  .therapist-profile figure{
    max-width: 200px;   /* だいたい今の半分くらいの感覚 */
  }
}@media (max-width:800px){
  .add-images{ flex-direction:row; flex-wrap:wrap; justify-content:center; }
  .add-images figure{ width:30%; }
}
@media (max-width:768px){
  /* トップのギャラリー：2列固定／正方形 */
  .menu-gallery{ grid-template-columns:repeat(2,1fr); gap:8px; }
  .menu-gallery img{ aspect-ratio:1/1; object-fit:cover; }
}
@media (max-width:600px){
  .menu-gallery{ grid-template-columns:1fr; }
  .insta-grid{ grid-template-columns:1fr; }
  .news-list time{ width:84px; }
  .menu th,.menu td{ padding:12px; font-size:15px; }
}

/* ===== 施術メニュー：h3 をゴールドに固定（最終ロック） ===== */
#thai h3, #oil h3, #cnt h3, #vip h3, #japk h3, #yok h3, #add h3{
  color: var(--accent) !important;
  font-weight: 600;
}

/* ===== OVERRIDE: Top menu grid ===== */
/* PC: 3列のまま */
.menu-gallery{
  grid-template-columns: repeat(3, 1fr) !important;
}

/* SP: 2列×3行（計6枚） */
@media (max-width:768px){
  .menu-gallery{
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .menu-gallery img{
    aspect-ratio: 1 / 1;  /* 正方形 */
    object-fit: cover;
  }
}

/* 電話ボックス */


/* PCは2列×2段に固定（このギャラリーだけ） */
@media (min-width: 901px){
  .menu-gallery.is-four{
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
  }
  /* PCでは4:3で統一（必要なら調整OK） */
  .menu-gallery.is-four img{
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }
}

/* 600px未満でも1列にせず“常に2列”にしたい場合は有効化 */
@media (max-width: 600px){
  .menu-gallery.is-four{
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .menu-gallery.is-four img{
    aspect-ratio: 1 / 1; /* スマホは正方形のままが見栄え良い */
  }
}

/* お知らせリスト：行全体を目立たせる */
#news .news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

#news .news-list li {
  padding: 0.35em 0.75em;
  margin-bottom: 0.2em;
  font-size: 0.98rem;
  font-weight: 400;  /* またはこの行を削除する */
  color: var(--text-strong, #3a3226);
  border-left: 3px solid var(--accent, #B79C68);
}

/* 日付をアクセントカラーに */
#news .news-list time {
  display: inline-block;
  margin-right: 0.6em;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent, #B79C68);
}

/* ===== Blog list (home.php) ===== */
.blog-list{
  list-style:none;
  margin:0;
  padding:0;
}

.blog-item{
  display:flex;
  gap:14px;
  padding:10px 0;
  border-bottom:1px solid var(--line);
  align-items:flex-start;
}

.blog-item:last-child{
  border-bottom:none;
}

/* サムネイル */
.blog-thumb{
  flex:0 0 96px;
  border-radius:12px;
  overflow:hidden;
}

.blog-thumb img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  aspect-ratio:1 / 1; /* 正方形 */
}

/* テキスト部分 */
.blog-text time{
  display:block;
  font-size:0.9rem;
  color:var(--muted);
  margin-bottom:2px;
}

.blog-title{
  font-size:1rem;
  font-weight:600;
  color:#3a3226;
}

.blog-title:hover{
  color:var(--navy);
  text-decoration:underline;
}

/* SPで少しコンパクトに */
@media (max-width:600px){
  .blog-item{
    gap:10px;
  }
  .blog-thumb{
    flex:0 0 80px;
  }
}

.blog-excerpt{
  margin-top:4px;
  font-size:0.9rem;
  color:var(--muted);
  line-height:1.6;
}

/* セラピスト写真：保存しづらくする用（背景画像版・正方形） */
/* ラッパー：最大幅600pxにして中央寄せしたい場合 */
.no-save-therapist{
  position: relative;
  display: inline-block;
  width: 100%;         /* 画面が狭いときは縮む */
  max-width: 600px;    /* ★最大で600px */
  -webkit-touch-callout: none;
  touch-action: none;
}

/* 写真ボックス：3:4（600×800）比率に戻す */
.no-save-therapist .therapist-photo{
  width: 100%;
  aspect-ratio: 3 / 4;   /* ★ここを 1/1 → 3/4 に変更 */
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);

  background-image: url("/wp-content/themes/amenooto-stage/assets/images/therapist.jpg?v=4");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  pointer-events: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  user-select: none;
}

/* ブログ一覧リンクの位置調整 */
#blog .card-footer {
  padding-left: var(--card-padding, 1.2em); /* 本文内と同じ余白に合わせる */
  text-align: left;
}

/* 必要なら全カード共通にも可 */
.card-footer {
  padding: 0 1.2em 1em; /* 左右均等に */
}

/* リンク自体の見た目（任意） */
.btn-more {
  display: inline-block;
  font-weight: 500;
  text-decoration: none;
  color: var(--accent, #a67b00);
}
.btn-more:hover {
  text-decoration: underline;
}

/* ブログ一覧（トップのカード内） */
.blog-list .blog-item {
  display: flex;
  gap: 12px;
  padding: 8px 0;
}

.blog-list .blog-thumb {
  flex: 0 0 auto;
  display: block;
}

.blog-list .blog-thumb img {
  width: 72px;      /* 小さめサムネ */
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
}

.blog-list .blog-text {
  flex: 1 1 auto;
}

/* 既存デザインに合わせて微調整したければここで */
.blog-list .blog-text time {
  display: block;
  margin-bottom: 2px;
}

/* 日付｜サムネ｜本文 */
#blog .news-list .blog-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
}

#blog .news-list .blog-row time {
  flex: 0 0 90px; /* 日付カラムの幅。お知らせと合わせて調整 */
}

#blog .news-list .blog-thumb,
#blog .news-list .blog-thumb--empty {
  flex: 0 0 64px;
  display: block;
}

#blog .news-list .blog-thumb img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
}

#blog .news-list .news-body {
  flex: 1 1 auto;
}

/* SP用「サロン動画を見る」ボタンを小さめに */
.hero-movie-btn{
  display:inline-block;
  font-size:14px;
  padding:6px 12px;
  margin-top:6px;
}

/* さらに小さい画面はもう一段コンパクトに */
@media (max-width:600px){
  .hero-movie-btn{
    font-size:13px;
    padding:5px 10px;
  }
}

.pc-only{ display:block; }
.sp-only{ display:none; }

@media (max-width:900px){
  .pc-only{ display:none; }
  .sp-only{ display:block; }
}

/* ===== Coupon（トップ埋め込み）ずれ修正 ===== */
#coupon .news-list .blog-row{
  display:flex;
  align-items:flex-start;   /* 上揃え */
  gap:12px;
  padding:10px 0;
}

#coupon .news-list .blog-row time{
  flex:0 0 100px;           /* 日付幅（必要なら90pxでもOK） */
  padding-top:2px;          /* 微調整：上に合わせる */
}

#coupon .coupon-thumb,
#coupon .coupon-thumb--empty{
  flex:0 0 140px;           /* サムネ幅（あなたのCSSと合わせる） */
}

#coupon .news-body{
  padding-top:0;
}

/* タイトルを赤に */
#coupon .news-title{
  display:block;
  color:#1E2A5A;            /* 好きな色に変更OK */
  font-weight:800;
  text-decoration:none;
}

#coupon .news-title:hover{
  text-decoration:underline;
}

/* ===== Coupon: SPでは縦積みにしてズレを根絶 ===== */
@media (max-width: 600px){

  /* 1行を縦レイアウトに変更 */
  #coupon .news-list .blog-row{
    display:grid;
    grid-template-columns: 92px 1fr;   /* 左：日付 / 右：本文 */
    grid-template-rows: auto auto;     /* 1段目：日付+タイトル、2段目：画像+抜粋 */
    gap: 8px 12px;
    align-items:start;
  }

  /* 日付は左上固定 */
  #coupon .news-list .blog-row time{
    grid-column: 1;
    grid-row: 1;
    width:auto;
    margin:0;
  }

  /* タイトル（赤）は右上へ */
  #coupon .news-list .blog-row .news-body{
    grid-column: 2;
    grid-row: 1 / span 2;
    min-width:0;
  }

  /* 画像は2段目の左に置く（小さめで安定） */
  #coupon .news-list .blog-row .coupon-thumb,
  #coupon .news-list .blog-row .coupon-thumb--empty{
    grid-column: 1;
    grid-row: 2;
    width: 92px;
  }

  #coupon .news-list .blog-row .coupon-thumb img{
    width:100%;
    height:auto;
    display:block;
    border-radius:10px;
  }

  /* 長文が横にはみ出さない保険 */
  #coupon .news-title,
  #coupon .news-excerpt{
    overflow-wrap:anywhere;
    word-break:break-word;
  }

  /* タイトルがデカすぎる場合の上限（任意） */
  #coupon .news-title{
    font-size:16px;
    line-height:1.4;
  }
}

