/* B案「しずく」— 塚谷医院。淡い桜色の地・明朝の細い字・写真を大きく。ロゴのハートの中の「しずく」を最初の演出に。
   書体は参考（tsc-h.com）から借りる＝和文 Noto Serif JP（見出し・文）／英字 Plus Jakarta Sans。 */
:root {
  --enji: #8f1c40;
  --logo: #a30b5b;
  --blush: #f7ebe8;
  --blush-2: #f1dcd8;
  --base: #fdf9f7;
  --ink: #3f3236;
  --muted: #8d7f83;
  --line: #ead9d6;
  --serif: 'Noto Serif JP', serif;
  --en: 'Plus Jakarta Sans', 'Noto Sans JP', sans-serif;
  --anim-wipe-color: var(--blush-2);
  --fx-underline-color: var(--enji);
  --fx-backtop-bg: var(--enji);
  --fx-backtop-ink: var(--enji);
  --fx-backtop-font: var(--en);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--base); color: var(--ink); font-family: var(--serif); font-weight: 300; font-size: 15px; line-height: 2.2; letter-spacing: .08em; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; text-decoration: none; }

.lbl { margin: 0 0 4px; font-family: var(--en); font-size: 12px; font-weight: 400; letter-spacing: .24em; text-transform: uppercase; color: var(--enji); display: flex; align-items: center; gap: 10px; }
.lbl::before { content: ''; width: 7px; height: 9px; background: var(--enji); border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; transform: rotate(180deg); clip-path: path('M3.5 0 C 6 3, 7 5, 7 6.2 A 3.5 3.5 0 0 1 0 6.2 C 0 5, 1 3, 3.5 0 Z'); border-radius: 0; }
.sec-title { font-size: clamp(26px, 2.8vw, 36px); font-weight: 400; letter-spacing: .14em; line-height: 1.6; margin: 0 0 28px; }
.num { font-family: var(--en); font-weight: 300; font-size: 54px; line-height: 1; color: var(--blush-2); margin: 0 0 10px; letter-spacing: 0; }
.link-more { display: inline-flex; align-items: center; gap: 16px; margin-top: 28px; font-family: var(--en); font-size: 12px; letter-spacing: .2em; color: var(--ink); }
.link-more span { font-family: var(--serif); font-size: 14px; letter-spacing: .12em; }
.link-more i { position: relative; width: 56px; height: 1px; background: var(--ink); transition: width .5s cubic-bezier(.2, .8, .2, 1), background .3s; }
.link-more i::after { content: ''; position: absolute; right: 0; top: -3px; width: 7px; height: 1px; background: inherit; transform: rotate(35deg); transform-origin: right; }
.link-more:hover i { width: 80px; background: var(--enji); }
.link-more:hover { color: var(--enji); }

/* ヘッダー */
.site-header { position: absolute; top: 42px; left: 0; right: 0; z-index: 50; display: flex; align-items: center; gap: 40px; padding: 22px clamp(18px, 4vw, 60px); }
.sh-brand img { width: 200px; }
.sh-nav { margin-left: auto; display: flex; align-items: center; gap: 34px; font-size: 14px; letter-spacing: .14em; }
.sh-nav > a, .sh-has-sub > a { display: block; padding: 4px 0; }
.sh-has-sub { position: relative; display: block; }
.sh-sub { position: absolute; top: 100%; left: 50%; transform: translate(-50%, 8px); background: #fff; padding: 12px 8px; min-width: 130px; box-shadow: 0 14px 30px rgba(63, 50, 54, .08); opacity: 0; visibility: hidden; transition: .3s; display: grid; }
.sh-sub a { padding: 4px 18px; font-size: 13px; }
.sh-sub a:hover { color: var(--enji); }
.sh-has-sub:hover .sh-sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.sh-tel { font-family: var(--en); font-size: 18px; letter-spacing: .08em; color: var(--enji); display: flex; align-items: baseline; gap: 8px; padding-left: 28px; border-left: 1px solid var(--line); }
.sh-tel span { font-size: 11px; letter-spacing: .2em; }
.sh-menu { display: none; }

/* 1 メインビジュアル */
.hero { position: relative; display: grid; grid-template-columns: minmax(320px, 36%) 1fr; min-height: 100vh; padding-top: 110px; background: linear-gradient(180deg, var(--blush) 0, var(--base) 100%); overflow: hidden; }
.hero-copy { position: relative; padding: 12vh clamp(18px, 4vw, 60px) 80px; display: flex; flex-direction: column; justify-content: center; }
.hero-en { margin: 0 0 30px; font-family: var(--en); font-size: 12px; letter-spacing: .4em; color: var(--enji); }
.hero-en span { display: inline-block; }
.hero-catch { margin: 0; font-weight: 300; font-size: clamp(28px, 2.6vw, 40px); line-height: 1.8; letter-spacing: .14em; }
.hero-catch .dm { display: table; margin-bottom: 10px; }
.hero-catch .dm { font-size: 12px; font-family: 'Noto Sans JP', sans-serif; }
.hero-lead { margin: 34px 0 0; font-size: 14.5px; line-height: 2.2; }
.hero-rule { position: absolute; left: clamp(18px, 4vw, 60px); bottom: 0; width: 1px; height: 90px; background: var(--enji); }
.hero-stage { position: relative; margin: 0 clamp(16px, 3vw, 44px) 44px 0; min-height: 560px; }
.hero-photo { position: absolute; inset: 0; overflow: hidden; border-radius: 0 0 0 220px; }
.hero-photo .fx-cycle, .hero-photo .fx-cycle-item { width: 100%; height: 100%; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; animation: shz-zoom 16s ease-in-out infinite alternate; }
@keyframes shz-zoom { from { transform: scale(1.12) translateX(-1.5%); } to { transform: scale(1) translateX(0); } }
.hero-badge { position: absolute; right: 26px; bottom: 26px; margin: 0; display: grid; gap: 2px; text-align: right; font-family: var(--en); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--enji); background: rgba(253, 249, 247, .88); padding: 14px 18px; }

/* しずくの演出：一滴落ちる → 波紋 → 輪の中から写真が開く（JS が .is-open を付ける・?shot=1 と JS なしは最初から開いた形） */
.drop, .ripple { position: absolute; left: 50%; top: 46%; pointer-events: none; opacity: 0; }
.drop { width: 22px; height: 30px; margin: -15px 0 0 -11px; background: var(--enji); clip-path: path('M11 0 C 18 10, 22 16, 22 20 A 11 11 0 0 1 0 20 C 0 16, 4 10, 11 0 Z'); }
.ripple { width: 20px; height: 20px; transform: translate(-50%, -50%); border-radius: 50%; border: 1px solid var(--enji); }
@media (prefers-reduced-motion: no-preference) {
  html.anim-on .hero-stage[data-drop] .hero-photo { clip-path: circle(0% at 50% 46%); }
  html.anim-on .hero-stage.is-drop .drop { animation: shz-fall 1s cubic-bezier(.55, 0, .9, .4) forwards; }
  html.anim-on .hero-stage.is-drop .ripple { animation: shz-ripple 2.4s cubic-bezier(.2, .7, .3, 1) forwards; }
  html.anim-on .hero-stage.is-drop .r1 { animation-delay: .95s; }
  html.anim-on .hero-stage.is-drop .r2 { animation-delay: 1.25s; }
  html.anim-on .hero-stage.is-drop .r3 { animation-delay: 1.55s; }
  html.anim-on .hero-stage.is-open .hero-photo { clip-path: circle(80% at 50% 46%); transition: clip-path 2.2s cubic-bezier(.65, 0, .2, 1); }
  html.anim-on .hero-stage.is-drop .hero-badge { opacity: 0; animation: shz-in 1.2s 2.6s ease forwards; }
}
@keyframes shz-fall { 0% { opacity: 0; transform: translateY(-46vh) scaleY(1.3); } 15% { opacity: 1; } 90% { opacity: 1; transform: translateY(0) scaleY(1); } 100% { opacity: 0; transform: translateY(0) scale(.4, .2); } }
@keyframes shz-ripple { 0% { opacity: .9; width: 20px; height: 20px; } 100% { opacity: 0; width: 1100px; height: 1100px; } }
@keyframes shz-in { to { opacity: 1; } }
html.is-shot .hero-photo { clip-path: none !important; }
html.is-shot .site-header { position: absolute; }

/* 2 診療時間の帯 */
.hours-band { padding: 0 clamp(16px, 4vw, 60px); margin-top: -10px; position: relative; z-index: 2; }
.hb-inner { max-width: 1180px; margin: 0 auto; background: #fff; display: grid; grid-template-columns: auto 1fr auto; gap: clamp(20px, 3vw, 50px); align-items: center; padding: 26px clamp(22px, 3vw, 46px); box-shadow: 0 20px 50px rgba(143, 28, 64, .06); }
.hb-title { margin: 0; font-size: 18px; letter-spacing: .16em; display: grid; line-height: 1.5; }
.hb-title small { font-family: var(--en); font-size: 11px; letter-spacing: .26em; color: var(--enji); }
.hb-list { margin: 0; display: flex; flex-wrap: wrap; gap: 8px 36px; }
.hb-list div { display: flex; gap: 14px; align-items: baseline; }
.hb-list dt { font-size: 12px; color: var(--enji); letter-spacing: .14em; }
.hb-list dd { margin: 0; font-family: var(--en); font-size: 17px; letter-spacing: .06em; }
.hb-list dd span { font-family: var(--serif); font-size: 12px; color: var(--muted); margin-left: 10px; }
.hb-list div:last-child dd { font-family: var(--serif); font-size: 14px; }
.hb-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 30px; background: var(--enji); color: #fff; font-size: 14px; letter-spacing: .16em; transition: background .3s, letter-spacing .4s; }
.hb-btn:hover { background: var(--logo); letter-spacing: .22em; }

/* 3 ごあいさつの一節 */
.intro { max-width: 1240px; margin: 0 auto; padding: 150px clamp(18px, 4vw, 60px) 120px; display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(30px, 6vw, 100px); align-items: center; }
.intro-title { font-size: clamp(26px, 2.8vw, 38px); font-weight: 300; letter-spacing: .16em; line-height: 1.8; margin: 10px 0 30px; }
.intro-text p:not(.lbl) { margin: 0 0 14px; }
.intro-photos { position: relative; height: 560px; }
.ip { position: absolute; overflow: hidden; }
.ip img { width: 100%; height: 100%; object-fit: cover; }
.ip1 { right: 0; top: 0; width: 76%; height: 74%; }
.ip2 { left: 0; bottom: 0; width: 44%; height: 44%; border: 10px solid var(--base); }

/* 4 婦人科 */
.gyne { background: var(--blush); padding: 120px 0 100px; overflow: hidden; }
.gyne-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(30px, 6vw, 100px); align-items: center; padding-right: clamp(18px, 6vw, 120px); }
.gyne-photo { height: 640px; overflow: hidden; border-radius: 0 320px 320px 0; }
.gyne-photo img { width: 100%; height: 100%; object-fit: cover; }
.gyne-body p:not(.lbl):not(.num) { margin: 0 0 14px; }
.worry { margin-top: 90px; display: grid; gap: 12px; }
.worry-row p { margin: 0; display: flex; white-space: nowrap; }
.worry-row span { font-size: clamp(22px, 2.6vw, 34px); font-weight: 300; letter-spacing: .14em; padding: 0 34px; color: var(--enji); display: inline-flex; align-items: center; gap: 34px; }
.worry-row span::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--blush-2); }
.worry-row.is-rev span { color: transparent; -webkit-text-stroke: .6px var(--enji); }

/* 5 小児科・内科 */
.depts { max-width: 1240px; margin: 0 auto; padding: 130px clamp(18px, 4vw, 60px) 110px; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 4vw, 70px); }
.dept:nth-child(2) { margin-top: 110px; }
.dept-photo { aspect-ratio: 4 / 4.6; overflow: hidden; position: relative; }
.dept-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s cubic-bezier(.2, .8, .2, 1); }
.dept-photo::before { content: ''; position: absolute; inset: 14px; border: 1px solid rgba(255, 255, 255, 0); z-index: 3; transition: border-color .6s, inset .6s; pointer-events: none; }
.dept:hover .dept-photo img { transform: scale(1.06); }
.dept:hover .dept-photo::before { border-color: rgba(255, 255, 255, .9); inset: 20px; }
.dept-body { padding: 34px 6px 0; }
.dept-body .num { font-size: 44px; }
.dept-body h3 { font-size: 26px; font-weight: 400; letter-spacing: .16em; margin: 0 0 16px; }
.dept-body p:not(.lbl):not(.num) { margin: 0; }
.dept-items { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; padding: 0; margin: 18px 0 0; font-size: 13px; }
.dept-items li::before { content: '—'; color: var(--enji); margin-right: 8px; }

/* 6 ご挨拶 */
.message { background: linear-gradient(90deg, var(--base) 0 55%, var(--blush) 55% 100%); padding: 120px clamp(18px, 4vw, 60px); }
.msg-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(30px, 6vw, 100px); align-items: center; }
.msg-body p:not(.lbl) { margin: 0 0 14px; }
.msg-sign { margin-top: 30px !important; font-size: 20px; letter-spacing: .24em; display: grid; line-height: 1.6; }
.msg-sign small { font-size: 12px; color: var(--muted); letter-spacing: .14em; }
.msg-photo { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 240px 240px 0 0; }
.msg-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

/* 7 院内 */
.rooms { max-width: 1240px; margin: 0 auto; padding: 130px clamp(18px, 4vw, 60px) 110px; }
.rooms-grid { display: grid; grid-template-columns: 1.6fr 1fr; grid-template-rows: repeat(3, 1fr); gap: 16px; height: 760px; }
.room { position: relative; overflow: hidden; }
.room.is-big { grid-row: 1 / 4; }
.room img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .8, .2, 1); }
.room figcaption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 44px 22px 14px; color: #fff; font-size: 13px; line-height: 1.8; background: linear-gradient(180deg, transparent, rgba(40, 28, 32, .66)); max-height: 92px; overflow: hidden; transition: max-height .7s cubic-bezier(.2, .8, .2, 1); }
.room figcaption b { display: block; font-weight: 400; font-size: 17px; letter-spacing: .16em; margin-bottom: 10px; }
.room:hover figcaption { max-height: 260px; }
.room:hover img { transform: scale(1.04); }
.room.is-big figcaption { max-height: none; max-width: 560px; background: none; padding: 26px; }
.room.is-big::before { content: ''; position: absolute; inset: 40% 0 0; background: linear-gradient(180deg, transparent, rgba(40, 28, 32, .72)); pointer-events: none; z-index: 2; }
.room figcaption { text-shadow: 0 1px 6px rgba(0, 0, 0, .35); }
.room.is-big figcaption { z-index: 3; }

/* 8 お知らせ */
.news { background: var(--blush); padding: 110px clamp(18px, 4vw, 60px); }
.news-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 300px 1fr; gap: clamp(30px, 5vw, 80px); }
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li { border-bottom: 1px solid var(--line); }
.news-list li:first-child { border-top: 1px solid var(--line); }
.news-list a { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 24px 0; font-size: 14.5px; transition: color .3s, padding .4s; }
.news-list a:hover { color: var(--enji); padding-left: 10px; }
.news-list time { font-family: var(--en); font-size: 13px; color: var(--muted); letter-spacing: .1em; }

/* 9 診療時間とアクセス */
.visit { max-width: 1240px; margin: 0 auto; padding: 130px clamp(18px, 4vw, 60px) 110px; }
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 100px); }
.hours-table { width: 100%; border-collapse: collapse; text-align: center; font-size: 14px; }
.hours-table th, .hours-table td { padding: 14px 4px; border-bottom: 1px solid var(--line); font-weight: 300; }
.hours-table thead th { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); font-weight: 400; }
.hours-table tbody th { text-align: left; font-family: var(--en); white-space: nowrap; }
.hours-table td { color: var(--enji); font-size: 11px; }
.hours-table td.off { color: var(--muted); font-size: 13px; }
.hours-notes { list-style: none; margin: 20px 0 0; padding: 0; font-size: 13px; line-height: 2; }
.hours-notes li::before { content: '・'; color: var(--enji); }
.cal-box { margin-top: 26px; border: 1px dashed var(--blush-2); padding: 34px 20px; text-align: center; font-size: 13px; color: var(--muted); background: #fff; }
.map-frame { aspect-ratio: 16 / 10; overflow: hidden; background: var(--blush); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.35) sepia(.1); }
.addr { margin: 22px 0 10px; font-size: 14.5px; }
.ways { margin: 0; font-size: 13.5px; }
.ways div { display: grid; grid-template-columns: 54px 1fr; padding: 8px 0; border-bottom: 1px solid var(--line); }
.ways dt { color: var(--enji); }
.ways dd { margin: 0; }

/* 10 外観＋電話 */
.outro { position: relative; height: 560px; overflow: hidden; }
.outro-photo { position: absolute; inset: 0; overflow: hidden; }
.outro-photo img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 60%; }
.outro-card { position: absolute; right: clamp(18px, 8vw, 140px); top: 50%; transform: translateY(-50%); background: rgba(253, 249, 247, .94); padding: 44px 56px; text-align: center; }
.outro-card .lbl { justify-content: center; }
.outro-tel { margin: 10px 0 0; font-family: var(--en); font-weight: 300; font-size: clamp(28px, 3vw, 40px); letter-spacing: .08em; color: var(--enji); line-height: 1.4; }
.outro-fax { margin: 4px 0 0; font-family: var(--en); font-size: 13px; color: var(--muted); letter-spacing: .14em; }

/* フッター */
.site-footer { background: var(--ink); color: #f1e6e8; padding: 80px clamp(18px, 4vw, 60px) 40px; }
.ft-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; }
.ft-brand { display: inline-block; background: #fff; padding: 12px 20px; }
.ft-brand img { width: 210px; }
.ft-addr { margin: 22px 0 0; font-size: 13px; line-height: 2; opacity: .85; }
.ft-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 28px; font-size: 13px; letter-spacing: .12em; --fx-underline-color: #fff; }
.ft-copy { max-width: 1180px; margin: 50px auto 0; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .15); font-family: var(--en); font-size: 11px; letter-spacing: .14em; opacity: .6; }

.sp-bar { display: none; }

@media (max-width: 1020px) {
  .sh-nav { display: none; }
  .sh-tel { margin-left: auto; border: 0; }
  .sh-menu { display: grid; gap: 8px; width: 44px; height: 44px; place-content: center; border: 0; background: none; cursor: pointer; }
  .sh-menu span { width: 26px; height: 1px; background: var(--ink); display: block; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-stage { order: -1; margin: 0 0 0 clamp(16px, 4vw, 40px); min-height: 0; height: 68vw; }
  .hero-copy { padding-top: 50px; }
  .intro, .gyne-grid, .msg-grid, .news-grid, .visit-grid, .ft-grid { grid-template-columns: 1fr; }
  .gyne-grid { padding: 0 clamp(18px, 4vw, 60px) 0 0; }
  .gyne-body { padding-left: clamp(18px, 4vw, 60px); }
  .message { background: var(--base); }
  .ft-nav { justify-content: flex-start; }
}
@media (max-width: 640px) {
  body { font-size: 14px; line-height: 2.1; }
  .site-header { padding: 14px 16px; }
  .sh-brand img { width: 148px; }
  .sh-tel { display: none; }
  .hero { padding-top: 110px; }
  .hero-stage { height: 112vw; margin-left: 16px; }
  .hero-photo { border-radius: 0 0 0 120px; }
  .hero-copy { padding: 44px 16px 110px; }
  .hero-catch { font-size: 27px; letter-spacing: .12em; }
  .hero-lead { font-size: 13.5px; }
  .hero-rule { left: 16px; height: 70px; }
  .hero-badge { right: 14px; bottom: 14px; font-size: 9px; }
  .hours-band { padding: 0 16px; }
  .hb-inner { grid-template-columns: 1fr; gap: 14px; padding: 24px 20px; }
  .hb-list { display: grid; gap: 6px; }
  .hb-list dd span { display: block; margin: 0; }
  .hb-btn { width: 100%; }
  .intro { padding: 100px 16px 80px; }
  .intro-photos { height: 380px; }
  .gyne { padding: 80px 0; }
  .gyne-photo { height: 380px; border-radius: 0 190px 190px 0; }
  .gyne-body { padding: 0 16px; }
  .worry { margin-top: 60px; }
  .worry-row span { font-size: 20px; padding: 0 18px; gap: 18px; }
  .depts { grid-template-columns: 1fr; padding: 90px 16px 70px; gap: 60px; }
  .dept:nth-child(2) { margin-top: 0; }
  .dept-photo { aspect-ratio: 4 / 3.4; }
  .message { padding: 80px 16px; }
  .msg-photo { max-width: 300px; }
  .rooms { padding: 90px 16px 70px; }
  .rooms-grid { grid-template-columns: 1fr 1fr; grid-template-rows: none; height: auto; gap: 10px; }
  .room.is-big { grid-row: auto; grid-column: 1 / 3; aspect-ratio: 4 / 3; }
  .room { aspect-ratio: 1; }
  .room:last-child { grid-column: 1 / 3; aspect-ratio: 2 / 1; }
  .room figcaption { max-height: none; padding: 40px 12px 10px; font-size: 0; }
  .room figcaption b { font-size: 14px; margin: 0; }
  .room.is-big figcaption { font-size: 12px; padding: 18px; }
  .news { padding: 80px 16px; }
  .news-list a { grid-template-columns: 1fr; gap: 0; padding: 18px 0; }
  .visit { padding: 90px 16px 70px; }
  .hours-table { font-size: 12.5px; }
  .outro { height: 460px; }
  .outro-card { left: 16px; right: 16px; padding: 30px 20px; }
  .site-footer { padding-bottom: 110px; }
  .sp-bar { display: grid; grid-template-columns: 1fr 1.5fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; box-shadow: 0 -6px 20px rgba(63, 50, 54, .1); }
  .sp-bar a { display: grid; place-items: center; height: 58px; font-size: 14px; letter-spacing: .14em; background: #fff; color: var(--enji); }
  .sp-bar a.is-tel { background: var(--enji); color: #fff; font-family: var(--en); font-size: 15px; }
  .asbsb-backtop { --fx-backtop-bottom: 76px; --fx-backtop-right: 10px; }
}
