/* 058 はなみずき眼科 ― 可愛い系・ふつうの縦長。色はここだけ触れば差し替わる */
:root {
  --c-bg: #fbfdf7;
  --c-leafpale: #e6f3dc;
  --c-leaf: #7cc47f;
  --c-yellow: #ffe9a8;
  --c-main: #1f3d2b;
  --c-accent: #2e6b3a;
  --c-accent-text: #2e6b3a;
  --c-text: #374151;
  --c-sub: #4b5563;
  --font: "M PLUS 2", sans-serif;
  --font-ja: "Kaisei HarunoUmi", serif;
  --font-en: "Nunito", sans-serif;
  --r: 28px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.95; color: var(--c-text); background: var(--c-bg); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; font-weight: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
h1, h2, h3, p, dd, li { word-break: auto-phrase; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.ttl { font-family: var(--font-ja); font-weight: 700; font-size: clamp(28px, 4.4vw, 40px); line-height: 1.5; color: var(--c-main); margin-bottom: 24px; }
.ttl__en { display: flex; align-items: center; gap: 10px; font-family: var(--font-en); font-weight: 800; font-size: 16px; letter-spacing: .12em; color: var(--c-accent-text); }
.ttl__en::before { content: ""; width: 18px; height: 18px; border-radius: 50% 0 50% 0; background: var(--c-leaf); }
.note { margin-top: 14px; font-size: 15px; color: var(--c-sub); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap; flex: none; transition: transform .25s, background-color .25s; }
.btn:hover, .btn:focus-visible { transform: translateY(-2px); }
.btn--green { background: var(--c-accent); color: #fff; box-shadow: 0 6px 0 #1f4a28; }
.btn--white { background: #fff; color: var(--c-main); box-shadow: 0 6px 0 var(--c-leafpale); border: 2px solid var(--c-leafpale); }
.btn--lg { min-height: 58px; padding: 0 30px; font-size: 17px; }

/* ===== ヘッダー ===== */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: rgba(251, 253, 247, .94); box-shadow: 0 2px 0 var(--c-leafpale); }
.header__inner { display: flex; align-items: center; gap: 10px; height: 68px; padding: 0 12px 0 16px; max-width: 1440px; margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 8px; min-height: 48px; text-decoration: none; color: var(--c-main); white-space: nowrap; flex: none; }
.logo__mark { width: 40px; height: 40px; flex: none; }
.logo__text { display: grid; line-height: 1.2; }
.logo__ja { font-family: var(--font-ja); font-weight: 700; font-size: 19px; }
.logo__en { font-family: var(--font-en); font-size: 15px; letter-spacing: .06em; color: var(--c-accent-text); display: none; }
.gnav { display: none; }
.header__btn { margin-left: auto; min-height: 44px; padding: 0 16px; font-size: 15px; box-shadow: none; }
@media (min-width: 1080px) {
  .header__inner { height: 84px; padding: 0 40px; gap: 28px; }
  .logo__en { display: block; }
  .gnav { display: flex; gap: 6px; margin-left: auto; }
  .gnav a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; text-decoration: none; font-weight: 500; color: var(--c-main); }
  .gnav a:hover { background: var(--c-leafpale); }
  .header__btn { margin-left: 0; padding: 0 24px; }
}
.spmenu { flex: none; }
.spmenu summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border-radius: 50%; background: var(--c-leafpale); color: var(--c-main); }
.spmenu summary::-webkit-details-marker { display: none; }
.spmenu__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.spmenu__bar, .spmenu__bar::before, .spmenu__bar::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; position: relative; }
.spmenu__bar::before, .spmenu__bar::after { content: ""; position: absolute; left: 0; }
.spmenu__bar::before { top: -6px; } .spmenu__bar::after { top: 6px; }
.spmenu[open] .spmenu__bar { background: transparent; }
.spmenu[open] .spmenu__bar::before { top: 0; transform: rotate(45deg); }
.spmenu[open] .spmenu__bar::after { top: 0; transform: rotate(-45deg); }
.spmenu__nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--c-bg); padding: 8px 20px 24px; display: flex; flex-direction: column; box-shadow: 0 16px 24px rgba(31, 61, 43, .12); }
.spmenu__nav a { display: flex; align-items: center; min-height: 52px; color: var(--c-main); text-decoration: none; font-weight: 500; border-bottom: 2px dotted var(--c-leafpale); }
@media (min-width: 1080px) { .spmenu { display: none; } }

/* ===== 演出①（A04）の幕：JS が作る ===== */
.curtain { position: fixed; inset: 0; z-index: 100; background: var(--c-leafpale); display: grid; place-items: center; pointer-events: none; }
.curtain__logo { display: flex; align-items: center; gap: 14px; color: var(--c-main); }
.curtain__logo .logo__mark { width: 72px; height: 72px; }
.curtain__logo .logo__ja { font-size: 34px; }
.curtain__logo .logo__en { display: block; }

/* ===== メインビジュアル（画像1枚のLP風） ===== */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding: 96px 20px 40px; overflow: hidden; background: var(--c-leafpale); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(251, 253, 247, 0) 30%, rgba(251, 253, 247, .9) 62%); }
.hero__inner { position: relative; z-index: 2; width: 100%; max-width: 640px; }
.hero__chip { display: inline-block; font-weight: 700; font-size: 15px; color: var(--c-main); background: var(--c-yellow); border-radius: 999px; padding: 4px 16px; }
.hero__title { margin: 14px 0 12px; font-family: var(--font-ja); font-weight: 700; font-size: clamp(52px, 14vw, 124px); line-height: 1.12; color: var(--c-main); letter-spacing: .02em; }
.hero__title span { display: block; }
.hero__lead { font-size: 17px; font-weight: 500; color: var(--c-main); }
.hero__btns { display: flex; flex-wrap: wrap; gap: 14px; margin: 22px 0 14px; }
.hero__hours { font-size: 15px; color: var(--c-sub); }
@media (max-width: 1079px) {
  /* スマホ：写真は上半分に置き、メガネが見えるようにする */
  .hero__img { height: 58%; object-position: 72% 50%; }
  .hero::before { background: linear-gradient(180deg, rgba(251, 253, 247, 0) 30%, rgba(251, 253, 247, 1) 58%); }
  .hero { background: var(--c-bg); }
}
@media (min-width: 1080px) {
  .hero { align-items: center; padding: 120px 6vw 64px; }
  .hero::before { background: linear-gradient(90deg, rgba(251, 253, 247, .94) 0%, rgba(251, 253, 247, .82) 38%, rgba(251, 253, 247, 0) 62%); }
  .hero__img { object-position: 50% 50%; }
}

/* ===== お知らせ ===== */
.news { padding: 80px 0 64px; }
.news__list { background: #fff; border-radius: var(--r); box-shadow: 0 0 0 2px var(--c-leafpale); padding: 6px 24px; }
.news__list li { display: grid; gap: 2px; padding: 14px 0; border-bottom: 2px dotted var(--c-leafpale); }
.news__list li:last-child { border-bottom: 0; }
.news__list time { font-family: var(--font-en); font-weight: 700; font-size: 15px; color: var(--c-accent-text); }
.news__list a { text-decoration: none; }
.news__list a:hover { text-decoration: underline; }
@media (min-width: 768px) { .news__list li { grid-template-columns: 9em 1fr; } .news { display: grid; } .news .wrap { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; width: 100%; } }

/* ===== 演出②（B04）：診療案内 ===== */
.care { padding: 64px 0 80px; background: var(--c-leafpale); border-radius: 48px 48px 0 0; }
.care__head { margin-bottom: 32px; }
.care__bg, .care__window, .care__dots { display: none; }
.cares { display: grid; gap: 20px; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.cmenu { background: #fff; border-radius: var(--r); overflow: hidden; }
.cmenu__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.cmenu__img--cut { background: var(--c-yellow); }
.cmenu__img--cut img { object-fit: contain; padding: 12px; }
.cmenu__body { padding: 20px 24px 26px; }
.cmenu__no { font-family: var(--font-en); font-weight: 800; font-size: 18px; color: var(--c-accent-text); }
.cmenu h3 { font-family: var(--font-ja); font-weight: 700; font-size: 25px; color: var(--c-main); margin-bottom: 6px; }
@media (min-width: 768px) { .cares { grid-template-columns: 1fr 1fr; } }
/* 動く版：全画面の写真を止め、その中の丸い小窓だけを入れ替える */
.is-motion .care { padding-bottom: 0; }
.is-motion .care__stage { position: relative; height: 100vh; overflow: hidden; }
.is-motion .care__bg { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.is-motion .care__stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(31, 61, 43, .55), rgba(31, 61, 43, .1) 60%); }
.is-motion .care__window { display: block; position: absolute; z-index: 2; right: 7vw; top: 50%; width: min(38vw, 66vh); aspect-ratio: 1; margin-top: calc(min(38vw, 66vh) / -2); border-radius: 46% 54% 50% 50% / 52% 46% 54% 48%; overflow: hidden; border: 10px solid #fff; background: var(--c-yellow); box-shadow: 0 24px 60px rgba(31, 61, 43, .3); }
.is-motion .care__window img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.is-motion .care__window img.is-cut { object-fit: contain; padding: 8%; }
.is-motion .care__dots { display: flex; gap: 10px; position: absolute; z-index: 3; right: calc(7vw + min(19vw, 33vh) - 46px); bottom: 7vh; }
.is-motion .care__dots li { width: 14px; height: 14px; border-radius: 50%; background: rgba(255, 255, 255, .6); transition: background-color .3s, transform .3s; }
.is-motion .care__dots li.is-on { background: var(--c-yellow); transform: scale(1.3); }
.is-motion .cares { position: absolute; z-index: 2; left: 6vw; top: 50%; transform: translateY(-50%); width: min(40vw, 480px); padding: 0; display: block; height: 340px; }
.is-motion .cmenu { position: absolute; inset: 0; height: max-content; background: rgba(255, 255, 255, .96); }
.is-motion .cmenu__img { display: none; }
.is-motion .cmenu__body { padding: 32px 36px 36px; }
.is-motion .cmenu h3 { font-size: 32px; }
/* スマホの動く版：小窓を上に、文を下に */
@media (max-width: 1079px) {
  .is-motion .care__stage::after { background: linear-gradient(180deg, rgba(31, 61, 43, .15), rgba(31, 61, 43, .5)); }
  .is-motion .care__window { right: auto; left: 50%; top: 88px; width: min(62vw, 34vh); margin: 0 0 0 calc(min(62vw, 34vh) / -2); border-width: 6px; }
  .is-motion .care__dots { right: auto; left: 50%; transform: translateX(-50%); top: calc(88px + min(62vw, 34vh) + 16px); bottom: auto; }
  .is-motion .cares { left: 20px; right: 20px; width: auto; top: auto; bottom: 28px; transform: none; height: 260px; }
  .is-motion .cmenu { top: auto; bottom: 0; }
  .is-motion .cmenu__body { padding: 20px 22px 22px; }
  .is-motion .cmenu h3 { font-size: 24px; }
}

/* ===== はじめての方へ ===== */
.first { padding: 96px 0 72px; }
.steps { display: grid; gap: 18px; }
.step { position: relative; background: #fff; border-radius: var(--r); box-shadow: 0 0 0 2px var(--c-leafpale); padding: 24px 24px 24px 92px; min-height: 120px; }
.step__no { position: absolute; left: 22px; top: 22px; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--c-yellow); font-family: var(--font-en); font-weight: 800; font-size: 24px; color: var(--c-main); }
.step h3 { font-family: var(--font-ja); font-weight: 700; font-size: 21px; color: var(--c-main); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } .step { padding: 92px 26px 28px; } }

/* ===== 診療時間 ===== */
.hours { padding: 72px 0 88px; }
.table-wrap { overflow-x: auto; background: #fff; border-radius: var(--r); box-shadow: 0 0 0 2px var(--c-leafpale); }
.table { width: 100%; border-collapse: collapse; text-align: center; font-size: 16px; }
.table th, .table td { padding: 12px 2px; border-bottom: 2px dotted var(--c-leafpale); }
.table thead th { font-weight: 700; color: var(--c-main); background: var(--c-leafpale); }
.table tbody th { font-family: var(--font-en); font-weight: 700; color: var(--c-main); line-height: 1.4; padding-left: 10px; }
@media (min-width: 768px) { .table th, .table td { padding: 14px 6px; } .table tbody th br { display: none; } }
.table td { color: var(--c-accent-text); font-weight: 700; }
.hours__cta { margin-top: 32px; text-align: center; }

/* ===== アクセス ===== */
.access { padding: 80px 0 96px; background: var(--c-leafpale); border-radius: 48px 48px 0 0; }
.access__inner { display: grid; gap: 32px; }
.info { margin: 0; background: #fff; border-radius: var(--r); padding: 4px 24px; }
.info div { display: grid; gap: 2px; padding: 14px 0; border-bottom: 2px dotted var(--c-leafpale); }
.info div:last-child { border-bottom: 0; }
.info dt { font-weight: 700; color: var(--c-main); }
.info dd { margin: 0; }
.access__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 40% 40% var(--r) var(--r) / 30% 30% var(--r) var(--r); }
@media (min-width: 900px) { .access__inner { grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; } .info div { grid-template-columns: 5em 1fr; gap: 16px; } }

/* ===== フッター ===== */
.footer { background: var(--c-main); color: #eaf4e2; padding: 56px 20px 40px; text-align: center; font-size: 15px; }
.footer__logo { font-family: var(--font-ja); font-weight: 700; font-size: 24px; color: #fff; }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 20px; margin: 18px 0; }
.footer__nav a { display: flex; align-items: center; min-height: 44px; text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
