/* =====================================================
   しょじょ卒 - Design System
   Mobile-first / iPhone optimized
   ===================================================== */

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

/* ---- Variables ---- */
:root {
  --rose:       #C4717A;
  --rose-light: #F5E8E9;
  --rose-dark:  #A05560;
  --cream:      #FEFAF9;
  --warm-white: #FFFFFF;
  --charcoal:   #2D2020;
  --gray:       #7A6A6A;
  --gray-light: #F0EBEA;
  --border:     #E8DEDE;

  --font-sans:  'Noto Sans JP', sans-serif;
  --font-serif: 'Noto Serif JP', serif;

  --radius:     12px;
  --radius-sm:  8px;
  --shadow:     0 2px 16px rgba(45,32,32,.08);
  --shadow-lg:  0 8px 40px rgba(45,32,32,.12);

  --max-w:      640px;
  --px:         20px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rose-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* ---- Layout ---- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
}

section { padding: 56px 0; }
section:nth-child(even) { background: var(--warm-white); }

/* ---- Typography ---- */
h1 { font-size: 1.75rem; font-weight: 700; line-height: 1.4; }
h2 { font-size: 1.375rem; font-weight: 700; line-height: 1.4; }
h3 { font-size: 1.125rem; font-weight: 700; line-height: 1.4; }
p  { font-size: 0.9375rem; line-height: 1.85; color: var(--charcoal); }

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}
.section-sub {
  font-size: 0.8125rem;
  color: var(--gray);
  text-align: center;
  margin-bottom: 36px;
  letter-spacing: 0.06em;
}
.section-title::after {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--rose);
  margin: 10px auto 0;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 0.9375rem;
  font-weight: 700;
  font-family: var(--font-sans);
  cursor: pointer;
  border: none;
  transition: all .2s;
  text-decoration: none;
  letter-spacing: 0.04em;
}
.btn-primary {
  background: var(--rose);
  color: #fff;
  box-shadow: 0 4px 16px rgba(196,113,122,.35);
}
.btn-primary:hover { background: var(--rose-dark); text-decoration: none; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--rose);
  border: 2px solid var(--rose);
}
.btn-outline:hover { background: var(--rose-light); text-decoration: none; }
.btn-lg { padding: 17px 36px; font-size: 1rem; }
.btn-full { width: 100%; }

/* ---- Header / Nav ---- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(254,250,249,.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 var(--px);
  max-width: var(--max-w);
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.logo-mark {
  width: 32px;
  height: 32px;
}
.logo-text {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: 0.02em;
}
.logo-text span { color: var(--rose); }

/* Hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: all .25s;
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Drawer */
.nav-drawer {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--cream);
  z-index: 99;
  padding: 24px var(--px);
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
}
.nav-drawer.open { transform: translateX(0); }
.nav-drawer a {
  display: block;
  padding: 14px 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--charcoal);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}
.nav-drawer a:last-child { border-bottom: none; }
.nav-drawer .nav-cta {
  margin-top: 24px;
}

/* ---- Hero ---- */
.hero {
  background: linear-gradient(160deg, var(--rose-light) 0%, var(--cream) 60%);
  padding: 48px var(--px) 56px;
  text-align: center;
}
.hero-badge {
  display: inline-block;
  background: var(--rose);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
  letter-spacing: 0.06em;
}
.hero h1 {
  font-size: 1.625rem;
  line-height: 1.5;
  margin-bottom: 16px;
  color: var(--charcoal);
}
.hero h1 em {
  font-style: normal;
  color: var(--rose);
}
.hero-lead {
  font-size: 0.9375rem;
  color: var(--gray);
  margin-bottom: 32px;
  line-height: 1.85;
}
.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.hero-note {
  font-size: 0.75rem;
  color: var(--gray);
  margin-top: 12px;
}

/* ---- Trust Bar ---- */
.trust-bar {
  background: var(--charcoal);
  padding: 20px var(--px);
}
.trust-bar-inner {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  max-width: var(--max-w);
  margin: 0 auto;
}
.trust-item {
  text-align: center;
  color: #fff;
}
.trust-num {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--rose-light);
  font-family: var(--font-serif);
  line-height: 1;
}
.trust-label {
  display: block;
  font-size: 0.6875rem;
  opacity: .75;
  margin-top: 4px;
  letter-spacing: 0.04em;
}

/* ---- Feature Cards ---- */
.feature-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.feature-card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: var(--shadow);
}
.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--rose-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
}
.feature-body h3 { font-size: 0.9375rem; margin-bottom: 6px; }
.feature-body p  { font-size: 0.8125rem; color: var(--gray); line-height: 1.7; }

/* ---- Flow Steps ---- */
.flow-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.flow-list::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: var(--border);
}
.flow-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 0;
  position: relative;
}
.flow-num {
  width: 40px;
  height: 40px;
  background: var(--rose);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  flex-shrink: 0;
  z-index: 1;
}
.flow-body h3 { font-size: 0.9375rem; margin-bottom: 4px; padding-top: 10px; }
.flow-body p  { font-size: 0.8125rem; color: var(--gray); line-height: 1.7; }

/* ---- Voice Cards ---- */
.voice-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.voice-card {
  background: var(--warm-white);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.voice-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.voice-avatar {
  width: 36px;
  height: 36px;
  background: var(--rose-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.voice-name {
  font-size: 0.8125rem;
  font-weight: 700;
}
.voice-tag {
  font-size: 0.6875rem;
  color: var(--rose);
  background: var(--rose-light);
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: auto;
}
.voice-text {
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--charcoal);
}
.voice-text::before { content: '「'; }
.voice-text::after  { content: '」'; }

/* ---- FAQ ---- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faq-item {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 16px 20px;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 700;
  font-family: var(--font-sans);
  color: var(--charcoal);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}
.faq-q::before {
  content: 'Q';
  color: var(--rose);
  font-weight: 700;
  flex-shrink: 0;
}
.faq-q .arrow {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--gray);
  transition: transform .2s;
}
.faq-item.open .faq-q .arrow { transform: rotate(180deg); }
.faq-a {
  display: none;
  padding: 0 20px 16px 44px;
  font-size: 0.875rem;
  color: var(--gray);
  line-height: 1.8;
}
.faq-item.open .faq-a { display: block; }

/* ---- CTA Banner ---- */
.cta-banner {
  background: linear-gradient(135deg, var(--rose) 0%, var(--rose-dark) 100%);
  padding: 48px var(--px);
  text-align: center;
}
.cta-banner h2 {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 12px;
  line-height: 1.6;
}
.cta-banner p {
  color: rgba(255,255,255,.85);
  font-size: 0.875rem;
  margin-bottom: 28px;
}
.btn-white {
  background: #fff;
  color: var(--rose);
  font-weight: 700;
}
.btn-white:hover { background: var(--rose-light); text-decoration: none; }

/* ---- Area / Tag Links ---- */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8125rem;
  background: var(--warm-white);
  border: 1px solid var(--border);
  color: var(--charcoal);
  text-decoration: none;
  transition: all .15s;
}
.tag:hover { background: var(--rose-light); border-color: var(--rose); color: var(--rose-dark); text-decoration: none; }

/* ---- Footer ---- */
.footer {
  background: var(--charcoal);
  color: rgba(255,255,255,.65);
  padding: 40px var(--px) 28px;
}
.footer-logo {
  text-align: center;
  margin-bottom: 24px;
}
.footer-logo .logo-text { color: #fff; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  justify-content: center;
  margin-bottom: 24px;
}
.footer-nav a {
  font-size: 0.8125rem;
  color: rgba(255,255,255,.65);
  text-decoration: none;
}
.footer-nav a:hover { color: #fff; }
.footer-copy {
  text-align: center;
  font-size: 0.75rem;
  opacity: .5;
}

/* ---- Utilities ---- */
.text-center { text-align: center; }
.text-rose   { color: var(--rose); }
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

/* ---- Page specific ---- */
.page-hero {
  background: linear-gradient(160deg, var(--rose-light) 0%, var(--cream) 70%);
  padding: 40px var(--px) 32px;
  text-align: center;
}
.page-hero h1 {
  font-size: 1.375rem;
  margin-bottom: 8px;
}
.page-hero p {
  font-size: 0.875rem;
  color: var(--gray);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--gray);
  padding: 12px var(--px);
  max-width: var(--max-w);
  margin: 0 auto;
}
.breadcrumb a { color: var(--gray); text-decoration: none; }
.breadcrumb a:hover { color: var(--rose); }
.breadcrumb-sep { opacity: .4; }

/* ---- Article content ---- */
.article-body h2 {
  font-size: 1.125rem;
  margin: 32px 0 12px;
  padding-left: 12px;
  border-left: 3px solid var(--rose);
}
.article-body h3 {
  font-size: 1rem;
  margin: 24px 0 8px;
  color: var(--rose-dark);
}
.article-body p {
  margin-bottom: 16px;
  font-size: 0.9375rem;
}
.article-body ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 16px;
  font-size: 0.9375rem;
}
.article-body ul li { margin-bottom: 6px; }

/* Sticky CTA (mobile) */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 12px var(--px) calc(12px + env(safe-area-inset-bottom));
  background: rgba(254,250,249,.97);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

/* ---- Tablet + ---- */
@media (min-width: 640px) {
  .feature-grid { flex-direction: row; flex-wrap: wrap; }
  .feature-card { flex: 1 1 calc(50% - 8px); }
  .hero h1 { font-size: 2rem; }
}
