@import url('https://fonts.googleapis.com/css2?family=Fraunces:wght@600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #f8f5ef;
  --bg-elevated: rgba(255, 255, 255, 0.82);
  --bg-strong: #fffdf9;
  --line: rgba(26, 37, 47, 0.12);
  --line-strong: rgba(26, 37, 47, 0.2);
  --text: #17202b;
  --text-muted: #566370;
  --headline: #0f1720;
  --brand: #117a7b;
  --brand-strong: #0d5b5e;
  --accent: #ef7b45;
  --accent-soft: rgba(239, 123, 69, 0.12);
  --brand-soft: rgba(17, 122, 123, 0.1);
  --shadow: 0 20px 50px rgba(18, 35, 43, 0.08);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --content-width: min(1120px, calc(100vw - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: 'Manrope', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(17, 122, 123, 0.14), transparent 28%),
    radial-gradient(circle at top right, rgba(239, 123, 69, 0.16), transparent 24%),
    linear-gradient(180deg, #fbf8f3 0%, #f5f0e6 100%);
  min-height: 100vh;
}

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

img {
  max-width: 100%;
}

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

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.28) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.3;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(248, 245, 239, 0.82);
  border-bottom: 1px solid rgba(23, 32, 43, 0.08);
}

.site-header__inner,
.site-main,
.site-footer__inner {
  width: var(--content-width);
  margin: 0 auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--headline);
}

.brand__mark {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background:
    linear-gradient(140deg, rgba(17, 122, 123, 0.16), rgba(17, 122, 123, 0.04)),
    linear-gradient(140deg, rgba(239, 123, 69, 0.14), transparent);
  border: 1px solid rgba(17, 122, 123, 0.16);
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  color: var(--brand-strong);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand__title {
  font-size: 1rem;
}

.brand__subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

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

.nav a {
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--text-muted);
}

.nav a:hover,
.nav a[aria-current='page'] {
  background: rgba(17, 122, 123, 0.1);
  color: var(--brand-strong);
}

.site-main {
  padding: 40px 0 80px;
}

.hero,
.page-intro,
.section,
.article-shell,
.tool-shell,
.legal-shell,
.contact-shell {
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
}

.hero {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 32px;
  padding: 40px;
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  inset: auto -80px -80px auto;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(17, 122, 123, 0.2), transparent 68%);
}

.hero__eyebrow,
.section__eyebrow,
.page-intro__eyebrow,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-strong);
  background: var(--brand-soft);
}

.hero h1,
.page-intro h1,
.section__title,
.article-header h1,
.tool-header h1 {
  margin: 18px 0 14px;
  font-family: 'Fraunces', serif;
  color: var(--headline);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero h1 {
  font-size: clamp(2.3rem, 4vw, 4.3rem);
}

.hero p,
.page-intro p,
.section__summary,
.lede,
.rich-text p,
.tool-body p,
.legal-body p {
  color: var(--text-muted);
  line-height: 1.78;
  font-size: 1rem;
}

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

.button,
.button-secondary,
.button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.button {
  background: linear-gradient(135deg, var(--brand), #1a9a94);
  color: #fff;
  box-shadow: 0 16px 34px rgba(17, 122, 123, 0.22);
}

.button-secondary {
  background: #fff;
  color: var(--headline);
  border-color: var(--line);
}

.button-ghost {
  background: transparent;
  color: var(--brand-strong);
  border-color: rgba(17, 122, 123, 0.2);
}

.button:hover,
.button-secondary:hover,
.button-ghost:hover {
  transform: translateY(-1px);
}

.hero__stats {
  display: grid;
  gap: 14px;
  align-self: end;
}

.metric-card,
.info-card,
.tool-card,
.guide-card,
.result-card,
.faq-card,
.aside-card,
.notice,
.feature-card {
  padding: 22px;
  background: rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-md);
  border: 1px solid rgba(23, 32, 43, 0.08);
}

.metric-card strong {
  display: block;
  font-size: 1.45rem;
  margin-bottom: 6px;
  color: var(--headline);
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

.section {
  margin-top: 28px;
  padding: 34px;
}

.section__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section__title {
  font-size: clamp(1.8rem, 2.2vw, 2.7rem);
}

.mini-list,
.key-points,
.link-list,
.footer-links,
.tag-list,
.article-meta,
.tool-meta,
.contact-points {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.mini-list span,
.key-points li,
.tag,
.article-meta span,
.tool-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(23, 32, 43, 0.08);
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.tool-card,
.guide-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
}

.tool-card__top,
.guide-card__top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.tool-card h3,
.guide-card h3,
.feature-card h3,
.faq-card h3,
.info-card h3,
.notice h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.35;
  color: var(--headline);
}

.tool-card p,
.guide-card p,
.feature-card p,
.faq-card p,
.info-card p,
.notice p,
.legal-body li,
.contact-points p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.72;
}

.card-link {
  margin-top: auto;
  font-weight: 800;
  color: var(--brand-strong);
}

.article-shell,
.tool-shell,
.legal-shell,
.contact-shell {
  padding: 36px;
}

.article-layout,
.tool-layout,
.legal-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.9fr);
  gap: 26px;
}

.article-main,
.tool-main,
.legal-main,
.contact-main {
  min-width: 0;
}

.article-header,
.tool-header {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}

.article-header h1,
.tool-header h1,
.page-intro h1 {
  font-size: clamp(2rem, 3vw, 3.2rem);
}

.lede {
  margin: 0;
}

.key-points {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.rich-text h2,
.tool-body h2,
.legal-body h2 {
  margin: 36px 0 12px;
  font-family: 'Fraunces', serif;
  font-size: 1.6rem;
  color: var(--headline);
  letter-spacing: -0.03em;
}

.rich-text h3,
.tool-body h3,
.legal-body h3 {
  margin: 28px 0 10px;
  font-size: 1.15rem;
  color: var(--headline);
}

.rich-text ul,
.tool-body ul,
.legal-body ul {
  padding-left: 22px;
  color: var(--text-muted);
  line-height: 1.78;
}

.rich-text li,
.tool-body li,
.legal-body li {
  margin-bottom: 10px;
}

.table-wrap {
  overflow-x: auto;
  margin: 16px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(23, 32, 43, 0.08);
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(23, 32, 43, 0.08);
  font-size: 0.94rem;
}

th {
  background: rgba(17, 122, 123, 0.08);
  color: var(--headline);
}

tr:last-child td {
  border-bottom: 0;
}

.aside-stack {
  display: grid;
  gap: 16px;
  align-self: start;
  position: sticky;
  top: 92px;
}

.aside-card h2,
.aside-card h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  color: var(--headline);
}

.aside-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
  line-height: 1.7;
}

.tool-panel,
.result-card {
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(23, 32, 43, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(250, 248, 243, 0.88));
}

.tool-panel h2,
.result-card h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  color: var(--headline);
}

.tool-form {
  display: grid;
  gap: 16px;
}

.field-group {
  display: grid;
  gap: 8px;
}

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

.field-group label,
.fieldset-label {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--headline);
}

.field-group input,
.field-group textarea,
.field-group select {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(23, 32, 43, 0.14);
  background: rgba(255, 255, 255, 0.94);
  padding: 13px 14px;
  color: var(--headline);
}

.field-group textarea {
  min-height: 160px;
  resize: vertical;
}

.helper-text {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.result-card {
  min-height: 180px;
}

.result-list {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
  margin: 16px 0 0;
}

.result-list li,
.stat-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(23, 32, 43, 0.08);
}

.number-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.number-chip {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #117a7b, #1a9a94);
  color: white;
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(17, 122, 123, 0.2);
}

.callout {
  padding: 18px 20px;
  border-radius: 18px;
  line-height: 1.7;
  border: 1px solid rgba(23, 32, 43, 0.08);
}

.callout--info {
  background: rgba(17, 122, 123, 0.08);
}

.callout--warning {
  background: rgba(239, 123, 69, 0.11);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  border-radius: 18px;
  border: 1px solid rgba(23, 32, 43, 0.08);
  background: rgba(255, 255, 255, 0.76);
  padding: 18px 20px;
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  font-weight: 800;
  color: var(--headline);
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list details p {
  margin: 12px 0 0;
}

.link-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  flex-direction: column;
}

.link-list a {
  color: var(--brand-strong);
  font-weight: 700;
}

.page-intro {
  padding: 34px;
  margin-bottom: 28px;
}

.contact-card {
  padding: 24px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(23, 32, 43, 0.08);
}

.contact-card h2 {
  margin-top: 0;
  color: var(--headline);
}

.site-footer {
  border-top: 1px solid rgba(23, 32, 43, 0.08);
  background: rgba(255, 253, 249, 0.88);
  backdrop-filter: blur(12px);
}

.site-footer__inner {
  padding: 24px 0 40px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.footer-meta p {
  margin: 8px 0 0;
  max-width: 560px;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.footer-note {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 980px) {
  .hero,
  .article-layout,
  .tool-layout,
  .legal-layout,
  .contact-layout,
  .grid--3,
  .grid--2 {
    grid-template-columns: 1fr;
  }

  .aside-stack {
    position: static;
  }

  .site-footer__inner {
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .site-main {
    padding-top: 28px;
  }

  .site-header__inner {
    flex-direction: column;
    align-items: start;
  }

  .hero,
  .section,
  .page-intro,
  .article-shell,
  .tool-shell,
  .legal-shell,
  .contact-shell {
    padding: 24px;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .button-row,
  .nav,
  .section__header {
    align-items: start;
  }

  .button,
  .button-secondary,
  .button-ghost {
    width: 100%;
  }
}
