/* A案「いと」— 塚谷医院。生成りの桃色の地・角の丸い白い面・えんじの細い糸がロゴのハートを結ぶ。
   書体は参考（doodlemama.jp）から借りる＝英字 Montserrat Alternates／和文 Noto Sans JP。 */
:root {
  --enji: #9b1d48;          /* メイン＝えんじ */
  --logo: #a30b5b;          /* ロゴの小豆色 */
  --rose: #efd9de;
  --rose-soft: #f8ecee;
  --base: #fbf6f2;
  --ink: #4a3b40;
  --muted: #8a7a7f;
  --line: #eadcdf;
  --en: 'Montserrat Alternates', 'Noto Sans JP', sans-serif;
  --anim-draw-color: var(--enji);
  --anim-draw-width: 1.6;
  --anim-draw-ease: linear;
  --anim-wipe-color: var(--rose);
  --fx-backtop-bg: var(--enji);
  --fx-backtop-ring: #fff;
  --fx-underline-color: var(--enji);
  --fx-rail-ink: var(--enji);
  --fx-rail-line: var(--enji);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--base); color: var(--ink); font-family: 'Noto Sans JP', sans-serif; font-weight: 400; font-size: 15px; line-height: 2; letter-spacing: .05em; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; text-decoration: none; }
br.sp { display: none; }

/* 見出しの小札（ハート＋英字）。ハートはロゴの形を小さく */
.lbl { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-family: var(--en); font-size: 13px; font-weight: 500; letter-spacing: .12em; color: var(--enji); }
.heart { width: 13px; height: 13px; display: inline-block; background: url(images/mark.png) center / contain no-repeat; }
.sec-title { font-size: clamp(24px, 2.6vw, 32px); font-weight: 500; letter-spacing: .12em; margin: 0 0 22px; line-height: 1.5; }

/* 糸（線を描く） */
.thread { position: absolute; pointer-events: none; display: block; }
.thread svg { width: 100%; height: 100%; display: block; overflow: visible; }
.thread path { stroke: var(--enji); stroke-width: 1.6; stroke-linecap: round; fill: none; vector-effect: non-scaling-stroke; }

/* ボタン */
.btn-more { display: inline-flex; align-items: center; gap: 14px; margin-top: 26px; font-family: var(--en); font-size: 13px; font-weight: 500; letter-spacing: .1em; color: var(--enji); }
.btn-more i { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--enji); position: relative; transition: background .4s, transform .4s; }
.btn-more i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: translate(-65%, -50%) rotate(45deg); }
.btn-more:hover i { background: var(--enji); color: #fff; transform: translateX(4px); }
.btn-fill, .btn-line { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: 999px; font-weight: 500; font-size: 14px; letter-spacing: .1em; transition: background .3s, color .3s; }
.btn-fill { background: var(--enji); color: #fff; }
.btn-fill:hover { background: var(--logo); }
.btn-line { border: 1px solid var(--enji); color: var(--enji); background: #fff; }
.btn-line:hover { background: var(--rose-soft); }

/* ヘッダー */
.site-header { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 34px; padding: 16px clamp(18px, 4vw, 56px); background: rgba(251, 246, 242, .86); backdrop-filter: blur(10px); transition: box-shadow .4s, padding .4s; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(155, 29, 72, .06); padding-top: 10px; padding-bottom: 10px; }
.sh-brand img { width: 210px; }
.sh-nav { margin-left: auto; display: flex; align-items: center; gap: 30px; font-size: 14px; letter-spacing: .1em; }
.sh-nav > a, .sh-has-sub > a { display: block; padding: 6px 0; }
.sh-has-sub { display: block; }
html.is-shot .site-header { position: relative; }
.sh-has-sub { position: relative; }
.sh-sub { position: absolute; top: 100%; left: 50%; transform: translate(-50%, 8px); background: #fff; border-radius: 18px; padding: 10px 6px; min-width: 130px; box-shadow: 0 12px 30px rgba(74, 59, 64, .08); opacity: 0; visibility: hidden; transition: .3s; display: grid; }
.sh-sub a { padding: 6px 18px; font-size: 13px; border-radius: 10px; }
.sh-sub a:hover { background: var(--rose-soft); color: var(--enji); }
.sh-has-sub:hover .sh-sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.sh-tel { display: grid; line-height: 1.3; text-align: right; font-family: var(--en); font-size: 19px; font-weight: 500; color: var(--enji); letter-spacing: .06em; }
.sh-tel small { font-family: 'Noto Sans JP', sans-serif; font-size: 11px; color: var(--muted); letter-spacing: .1em; }
.sh-menu { display: none; }

/* 1 メインビジュアル */
.hero { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 2vw; min-height: calc(100vh - 80px); padding: 40px clamp(18px, 5vw, 80px) 100px; overflow: hidden; }
.hero-en { font-family: var(--en); font-size: 12px; letter-spacing: .14em; color: var(--muted); margin: 0 0 30px; }
.hero-catch { font-size: clamp(32px, 3.6vw, 52px); font-weight: 400; line-height: 1.75; letter-spacing: .16em; margin: 0; color: var(--ink); }
.hero-catch .dm { font-size: 12px; }
.hero-lead { margin: 30px 0 0; font-size: 15px; color: var(--ink); line-height: 2.1; }
.hero-chips { display: flex; gap: 10px; margin: 34px 0 0; padding: 0; }
.hero-chips span { padding: 6px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 13px; letter-spacing: .14em; }
.hero-chips .is-main { background: var(--enji); color: #fff; border-color: var(--enji); }
.hero-visual { position: relative; height: min(78vh, 720px); }
.hero-arch { position: absolute; right: 0; top: 0; width: 78%; height: 100%; border-radius: 999px 999px 40px 40px; overflow: hidden; background: var(--rose); }
.hero-arch .fx-cycle, .hero-arch .fx-cycle-item { width: 100%; height: 100%; }
.hero-arch img { width: 100%; height: 100%; object-fit: cover; animation: ito-slow 14s ease-in-out infinite alternate; }
@keyframes ito-slow { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero-dot { position: absolute; left: 2%; bottom: 8%; width: 32%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 8px solid var(--base); z-index: 2; animation: ito-float 7s ease-in-out infinite; }
.hero-dot img { width: 100%; height: 100%; object-fit: cover; }
@keyframes ito-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.thread-hero { inset: -4% -2% -14% -18%; z-index: 3; --anim-draw-dur: 3.6s; }
.hero-scroll { position: absolute; left: clamp(18px, 5vw, 80px); bottom: 26px; margin: 0; font-family: var(--en); font-size: 11px; letter-spacing: .2em; color: var(--muted); display: flex; align-items: center; gap: 12px; }
.hero-scroll::after { content: ''; width: 60px; height: 1px; background: var(--muted); transform-origin: left; animation: ito-line 2.4s ease-in-out infinite; }
@keyframes ito-line { 0% { transform: scaleX(0); } 60% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }

/* 2 ごあいさつの一節 */
.intro { position: relative; text-align: center; padding: 120px 20px 80px; }
.thread-intro { left: 50%; top: -30px; width: 60px; height: 110px; transform: translateX(-50%); }
.intro .lbl { justify-content: center; }
.intro-title { font-size: clamp(22px, 2.4vw, 30px); font-weight: 400; line-height: 1.9; letter-spacing: .14em; margin: 14px 0 26px; }
.intro-text { margin: 0 auto; max-width: 720px; color: var(--ink); }
.intro-photos { position: relative; height: 420px; max-width: 1100px; margin: 60px auto 0; }
.ip { position: absolute; border-radius: 32px; overflow: hidden; box-shadow: 0 20px 50px rgba(155, 29, 72, .08); }
.ip img { width: 100%; height: 100%; object-fit: cover; }
.ip1 { left: 4%; top: 0; width: 46%; height: 320px; }
.ip2 { right: 6%; top: 90px; width: 38%; height: 300px; border-radius: 160px 160px 32px 32px; }

/* 3 婦人科 */
.gyne { padding: 40px clamp(12px, 3vw, 40px) 60px; }
.gyne-panel { max-width: 1320px; margin: 0 auto; background: #fff; border-radius: 56px; padding: clamp(28px, 5vw, 80px); position: relative; overflow: hidden; }
.gyne-panel::before { content: ''; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, var(--rose-soft), transparent 70%); }
.gyne-head { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.gyne-photo { border-radius: 40px 200px 40px 40px; overflow: hidden; aspect-ratio: 4 / 4.4; }
.gyne-photo img { width: 100%; height: 100%; object-fit: cover; }
.gyne-body p { margin: 0; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 26px 0 0; }
.tags li { padding: 6px 16px; border-radius: 999px; background: var(--rose-soft); color: var(--enji); font-size: 13px; letter-spacing: .08em; transition: background .3s, color .3s; }
.tags li:hover { background: var(--enji); color: #fff; }
.stages { position: relative; margin-top: 70px; padding-top: 40px; }
.thread-stage { left: 0; right: 0; top: 0; height: 80px; --anim-draw-dur: 2.8s; }
.stage-list { position: relative; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stage-list li { position: relative; padding-top: 34px; font-size: 14px; line-height: 1.9; }
.stage-list li::before { content: ''; position: absolute; left: 0; top: 0; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 1.5px solid var(--enji); box-shadow: 0 0 0 6px var(--rose-soft); }
.stage-list b { display: block; font-weight: 500; color: var(--enji); font-size: 16px; letter-spacing: .1em; margin-bottom: 6px; }

/* 4 小児科・内科 */
.depts { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 32px); max-width: 1320px; margin: 0 auto; padding: 40px clamp(12px, 3vw, 40px) 100px; }
.dept { background: #fff; border-radius: 44px; overflow: hidden; transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .5s; }
.dept:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(155, 29, 72, .08); }
.dept-photo { aspect-ratio: 16 / 9.5; overflow: hidden; }
.dept-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .8, .2, 1); }
.dept:hover .dept-photo img { transform: scale(1.05); }
.dept-body { padding: 34px clamp(24px, 3vw, 44px) 40px; }
.dept-body h3 { font-size: 24px; font-weight: 500; letter-spacing: .14em; margin: 0 0 14px; }
.dept-body p { margin: 0; }
.dept-items { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px !important; }
.dept-items span { font-size: 13px; padding: 4px 14px; border-radius: 999px; border: 1px solid var(--line); }

/* 5 ご挨拶 */
.message { background: var(--rose-soft); border-radius: 80px 80px 0 0; padding: 110px clamp(18px, 5vw, 80px); }
.msg-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 360px 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.msg-photo { position: relative; }
.msg-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 10px solid #fff; }
.msg-photo figcaption { position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); background: #fff; border-radius: 999px; padding: 6px 22px; font-size: 13px; letter-spacing: .14em; white-space: nowrap; color: var(--enji); }
.msg-body p { margin: 0 0 16px; }
.msg-sign { margin-top: 26px !important; text-align: right; font-size: 14px; color: var(--muted); }
.msg-sign b { font-size: 20px; font-weight: 500; color: var(--ink); letter-spacing: .2em; margin-left: 8px; }

/* 6 院内のご案内 */
.rooms { background: var(--rose-soft); padding: 20px 0 110px; }
.rooms-head { max-width: 1320px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 40px); display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.rooms-rail { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px clamp(18px, 4vw, calc((100vw - 1240px) / 2)) 20px; scrollbar-width: none; }
.rooms-rail::-webkit-scrollbar { display: none; }
.room { flex: 0 0 min(440px, 78vw); scroll-snap-align: start; background: #fff; border-radius: 36px; overflow: hidden; }
.room img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.room figcaption { padding: 22px 26px 28px; font-size: 14px; line-height: 1.9; }
.room figcaption b { display: block; font-weight: 500; font-size: 17px; color: var(--enji); letter-spacing: .12em; margin-bottom: 6px; }

/* 7 お知らせ・診療時間 */
.info { padding: 110px clamp(18px, 4vw, 40px); }
.info-grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news-list li { border-bottom: 1px solid var(--line); }
.news-list a { display: grid; grid-template-columns: 100px 1fr; gap: 16px; padding: 18px 6px; transition: background .3s, padding .3s; border-radius: 12px; }
.news-list a:hover { background: #fff; padding-left: 14px; }
.news-list time { font-family: var(--en); font-size: 13px; color: var(--enji); }
.hours { background: #fff; border-radius: 44px; padding: clamp(26px, 3.4vw, 46px); }
.hours-table { width: 100%; border-collapse: collapse; text-align: center; font-size: 14px; }
.hours-table th, .hours-table td { padding: 12px 4px; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours-table thead th { background: var(--rose-soft); color: var(--enji); font-weight: 500; }
.hours-table thead th:first-child { border-radius: 14px 0 0 14px; }
.hours-table thead th:last-child { border-radius: 0 14px 14px 0; }
.hours-table tbody th { text-align: left; padding-left: 10px; font-family: var(--en); white-space: nowrap; }
.hours-table td { color: var(--enji); }
.hours-table td.off { color: var(--muted); }
.hours-notes { list-style: none; margin: 18px 0 0; padding: 0; font-size: 13px; line-height: 1.9; }
.hours-notes li { padding-left: 1.1em; position: relative; }
.hours-notes li::before { content: ''; position: absolute; left: 0; top: .75em; width: 6px; height: 6px; border-radius: 50%; background: var(--enji); }
.hours-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.cal-note { font-size: 12px; color: var(--muted); margin: 14px 0 0; }

/* 8 アクセス */
.access { padding: 0 clamp(18px, 4vw, 40px) 110px; }
.access-grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.addr { margin: 0 0 20px; font-size: 16px; }
.ways { margin: 0; }
.ways div { padding: 12px 0; border-top: 1px solid var(--line); }
.ways dt { font-size: 13px; color: var(--enji); font-weight: 500; }
.ways dd { margin: 0; font-size: 14px; }
.telfax { display: flex; flex-wrap: wrap; gap: 18px; font-family: var(--en); font-size: 18px; color: var(--enji); margin: 22px 0 0; }
.telfax span { color: var(--muted); }
.map-frame { border-radius: 44px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--rose); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(.7) sepia(.08); }

/* フッター */
.site-footer { position: relative; background: var(--enji); color: #fff; text-align: center; padding: 90px 20px 110px; border-radius: 80px 80px 0 0; }
.thread-foot { left: 50%; top: 18px; width: 140px; height: 70px; transform: translateX(-50%); --anim-draw-color: #fff; }
.thread-foot path { stroke: rgba(255, 255, 255, .8); }
.ft-brand { display: inline-block; background: #fff; padding: 14px 26px; border-radius: 22px; }
.ft-brand img { width: 220px; }
.ft-addr { font-size: 13px; margin: 24px 0 0; opacity: .9; }
.ft-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; margin: 30px 0 0; font-size: 13px; letter-spacing: .1em; --fx-underline-color: #fff; }
.ft-copy { font-family: var(--en); font-size: 11px; letter-spacing: .12em; opacity: .7; margin: 30px 0 0; }

.sp-bar { display: none; }
.asbsb-backtop { --fx-backtop-bg: var(--enji); }

/* タブレット・スマホ */
@media (max-width: 1020px) {
  .sh-nav { display: none; }
  .sh-tel { margin-left: auto; }
  .sh-menu { display: grid; gap: 7px; width: 46px; height: 46px; place-content: center; border: 0; border-radius: 50%; background: var(--enji); cursor: pointer; }
  .sh-menu span { width: 18px; height: 1.5px; background: #fff; display: block; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 20px; }
  .hero-visual { height: 70vw; max-height: 620px; order: -1; }
  .gyne-head, .msg-inner, .info-grid, .access-grid { grid-template-columns: 1fr; }
  .msg-photo { max-width: 300px; margin: 0 auto; }
  .stage-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 14px; }
  br.pc { display: none; }
  br.sp { display: inline; }
  .sh-brand img { width: 150px; }
  .sh-tel { display: none; }
  .site-header { gap: 12px; }
  .hero { padding: 10px 16px 70px; }
  .hero-visual { height: 104vw; }
  .hero-arch { width: 86%; }
  .hero-dot { width: 40%; border-width: 6px; }
  .hero-catch { font-size: 28px; letter-spacing: .12em; }
  .hero-lead { font-size: 14px; }
  .hero-scroll { display: none; }
  .intro { padding: 90px 16px 40px; text-align: left; }
  .intro .lbl { justify-content: flex-start; }
  .intro-photos { height: 300px; margin-top: 40px; }
  .ip1 { left: 0; width: 64%; height: 200px; }
  .ip2 { right: 0; top: 110px; width: 52%; height: 190px; }
  .gyne-panel { border-radius: 36px; padding: 26px 20px 34px; }
  .gyne-photo { border-radius: 28px 120px 28px 28px; }
  .stage-list { grid-template-columns: 1fr; gap: 22px; }
  .stage-list::before { content: ''; position: absolute; left: 6px; top: 10px; bottom: 10px; width: 1px; background: var(--enji); opacity: .5; }
  .stage-list li { padding: 0 0 0 32px; }
  .stage-list li::before { top: .5em; }
  .stages { margin-top: 44px; }
  .thread-stage { display: none; }
  .depts { grid-template-columns: 1fr; padding-bottom: 70px; }
  .dept { border-radius: 32px; }
  .message { border-radius: 48px 48px 0 0; padding: 80px 18px; }
  .rooms { padding-bottom: 80px; }
  .room { border-radius: 28px; }
  .info { padding: 80px 16px; }
  .news-list a { grid-template-columns: 1fr; gap: 2px; }
  .hours { border-radius: 32px; padding: 26px 16px; }
  .hours-table { font-size: 12.5px; }
  .hours-table tbody th { padding-left: 6px; }
  .access { padding: 0 16px 80px; }
  .map-frame { border-radius: 32px; }
  .site-footer { border-radius: 48px 48px 0 0; padding-bottom: 130px; }
  .sp-bar { display: grid; grid-template-columns: 1fr 1.4fr; position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 60; border-radius: 999px; overflow: hidden; box-shadow: 0 10px 30px rgba(74, 59, 64, .18); }
  .sp-bar a { display: grid; place-items: center; height: 54px; font-size: 14px; font-weight: 500; letter-spacing: .1em; background: #fff; color: var(--enji); }
  .sp-bar a.is-tel { background: var(--enji); color: #fff; font-family: var(--en); font-size: 16px; }
  .asbsb-backtop { --fx-backtop-bottom: 78px; --fx-backtop-right: 14px; }
}
