/* ============================================
   nail atelier つめくさ（第2版：白×ピンク主役）
   配色：白ベース × くすみピンク ×（よつば緑はワンポイントだけ）
   フォント：見出し Klee One（手書き風）／本文 Noto Sans JP
   ============================================ */

:root {
  --bg: #FFFFFF;         /* 白ベース */
  --bg-soft: #FDF6F7;    /* ごく薄いピンク（帯背景） */
  --ink: #55494C;        /* 本文（ほんのり赤みのチャコール） */
  --pink: #D98A96;       /* 主役のくすみピンク */
  --pink-deep: #C06C7C;  /* 濃いピンク（ボタン・強調） */
  --pink-pale: #F7E3E6;  /* 薄ピンク（線・飾り） */
  --green: #7FA06F;      /* よつば緑＝ワンポイントだけ */
  --line: #EBDFE1;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 70px; }

body {
  font-family: "Noto Sans JP", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.9;
  font-size: 16px;
}

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

.inner { max-width: 960px; margin: 0 auto; padding: 0 20px; }

section { padding: 72px 0; }

.sp-only { display: none; }

/* ---------- ヘッダー ---------- */
.header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1100px; margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 6px;
}
.logo {
  font-family: "Klee One", cursive;
  display: flex; align-items: baseline; gap: 8px;
  color: var(--pink-deep);
}
.logo .clover { width: 26px; height: 26px; align-self: center; color: var(--green); }
.logo-en { font-size: 13px; letter-spacing: 0.12em; }
.logo-ja { font-size: 24px; font-weight: 600; letter-spacing: 0.2em; }
.nav { display: flex; gap: 4px 14px; flex-wrap: wrap; align-items: center; }
.nav a {
  font-size: 13px; text-decoration: none; color: var(--ink);
  letter-spacing: 0.06em; padding: 4px 2px;
}
.nav a:hover { color: var(--pink-deep); }
.nav-cta {
  background: var(--pink-deep); color: #fff !important;
  border-radius: 999px; padding: 6px 18px !important;
}
.nav-cta:hover { opacity: 0.85; }

/* ---------- ヒーロー（白地・左テキスト×右アーチ写真） ---------- */
.hero { padding: 72px 0 64px; position: relative; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px;
  align-items: center; position: relative;
}
.hero-eyebrow {
  font-size: 13px; letter-spacing: 0.08em; color: var(--pink-deep);
  margin-bottom: 14px;
}
.hero-text h1 {
  font-family: "Klee One", cursive;
  font-size: clamp(30px, 4.2vw, 46px); font-weight: 600;
  letter-spacing: 0.12em; line-height: 1.5; color: var(--ink);
  margin-bottom: 20px;
}
.nowrap { white-space: nowrap; }
.hero-lead { font-size: 15px; margin-bottom: 28px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-photo {
  border-radius: 999px 999px 24px 24px;   /* アーチ型 */
  border: 8px solid var(--bg-soft);
  box-shadow: 0 10px 30px rgba(192, 108, 124, 0.18);
  overflow: hidden;                        /* 中の写真がゆっくり動いてもアーチからはみ出さない */
}
.hero-photo img {
  width: 100%; aspect-ratio: 3 / 3.6; object-fit: cover;
  border-radius: inherit;
  animation: hero-zoom 16s ease-in-out infinite alternate;
}
@keyframes hero-zoom {
  from { transform: scale(1); }
  to   { transform: scale(1.07); }
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: inherit; font-size: 15px; letter-spacing: 0.08em;
  border: none; border-radius: 999px;
  transition: opacity 0.2s, transform 0.2s;
}
.btn:hover { opacity: 0.85; transform: translateY(-2px); }
.btn-pink {
  padding: 13px 34px; background: var(--pink-deep); color: #fff; font-weight: 700;
}
.btn-line {
  padding: 12px 30px; background: #fff; color: var(--pink-deep);
  border: 1.5px solid var(--pink); font-weight: 500;
}
.btn-submit {
  padding: 15px 44px; background: var(--pink-deep); color: #fff;
  font-weight: 700; font-size: 16px;
}

/* ---------- お知らせバー ---------- */
.news-bar {
  background: var(--bg-soft); border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line); padding: 12px 0;
}
.news-bar .inner { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.news-label {
  background: var(--pink); color: #fff; font-size: 12px;
  border-radius: 999px; padding: 2px 14px; flex-shrink: 0;
}
.news-item { font-size: 13px; }
.news-item time { color: var(--pink-deep); font-weight: 500; margin-right: 8px; }

/* ---------- 見出し ---------- */
.sec-title {
  font-family: "Klee One", cursive;
  text-align: center; font-size: 26px; font-weight: 600;
  letter-spacing: 0.18em; color: var(--pink-deep);
  margin-bottom: 20px;
}
.sec-title.left { text-align: left; }
.sec-title span { position: relative; padding-bottom: 8px; }
.sec-title span::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  border-bottom: 2px dotted var(--pink);
}
.sec-lead { text-align: center; font-size: 14px; margin-bottom: 36px; }

/* ---------- ギャラリー（主役） ---------- */
.gallery { background: var(--bg); }
.gallery-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto auto;
}
/* 大きい写真は右の2枚に高さを合わせて伸びる＝下端が必ずそろう */
.gallery-grid .g-large { grid-row: 1 / 3; display: flex; flex-direction: column; }
.gallery-grid figure { text-align: center; margin: 0; }
.gallery-grid img {
  border-radius: 18px; object-fit: cover; width: 100%; height: auto;
  box-shadow: 0 4px 18px rgba(85, 73, 76, 0.12);
}
.gallery-grid .g-large img { flex: 1; min-height: 0; }
.gallery-grid figure:not(.g-large) img { aspect-ratio: 16 / 8.6; }
.gallery-grid figcaption { font-size: 13px; margin-top: 10px; }
.gallery-grid .g-large figcaption,
.gallery-grid figure:not(.g-large) figcaption { margin-bottom: 4px; }

/* ---------- 選ばれる理由 ---------- */
.reason { background: var(--bg-soft); }
.reason-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.reason-item { text-align: center; }
.reason-icon {
  width: 72px; height: 72px; margin: 0 auto 14px; font-size: 32px;
  background: #fff; border: 1.5px solid var(--pink-pale); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(192, 108, 124, 0.12);
}
.reason-item h3 { font-size: 16px; margin-bottom: 8px; letter-spacing: 0.04em; }
.reason-item p { font-size: 14px; }

/* ---------- メニュー（一覧表スタイル） ---------- */
.menu-sheet {
  max-width: 680px; margin: 0 auto; background: #fff;
  border: 1.5px solid var(--pink-pale); border-radius: 20px;
  padding: 18px 30px 22px;
}
.menu-list { }
.menu-row {
  display: flex; align-items: baseline; gap: 12px;
  padding: 18px 4px; border-bottom: 1px dashed var(--line);
}
.menu-list .menu-row:last-child { border-bottom: none; }
.menu-row dt { flex: 1; font-weight: 700; font-size: 16px; }
.menu-row dt small { font-weight: 400; font-size: 12px; color: var(--pink-deep); margin-left: 8px; }
.menu-desc { display: block; font-weight: 400; font-size: 13px; margin-top: 2px; }
.menu-row dd { font-size: 20px; font-weight: 700; white-space: nowrap; }
.menu-row.star dt::before { content: "🍀 "; font-size: 14px; }
.menu-note { text-align: center; font-size: 13px; margin-top: 18px; }

/* ---------- はじめての方へ（流れ） ---------- */
.flow { background: var(--bg-soft); }
.flow-steps {
  list-style: none; counter-reset: step;
  max-width: 640px; margin: 0 auto; position: relative;
}
.flow-steps::before {
  content: ""; position: absolute; left: 21px; top: 10px; bottom: 10px;
  border-left: 2px dotted var(--pink);
}
.flow-steps li {
  counter-increment: step; position: relative;
  padding: 0 0 30px 66px;
}
.flow-steps li:last-child { padding-bottom: 0; }
.flow-steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff; border: 1.5px solid var(--pink);
  color: var(--pink-deep); font-family: "Klee One", cursive;
  font-size: 20px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.flow-steps h3 { font-size: 16px; margin-bottom: 4px; }
.flow-steps p { font-size: 14px; }

/* ---------- よくある質問 ---------- */
.faq details {
  max-width: 680px; margin: 0 auto 14px; background: #fff;
  border: 1.5px solid var(--pink-pale); border-radius: 14px;
  padding: 0 22px;
}
.faq summary {
  cursor: pointer; list-style: none; position: relative;
  padding: 16px 34px 16px 0; font-weight: 500; font-size: 15px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q. "; color: var(--pink-deep); font-weight: 700; }
.faq summary::after {
  content: "＋"; position: absolute; right: 2px; top: 16px;
  color: var(--pink); font-weight: 700;
}
.faq details[open] summary::after { content: "－"; }
.faq details p {
  font-size: 14px; padding: 0 0 18px 0; border-top: 1px dashed var(--line);
  padding-top: 12px;
}
.faq details p::before { content: "A. "; color: var(--green); font-weight: 700; }

/* ---------- ネイリスト＋サロン情報 ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.staff-name { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.staff-name span { font-size: 12px; font-weight: 400; color: var(--pink-deep); margin-left: 10px; }
.about-staff p:not(.staff-name) { font-size: 14px; margin-bottom: 0.8em; }
.info-table {
  width: 100%; border-collapse: collapse; background: #fff;
  border: 1.5px solid var(--pink-pale); border-radius: 16px; overflow: hidden;
}
.info-table th, .info-table td {
  padding: 13px 16px; font-size: 14px; text-align: left;
  border-bottom: 1px dashed var(--line); vertical-align: top;
}
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: none; }
.info-table th { width: 100px; color: var(--pink-deep); font-weight: 700; white-space: nowrap; }
.info-table small { color: var(--pink-deep); }

/* ---------- 予約フォーム ---------- */
.reserve { background: var(--bg-soft); }
.reserve-lead { text-align: center; font-size: 14px; margin-bottom: 30px; }
#reserve-form { max-width: 560px; margin: 0 auto; }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.req {
  background: var(--pink-deep); color: #fff; font-size: 11px;
  border-radius: 4px; padding: 1px 8px; margin-left: 8px; font-weight: 400;
}
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 12px 14px; font-size: 16px; font-family: inherit;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  color: var(--ink);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: 2px solid var(--pink); border-color: transparent;
}
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; margin: 22px 0 6px; }
.agree input { margin-top: 5px; }
.form-note { font-size: 12px; color: var(--pink-deep); text-align: center; margin: 14px 0 20px; }
#reserve-form button { display: block; margin: 0 auto; }

/* ---------- フッター ---------- */
.footer {
  background: var(--pink-deep); color: #fff;
  text-align: center; padding: 40px 20px 46px; font-size: 12px;
}
.footer-logo {
  font-family: "Klee One", cursive; font-size: 18px;
  letter-spacing: 0.16em; margin-bottom: 14px;
}
.footer-note { margin-bottom: 6px; }
.footer-credit { opacity: 0.85; margin-bottom: 14px; }
.footer-copy { opacity: 0.85; }

/* ---------- スマホ用の予約固定バー ---------- */
.sp-reserve-bar { display: none; }

/* ============================================
   動き（2026-08-31 追加）
   ・開いた瞬間：ヒーローの文字と写真が順番にふわっと
   ・スクロール：JSが .anim を付けた要素に .is-visible が付くとふわっと表示
   　（JSが無い環境では .anim 自体が付かない＝ぜんぶ普通に見える）
   ============================================ */

/* --- 開いた瞬間のヒーロー --- */
.hero-eyebrow, .hero-text h1, .hero-lead, .hero-btns {
  animation: rise-in 0.9s ease both;
}
.hero-text h1 { animation-delay: 0.12s; }
.hero-lead    { animation-delay: 0.24s; }
.hero-btns    { animation-delay: 0.36s; }
.hero-photo   { animation: photo-in 1.1s ease 0.15s both; }
@keyframes rise-in {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
@keyframes photo-in {
  from { opacity: 0; transform: scale(0.95) translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* --- ヒーロー背景で漂うよつば --- */
.hero-deco { position: absolute; inset: 0; pointer-events: none; }
.deco-clover {
  position: absolute; color: var(--green); opacity: 0.15;
  animation: deco-float 9s ease-in-out infinite alternate;
}
.deco-clover.c1 { width: 46px; height: 46px; left: 3%; top: 14%; }
.deco-clover.c2 {
  width: 66px; height: 66px; right: 2%; bottom: 6%;
  color: var(--pink); animation-duration: 11s; animation-delay: -4s;
}
.deco-clover.c3 { width: 30px; height: 30px; left: 46%; bottom: 8%; animation-duration: 7.5s; animation-delay: -2s; }
@keyframes deco-float {
  from { transform: translateY(0) rotate(-8deg); }
  to   { transform: translateY(-20px) rotate(10deg); }
}

/* --- スクロールでふわっと表示 --- */
.anim {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.anim.is-visible { opacity: 1; transform: none; }

/* 見出しの点線がスッと伸びる */
.sec-title.anim span::after {
  transform: scaleX(0); transform-origin: center;
  transition: transform 0.8s ease 0.4s;
}
.sec-title.anim.is-visible span::after { transform: scaleX(1); }

/* 流れの数字丸がぽんっと出る */
.flow-steps li.anim::before {
  opacity: 0; transform: scale(0.3);
  transition: opacity 0.5s ease 0.25s,
              transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.25s;
}
.flow-steps li.anim.is-visible::before { opacity: 1; transform: scale(1); }

/* --- ギャラリー：マウスでちょっと浮く --- */
.gallery-grid figure { transition: transform 0.35s ease; }
.gallery-grid figure:hover { transform: translateY(-6px); }
.gallery-grid img { transition: box-shadow 0.35s ease; }
.gallery-grid figure:hover img { box-shadow: 0 12px 26px rgba(192, 108, 124, 0.24); }

/* --- 約束のアイコン：マウスでふわっと持ち上がる --- */
.reason-icon { transition: transform 0.35s ease; }
.reason-item:hover .reason-icon { transform: translateY(-6px); }

/* --- よくある質問：答えがふわっと開く --- */
.faq details[open] p { animation: faq-open 0.45s ease; }
@keyframes faq-open {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* --- ヘッダー：スクロールしたらうっすら影 --- */
.header { transition: box-shadow 0.3s ease; }
.header.scrolled { box-shadow: 0 4px 16px rgba(85, 73, 76, 0.10); }

/* スマホの予約バー：下からすっと出てくる（keyframesはメディア外に置く） */
@keyframes bar-up {
  from { transform: translateY(100%); }
  to   { transform: none; }
}

/* --- 「動きを減らす」設定の人にはぜんぶ止める --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .anim,
  .sec-title.anim span::after,
  .flow-steps li.anim::before { opacity: 1 !important; transform: none !important; }
}

/* ---------- スマホ ---------- */
@media (max-width: 720px) {
  section { padding: 52px 0; }
  .sp-only { display: inline; }
  .header-inner { justify-content: center; }
  .nav { justify-content: center; }

  /* スマホは写真を先頭に＝最初の画面で写真＋見出しまで見える */
  .hero { padding: 24px 0 40px; }
  .hero-grid { display: flex; flex-direction: column; gap: 18px; }
  .hero-photo { order: -1; width: 200px; margin: 0 auto; border-width: 6px; }
  .hero-text { text-align: center; }
  .hero-text h1 { font-size: 30px; margin-bottom: 14px; }
  .hero-eyebrow { margin-bottom: 10px; }
  .hero-lead { font-size: 14px; margin-bottom: 20px; text-align: left; }
  .hero-btns { justify-content: center; }

  .gallery-grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .gallery-grid .g-large { grid-row: auto; display: block; } /* 高さ合わせはPCだけ */
  .gallery-grid figure:not(.g-large) img { aspect-ratio: 4 / 3; }
  .gallery-grid .g-large img { aspect-ratio: 4 / 3; }

  .reason-row { grid-template-columns: 1fr; gap: 24px; }
  .menu-sheet { padding: 8px 18px 16px; }
  .menu-row { flex-direction: column; gap: 2px; padding: 14px 2px; }
  .menu-row dd { align-self: flex-end; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-grid .sec-title { text-align: center; }

  /* 下部固定の予約バー（フォームまわりでは押しにくいだけなので常時表示） */
  .sp-reserve-bar {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    background: var(--pink-deep); color: #fff; text-decoration: none;
    text-align: center; padding: 14px 10px; font-size: 15px; font-weight: 700;
    letter-spacing: 0.06em;
    box-shadow: 0 -4px 14px rgba(85, 73, 76, 0.18);
    animation: bar-up 0.6s ease 0.7s both;
  }
  body { padding-bottom: 52px; } /* バーの分だけ余白 */
}
