/* ===========================
   Dr.こすぎメディカルオフィス
   共通スタイル
=========================== */

:root {
  --navy: #1E3A5F;
  --teal: #5C8E80;
  --bg: #FAFAF9;
  --border: #E0DED8;
  --text: #6B6B6B;
  --dark: #1C1C1C;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Yu Gothic', 'Meiryo', sans-serif;
  font-size: 14px;
  line-height: 1.8;
  background-color: var(--bg);
  color: var(--dark);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.serif {
  font-family: 'Noto Serif JP', 'YuMincho', 'Yu Mincho', '游明朝体', 'Hiragino Mincho ProN', Georgia, serif;
}

/* ======================== Layout ======================== */
.container { max-width: 72rem; margin: 0 auto; padding: 0 2rem; }
.container-sm { max-width: 64rem; margin: 0 auto; padding: 0 2rem; }
.container-xs { max-width: 48rem; margin: 0 auto; padding: 0 2rem; }

/* ======================== Header ======================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-wrap { display: flex; flex-direction: column; }
.logo-main { font-family: 'Noto Serif JP', serif; color: var(--navy); font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.logo-sub { color: var(--teal); font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-size: 13px; color: var(--text); letter-spacing: 0.03em; opacity: 0.8; transition: color 0.2s, opacity 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--navy); opacity: 1; font-weight: 600; }
.nav-cta { background: var(--navy); color: #fff !important; padding: 0.5rem 1.25rem; border-radius: 2px; font-size: 12px !important; font-weight: 600 !important; opacity: 1 !important; transition: opacity 0.2s !important; }
.nav-cta:hover { opacity: 0.85 !important; }

.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; color: var(--text); }
.hamburger svg { width: 20px; height: 20px; }

.mobile-menu { display: none; background: var(--bg); border-top: 1px solid var(--border); padding: 0 2rem 1.5rem; }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 0.75rem 0; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--text); }
.mobile-menu a.active { color: var(--navy); font-weight: 600; }
.mobile-menu .btn-primary { margin-top: 1.25rem; display: block; text-align: center; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
}

/* ======================== Footer ======================== */
.site-footer { background: var(--navy); color: #fff; }
.footer-inner { max-width: 72rem; margin: 0 auto; padding: 4rem 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; margin-bottom: 3rem; }
.footer-brand-name { font-family: 'Noto Serif JP', serif; font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.footer-brand-sub { color: rgba(255,255,255,0.55); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 1.5rem; }
.footer-brand-desc { color: rgba(255,255,255,0.7); font-size: 13px; line-height: 1.8; }
.footer-brand-note { color: rgba(255,255,255,0.3); font-size: 11px; margin-top: 1.5rem; }
.footer-col-label { color: rgba(255,255,255,0.3); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 1.25rem; }
.footer-nav-list { list-style: none; }
.footer-nav-list li { margin-bottom: 0.75rem; }
.footer-nav-list a { color: rgba(255,255,255,0.7); font-size: 13px; transition: color 0.2s; }
.footer-nav-list a:hover { color: #fff; }
.footer-info { color: rgba(255,255,255,0.7); font-size: 13px; line-height: 1.8; }
.footer-info-note { color: rgba(255,255,255,0.3); font-size: 11px; margin-top: 0.5rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; }
.footer-copy { color: rgba(255,255,255,0.45); font-size: 11px; }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ======================== Buttons ======================== */
.btn-primary {
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  padding: 0.8rem 2rem;
  border-radius: 2px;
  transition: opacity 0.2s;
  display: inline-block;
  font-size: 14px;
  letter-spacing: 0.04em;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { opacity: 0.85; }

.btn-ghost {
  color: var(--navy);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: opacity 0.2s;
}
.btn-ghost:hover { opacity: 0.6; }

.btn-outline-dark {
  border: 1px solid rgba(255,255,255,0.5);
  color: #fff;
  font-weight: 600;
  padding: 0.8rem 2rem;
  border-radius: 2px;
  transition: all 0.2s;
  display: inline-block;
  font-size: 14px;
  letter-spacing: 0.04em;
  background: none;
  cursor: pointer;
}
.btn-outline-dark:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.8); }

/* ======================== Page Header ======================== */
.page-header { background: var(--navy); color: #fff; padding: 3.5rem 0 3rem; }
.page-header-label { color: var(--teal); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 0.75rem; }
.page-header h1 { font-family: 'Noto Serif JP', serif; font-size: clamp(1.75rem, 4vw, 2.25rem); font-weight: 700; }

/* ======================== Sections ======================== */
.section { padding: 6rem 0; }
.section-sm { padding: 5rem 0; }
.divider { border: none; border-top: 1px solid var(--border); margin: 0 auto; max-width: 72rem; }
.section-label { color: var(--text); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; display: block; margin-bottom: 3rem; }
.section-label-sm { color: var(--text); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; display: block; margin-bottom: 1.5rem; }

/* ======================== Grid ======================== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; }
.grid-5-3 { display: grid; grid-template-columns: 2fr 3fr; gap: 4rem; align-items: start; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-5-3 { grid-template-columns: 1fr; gap: 2.5rem; }
  .section { padding: 4rem 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-img { display: none; }
}

/* ======================== trow ======================== */
.trow {
  display: flex;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  gap: 1.5rem;
  font-size: 14px;
}
.trow:last-child { border-bottom: none; }

/* ======================== Text helpers ======================== */
.text-teal { color: var(--teal); }
.text-navy { color: var(--navy); }
.text-muted { color: var(--text); }
.text-xs { font-size: 11px; }
.text-sm { font-size: 13px; }
.fw-bold { font-weight: 700; }
.fw-semi { font-weight: 600; }
.lh-loose { line-height: 1.9; }
.tracking-wide { letter-spacing: 0.06em; }
.tracking-wider { letter-spacing: 0.12em; }

/* ======================== Notice bar ======================== */
.notice-bar { border-bottom: 1px solid var(--border); }
.notice-bar-inner { max-width: 72rem; margin: 0 auto; padding: 0.75rem 2rem; font-size: 12px; color: var(--text); }

/* ======================== Contact Form ======================== */
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; color: rgba(255,255,255,0.7); font-size: 11px; letter-spacing: 0.12em; margin-bottom: 0.5rem; }
.form-required { color: var(--teal); }
.form-input, .form-select, .form-textarea {
  width: 100%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 14px;
  padding: 0.75rem 1rem;
  border-radius: 2px;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}
.form-input::placeholder, .form-textarea::placeholder { color: rgba(255,255,255,0.3); }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: rgba(255,255,255,0.5); }
.form-select { appearance: none; -webkit-appearance: none; }
.form-select option { background: var(--navy); color: #fff; }
.form-textarea { resize: none; rows: 5; }
.form-note { color: rgba(255,255,255,0.5); font-size: 12px; line-height: 1.7; margin-bottom: 1.5rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 1.25rem; }
.form-error { color: #fca5a5; font-size: 13px; margin-bottom: 1rem; }
.form-success { padding: 3rem 0; text-align: center; }
.form-success p { color: rgba(255,255,255,0.75); font-size: 13px; line-height: 1.8; margin-top: 0.75rem; }

@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* ======================== Treatment page ======================== */
.treatment-role-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.schedule-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.faq-cta-right {
  border-left: 1px solid var(--border);
  padding-left: 4rem;
}

@media (max-width: 768px) {
  .treatment-role-grid { grid-template-columns: 1fr; }
  .schedule-grid { grid-template-columns: 1fr; }
  .faq-cta-right { border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 2rem; }
}

/* ======================== Hero (mobile) ======================== */
.hero-mobile-image { display: none; }

@media (max-width: 768px) {
  /* モバイルヒーロー: トップ画像を表示し、テキストを下に */
  .hero-mobile-image { display: block; }
  .hero-section {
    min-height: auto !important;
    display: block !important;
  }
  .hero-title { display: none; } /* 画像内に文字が入っているため非表示 */
  .hero-text-container {
    padding-top: 2rem !important;
    padding-bottom: 2.5rem !important;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
  .hero-text-wrap {
    max-width: 100% !important;
    margin-left: 0 !important;
  }

  /* セクション余白を縮小 */
  .section { padding: 3rem 0; }
  .section-sm { padding: 2.5rem 0; }

  /* コンテナの横パディングを小さく */
  .container, .container-sm, .container-xs { padding: 0 1.25rem; }

  /* ページヘッダー */
  .page-header { padding: 2.5rem 0 2rem; }

  /* フッター余白 */
  .footer-inner { padding: 3rem 1.25rem; }

  /* trow（情報行）縦並び */
  .trow { flex-direction: column; gap: 0.25rem; }
}
