/* ============================================
   ふなもと歯科医院 スタイルシート
   ベースカラー: #574731 (深い茶) / #95897c (ベージュ)
   アクセント: #a0825a → #c1a580 (ゴールドグラデ)
============================================ */

:root {
  --c-base2: #574731;
  --c-base: #95897c;
  --c-bg: #f7f3ee;
  --c-bg-alt: #fff;
  --c-text: #4a3e2e;
  --c-text-light: #7d6f5f;
  --c-accent-start: #a0825a;
  --c-accent-end: #c1a580;
  --c-line: #d9cdb9;
  --gradient-gold: linear-gradient(133deg, #a0825a, #c1a580);
  --font-jp: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  --font-jp-soft: 'Zen Maru Gothic', 'Zen Kaku Gothic New', sans-serif;
  --font-num: 'M PLUS Rounded 1c', 'Zen Kaku Gothic New', sans-serif;
  --font-en: 'Raleway', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-jp);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ============================================
   HEADER
============================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background-color .3s ease, padding .3s ease;
}
.header.is-scrolled {
  background: rgba(87, 71, 49, 0.95);
  backdrop-filter: blur(8px);
  padding: 10px 0;
}
.header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header__logo img {
  height: 36px;
  width: auto;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,.3));
}

.nav-pc {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-pc a {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .05em;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
  transition: opacity .2s;
}
.nav-pc a:hover { opacity: .75; }
.nav-tel {
  background: var(--gradient-gold);
  padding: 10px 18px !important;
  border-radius: 30px;
  font-family: var(--font-num);
  font-weight: 700 !important;
  text-shadow: none !important;
  display: inline-flex !important;
  gap: 6px;
  align-items: center;
}
.tel-icon { font-size: 14px; }

.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  background: rgba(87, 71, 49, .8);
  border: none;
  border-radius: 50%;
  position: relative;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  transition: transform .3s, opacity .3s;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 100vh;
  background: rgba(87, 71, 49, 0.98);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  display: flex;
}
.mobile-menu a {
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: .1em;
}
.mobile-tel {
  background: var(--gradient-gold);
  padding: 14px 28px;
  border-radius: 40px;
  margin-top: 8px;
  font-family: var(--font-num);
}

/* ============================================
   HERO
============================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(.7);
  transform: scale(1.05);
  animation: heroZoom 20s ease-out forwards;
}
@keyframes heroZoom {
  to { transform: scale(1); }
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(87,71,49,.4) 0%, rgba(87,71,49,.6) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  padding: 24px;
  max-width: 900px;
}
.hero__sub {
  font-family: var(--font-en);
  font-size: 14px;
  letter-spacing: .3em;
  margin-bottom: 16px;
  opacity: .9;
}
.hero__title {
  font-size: clamp(32px, 5.5vw, 56px);
  font-weight: 500;
  letter-spacing: .08em;
  margin-bottom: 24px;
  line-height: 1.4;
}
.hero__desc {
  font-size: clamp(16px, 2.2vw, 22px);
  font-weight: 400;
  letter-spacing: .08em;
  line-height: 1.9;
}
.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: .3em;
  z-index: 2;
}
.hero__scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,.7);
  margin: 8px auto 0;
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(.4); opacity: .3; }
}

/* ============================================
   COMMON SECTION
============================================ */
.section {
  padding: 100px 0;
  position: relative;
}
.section__head {
  text-align: center;
  margin-bottom: 64px;
}
.section__eyebrow {
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: .3em;
  color: var(--c-accent-start);
  margin-bottom: 12px;
}
.section__title {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 500;
  letter-spacing: .15em;
  color: var(--c-base2);
  position: relative;
  display: inline-block;
  padding-bottom: 16px;
}
.section__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: var(--gradient-gold);
}

/* fade-in animation */
.fade {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s ease, transform .9s ease;
}
.fade.is-shown {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   ABOUT
============================================ */
.about { background: var(--c-bg); }
.about__lead {
  text-align: center;
  margin-bottom: 48px;
  font-size: clamp(18px, 2.4vw, 24px);
  line-height: 2.2;
  color: var(--c-text);
  letter-spacing: .1em;
}
.about__lead strong {
  color: var(--c-base2);
  font-weight: 700;
}
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 56px;
}
.about__img {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(87,71,49,.15);
}
.about__img img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.about__text p {
  margin-bottom: 24px;
  font-size: 16px;
  line-height: 2.1;
  letter-spacing: .06em;
}
.about__gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.about__gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 6px 24px rgba(87,71,49,.12);
}

/* ============================================
   TREATMENT
============================================ */
.treatment {
  background: var(--c-bg-alt);
}
.treatment__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
}
.treatment__card {
  text-align: center;
  padding: 16px;
  transition: transform .3s ease;
}
.treatment__card:hover { transform: translateY(-4px); }
.treatment__icon {
  width: 140px;
  height: 140px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.treatment__icon img {
  width: 100%;
  height: auto;
}
.treatment__card h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--c-base2);
  margin-bottom: 12px;
}
.treatment__card p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--c-text-light);
  letter-spacing: .04em;
}

/* ============================================
   DOCTOR
============================================ */
.doctor {
  background: var(--c-bg);
}
.doctor__grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 56px;
  align-items: start;
  margin-bottom: 56px;
}
.doctor__photo {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(87,71,49,.18);
}
.doctor__photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 3/4;
  object-fit: cover;
}
.doctor__role {
  font-size: 13px;
  letter-spacing: .2em;
  color: var(--c-accent-start);
  margin-bottom: 8px;
}
.doctor__name {
  font-size: 32px;
  font-weight: 500;
  color: var(--c-base2);
  letter-spacing: .15em;
  margin-bottom: 4px;
}
.doctor__name span {
  display: block;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .2em;
  color: var(--c-text-light);
  margin-top: 4px;
}
.doctor__message {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 500;
  color: var(--c-base2);
  line-height: 1.9;
  letter-spacing: .08em;
  margin: 28px 0 20px;
}
.doctor__detail {
  font-size: 15px;
  line-height: 2.1;
  letter-spacing: .06em;
  margin-bottom: 32px;
}
.doctor__career {
  border-top: 1px solid var(--c-line);
  padding-top: 24px;
}
.career__head {
  text-align: center;
  font-size: 13px;
  letter-spacing: .3em;
  color: var(--c-accent-start);
  margin-bottom: 16px;
}
.doctor__career dl {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px 20px;
}
.doctor__career dt {
  font-family: var(--font-num);
  font-weight: 500;
  color: var(--c-base2);
  letter-spacing: .05em;
}
.doctor__career dd {
  font-size: 14.5px;
  line-height: 1.9;
}
.doctor__sub {
  max-width: 720px;
  margin: 0 auto;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(87,71,49,.15);
}
.doctor__sub img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* ============================================
   ACCESS (上: 見出し + 全幅地図)
============================================ */
.access {
  background: var(--c-bg);
  padding-bottom: 0;
}
.access__map-full {
  width: 100%;
  height: 520px;
  line-height: 0;
  margin-top: 16px;
}
.access__map-full iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

/* ============================================
   ACCESS DETAIL (下: 茶背景・住所+診療時間+Instagram)
============================================ */
.access-detail {
  background: var(--c-base2);
  color: #fff;
  padding: 80px 0;
}
.access-detail__grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 56px;
}
.access-detail__info .clinic-name {
  font-size: clamp(28px, 3.5vw, 36px);
  font-weight: 500;
  letter-spacing: .18em;
  margin-bottom: 28px;
}
.clinic-addr {
  font-size: 18px;
  line-height: 1.9;
  letter-spacing: .08em;
  margin-bottom: 10px;
}
.clinic-addr .zip {
  display: block;
  font-family: var(--font-num);
  font-size: 15px;
  color: #d6c4a1;
  letter-spacing: .1em;
  margin-bottom: 4px;
}
.clinic-landmark {
  font-size: 13px;
  color: #d6c4a1;
  letter-spacing: .06em;
  margin-bottom: 28px;
}
.clinic-tel a {
  font-family: var(--font-num);
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 500;
  letter-spacing: .05em;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.tel-mark {
  font-size: .65em;
}

.access-detail__hours table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-num);
}
.access-detail__hours th,
.access-detail__hours td {
  padding: 14px 6px;
  text-align: center;
  font-weight: 400;
  border-bottom: 1px solid rgba(214, 196, 161, 0.3);
  font-size: 16px;
}
.access-detail__hours thead th {
  font-size: 14px;
  color: #d6c4a1;
  letter-spacing: .1em;
  font-weight: 500;
  padding-bottom: 12px;
}
.access-detail__hours thead th:first-child {
  text-align: left;
  font-size: 15px;
  letter-spacing: .2em;
  padding-left: 4px;
}
.access-detail__hours tbody th {
  text-align: left;
  font-size: 15px;
  letter-spacing: .04em;
  color: #fff;
  padding-left: 4px;
}
.access-detail__hours td.sat {
  color: #f4cf7a;
  font-weight: 500;
}
.hours-note {
  font-size: 13px;
  color: #d6c4a1;
  margin-top: 18px;
  letter-spacing: .04em;
  text-align: right;
}

/* ============================================
   INSTAGRAM CTA (大型ボタン)
============================================ */
.instagram-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  padding: 28px 32px;
  background: linear-gradient(135deg, #ca2995 0%, #ff9b45 100%);
  color: #fff;
  border-radius: 8px;
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 700;
  letter-spacing: .12em;
  box-shadow: 0 8px 24px rgba(202, 41, 149, 0.35);
  transition: transform .3s ease, box-shadow .3s ease, filter .3s ease;
  position: relative;
  overflow: hidden;
}
.instagram-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,.15) 100%);
  opacity: 0;
  transition: opacity .3s ease;
}
.instagram-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(202, 41, 149, 0.45);
  filter: brightness(1.05);
}
.instagram-cta:hover::before { opacity: 1; }
.instagram-cta__icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.instagram-cta__label {
  position: relative;
}
.instagram-cta__arrow {
  font-family: var(--font-en);
  font-size: .9em;
  transition: transform .3s ease;
}
.instagram-cta:hover .instagram-cta__arrow {
  transform: translateX(6px);
}

/* ============================================
   FOOTER
============================================ */
.footer {
  background: #3a2f21;
  color: #d6c4a1;
  text-align: center;
  padding: 64px 0 32px;
}
.footer__logo {
  margin-bottom: 32px;
}
.footer__logo img {
  height: 40px;
  width: auto;
  margin: 0 auto;
}
.footer__nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 28px;
}
.footer__nav a {
  font-size: 13px;
  letter-spacing: .15em;
  transition: opacity .2s;
}
.footer__nav a:hover { opacity: .7; }
.footer__sns {
  margin-bottom: 32px;
}
.footer__sns a {
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: .2em;
  color: #d6c4a1;
  border-bottom: 1px solid #d6c4a1;
  padding-bottom: 2px;
}
.footer__copy {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: .15em;
  color: #8b7a64;
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 990px) {
  .section { padding: 72px 0; }
  .about__grid { grid-template-columns: 1fr; gap: 32px; }
  .doctor__grid { grid-template-columns: 1fr; gap: 32px; }
  .doctor__photo { max-width: 320px; margin: 0 auto; }
  .access-detail__grid { grid-template-columns: 1fr; gap: 40px; }
  .access__map-full { height: 420px; }
  .treatment__grid { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
}

@media (max-width: 768px) {
  .nav-pc { display: none; }
  .hamburger { display: flex; }
  .header__logo img { height: 30px; }
  .header { padding: 12px 0; }
  .header__inner { padding: 0 16px; }

  .container { padding: 0 20px; }

  .hero { height: 92vh; min-height: 520px; }
  .hero__title { letter-spacing: .04em; line-height: 1.5; }
  .hero__desc { line-height: 1.9; font-size: 14px; letter-spacing: .04em; }
  .hero__sub { font-size: 11px; letter-spacing: .25em; }

  .section { padding: 64px 0; }
  .section__head { margin-bottom: 40px; }
  .section__title { letter-spacing: .12em; }

  /* ABOUT */
  .about__lead { font-size: 17px; line-height: 1.95; letter-spacing: .06em; }
  .about__text p { font-size: 15px; line-height: 2; }
  .about__gallery { grid-template-columns: 1fr; gap: 16px; }
  .about__grid { gap: 24px; margin-bottom: 40px; }

  /* TREATMENT */
  .treatment__grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .treatment__icon { width: 96px; height: 96px; margin-bottom: 14px; }
  .treatment__card { padding: 8px; }
  .treatment__card h3 { font-size: 15px; letter-spacing: .08em; margin-bottom: 8px; }
  .treatment__card p { font-size: 12.5px; line-height: 1.8; }

  /* DOCTOR */
  .doctor__name { font-size: 26px; letter-spacing: .1em; }
  .doctor__message { margin: 20px 0 16px; letter-spacing: .04em; }
  .doctor__detail { font-size: 14px; line-height: 2; }
  .doctor__career dl { grid-template-columns: 72px 1fr; gap: 10px 14px; }
  .doctor__career dt { font-size: 13px; }
  .doctor__career dd { font-size: 13px; line-height: 1.8; }

  /* ACCESS (新構造) */
  .access__map-full { height: 320px; margin-top: 8px; }
  .access-detail { padding: 56px 0; }
  .access-detail__grid { gap: 32px; margin-bottom: 36px; }
  .access-detail__info .clinic-name { font-size: 22px; letter-spacing: .12em; margin-bottom: 18px; }
  .clinic-addr { font-size: 15px; line-height: 1.8; letter-spacing: .04em; margin-bottom: 8px; }
  .clinic-addr .zip { font-size: 13px; margin-bottom: 2px; }
  .clinic-landmark { font-size: 12px; margin-bottom: 18px; }
  .clinic-tel a { font-size: 26px; gap: 8px; letter-spacing: .03em; }
  .tel-mark { font-size: .6em; }

  /* 診療時間テーブル (8列→横スクロールせず収める) */
  .access-detail__hours { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .access-detail__hours table { font-size: 11.5px; min-width: 0; }
  .access-detail__hours th,
  .access-detail__hours td { padding: 10px 2px; font-size: 12px; letter-spacing: 0; }
  .access-detail__hours thead th { font-size: 10.5px; letter-spacing: .04em; padding-bottom: 8px; }
  .access-detail__hours thead th:first-child { font-size: 11px; letter-spacing: .08em; padding-left: 2px; }
  .access-detail__hours tbody th { font-size: 11.5px; letter-spacing: 0; padding-left: 2px; white-space: nowrap; }
  .hours-note { font-size: 11px; margin-top: 12px; letter-spacing: .02em; text-align: left; }

  /* Instagram ボタン */
  .instagram-cta {
    padding: 20px 18px;
    gap: 12px;
    font-size: 16px;
    letter-spacing: .08em;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(202, 41, 149, 0.3);
  }
  .instagram-cta__icon { width: 26px; height: 26px; }

  .footer { padding: 48px 0 24px; }
  .footer__logo img { height: 32px; }
  .footer__nav { gap: 18px; margin-bottom: 22px; }
  .footer__nav a { font-size: 12px; letter-spacing: .1em; }
  .footer__copy { font-size: 10px; letter-spacing: .1em; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hero__title { font-size: 28px; }
  .treatment__grid { grid-template-columns: 1fr 1fr; gap: 24px 12px; }
  .treatment__icon { width: 84px; height: 84px; }
  .access-detail__hours th,
  .access-detail__hours td { padding: 8px 1px; font-size: 11px; }
  .access-detail__hours tbody th { font-size: 11px; }
  .clinic-tel a { font-size: 24px; }
}
