:root {
  --bg: #ffffff;
  --soft: #f7f7f3;
  --text: #121212;
  --muted: #646464;
  --line: #dedbd1;
  --line-strong: #b9b4a7;
  --primary: #172431;
  --primary-dark: #0c1218;
  --accent: #947436;
  --container: 1320px;
  --fs-hero: clamp(2.45rem, 5vw, 4.65rem);
  --fs-section-title: clamp(1.62rem, 2.7vw, 2.38rem);
  --fs-lead: clamp(1.02rem, 1.55vw, 1.14rem);
  --fs-body-small: 0.95rem;
}


* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Noto Sans JP", "Noto Sans CJK JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Yu Gothic UI", Meiryo, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.82;
  letter-spacing: 0.005em;
  word-break: normal;
  overflow-wrap: normal;
  line-break: strict;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(23, 36, 49, 0.02) 1px, transparent 1px),
    linear-gradient(180deg, rgba(23, 36, 49, 0.016) 1px, transparent 1px);
  background-size: 112px 112px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.34), transparent 62%);
}

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

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

h1 {
  max-width: 900px;
  margin-bottom: 26px;
  font-size: var(--fs-hero);
  line-height: 1.04;
  letter-spacing: -0.045em;
  font-weight: 800;
}

h2 {
  margin-bottom: 0;
  font-size: var(--fs-section-title);
  line-height: 1.16;
  letter-spacing: -0.026em;
  font-weight: 800;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.04rem;
  line-height: 1.45;
  letter-spacing: -0.008em;
  font-weight: 700;
}

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

.text-line {
  display: block;
  margin-bottom: 0.48em;
}

.text-line:last-child { margin-bottom: 0; }

ul, ol { margin: 0; padding: 0; }
li { list-style: none; }

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  transition: box-shadow 0.24s ease, background 0.24s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 24px rgba(23, 36, 49, 0.07);
}

.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;
  font-weight: 700;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  transition: transform 0.22s ease, background 0.22s ease;
}

.brand:hover .brand-mark,
.brand:focus-visible .brand-mark {
  transform: translateY(-1px);
  background: var(--primary-dark);
}

.brand-name { font-size: 1.02rem; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 19px;
  color: var(--muted);
  font-size: 0.91rem;
}

.site-nav a {
  position: relative;
  white-space: nowrap;
  transition: color 0.22s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--text);
  transition: width 0.22s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible { color: var(--text); }

.site-nav a:hover::after,
.site-nav a:focus-visible::after { width: 100%; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
  transition: transform 0.24s ease, opacity 0.18s ease;
}

.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(42deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-42deg); }

.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;
}



.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.with-icon,
.summary-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.item-icon {
  width: 1.05em;
  height: 1.05em;
  flex: 0 0 auto;
  color: var(--accent);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.86;
}

.compare-item .item-icon,
.pricing-check .item-icon,
.faq-stack .item-icon {
  width: 1em;
  height: 1em;
}

.section {
  position: relative;
  padding: 112px 0;
}

.section[id] { scroll-margin-top: 96px; }

.section + .section { border-top: 1px solid var(--line); }
.muted-section { background: var(--soft); }

.section-head { max-width: 850px; }
.section-head > p:not(.section-index) { margin: 24px 0 0; }
.section-head > p:not(.section-index) + p:not(.section-index) { margin-top: 0.48em; }

.section-index {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.hero {
  min-height: calc(100svh - 72px);
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -8vw;
  top: 24%;
  width: 54vw;
  height: 1px;
  background: var(--line-strong);
  transform: rotate(-22deg) scaleX(0.72);
  transform-origin: right center;
  opacity: 0.42;
  animation: heroRuleIn 0.9s ease 0.18s both;
}

@keyframes heroRuleIn {
  from { opacity: 0; transform: rotate(-22deg) scaleX(0.36); }
  to { opacity: 0.42; transform: rotate(-22deg) scaleX(1); }
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.lead {
  max-width: 760px;
  margin-bottom: 0;
  font-size: var(--fs-lead);
}


.small-note {
  margin: 22px 0 0;
  font-size: 0.92rem;
}

.line-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 54px;
  border-top: 1px solid var(--line-strong);
}

.hero-summary { max-width: 880px; }
.single-line { margin-top: 40px; }

.pricing-check {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
}

.pricing-check h3 { margin-bottom: 8px; }
.pricing-check p { max-width: 980px; margin-bottom: 0; }

.line-item,
.faq-item {
  position: relative;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  transition: border-color 0.24s ease, transform 0.24s ease;
}

.line-item::before,
.faq-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: var(--accent);
  opacity: 0;
  transform: scaleY(0.4);
  transform-origin: center;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.line-item:hover,
.faq-item:hover { border-bottom-color: var(--line-strong); }

.line-item:hover::before,
.faq-item:hover::before,
.line-item:focus-within::before,
.faq-item:focus-within::before {
  opacity: 0.45;
  transform: scaleY(1);
}

.item-number,
.compare-number {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.line-item p,
.compare-item p,
.faq-item p {
  max-width: 860px;
  margin-bottom: 0;
  font-size: var(--fs-body-small);
}

.emphasis-line { border-bottom-color: var(--line-strong); }
.emphasis-line h3 { color: var(--primary); }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin-top: 34px;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(23, 36, 49, 0.10);
}
.button.primary { background: var(--primary); color: #fff; }
.button.primary::after {
  content: "";
  width: 0.42em;
  height: 0.42em;
  margin-left: 0.72em;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.2s ease;
}
.button.primary:hover::after,
.button.primary:focus-visible::after { transform: rotate(45deg) translate(2px, -3px); }
.button.primary:hover,
.button.primary:focus-visible { background: var(--primary-dark); }
.button.secondary { padding-inline: 0; border-bottom-color: var(--text); color: var(--text); }
.button.light { background: #fff; color: var(--primary); }

.compare-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 72px);
  margin-top: 42px;
  overflow-x: visible;
  padding-bottom: 0;
}

.compare-item {
  width: auto;
  min-width: 0;
  min-height: 0;
  padding: 0;
  background: transparent;
  border: 0;
  transition: transform 0.24s ease;
}

.compare-item:hover { transform: translateY(-2px); }
.compare-item p { max-width: none; }
.compare-item .text-line { white-space: normal; }

.inline-cta {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-top: 42px;
  padding-top: 0;
  border-top: 0;
}

.inline-cta-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.42em;
  max-width: 720px;
}

.inline-cta p {
  margin: 0;
  white-space: normal;
}

.inline-cta p + p {
  color: var(--muted);
  font-size: var(--fs-body-small);
}

.inline-cta .button {
  margin-left: auto;
  flex: 0 0 auto;
}

.faq-stack {
  display: grid;
  gap: 0;
  margin-top: 54px;
  border-top: 1px solid var(--line-strong);
}

.faq-stack summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  cursor: pointer;
  color: var(--text);
  font-weight: 700;
  list-style: none;
}

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

.faq-stack summary::after {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 1.2rem;
  line-height: 1;
  transform-origin: 50% 50%;
  transition: transform 0.24s ease, color 0.24s ease;
}

.faq-stack details.is-open summary::after {
  transform: rotate(45deg);
  color: var(--text);
}

.details-panel {
  height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition: height 0.28s ease, opacity 0.22s ease, transform 0.22s ease;
}

.details-inner { padding-top: 16px; }
.faq-stack details.is-open .details-panel { opacity: 1; transform: translateY(0); }

.contact-section { background: var(--primary); color: #fff; }
.contact-inner { max-width: 900px; }
.contact-section .section-index,
.contact-section h2,
.contact-section p { color: #fff; }
.contact-section p { max-width: 760px; color: rgba(255, 255, 255, 0.78); }

.site-footer {
  padding: 30px 0;
  color: var(--muted);
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.9rem;
}

.footer-inner p { margin-bottom: 0; }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible { opacity: 1; transform: translateY(0); }

.reveal .line-item,
.reveal .compare-item,
.reveal .faq-item {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.24s ease;
}

.reveal.is-visible .line-item,
.reveal.is-visible .compare-item,
.reveal.is-visible .faq-item {
  opacity: 1;
  transform: translateY(0);
}

.reveal.is-visible .line-item:nth-child(2),
.reveal.is-visible .compare-item:nth-child(2),
.reveal.is-visible .faq-item:nth-child(2) { transition-delay: 0.04s; }

.reveal.is-visible .line-item:nth-child(3),
.reveal.is-visible .compare-item:nth-child(3),
.reveal.is-visible .faq-item:nth-child(3) { transition-delay: 0.08s; }

.reveal.is-visible .line-item:nth-child(4),
.reveal.is-visible .faq-item:nth-child(4) { transition-delay: 0.12s; }

@keyframes navDrop {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}


@media (min-width: 1200px) {
  .section-head > .text-line,
  .lead,
  .contact-inner > .text-line {
    max-width: none;
    white-space: nowrap;
  }
}

@media (min-width: 1600px) {
  :root {
    --container: 1280px;
    --fs-hero: 4.55rem;
    --fs-section-title: 2.32rem;
  }

  .hero-inner { max-width: 1180px; }
}

@media (max-width: 1180px) {
  :root {
    --fs-hero: clamp(2.32rem, 5.2vw, 4.05rem);
    --fs-section-title: clamp(1.56rem, 3vw, 2.16rem);
    --fs-lead: clamp(1rem, 1.7vw, 1.1rem);
  }
}

@media (min-width: 760px) {
  h1, h2, .section-index, .line-item h3, .compare-item h3 { text-wrap: balance; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .reveal .line-item, .reveal .compare-item, .reveal .faq-item { opacity: 1; transform: none; }
}

@media (max-width: 1040px) {
  .site-nav { gap: 14px; font-size: 0.86rem; }

  .compare-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .compare-item {
    padding: 24px 0;
    border-top: 1px solid var(--line);
  }

  .compare-item:first-child { border-top-color: var(--line-strong); }
}

@media (max-width: 940px) {
  .section { padding: 82px 0; }
  .hero { min-height: auto; padding: 88px 0 84px; }

  .site-nav {
    position: absolute;
    top: 72px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
    background: var(--bg);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: flex;
    animation: navDrop 0.22s ease both;
  }

  .site-nav a { padding: 12px 14px; }
  .nav-toggle { display: block; }
  .footer-inner { flex-direction: column; }
}

@media (max-width: 759px) {
  .compare-grid {
    grid-template-columns: 1fr;
    justify-content: stretch;
    gap: 0;
    overflow-x: visible;
    padding-bottom: 0;
  }

  .compare-item {
    width: auto;
    min-height: auto;
    padding-right: 0;
  }
  .compare-item p { white-space: normal; }

  .text-line { white-space: normal; }

  .inline-cta { align-items: stretch; flex-direction: column; }
  .inline-cta-copy { grid-template-columns: 1fr; gap: 10px; }
  .inline-cta .button { margin-left: 0; }
}

@media (max-width: 560px) {
  :root {
    --fs-hero: clamp(1.82rem, 7.6vw, 2.32rem);
    --fs-section-title: clamp(1.34rem, 5.7vw, 1.62rem);
    --fs-lead: clamp(0.98rem, 4.1vw, 1.04rem);
    --fs-body-small: 0.92rem;
  }

  h1 {
    max-width: 100%;
    margin-bottom: 22px;
    line-height: 1.12;
    letter-spacing: -0.026em;
  }

  h2 {
    line-height: 1.22;
    letter-spacing: -0.014em;
  }

  .container { width: min(100% - 28px, var(--container)); }
  .brand-name { font-size: 0.96rem; }
  .section { padding: 74px 0; }
  .line-stack, .faq-stack { margin-top: 42px; }
  .line-item, .faq-item { padding: 26px 0; }
  .actions .button { width: 100%; }
  .actions .button.secondary {
    width: auto;
    align-self: center;
    justify-content: center;
    box-shadow: none;
  }
}

@media (max-width: 374px) {
  :root { --fs-hero: clamp(1.72rem, 7.4vw, 1.82rem); }
  .brand-name { font-size: 0.9rem; }
}


.footer-links { display: flex; flex-wrap: wrap; gap: 0.8rem 1.2rem; align-items: center; }
.footer-links a { color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; opacity: 0.86; }
.footer-links a:hover { opacity: 1; }
.legal-page { background: var(--bg); color: var(--text); min-height: 100vh; }
.legal-container { max-width: 860px; }
.legal-container h1 { font-size: clamp(2rem, 5vw, 3.6rem); margin-bottom: 2rem; }
.legal-container h2 { margin-top: 2.4rem; font-size: clamp(1.22rem, 2.6vw, 1.6rem); }
.legal-container p, .legal-container li, .legal-list dd { line-height: 1.9; }
.legal-container ul { padding-left: 1.2em; }
.legal-list { display: grid; gap: 0; border-top: 1px solid var(--line); margin-top: 1.5rem; }
.legal-list > div { display: grid; grid-template-columns: minmax(160px, 0.32fr) 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.legal-list dt { font-weight: 800; }
.legal-list dd { margin: 0; }
@media (max-width: 760px) { .legal-list > div { grid-template-columns: 1fr; gap: 0.35rem; } }


.policy-note { padding: 1rem 1.1rem; border: 1px solid var(--line); background: rgba(255,255,255,0.45); border-radius: 1rem; }
.legal-container .note-list { display: grid; gap: 0.8rem; margin-top: 1rem; padding-left: 1.1em; }
.legal-container .legal-box { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1.2rem 0; margin: 1.5rem 0; }
.legal-meta { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.92rem; }


/* v1.7.4 利用前確認セクション */
.legal-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 48px 0 22px;
  border: 1px solid var(--line);
  background: var(--line);
}
.legal-summary-card {
  display: grid;
  align-content: start;
  gap: 0.8rem;
  min-height: 230px;
  padding: 1.35rem;
  background: rgba(255,255,255,0.92);
}
.legal-summary-card h3 { margin: 0; font-size: 1.04rem; }
.legal-summary-card p { margin: 0; }
.legal-summary-card a {
  align-self: end;
  width: fit-content;
  border-bottom: 1px solid currentColor;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}
@media (max-width: 980px) {
  .legal-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .legal-summary-grid { grid-template-columns: 1fr; margin-top: 34px; }
  .legal-summary-card { min-height: auto; }
}


/* v1.7.5 レイアウト・フォント補正
   - トップコピーを1行固定
   - 法務系ページの本文・箇条書きのフォントを統一
   - ご利用前カードのリンク位置をカード下部に揃える
*/
.hero h1 {
  max-width: none;
  white-space: nowrap;
  font-size: clamp(1.52rem, 6.4vw, 4.65rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.legal-container,
.legal-container *,
.legal-container *::before,
.legal-container *::after {
  font-family: inherit;
}

.legal-container p,
.legal-container li,
.legal-container dt,
.legal-container dd,
.legal-list dd {
  font-family: inherit;
  letter-spacing: inherit;
}

.legal-container ul,
.legal-container ol {
  margin: 1rem 0;
  padding-left: 1.45em;
}

.legal-container ul li { list-style: disc; }
.legal-container ol li { list-style: decimal; }
.legal-container li + li { margin-top: 0.35rem; }
.legal-container li::marker { font-family: inherit; color: currentColor; }

.legal-summary-grid { align-items: stretch; }
.legal-summary-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 260px;
}
.legal-summary-card p { flex: 0 0 auto; }
.legal-summary-card a {
  margin-top: auto;
  align-self: flex-start;
}

@media (max-width: 560px) {
  .hero h1 { font-size: clamp(1.48rem, 6.2vw, 2rem); }
  .legal-summary-card { min-height: auto; }
  .legal-summary-card a { margin-top: 1rem; }
}


/* v1.7.6 法務表示調整
   - 特商法ページは準備中としてマスク
   - 法務系ページの箇条書きの色・ウェイトを本文に統一
*/
.legal-mask-box h2 {
  margin-top: 0;
}
.legal-container p,
.legal-container li,
.legal-container dd,
.legal-list dd,
.legal-container .note-list li {
  color: var(--muted);
  font-weight: 400;
  font-size: 1rem;
}
.legal-container dt {
  color: var(--text);
}
.legal-container li::marker {
  color: currentColor;
  font-weight: 400;
}
