/* ============================================================
   demo-base.css — xFactory 業種別デモHP 共通骨格
   各デモは :root の CSS 変数（--c-primary 等）を上書きして使う。
   ここには「色を決めない」骨格だけを置く。
   ============================================================ */

/* ---------- リセット ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body, "Noto Sans JP", sans-serif);
  font-size: var(--fs-base, 16px);
  line-height: 1.8;
  color: var(--c-text, #333);
  background: var(--c-bg, #fff);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

ul,
ol {
  list-style: none;
}

/* ---------- サンプルラベル帯（ページ最上部固定） ---------- */
.demo-label {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #1f1f1f;
  color: #fff;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  padding: 6px 12px;
  font-family: "Noto Sans JP", sans-serif;
}

.demo-label a {
  color: #9fd8ff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- レイアウト ---------- */
.container {
  width: min(100% - 40px, 1040px);
  margin-inline: auto;
}

.section {
  padding: clamp(56px, 9vw, 96px) 0;
}

.section--tint {
  background: var(--c-tint, #f6f6f6);
}

/* セクション見出し */
.section-title {
  font-size: clamp(24px, 4.5vw, 34px);
  line-height: 1.4;
  text-align: center;
  color: var(--c-heading, var(--c-primary, #333));
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

.section-lead {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(32px, 5vw, 48px);
  color: var(--c-text-soft, #555);
}

.section-eyebrow {
  display: block;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--c-accent, #888);
  margin-bottom: 8px;
  text-transform: uppercase;
}

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  min-height: clamp(420px, 64vh, 640px);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--hero-overlay, rgba(0, 0, 0, 0.45));
}

.hero__inner {
  position: relative;
  z-index: 2;
  padding: clamp(48px, 8vw, 80px) 0;
}

.hero__title {
  font-size: clamp(30px, 6vw, 52px);
  line-height: 1.35;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.hero__text {
  font-size: clamp(15px, 2.2vw, 18px);
  max-width: 560px;
  margin-bottom: 28px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border: none;
  border-radius: var(--btn-radius, 999px);
  background: var(--c-accent, #333);
  color: var(--c-on-accent, #fff);
  font-size: 16px;
  font-family: inherit;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: inherit;
  border: 1.5px solid currentColor;
}

/* ---------- カードグリッド ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 32px);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 32px);
}

.card {
  background: var(--c-card, #fff);
  border-radius: var(--card-radius, 12px);
  padding: clamp(24px, 3.5vw, 36px) clamp(20px, 3vw, 28px);
  box-shadow: var(--card-shadow, 0 4px 20px rgba(0, 0, 0, 0.06));
}

.card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  color: var(--c-accent, #888);
}

.card__icon svg {
  width: 100%;
  height: 100%;
}

.card__title {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--c-heading, var(--c-primary, #333));
}

.card__text {
  font-size: 14.5px;
  color: var(--c-text-soft, #555);
}

/* ---------- 番号付きの「選ばれる理由」 ---------- */
.reason-num {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--c-accent, #888);
  margin-bottom: 10px;
}

/* ---------- 店舗情報テーブル ---------- */
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.info-table th,
.info-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--c-line, #e3e3e3);
  text-align: left;
  vertical-align: top;
}

.info-table th {
  width: 32%;
  font-weight: 700;
  color: var(--c-heading, var(--c-primary, #333));
  white-space: nowrap;
}

/* 受付時間など、横スクロールが必要な表 */
.table-scroll {
  overflow-x: auto;
}

.time-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14.5px;
  text-align: center;
}

.time-table th,
.time-table td {
  padding: 12px 8px;
  border: 1px solid var(--c-line, #e3e3e3);
}

.time-table thead th {
  background: var(--c-tint, #f6f6f6);
  color: var(--c-heading, var(--c-primary, #333));
}

/* ---------- CTA ---------- */
.cta {
  text-align: center;
  color: var(--c-on-primary, #fff);
  background: var(--c-primary, #333);
}

.cta .section-title {
  color: inherit;
}

.cta__tel {
  font-size: clamp(26px, 5vw, 36px);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin: 12px 0 4px;
}

.cta__note {
  font-size: 13.5px;
  opacity: 0.85;
  margin-bottom: 28px;
}

/* ---------- お問い合わせフォーム（ダミー） ---------- */
.form {
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
}

.form__row {
  margin-bottom: 18px;
}

.form__label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}

.form__input,
.form__textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  font-family: inherit;
  border: 1px solid var(--c-line, #ccc);
  border-radius: 8px;
  background: #fff;
  color: #333;
}

.form__textarea {
  min-height: 120px;
  resize: vertical;
}

.form__submit-wrap {
  text-align: center;
  margin-top: 24px;
}

/* ---------- ヘッダー / フッター ---------- */
.site-header {
  background: var(--c-bg, #fff);
  border-bottom: 1px solid var(--c-line, #eee);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
  flex-wrap: wrap;
}

.site-logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--c-heading, var(--c-primary, #333));
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 22px;
  font-size: 14px;
}

.site-nav a {
  text-decoration: none;
  color: var(--c-text, #333);
}

.site-nav a:hover {
  color: var(--c-accent, #888);
}

.site-footer {
  background: #222;
  color: #ccc;
  font-size: 12.5px;
  text-align: center;
  padding: 28px 16px;
  line-height: 2;
}

.site-footer__sample-note {
  display: block;
  color: #999;
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 860px) {
  .grid-3 {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .site-nav {
    display: none; /* 1枚ペラのため、スマホはページ内スクロールで誘導 */
  }

  .info-table th {
    width: 38%;
  }
}
