/* ==========================================
   Arealise Landing Page
   Brand: Echo Spiral / Warm Palette
   （Seekalise landing/styles.css のトークン・構造に準拠）
   ========================================== */

:root {
  --font-main: 'Zen Maru Gothic', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  --font-logo: 'Outfit', 'Georgia', serif;

  --bg-darkest: #e8ded0;
  --bg-app: #fdfbf7;
  --bg-pane: #f5efe6;
  --bg-card: #ffffff;
  --bg-active: #eae0d0;

  --border-color: #dcd1bf;
  --border-light: #c8baa4;

  --text-main: #2c2a29;
  --text-muted: #665e56;
  --text-dark: #8c8275;

  --primary: #d96b43;
  --primary-hover: #c25947;
  --primary-glow: rgba(217, 107, 67, 0.18);

  --accent-mustard: #e5a93c;
  --accent-sage: #4a6b5d;
  --accent-terracotta: #c25947;

  --shadow-hard: 3px 3px 0 var(--border-light);
  --shadow-soft: 0 10px 30px rgba(44, 42, 41, 0.08);
  --radius: 12px;
  --wrap: 1120px;
}

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

[hidden] {
  display: none !important;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-app);
  color: var(--text-main);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--text-main);
  color: #fff;
  padding: 10px 16px;
  z-index: 3000;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 2000;
  background: rgba(253, 251, 247, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--border-color);
  box-shadow: 0 2px 12px rgba(44, 42, 41, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  flex-shrink: 0;
}

.brand-text {
  font-family: var(--font-logo);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.site-nav a:hover {
  color: var(--primary);
}

.site-nav .nav-cta {
  background: var(--primary);
  color: #fff;
  padding: 9px 18px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-hard);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.site-nav .nav-cta:hover {
  color: #fff;
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 var(--border-light);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-main);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-hard);
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: #fff;
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--border-light);
}

.btn-ghost {
  background: var(--bg-card);
  color: var(--text-main);
  box-shadow: var(--shadow-hard);
}

.btn-ghost:hover {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--border-light);
}

.btn-lg {
  font-size: 16px;
  padding: 16px 34px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 84px;
  background:
    radial-gradient(1100px 460px at 78% -8%, var(--primary-glow), transparent 60%),
    linear-gradient(180deg, var(--bg-pane), var(--bg-app));
  border-bottom: 1px solid var(--border-color);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-kicker {
  font-family: var(--font-logo);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 18px;
}

.hero-copy h1 {
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.3rem);
  line-height: 1.4;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}

.hero-copy h1 .hero-subtag {
  display: block;
  margin-top: 12px;
  font-size: clamp(1rem, 2.4vw, 1.4rem);
  font-weight: 700;
  color: var(--text-muted);
}

.lead {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 30px;
  max-width: 34em;
}

.lead strong {
  color: var(--text-main);
  border-bottom: 2px solid var(--accent-mustard);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.hero-note {
  font-size: 13px;
  color: var(--text-dark);
}

/* Hero visual: voice memo card */
.hero-visual {
  display: flex;
  justify-content: center;
}

.memo-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 24px;
  transform: rotate(-1.2deg);
}

.memo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.memo-date {
  font-size: 12px;
  color: var(--text-dark);
}

.memo-tag {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--accent-sage);
  border-radius: 999px;
  padding: 2px 10px;
}

.memo-wave {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 40px;
  margin-bottom: 18px;
}

.memo-wave span {
  flex: 1;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--primary), var(--accent-mustard));
}

.memo-wave span:nth-child(1) { height: 40%; }
.memo-wave span:nth-child(2) { height: 70%; }
.memo-wave span:nth-child(3) { height: 100%; }
.memo-wave span:nth-child(4) { height: 55%; }
.memo-wave span:nth-child(5) { height: 85%; }
.memo-wave span:nth-child(6) { height: 45%; }
.memo-wave span:nth-child(7) { height: 65%; }

.memo-summary {
  font-size: 14px;
  color: var(--text-main);
  margin-bottom: 18px;
  line-height: 1.75;
}

.memo-link {
  background: var(--bg-pane);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 14px;
}

.link-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent-sage);
  margin-bottom: 6px;
}

.memo-link p {
  font-size: 13.5px;
  color: var(--text-muted);
}

/* ---------- Sections ---------- */
.section {
  padding: 84px 0;
}

.section-alt {
  background: var(--bg-pane);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-title {
  font-weight: 700;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  line-height: 1.5;
  margin-bottom: 22px;
}

.section-title.center {
  text-align: center;
}

.section-lead {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 40em;
}

.section-lead.center {
  margin: 0 auto 8px;
  text-align: center;
}

/* ---------- Flow (はなす→のこる→つながる→たずねる) ---------- */
.flow-wrap {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.flow {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow-soft);
}

.flow-node {
  font-weight: 700;
  font-size: 15px;
  padding: 12px 20px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  background: var(--bg-pane);
}

.flow-a {
  background: var(--primary);
  color: #fff;
}

.flow-b {
  background: var(--accent-terracotta);
  color: #fff;
}

.flow-c {
  background: var(--accent-sage);
  color: #fff;
}

.flow-d {
  background: var(--accent-mustard);
  color: var(--text-main);
}

.flow-arrow {
  color: var(--text-dark);
  font-weight: 700;
}

.flow-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.flow-detail {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow-hard);
}

.flow-detail-num {
  font-family: var(--font-logo);
  font-size: 24px;
  font-weight: 700;
  color: var(--accent-mustard);
  display: block;
  margin-bottom: 8px;
}

.flow-detail p {
  font-size: 14px;
  color: var(--text-muted);
}

.flow-detail strong {
  color: var(--text-main);
}

/* ---------- Features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 46px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow-hard);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.feature-card:hover {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--border-light);
}

.feature-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--primary-glow);
  color: var(--primary);
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ---------- 昔の自分に聞く ---------- */
.section-ask {
  background:
    radial-gradient(900px 380px at 12% 0%, var(--primary-glow), transparent 60%),
    var(--bg-app);
}

.ask-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.check-list {
  list-style: none;
  margin-top: 22px;
  display: grid;
  gap: 12px;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  font-size: 15px;
  color: var(--text-main);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-sage);
}

.check-list li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 12px;
  width: 5px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(42deg);
}

.ask-visual {
  display: flex;
  justify-content: center;
}

.chat {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 22px;
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 420px;
}

.chat-msg {
  font-size: 14px;
  padding: 12px 15px;
  border-radius: 12px;
  max-width: 88%;
}

.chat-msg.user {
  justify-self: end;
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-msg.bot {
  justify-self: start;
  background: var(--bg-pane);
  border: 1px solid var(--border-color);
  border-bottom-left-radius: 4px;
}

.bot-name {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--accent-sage);
  margin-bottom: 4px;
}

/* ---------- CTA ---------- */
.section-cta {
  background: var(--bg-darkest);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.cta-inner {
  text-align: center;
  display: grid;
  gap: 18px;
  justify-items: center;
}

.cta-inner .section-lead {
  text-align: center;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-pane);
  padding: 54px 0 30px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 8px 10px;
}

.footer-brand .brand-text {
  font-family: var(--font-logo);
  font-size: 20px;
  font-weight: 600;
}

.footer-tagline {
  grid-column: 1 / -1;
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-content: flex-start;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-legal {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-legal p {
  font-size: 12.5px;
  color: var(--text-dark);
}

/* ---------- Utilities ---------- */
.sp-only {
  display: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid,
  .ask-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .flow-detail-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .site-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-app);
    border-bottom: 1px solid var(--border-color);
    padding: 8px 24px 20px;
    display: none;
    box-shadow: var(--shadow-soft);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
  }

  .site-nav .nav-cta {
    text-align: center;
    margin-top: 12px;
    border-bottom: 1px solid var(--border-light);
  }

  .nav-toggle {
    display: flex;
  }

  .section {
    padding: 60px 0;
  }

  .hero {
    padding: 48px 0 60px;
  }

  .flow-detail-grid {
    grid-template-columns: 1fr;
  }

  .sp-only {
    display: inline;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
