:root {
  --paper: #f2f1ed;
  --surface: #ffffff;
  --ink: #151713;
  --muted: #62665f;
  --line: #cfcfc8;
  --forest: #33473b;
  --forest-deep: #18251e;
  --signal: #9f352f;
  --warm: #ded9ce;
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans JP", "Yu Gothic", "YuGothic", "Hiragino Sans", system-ui, sans-serif;
  line-height: 1.75;
  letter-spacing: 0;
}

body.menu-open {
  overflow: hidden;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--ink);
  font-size: 12px;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 4px;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto 0;
  color: #fff;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.site-header.scrolled,
.site-header.light {
  color: var(--ink);
  background: rgba(242, 241, 237, 0.96);
  border-color: var(--line);
  backdrop-filter: blur(16px);
}

body.menu-open .site-header {
  color: #fff;
  background: var(--forest-deep);
  border-color: rgba(255, 255, 255, 0.18);
  backdrop-filter: none;
}

.header-inner {
  min-height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.wordmark {
  display: inline-flex;
  flex-direction: column;
  justify-self: start;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.wordmark small {
  margin-top: 4px;
  color: currentColor;
  font-size: 9px;
  font-weight: 500;
  opacity: 0.72;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 12px;
}

.desktop-nav a,
.header-contact {
  position: relative;
}

.desktop-nav a::after,
.header-contact::after,
.text-link::after {
  position: absolute;
  content: "";
  height: 1px;
  right: 0;
  bottom: -5px;
  left: 0;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.desktop-nav a:hover::after,
.header-contact:hover::after,
.text-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-contact {
  justify-self: end;
  font-size: 12px;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: currentColor;
  font: inherit;
  font-size: 0;
  padding: 11px;
}

.menu-button::before {
  display: block;
  width: 22px;
  height: 1px;
  content: "";
  background: currentColor;
  box-shadow: 0 6px 0 currentColor, 0 12px 0 currentColor;
}

.mobile-menu {
  position: fixed;
  z-index: 45;
  inset: 0;
  display: none;
  padding: 112px 24px 32px;
  background: var(--forest-deep);
  color: #fff;
}

.mobile-menu.open {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mobile-menu[aria-hidden="true"] {
  display: none;
}

.mobile-menu nav {
  display: grid;
  gap: 18px;
  font-size: 28px;
  line-height: 1.35;
}

.mobile-menu footer {
  display: grid;
  gap: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.mobile-break {
  display: none;
}

.hero {
  position: relative;
  min-height: min(90svh, 920px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background: var(--forest-deep);
}

.hero::after {
  position: absolute;
  content: "";
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 18%, rgba(0, 0, 0, 0.68) 100%);
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hero-enter 1.1s ease both;
}

@keyframes hero-enter {
  from {
    transform: scale(1.035);
    opacity: 0.4;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 160px 0 76px;
}

.hero-copy {
  max-width: 840px;
}

.eyebrow {
  margin: 0 0 20px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

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

h1 {
  margin-bottom: 20px;
  font-size: 72px;
  font-weight: 520;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.hero-subtitle {
  max-width: 700px;
  margin-bottom: 34px;
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.88);
  overflow-wrap: anywhere;
}

.hero-title-line {
  max-width: 760px;
  margin-bottom: 20px;
  color: #fff;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(26px, 3vw, 48px);
  font-weight: 500;
  line-height: 1.35;
}

.hero-actions,
.action-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.action-row-spaced {
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 20px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.button:hover {
  background: var(--forest);
  border-color: var(--forest);
}

.button.light {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.button.light:hover {
  color: #fff;
  background: var(--forest);
  border-color: var(--forest);
}

.button.ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}

.button.ghost-light:hover {
  background: #fff;
  color: var(--ink);
}

.button.outline {
  background: transparent;
  color: var(--ink);
}

.button.outline:hover {
  color: #fff;
}

.hero-caption {
  position: absolute;
  z-index: 3;
  right: 24px;
  bottom: 18px;
  max-width: min(560px, calc(100% - 48px));
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 9px;
  text-align: right;
}

.decision-strip {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.decision-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  align-items: stretch;
}

.decision-intro,
.decision-item {
  min-height: 144px;
  padding: 30px 28px;
}

.decision-item {
  border-left: 1px solid var(--line);
}

.decision-intro p,
.decision-item p {
  margin: 0;
}

.decision-intro strong {
  display: block;
  max-width: 300px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.55;
}

.decision-item span {
  display: block;
  margin-bottom: 15px;
  color: var(--signal);
  font-size: 10px;
  font-weight: 800;
}

.decision-item strong {
  display: block;
  margin-bottom: 5px;
  font-size: 15px;
}

.decision-item p {
  color: var(--muted);
  font-size: 11px;
}

.section {
  padding: 112px 0;
  border-bottom: 1px solid var(--line);
}

.section.dark {
  background: var(--forest-deep);
  color: #fff;
}

.section.white {
  background: var(--surface);
}

.section-heading {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 60px;
  align-items: start;
  margin-bottom: 70px;
}

.section-heading h2 {
  max-width: 780px;
  margin-bottom: 0;
  font-size: 48px;
  font-weight: 520;
  line-height: 1.24;
}

.section-heading p:not(.eyebrow) {
  max-width: 610px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.dark .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.68);
}

.service-list {
  border-top: 1px solid var(--line);
}

.service-row {
  display: grid;
  grid-template-columns: 100px 1fr 1.2fr auto;
  gap: 32px;
  align-items: start;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.service-number {
  color: var(--signal);
  font-size: 11px;
  font-weight: 800;
}

.service-row h3 {
  margin-bottom: 8px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
}

.service-row .price {
  color: var(--muted);
  font-size: 12px;
}

.service-row p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.text-link {
  position: relative;
  align-self: center;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
}

.method-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 68px;
  align-items: start;
}

.method-visual {
  position: sticky;
  top: 104px;
}

.method-visual figure,
.image-band figure,
.product-figure {
  margin: 0;
}

.method-visual img,
.image-band img {
  min-height: 520px;
  object-fit: cover;
}

figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 9px;
}

.dark figcaption {
  color: rgba(255, 255, 255, 0.52);
}

.method-steps {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.method-step {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.method-step span {
  color: rgba(255, 255, 255, 0.52);
  font-size: 10px;
}

.method-step h3 {
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 600;
}

.method-step p {
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
}

.expertise-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: start;
}

.expertise-copy h2 {
  margin-bottom: 30px;
  font-size: 46px;
  font-weight: 520;
  line-height: 1.28;
}

.expertise-copy > p {
  color: var(--muted);
  font-size: 14px;
}

.expertise-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 34px;
  border-top: 1px solid var(--line);
}

.expertise-list div {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.expertise-list div:nth-child(odd) {
  padding-right: 18px;
}

.expertise-list div:nth-child(even) {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.image-band {
  padding: 0;
  background: #111;
}

.image-band figure {
  position: relative;
}

.image-band img {
  height: 74svh;
  max-height: 900px;
}

.image-band-copy {
  position: absolute;
  inset: auto 0 0 0;
  padding: 90px 0 42px;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.74));
}

.image-band-copy h2 {
  max-width: 740px;
  margin-bottom: 12px;
  font-size: 42px;
  font-weight: 520;
  line-height: 1.3;
}

.image-band-copy p {
  max-width: 660px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.journal-item {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  background: var(--surface);
  transition: background 180ms ease;
}

.journal-item:hover {
  background: var(--warm);
}

.journal-item span {
  color: var(--signal);
  font-size: 10px;
  font-weight: 800;
}

.journal-item h3 {
  margin: 34px 0 20px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.55;
}

.journal-item p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.contact-section {
  background: var(--forest);
  color: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 70px;
  align-items: end;
}

.contact-grid h2 {
  max-width: 800px;
  margin-bottom: 18px;
  font-size: 52px;
  font-weight: 520;
  line-height: 1.24;
}

.contact-grid p {
  max-width: 660px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.contact-actions {
  display: grid;
  gap: 12px;
}

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

.contact-actions-inline {
  margin-top: 32px;
}

.notice {
  margin-top: 24px;
  padding: 18px 20px;
  border-left: 3px solid var(--signal);
  background: var(--paper);
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  padding: 44px 0 28px;
  color: #fff;
  background: var(--forest-deep);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 50px;
}

.footer-brand strong {
  font-size: 16px;
}

.footer-brand p {
  max-width: 430px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 8px;
  font-size: 10px;
}

.footer-links strong {
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 9px;
  text-transform: uppercase;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 42px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.48);
  font-size: 9px;
}

.legal-main {
  padding-top: 72px;
}

.legal-hero {
  padding: 108px 0 76px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.legal-hero h1 {
  max-width: 920px;
  margin-bottom: 24px;
  font-size: 56px;
  font-weight: 520;
  line-height: 1.15;
}

.legal-hero .legal-lead {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 820px);
  gap: 80px;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 104px;
  display: grid;
  border-top: 1px solid var(--line);
}

.legal-toc strong,
.legal-toc a {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
}

.legal-toc strong {
  color: var(--muted);
  text-transform: uppercase;
}

.legal-toc a:hover {
  color: var(--signal);
}

.legal-content {
  min-width: 0;
}

.legal-section {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section h2 {
  margin-bottom: 18px;
  font-size: 30px;
  font-weight: 550;
  line-height: 1.35;
}

.legal-section h3 {
  margin: 28px 0 10px;
  font-size: 16px;
  font-weight: 650;
}

.legal-section p,
.legal-section li,
.definition-list dt,
.definition-list dd {
  color: var(--muted);
  font-size: 12px;
}

.legal-section ul,
.legal-section ol {
  display: grid;
  gap: 8px;
  padding-left: 1.4em;
}

.legal-section .notice {
  margin: 24px 0 0;
  padding-left: 18px;
  border-left: 2px solid var(--signal);
  color: var(--ink);
}

.definition-list {
  display: grid;
  grid-template-columns: minmax(150px, 0.35fr) minmax(0, 0.65fr);
  margin: 0;
  border-top: 1px solid var(--line);
}

.definition-list dt,
.definition-list dd {
  margin: 0;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.definition-list dt {
  padding-right: 24px;
  color: var(--ink);
  font-weight: 700;
}

.inline-link {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-hero {
  position: relative;
  min-height: 720px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
  background: var(--forest-deep);
}

.page-hero::after {
  position: absolute;
  content: "";
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.13), rgba(0, 0, 0, 0.75));
}

.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 160px 0 68px;
}

.page-hero h1 {
  max-width: 1120px;
  font-size: 58px;
}

.page-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin: 30px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
}

.product-intro {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 70px;
  align-items: start;
}

.product-intro h2 {
  margin-bottom: 24px;
  font-size: 46px;
  font-weight: 520;
  line-height: 1.3;
}

.product-intro p {
  color: var(--muted);
  font-size: 13px;
}

.product-figure {
  background: #e9e7e1;
}

.product-figure img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.output-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 48px;
  border: 1px solid var(--line);
  background: var(--line);
}

.output-item {
  min-height: 190px;
  padding: 26px;
  background: var(--surface);
}

.output-item span {
  color: var(--signal);
  font-size: 9px;
  font-weight: 800;
}

.output-item h3 {
  margin: 22px 0 8px;
  font-size: 17px;
  font-weight: 600;
}

.output-item p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.gallery-grid figure {
  margin: 0;
}

.gallery-grid img {
  background: #e9e7e1;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  font-size: 12px;
}

.comparison-table th,
.comparison-table td {
  padding: 20px 18px;
  border: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

.comparison-table th {
  font-weight: 700;
}

.comparison-table td {
  color: var(--muted);
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.plan {
  padding: 34px;
  background: var(--surface);
}

.plan.recommended {
  color: #fff;
  background: var(--forest);
}

.plan span {
  color: var(--signal);
  font-size: 10px;
  font-weight: 800;
}

.plan.recommended span {
  color: rgba(255, 255, 255, 0.58);
}

.plan h3 {
  margin: 20px 0 2px;
  font-size: 28px;
  font-weight: 550;
}

.plan strong {
  display: block;
  margin-bottom: 28px;
  font-size: 14px;
}

.plan ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 11px;
}

.plan.recommended ul {
  color: rgba(255, 255, 255, 0.72);
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 22px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.faq-item > span {
  color: var(--signal);
  font-size: 11px;
  font-weight: 800;
}

.faq-item h3 {
  margin-bottom: 9px;
  font-size: 15px;
}

.faq-item p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

[data-reveal] {
  opacity: 1;
  transform: none;
  transition: opacity 600ms ease, transform 600ms ease;
}

[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 960px) {
  .shell {
    width: min(100% - 32px, var(--max));
  }

  .header-inner {
    display: flex;
    justify-content: space-between;
  }

  .desktop-nav,
  .header-contact {
    display: none;
  }

  .menu-button {
    display: block;
    position: absolute;
    top: 18px;
    right: 16px;
    z-index: 60;
  }

  h1 {
    font-size: 50px;
  }

  .hero {
    min-height: 86svh;
  }

  .hero-content {
    padding-bottom: 50px;
  }

  .hero-subtitle {
    font-size: 14px;
  }

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

  .decision-intro,
  .decision-item {
    min-height: auto;
  }

  .decision-item:nth-child(2) {
    border-left: 1px solid var(--line);
  }

  .decision-item:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .decision-item:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .section {
    padding: 82px 0;
  }

  .section-heading,
  .method-grid,
  .expertise-grid,
  .contact-grid,
  .product-intro {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .section-heading {
    margin-bottom: 48px;
  }

  .section-heading h2,
  .expertise-copy h2,
  .contact-grid h2,
  .product-intro h2 {
    font-size: 38px;
  }

  .service-row {
    grid-template-columns: 54px 1fr auto;
  }

  .service-row > p {
    grid-column: 2 / -1;
  }

  .method-visual {
    position: static;
  }

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

  .journal-item {
    min-height: 190px;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }

  .page-hero {
    min-height: 680px;
  }

  .page-hero h1 {
    font-size: 48px;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .legal-toc {
    position: static;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 24px, var(--max));
  }

  .header-inner {
    min-height: 62px;
  }

  .hero {
    min-height: 82svh;
  }

  .hero-content {
    padding: 120px 0 34px;
  }

  h1 {
    font-size: 36px;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .hero-subtitle {
    margin-bottom: 24px;
    font-size: 12px;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .hero-actions,
  .action-row {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-caption {
    display: none;
  }

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

  .decision-item {
    border-top: 1px solid var(--line);
    border-left: 0 !important;
  }

  .section {
    padding: 64px 0;
  }

  .section-heading h2,
  .expertise-copy h2,
  .contact-grid h2,
  .product-intro h2,
  .image-band-copy h2 {
    font-size: 31px;
  }

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

  .service-row .text-link {
    grid-column: 2;
    justify-self: start;
  }

  .method-visual img,
  .image-band img {
    min-height: 420px;
  }

  .expertise-list {
    grid-template-columns: 1fr;
  }

  .expertise-list div:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }

  .image-band-copy {
    padding: 70px 0 24px;
  }

  .output-grid,
  .gallery-grid,
  .plan-grid {
    grid-template-columns: 1fr;
  }

  .page-hero {
    min-height: 620px;
  }

  .page-hero-content {
    padding: 120px 0 36px;
  }

  .page-hero h1 {
    max-width: 100%;
    font-size: 32px;
    word-break: break-all;
  }

  .mobile-break {
    display: initial;
  }

  .page-hero p {
    max-width: 100%;
    font-size: 12px;
    word-break: break-all;
  }

  .page-hero-content .shell {
    width: calc(100% - 32px);
  }

  .meta-row {
    max-width: 100%;
    gap: 6px 14px;
    word-break: break-all;
  }

  .comparison-table {
    font-size: 10px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 12px 9px;
  }

  .footer-grid,
  .footer-bottom {
    grid-template-columns: 1fr;
    display: grid;
  }

  .legal-main {
    padding-top: 62px;
  }

  .legal-hero {
    padding: 72px 0 54px;
  }

  .legal-hero h1 {
    font-size: 38px;
  }

  .definition-list {
    grid-template-columns: 1fr;
  }

  .definition-list dt {
    padding-bottom: 4px;
    border-bottom: 0;
  }

  .definition-list dd {
    padding-top: 0;
  }
}

/* 2026-06-12 B2B priority correction */
.diagnosis-form,
.diagnosis-result-panel,
.article-shell,
.article-cta,
.related-links {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 32px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.field-grid label {
  display: grid;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
}

.field-grid select,
.field-grid input,
.field-grid textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #f8f7f3;
  color: var(--ink);
  padding: 12px;
  font: inherit;
  font-size: 13px;
}

.diagnosis-result-panel ul,
.article-shell ul,
.article-cta ul,
.related-links ul {
  margin: 18px 0 0;
  padding-left: 1.2em;
}

.diagnosis-result-panel li,
.article-shell li,
.article-cta li,
.related-links li {
  margin: 8px 0;
}

a.output-item {
  color: inherit;
}

.article-main {
  padding-top: 104px;
}

.article-index-hero h1,
.article-shell h1 {
  max-width: 920px;
  margin: 0 0 24px;
  font-size: 48px;
  line-height: 1.15;
}

.article-shell {
  margin: 0 auto 64px;
}

.article-shell h2,
.article-cta h2,
.related-links h2 {
  margin-top: 40px;
  font-size: 28px;
  line-height: 1.35;
}

.article-shell h3 {
  margin-top: 28px;
  font-size: 20px;
}

.article-shell p {
  color: var(--muted);
  font-size: 15px;
  overflow-wrap: anywhere;
  word-break: normal;
}

.article-shell li,
.article-shell td,
.article-shell th {
  overflow-wrap: anywhere;
  word-break: normal;
}

.article-cta {
  margin-top: 44px;
  background: var(--forest);
  color: #fff;
}

.article-cta p {
  color: rgba(255, 255, 255, 0.82);
}

.related-links {
  margin-top: 28px;
}

@media (max-width: 960px) {
  .field-grid {
    grid-template-columns: 1fr;
  }

  .article-main {
    padding-top: 84px;
  }

  .article-index-hero h1,
  .article-shell h1 {
    font-size: 32px;
  }

  .diagnosis-form,
  .diagnosis-result-panel,
  .article-shell,
  .article-cta,
  .related-links {
    padding: 22px;
  }
}


/* 2026-06-12 sample page theme polish */
.sample-theme-gyosei { --sample-accent: #33473b; }
.sample-theme-minpaku { --sample-accent: #2f4d5c; }
.sample-theme-realestate { --sample-accent: #5a4634; }
.sample-theme-akiya { --sample-accent: #3f563b; }
.sample-theme-renovation { --sample-accent: #7a3e32; }

.page-hero.sample-theme-gyosei,
.page-hero.sample-theme-minpaku,
.page-hero.sample-theme-realestate,
.page-hero.sample-theme-akiya,
.page-hero.sample-theme-renovation {
  background: var(--sample-accent);
}

.page-hero.sample-theme-gyosei::after,
.page-hero.sample-theme-minpaku::after,
.page-hero.sample-theme-realestate::after,
.page-hero.sample-theme-akiya::after,
.page-hero.sample-theme-renovation::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), color-mix(in srgb, var(--sample-accent) 72%, #000 28%));
}

.page-hero.sample-theme-gyosei .button.light,
.page-hero.sample-theme-minpaku .button.light,
.page-hero.sample-theme-realestate .button.light,
.page-hero.sample-theme-akiya .button.light,
.page-hero.sample-theme-renovation .button.light {
  color: var(--sample-accent);
}

.sample-visual-strip {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.sample-visual-strip.reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.sample-visual-strip.reverse figure {
  order: 2;
}

.sample-visual-strip figure {
  margin: 0;
  background: #e9e7e1;
}

.sample-visual-strip img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.sample-visual-strip h2 {
  margin: 14px 0 18px;
  font-size: 40px;
  line-height: 1.35;
}

.sample-visual-strip p:not(.eyebrow) {
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 820px) {
  .sample-visual-strip,
  .sample-visual-strip.reverse {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .sample-visual-strip.reverse figure {
    order: 0;
  }
}


.enhanced-diagnosis-form {
  display: grid;
  gap: 28px;
}

.field-section {
  border: 1px solid #d9d5cd;
  padding: 24px;
  margin: 0;
  background: #fbfaf7;
}

.field-section legend {
  padding: 0 10px;
  font-weight: 700;
  color: #171717;
}

.diagnosis-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: #d8d4cc;
  margin: 24px 0;
  border: 1px solid #d8d4cc;
}

.diagnosis-summary-grid > div {
  background: #fff;
  padding: 18px;
}

.diagnosis-summary-grid span {
  display: block;
  color: #777;
  font-size: 12px;
  margin-bottom: 8px;
}

.diagnosis-summary-grid strong {
  font-size: 22px;
}

.diagnosis-cost-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 14px;
}

.diagnosis-cost-table th,
.diagnosis-cost-table td {
  border: 1px solid #d8d4cc;
  padding: 12px;
  vertical-align: top;
  text-align: left;
}

.diagnosis-cost-table thead th {
  background: #222;
  color: #fff;
}

.diagnosis-note {
  border-left: 3px solid #9b1c1c;
  padding-left: 14px;
  color: #5a5148;
}

.article-cta-box {
  border: 1px solid #d8d4cc;
  padding: 28px;
  margin: 36px 0;
  background: #f7f5f1;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #777;
  font-size: 12px;
  margin: 12px 0 28px;
}

@media (max-width: 820px) {
  .diagnosis-summary-grid {
    grid-template-columns: 1fr;
  }

  .field-section {
    padding: 18px;
  }

  .diagnosis-cost-table {
    font-size: 12px;
  }
}


/* 2026-06-12 SEO article rebuild */
.article-seo-shell {
  max-width: 980px;
}

.article-seo-brief,
.article-summary,
.article-toc {
  border: 1px solid #d8d4cc;
  background: #fbfaf7;
  padding: 22px;
  margin: 24px 0;
}

.article-seo-brief {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

.article-seo-brief strong,
.article-toc strong {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  color: #171717;
}

.keyword-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.keyword-chips span {
  border: 1px solid #d8d4cc;
  background: #fff;
  padding: 5px 9px;
  font-size: 12px;
}

.article-toc {
  display: grid;
  gap: 8px;
}

.article-toc a {
  color: #33473b;
  text-decoration: none;
  border-bottom: 1px solid #ddd7cc;
  padding-bottom: 7px;
}

.article-section {
  margin: 42px 0;
}

.article-summary ul,
.article-section ul {
  padding-left: 1.2em;
}

.article-table-wrap {
  overflow-x: auto;
  margin: 20px 0 8px;
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  font-size: 14px;
}

.article-table th,
.article-table td {
  border: 1px solid #d8d4cc;
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.article-table th {
  background: #1f2722;
  color: #fff;
}

.article-disclaimer {
  border-top: 1px solid #d8d4cc;
  padding-top: 24px;
  color: #5a5148;
}

@media (max-width: 820px) {
  .article-seo-brief {
    grid-template-columns: 1fr;
  }

  .article-table {
    min-width: 100%;
    font-size: 12px;
  }

  .article-table th,
  .article-table td {
    overflow-wrap: anywhere;
    word-break: normal;
  }
}


/* 2026-06-13 SEO article visual upgrade */
.article-hero-media {
  margin: 30px 0 26px;
  border: 1px solid #d8d4cc;
  background: #111712;
}

.article-hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-hero-media figcaption {
  margin: 0;
  padding: 12px 16px;
  color: #f7f3eb;
  font-size: 12px;
  line-height: 1.7;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  overflow-wrap: anywhere;
}

.article-visual-summary {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 24px;
  align-items: stretch;
  margin: 28px 0;
  border-top: 1px solid #171717;
  border-bottom: 1px solid #d8d4cc;
  padding: 24px 0;
}

.article-visual-copy {
  padding-right: 18px;
}

.article-visual-copy h2 {
  margin: 6px 0 16px;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.2;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.article-visual-copy ul {
  margin: 0;
  padding-left: 1.15em;
  color: #413b34;
}

.article-decision-flow {
  counter-reset: article-step;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-decision-flow li {
  min-height: 150px;
  border: 1px solid #d8d4cc;
  background: #fbfaf7;
  padding: 16px;
}

.article-decision-flow span {
  display: block;
  color: #9b2f22;
  font-family: "Times New Roman", serif;
  font-size: 14px;
  line-height: 1;
  margin-bottom: 18px;
}

.article-decision-flow strong {
  display: block;
  color: #171717;
  font-size: 17px;
  margin-bottom: 8px;
}

.article-decision-flow p {
  margin: 0;
  color: #5a5148;
  font-size: 13px;
  line-height: 1.7;
}

.article-seo-brief {
  margin-top: 30px;
}

.article-section li {
  display: list-item;
  min-height: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

.article-section .text-link,
.article-cta-box .button {
  display: inline-block;
  max-width: 100%;
  min-height: 48px;
  height: auto;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-all;
  line-break: anywhere;
}

.article-section strong,
.article-summary strong,
.article-visual-summary strong {
  color: #171717;
  font-weight: 750;
}

.article-section a.text-link {
  color: var(--forest);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.article-section a.source-link {
  margin-top: 6px;
  font-size: 12px;
}

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

.related-article-card {
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: start;
  min-height: 100%;
  border: 1px solid #d8d4cc;
  background: #fbfaf7;
  color: #171717;
  text-decoration: none;
  overflow: visible;
}

.related-article-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid #e3ded4;
  background-color: #f3f0e8;
  background-position: center center;
  background-size: contain;
  background-repeat: no-repeat;
  filter: saturate(0.9);
}

.related-article-thumb-minpaku-start-checklist {
  background-image: url("article-minpaku-start-checklist-premium.webp");
}

.related-article-thumb-akiya-minpaku-building-risk {
  background-image: url("article-akiya-minpaku-building-risk-premium.webp");
}

.related-article-thumb-apartment-minpaku-management-rules {
  background-image: url("article-apartment-minpaku-management-rules-premium.webp");
}

.related-article-thumb-minpaku-180-day-rule {
  background-image: url("article-minpaku-180-day-rule-premium.webp");
}

.related-article-thumb-minpaku-renovation-cost-risk {
  background-image: url("article-minpaku-renovation-cost-risk-premium.webp");
}

.related-article-thumb-minpaku-side-business-risk {
  background-image: url("article-minpaku-side-business-risk-premium.webp");
}

.related-article-thumb-minpaku-vs-kanishukusho {
  background-image: url("article-minpaku-vs-kanishukusho-premium.webp");
}

.related-article-thumb-rental-minpaku-check {
  background-image: url("article-rental-minpaku-check-premium.webp");
}


.related-article-thumb-minpaku-fire-equipment-check {
  background-image: url("article-minpaku-fire-equipment-check-premium.webp");
}

.related-article-thumb-minpaku-consulting-contacts {
  background-image: url("product-comparison.webp");
}

.related-article-card span:not(.related-article-thumb) {
  display: block;
  padding: 14px 14px 4px;
  color: #8a2e22;
  font-size: 11px;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}

.related-article-card strong {
  display: block;
  padding: 0 14px 16px;
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: 0;
  overflow: visible;
  overflow-wrap: anywhere;
  word-break: normal;
  line-break: anywhere;
}

.related-article-card:hover,
.related-article-card:focus-visible {
  border-color: #171717;
  outline: none;
}

@media (max-width: 820px) {
  .article-visual-summary {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px 0;
  }

  .article-visual-copy {
    padding-right: 0;
  }

  .article-decision-flow {
    grid-template-columns: 1fr;
  }

  .article-decision-flow li {
    min-height: auto;
  }

  .related-article-grid {
    grid-template-columns: 1fr;
  }
}
