/* A案「三角屋根」— ヒロバランスクリニック（2026-10-29）
   狙い＝参考の c-morinosato.com の「屋根の三角形を枠にする」を、この医院の建物（片流れの屋根・右へ上がる）の傾きで取り入れる。
   生成りの地・ロゴの若葉の緑・ロゴの玉のピンクをほんの少し。角の丸い書体（Zen Maru Gothic）で柔らかく、文字は大きくしすぎない。
   動き＝屋根の線が描き上がる（anim-draw）・写真がゆっくり寄りながら溶けて替わる（fx-cycle）・見出しは行ごとに現れる（anim-mask）・
   写真は少しずつ違う速さで動く（anim-parallax）・ロゴの玉がゆらぐ（anim-sway）・フッターの建物の線が描き上がる。派手にしない。 */
@import url("cal-skin.css");

:root {
  --cream: #f5f2e9;
  --paper: #fffdf8;
  --leaf: #5f9e45;
  --leaf-2: #8cc068;
  --leaf-soft: #e9f1df;
  --leaf-deep: #2f5a2a;
  --ink: #3a4436;
  --muted: #6c7565;
  --pink: #df6b9b;
  --pink-ink: #b8467a;
  --pink-soft: #fbe7ef;
  --line: #e3dece;
  --maru: 'Zen Maru Gothic', 'Zen Kaku Gothic New', sans-serif;
  --goth: 'Zen Kaku Gothic New', 'Hiragino Sans', sans-serif;
  --en: 'Quicksand', 'Zen Maru Gothic', sans-serif;
  /* 屋根の枠（右へ上がる片流れ・角は丸く）＝写真の器の mask。器の比率に合わせて伸びる */
  --roof-hero: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 800' preserveAspectRatio='none'%3E%3Cpath d='M0 324Q0 300 23 293L977 7Q1000 0 1000 24V776Q1000 800 976 800H24Q0 800 0 776Z'/%3E%3C/svg%3E");
  --roof: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000' preserveAspectRatio='none'%3E%3Cpath d='M0 204Q0 180 22 175L978 5Q1000 0 1000 24V976Q1000 1000 976 1000H24Q0 1000 0 976Z'/%3E%3C/svg%3E");
  --roof-rev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000' preserveAspectRatio='none'%3E%3Cpath d='M1000 204Q1000 180 978 175L22 5Q0 0 0 24V976Q0 1000 24 1000H976Q1000 1000 1000 976Z'/%3E%3C/svg%3E");
  --anim-draw-color: var(--leaf);
  --anim-draw-width: 1.6;
  --anim-draw-ease: linear;
  --fx-underline-color: var(--leaf);
  --fx-underline-h: 1px;
  --fx-cycle-hold: 5.5s;
  --fx-cycle-fade: 1.6s;
  --fx-backtop-bg: var(--leaf);
  --fx-backtop-fg: #fff;
  --fx-backtop-surface: var(--paper);
  --fx-backtop-ink: var(--leaf);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 90px; }
body.plan-sankaku { margin: 0; background: var(--cream); color: var(--ink); font: 400 15.5px/2 var(--goth); letter-spacing: .04em; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p, ul, dl, dd, figure, h1, h2, h3, h4, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.wrap { width: min(1180px, calc(100% - 64px)); margin: 0 auto; }

/* ---- 見出しの型＝英字の小さな札（頭に小さな三角＝屋根）＋丸ゴシックの見出し ---- */
.en { display: inline-flex; align-items: center; gap: 10px; font: 600 13px/1 var(--en); letter-spacing: .24em; text-transform: uppercase; color: var(--leaf); }
.en::before { content: ''; width: 12px; height: 9px; background: currentColor; clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.h2 { margin-top: 14px; font: 700 clamp(24px, 2.3vw, 32px)/1.5 var(--maru); letter-spacing: .14em; color: var(--leaf-deep); }
.h3 { font: 700 21px/1.5 var(--maru); letter-spacing: .1em; color: var(--leaf-deep); }
.h4 { font: 700 17px/1.6 var(--maru); letter-spacing: .1em; color: var(--leaf-deep); }
.sec-head.is-center { text-align: center; }
.sec { position: relative; padding: clamp(80px, 9vw, 130px) 0; }
.more { display: inline-block; margin-top: 26px; font-size: 14px; color: var(--leaf-deep); }
.more::after { content: ' →'; }

/* ボタン＝丸いピル・ホバーで若葉の色が左から流れる（fx-btn-slide） */
.btn { --fx-btn-slide-bg: var(--leaf); --fx-btn-slide-fg: #fff; display: inline-flex; align-items: center; gap: 18px; padding: 15px 30px 15px 34px; border: 1px solid var(--leaf); border-radius: 999px; font: 700 14.5px/1 var(--maru); letter-spacing: .14em; color: var(--leaf-deep); background: var(--paper); }
.btn i { width: 26px; height: 26px; border-radius: 50%; background: var(--leaf); position: relative; flex: none; }
.btn i::after { content: ''; position: absolute; inset: 0; margin: auto; width: 9px; height: 9px; border-top: 1.5px solid #fff; border-right: 1.5px solid #fff; transform: translateX(-1px) rotate(45deg); }
.btn.is-white { background: #fff; border-color: #fff; color: var(--leaf-deep); --fx-btn-slide-bg: var(--leaf-deep); }

/* ==== ヘッダー ==== */
.site-header { position: sticky; top: 0; z-index: 900; transition: background-color .5s, box-shadow .5s, backdrop-filter .5s; }
.site-header.is-scrolled { background: rgba(255, 253, 248, .86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(47, 90, 42, .08); }
.sh-inner { width: min(1320px, calc(100% - 48px)); margin: 0 auto; height: 92px; display: flex; align-items: center; gap: 28px; transition: height .5s; }
.site-header.is-scrolled .sh-inner { height: 74px; }
.brand img { width: 250px; height: auto; transition: width .5s; }
.site-header.is-scrolled .brand img { width: 220px; }
.gnav { margin-left: auto; display: flex; gap: 26px; font: 500 14.5px/1 var(--maru); letter-spacing: .1em; }
.gnav a { padding: 6px 0; }
.sh-tel { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 20px; border-radius: 999px; background: var(--leaf); color: #fff; line-height: 1; }
.sh-tel-l { font-size: 11px; letter-spacing: .14em; opacity: .9; }
.sh-tel b { font: 600 18px/1 var(--en); letter-spacing: .06em; }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 50%; background: var(--leaf); position: relative; }
.menu-btn span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: #fff; }
.menu-btn span:first-child { top: 19px; } .menu-btn span:last-child { top: 26px; }

/* ==== 1 メインビジュアル ==== */
.hero { position: relative; padding: 20px 0 clamp(70px, 8vw, 120px); }
.hero-leaves { position: absolute; z-index: 0; left: -6%; top: -160px; width: 62%; height: 720px; background: url("images/leaves.jpg") center / cover no-repeat; opacity: .5;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 30% 25%, #000 0%, rgba(0,0,0,.45) 45%, transparent 75%); mask-image: radial-gradient(ellipse 70% 65% at 30% 25%, #000 0%, rgba(0,0,0,.45) 45%, transparent 75%); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; width: min(1320px, calc(100% - 64px)); margin: 0 auto; display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); grid-template-areas: "text visual"; gap: clamp(36px, 4.5vw, 72px); align-items: center; }
.hero-text { grid-area: text; padding-top: 30px; }
.hero-visual { grid-area: visual; position: relative; aspect-ratio: 1000 / 800; margin-top: 30px; }
.roof-line { position: absolute; left: -26px; top: -30px; width: 100%; height: 100%; z-index: 0; --anim-draw-dur: 2.4s; }
.roof-frame { position: absolute; inset: 0; z-index: 1; -webkit-mask: var(--roof-hero) 0 0 / 100% 100% no-repeat; mask: var(--roof-hero) 0 0 / 100% 100% no-repeat; background: var(--leaf-soft); }
.hero-photos, .hero-photos figure { height: 100%; }
.hero-photos img { width: 100%; height: 100%; object-fit: cover; }
.hero-photos figure { overflow: hidden; }
.hero-photos .is-active img { animation: sk-zoom 9s cubic-bezier(.25, .46, .45, .94) both; }
@keyframes sk-zoom { from { transform: scale(1.1); } to { transform: scale(1); } }
.roof-ball { position: absolute; z-index: 2; right: -12px; top: -26px; width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0 8%, #f39cc0 22%, var(--pink) 60%, #c24d82 100%); box-shadow: 0 8px 18px rgba(223, 107, 155, .35); --anim-sway-y: -8px; --anim-sway-rot: 0deg; --anim-sway-duration: 5s; }

.hero-lbl { display: flex; align-items: center; gap: 10px; font: 500 14px/1.6 var(--maru); letter-spacing: .14em; color: var(--muted); }
.hero-lbl .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--pink); flex: none; }
.hero-catch { margin-top: 22px; font: 500 clamp(28px, 2.9vw, 44px)/1.6 var(--maru); letter-spacing: .1em; color: var(--leaf-deep); }
.hero-catch .ln { white-space: nowrap; }
.hero-sub { margin-top: 14px; font: 500 clamp(15px, 1.2vw, 18px)/1.8 var(--maru); letter-spacing: .14em; color: var(--ink); }
.hero-badges { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-badges li { padding: 7px 16px; border-radius: 999px; border: 1px solid rgba(95, 158, 69, .5); font: 500 13.5px/1.4 var(--maru); letter-spacing: .1em; color: var(--leaf-deep); background: rgba(255, 253, 248, .7); }
.hero-badges li.is-pink { border-color: transparent; background: var(--pink-soft); color: var(--pink-ink); }
.hero-today { margin-top: 30px; }
body.plan-sankaku .hero-today .asbcala-today-schedule-wrapper { display: block !important; }

/* ---- 本日の診療（ASB Calendar Pro の本日ウィジェット）＝案の形へ寄せる。プラグインの !important に合わせて上書き ---- */
body.plan-sankaku .asbcala-today-schedule-wrapper:not(.asbcala-ts-float) .asbcala-today-schedule-widget {
  position: relative; margin: 0 !important;
  background: var(--paper) !important; color: var(--ink) !important; border: 1px solid var(--line); border-radius: 22px !important;
  box-shadow: 0 22px 44px -26px rgba(47, 90, 42, .35) !important; font-family: var(--goth) !important; letter-spacing: .04em;
}
body.plan-sankaku .asbcala-today-schedule-wrapper .asbcala-today-schedule-widget::before { content: ''; position: absolute; right: 24px; top: -11px; width: 34px; height: 22px; background: var(--leaf); clip-path: polygon(0 100%, 100% 0, 100% 100%); }
body.plan-sankaku .asbcala-today-schedule-wrapper .asbcala-today-schedule-widget .asbcala-today-title { margin: 0 0 6px !important; font: 700 13px/1.4 var(--maru) !important; letter-spacing: .22em !important; text-align: left !important; color: var(--leaf) !important; text-transform: none !important; }
body.plan-sankaku .asbcala-today-schedule-wrapper .asbcala-today-schedule-widget .asbcala-today-content { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 18px; align-items: end; }
body.plan-sankaku .asbcala-today-schedule-wrapper .asbcala-today-schedule-widget .asbcala-today-date { grid-column: 1 / -1; display: flex !important; justify-content: flex-start !important; align-items: center; gap: 4px; margin: 0 0 12px !important; padding: 0 0 12px !important; border-bottom: 1px dashed var(--line) !important; font: 700 19px/1.4 var(--maru) !important; text-align: left !important; color: var(--leaf-deep); }
body.plan-sankaku .asbcala-today-schedule-wrapper .asbcala-today-schedule-widget .asbcala-today-calendar-icon { color: var(--leaf); }
body.plan-sankaku .asbcala-today-schedule-wrapper .asbcala-today-schedule-widget .asbcala-today-hours { margin: 0 !important; }
body.plan-sankaku .asbcala-today-schedule-wrapper .asbcala-today-schedule-widget .asbcala-today-hours-label, body.plan-sankaku .asbcala-today-schedule-wrapper .asbcala-today-schedule-widget .asbcala-today-events-label { font: 500 11.5px/1 var(--goth) !important; letter-spacing: .16em !important; opacity: 1 !important; color: var(--muted); text-transform: none !important; margin-bottom: 8px !important; }
body.plan-sankaku .asbcala-today-schedule-wrapper .asbcala-today-schedule-widget .asbcala-today-hours-value { padding: 0 !important; background: none !important; text-align: left !important; font: 500 17px/1.75 var(--en) !important; letter-spacing: .06em; color: var(--ink); white-space: nowrap; max-height: none !important; overflow: visible !important; }
body.plan-sankaku .asbcala-today-schedule-wrapper .asbcala-today-schedule-widget .asbcala-today-hours-value .hb-ampm { display: inline-block; margin-right: 10px; padding: 2px 9px; border-radius: 999px; background: var(--leaf-soft); color: var(--leaf-deep); font: 500 12px/1.5 var(--goth); letter-spacing: .1em; vertical-align: 2px; }
body.plan-sankaku .asbcala-today-schedule-wrapper .asbcala-today-schedule-widget .asbcala-today-events { grid-column: 1 / -1; margin-top: 14px; }
body.plan-sankaku .asbcala-today-schedule-wrapper .asbcala-today-schedule-widget .asbcala-today-event-item { border-radius: 10px !important; padding: 8px 12px !important; }
body.plan-sankaku .asbcala-today-schedule-wrapper .asbcala-today-schedule-widget .asbcala-today-cta { margin: 0 !important; padding: 0 !important; border: 0 !important; }
body.plan-sankaku .asbcala-today-schedule-wrapper .asbcala-today-schedule-widget .asbcala-today-cta-button { display: inline-flex !important; align-items: center; gap: 8px; padding: 11px 18px !important; border-radius: 999px !important; background: var(--leaf) !important; color: #fff !important; font: 700 13px/1 var(--maru) !important; letter-spacing: .1em !important; text-decoration: none !important; white-space: nowrap; transition: background-color .3s; }
body.plan-sankaku .asbcala-today-schedule-wrapper .asbcala-today-schedule-widget .asbcala-today-cta-button:hover { background: var(--leaf-deep) !important; }

/* ==== 2 お知らせ＝屋根の形に上を切った白い面 ==== */
.news { padding-top: 10px; }
.news > .roof-panel { position: relative; width: min(1320px, calc(100% - 32px)); margin: 0 auto; padding: clamp(110px, 10vw, 150px) 0 clamp(64px, 6vw, 90px); background: var(--paper); clip-path: polygon(0 clamp(70px, 7vw, 110px), 100% 0, 100% 100%, 0 100%); border-radius: 0 0 32px 32px; }
.news-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; }
.news-list li a { display: grid; grid-template-columns: 112px 92px minmax(0, 1fr) 30px; align-items: center; gap: 12px; padding: 20px 10px; border-bottom: 1px solid var(--line); transition: background-color .35s; }
.news-list li:first-child a { border-top: 1px solid var(--line); }
.news-list time { font: 600 14px/1 var(--en); letter-spacing: .1em; color: var(--muted); }
.news-list .cat { justify-self: start; padding: 4px 10px; border-radius: 999px; background: var(--leaf-soft); color: var(--leaf-deep); font-size: 11.5px; line-height: 1.4; letter-spacing: .1em; }
.news-list .t { font-size: 15.5px; }
.news-list .arr { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); position: relative; transition: background-color .35s, border-color .35s, transform .35s; }
.news-list .arr::after { content: ''; position: absolute; inset: 0; margin: auto; width: 7px; height: 7px; border-top: 1.5px solid var(--leaf); border-right: 1.5px solid var(--leaf); transform: translateX(-1px) rotate(45deg); }
.news-list a:hover { background: rgba(233, 241, 223, .5); }
.news-list a:hover .arr { background: var(--leaf); border-color: var(--leaf); transform: translateX(4px); }
.news-list a:hover .arr::after { border-color: #fff; }

/* ==== 写真の屋根の枠（カード・院長・院内の写真）＝片流れの形。is-rev で向きを反対に ==== */
.roofed { position: relative; overflow: hidden; -webkit-mask: var(--roof) 0 0 / 100% 100% no-repeat; mask: var(--roof) 0 0 / 100% 100% no-repeat; background: var(--leaf-soft); }
.roofed.is-rev { -webkit-mask-image: var(--roof-rev); mask-image: var(--roof-rev); }
.roofed img { width: 100%; height: 100%; object-fit: cover; }
.roofed img.anim-parallax { height: 116%; margin-top: -8%; }

/* ==== 3 診療科目 ==== */
.med-intro { max-width: 780px; margin: 42px auto 0; text-align: center; }
.med-dept span { display: inline-block; padding: 8px 26px 7px; border-radius: 999px; background: var(--leaf); color: #fff; font: 700 16px/1.5 var(--maru); letter-spacing: .3em; }
.med-lead { margin-top: 22px; font-size: 16px; line-height: 2.1; }
.med-cards { margin-top: 64px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 60px); }
.med-card:nth-child(2) { margin-top: 70px; }
.med-photo { aspect-ratio: 16 / 11.5; }
.med-body { position: relative; margin-top: 28px; padding: 0 6px; }
.med-body .num { font: 600 44px/1 var(--en); letter-spacing: .04em; color: var(--leaf-2); }
.med-body .h3 { margin: 10px 0 14px; }
.med-more { margin-top: 56px; text-align: center; }

/* ==== 4 院長紹介 ==== */
.doctor { padding-bottom: clamp(70px, 7vw, 100px); }
.doc-band { position: absolute; inset: 0; z-index: 0; background: var(--leaf-soft); clip-path: polygon(0 clamp(60px, 7vw, 120px), 100% 0, 100% 100%, 0 100%); }
.doc-band::after { content: ''; position: absolute; inset: 0; background: url("images/leaves.jpg") right top / 60% auto no-repeat; opacity: .22; mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(200deg, #000 0%, transparent 55%); mask-image: linear-gradient(200deg, #000 0%, transparent 55%); }
.doc-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 90px); align-items: center; padding-top: 30px; }
.doc-visual { position: relative; padding-bottom: 40px; }
.doc-photo { width: 76%; aspect-ratio: 3 / 4; }
.doc-photo img { filter: grayscale(1) contrast(1.05); }
.doc-face { position: absolute; right: 0; bottom: 0; width: 48%; border-radius: 50%; background: #fff; padding: 8px; box-shadow: 0 20px 40px -20px rgba(47, 90, 42, .45); }
.doc-face img { border-radius: 50%; }
.doc-name { margin-top: 26px; font: 700 30px/1.3 var(--maru); letter-spacing: .2em; color: var(--ink); }
.doc-name small { display: inline-block; margin-right: 14px; font-size: 14px; letter-spacing: .2em; color: var(--muted); vertical-align: 5px; }
.doc-h { margin: 22px 0 12px; padding-left: 16px; border-left: 3px solid var(--pink); font: 700 18px/1.6 var(--maru); letter-spacing: .1em; color: var(--leaf-deep); }
.doc-creds { margin: 22px 0 32px; display: grid; gap: 6px; font-size: 14.5px; }
.doc-creds li { position: relative; padding-left: 22px; }
.doc-creds li::before { content: ''; position: absolute; left: 0; top: .78em; width: 10px; height: 8px; background: var(--leaf); clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.qa-quote { position: relative; z-index: 1; margin-top: clamp(60px, 7vw, 90px); padding: clamp(36px, 4.5vw, 60px) clamp(28px, 5vw, 72px); background: var(--paper); border-radius: 28px; box-shadow: 0 30px 60px -40px rgba(47, 90, 42, .35); }
.qa-quote::before { content: '“'; position: absolute; right: clamp(24px, 4vw, 56px); top: -18px; font: 600 120px/1 var(--en); color: var(--leaf-2); opacity: .55; }
.qa-lbl { display: flex; align-items: center; gap: 14px; font: 700 14px/1.4 var(--maru); letter-spacing: .14em; color: var(--pink-ink); }
.qa-lbl img { width: 54px; height: 54px; border-radius: 50%; background: var(--leaf-soft); }
.qa-q { margin: 18px 0 16px; font: 700 clamp(20px, 1.8vw, 24px)/1.6 var(--maru); letter-spacing: .1em; color: var(--leaf-deep); }
.qa-a + .qa-a { margin-top: 10px; }

/* ==== 5 院内の写真 ==== */
.gallery { padding: 30px 0 0; overflow: hidden; }
.gal-row { width: min(1440px, calc(100% - 32px)); margin: 0 auto; display: grid; grid-template-columns: 1.3fr .78fr 1.1fr 1fr; gap: clamp(14px, 2vw, 28px); align-items: end; }
.gal.g1 { aspect-ratio: 4 / 3.3; }
.gal.g2 { aspect-ratio: 3 / 4.2; }
.gal.g3 { aspect-ratio: 1 / 1; margin-bottom: 60px; }
.gal.g4 { aspect-ratio: 4 / 3.6; margin-bottom: 20px; }

/* ==== 6 受付時間と休診日カレンダー ==== */
.hours-grid { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: clamp(40px, 5vw, 80px); align-items: start; }
.hours-table-wrap { margin-top: 34px; border-radius: 20px; overflow: hidden; background: var(--paper); box-shadow: 0 20px 40px -32px rgba(47, 90, 42, .4); }
.hours-table { width: 100%; border-collapse: collapse; text-align: center; font-size: 15px; }
.hours-table thead th { padding: 14px 4px; background: var(--leaf); color: #fff; font: 500 14px/1 var(--maru); letter-spacing: .1em; }
.hours-table thead th:first-child { padding-left: 18px; text-align: left; }
.hours-table thead th.is-sun { color: #ffe5ef; }
.hours-table tbody th { padding: 18px 8px 18px 18px; text-align: left; font: 600 15px/1.2 var(--en); letter-spacing: .04em; white-space: nowrap; color: var(--ink); }
.hours-table td { padding: 18px 4px; color: var(--leaf); font-size: 17px; }
.hours-table td.is-off { color: var(--pink-ink); font-size: 14px; }
.hours-table tbody tr + tr { border-top: 1px dashed var(--line); }
.hours-notes { margin-top: 22px; display: grid; gap: 4px; font-size: 14.5px; }
.hours-notes li { position: relative; padding-left: 18px; }
.hours-notes li::before { content: ''; position: absolute; left: 0; top: .8em; width: 8px; height: 8px; border-radius: 50%; background: var(--pink); }
.cal-box { padding: clamp(24px, 3vw, 38px); background: var(--paper); border-radius: 28px; box-shadow: 0 30px 60px -44px rgba(47, 90, 42, .45); }
.cal-h { margin-bottom: 18px; font: 700 17px/1.4 var(--maru); letter-spacing: .14em; color: var(--leaf-deep); }
.plan-sankaku .asbcala-shortcode-wrapper {
  --cal-font: var(--goth); --cal-num: var(--en); --cal-ink: var(--ink); --cal-muted: var(--muted);
  --cal-line: rgba(58, 68, 54, .12); --cal-rule: var(--leaf); --cal-sun: var(--pink-ink); --cal-sat: #4f7aa0;
  --cal-today-bg: var(--leaf); --cal-today-ink: #fff; --cal-duty: var(--leaf); --cal-info: #6fb3a0;
  --cal-nav-line: rgba(95, 158, 69, .5); --cal-nav-hover-bg: var(--leaf); --cal-nav-hover-ink: #fff;
}
.plan-sankaku .asbcala-shortcode-wrapper[data-cal-title] .asbcala-calendar .calendar-header h2 { font: 700 30px/1 var(--maru); letter-spacing: .1em; color: var(--leaf-deep); }
.plan-sankaku .asbcala-calendar .calendar-header h2 small { display: block; margin-bottom: 8px; font: 600 13px/1 var(--en); letter-spacing: .2em; color: var(--muted); }
.plan-sankaku .asbcala-calendar .calendar-header h2 .cal-m { font: 600 38px/1 var(--en); margin-right: 4px; }
/* 吹き出しはプラグインの既定の白地（字が濃い色で出る）のまま＝地だけ塗らない（10-29 深緑で字が沈んだ）。寄せるのは角・書体・題の色だけ */
.plan-sankaku .asbcala-tip { border-radius: 12px; font-family: var(--goth); font-size: 13px; letter-spacing: .04em; }
.plan-sankaku .asbcala-tip .tooltip-event-title { color: var(--leaf-deep); font-weight: 700; }

/* ==== 7 良くあるご質問 ==== */
.faq-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 50px; }
.faq-list { display: grid; gap: 14px; }
.faq-item { background: var(--paper); border-radius: 20px; transition: box-shadow .35s; }
.faq-item.is-open { box-shadow: 0 20px 40px -30px rgba(47, 90, 42, .4); }
.faq-q { width: 100%; display: flex; align-items: center; gap: 16px; padding: 22px 26px; text-align: left; font: 700 16px/1.6 var(--maru); letter-spacing: .08em; color: var(--leaf-deep); }
.faq-q .q { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--leaf); color: #fff; font: 600 15px/1 var(--en); }
.faq-q i { margin-left: auto; flex: none; width: 14px; height: 14px; position: relative; }
.faq-q i::before, .faq-q i::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: var(--leaf); transition: transform .35s; }
.faq-q i::after { transform: rotate(90deg); }
.faq-item.is-open .faq-q i::after { transform: rotate(0); }
.faq-a { padding: 0 26px 24px 76px; font-size: 14.5px; }
.faq-a p + p { margin-top: 10px; }
.faq-item.is-open .faq-a { animation: sk-open .5s ease both; }
@keyframes sk-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ==== 8 交通のご案内 ==== */
.access { background: linear-gradient(var(--cream), var(--cream)); }
.access-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 5vw, 80px); align-items: start; }
.clinic-info { margin-top: 34px; border-top: 1px solid var(--line); }
.clinic-info > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 15px; }
.clinic-info dt { font: 700 13.5px/2 var(--maru); letter-spacing: .14em; color: var(--leaf); }
.routes { margin-top: 26px; display: grid; gap: 8px; font-size: 14.5px; }
.routes li { position: relative; padding-left: 22px; }
.routes li::before { content: ''; position: absolute; left: 0; top: .74em; width: 10px; height: 8px; background: var(--leaf); clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.routes b { display: block; font-weight: 700; color: var(--leaf-deep); }
/* 地図（字の大きい絵）は小さく右に寄せ、駐車場の図（字の細かい絵）は文より広く＝絵の大きさは中の字で決める（10-29 指示） */
.access-maps { display: grid; gap: 22px; }
.map-main { width: min(100%, 450px); justify-self: end; padding: 22px; background: var(--paper); border-radius: 28px; box-shadow: 0 30px 60px -44px rgba(47, 90, 42, .45); }
.map-main img { width: 100%; border-radius: 14px; }
.parking { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 22px; align-items: center; padding: 20px; background: var(--paper); border-radius: 22px; font-size: 14px; }
.parking img { border-radius: 10px; }
.parking .h4 { margin-bottom: 6px; }

/* ==== 9 お問合せ＝屋根の形の緑の面 ==== */
.contact { padding-top: 40px; }
.contact-panel { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(30px, 4vw, 60px); padding: clamp(110px, 10vw, 150px) clamp(28px, 5vw, 80px) clamp(50px, 5vw, 76px); background: var(--leaf); color: #fff; clip-path: polygon(0 clamp(60px, 6vw, 96px), 100% 0, 100% 100%, 0 100%); border-radius: 0 0 32px 32px; overflow: hidden; }
.contact-panel::before { content: ''; position: absolute; inset: 0; background: url("images/leaves.jpg") left center / cover no-repeat; opacity: .16; mix-blend-mode: screen; }
.contact-panel > * { position: relative; }
.contact-panel .en, .contact-panel .h2 { color: #fff; }
.ct-tel { margin-top: 18px; display: flex; align-items: baseline; gap: 14px; font: 600 clamp(36px, 4vw, 54px)/1 var(--en); letter-spacing: .04em; }
.ct-tel span { font-size: 16px; letter-spacing: .2em; }
.ct-hours { margin-top: 16px; font-size: 14.5px; line-height: 1.9; opacity: .95; }
.ct-hours .nw { white-space: nowrap; }
.ct-side { align-self: end; }
.onegai { margin-top: 26px; padding: 20px 22px; border-radius: 18px; background: rgba(255, 255, 255, .14); font-size: 13.5px; line-height: 1.85; }
.og-h { font: 700 14px/1.5 var(--maru); letter-spacing: .12em; margin-bottom: 6px; }

/* ==== フッター ==== */
.site-footer { position: relative; margin-top: clamp(60px, 7vw, 100px); padding: 0 0 26px; background: var(--paper); }
.ft-line { display: block; width: 100%; height: auto; margin: 0 auto; transform: translateY(-99%); position: absolute; left: 0; top: 0; --anim-draw-dur: 3.2s; --anim-draw-width: 1.4; }
.ft-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; padding-top: 60px; }
.ft-info .brand img { width: 240px; }
.ft-info address { margin-top: 18px; font-style: normal; font-size: 13.5px; line-height: 1.95; color: var(--muted); }
.ft-nav { display: grid; grid-template-columns: repeat(2, auto); gap: 8px 40px; font: 500 14px/1.8 var(--maru); letter-spacing: .1em; }
.ft-nav a { position: relative; padding-left: 18px; }
.ft-nav a::before { content: ''; position: absolute; left: 0; top: .72em; width: 8px; height: 6px; background: var(--leaf); clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.copy { width: min(1180px, calc(100% - 64px)); margin: 44px auto 0; padding-top: 18px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 12px; letter-spacing: .1em; }

/* TOPへ戻る（square＝角丸の四角の枠が読み進めた分だけ描かれる・ホバーで若葉の緑に塗る）
   ★10-29 fill（丸の中が下から満ちる）は「温泉のイメージ」で外した */
.plan-sankaku .asbsb-backtop { --fx-backtop-size: 54px; }

/* ==== 撮影（?shot=1）＝線描きは描き上がった形で・写真の視差は外す（sankaku.js） ==== */
html.is-shot .plan-sankaku .anim-draw svg path { stroke-dashoffset: 0 !important; stroke-opacity: 1 !important; transition: none !important; }
html.is-shot .plan-sankaku .hero-photos .is-active img { animation: none; }

/* ==== 幅で変える ==== */
@media (max-width: 1180px) {
  .gnav { gap: 18px; font-size: 13.5px; }
  .brand img { width: 210px; }
  .sh-tel { padding: 9px 16px; }
  .sh-tel b { font-size: 16px; }
}
@media (max-width: 1024px) {
  .gnav { display: none; }
  .menu-btn { display: block; }
  .sh-tel { margin-left: auto; }
  .hero-inner { grid-template-columns: 1fr; grid-template-areas: "visual" "text"; }
  .hero-visual { width: 100%; max-width: 760px; margin: 30px auto 0; }
  .hero-text { padding-top: 0; }
  .news-grid, .faq-grid { grid-template-columns: 1fr; gap: 24px; }
  .hours-grid, .access-grid, .doc-grid, .contact-panel { grid-template-columns: 1fr; }
  .doc-visual { max-width: 520px; }
  .access-maps { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .map-main { width: auto; justify-self: stretch; }
  .parking { grid-template-columns: 1fr; align-items: start; }
  .gal-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gal.g3, .gal.g4 { margin-bottom: 0; }
}
@media (max-width: 680px) {
  body.plan-sankaku { font-size: 15px; }
  .wrap { width: calc(100% - 40px); }
  .sh-inner { width: calc(100% - 28px); height: 70px; gap: 10px; }
  .site-header.is-scrolled .sh-inner { height: 62px; }
  .brand img, .site-header.is-scrolled .brand img { width: 168px; }
  .sh-tel { padding: 8px 12px; }
  .sh-tel-l { display: none; }
  .sh-tel b { font-size: 13.5px; }
  .menu-btn { width: 40px; height: 40px; }
  .menu-btn span { left: 12px; right: 12px; } .menu-btn span:first-child { top: 16px; } .menu-btn span:last-child { top: 23px; }
  .hero { padding-top: 6px; }
  .hero-inner { width: calc(100% - 40px); gap: 30px; }
  .hero-visual { margin-top: 26px; aspect-ratio: 1000 / 860; }
  .roof-line { left: -12px; top: -16px; }
  .roof-ball { right: -6px; top: -18px; width: 24px; height: 24px; }
  .hero-leaves { width: 120%; left: -30%; height: 520px; }
  .hero-catch { font-size: 27px; margin-top: 16px; }
  .hero-sub { font-size: 14.5px; letter-spacing: .1em; }
  .hero-badges li { font-size: 12.5px; padding: 6px 13px; }
  body.plan-sankaku .asbcala-today-schedule-wrapper .asbcala-today-schedule-widget .asbcala-today-content { grid-template-columns: 1fr; row-gap: 14px; }
  body.plan-sankaku .asbcala-today-schedule-wrapper .asbcala-today-schedule-widget .asbcala-today-cta { justify-self: start; }
  body.plan-sankaku .asbcala-today-schedule-wrapper .asbcala-today-schedule-widget .asbcala-today-date { font-size: 15px !important; white-space: nowrap; }
  body.plan-sankaku .asbcala-today-schedule-wrapper .asbcala-today-schedule-widget .asbcala-today-hours-value { font-size: 16px !important; }
  .news > .roof-panel { width: calc(100% - 20px); border-radius: 0 0 22px 22px; }
  .news-list li a { grid-template-columns: auto minmax(0, 1fr) 26px; grid-template-areas: "time cat arr" "t t arr"; gap: 6px 12px; padding: 16px 4px; }
  .news-list time { grid-area: time; } .news-list .cat { grid-area: cat; } .news-list .t { grid-area: t; font-size: 15px; } .news-list .arr { grid-area: arr; width: 26px; height: 26px; }
  .med-cards { grid-template-columns: 1fr; margin-top: 44px; }
  .med-card:nth-child(2) { margin-top: 0; }
  .med-lead { text-align: left; font-size: 15px; }
  .doc-name { font-size: 25px; }
  .faq-q { padding: 18px 18px; font-size: 15px; gap: 12px; }
  .faq-q .q { width: 30px; height: 30px; font-size: 13px; }
  .faq-a { padding: 0 18px 20px 18px; font-size: 14px; }
  .hours-table { font-size: 13px; }
  .hours-table thead th { font-size: 12px; padding: 12px 2px; }
  .hours-table thead th:first-child { padding-left: 12px; }
  .hours-table tbody th { padding: 14px 4px 14px 12px; font-size: 12.5px; }
  .hours-table td { padding: 14px 2px; font-size: 14px; }
  .hours-table td.is-off { font-size: 12px; }
  .cal-box { padding: 20px 14px; border-radius: 22px; margin: 0 -6px; }
  .plan-sankaku .asbcala-shortcode-wrapper[data-cal-title] .asbcala-calendar .calendar-header h2 { font-size: 24px; }
  .plan-sankaku .asbcala-calendar .calendar-header h2 .cal-m { font-size: 30px; }
  .clinic-info > div { grid-template-columns: 74px minmax(0, 1fr); gap: 10px; font-size: 14px; }
  .access-maps { grid-template-columns: 1fr; }
  .map-main { padding: 12px; border-radius: 20px; }
  .contact-panel { padding: 100px 24px 40px; }
  .ct-tel { font-size: 34px; }
  .ft-grid { grid-template-columns: 1fr; padding-top: 40px; }
  .ft-nav { gap: 6px 26px; }
  .gal-row { gap: 10px; }
}
