/* ============================================
   四つ木歯科クリニック — 共通スタイル
   ミッドナイトブルー × ローズベージュ
   Crimson Pro + Noto Serif JP
   キャラ：地域密着 + 全身管理（栄養ケアステーション）
   ============================================ */

:root {
  --midnight: #102243;
  --midnight-deep: #081530;
  --midnight-soft: #2a3c5c;
  --rose: #d4b5a0;
  --rose-deep: #b8927a;
  --pearl: #e8eaef;
  --paper: #faf8f3;
  --line: #d8d2c4;
  --text: #232323;
  --text-muted: #6b6b6b;
  --white: #ffffff;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--paper);
  line-height: 1.85;
  font-size: 16px;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.25s ease, color 0.25s ease;
}

a:hover {
  opacity: 0.7;
}

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

/* ============================================
   Header
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 248, 243, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-en {
  font-family: "Crimson Pro", serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--midnight);
  letter-spacing: 0.08em;
}

.logo-jp {
  font-family: "Noto Serif JP", serif;
  font-weight: 500;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  margin-top: 3px;
}

.nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav a {
  font-family: "Noto Serif JP", serif;
  font-weight: 500;
  font-size: 14px;
  color: var(--midnight);
  letter-spacing: 0.1em;
  position: relative;
  padding: 4px 0;
}

.nav a.active::after,
.nav a:not(.cta-btn):hover::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--rose);
}

.nav .cta-btn {
  background: var(--rose);
  color: var(--white);
  padding: 10px 22px;
  font-size: 13px;
  letter-spacing: 0.1em;
  transition: background 0.3s ease;
}

.nav .cta-btn:hover {
  background: var(--rose-deep);
  opacity: 1;
}

/* ============================================
   Hero
   ============================================ */

.hero {
  min-height: 92vh;
  background: var(--midnight);
  color: var(--paper);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 130px 40px 80px;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rose) 50%, transparent);
}

.hero-inner {
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-label {
  font-family: "Crimson Pro", serif;
  font-style: italic;
  font-size: 17px;
  color: var(--rose);
  letter-spacing: 0.15em;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-label::before {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--rose);
}

.hero-title {
  font-family: "Noto Serif JP", serif;
  font-weight: 500;
  font-size: clamp(36px, 5.4vw, 64px);
  line-height: 1.45;
  letter-spacing: 0.04em;
  margin-bottom: 40px;
}

.hero-title em {
  font-style: normal;
  color: var(--rose);
}

.hero-sub {
  font-size: 16px;
  line-height: 2.1;
  max-width: 620px;
  color: rgba(232, 234, 239, 0.85);
  margin-bottom: 56px;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(212, 181, 160, 0.3);
  border-bottom: 1px solid rgba(212, 181, 160, 0.3);
  max-width: 820px;
}

.hero-meta-item {
  padding: 28px 24px;
  border-right: 1px solid rgba(212, 181, 160, 0.3);
}

.hero-meta-item:last-child {
  border-right: none;
}

.hero-meta-label {
  font-family: "Crimson Pro", serif;
  font-style: italic;
  font-size: 11px;
  color: var(--rose);
  letter-spacing: 0.2em;
  margin-bottom: 8px;
}

.hero-meta-value {
  font-size: 14px;
  color: var(--paper);
  line-height: 1.7;
  font-family: "Noto Serif JP", serif;
  font-weight: 500;
}

/* ============================================
   Sections
   ============================================ */

.section {
  padding: 120px 40px;
}

.section-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.section-label {
  font-family: "Crimson Pro", serif;
  font-style: italic;
  font-size: 15px;
  color: var(--rose-deep);
  letter-spacing: 0.2em;
  margin-bottom: 20px;
}

.section-title {
  font-family: "Noto Serif JP", serif;
  font-weight: 500;
  font-size: clamp(28px, 3.8vw, 44px);
  color: var(--midnight);
  line-height: 1.45;
  margin-bottom: 60px;
  letter-spacing: 0.03em;
}

.section-title em {
  font-style: normal;
  color: var(--rose-deep);
}

.section-light { background: var(--paper); }
.section-dark { background: var(--midnight); color: var(--paper); }
.section-dark .section-title { color: var(--paper); }
.section-pearl { background: var(--pearl); }

/* ============================================
   Page Header
   ============================================ */

.page-header {
  background: var(--midnight);
  color: var(--paper);
  padding: 200px 40px 100px;
}

.page-header-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.page-header-en {
  font-family: "Crimson Pro", serif;
  font-style: italic;
  font-size: 18px;
  color: var(--rose);
  letter-spacing: 0.2em;
  margin-bottom: 20px;
}

.page-header-title {
  font-family: "Noto Serif JP", serif;
  font-weight: 500;
  font-size: clamp(32px, 4.5vw, 54px);
  letter-spacing: 0.05em;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 40px;
  font-family: "Noto Serif JP", serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.1em;
  border: 1px solid var(--rose);
  color: var(--rose-deep);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn::after {
  content: "→";
  font-family: "Crimson Pro", serif;
  transition: transform 0.3s ease;
}

.btn:hover {
  background: var(--rose);
  color: var(--white);
  opacity: 1;
}

.btn:hover::after {
  transform: translateX(4px);
}

.btn-primary {
  background: var(--rose);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--rose-deep);
  border-color: var(--rose-deep);
}

.btn-light {
  border-color: var(--paper);
  color: var(--paper);
}

.btn-light:hover {
  background: var(--paper);
  color: var(--midnight);
}

/* ============================================
   Promise (4つの約束)
   ============================================ */

.promises {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.promise {
  padding: 36px 32px;
  background: var(--paper);
  border-top: 3px solid var(--rose);
  position: relative;
}

.promise-num {
  font-family: "Crimson Pro", serif;
  font-style: italic;
  font-size: 13px;
  color: var(--rose-deep);
  letter-spacing: 0.2em;
  margin-bottom: 14px;
}

.promise h3 {
  font-family: "Noto Serif JP", serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--midnight);
  margin-bottom: 16px;
  line-height: 1.5;
}

.promise p {
  font-size: 14.5px;
  line-height: 2;
  color: var(--text-muted);
}

/* ============================================
   Features (4つの特徴)
   ============================================ */

.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
}

.feature {
  position: relative;
}

.feature-marker {
  display: inline-block;
  font-family: "Crimson Pro", serif;
  font-style: italic;
  font-size: 13px;
  color: var(--rose);
  letter-spacing: 0.2em;
  margin-bottom: 14px;
  padding: 3px 10px;
  border: 1px solid var(--rose);
}

.feature h3 {
  font-family: "Noto Serif JP", serif;
  font-size: 24px;
  font-weight: 500;
  color: var(--midnight);
  margin-bottom: 18px;
  line-height: 1.55;
}

.section-dark .feature h3 {
  color: var(--paper);
}

.feature p {
  font-size: 15px;
  line-height: 2.1;
  color: var(--text-muted);
}

.section-dark .feature p {
  color: rgba(232, 234, 239, 0.8);
}

/* ============================================
   Services Grid
   ============================================ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-card {
  background: var(--paper);
  padding: 40px 30px;
  transition: background 0.3s ease;
}

.service-card:hover { background: var(--white); }

.service-card-num {
  font-family: "Crimson Pro", serif;
  font-style: italic;
  font-size: 13px;
  color: var(--rose-deep);
  letter-spacing: 0.2em;
  margin-bottom: 12px;
}

.service-card h3 {
  font-family: "Noto Serif JP", serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--midnight);
  margin-bottom: 14px;
  line-height: 1.55;
}

.service-card p {
  font-size: 13.5px;
  line-height: 1.95;
  color: var(--text-muted);
}

.service-card.featured {
  background: var(--midnight);
  color: var(--paper);
}

.service-card.featured h3 { color: var(--paper); }
.service-card.featured p { color: rgba(232, 234, 239, 0.85); }
.service-card.featured .service-card-num { color: var(--rose); }

/* ============================================
   Staff
   ============================================ */

.staff-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
}

.staff-card {
  display: flex;
  flex-direction: column;
}

.staff-photo {
  aspect-ratio: 4 / 5;
  background: var(--pearl);
  border: 1px solid var(--line);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.staff-photo::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  bottom: 12px;
  border: 1px solid rgba(16, 34, 67, 0.15);
}

.staff-photo-text {
  font-family: "Crimson Pro", serif;
  font-style: italic;
  font-size: 14px;
  color: var(--midnight-soft);
  letter-spacing: 0.1em;
}

.staff-role {
  font-family: "Crimson Pro", serif;
  font-style: italic;
  font-size: 14px;
  color: var(--rose-deep);
  letter-spacing: 0.2em;
  margin-bottom: 8px;
}

.staff-name-en {
  font-family: "Crimson Pro", serif;
  font-size: 18px;
  color: var(--midnight);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.staff-name {
  font-family: "Noto Serif JP", serif;
  font-size: 26px;
  font-weight: 500;
  color: var(--midnight);
  margin-bottom: 18px;
}

.staff-bio {
  font-size: 14.5px;
  line-height: 2;
  color: var(--text-muted);
}

/* ============================================
   Info Table
   ============================================ */

.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table tr { border-bottom: 1px solid var(--line); }

.info-table th, .info-table td {
  padding: 22px 0;
  text-align: left;
  vertical-align: top;
  font-size: 15px;
}

.info-table th {
  font-family: "Noto Serif JP", serif;
  font-weight: 500;
  color: var(--midnight);
  width: 220px;
  letter-spacing: 0.1em;
}

.info-table td {
  color: var(--text);
  line-height: 1.85;
}

/* ============================================
   Hours Table
   ============================================ */

.hours-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}

.hours-table th, .hours-table td {
  padding: 16px 12px;
  text-align: center;
  border: 1px solid var(--line);
  font-size: 14.5px;
}

.hours-table th {
  background: var(--midnight);
  color: var(--paper);
  font-family: "Noto Serif JP", serif;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.hours-table td.time-cell {
  font-family: "Crimson Pro", serif;
  font-size: 14px;
  color: var(--midnight);
}

.hours-table td.off { background: #f5f0e7; color: var(--text-muted); }
.hours-table td.open { color: var(--midnight); font-weight: 500; }

/* ============================================
   Contact / CTA
   ============================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-card {
  display: block;
  background: var(--white);
  padding: 48px 40px;
  border-top: 3px solid var(--rose);
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-2px);
  opacity: 1;
}

.contact-card-label {
  font-family: "Crimson Pro", serif;
  font-style: italic;
  font-size: 14px;
  color: var(--rose-deep);
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}

.contact-card-title {
  font-family: "Noto Serif JP", serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--midnight);
  margin-bottom: 24px;
}

.contact-card-value {
  font-family: "Crimson Pro", serif;
  font-size: 30px;
  color: var(--midnight);
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  font-weight: 500;
}

.contact-card-note {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.8;
}

.cta-band {
  background: var(--midnight-deep);
  color: var(--paper);
  padding: 100px 40px;
  text-align: center;
  position: relative;
}

.cta-band::before {
  content: "";
  position: absolute;
  top: 40px;
  left: 50%;
  width: 40px;
  height: 1px;
  background: var(--rose);
  transform: translateX(-50%);
}

.cta-en {
  font-family: "Crimson Pro", serif;
  font-style: italic;
  font-size: 16px;
  color: var(--rose);
  letter-spacing: 0.2em;
  margin-bottom: 22px;
}

.cta-title {
  font-family: "Noto Serif JP", serif;
  font-weight: 500;
  font-size: clamp(26px, 3.5vw, 40px);
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}

.cta-body {
  font-size: 15px;
  line-height: 2;
  color: rgba(232, 234, 239, 0.85);
  max-width: 620px;
  margin: 0 auto 48px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* ============================================
   Footer
   ============================================ */

.footer {
  background: var(--midnight-deep);
  color: rgba(232, 234, 239, 0.75);
  padding: 80px 40px 32px;
  border-top: 1px solid rgba(212, 181, 160, 0.2);
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(212, 181, 160, 0.2);
}

.footer-brand .logo-en { color: var(--paper); font-size: 24px; }
.footer-brand .logo-jp { color: var(--rose); margin-top: 8px; font-size: 12px; }
.footer-brand p { font-size: 13px; line-height: 2; margin-top: 20px; }

.footer-col h4 {
  font-family: "Crimson Pro", serif;
  font-style: italic;
  font-size: 14px;
  color: var(--rose);
  letter-spacing: 0.15em;
  margin-bottom: 20px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { font-size: 13px; letter-spacing: 0.05em; }

.footer-bottom {
  font-size: 12px;
  color: rgba(232, 234, 239, 0.5);
  letter-spacing: 0.1em;
  text-align: center;
}

/* ============================================
   Hero with Image
   ============================================ */

.hero-with-img {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-img {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  position: relative;
}

.hero-img::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  bottom: 20px;
  border: 1px solid rgba(212, 181, 160, 0.5);
  z-index: 2;
  pointer-events: none;
}

.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================
   Image Gallery
   ============================================ */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gallery-item {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
  background: var(--pearl);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-item .caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 18px;
  background: linear-gradient(to top, rgba(16, 34, 67, 0.85), transparent);
  color: var(--paper);
  font-family: "Noto Serif JP", serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.gallery-large {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.gallery-large .gallery-item:first-child {
  grid-row: span 2;
  aspect-ratio: auto;
}

/* ============================================
   Feature Block with Image
   ============================================ */

.feature-with-img {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 100px;
}

.feature-with-img:last-child { margin-bottom: 0; }

.feature-with-img.reverse {
  grid-template-columns: 1fr 1fr;
}

.feature-with-img.reverse .feature-content { order: 2; }

.feature-img {
  aspect-ratio: 5 / 4;
  overflow: hidden;
}

.feature-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   Fee Table
   ============================================ */

.fee-block { margin-bottom: 70px; }
.fee-block:last-child { margin-bottom: 0; }

.fee-block-head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding-bottom: 20px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--rose);
}

.fee-block-num {
  font-family: "Crimson Pro", serif;
  font-style: italic;
  font-size: 22px;
  color: var(--rose-deep);
}

.fee-block-title {
  font-family: "Noto Serif JP", serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--midnight);
}

.fee-sub {
  font-family: "Noto Serif JP", serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--midnight);
  margin-top: 28px;
  margin-bottom: 14px;
  padding-left: 12px;
  border-left: 3px solid var(--rose);
}

.fee-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 14px;
}

.fee-table th, .fee-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.fee-table th {
  background: var(--pearl);
  font-family: "Noto Serif JP", serif;
  font-weight: 500;
  color: var(--midnight);
}

.fee-table .price {
  font-family: "Crimson Pro", serif;
  font-weight: 500;
  color: var(--midnight);
  text-align: right;
  font-size: 15px;
}

/* ============================================
   News List
   ============================================ */

.news-list {
  border-top: 1px solid var(--line);
}

.news-item {
  display: grid;
  grid-template-columns: 140px 100px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}

.news-date {
  font-family: "Crimson Pro", serif;
  font-style: italic;
  color: var(--rose-deep);
  letter-spacing: 0.1em;
}

.news-cat {
  display: inline-block;
  padding: 2px 10px;
  background: var(--midnight);
  color: var(--paper);
  font-size: 11px;
  letter-spacing: 0.1em;
  height: fit-content;
  text-align: center;
}

.news-title { color: var(--text); line-height: 1.7; }

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 960px) {
  .header-inner { padding: 16px 24px; }
  .nav { display: none; }
  .hero { padding: 110px 24px 60px; }
  .hero-meta { grid-template-columns: 1fr; }
  .hero-meta-item { border-right: none; border-bottom: 1px solid rgba(212, 181, 160, 0.3); }
  .hero-meta-item:last-child { border-bottom: none; }
  .section { padding: 80px 24px; }
  .promises, .features, .services-grid, .staff-list, .contact-grid,
  .hero-with-img, .gallery, .gallery-large, .feature-with-img {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .services-grid { gap: 1px; }
  .gallery { gap: 12px; }
  .feature-with-img.reverse .feature-content { order: 0; }
  .news-item { grid-template-columns: 100px 80px 1fr; gap: 10px; font-size: 13px; }
  .news-date { font-size: 12px; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .info-table th { width: 130px; font-size: 13px; }
  .info-table td { font-size: 14px; }
  .page-header { padding: 140px 24px 60px; }
  .hours-table { font-size: 12px; }
  .hours-table th, .hours-table td { padding: 10px 6px; }
}

@media (max-width: 600px) {
  .hero-title { font-size: 30px; }
  .section-title { font-size: 24px; margin-bottom: 40px; }
  .promise, .contact-card { padding: 28px 22px; }
}
