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

:root {
  --ink: #302722;
  --muted: #71625a;
  --line: rgba(82, 58, 46, 0.12);
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --coral: #f1785b;
  --coral-dark: #d95f43;
  --teal: #168276;
  --mint: #ddf4eb;
  --cream: #fff8f3;
  --shadow: 0 24px 70px rgba(105, 69, 46, 0.13);
  --max: 1180px;
}

body {
  min-height: 100vh;
  font-family: 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 209, 102, 0.26), transparent 28%),
    radial-gradient(circle at 82% 4%, rgba(146, 221, 198, 0.3), transparent 26%),
    linear-gradient(180deg, #fff9f3 0%, #fff1e8 48%, #f7fff9 100%);
}

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

.page {
  width: min(calc(100% - 36px), var(--max));
  margin: 0 auto;
  padding: 24px 0 64px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 34px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  background: rgba(255, 253, 249, 0.88);
  box-shadow: 0 18px 50px rgba(130, 88, 64, 0.1);
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 15px 34px rgba(217, 95, 67, 0.2);
}

.brand strong {
  display: block;
  font-size: 1.02rem;
  letter-spacing: 0.03em;
}

.brand span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #67554c;
  background: rgba(255, 255, 255, 0.68);
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
}

.nav .primary {
  color: #fff;
  background: linear-gradient(135deg, var(--coral), var(--coral-dark));
  box-shadow: 0 12px 28px rgba(217, 95, 67, 0.22);
}

.nav .login {
  color: var(--teal);
  background: #ffffff;
  border: 1px solid rgba(22, 130, 118, 0.22);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 28px;
}

.hero-copy,
.hero-card,
.section,
.example,
.cta-band {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-copy {
  position: relative;
  overflow: visible;
  z-index: 0;
  border-radius: 34px;
  padding: 44px;
}

.hero-copy::after {
  content: "";
  position: absolute;
  right: 28px;
  top: -58px;
  width: 126px;
  height: 112px;
  background: url("./kobitto-mascots.png") 75% 43% / 650px auto no-repeat;
  filter: drop-shadow(0 14px 20px rgba(105, 69, 46, 0.12));
  pointer-events: none;
  z-index: 1;
}

.hero-copy > * {
  position: relative;
  z-index: 2;
}

.kicker {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 9px 14px;
  border-radius: 999px;
  color: #b9563d;
  background: #fff1e8;
  font-size: 0.8rem;
  font-weight: 900;
}

h1 {
  max-width: 11em;
  font-size: clamp(2.25rem, 5vw, 4.4rem);
  line-height: 1.12;
  letter-spacing: 0;
  margin-bottom: 18px;
}

.lead {
  max-width: 42em;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.9;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 20px;
  border-radius: 16px;
  font-weight: 900;
}

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--coral), var(--coral-dark));
  box-shadow: 0 18px 36px rgba(217, 95, 67, 0.22);
}

.button.secondary {
  color: #5d4b43;
  background: #fff;
  border: 1px solid var(--line);
}

.hero-card {
  position: relative;
  overflow: visible;
  z-index: 0;
  border-radius: 30px;
  padding: 28px;
  display: grid;
  gap: 16px;
  align-content: start;
}

.hero-card::before {
  content: "";
  position: absolute;
  right: 22px;
  top: -52px;
  width: 132px;
  height: 84px;
  background: url("./kobitto-bubble.png") center / contain no-repeat;
  filter: drop-shadow(0 12px 16px rgba(105, 69, 46, 0.1));
  pointer-events: none;
  z-index: 1;
}

.hero-card > * {
  position: relative;
  z-index: 2;
}

.mini-label {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.mock-output {
  display: grid;
  gap: 12px;
}

.mock-output div {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
}

.mock-output b {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.mock-output span {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.65;
}

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

.section {
  position: relative;
  overflow: visible;
  border-radius: 26px;
  padding: 26px;
}

.grid .section:nth-child(1)::after,
.grid .section:nth-child(2)::after,
.grid .section:nth-child(3)::after {
  content: "";
  position: absolute;
  right: 18px;
  top: -28px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background-image: url("./kobitto-icons.png");
  background-repeat: no-repeat;
  background-size: auto 58px;
  box-shadow: 0 10px 22px rgba(105, 69, 46, 0.1);
}

.grid .section:nth-child(1)::after { background-position: 0 0; }
.grid .section:nth-child(2)::after { background-position: -98px 0; }
.grid .section:nth-child(3)::after { background-position: -196px 0; }

.section h2 {
  font-size: 1.35rem;
  line-height: 1.45;
  margin-bottom: 10px;
}

.section p,
.section li {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.78;
}

.section ul {
  display: grid;
  gap: 8px;
  list-style: none;
}

.section li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 999px;
  background: var(--coral);
  vertical-align: 0.08em;
}

.example {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 18px;
  margin-bottom: 28px;
  border-radius: 30px;
  padding: 28px;
}

.example h2 {
  font-size: 1.45rem;
  margin-bottom: 12px;
}

.input-list,
.output-box,
.price-list {
  display: grid;
  gap: 12px;
}

.input-list div,
.price-list div {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.input-list span,
.price-list span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.input-list strong,
.price-list strong {
  display: block;
  margin-bottom: 4px;
}

.output-box {
  padding: 20px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
}

.output-box h3 {
  font-size: 1rem;
  margin-top: 8px;
  margin-bottom: 5px;
}

.output-box h3:first-child {
  margin-top: 0;
}

.output-box p {
  color: #574840;
  line-height: 1.82;
  font-size: 0.94rem;
}

.cta-band {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-radius: 28px;
  padding: 26px 28px;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  width: 126px;
  height: 76px;
  flex: 0 0 auto;
  background: url("./kobitto-bubble.png") center / contain no-repeat;
  order: -1;
}

.cta-band strong {
  display: block;
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.cta-band span {
  color: var(--muted);
  line-height: 1.7;
}

.article-hero {
  margin-bottom: 24px;
}

.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: start;
}

.article-body {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
  padding: 34px;
}

.article-body h2 {
  margin-top: 34px;
  margin-bottom: 12px;
  font-size: 1.55rem;
  line-height: 1.45;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body h3 {
  margin-top: 22px;
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.article-body p,
.article-body li {
  color: #5f5048;
  line-height: 1.92;
  font-size: 1rem;
}

.article-body p + p {
  margin-top: 12px;
}

.article-body ul,
.article-body ol {
  display: grid;
  gap: 8px;
  margin: 12px 0 0 1.2em;
}

.article-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.article-meta span,
.article-tag {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  color: #a54f38;
  background: #fff1e8;
  font-size: 0.78rem;
  font-weight: 900;
}

.example-note {
  margin: 18px 0;
  padding: 18px;
  border-radius: 18px;
  background: #fff8f3;
  border: 1px solid rgba(241, 120, 91, 0.18);
}

.example-note strong {
  display: block;
  margin-bottom: 8px;
}

.example-note p {
  color: #574840;
}

.article-aside {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 14px;
}

.aside-card {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 44px rgba(105, 69, 46, 0.1);
  padding: 18px;
}

.aside-card strong {
  display: block;
  margin-bottom: 8px;
}

.aside-card a,
.aside-card span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.article-card {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 48px rgba(105, 69, 46, 0.11);
  padding: 22px;
}

.article-card h2 {
  margin: 12px 0 9px;
  font-size: 1.16rem;
  line-height: 1.5;
}

.article-card p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 0.92rem;
}

.article-card .read-link {
  display: inline-flex;
  margin-top: 16px;
  color: var(--coral-dark);
  font-weight: 900;
}

@media (max-width: 900px) {
  .hero,
  .grid,
  .example,
  .article-shell,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .cta-band {
    align-items: stretch;
    flex-direction: column;
  }

  .article-aside {
    position: static;
  }
}

@media (max-width: 680px) {
  .page {
    width: min(calc(100% - 18px), var(--max));
    padding-top: 14px;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
    border-radius: 22px;
  }

  .nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav a {
    text-align: center;
    padding: 10px 8px;
    font-size: 0.8rem;
  }

  .hero-copy,
  .hero-card,
  .section,
  .example,
  .cta-band,
  .article-body,
  .article-card {
    border-radius: 20px;
    padding: 20px;
  }

  h1 {
    font-size: 2.1rem;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-copy::after,
  .hero-card::before,
  .grid .section::after,
  .cta-band::before {
    display: none;
  }
}
