/* Fujimi Dental — fdclinic.com 風（金・紺・コラージュヒーロー・右レール） */
:root {
  --gold: #c5a76c;
  --gold-deep: #a6854a;
  --gold-soft: #e8d9c0;
  --navy: #142a45;
  --navy-soft: #1e3a5c;
  --bg-page: #f3f1ec;
  --surface: #ffffff;
  --text: #1a1a1a;
  --muted: #5a5a5a;
  --line: rgba(197, 167, 108, 0.35);
  --rail-w: 52px;
  --font-sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", system-ui, sans-serif;
  --font-serif: "Didot", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", "Times New Roman", serif;
  --container: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg-page);
  padding-right: var(--rail-w);
}

@media (max-width: 900px) {
  body {
    padding-right: 0;
  }
}

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

a {
  color: var(--navy-soft);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

/* ----- 右固定レール ----- */
.side-rail {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1000;
  width: var(--rail-w);
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: #0f0f0f;
  color: #fff;
  box-shadow: -4px 0 18px rgba(0, 0, 0, 0.12);
}

@media (max-width: 900px) {
  .side-rail {
    display: none;
  }
}

.side-rail__english {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 6px;
  background: var(--gold);
  color: #111;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.side-rail__english:hover {
  filter: brightness(1.05);
  text-decoration: none;
  color: #111;
}

.side-rail__english-mark {
  display: inline-flex;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 11px;
}

.side-rail__vert {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 0.25em;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
}

.side-rail__vert:hover {
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
  color: #fff;
}

.side-rail__vert--web {
  background: linear-gradient(180deg, #1a1a1a, #0f0f0f);
}

.side-rail__vert--mail {
  flex: 0 0 auto;
  min-height: 120px;
  padding-block: 16px;
  gap: 10px;
}

.side-rail__mail-icon {
  writing-mode: horizontal-tb;
  margin-bottom: 4px;
  font-size: 14px;
}

.side-rail__vert-inner {
  line-height: 1.6;
}

/* ----- マストヘッド ----- */
.masthead {
  background: linear-gradient(180deg, #faf8f5, #f3efe8);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 40;
}

.masthead__grid {
  width: min(1280px, calc(100% - 32px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(200px, 1.1fr) auto;
  gap: 20px 28px;
  align-items: end;
  padding: 20px 0 18px;
}

@media (max-width: 900px) {
  .masthead__grid {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .masthead__photo {
    grid-column: 1 / -1;
    order: 3;
  }
}

.logo-gold {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.logo-gold:hover {
  text-decoration: none;
  opacity: 0.95;
}

.logo-gold__mark {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  background: linear-gradient(145deg, var(--gold), var(--gold-deep));
  display: grid;
  place-items: center;
  border-radius: 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 6px 18px rgba(20, 42, 69, 0.12);
  overflow: hidden;
}

.logo-gold__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-gold__mark--placeholder {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.logo-gold__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-gold__ja {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 1.05rem;
}

.logo-gold__en {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.masthead__brand-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.masthead__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge-pill {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 0.68rem;
  line-height: 1.35;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.masthead__photo {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #e8e4dc;
  min-height: 120px;
}

.masthead__photo-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

@media (min-width: 901px) {
  .masthead__photo-img {
    height: 168px;
  }
}

.masthead__photo-ph {
  height: 160px;
  background: repeating-linear-gradient(
    -45deg,
    #ebe6dd,
    #ebe6dd 10px,
    #e2dcd2 10px,
    #e2dcd2 20px
  );
}

.masthead__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  min-width: 200px;
}

.masthead__en-inline {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.masthead__invite {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.masthead__phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.45rem;
  color: var(--navy);
  letter-spacing: 0.04em;
  text-decoration: none;
}

.masthead__phone:hover {
  color: var(--navy-soft);
  text-decoration: none;
}

.masthead__phone-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--navy);
  position: relative;
}

.masthead__phone-icon::after {
  content: "";
  position: absolute;
  inset: 4px 3px 3px 3px;
  border-radius: 4px;
  border: 2px solid var(--navy);
  border-top: 0;
}

.masthead__burger {
  display: none;
  margin-top: 6px;
  width: 44px;
  height: 40px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.masthead__burger-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: #111;
}

@media (max-width: 900px) {
  .masthead__burger {
    display: inline-flex;
  }
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10, 20, 35, 0.45);
  display: none;
}

.drawer:not([hidden]) {
  display: block;
}

.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(360px, 88vw);
  height: 100%;
  background: #fff;
  padding: 80px 24px 24px;
  overflow: auto;
  box-shadow: -8px 0 28px rgba(0, 0, 0, 0.15);
}

.menu--drawer {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu--drawer a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

/* ----- 下段バイリンガルナビ ----- */
.nav-bilingual {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 30;
  margin-top: -24px;
}

.home-stack .nav-bilingual {
  margin-top: -28px;
}

.nav-bilingual__inner {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 8px;
  padding: 14px 10px 16px;
}

.nav-bilingual__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 120px;
  padding: 8px 14px;
  text-decoration: none;
  color: var(--text);
  border-radius: 4px;
}

.nav-bilingual__link:hover {
  background: rgba(197, 167, 108, 0.12);
  text-decoration: none;
}

.nav-bilingual__en {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: var(--gold-deep);
  font-weight: 600;
}

.nav-bilingual__ja {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

@media (max-width: 700px) {
  .nav-bilingual__inner {
    gap: 4px;
  }

  .nav-bilingual__link {
    min-width: 46%;
    flex: 1 1 40%;
  }
}

/* ----- ヒーローコラージュ ----- */
.hero-collage {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 22%, rgba(197, 167, 108, 0.12) 0, transparent 32%),
    radial-gradient(circle at 82% 38%, rgba(20, 42, 69, 0.06) 0, transparent 30%),
    linear-gradient(165deg, #fbfaf7, #ebe6dd);
  padding: 36px 0 56px;
}

.hero-collage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-texture);
  background-size: cover;
  opacity: 0.18;
  pointer-events: none;
  mix-blend: multiply;
}

.hero-collage__deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='400' viewBox='0 0 600 400'%3E%3Cpath d='M40 320 Q180 120 360 200 T520 60' fill='none' stroke='%23c5a76c' stroke-opacity='.35' stroke-width='1'/%3E%3Cpath d='M-20 80 Q220 40 380 160 T620 260' fill='none' stroke='%23c5a76c' stroke-opacity='.22' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 70% 20%;
  opacity: 0.9;
}

.hero-collage__grid {
  position: relative;
  width: min(1220px, calc(100% - 36px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(120px, 0.85fr) minmax(240px, 1.2fr) minmax(120px, 1fr);
  gap: 18px 24px;
  align-items: center;
  min-height: clamp(280px, 52vh, 420px);
}

@media (max-width: 900px) {
  .hero-collage__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-collage__left,
  .hero-collage__right {
    max-width: 320px;
    margin-inline: auto;
  }

  .hero-collage__img--right {
    margin-top: -12px;
  }
}

.hero-collage__left,
.hero-collage__right {
  position: relative;
  z-index: 1;
}

.hero-collage__center {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 12px 8px;
}

.hero-collage__img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 18px 40px rgba(20, 42, 69, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.65);
}

.hero-collage__img--left {
  max-height: 360px;
  object-fit: cover;
}

.hero-collage__img--right {
  max-height: 400px;
  object-fit: cover;
  transform: translateY(16px);
}

@media (min-width: 901px) {
  .hero-collage__img--right {
    transform: translate(18px, 28px);
    z-index: 3;
  }
}

.hero-collage__ph {
  border-radius: 6px;
  border: 1px dashed rgba(197, 167, 108, 0.55);
  background: rgba(255, 255, 255, 0.6);
  min-height: 220px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.78rem;
  padding: 16px;
  text-align: center;
  line-height: 1.5;
}

.hero-collage__since {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3.25rem);
  letter-spacing: 0.28em;
  color: var(--gold-deep);
  text-transform: uppercase;
}

.hero-collage__lead {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  letter-spacing: 0.06em;
  line-height: 1.7;
  color: var(--text);
}

.hero-collage__en {
  margin: 0 auto 20px;
  max-width: 520px;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  line-height: 1.8;
  color: var(--gold-deep);
}

.hero-collage__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
}

.btn--gold {
  background: linear-gradient(180deg, var(--gold), var(--gold-deep));
  color: #1a1208;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 14px rgba(166, 133, 74, 0.35);
}

.btn--gold:hover {
  filter: brightness(1.03);
  text-decoration: none;
  color: #1a1208;
}

.btn--ghost-dark {
  background: rgba(255, 255, 255, 0.88);
  color: var(--navy);
  border-color: rgba(20, 42, 69, 0.18);
}

.btn--ghost-dark:hover {
  border-color: var(--gold-deep);
  text-decoration: none;
}

.home-stack {
  background: var(--bg-page);
}

/* ----- 既存セクション ----- */
section {
  padding-block: 64px;
}

.section-head {
  text-align: center;
  margin-bottom: 40px;
}

.section-head__en {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  color: var(--gold-deep);
  margin: 0 0 8px;
  text-transform: uppercase;
}

.section-head__ja {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  letter-spacing: 0.12em;
}

.card-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px 28px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.04);
}

.chairman .meta {
  text-align: right;
  margin-top: 24px;
  font-weight: 600;
}

.chairman .prose {
  color: var(--muted);
}

.chairman .prose p:first-child {
  margin-top: 0;
}

.chairman .prose p:last-child {
  margin-bottom: 0;
}

.features-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px 22px 24px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px 16px;
  align-items: start;
}

.feature-card__num {
  font-size: 1.6rem;
  font-weight: 200;
  color: var(--gold-deep);
  line-height: 1;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  letter-spacing: 0.04em;
  line-height: 1.45;
}

.feature-card p {
  margin: 0;
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.92rem;
  white-space: pre-line;
}

.two-col {
  display: grid;
  gap: 24px;
}

@media (min-width: 900px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
  }
}

.promo-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100%;
}

.promo-block h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
}

.promo-block p {
  margin: 0;
  flex: 1;
  color: var(--muted);
  font-size: 0.93rem;
  white-space: pre-line;
}

.treatment-list {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  list-style: none;
  padding: 0;
  margin: 0;
}

.treatment-list a {
  display: block;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.9rem;
}

.treatment-list a:hover {
  border-color: var(--gold);
  text-decoration: none;
}

.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.news-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 6px;
}

.news-list time {
  font-size: 0.8rem;
  color: var(--gold-deep);
  font-weight: 600;
}

.contact-grid {
  display: grid;
  gap: 28px;
}

@media (min-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.hours-table th,
.hours-table td {
  border: 1px solid var(--line);
  padding: 8px 6px;
  text-align: center;
}

.hours-table th {
  background: #faf8f5;
  font-weight: 600;
}

.note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 12px;
}

.site-footer {
  padding: 28px 20px 36px;
  border-top: 1px solid var(--line);
  background: #fff;
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
}

.sitemap-mini .menu {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: center;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.sitemap-mini .menu a {
  color: var(--muted);
}

.page-standard .entry {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px 28px;
  margin-block: 40px 80px;
}

.page-standard .entry-title {
  font-family: var(--font-serif);
  margin-top: 0;
}

.doctor-profile__grid {
  display: grid;
  gap: 28px;
}

@media (min-width: 800px) {
  .doctor-profile__grid {
    grid-template-columns: minmax(200px, 0.9fr) 1fr;
    align-items: start;
  }
}

.doctor-profile__name {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  letter-spacing: 0.08em;
}

.doctor-profile__name-en {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-top: 4px;
}

.doctor-profile__role {
  margin: 0 0 14px;
  font-weight: 600;
  color: var(--gold-deep);
  letter-spacing: 0.06em;
}

.doctor-profile__lead {
  margin: 0 0 18px;
  line-height: 1.8;
  color: var(--text);
}

.doctor-profile__bio p:first-child,
.doctor-profile__career p:first-child {
  margin-top: 0;
}

.doctor-profile__subttl {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  margin: 24px 0 10px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.btn--primary {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold-deep);
}

.btn--primary:hover {
  filter: brightness(0.96);
  text-decoration: none;
  color: #fff;
}

.btn--ghost {
  background: #fff;
  color: var(--text);
  border-color: var(--line);
}

.btn--ghost:hover {
  border-color: var(--gold);
  text-decoration: none;
}
