:root {
  --paper: #fffaf4;
  --paper-strong: #fff5e7;
  --ink: #302a25;
  --muted: #746b61;
  --soft: #f3dfcf;
  --rose: #d88078;
  --rose-deep: #9f5651;
  --sage: #6f8f81;
  --sage-soft: #dce8df;
  --sky: #dcebf0;
  --honey: #eab963;
  --clay: #b86e54;
  --line: rgba(77, 56, 42, 0.14);
  --shadow: 0 22px 70px rgba(83, 58, 38, 0.14);
  --tight-shadow: 0 12px 32px rgba(83, 58, 38, 0.12);
  --radius: 8px;
  --nav-height: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(234, 185, 99, 0.22), transparent 32rem),
    linear-gradient(135deg, #fffaf4 0%, #f7efe6 42%, #eef4ef 100%);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

.app-frame {
  min-height: 100vh;
  overflow-x: hidden;
}

.topbar {
  position: relative;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(255, 250, 244, 0.72);
  border-bottom: 1px solid rgba(99, 73, 56, 0.1);
  backdrop-filter: blur(22px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #382d27;
  color: #fff6e8;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 20px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
}

.nav-link {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 10px 13px;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  background: rgba(216, 128, 120, 0.14);
  color: var(--rose-deep);
}

.nav-link:active,
.button:active,
.icon-button:active,
.soft-button:active {
  transform: translateY(1px);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button,
.mobile-menu {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.56);
  cursor: pointer;
  color: var(--ink);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.mobile-menu span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  margin: 0;
}

main {
  min-height: 100vh;
  padding-top: 0;
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-height));
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--paper);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(255, 250, 244, 0.96) 0%, rgba(255, 250, 244, 0.86) 31%, rgba(255, 250, 244, 0.25) 66%, rgba(255, 250, 244, 0.06) 100%),
    url("../assets/her-own-sunlit-room.png");
  background-size: cover;
  background-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 220px;
  background: linear-gradient(180deg, rgba(255, 250, 244, 0), var(--paper));
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100vw - 36px));
  max-width: calc(100vw - 36px);
  margin: 0 auto;
  padding: clamp(54px, 9vw, 108px) 0 58px;
}

.hero-copy {
  width: min(650px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--rose-deep);
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
.display {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(56px, 8vw, 118px);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-tagline {
  margin: 18px 0 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(31px, 4vw, 58px);
  line-height: 1.02;
}

.hero-subtitle {
  max-width: 560px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.6;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button,
.soft-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button {
  background: #332a24;
  color: #fffaf4;
  box-shadow: 0 16px 36px rgba(57, 43, 33, 0.22);
}

.button:hover {
  box-shadow: 0 18px 42px rgba(57, 43, 33, 0.3);
}

.soft-button {
  border-color: rgba(159, 86, 81, 0.2);
  background: rgba(255, 250, 244, 0.7);
  color: var(--rose-deep);
}

.text-button {
  padding-inline: 0;
  background: transparent;
  color: var(--rose-deep);
}

.hero-strip {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100vw - 36px));
  display: grid;
  grid-template-columns: minmax(210px, 0.8fr) 1fr;
  gap: 16px;
  margin: 0 auto -76px;
  transform: translateY(20px);
}

.surface,
.mini-card,
.guide-card,
.safe-card,
.timeline-card,
.profile-panel,
.auth-panel,
.detail-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 244, 0.8);
  box-shadow: var(--tight-shadow);
  backdrop-filter: blur(18px);
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.mini-card {
  min-height: 132px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mini-card strong {
  display: block;
  font-size: 16px;
}

.mini-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.section {
  width: min(1160px, calc(100vw - 36px));
  max-width: calc(100vw - 36px);
  margin: 0 auto;
  padding: 108px 0 34px;
}

.section.compact {
  padding-top: 42px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 22px;
}

.section-title {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
}

.section-copy {
  max-width: 620px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.48);
  box-shadow: var(--tight-shadow);
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(255, 245, 231, 0.82), rgba(220, 235, 240, 0.5));
  opacity: 0.9;
}

.feature-card > * {
  position: relative;
  z-index: 1;
}

.feature-card .icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fffaf4;
  color: var(--rose-deep);
  font-size: 22px;
}

.feature-card h3 {
  margin: 30px 0 10px;
  font-size: 24px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.feature-card button {
  margin-top: 20px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 18px;
}

.surface {
  padding: 22px;
}

.welcome-panel {
  min-height: 240px;
  background:
    linear-gradient(135deg, rgba(255, 245, 231, 0.96), rgba(220, 235, 240, 0.62)),
    url("../assets/her-own-sunlit-room.png");
  background-size: cover;
  background-position: center right;
}

.welcome-panel h1 {
  max-width: 610px;
  font-size: clamp(40px, 5vw, 72px);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 22px;
}

.quick-action {
  min-height: 92px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  border: 1px solid rgba(94, 74, 59, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 250, 244, 0.76);
  cursor: pointer;
  font-weight: 800;
}

.quick-action span {
  font-size: 22px;
}

.list-stack {
  display: grid;
  gap: 10px;
}

.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border: 1px solid rgba(94, 74, 59, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.44);
}

.list-row strong,
.list-row span {
  display: block;
}

.list-row span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.tag,
.score,
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(111, 143, 129, 0.14);
  color: #426a5c;
  font-weight: 800;
  font-size: 12px;
  white-space: nowrap;
}

.score {
  background: rgba(234, 185, 99, 0.22);
  color: #836026;
}

.pill {
  background: rgba(216, 128, 120, 0.14);
  color: var(--rose-deep);
}

.safe-grid,
.guide-grid,
.possibility-grid {
  display: grid;
  gap: 12px;
}

.safe-card,
.guide-card {
  width: 100%;
  border: 1px solid var(--line);
  padding: 16px;
  text-align: left;
  cursor: pointer;
}

.safe-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  background: rgba(255, 250, 244, 0.72);
}

.safe-card.is-selected,
.guide-card.is-selected {
  border-color: rgba(216, 128, 120, 0.44);
  box-shadow: 0 0 0 3px rgba(216, 128, 120, 0.13);
}

.safe-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 245, 231, 0.9);
  font-size: 22px;
}

.safe-card h3,
.guide-card h3,
.detail-panel h3,
.surface h3 {
  margin: 0;
  font-size: 18px;
}

.safe-card p,
.guide-card p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.detail-panel {
  padding: 24px;
  background: rgba(255, 250, 244, 0.88);
  position: sticky;
  top: calc(var(--nav-height) + 18px);
}

.steps {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.step {
  padding: 14px;
  border-left: 4px solid var(--rose);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.54);
}

.step strong {
  display: block;
  margin-bottom: 5px;
}

.phrase {
  padding: 16px;
  border-radius: var(--radius);
  background: #332a24;
  color: #fffaf4;
  font-size: 28px;
  font-weight: 800;
  text-align: center;
}

.call-layout {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 18px;
}

.caller-list {
  display: grid;
  gap: 10px;
}

.caller-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 70px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 244, 0.72);
  padding: 12px;
  cursor: pointer;
  text-align: left;
}

.caller-option.is-selected {
  border-color: rgba(216, 128, 120, 0.44);
  background: rgba(216, 128, 120, 0.1);
}

.avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--sage-soft);
  color: #426a5c;
  font-weight: 900;
}

.phone-preview {
  max-width: 360px;
  min-height: 600px;
  margin: 0 auto;
  border-radius: 34px;
  border: 8px solid #2f2925;
  background:
    linear-gradient(180deg, rgba(255, 250, 244, 0.72), rgba(220, 235, 240, 0.5)),
    url("../assets/her-own-sunlit-room.png");
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
  padding: 28px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.phone-preview-top {
  text-align: center;
}

.phone-preview .caller-avatar {
  margin: 28px auto 14px;
}

/* Japanese UI typography is scoped to the active document language. */
html[lang="ja"] body {
  font-family: "Noto Sans JP", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
}

html[lang="ja"] button,
html[lang="ja"] input,
html[lang="ja"] select,
html[lang="ja"] textarea {
  font-family: inherit;
}

html[lang="ja"] :is(
  .section-title:not([lang="en"]),
  .home-intent-card h2,
  .home-today-card h2,
  .home-editorial-card h3,
  .home-brand-copy blockquote
) {
  font-family: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  letter-spacing: 0.02em;
  line-height: 1.42;
}

html[lang="ja"] :is(
  p,
  .hero-subtitle,
  .section-copy,
  .assistant-log,
  .assistant-panel,
  .safe-card p,
  .guide-card p,
  .feature-card p,
  .mini-card p
) {
  line-height: 1.76;
}

html[lang="ja"] :is(
  .eyebrow,
  label,
  .pill,
  .tag,
  .filter-chip,
  .choice-chip
) {
  letter-spacing: 0.04em;
}

html[lang="ja"] .brand,
html[lang="ja"] .brand [lang="en"],
html[lang="ja"] [lang="en"].section-title,
html[lang="ja"] .home-hero-copy-v2 h1[lang="en"],
html[lang="ja"] .product-name,
html[lang="ja"] .place-name {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

html[lang="ja"] .home-hero-copy-v2 h1[lang="en"] {
  line-height: 0.96;
}

html[lang="ja"] .home-hero-copy-v2 h1[lang="en"] span {
  display: block;
  width: max-content;
  max-width: 100%;
  white-space: nowrap;
}

html[lang="ja"] .home-intent-card h2 {
  font-size: clamp(23px, 2vw, 30px);
  font-weight: 600;
}

html[lang="ja"] .home-editorial-card h3 {
  font-size: clamp(22px, 1.9vw, 28px);
  font-weight: 600;
}

html[lang="ja"] .home-editorial-card .place-name {
  font-weight: 500;
  line-height: 1.18;
}

html[lang="ja"] :is(
  .places-subhead h3,
  .places-filter-head h3
) {
  font-family: "Noto Sans JP", Inter, system-ui, sans-serif;
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

html[lang="ja"] .safe-v1-copy h1 {
  font-family: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(30px, 2.8vw, 35px);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.45;
}

html[lang="ja"] :is(
  .safety-call-intro h2,
  .safety-call-stage h2
) {
  font-family: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(28px, 2.6vw, 36px);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.45;
}

html[lang="ja"] .my-page > .section-head .section-title {
  max-width: 960px;
  font-size: clamp(38px, 3.3vw, 46px);
  line-height: 1.5;
}

html[lang="ja"] .home-brand-copy blockquote {
  max-width: 760px;
  font-size: clamp(32px, 3.2vw, 44px);
  font-weight: 600;
  line-height: 1.5;
}

html[lang="ja"] .home-brand-copy blockquote span {
  display: block;
  width: max-content;
  max-width: 100%;
  white-space: nowrap;
}

html[lang="ja"] .home-hero-question {
  max-width: 100%;
  font-size: clamp(25px, 2.35vw, 31px);
  line-height: 1.45;
  white-space: nowrap;
}

html[lang="ja"] :is(button, input, select, textarea) {
  line-height: 1.45;
}
