/* ============================================================
 * Nokoru / alcheminova — Common Stylesheet
 * alcheminova ハウススタイル（親しみやすい・丸み・暖かい）。
 * Nokoru はティール基調 + コーラルのアクセント。
 * ============================================================ */

:root {
  --c-bg:        #f7fbfa;
  --c-bg-alt:    #e9f6f2;
  --c-surface:   #ffffff;
  --c-text:      #16261f;
  --c-text-sub:  #566b63;
  --c-primary:   #0f6e56;   /* Nokoru ティール */
  --c-primary-2: #19a37e;   /* 明るいティール */
  --c-accent:    #ff8a65;   /* コーラル（暖かみ） */
  --c-accent-2:  #ffc15e;   /* アンバー */
  --c-border:    #dceae5;
  --c-success:   #2bb673;
  --c-dark:      #0c3d31;   /* 深いティール（ダーク面） */
  --c-dark-2:    #114f3f;

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(12,40,32,0.05);
  --shadow:    0 8px 24px rgba(12,40,32,0.08);
  --shadow-lg: 0 20px 60px rgba(12,40,32,0.14);

  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN",
               "Noto Sans JP", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, Menlo, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--c-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 22px; }

/* ============================================================
 * Header / Navigation
 * ============================================================ */
header.site-header {
  background: rgba(247,251,250,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
  position: sticky; top: 0; z-index: 100;
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 13px 0;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 18px; color: var(--c-text); letter-spacing: 0.02em;
}
.nav-brand .logo {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-2));
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.nav-right { display: flex; align-items: center; gap: 22px; }
.nav-links { display: flex; gap: 22px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--c-text-sub); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--c-primary); text-decoration: none; }

/* Language toggle */
.lang { display: flex; border: 1px solid var(--c-border); border-radius: var(--radius-pill); overflow: hidden; background: #fff; }
.lang button {
  font: inherit; font-size: 13px; font-weight: 600;
  padding: 6px 13px; background: transparent; border: 0;
  color: var(--c-text-sub); cursor: pointer; transition: all 0.2s;
}
.lang button.on { background: var(--c-primary); color: #fff; }

/* ============================================================
 * Buttons (ピル形状)
 * ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 15px; border: 0; cursor: pointer;
  transition: all 0.2s; text-decoration: none !important;
}
.btn-primary {
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-2));
  color: #fff; box-shadow: 0 6px 16px rgba(15,110,86,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15,110,86,0.4); }
.btn-secondary { background: #fff; color: var(--c-text); border: 2px solid var(--c-border); }
.btn-secondary:hover { border-color: var(--c-primary); color: var(--c-primary); }
.btn-accent {
  background: linear-gradient(135deg, var(--c-accent), var(--c-accent-2));
  color: #fff; box-shadow: 0 6px 16px rgba(255,138,101,0.35);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(255,138,101,0.45); }
.btn-soon { background: rgba(255,255,255,0.9); color: var(--c-primary); border: 2px solid var(--c-primary); cursor: default; }
.btn-soon:hover { transform: none; }

/* ============================================================
 * Hero
 * ============================================================ */
.hero {
  padding: 76px 0 60px;
  background:
    radial-gradient(ellipse at 18% 0%, rgba(25,163,126,0.16), transparent 60%),
    radial-gradient(ellipse at 85% 100%, rgba(255,138,101,0.14), transparent 60%);
  text-align: center; position: relative; overflow: hidden;
}
.hero-icon {
  width: 112px; height: 112px; margin: 0 auto 22px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-2));
  display: flex; align-items: center; justify-content: center; font-size: 52px;
  box-shadow: var(--shadow-lg); animation: float 4s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hero h1 {
  font-size: clamp(30px, 5vw, 50px); font-weight: 800;
  margin: 0 0 16px; letter-spacing: -0.02em; line-height: 1.3;
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-tagline {
  font-size: clamp(16px, 2vw, 20px); color: var(--c-text-sub);
  max-width: 620px; margin: 0 auto 32px; line-height: 1.7;
}
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 34px; }
.hero-badges { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; font-size: 14px; color: var(--c-text-sub); }
.hero-badges span::before { content: "✓"; color: var(--c-success); margin-right: 6px; font-weight: 700; }

/* Phone mock */
.hero-mock { margin: 54px auto 0; width: 300px; max-width: 82%; }
.phone {
  background: linear-gradient(160deg, var(--c-dark), var(--c-dark-2));
  border-radius: 38px; padding: 14px; box-shadow: var(--shadow-lg); position: relative;
}
.phone::before {
  content: ""; position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 86px; height: 6px; border-radius: 99px; background: rgba(255,255,255,0.22); z-index: 2;
}
.phone-screen { background: #fff; border-radius: 26px; overflow: hidden; }
.app-top {
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-2));
  color: #fff; padding: 20px 16px 14px; display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 14px;
}
.app-map {
  height: 168px;
  background:
    radial-gradient(circle at 30% 40%, rgba(25,163,126,0.18), transparent 45%),
    linear-gradient(135deg, #dcefe8, #eef8f4);
  position: relative;
}
.app-map .pin { position: absolute; font-size: 24px; filter: drop-shadow(0 3px 3px rgba(0,0,0,0.18)); }
.app-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 10px; background: #fff; }
.app-thumb {
  aspect-ratio: 1 / 1; border-radius: 10px;
  background: linear-gradient(135deg, #d4ece4, #ffe4d4);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}

/* ============================================================
 * Sections
 * ============================================================ */
section { padding: 80px 0; }
section.alt { background: var(--c-bg-alt); }
.section-head { text-align: center; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(25px, 3.5vw, 36px); font-weight: 800; margin: 0 0 12px; letter-spacing: -0.01em; }
.section-head p { color: var(--c-text-sub); font-size: 17px; margin: 0; }
.eyebrow {
  display: inline-block; background: #fff; border: 1px solid var(--c-border);
  border-radius: var(--radius-pill); padding: 6px 16px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  color: var(--c-primary); margin-bottom: 16px;
}

/* ============================================================
 * How it works (steps)
 * ============================================================ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 880px; margin: 0 auto; }
.step {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 26px 18px; text-align: center; position: relative;
}
.step-num {
  width: 40px; height: 40px; border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-2));
  color: #fff; font-weight: 800; font-size: 17px;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 14px;
}
.step h3 { font-size: 16px; margin: 0 0 4px; font-weight: 700; }
.step p { font-size: 13px; color: var(--c-text-sub); margin: 0; }

/* ============================================================
 * Features grid
 * ============================================================ */
.features { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.feature {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 28px; transition: all 0.25s;
}
.feature:hover { transform: translateY(-4px); border-color: var(--c-primary); box-shadow: var(--shadow); }
.feature-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 16px; font-size: 30px; margin-bottom: 18px;
}
.feature:nth-child(1) .feature-icon { background: #dff3ec; }
.feature:nth-child(2) .feature-icon { background: #fff4d6; }
.feature:nth-child(3) .feature-icon { background: #e0eeff; }
.feature:nth-child(4) .feature-icon { background: #ffe9e0; }
.feature:nth-child(5) .feature-icon { background: #e8e0ff; }
.feature:nth-child(6) .feature-icon { background: #e0f5e6; }
.feature h3 { font-size: 19px; margin: 0 0 10px; font-weight: 700; }
.feature p { color: var(--c-text-sub); margin: 0; font-size: 15px; }

/* ============================================================
 * Privacy callout (dark)
 * ============================================================ */
.callout {
  background: linear-gradient(135deg, var(--c-dark) 0%, var(--c-dark-2) 100%);
  color: #fff; border-radius: var(--radius-lg); padding: 56px;
  text-align: center; position: relative; overflow: hidden;
}
.callout::before {
  content: "🔒"; position: absolute; font-size: 200px; opacity: 0.06;
  right: -20px; bottom: -50px; transform: rotate(-12deg);
}
.callout .eyebrow { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.2); color: #fff; }
.callout h2 { font-size: clamp(24px, 3.5vw, 34px); margin: 0 0 16px; position: relative; }
.callout p { font-size: 17px; margin: 0 auto; max-width: 620px; opacity: 0.92; position: relative; line-height: 1.8; }

/* ============================================================
 * FAQ
 * ============================================================ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.faq-item summary {
  padding: 20px 24px; font-weight: 600; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 24px; color: var(--c-primary); transition: transform 0.2s; flex-shrink: 0; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 24px 20px; margin: 0; color: var(--c-text-sub); }

/* ============================================================
 * Closing CTA
 * ============================================================ */
.cta-final { text-align: center; }
.cta-final h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 800; margin: 0 0 14px; letter-spacing: -0.01em; }
.cta-final p { color: var(--c-text-sub); font-size: 17px; max-width: 560px; margin: 0 auto 28px; }

/* ============================================================
 * Footer
 * ============================================================ */
footer.site-footer { background: var(--c-dark); color: #a9c4ba; padding: 56px 0 28px; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1.4fr 1fr 1fr 1fr; margin-bottom: 36px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand .logo {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--c-primary-2), var(--c-accent));
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.footer-brand strong { color: #fff; font-size: 17px; letter-spacing: 0.02em; }
.footer-tagline { font-size: 14px; margin: 0; line-height: 1.7; color: #8fb0a5; max-width: 240px; }
.footer-col h4 { color: #fff; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #a9c4ba; font-size: 14px; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); padding-top: 22px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; font-size: 13px; color: #6f9085;
}
.footer-bottom .heart { color: var(--c-accent); }

/* ============================================================
 * Legal pages (privacy / terms)
 * ============================================================ */
.legal { max-width: 760px; margin: 0 auto; padding: 56px 22px 72px; }
.legal h1 { font-size: clamp(26px, 4vw, 34px); font-weight: 800; margin: 0 0 6px; letter-spacing: -0.01em; }
.legal .updated { color: var(--c-text-sub); font-size: 14px; margin: 0 0 36px; }
.legal h2 { font-size: 19px; font-weight: 700; margin: 36px 0 12px; }
.legal p, .legal li { color: var(--c-text-sub); font-size: 15px; line-height: 1.85; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--c-primary); }
.legal .back { display: inline-block; margin-top: 40px; font-size: 14px; font-weight: 600; }
.legal .back-top { display: inline-block; margin-bottom: 22px; font-size: 14px; font-weight: 600; }
.legal .note {
  background: #fff4e0; border: 1px solid #ffe0b3; border-radius: var(--radius-sm);
  padding: 12px 16px; font-size: 13px; color: #8a5a12; margin: 18px 0;
}

/* ============================================================
 * Responsive
 * ============================================================ */
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  section { padding: 60px 0; }
  .hero { padding: 56px 0 44px; }
  .hero-icon { width: 92px; height: 92px; font-size: 44px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .callout { padding: 40px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 420px) {
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
