@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@500;600;700&family=Noto+Sans+JP:wght@400;500;600;700&display=swap");

:root {
  --paper: #f7f4ed;
  --paper-deep: #eee9de;
  --white: #fffefa;
  --ink: #20322d;
  --ink-soft: #53635e;
  --line: #d6d4c9;
  --green: #2f5c4f;
  --green-dark: #24483f;
  --mint: #c9ded3;
  --coral: #e88c71;
  --yellow: #e2bd61;
  --radius-sm: 12px;
  --radius-md: 22px;
  --radius-lg: 36px;
  --shadow: 0 20px 60px rgba(35, 54, 48, 0.1);
  --shell: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans JP", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  line-break: strict;
  overflow-wrap: break-word;
}

a { color: inherit; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 1000;
  background: var(--ink);
  color: white;
  padding: 10px 16px;
  border-radius: 8px;
}

.skip-link:focus { top: 16px; }

.shell {
  width: min(calc(100% - 48px), var(--shell));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  line-height: 1.2;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--green);
  color: var(--white);
  border-radius: 50% 50% 44% 56% / 48% 44% 56% 52%;
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
}

.brand strong {
  display: block;
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  letter-spacing: 0.01em;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: var(--ink-soft);
  font-family: "DM Sans", sans-serif;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

nav { display: flex; gap: 30px; }

nav a {
  position: relative;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -5px;
  height: 2px;
  background: var(--coral);
  transition: right 180ms ease;
}

nav a:hover::after,
nav a:focus-visible::after { right: 0; }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 56px;
  padding: 0 25px;
  background: var(--green);
  border: 1px solid var(--green);
  border-radius: 999px;
  color: white;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(47, 92, 79, 0.16);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(47, 92, 79, 0.22);
}

.button-small { min-height: 42px; padding-inline: 20px; font-size: 13px; }

.hero { padding: 86px 0 104px; overflow: hidden; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.6fr);
  gap: 76px;
  align-items: center;
}

.eyebrow,
.section-number,
.note-label {
  margin: 0 0 18px;
  color: var(--green);
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 30px;
  font-size: clamp(42px, 4.7vw, 64px);
  line-height: 1.3;
  letter-spacing: -0.035em;
  font-weight: 700;
  text-wrap: balance;
}

.hero-title-line { display: block; }
.hero-title-focus { width: fit-content; color: var(--green); box-shadow: inset 0 -0.23em 0 var(--mint); }
.keep-line { white-space: nowrap; }

.lead {
  max-width: 690px;
  margin-bottom: 32px;
  color: var(--ink-soft);
  font-size: 17px;
}

.hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

.text-link {
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.text-link span { margin-left: 5px; }

.microcopy {
  max-width: 610px;
  margin: 18px 0 0;
  color: #71807b;
  font-size: 12px;
}

.hero-note {
  position: relative;
  padding: 42px 38px 40px;
  background: var(--white);
  border: 1px solid #dfded4;
  border-radius: var(--radius-lg) var(--radius-lg) 88px var(--radius-lg);
  box-shadow: var(--shadow);
  transform: rotate(1.8deg);
}

.hero-note::before,
.hero-note::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: -1;
}

.hero-note::before { width: 94px; height: 94px; background: var(--yellow); top: -34px; right: -32px; }
.hero-note::after { width: 58px; height: 58px; background: var(--coral); bottom: -18px; left: -22px; }

.note-quote {
  margin: 0 0 26px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.65;
  letter-spacing: -0.02em;
}

.note-lines { display: flex; gap: 7px; margin-bottom: 22px; }
.note-lines span { width: 36px; height: 4px; border-radius: 99px; background: var(--mint); }
.note-lines span:nth-child(2) { background: var(--coral); }
.note-lines span:nth-child(3) { background: var(--yellow); }
.note-body { margin: 0; color: var(--ink-soft); font-size: 14px; }

.section { padding: 108px 0; }

.section h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.45;
  letter-spacing: -0.035em;
  text-wrap: balance;
  word-break: auto-phrase;
}

.problem-section { background: var(--white); border-block: 1px solid var(--line); }
.two-column-heading { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 110px; align-items: start; }
.two-column-heading > div:first-child,
.experience-header > div:first-child { min-width: 0; }
.two-column-heading .section-number,
.experience-header .section-number { margin-bottom: 12px; }
.problem-title { max-width: 8.7em; }
.problem-list { border-top: 1px solid var(--line); }
.problem-list article { display: grid; grid-template-columns: 42px 1fr; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); align-items: start; }
.problem-list span { color: var(--coral); font-family: "DM Sans", sans-serif; font-size: 12px; font-weight: 700; }
.problem-list p { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.7; }

.service-section { background: var(--green); color: var(--white); }
.service-section .section-number { color: var(--mint); }
.service-intro { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 110px; align-items: end; padding-bottom: 58px; border-bottom: 1px solid rgba(255,255,255,.22); }
.service-kicker { margin-bottom: 10px; color: var(--mint); font-size: 14px; font-weight: 700; }
.service-intro h2 { font-size: clamp(40px, 3.6vw, 48px); line-height: 1.4; }
.service-summary { margin-bottom: 18px; font-size: 20px; font-weight: 600; line-height: 1.85; }
.service-note { margin: 0; color: #c8d7d2; font-size: 13px; }
.diagnosis-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding-top: 42px; }
.diagnosis-grid > div { padding: 34px; border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius-md); }
.diagnosis-grid h3 { margin-bottom: 5px; font-size: 20px; }
.diagnosis-scope > p { margin-bottom: 22px; color: #c8d7d2; font-size: 13px; }
.diagnosis-scope ul { list-style: none; padding: 0; margin: 0; }
.diagnosis-scope li { display: grid; grid-template-columns: 155px 1fr; gap: 15px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.15); }
.diagnosis-scope li span { font-weight: 700; }
.diagnosis-scope li small { color: #c8d7d2; }
.diagnosis-output { background: var(--white); color: var(--ink); }
.diagnosis-output ol { list-style: none; counter-reset: output; padding: 0; margin: 26px 0; }
.diagnosis-output li { counter-increment: output; display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.diagnosis-output li::before { content: "0" counter(output); color: var(--coral); font-family: "DM Sans", sans-serif; font-size: 12px; }
.output-meta { padding: 18px 20px; background: var(--paper); border-radius: var(--radius-sm); }
.output-meta p { margin: 0; font-size: 13px; }
.output-meta p + p { margin-top: 6px; }
.output-meta strong { display: inline-block; width: 52px; color: var(--green); }
.service-cta { display: flex; justify-content: space-between; align-items: center; gap: 30px; margin-top: 28px; padding: 28px 34px; background: rgba(255,255,255,.08); border-radius: var(--radius-md); }
.service-cta p { margin-bottom: 4px; font-weight: 700; }
.service-cta small { color: #c8d7d2; }
.button-light { flex: 0 0 auto; background: var(--white); border-color: var(--white); color: var(--green); }
.button-light:hover, .button-light:focus-visible { background: var(--mint); color: var(--green-dark); }

.experience-section { background: var(--paper); }
.experience-header { display: grid; grid-template-columns: 1.4fr .6fr; gap: 70px; align-items: end; margin-bottom: 62px; }
.experience-header h2 { max-width: 12em; font-size: clamp(36px, 3.7vw, 50px); }
.experience-header > p { margin-bottom: 4px; color: var(--ink-soft); }
.experience-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.experience-grid article { min-width: 0; padding: 30px; background: color-mix(in srgb, var(--white) 62%, transparent); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.experience-grid article > span { display: block; margin-bottom: 28px; color: var(--coral); font-family: "DM Sans", sans-serif; font-size: 12px; font-weight: 700; }
.experience-grid h3 { margin-bottom: 10px; font-size: 17px; }
.experience-grid p { margin: 0; color: var(--ink-soft); font-size: 13px; }
.experience-note { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin-top: 26px; }
.experience-note p { margin: 0; color: #71807b; font-size: 11px; }

.flow-section { background: var(--white); border-block: 1px solid var(--line); }
.flow-heading { display: grid; grid-template-columns: 1.1fr .9fr; gap: 110px; align-items: end; margin-bottom: 58px; }
.flow-heading p { margin-bottom: 5px; color: var(--ink-soft); }
.flow-list { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.flow-list li { position: relative; min-height: 250px; padding: 28px 26px 24px; border-right: 1px solid var(--line); }
.flow-list li:last-child { border-right: 0; }
.flow-list > li > span { color: var(--coral); font-family: "DM Sans", sans-serif; font-size: 12px; font-weight: 700; }
.flow-list div { position: absolute; inset: auto 26px 25px; }
.flow-list h3 { margin-bottom: 10px; font-size: 18px; }
.flow-list p { margin: 0; color: var(--ink-soft); font-size: 13px; }

.faq-section { background: var(--paper); }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 110px; }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { position: relative; padding: 24px 48px 24px 0; cursor: pointer; font-weight: 700; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 8px; top: 22px; color: var(--coral); font-family: "DM Sans", sans-serif; font-size: 22px; font-weight: 500; }
details[open] summary::after { content: "−"; }
details p { margin: -3px 48px 24px 0; color: var(--ink-soft); font-size: 14px; }

.column-section { background: var(--paper-deep); border-top: 1px solid var(--line); }
.column-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 110px; align-items: end; }
.column-intro { max-width: 430px; margin: 22px 0 0; color: var(--ink-soft); }
.column-list { border-top: 1px solid var(--ink); }
.column-list > a:first-child { display: grid; grid-template-columns: 100px 1fr 52px; gap: 22px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.column-list time { color: var(--ink-soft); font-family: "DM Sans", sans-serif; font-size: 11px; }
.column-list strong { line-height: 1.7; }
.column-list span { color: var(--green); font-size: 12px; font-weight: 700; }
.column-all { display: inline-block; margin-top: 18px; color: var(--green); font-size: 13px; font-weight: 700; text-underline-offset: 5px; }

.privacy-section { padding: 62px 0; background: var(--white); border-top: 1px solid var(--line); }
.privacy-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 110px; align-items: start; }
.privacy-inner h2 { margin: 0; font-size: 24px; line-height: 1.55; letter-spacing: -.02em; }
.privacy-details { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.privacy-details summary { color: var(--green); }
.privacy-copy { padding: 2px 48px 28px 0; }
.privacy-copy h3 { margin: 18px 0 4px; font-size: 14px; }
.privacy-copy p { margin: 0; color: var(--ink-soft); font-size: 12px; }
.privacy-copy .privacy-note { margin-top: 22px; padding: 14px 16px; background: var(--paper); border-radius: var(--radius-sm); }
.privacy-link-panel { padding: 25px 0; border-block: 1px solid var(--line); }
.privacy-link-panel p { margin-bottom: 12px; color: var(--ink-soft); font-size: 13px; }

.closing-section { padding: 100px 0; background: var(--mint); }
.closing-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 80px; align-items: center; }
.closing-section h2 { margin: 0; font-size: clamp(38px, 3.8vw, 52px); line-height: 1.4; letter-spacing: -.04em; }
.closing-action > p { margin-bottom: 24px; color: var(--ink-soft); }
.closing-action .button { width: 100%; }
.closing-action small { display: block; margin-top: 12px; color: var(--ink-soft); text-align: center; }

footer { background: var(--ink); color: white; padding: 36px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.footer-brand .brand-mark { background: var(--mint); color: var(--green-dark); }
.footer-brand small { color: #9eaca7; }
.footer-meta { display: flex; align-items: center; gap: 24px; }
.footer-meta a { color: #c8d2cf; font-size: 11px; text-decoration: none; }
.footer-meta a:hover, .footer-meta a:focus-visible { color: white; text-decoration: underline; }
.footer-meta p { margin: 0; color: #9eaca7; font-family: "DM Sans", sans-serif; font-size: 11px; }

.subpage { min-height: 72vh; padding: 92px 0 116px; background: var(--paper); }
.subpage-header { max-width: 840px; margin-bottom: 62px; }
.subpage-header h1 { margin-bottom: 20px; font-size: clamp(40px, 5vw, 64px); }
.subpage-header > p:last-child { color: var(--ink-soft); }
.prose { max-width: 800px; }
.prose h2 { margin: 54px 0 15px; font-size: 26px; line-height: 1.6; }
.prose h3 { margin: 34px 0 10px; font-size: 18px; }
.prose p, .prose li { color: var(--ink-soft); }
.prose a { color: var(--green); font-weight: 700; text-underline-offset: 4px; }
.article-meta { color: #71807b; font-family: "DM Sans", sans-serif; font-size: 12px; }
.article-list { border-top: 1px solid var(--ink); }
.article-list a { display: grid; grid-template-columns: 110px 1fr 60px; gap: 24px; padding: 27px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.article-list time, .article-list span { color: var(--ink-soft); font-family: "DM Sans", sans-serif; font-size: 11px; }
.article-list strong { font-size: 17px; line-height: 1.7; }
.article-list span { color: var(--green); font-weight: 700; }
.subpage-nav { display: flex; gap: 26px; align-items: center; }
.subpage-nav a { color: var(--ink-soft); font-size: 12px; font-weight: 700; text-decoration: none; }
.subpage-nav a:hover { color: var(--green); }

@media (max-width: 900px) {
  nav { display: none; }
  .hero { padding-top: 64px; }
  .hero-grid, .two-column-heading, .service-intro, .experience-header, .flow-heading, .faq-grid, .column-grid, .privacy-inner, .closing-grid { grid-template-columns: 1fr; gap: 42px; }
  .two-column-heading,
  .experience-header { gap: 32px; }
  .problem-title { max-width: 12em; }
  .experience-header h2 { max-width: 15em; font-size: clamp(34px, 4.8vw, 42px); }
  .hero-note { max-width: 500px; transform: none; }
  .service-intro { align-items: start; }
  .diagnosis-grid { grid-template-columns: 1fr; }
  .experience-grid { grid-template-columns: 1fr 1fr; }
  .flow-list { grid-template-columns: 1fr 1fr; }
  .flow-list li:nth-child(2) { border-right: 0; }
  .flow-list li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 620px) {
  .shell { width: min(calc(100% - 32px), var(--shell)); }
  .site-header .button-small { display: none; }
  .nav-wrap { min-height: 70px; }
  .hero { padding: 54px 0 76px; }
  h1 { font-size: clamp(30px, 8.2vw, 34px); line-height: 1.48; letter-spacing: -0.04em; }
  .hero-title-focus { font-size: .9em; }
  .desktop-break { display: none; }
  .lead { font-size: 15px; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 15px; }
  .hero-actions .button { width: 100%; }
  .text-link { text-align: center; }
  .hero-note { padding: 34px 28px; border-radius: 28px 28px 64px 28px; }
  .hero-note::before { width: 68px; height: 68px; right: -16px; }
  .section { padding: 76px 0; }
  .section-number { margin-bottom: 10px; font-size: 11px; letter-spacing: .12em; }
  .section h2 { font-size: clamp(24px, 7.4vw, 32px); line-height: 1.48; letter-spacing: -0.025em; }
  .problem-title { max-width: 12em; }
  .service-intro h2, .experience-header h2 { max-width: 100%; font-size: clamp(27px, 7.6vw, 32px); }
  .two-column-heading,
  .experience-header { gap: 26px; }
  .problem-list p { font-size: 15px; }
  .diagnosis-grid > div { padding: 26px 22px; }
  .diagnosis-scope li { grid-template-columns: 1fr; gap: 2px; }
  .service-cta { align-items: stretch; flex-direction: column; padding: 24px 22px; }
  .experience-header { margin-bottom: 40px; }
  .experience-grid { grid-template-columns: 1fr; }
  .experience-grid article { padding: 26px 22px; }
  .experience-grid article > span { margin-bottom: 18px; }
  .experience-note { grid-template-columns: 1fr; gap: 12px; }
  .flow-list { grid-template-columns: 1fr; }
  .flow-list li, .flow-list li:nth-child(2) { min-height: 210px; border-right: 0; border-bottom: 1px solid var(--line); }
  .flow-list li:last-child { border-bottom: 0; }
  .closing-section { padding: 76px 0; }
  .closing-section h2 { font-size: 36px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .footer-meta { align-items: flex-start; flex-direction: column; gap: 8px; }
  .column-list > a:first-child, .article-list a { grid-template-columns: 1fr; gap: 8px; }
  .subpage { padding: 68px 0 86px; }
  .subpage-nav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
