/* ──────────────────────────────────────────────
   Nail Salon Note — 公式サービスサイト
   ────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700;800&display=swap');

:root {
  --bg:             #ffffff;
  --bg-sub:         #faf8f9;
  --surface:        #ffffff;
  --surface-soft:   #fdf6f8;
  --text:           #24202a;
  --text-secondary: #5c5462;
  --muted:          #8e8494;
  --primary:        #a0596e;
  --primary-light:  #c4899a;
  --primary-strong: #7e3f54;
  --primary-bg:     #f8eaef;
  --accent:         #b89585;
  --border:         #ebe4e7;
  --border-strong:  #d9ced3;
  --shadow-xs:      0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm:      0 1px 4px rgba(0, 0, 0, 0.06);
  --shadow:         0 4px 20px rgba(0, 0, 0, 0.07);
  --shadow-lg:      0 8px 30px rgba(0, 0, 0, 0.09);
  --radius:         12px;
  --radius-sm:      8px;
  --radius-pill:    999px;
  --max-width:      960px;
}

/* ── Reset ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; }

body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary-strong);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: var(--primary); text-decoration: underline; }

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

/* ── Layout ────────────────────────────────── */
.container {
  width: min(var(--max-width), 88%);
  margin: 0 auto;
}

/* ── Header ────────────────────────────────── */
.header-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

/* container の中にある場合 */
header.container.header-nav {
  width: min(var(--max-width), 88%);
  margin: 0 auto;
}

/* container 無しの場合（全幅 → 内部を制約） */
header.header-nav:not(.container) {
  width: min(var(--max-width), 88%);
  margin: 0 auto;
}

.brand {
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary-strong);
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Nav toggle (モバイル用) ───────────────── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
  flex-direction: column;
  gap: 4px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.header-nav.open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.header-nav.open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
.header-nav.open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-links {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.15s ease;
}
.nav-links a:hover {
  background: var(--primary-bg);
  color: var(--primary-strong);
  text-decoration: none;
}

/* ── Hero (紹介ページ) ────────────────────── */
.hero {
  padding: 72px 0 64px;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 56px 48px 48px;
  position: relative;
}
.hero-card::before { display: none; }

.badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: var(--primary-bg);
  color: var(--primary-strong);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

h1, h2, h3 { margin: 0; line-height: 1.4; }

h1 {
  margin-top: 20px;
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.lead {
  margin-top: 20px;
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.9;
  max-width: 580px;
}

.actions {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Buttons ───────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: var(--radius-sm);
  padding: 12px 24px;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none !important;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--primary-strong);
  box-shadow: var(--shadow);
  color: #fff;
  transform: translateY(-1px);
}

.btn-secondary {
  border-color: var(--border-strong);
  background: var(--surface);
  color: var(--text);
}
.btn-secondary:hover {
  background: var(--surface-soft);
  border-color: var(--primary-light);
}

/* ── Section ───────────────────────────────── */
.section {
  margin: 56px 0 0;
}

.section > h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0;
  margin-bottom: 4px;
}

.section-sub {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 24px;
}

/* ── Grid / Panels ─────────────────────────── */
.grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}
.panel:hover {
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
}

.panel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--primary-bg);
  color: var(--primary);
  font-size: 1.15rem;
  margin-bottom: 14px;
}

.panel h3 {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text);
}

.panel p {
  margin: 8px 0 0;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.75;
}

/* ── Feature list (紹介ページ用) ────────── */
.feature-list {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature-item:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--border-strong);
}

.feature-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--primary-bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.feature-text h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.feature-text p {
  margin: 4px 0 0;
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Plan cards (紹介ページ用) ────────────── */
.plan-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.plan-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.plan-card:hover {
  box-shadow: var(--shadow);
}
.plan-card.featured {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 1px var(--primary-light), var(--shadow-sm);
}

.plan-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.plan-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.plan-price {
  margin: 8px 0 16px;
  font-size: 0.88rem;
  color: var(--muted);
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}
.plan-features li {
  padding: 5px 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.plan-features li::before {
  content: '\2713';
  color: var(--primary);
  font-weight: 700;
  font-size: 0.8rem;
}

/* ── CTA Section ───────────────────────────── */
.cta-section {
  margin: 64px 0 0;
  text-align: center;
  padding: 48px 32px;
  background: var(--bg-sub);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.cta-section h2 {
  font-size: 1.2rem;
  font-weight: 700;
}
.cta-section p {
  margin: 8px 0 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.cta-section .actions {
  justify-content: center;
}

/* ── Document pages (利用規約・ポリシー) ──── */
.doc {
  padding: 48px 0 80px;
}

.doc-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 48px 44px;
}

.doc-head {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.doc-title {
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0;
  color: var(--text);
}

.doc-date {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.doc section {
  margin-top: 36px;
}

.doc h2 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--primary-strong);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-bg);
  display: inline-block;
  margin-bottom: 8px;
}

.doc h3 {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 20px;
  margin-bottom: 4px;
}

.doc p, .doc li {
  margin: 10px 0 0;
  font-size: 0.9rem;
  line-height: 1.9;
  color: var(--text-secondary);
}

.doc ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.doc li {
  margin: 6px 0;
}

.doc strong {
  color: var(--text);
  font-weight: 600;
}

/* Table in docs */
.doc table {
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
  font-size: 0.86rem;
}
.doc th, .doc td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.doc th {
  background: var(--bg-sub);
  font-weight: 600;
  color: var(--text);
  font-size: 0.84rem;
}
.doc td {
  color: var(--text-secondary);
}

/* ── Footer ────────────────────────────────── */
.footer {
  margin-top: 0;
  padding: 24px 0;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
  letter-spacing: 0.02em;
  border-top: 1px solid var(--border);
}

/* ── Responsive ────────────────────────────── */
@media (max-width: 860px) {
  .grid, .plan-grid { grid-template-columns: 1fr 1fr; }
  .feature-list { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero { padding: 40px 0 36px; }
  .hero-card { padding: 32px 24px 28px; }
  .grid, .plan-grid { grid-template-columns: 1fr; }
  .doc-card { padding: 28px 20px; }
  .cta-section { padding: 32px 20px; }

  /* トグルメニュー（トグルボタンがあるページのみ） */
  .nav-toggle { display: flex; }
  .nav-toggle ~ .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--border);
    padding-top: 8px;
    margin-top: 4px;
  }
  .nav-toggle ~ .nav-links a {
    padding: 10px 0;
    font-size: 0.86rem;
    border-radius: 0;
  }
  .header-nav {
    flex-wrap: wrap;
  }
  .header-nav.open .nav-toggle ~ .nav-links {
    display: flex;
  }

  /* トグルなしページのナビリンク調整 */
  .nav-links a { padding: 5px 10px; font-size: 0.8rem; }
}
