:root {
  --bg: #fffaf7;
  --surface: #ffffff;
  --surface-soft: #fff4ee;
  --surface-muted: #fff7f2;
  --text: #1f1a17;
  --text-soft: #372f2b;
  --muted: #6d625c;
  --border: #eadbd2;
  --border-strong: #dcc7ba;

  --primary: #7a1f2b;
  --primary-dark: #5f1520;
  --primary-soft: #f8e6ea;

  --secondary: #f3e7df;
  --secondary-text: #473a34;

  --danger: #b42318;
  --danger-dark: #8f1c13;
  --danger-soft: #fff5f4;

  --shadow-xs: 0 2px 8px rgba(36, 22, 15, 0.04);
  --shadow-sm: 0 6px 18px rgba(36, 22, 15, 0.06);
  --shadow-md: 0 10px 30px rgba(36, 22, 15, 0.08);
  --shadow-lg: 0 14px 36px rgba(36, 22, 15, 0.12);

  --radius-xs: 10px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.25rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;

  --container: 1160px;
  --transition-fast: 0.18s ease;
  --transition: 0.25s ease;
}

/* =========================
   RESET / BASE
========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition), background-color var(--transition),
    border-color var(--transition), opacity var(--transition),
    transform var(--transition), box-shadow var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

p,
ul,
ol {
  margin-top: 0;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.16;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  margin-bottom: 0.85rem;
}

h3 {
  font-size: 1.22rem;
  margin-bottom: 0.6rem;
}

:focus-visible {
  outline: 3px solid rgba(122, 31, 43, 0.22);
  outline-offset: 2px;
  border-radius: 6px;
}

/* =========================
   LAYOUT / UTILITIES
========================= */

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.section {
  padding: var(--space-8) 0;
}

.section-tight {
  padding-top: 1rem;
}

.center {
  text-align: center;
}

.max-text {
  max-width: 760px;
  margin-inline: auto;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.92rem;
  color: var(--muted);
}

.spacer-lg {
  margin-top: 1.75rem;
}

.content-flow > * + * {
  margin-top: 0.95rem;
}

.section-title {
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: var(--muted);
  max-width: 760px;
  margin-inline: auto;
}

/* =========================
   INSTALL BANNER
========================= */

.install-banner {
  position: relative;
  width: 100%;
  z-index: 1200;
  background: rgba(255, 250, 247, 0.98);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.install-banner[hidden],
.install-banner.is-hidden {
  display: none !important;
}

.install-banner-inner {
  width: min(100% - 1rem, var(--container));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
}

.install-text {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.35;
  min-width: 0;
}

.install-btn,
.close-install-banner {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  box-shadow: var(--shadow-xs);
}

.install-btn {
  padding: 0.65rem 0.95rem;
  font-weight: 700;
  min-height: 44px;
  white-space: nowrap;
}

.close-install-banner {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  flex: 0 0 auto;
  font-size: 1.05rem;
}

.install-btn:hover,
.close-install-banner:hover {
  background: var(--surface-soft);
}

/* =========================
   HEADER
========================= */

.site-header {
  position: relative;
  z-index: 1000;
  background: rgba(255, 250, 247, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(234, 219, 210, 0.9);
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 76px;
  position: relative;
}

.logo {
  font-weight: 800;
  font-size: 1.08rem;
  color: var(--text);
  letter-spacing: -0.02em;
  white-space: nowrap;
  min-width: 0;
}

.logo:hover {
  color: var(--text);
  opacity: 0.88;
}

.header-controls {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  z-index: 1002;
  min-width: 0;
}

.site-header .header-cta {
  display: none;
}

/* =========================
   LANGUAGE TOGGLE
========================= */

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.42rem 0.72rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  white-space: nowrap;
  max-width: 100%;
}

.lang-link {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--secondary-text);
  padding: 0.08rem 0.15rem;
  border-radius: var(--radius-pill);
}

.lang-link:hover {
  color: var(--primary);
}

.lang-link.active,
.lang-link[aria-current="true"] {
  color: var(--primary);
}

.lang-separator {
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-language-toggle {
  margin-top: 0.25rem;
}

/* =========================
   MENU TOGGLE
========================= */

.menu-toggle {
  display: none;
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius-sm);
  width: 46px;
  height: 46px;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  flex: 0 0 auto;
}

.menu-toggle:hover {
  background: var(--surface-muted);
}

/* =========================
   NAVIGATION
========================= */

.site-nav {
  margin-left: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--secondary-text);
  font-weight: 600;
  position: relative;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--primary);
}

/* =========================
   HERO
========================= */

.hero {
  padding: 4.5rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.85fr;
  gap: 1.75rem;
  align-items: start;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid #efd1d8;
  padding: 0.42rem 0.78rem;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 700;
}

.hero-copy p {
  font-size: 1.03rem;
  color: var(--text-soft);
  max-width: 42rem;
}

.hero-panel {
  padding: 1.4rem;
  background: linear-gradient(180deg, #fffefe 0%, #fff8f3 100%);
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
}

/* =========================
   SURFACES / CARDS
========================= */

.hero-panel,
.card,
.warning-box,
.callout,
.lang-block > div {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.card {
  padding: 1.45rem;
}

.warning-box {
  padding: 1.45rem;
  background: var(--danger-soft);
  border-color: #f3c7c2;
}

.callout {
  padding: 0.95rem 1.05rem;
  background: var(--surface-soft);
  border-radius: var(--radius-md);
  box-shadow: none;
}

/* =========================
   GRIDS
========================= */

.grid-2,
.grid-3 {
  display: grid;
  gap: 1.35rem;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* =========================
   LISTS
========================= */

.clean-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.clean-list li + li {
  margin-top: 0.8rem;
}

.clean-list a {
  display: block;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--text);
}

.clean-list a:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

/* =========================
   LANGUAGE BLOCK
========================= */

.lang-block {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
}

.lang-block > div {
  padding: 1.4rem;
}

.lang-tag {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid #efd1d8;
  padding: 0.34rem 0.68rem;
  border-radius: var(--radius-pill);
}

/* =========================
   BUTTONS
========================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.84rem 1.2rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  box-shadow: none;
  transition: transform var(--transition-fast),
    background-color var(--transition), color var(--transition),
    border-color var(--transition), box-shadow var(--transition);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
}

.btn-secondary {
  background: var(--secondary);
  color: var(--secondary-text);
  border-color: #e8d6cb;
}

.btn-secondary:hover {
  background: #ebddd5;
  color: var(--secondary-text);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
  box-shadow: 0 8px 18px rgba(180, 35, 24, 0.16);
}

.btn-danger:hover {
  background: var(--danger-dark);
  color: #fff;
  box-shadow: 0 10px 22px rgba(143, 28, 19, 0.2);
}

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  border: none;
  box-shadow: 0 8px 18px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
  background: #1ebe5d;
  color: #fff;
  box-shadow: 0 10px 22px rgba(30, 190, 93, 0.3);
}

.btn-line {
  background: #06C755;
  color: #fff;
  border: none;
  box-shadow: 0 8px 18px rgba(6, 199, 85, 0.25);
}

.btn-line:hover {
  background: #05b34f;
  color: #fff;
  box-shadow: 0 10px 22px rgba(5, 179, 79, 0.3);
}

/* =========================
   FOOTER
========================= */

.site-footer {
  padding: 2.75rem 0;
  background: #fff7f3;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: grid;
  gap: 1rem;
  justify-items: center;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 0.95rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--secondary-text);
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--primary);
}

/* =========================
   REVEAL ANIMATION
========================= */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   TABLET
========================= */

@media (max-width: 980px) {
  .hero-grid,
  .grid-2,
  .grid-3,
  .lang-block {
    grid-template-columns: 1fr;
  }

  .site-nav {
    gap: 0.9rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .hero {
    padding: 4rem 0 3rem;
  }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 760px) {
  .install-banner-inner {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "text text"
      "button close";
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 0;
  }

  .install-text {
    grid-area: text;
    font-size: 0.9rem;
  }

  .install-btn {
    grid-area: button;
    width: 100%;
    justify-content: center;
  }

  .close-install-banner {
    grid-area: close;
  }

  .nav-wrap {
    flex-wrap: nowrap;
    align-items: center;
    min-height: 70px;
    padding: 0.7rem 0;
    gap: 0.6rem;
  }

  .logo {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 46vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1rem;
  }

  .header-controls {
    flex: 0 0 auto;
    gap: 0.45rem;
    min-width: 0;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: auto;
    width: min(260px, calc(100vw - 1rem));
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    margin: 0;
    padding: 0.4rem 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 1001;
  }

  .site-nav.open {
    display: block;
    animation: menuFade 0.18s ease;
  }

  .site-nav a {
    display: block;
    width: 100%;
    padding: 0.7rem 0.95rem;
    margin: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: var(--secondary-text);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.35;
    box-shadow: none;
  }

  .site-nav a:hover,
  .site-nav a.active {
    background: var(--surface-soft);
    color: var(--primary);
  }

  .language-toggle {
    padding: 0.34rem 0.5rem;
    gap: 0.34rem;
  }

  .lang-link {
    font-size: 0.85rem;
  }

  .lang-separator {
    font-size: 0.8rem;
  }

  .hero {
    padding: 3.2rem 0 2.8rem;
  }

  .section {
    padding: 3rem 0;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.55rem;
  }
}

/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 480px) {
  body {
    font-size: 0.98rem;
  }

  .container {
    width: min(100% - 0.9rem, var(--container));
  }

  .install-banner-inner {
    width: min(100% - 0.75rem, var(--container));
  }

  .install-text {
    font-size: 0.88rem;
  }

  .install-btn {
    padding: 0.7rem 0.85rem;
    font-size: 0.95rem;
  }

  .nav-wrap {
    gap: 0.45rem;
  }

  .logo {
    max-width: 42vw;
    font-size: 0.96rem;
  }

  .header-controls {
    gap: 0.3rem;
  }

  .language-toggle {
    padding: 0.28rem 0.38rem;
    gap: 0.22rem;
  }

  .lang-link {
    font-size: 0.76rem;
  }

  .lang-separator {
    font-size: 0.72rem;
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
    font-size: 1.12rem;
  }

  .site-nav {
    width: min(220px, calc(100vw - 0.75rem));
    top: calc(100% + 4px);
  }

  .site-nav a {
    padding: 0.64rem 0.82rem;
    font-size: 0.92rem;
  }

  .card,
  .hero-panel,
  .warning-box,
  .lang-block > div {
    padding: 1.1rem;
  }
}

/* =========================
   MENU ANIMATION
========================= */

@keyframes menuFade {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
