/* サイト共通（HTML + CSS。ビルド不要） */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #f5f7fb;
  --fg: #111827;
  --muted: #6b7280;
  --border: #dbe3ef;
  --brand-from: #0f172a;
  --brand-to: #dc2626;
  --surface: #ffffff;
  --surface-soft: #eef2ff;
  --link: #1d4ed8;
  /** Googleフォーム埋め込みの高さ（iframe内でスクロールする場合は値を大きく） */
  --contact-form-iframe-height: 1400px;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Hiragino Sans",
    "Noto Sans JP", sans-serif;
  color: var(--fg);
  background: radial-gradient(circle at 5% 0%, #eef2ff 0%, var(--bg) 42%);
  line-height: 1.6;
}

body[data-page] {
  background:
    linear-gradient(rgba(245, 247, 251, 0.72), rgba(245, 247, 251, 0.72)),
    url("../images/top-202309-03.png") center top / cover no-repeat fixed;
}

main {
  flex: 1;
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
}

body {
  padding-top: 72px;
}

.site-header__inner {
  max-width: 64rem;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  position: relative;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.nav-toggle {
  display: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  font-size: 0.875rem;
  align-items: center;
}

.site-nav a {
  color: #334155;
  text-decoration: none;
  font-weight: 500;
  line-height: 1.45;
  padding: 0.08rem 0;
}

.site-nav a:hover {
  color: var(--fg);
}

.site-nav a.nav-link--current {
  color: #0f172a;
  font-weight: 600;
}

.site-nav .nav-instagram {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1px solid #c7d2fe;
  background: rgba(255, 255, 255, 0.72);
  color: #4338ca;
  font-weight: 600;
}

.site-nav .nav-instagram:hover {
  color: #3730a3;
  background: #eef2ff;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(4px);
  margin-top: auto;
}

.site-footer__inner {
  max-width: 64rem;
  margin: 0 auto;
  padding: 2rem 1rem;
  font-size: 0.875rem;
  color: #0f172a;
}

.site-footer a {
  color: #1e3a8a;
  font-weight: 600;
}

.site-footer p {
  margin: 0.35rem 0;
}

/* ---------- Typography ---------- */
.prose h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 1rem;
}

.prose p,
.prose ul {
  margin: 0 0 1rem;
  color: #3f3f46;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

/* Hero */
.hero {
  border-radius: 1.25rem;
  background: linear-gradient(
    120deg,
    var(--brand-from),
    #1e293b 45%,
    var(--brand-to)
  );
  padding: 2.5rem 2rem;
  color: #fff;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.22);
}

body[data-page="home"] .hero {
  background: rgba(255, 255, 255, 0.5);
  border: none;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: blur(2px);
  color: #0f172a;
}

body[data-page="home"] .hero p {
  color: #1f2937;
}

body[data-page="home"] .hero__eyebrow {
  color: #334155;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  letter-spacing: 0.02em;
}

.hero p {
  margin: 0;
  max-width: 42rem;
  color: rgba(255, 255, 255, 0.92);
}

.hero__eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.hero__actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 999px;
  background: #fff;
  color: #0f172a;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
}

.btn:hover {
  background: #f8fafc;
}

.btn--lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.btn--instagram {
  background: linear-gradient(90deg, #9333ea, #db2777);
  color: #fff;
}

.btn--instagram:hover {
  opacity: 0.92;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: none;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.18);
}

.section-title {
  margin: 0 0 1rem;
  font-size: 1.25rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.feature-card {
  border: none;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.5);
  padding: 1.1rem 1.1rem 1rem;
  box-shadow: none;
  backdrop-filter: blur(2px);
}

body[data-page="home"] .feature-card {
  background: rgba(255, 255, 255, 0.5);
  border: none;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: blur(2px);
}

body[data-page="home"] .feature-card h2 {
  color: #0f172a;
}

body[data-page="home"] .feature-card p {
  color: #1f2937;
}

.feature-card h2 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  color: #475569;
}

.info-panel {
  border: none;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.5);
  padding: 1.2rem;
  box-shadow: none;
  backdrop-filter: blur(2px);
}

body[data-page="home"] .info-panel {
  background: rgba(255, 255, 255, 0.5);
  border: none;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: blur(2px);
}

.info-list {
  margin: 0;
}

.info-list div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #d6deeb;
}

.info-list div:last-child {
  border-bottom: none;
}

.info-list dt {
  font-weight: 700;
}

.info-list dd {
  margin: 0;
  color: #334155;
}

.news-section {
  background: rgba(255, 255, 255, 0.5);
  border: none;
  border-radius: 0;
  padding: 1.1rem;
  box-shadow: none;
  backdrop-filter: blur(2px);
}

body[data-page="home"] .news-section {
  background: rgba(255, 255, 255, 0.5);
  border: none;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: blur(2px);
}

/* News list */
.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.72);
}

.news-row {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}

.news-row:last-child {
  border-bottom: none;
}

.news-row a {
  font-weight: 500;
  color: var(--fg);
  text-decoration: none;
}

.news-row a:hover {
  text-decoration: underline;
}

.news-meta {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.text-link {
  font-size: 0.875rem;
  color: var(--link);
}

.text-link:hover {
  text-decoration: underline;
}

/* Schedule tabs */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tab {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  border-radius: 9999px;
  border: none;
  background: #f4f4f5;
  color: #3f3f46;
  cursor: pointer;
}

.tab[aria-selected="true"] {
  background: var(--fg);
  color: #fff;
}

.tab-panels {
  position: relative;
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.embed-frame {
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: #fafafa;
}

.embed-frame iframe {
  display: block;
  width: 100%;
  min-height: 480px;
  height: min(85vh, 720px);
  border: 0;
}

/* 予定表: カレンダー埋め込みをページ幅いっぱいに */
body[data-page="schedule"] main {
  max-width: 80rem;
}

body[data-page="schedule"] .embed-frame--calendar {
  width: 100%;
  max-width: none;
  border: 1px solid #777;
}

body[data-page="schedule"] .embed-frame--calendar iframe {
  width: 100%;
  max-width: 100%;
  min-height: 1200px;
  height: 1200px;
}

/* ---------- 営業時間グリッド（予定表・通常タブ） ---------- */
.hours-grid-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 0.5rem;
}

table.hours-grid {
  border-collapse: collapse;
  width: 100%;
  min-width: 42rem;
  font-size: 0.8125rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
}

.hours-grid th,
.hours-grid td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.4rem;
  vertical-align: top;
  text-align: center;
}

.hours-grid thead th {
  background: var(--surface-soft);
  font-weight: 600;
  font-size: 0.875rem;
}

.hours-grid__corner {
  width: 2.5rem;
}

.hours-grid tbody th {
  background: var(--surface-soft);
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  width: 2.5rem;
}

.hours-cell__item {
  margin: 0 0 0.5rem;
  line-height: 1.35;
}

.hours-cell__item:last-child {
  margin-bottom: 0;
}

.hours-cell__name {
  display: block;
  font-weight: 600;
  color: var(--fg);
}

.hours-cell__time {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.1rem;
}

.hours-cell--closed {
  vertical-align: middle;
  font-weight: 600;
  color: #b91c1c;
  background: #fef2f2;
}

.hours-cell--empty {
  color: var(--muted);
  vertical-align: middle;
}

body[data-page="contact"] .embed-frame {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
}

/** 既定の iframe は max 720px のためフォーム内でスクロールになる。問い合わせのみ十分な高さを確保する */
body[data-page="contact"] .embed-frame iframe {
  min-height: var(--contact-form-iframe-height);
  height: var(--contact-form-iframe-height);
}

.callout {
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  border: 1px solid #fde68a;
  background: #fffbeb;
  color: #78350f;
  font-size: 0.875rem;
}

.callout code {
  font-size: 0.8em;
  padding: 0.1em 0.35em;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 0.25rem;
}

.partial-error {
  color: #b91c1c;
  font-size: 0.875rem;
}

code {
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  background: #f4f4f5;
  border-radius: 0.25rem;
}

/* ---------- スタッフ紹介 ---------- */
.staff-scroll-target {
  scroll-margin-top: 5.5rem;
}

.staff-detail__heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}

.staff-detail__heading span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
}

.staff-detail__role {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #4338ca;
  text-transform: uppercase;
}

.staff-detail__body {
  display: grid;
  grid-template-columns: minmax(160px, 260px) 1fr;
  gap: 1.25rem;
  align-items: start;
}

.staff-detail__figure {
  margin: 0;
}

.staff-detail__figure img {
  width: 100%;
  max-width: 260px;
  height: auto;
  border-radius: 0.5rem;
  display: block;
  border: 1px solid var(--border);
}

.staff-detail__text > p:last-child {
  margin-bottom: 0;
}

.staff-detail__sub {
  margin: 1.25rem 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #334155;
}

@media (max-width: 640px) {
  body[data-page] {
    background-image:
      linear-gradient(rgba(248, 250, 252, 0.74), rgba(238, 242, 255, 0.74)),
      url("../images/top-202309-03.png");
    background-position: center top, left top;
    background-size: 100% 100%, 34% auto;
    background-repeat: no-repeat, repeat;
    background-attachment: scroll;
  }

  .site-header__inner {
    padding: 0.65rem 0.85rem;
    gap: 0.4rem 0.85rem;
    flex-wrap: nowrap;
    align-items: center;
  }

  .site-logo {
    font-size: 1rem;
    white-space: nowrap;
  }

  .nav-toggle {
    display: inline-flex;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    margin-left: auto;
    cursor: pointer;
  }

  .nav-toggle__bar {
    display: block;
    width: 18px;
    height: 2px;
    background: #0f172a;
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
    transform-origin: center;
  }

  .site-header.menu-open .nav-toggle__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-header.menu-open .nav-toggle__bar:nth-child(2) {
    opacity: 0;
  }

  .site-header.menu-open .nav-toggle__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.45rem);
    left: 0.85rem;
    right: 0.85rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.18);
    max-height: min(68vh, 420px);
    overflow-y: auto;
  }

  .site-nav a {
    white-space: normal;
    display: block;
    font-size: 0.92rem;
    line-height: 1.4;
    padding: 0.6rem 0.55rem;
    border-radius: 0.45rem;
  }

  .site-nav a:hover {
    background: #f1f5f9;
  }

  .site-nav .nav-instagram {
    justify-content: center;
    margin-top: 0.2rem;
    border-radius: 0.45rem;
    padding: 0.6rem 0.55rem;
  }

  .site-header.menu-open .site-nav {
    display: flex;
  }

  main {
    padding: 1.25rem 0.9rem 1.75rem;
  }

  .hero {
    padding: 1.9rem 1.1rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .info-list div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .staff-detail__body {
    grid-template-columns: 1fr;
  }

  .staff-detail__figure img {
    max-width: 100%;
  }
}
