/* ===================================================================
   そよかぜ台整形外科スポーツクリニック TOPページ(架空・デザインサンプル)
   =================================================================== */

:root {
  /* colors (from Figma variables) */
  --ink: #22262a;            /* color/azure/15 */
  --ink-soft: #5b6167;       /* color/grey/38 */
  --blue: #2a6f97;           /* color/azure/38 */
  --blue-deep: #163a52;      /* color/azure/20 */
  --blue-brand: #1769b7;
  --blue-link: #104a81;
  --blue-pale: #6fa8c4;
  --blue-bg: #eaf6fd;
  --amber: #c97b3d;
  --alert: #d6772c;
  --border: #dedfde;
  --bg-soft: #f9f9f9;
  --bg-symptom: #faf1e7;
  --bg-footer-nav: #ededec;
  --table-head-bg: #f7f7f7;
  --white: #ffffff;
  --line-green: #06c755;

  --font-serif: 'Shippori Mincho', serif;
  --font-sans: 'Noto Sans JP', sans-serif;
  --font-round: 'M PLUS Rounded 1c', var(--font-sans);

  --max-width: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; font-family: var(--font-serif); font-weight: 700; color: var(--blue-deep); }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; }
button { font: inherit; }

.icon-sprite { display: none; }

.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 32px; }

/* ---------- Sample notice band ---------- */
.sample-band {
  background: var(--blue-bg);
  color: var(--blue-deep);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
  padding: 4px 16px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid transparent;
}
.site-header__inner {
  width: 100%;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand__mark {
  width: auto;
  height: 36px;
  flex-shrink: 0;
}
.brand__text { display: flex; flex-direction: column; align-items: center; line-height: 1.3; }
.brand__line1 { font-family: var(--font-sans); font-weight: 700; font-size: 22px; letter-spacing: 0.02em; color: var(--ink); }
.brand__line2 { font-family: var(--font-sans); font-weight: 700; font-size: 18px; letter-spacing: 0.02em; color: var(--ink); }

.site-nav { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.site-nav a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}
.nav-icon { width: 18px; height: 18px; stroke: var(--blue); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.hamburger span { display: block; height: 2px; width: 100%; background: var(--blue-deep); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero-wrap { padding: 0 18px; width: 100%; }
.hero {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
}
.hero__media {
  position: relative;
  height: calc(100vh - 140px);
  min-height: 480px;
  max-height: 920px;
  background-size: cover;
  background-position: 70% 60%;
  border-radius: 16px;
  overflow: hidden;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(0,0,0,0.42) 20%, rgba(60,70,80,0.18) 65%, rgba(60,70,80,0.05) 100%);
}
.hero__content {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero__content h1 {
  position: absolute;
  top: 103px;
  left: 194px;
  right: 40px;
  margin: 0;
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.5;
  color: var(--white);
}
.hero__content p {
  position: absolute;
  top: 194px;
  left: 194px;
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: #eef3f5;
  width: 390px;
  max-width: calc(100% - 40px);
}

/* Sticky quick-link rail */
.sticky-rail {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sticky-rail__item {
  width: 80px;
  height: 70px;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--white);
  font-size: 11px;
  font-weight: 500;
  text-align: center;
  line-height: 1.4;
  border-radius: 8px 0 0 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.sticky-rail__icon { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sticky-rail__icon--line { width: 26px; height: 26px; object-fit: contain; }
.sticky-rail__item--tel  { background: var(--blue-deep); }
.sticky-rail__item--wait { background: var(--blue); }
.sticky-rail__item--web  { background: var(--blue-pale); }
.sticky-rail__item--line { background: var(--line-green); }

/* ---------- Wave divider ---------- */
.wave-divider {
  display: block;
  width: 100%;
  height: 160px;
  margin-top: 40px;
}

/* ---------- Info row: news + hours ---------- */
.info-row { background: var(--blue-bg); }
.info-row__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px 110px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}
.card {
  background: var(--white);
  border-radius: 20px;
  padding: 36px 40px;
}
.card-title {
  font-size: 24px;
  text-align: center;
  margin-bottom: 18px;
}
.news-list li {
  display: flex;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.news-list time { color: var(--ink-soft); flex-shrink: 0; width: 80px; }
.news-list a { color: var(--blue); text-decoration: underline; }

.link-more {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  margin-top: 18px;
  color: var(--blue);
  font-weight: 500;
  font-size: 15px;
}
.link-more__icon { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.hours-card { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hours-table { width: 100%; margin-top: 6px; font-size: 13px; }
.hours-table th, .hours-table td {
  border: 1px solid var(--border);
  padding: 11px 8px;
  text-align: center;
}
.hours-table thead th { background: var(--table-head-bg); font-weight: 500; color: #515151; border-bottom: 1px solid var(--border); }
.hours-table tbody th { font-weight: 400; color: var(--ink); text-align: center; white-space: nowrap; }
.hours-table td { color: var(--blue); }
.hours-note {
  margin-top: 18px;
  font-size: 15px;
  color: var(--ink);
}
.hours-note__alert { color: var(--alert); font-weight: 500; }
.tel-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  color: var(--blue);
  font-size: 22px;
}
.tel-link__icon { width: 22px; height: 22px; fill: var(--blue); stroke: none; }

/* ---------- Generic section ---------- */
.section { max-width: var(--max-width); margin: 0 auto; padding: 72px 32px; }
.section__head { max-width: 460px; margin: 0 auto 40px; position: relative; }
.section__head--center { max-width: 620px; text-align: center; }
.section__head h2 { font-size: 30px; position: relative; z-index: 1; }
.watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  width: 100%;
  font-family: var(--font-round);
  font-weight: 700;
  font-size: clamp(46px, 8vw, 80px);
  color: rgba(42,111,151,0.08);
  letter-spacing: 0.08em;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
  pointer-events: none;
}

/* ---------- Diagnosis (MEDICAL) ---------- */
.section--diagnosis { background: var(--bg-soft); max-width: none; padding-left: 0; padding-right: 0; }
.section--diagnosis .section__head { text-align: center; padding: 0 32px; }
.diagnosis-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
}
.diagnosis-card { text-align: center; padding: 10px; }
.diagnosis-card__photo {
  width: 140px;
  height: 140px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  overflow: hidden;
}
.diagnosis-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.diagnosis-card__photo img.is-inset-120 { width: 120px; height: 120px; margin: 10px; }
.diagnosis-card__photo img.is-inset-128 { width: 128px; height: 128px; margin: 6px; }
.diagnosis-card h3 { font-size: 16px; margin-bottom: 8px; }
.diagnosis-card p { font-size: 13px; color: var(--ink-soft); text-align: left; }

/* ---------- Symptoms ---------- */
.section--symptoms { background: var(--bg-symptom); max-width: none; padding: 72px 0 120px; }
.section--symptoms .section__head { padding: 0 32px; margin-bottom: 56px; }
.symptom-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(3, 282px);
  justify-content: center;
  gap: 26px;
}
.symptom-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 282px;
  height: 232px;
  background: var(--white);
  border-radius: 16px;
  padding: 0 30px 0;
  text-align: center;
  transition: transform .15s ease, box-shadow .15s ease;
}
.symptom-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(22,58,82,0.1); }
.symptom-card__photo {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  margin-bottom: 8px;
  border-radius: 12px;
  overflow: hidden;
}
.symptom-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.symptom-card h3 { font-size: 16px; flex-shrink: 0; margin-bottom: 8px; line-height: 1; }
.symptom-card p { font-size: 13px; line-height: 23.4px; min-height: 70.2px; color: var(--ink-soft); text-align: left; margin: 0; }
.symptom-card__arrow {
  align-self: flex-end;
  flex-shrink: 0;
  margin-top: 4px;
  padding-top: 0;
  line-height: 1;
  font-family: var(--font-round);
  font-size: 26px;
  font-weight: 300;
  color: var(--amber);
}

/* ---------- Message / greeting ---------- */
.message {
  position: relative;
  height: 676px;
  background-size: cover;
  background-position: center;
  padding: 90px 32px 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.message::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 1440px;
  max-width: 100%;
  height: 60px;
  background: linear-gradient(180deg, #faf1e7 0%, rgba(250,241,231,0) 100%);
}
.message::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 1440px;
  max-width: 100%;
  height: 40px;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #fff 100%);
}
.message__card {
  position: absolute;
  top: 101px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  background: #f9f9f9;
  border-radius: 0;
  width: 907px;
  height: 353px;
  max-width: 100%;
  padding: 34px 32px 48.5px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.message__card h2 { font-size: 30px; margin-bottom: 20px; }
.message__text {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 48px;
  width: 700px;
  max-width: 100%;
  height: 192px;
  margin: 0 auto;
  color: var(--ink-soft);
  letter-spacing: -0.02em;
  text-align: left;
}
.message__text-line {
  display: block;
  position: relative;
}
.message__text-line::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 1.5px;
  background-image: repeating-linear-gradient(
    to right,
    rgba(209,209,209,0.5) 0,
    rgba(209,209,209,0.5) 12px,
    transparent 12px,
    transparent 16px
  );
}
.message__text-line:last-child { display: inline-block; }
.message__signature {
  position: absolute;
  top: 472px;
  right: max(20px, calc(50% - 453.5px));
  left: auto;
  transform: none;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.message__signature-card {
  background: #fff;
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.message__name {
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.message__role { font-family: var(--font-serif); font-size: 15px; color: var(--ink-soft); }
.message__kanji { font-family: var(--font-serif); font-size: 20px; letter-spacing: 0.08em; color: var(--ink-soft); }
.message__kanji ruby { margin: 0 1px; }
.message__kanji rt { font-family: var(--font-sans); font-size: 9px; color: var(--ink-soft); }
.message__link { font-size: 13px; color: var(--amber); }

/* ---------- Access ---------- */
.section--access { padding-top: 100px; padding-bottom: 80px; }
.section--access .section__head { margin-bottom: 60px; }
.access-grid {
  display: grid;
  grid-template-columns: minmax(0, 420px) 1fr;
  gap: 48px;
  justify-content: center;
}
.access-info__row {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.access-info__row--name { padding-top: 0; }
.access-info__row--last { border-bottom: none; }
.access-info__icon {
  width: auto;
  height: 36px;
  flex-shrink: 0;
}
.access-info__clinic-name { font-weight: 700; font-size: 17px; letter-spacing: 0.01em; }
.access-info__label { width: 60px; flex-shrink: 0; color: var(--ink-soft); }
.access-info__tel { color: var(--blue); }

.hours-table--detailed { margin-top: 24px; }
.hours-table--detailed tbody th { padding-top: 10px; padding-bottom: 10px; }
.hours-table__period { display: block; margin-bottom: 2px; font-size: 11px; color: var(--ink-soft); }

.access-map { display: flex; flex-direction: column; gap: 18px; align-items: flex-end; }
.access-map__frame {
  width: 513px;
  height: 507px;
  max-width: 100%;
  background: #ededec;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 14px;
}
.access-map__frame--placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; min-height: 240px; background: #f3f7ff; border: 0; color: #2f78b5;
}
.access-map__frame--placeholder .access-map__pin { width: 48px; height: 48px; }
.access-map__frame--placeholder p {
  margin: 0; color: #333f4f; font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 500; letter-spacing: 0.04em;
}
.link-more--boxed {
  margin-top: 0;
  font-size: 16px;
  border: 1px solid rgba(22, 58, 82, 0.32);
  border-radius: 6px;
  padding: 9px 13px;
  justify-content: center;
  gap: 8px;
}

/* ---------- Recruit band ---------- */
.recruit-band {
  position: relative;
  height: 232px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  padding: 0 32px;
}
.recruit-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 784px;
  height: 148px;
  max-width: 100%;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.recruit-card::before { content: ""; position: absolute; inset: 0; background: rgba(23,105,183,0.72); }
.recruit-card__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.recruit-card__inner h2 { color: var(--white); font-size: 26px; }
.recruit-band__badge {
  background: var(--blue-link);
  color: var(--white);
  font-size: 14px;
  padding: 6px 18px;
  border-radius: 2px;
}

/* ---------- Footer ---------- */
.site-footer { text-align: center; }
.footer-links { padding: 30px 32px; }
.footer-links h2 { font-size: 22px; margin-bottom: 16px; }
.footer-links__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
}
.footer-links__list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue-link);
  font-size: 14px;
}
.footer-links__bullet { width: 12px; height: 12px; fill: var(--blue-link); stroke: none; }

.footer-nav {
  background: var(--bg-footer-nav);
  padding: 22px 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
}
.footer-nav a { font-size: 13px; font-weight: 500; color: var(--ink); }

.footer-copyright { background: var(--blue-link); padding: 10px 32px; }
.footer-copyright p { color: var(--white); font-size: 12px; }
.footer-disclaimer { text-align: center; padding: 8px 32px; font-size: 10px; color: var(--ink-soft); background: var(--white); }

/* ===================================================================
   Responsive
   =================================================================== */
@media (max-width: 1180px) {
  .site-nav { gap: 16px; }
}

@media (max-width: 980px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 0;
    box-shadow: 0 12px 20px rgba(0,0,0,0.08);
    border-top: 1px solid var(--border);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { width: 100%; padding: 14px 32px; }
  .hamburger { display: flex; }
  .site-header__inner { position: relative; }

  .info-row__inner { grid-template-columns: minmax(0, 1fr); }
  .access-grid { grid-template-columns: 1fr; }
  .access-map { align-items: stretch; }
  .access-map__frame { width: 100%; height: auto; aspect-ratio: 16/9; }
  .access-map__frame--placeholder { aspect-ratio: auto; }
}

@media (max-width: 760px) {
  body { padding-bottom: 64px; }

  .diagnosis-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; padding: 0 20px; }
  .diagnosis-card { padding: 6px; }
  .diagnosis-card__photo { width: 116px; height: 116px; }
  .diagnosis-card__photo img.is-inset-120 { width: 96px; height: 96px; margin: 10px; }
  .diagnosis-card__photo img.is-inset-128 { width: 102px; height: 102px; margin: 7px; }
  .symptom-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; justify-content: initial; }
  .symptom-card { width: 100%; height: auto; padding: 0 22px; }
  .symptom-card__photo { width: 72px; height: 72px; margin-bottom: 4px; }
  .symptom-card h3 { margin-bottom: 4px; }
  .symptom-card p { min-height: 0; }
  .symptom-card__arrow { margin-top: 2px; }

  .site-header__inner { height: 60px; padding: 0 20px; }
  .brand { gap: 8px; }
  .brand__mark { height: 36px; }
  .brand__line1 { font-size: 15px; }
  .brand__line2 { font-size: 12px; }

  .hero-wrap { padding: 0 20px; }
  .hero__media { height: 510px; min-height: 0; max-height: none; }
  .hero__content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 60px 24px;
  }
  .hero__content h1,
  .hero__content p {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    width: auto;
    max-width: none;
  }
  .hero__content h1 { font-size: 22px; line-height: 1.4; }
  .hero__content p { font-size: 13px; line-height: 1.6; margin-top: 12px; width: 242px; max-width: 100%; }

  .card { padding: 28px 22px; }

  .message {
    background-image: url('47990822-2def-4c3c-8e06-fb7dfcb91528.png') !important;
    background-size: cover;
    background-position: center;
    display: block;
    height: auto;
    padding: 56px 20px 60px;
  }
  .message__card {
    position: static;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    height: auto;
    padding: 28px 24px;
  }
  .message__text {
    font-size: 16px;
    width: 100%;
    height: auto;
  }
  .message__text-line {
    display: inline;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    padding-bottom: 6px;
    background-repeat: repeat-x;
    background-position: 0 100%;
    background-size: auto 1.5px;
    background-image: repeating-linear-gradient(
      to right,
      rgba(209,209,209,0.8) 0,
      rgba(209,209,209,0.8) 12px,
      transparent 12px,
      transparent 16px
    );
  }
  .message__text-line::after { display: none; }
  .message__text-line::after { display: none; }
  .message__text-line:last-child { display: inline; }
  .message__signature {
    position: static;
    top: auto;
    right: auto;
    left: auto;
    align-items: flex-end;
    width: fit-content;
    margin: 16px 0 0 auto;
  }
  .message__signature-card { background: #f9f9f9; }

  .sticky-rail {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    flex-direction: row;
    gap: 0;
  }
  .sticky-rail__item { flex: 1; width: auto; height: auto; padding: 10px 4px; border-radius: 0; }

  .recruit-card__inner { gap: 10px; }
  .recruit-card__inner h2 { font-size: 20px; }
  .recruit-band__badge { font-size: 10px; padding: 5px 12px; text-align: center; }

  .access-info__clinic-name { font-size: 15px; }
  .section--access .watermark { letter-spacing: 0.16em; }

  .section { padding: 56px 20px; }
  .section--symptoms { padding: 56px 0 72px; }
}

@media (max-width: 520px) {
  .diagnosis-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .symptom-grid { grid-template-columns: 1fr; max-width: 360px; }
  .footer-nav { gap: 8px 18px; }
}
