:root {
  color-scheme: light;
  --accent: #e95b92;
  --bg: #fff8f2;
  --danger: #b42318;
  --danger-bg: rgba(255, 244, 242, 0.92);
  --danger-line: #fecdca;
  --glass: rgba(255, 255, 255, 0.78);
  --line: rgba(233, 91, 146, 0.16);
  --line-strong: rgba(120, 105, 128, 0.22);
  --muted: #716a73;
  --shadow: 0 20px 44px rgba(70, 55, 65, 0.08);
  --soft-shadow: 0 10px 24px rgba(70, 55, 65, 0.06);
  --surface: rgba(255, 255, 255, 0.9);
  --text: #262025;
  --font-rounded:
    ui-rounded,
    "Hiragino Maru Gothic ProN",
    "Yu Gothic",
    "Hiragino Sans",
    Meiryo,
    sans-serif;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-rounded);
  font-synthesis: none;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 18% 14%, rgba(236, 180, 168, 0.18), transparent 30%),
    linear-gradient(135deg, #fffdfb 0%, #fff8f5 48%, #fbf5ef 100%);
}

button,
input,
textarea {
  font: inherit;
  font-family: var(--font-rounded);
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(233, 91, 146, 0.35);
  outline-offset: 2px;
}

a {
  color: inherit;
}

.site-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 248, 242, 0.96);
  backdrop-filter: blur(16px);
}

.header-inner,
.hero,
.content,
.site-footer {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(102, 76, 68, 0.14);
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.nav a {
  text-decoration: none;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.75fr);
  gap: 38px;
  align-items: center;
  padding: 56px 0 38px;
}

.hero-mobile-brand {
  display: none;
}

.hero h1 {
  margin: 0 0 18px;
  color: var(--text);
  font-size: clamp(2rem, 4.05vw, 3.9rem);
  line-height: 1.2;
  letter-spacing: 0;
}

.lead {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
  box-shadow: var(--soft-shadow);
}

.button.primary {
  border-color: transparent;
  background: var(--accent);
  color: #fff;
}

.visual-panel {
  display: grid;
  gap: 16px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.app-icon {
  width: 108px;
  height: 108px;
  border-radius: 28px;
  box-shadow: 0 18px 34px rgba(102, 76, 68, 0.2);
}

.note-preview {
  display: grid;
  gap: 12px;
}

.note-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.note-row span {
  color: var(--muted);
  font-size: 0.9rem;
}

.content {
  padding: 18px 0 64px;
}

.section {
  margin-top: 14px;
}

.section h2 {
  margin: 0 0 16px;
  color: var(--text);
  font-size: 24px;
  line-height: 1.35;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

.card h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 17px;
}

.card p {
  margin: 0;
  line-height: 1.8;
}

.muted {
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 30px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.footer-links a {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

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

.public-shell {
  min-height: 100vh;
  padding: 18px 20px 56px;
}

.public-header {
  width: min(880px, 100%);
  margin: 0 auto 26px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 22px;
}

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

.public-brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  box-shadow: 0 10px 22px rgba(102, 76, 68, 0.12);
}

.public-brand,
.public-header a {
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.public-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: flex-end;
  font-size: 14px;
}

.public-header nav a {
  color: var(--muted);
}

.public-header nav a:hover,
.public-header nav a[aria-current="page"] {
  color: var(--accent);
}

.public-content {
  width: min(880px, 100%);
  margin: 0 auto;
}

.public-page-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

.public-page-card h1 {
  margin: 4px 0 10px;
  color: var(--text);
  font-size: 30px;
  line-height: 1.25;
  letter-spacing: 0;
}

.public-page-card h2 {
  margin: 28px 0 8px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: 0;
}

.public-page-card h3 {
  margin: 20px 0 8px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: 0;
}

.public-page-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
}

.public-page-card p + p,
.public-page-card .public-page-lead + p {
  margin-top: 14px;
}

.public-page-card ol,
.public-page-card ul {
  margin: 10px 0 0;
  padding-left: 1.4em;
  color: var(--muted);
  line-height: 1.9;
}

.public-page-card li + li {
  margin-top: 6px;
}

.public-page-card li > ul {
  margin-top: 8px;
}

.public-page-card a {
  color: var(--accent);
  font-weight: 800;
}

.public-page-lead {
  font-size: 16px;
}

.eyebrow,
.card-label {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.public-meta-list {
  margin: 22px 0 4px;
  display: grid;
  gap: 10px;
}

.public-meta-list div {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
}

.public-meta-list dt,
.public-contact-form label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.public-meta-list dd {
  margin: 0;
  color: var(--text);
  font-weight: 700;
}

.public-contact-form {
  margin-top: 24px;
  display: grid;
  gap: 16px;
}

#contact-fields {
  display: grid;
  gap: 16px;
}

.public-contact-form label {
  display: grid;
  gap: 7px;
}

.public-contact-form input,
.public-contact-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.public-contact-form input {
  min-height: 44px;
  padding: 0 12px;
}

.public-contact-form textarea {
  resize: vertical;
  padding: 12px;
}

.contact-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.public-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 4px;
}

.public-contact-actions .primary-action,
.public-contact-actions .secondary-action {
  width: min(240px, 100%);
}

.primary-action,
.secondary-action {
  width: min(220px, 100%);
  min-height: 42px;
  margin: 0;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.secondary-action {
  background: #fff;
  color: var(--accent);
}

.primary-action:disabled,
.secondary-action:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.error-text,
.success-text {
  border-radius: 16px;
  margin: 0;
  padding: 10px 12px;
  font-size: 14px;
}

.error-text {
  border: 1px solid var(--danger-line);
  background: var(--danger-bg);
  color: var(--danger) !important;
}

.success-text {
  border: 1px solid rgba(58, 145, 99, 0.22);
  background: rgba(238, 249, 242, 0.78);
  color: #2f7a52 !important;
}

.contact-confirmation {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(233, 91, 146, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.contact-confirmation h2,
.contact-confirmation p {
  margin: 0;
}

.contact-confirmation h2 {
  color: var(--text);
  font-size: 18px;
  line-height: 1.4;
}

.contact-confirmation p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.contact-confirmation dl {
  margin: 0;
  display: grid;
  gap: 12px;
}

.contact-confirmation div {
  display: grid;
  gap: 4px;
}

.contact-confirmation dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.contact-confirmation dd {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.contact-confirmation-message {
  white-space: pre-wrap;
}

.app-footer {
  width: min(880px, 100%);
  margin: 34px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(233, 91, 146, 0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 22px;
  color: var(--muted);
  font-size: 13px;
}

.app-footer p {
  margin: 0;
}

.app-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  justify-content: flex-end;
}

.app-footer a {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.app-footer a:hover {
  color: var(--accent);
}

@media (max-width: 820px) {
  .header-inner {
    min-height: auto;
    padding: 14px 0;
    justify-content: center;
  }

  .header-inner .brand {
    display: none;
  }

  .site-footer {
    align-items: center;
    flex-direction: column;
    width: min(100% - 32px, 420px);
    padding: 24px 0 34px;
    text-align: center;
  }

  .nav,
  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav {
    width: 100%;
    font-size: 13px;
  }

  .hero {
    grid-template-columns: 1fr;
    justify-items: center;
    width: min(100% - 32px, 440px);
    gap: 22px;
    padding-top: 30px;
    padding-bottom: 32px;
    text-align: center;
  }

  .hero-mobile-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text);
    font-weight: 700;
  }

  .hero-mobile-brand img {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    box-shadow: 0 12px 24px rgba(102, 76, 68, 0.14);
  }

  .hero-copy {
    display: grid;
    justify-items: center;
    gap: 14px;
  }

  .hero h1 {
    max-width: 9em;
    margin-bottom: 0;
    font-size: clamp(2rem, 10vw, 3rem);
    line-height: 1.22;
  }

  .lead {
    max-width: 34em;
    font-size: 15px;
    line-height: 1.85;
  }

  .hero-actions {
    justify-content: center;
    margin-top: 4px;
  }

  .button {
    min-width: 132px;
    min-height: 46px;
    padding: 0 18px;
  }

  .visual-panel {
    width: 100%;
    max-width: 360px;
    justify-items: center;
    gap: 14px;
    padding: 22px;
    border-radius: 26px;
  }

  .app-icon {
    width: 88px;
    height: 88px;
    border-radius: 24px;
  }

  .note-preview {
    width: 100%;
  }

  .note-row {
    padding: 12px 14px;
    border-radius: 16px;
  }

  .content {
    width: min(100% - 32px, 440px);
    padding-top: 14px;
    padding-bottom: 46px;
  }

  .section {
    margin-top: 8px;
    text-align: center;
  }

  .section h2 {
    margin-bottom: 14px;
    font-size: 22px;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .card {
    padding: 20px;
    border-radius: 22px;
    text-align: left;
  }

  .card h3 {
    text-align: center;
  }

  .card p {
    text-align: center;
  }

  .footer-links {
    gap: 8px 14px;
  }

  .public-shell {
    padding: 16px 12px 32px;
  }

  .public-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .public-header nav {
    justify-content: flex-start;
  }

  .public-page-card {
    padding: 22px;
  }

  .public-page-card h1 {
    font-size: 25px;
  }

  .public-meta-list div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .app-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .app-footer nav {
    justify-content: flex-start;
  }
}
