/* =========================================================
   Zerosta Pop — Responsive Layout Fix (full replace)
   横スクロール抑止 / 画像のはみ出し防止 / グリッド最適化
   ========================================================= */

/* ベース */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Noto Sans JP", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  color: #1b1b1b;
  line-height: 1.7;
  overflow-x: hidden;               /* 横スクロール禁止 */
  background: #fff;
}

/* 画像はみ出し防止（全域） */
img, svg, video, canvas, iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

/* タイポ */
h1, h2, h3 { margin: 0 0 .4em; line-height: 1.25; font-family: Poppins, "Noto Sans JP", sans-serif; }
h1 { font-size: clamp(32px, 4.2vw, 64px); font-weight: 800; letter-spacing: .02em; }
h2 { font-size: clamp(26px, 3vw, 40px); font-weight: 800; }
h3 { font-size: clamp(18px, 2.1vw, 22px); font-weight: 700; }

/* レイアウトコンテナ */
.container {
  width: min(1200px, 100%);         /* 1200px上限で全端は100% */
  margin-inline: auto;
  padding-inline: clamp(16px, 3.2vw, 28px);
}

/* 共通セクション */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section-alt { background: #faf7ff; } /* うっすら色 */
.section-lead { margin: .5rem 0 2rem; color: #5a5a5a; }

/* ===== ヘッダー ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid #eee;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo { font-weight: 800; font-size: 22px; text-decoration: none; color: #111; }

.nav { display: flex; align-items: center; gap: 14px; }
.nav a {
  color: #222; text-decoration: none; font-weight: 600;
  padding: 10px 12px; border-radius: 999px;
}
.nav a:hover { background: #f1f1f1; }

/* 予約ボタン */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; cursor: pointer; border-radius: 999px; text-decoration: none; }
.btn-cta { background: #ff3e8a; color: #fff; padding: 10px 18px; font-weight: 700; }
.btn-cta:hover { filter: brightness(.96); }
.btn-outline { border: 2px solid #ff3e8a; color: #ff3e8a; padding: 8px 16px; background:#fff; }
.btn-lg { padding: 14px 24px; font-size: clamp(16px, 1.8vw, 18px); }

/* ===== ヒーロー ===== */
.hero {
  position: relative;
  min-height: clamp(420px, 65vh, 720px);
  display: grid;
  place-items: end start;           /* コピーは左下寄せ */
  isolation: isolate;               /* 重なり制御 */
}
.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;                /* 余白なくカバー */
  object-position: center;
  z-index: -1;
}
.hero-copy {
  color: #fff;
  padding: clamp(18px, 4vw, 28px) clamp(18px, 4vw, 32px);
  text-shadow: 0 1px 16px rgba(0,0,0,.35);
}
.kick {
  display: inline-block; font-weight: 800; letter-spacing: .06em;
  font-size: clamp(12px, 1.3vw, 14px);
  background: #8b5cf6; color: #fff; padding: 6px 10px; border-radius: 999px; margin-right: 8px;
}

/* カラーバー（横はみ出し防止） */
.color-bars { position: absolute; left: 0; right: 0; bottom: 0; overflow: clip; }
.color-bars span { display: block; height: 6px; }
.color-bars span:nth-child(1){ background:#ff3e8a; }
.color-bars span:nth-child(2){ background:#8b5cf6; }
.color-bars span:nth-child(3){ background:#22d3ee; }
.color-bars span:nth-child(4){ background:#f59e0b; }

/* ===== Feature / Concept ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(16px, 2.8vw, 28px);
}
.card.feature {
  background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 6px 24px rgba(17, 12, 46, .06);
}
.card.feature img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.card.feature h3 { padding: 14px 16px 0; }
.card.feature p { padding: 0 16px 16px; color: #555; }

/* ===== Trends ===== */
.trend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(14px, 2.4vw, 24px);
}
.trend-card {
  position: relative; border-radius: 18px; overflow: hidden;
  background: #fff; box-shadow: 0 6px 24px rgba(17, 12, 46, .06);
}
.trend-card img {
  width: 100%;
  aspect-ratio: 3 / 4;              /* カード比率で統一 */
  object-fit: cover;                /* “デカすぎ”防止 */
}
.trend-tags {
  position: absolute; left: 10px; bottom: 10px; display: flex; gap: 8px; flex-wrap: wrap;
}
.trend-tags span {
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(4px);
  border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 700; color:#333;
}

/* ===== 料金 ===== */
.price-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.price-card {
  background: #fff; border-radius: 16px; padding: 18px; box-shadow: 0 6px 24px rgba(17,12,46,.06);
}
.price-card ul { list-style: none; margin: 0; padding: 0; }
.price-card li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom:1px dashed #eee; }
.price-card li:last-child { border-bottom: 0; }
.price-card .note { color:#777; font-size: .92rem; margin-top: 8px; }

/* ===== Stylists ===== */
.stylist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(14px, 2.4vw, 24px);
}
.card.round {
  text-align: center; background: #fff; border-radius: 16px; padding-bottom: 14px; overflow: hidden;
  box-shadow: 0 6px 24px rgba(17,12,46,.06);
}
.card.round img {
  width: 100%;
  aspect-ratio: 1 / 1;              /* 正方形トリム */
  object-fit: cover;
}
.card.round .muted { color:#666; margin: 0 .6rem; }

/* ===== News（横スク不要のレール） ===== */
.news-rail {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card.news { background:#fff; border-radius:14px; overflow:hidden; box-shadow:0 6px 24px rgba(17,12,46,.06); }
.card.news img { width:100%; aspect-ratio: 16/10; object-fit: cover; }
.card.news .pad { padding: 14px 16px; }
.muted { color:#777; font-size:.95rem; }

/* ===== Gallery ===== */
.gallery-grid {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.gallery-grid img { width:100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; }

/* ===== Access ===== */
.access-grid {
  display: grid; gap: 24px;
  grid-template-columns: 1.2fr 1fr;
}
.map iframe {
  width: 100%; aspect-ratio: 16/10; border: 0; display: block;
}
.access-photo { width:100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 12px; margin-top: 12px; }

/* ===== Contact ===== */
.contact { text-align: center; }
.contact-card { max-width: 640px; margin: 0 auto; padding: 22px 18px; background:#fff; border-radius:18px; box-shadow:0 6px 24px rgba(17,12,46,.06); }
.tel a { font-size: clamp(22px, 3.6vw, 28px); color:#111; text-decoration:none; font-weight:800; letter-spacing:.02em; }
.cta-buttons { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin-top:8px; }

/* ===== フッター ===== */
.site-footer { padding: 28px 0; border-top: 1px solid #eee; background:#fff; color:#666; }

/* ===== ナビ（スマホ） ===== */
.nav-toggle { display:none; }
@media (max-width: 920px) {
  .nav { gap: 6px; }
  .nav a { padding: 8px 10px; }
}
@media (max-width: 760px) {
  .header-inner { height: 60px; }
  .nav-toggle {
    display: inline-flex; align-items:center; justify-content:center;
    border: 1px solid #ddd; background:#fff; height: 36px; padding-inline: 10px; border-radius: 10px;
    font-weight:700;
  }
  /* 必要なら JS で .is-open を付与して開閉、現状は常時表示にしておく */
  .nav-track { display: none; }
  .nav { display:none; }
  .nav.is-open, .nav-track.is-open { display:flex; }
}

/* ===== ブレイクポイントでの微調整 ===== */
@media (max-width: 980px) {
  .access-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero { min-height: clamp(380px, 58vh, 620px); }
  .trend-tags span { font-size: 11px; padding: 5px 8px; }
}
