/* =========================================================
   コンフェティ ホームページ 共通スタイル
   2026-06-02 制作骨組み（コンプラット 菊池研）
   - 静的HTML/CSS・レスポンシブ・CMSなし
   - 色・フォント・余白はトンマナ確定後に調整可能
   ========================================================= */

/* ---------- デザイントークン ---------- */
:root {
  --color-bg: #ffffff;
  --color-bg-soft: #faf6f3;
  --color-text: #2e2a28;
  --color-text-soft: #6b625e;
  --color-accent: #e8857a;        /* コーラル（コンフェティ＝彩りの象徴） */
  --color-accent-dark: #c96a5f;
  --color-line: #ece5e1;
  --color-white: #ffffff;

  --font-base: "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --font-en: "Cormorant Garamond", "Times New Roman", serif;

  --maxw: 1080px;
  --gutter: 5vw;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(46, 42, 40, 0.08);
}

/* ---------- リセット ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: opacity .2s, color .2s; }
a:hover { opacity: .7; }
ul { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, p { margin: 0; }

/* ---------- レイアウト ---------- */
.container { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding: 80px 0; }
.section--soft { background: var(--color-bg-soft); }
.center { text-align: center; }

.section-head { text-align: center; margin-bottom: 48px; }
.section-head .en {
  display: block;
  font-family: var(--font-en);
  font-size: 2.4rem;
  letter-spacing: .08em;
  color: var(--color-accent);
  line-height: 1.1;
}
.section-head .ja {
  display: block;
  font-size: .9rem;
  letter-spacing: .25em;
  color: var(--color-text-soft);
  margin-top: 8px;
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border: 1px solid var(--color-accent);
  border-radius: 999px;
  font-size: .95rem;
  letter-spacing: .08em;
  transition: background .25s, color .25s;
}
.btn--fill { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
.btn--fill:hover { background: var(--color-accent-dark); border-color: var(--color-accent-dark); opacity: 1; }
.btn--ghost:hover { background: var(--color-accent); color: #fff; opacity: 1; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--color-line);
}
.site-header .inner {
  max-width: var(--maxw); margin-inline: auto;
  padding: 14px var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
}
.logo { font-family: var(--font-en); font-size: 1.5rem; letter-spacing: .12em; color: var(--color-accent); }
.logo small { display: block; font-family: var(--font-base); font-size: .6rem; letter-spacing: .3em; color: var(--color-text-soft); }
.gnav ul { display: flex; gap: 28px; align-items: center; }
.gnav a { font-size: .9rem; letter-spacing: .06em; }
.gnav .nav-cta { padding: 8px 20px; border-radius: 999px; background: var(--color-accent); color: #fff; }
.gnav .nav-cta:hover { background: var(--color-accent-dark); opacity: 1; }

/* ハンバーガー */
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 32px; height: 24px; position: relative; }
.nav-toggle span { position: absolute; left: 0; width: 100%; height: 2px; background: var(--color-text); transition: .3s; }
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 11px; }
.nav-toggle span:nth-child(3) { top: 22px; }

/* ---------- ヒーロー ---------- */
.hero { position: relative; min-height: 78vh; display: flex; align-items: flex-end; justify-content: flex-start; background: var(--color-bg-soft); overflow: hidden; }
.hero .hero-slides { position: absolute; inset: 0; }
.hero .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.6s ease; }
.hero .hero-img.is-active { opacity: 1; }

/* 写真スライド：左を暗くするグラデ（白文字を読ませる） */
.hero .hero-veil { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(20,15,12,.55) 0%, rgba(20,15,12,.18) 52%, rgba(20,15,12,0) 100%); transition: background .8s ease; }

/* コピー：左下・左寄せ */
.hero .hero-copy { position: relative; z-index: 2; text-align: left; color: #fff; padding: 0 var(--gutter) clamp(40px, 8vh, 72px) clamp(28px, 6vw, 72px); text-shadow: 0 2px 14px rgba(0,0,0,.45); max-width: 760px; }
.hero .hero-copy .tag { font-family: var(--font-en); font-style: italic; font-size: clamp(1.1rem, 2.6vw, 1.6rem); letter-spacing: .04em; opacity: .95; }
.hero .hero-copy .main { margin: 6px 0 10px; font-size: clamp(1.7rem, 5.4vw, 3rem); font-weight: 700; line-height: 1.28; letter-spacing: .02em; }
.hero .hero-copy .sub { font-size: clamp(.85rem, 2.2vw, 1.05rem); letter-spacing: .08em; opacity: .9; }

/* スライド①＝ロゴ＋桜モーションパネル（承認A案）：明るいグラデ背景・コピー左／ロゴ右 */
.hero .hero-logo-slide {
  display: flex; align-items: center;
  background: linear-gradient(160deg, #ffffff 0%, #fdf5f8 55%, #fbeef4 100%);
}
.hero .hero-logo-inner {
  position: relative; z-index: 3; width: 100%; max-width: 1180px;
  margin-inline: auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
}
.hero .hero-logo-copy { text-align: left; max-width: 560px; color: #5a4632; }
.hero .hero-logo-copy .tag {
  font-family: var(--font-en); font-style: italic; font-weight: 500;
  font-size: clamp(1.1rem, 2.6vw, 1.7rem); color: var(--color-accent-dark);
  letter-spacing: .02em; margin-bottom: 14px;
}
.hero .hero-logo-copy .main {
  font-size: clamp(1.8rem, 5vw, 2.9rem); font-weight: 700; line-height: 1.3;
  color: #5a4632; letter-spacing: .02em;
}
.hero .hero-logo-copy .sub {
  margin-top: 18px; font-size: clamp(.9rem, 2.2vw, 1.02rem);
  color: var(--color-text-soft); letter-spacing: .08em;
}
.hero .hero-logo-img { flex-shrink: 0; width: 370px; max-width: 38vw; }
.hero .hero-logo-img img { width: 100%; height: auto; filter: drop-shadow(0 8px 24px rgba(201,106,95,.14)); }

/* 桜の花びら（ロゴ付近から左へ流れて舞い落ちる） */
.hero .petals { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero .petal {
  position: absolute; top: -40px; width: 14px; height: 18px;
  border-radius: 100% 0 100% 0; opacity: 0;
  filter: drop-shadow(0 2px 3px rgba(214,120,160,.18));
  animation-name: petalFlow; animation-timing-function: linear; animation-iteration-count: infinite;
}
@keyframes petalFlow {
  0%   { transform: translate(0,0) rotate(0deg) scale(1);            opacity: 0;   }
  8%   {                                                             opacity: .95; }
  88%  {                                                             opacity: .9;  }
  100% { transform: translate(-72vw, 660px) rotate(440deg) scale(.7); opacity: 0;  }
}
@media (prefers-reduced-motion: reduce) {
  .hero .petal { animation: none; opacity: .8; }
}

/* スライド①表示中は写真用のベール・共有コピーを隠す（ロゴパネルが自前で描画） */
.hero.is-light .hero-veil { background: none; }
.hero.is-light > .hero-copy { opacity: 0; visibility: hidden; }

/* カルーセルのドット */
.hero .hero-dots { position: absolute; z-index: 3; bottom: 18px; right: 22px; display: flex; gap: 6px; }
.hero .hero-dots b { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.55); transition: .3s; }
.hero .hero-dots b.on { background: #fff; width: 18px; border-radius: 5px; }
.hero.is-light .hero-dots b { background: rgba(120,100,90,.4); }
.hero.is-light .hero-dots b.on { background: var(--color-accent); }

/* プレースホルダ（写真未支給枠） */
.ph {
  display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(45deg, #f1e9e4, #f1e9e4 12px, #ece2db 12px, #ece2db 24px);
  color: var(--color-text-soft); font-size: .85rem; letter-spacing: .1em; text-align: center;
  aspect-ratio: 4 / 3; border-radius: var(--radius);
}
.ph--hero { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.ph--wide { aspect-ratio: 16 / 9; }

/* ---------- 店舗カード ---------- */
.salon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.salon-card { background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.salon-card .ph { border-radius: 0; }
.salon-card .card-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.salon-card .body { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.salon-card .name { font-size: 1.15rem; font-weight: 700; }
.salon-card .meta { font-size: .85rem; color: var(--color-text-soft); }
.salon-card .hpb { margin-top: auto; padding-top: 12px; }

/* ---------- 情報テーブル（会社概要） ---------- */
.info-table { width: 100%; border-collapse: collapse; }
.info-table th, .info-table td { text-align: left; padding: 16px 8px; border-bottom: 1px solid var(--color-line); vertical-align: top; font-size: .95rem; }
.info-table th { width: 30%; color: var(--color-text-soft); font-weight: 700; white-space: nowrap; }

/* ---------- フォーム ---------- */
.form-row { margin-bottom: 24px; }
.form-row label { display: block; font-size: .9rem; margin-bottom: 8px; letter-spacing: .05em; }
.form-row .req { color: var(--color-accent-dark); font-size: .75rem; margin-left: 6px; }
.form-row input, .form-row textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--color-line); border-radius: 8px;
  font-family: inherit; font-size: 1rem; background: var(--color-bg-soft);
}
.form-row textarea { min-height: 160px; resize: vertical; }

/* ---------- 法務文書（プライバシー） ---------- */
.legal { max-width: 820px; }
.legal h2 { font-size: 1.1rem; margin: 36px 0 12px; padding-left: 12px; border-left: 4px solid var(--color-accent); }
.legal p { margin-bottom: 14px; color: var(--color-text-soft); }
.legal .sign { margin-top: 40px; text-align: right; }

/* ---------- CTA帯 ---------- */
.cta-band { background: var(--color-accent); color: #fff; text-align: center; padding: 60px var(--gutter); }
.cta-band .en { font-family: var(--font-en); font-size: 2rem; }
.cta-band .btn { margin-top: 24px; border-color: #fff; color: #fff; }
.cta-band .btn:hover { background: #fff; color: var(--color-accent-dark); }

/* ---------- フッター ---------- */
.site-footer { background: #2e2a28; color: #cfc7c3; padding: 56px var(--gutter) 28px; }
.site-footer .inner { max-width: var(--maxw); margin-inline: auto; display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.site-footer .logo { color: #fff; }
.site-footer .f-nav ul { display: flex; flex-wrap: wrap; gap: 18px; font-size: .85rem; }
.site-footer .sns { display: flex; gap: 16px; margin-top: 14px; font-size: .85rem; }
.site-footer .copy { text-align: center; font-size: .75rem; color: #8a807b; margin-top: 40px; letter-spacing: .1em; }

/* ---------- パンくず ---------- */
.breadcrumb { font-size: .8rem; color: var(--color-text-soft); padding: 16px 0; }
.breadcrumb a { color: var(--color-accent-dark); }

/* ---------- ページ見出し ---------- */
.page-hero { background: var(--color-bg-soft); padding: 64px var(--gutter); text-align: center; }
.page-hero .en { font-family: var(--font-en); font-size: 2.6rem; color: var(--color-accent); letter-spacing: .06em; }
.page-hero .ja { display: block; font-size: .9rem; letter-spacing: .25em; color: var(--color-text-soft); margin-top: 6px; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 860px) {
  .salon-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .section { padding: 56px 0; }
  .gnav { position: fixed; top: 0; right: 0; left: 30%; height: 100vh; height: 100dvh; overflow-y: auto; z-index: 105; background: #fff; transform: translateX(100%); transition: transform .3s; padding: 80px 32px; box-shadow: -10px 0 30px rgba(0,0,0,.1); }
  .gnav.open { transform: translateX(0); }
  .gnav ul { flex-direction: column; gap: 24px; align-items: flex-start; }
  .nav-toggle { display: block; z-index: 110; }
  .salon-grid { grid-template-columns: 1fr; }
  .info-table th { width: 34%; }
  .site-footer .inner { flex-direction: column; gap: 24px; }

  /* ヒーロー スライド①：スマホは縦積み（ロゴ上・コピー下・中央寄せ） */
  .hero { min-height: 82vh; }
  .hero .hero-logo-inner { flex-direction: column-reverse; justify-content: center; text-align: center; gap: 28px; padding: 64px 8vw; }
  .hero .hero-logo-copy { max-width: none; }
  .hero .hero-logo-img { width: 235px; max-width: 64vw; margin-inline: auto; }
}
