﻿:root {
  --ink: #14231f;
  --ink-soft: #344a42;
  --forest: #155b45;
  --forest-deep: #0d3d30;
  --mint: #dcece4;
  --cream: #f5f0e6;
  --paper: #fffdf8;
  --coral: #e66b4e;
  --gold: #d5a549;
  --line: #d8d7cf;
  --white: #ffffff;
  --shadow: 0 18px 60px rgba(20, 35, 31, 0.10);
  --shadow-small: 0 8px 28px rgba(20, 35, 31, 0.08);
  --radius: 22px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, "Noto Sans JP", "Yu Gothic UI", Meiryo, system-ui, sans-serif;
  line-height: 1.65;
  max-width: 100%;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 86% 8%, rgba(213,165,73,.18), transparent 25rem),
    radial-gradient(circle at 7% 36%, rgba(21,91,69,.12), transparent 28rem),
    var(--cream);
}
a { color: inherit; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.shell { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; transform: translateY(-150%); background: var(--ink); color: white; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(245,240,230,.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(20,35,31,.10);
}
.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 900; letter-spacing: -.03em; }
.brand-mark { width: 39px; height: 39px; border-radius: 12px; display: grid; place-items: center; background: var(--forest); color: white; font-family: Georgia, serif; font-size: 22px; box-shadow: 0 6px 16px rgba(21,91,69,.22); }
.brand-name span { color: var(--coral); }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { text-decoration: none; font-size: 14px; font-weight: 760; color: var(--ink-soft); }
.nav-links a:hover { color: var(--forest); }
.lang-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--paper); }
.lang-toggle button { border: 0; background: transparent; color: var(--ink-soft); border-radius: 999px; padding: 6px 10px; cursor: pointer; font-size: 12px; font-weight: 850; }
.lang-toggle button.active { background: var(--ink); color: white; }
.menu-toggle { display: none; border: 1px solid var(--line); background: var(--paper); border-radius: 10px; padding: 8px 10px; }

.hero { padding: 82px 0 66px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 70px; align-items: center; }
.hero-grid > *, .product-grid > *, .builder > *, .sign-layout > *, .content-grid > * { min-width: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--forest); font-size: 12px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--coral); }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: Georgia, "Noto Serif JP", "Yu Mincho", serif; letter-spacing: -.035em; }
h1 { margin: 18px 0 24px; font-size: clamp(44px, 7vw, 78px); line-height: 1.02; font-weight: 700; }
h1 em { color: var(--coral); font-style: normal; }
.lead { max-width: 660px; color: var(--ink-soft); font-size: clamp(17px, 2vw, 20px); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 12px 18px; border: 1px solid var(--forest); border-radius: 12px; background: var(--forest); color: white; text-decoration: none; cursor: pointer; font-weight: 850; box-shadow: 0 8px 18px rgba(21,91,69,.16); }
.button { max-width: 100%; }
.button:hover { transform: translateY(-2px); }
.button.secondary { background: transparent; color: var(--forest); box-shadow: none; }
.button.coral { background: var(--coral); border-color: var(--coral); }
.microcopy { margin-top: 16px; font-size: 13px; color: #66736e; }

.hero-card { position: relative; background: var(--paper); border: 1px solid rgba(20,35,31,.10); border-radius: 30px; padding: 24px; box-shadow: var(--shadow); transform: rotate(1.2deg); }
.hero-card::before { content: ""; position: absolute; width: 120px; height: 30px; top: -17px; left: 50%; transform: translateX(-50%) rotate(-2deg); background: rgba(218,197,151,.48); }
.fake-window { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: white; }
.fake-top { display: flex; align-items: center; gap: 6px; padding: 11px 14px; background: #edf2ee; border-bottom: 1px solid var(--line); }
.fake-dot { width: 8px; height: 8px; border-radius: 50%; background: #a9b4af; }
.fake-body { padding: 20px; }
.fake-label { display: inline-block; padding: 4px 8px; border-radius: 99px; background: var(--mint); color: var(--forest); font-size: 11px; font-weight: 850; }
.fake-body h3 { margin: 13px 0 12px; font-size: 17px; }
.message-box { background: #f8f6f0; border-left: 3px solid var(--coral); padding: 14px; border-radius: 4px 12px 12px 4px; color: var(--ink-soft); font-size: 13px; }
.mini-actions { display: flex; gap: 8px; margin-top: 14px; }
.mini-actions span { flex: 1; text-align: center; border-radius: 8px; padding: 8px; background: var(--forest); color: white; font-size: 11px; font-weight: 800; }
.mini-actions span + span { color: var(--forest); background: white; border: 1px solid var(--forest); }
.trust-strip { border-block: 1px solid rgba(20,35,31,.12); background: rgba(255,253,248,.55); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: 22px 18px; text-align: center; border-right: 1px solid rgba(20,35,31,.10); }
.trust-item:last-child { border: 0; }
.trust-item strong { display: block; font-family: Georgia, serif; font-size: 22px; color: var(--forest); }
.trust-item span { font-size: 12px; color: var(--ink-soft); }

.section { padding: 92px 0; }
.section.tight { padding: 64px 0; }
.section.paper { background: var(--paper); border-block: 1px solid rgba(20,35,31,.09); }
.section-head { max-width: 700px; margin-bottom: 38px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin: 12px 0 14px; font-size: clamp(34px, 5vw, 52px); line-height: 1.08; }
.section-head p { color: var(--ink-soft); font-size: 17px; }
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tool-card { position: relative; overflow: hidden; min-height: 270px; padding: 28px; background: var(--paper); border: 1px solid rgba(20,35,31,.11); border-radius: var(--radius); box-shadow: var(--shadow-small); }
.tool-card::after { content: attr(data-number); position: absolute; right: 16px; bottom: -30px; font-family: Georgia, serif; color: rgba(21,91,69,.08); font-size: 120px; line-height: 1; }
.tool-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--mint); color: var(--forest); font-size: 22px; }
.tool-card h3 { margin: 20px 0 10px; font-size: 20px; }
.tool-card p { color: var(--ink-soft); font-size: 14px; }
.text-link { position: relative; z-index: 1; display: inline-flex; gap: 7px; color: var(--forest); font-weight: 850; text-decoration: none; }

.builder { display: grid; grid-template-columns: .88fr 1.12fr; gap: 24px; align-items: start; }
.panel { background: var(--paper); border: 1px solid rgba(20,35,31,.11); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-small); }
.panel h2, .panel h3 { font-family: inherit; letter-spacing: -.02em; }
.panel h3 { margin-bottom: 18px; }
.field { display: grid; gap: 7px; margin-bottom: 15px; }
.field label { font-size: 13px; font-weight: 850; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 11px; background: white; color: var(--ink); padding: 11px 12px; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(21,91,69,.13); border-color: var(--forest); }
.output-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 14px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; background: var(--mint); color: var(--forest); border-radius: 999px; font-size: 11px; font-weight: 900; }
.output-block { border: 1px solid var(--line); background: #faf8f2; border-radius: 14px; padding: 18px; margin-top: 12px; }
.output-block .lang-label { font-size: 10px; color: var(--coral); font-weight: 950; letter-spacing: .13em; text-transform: uppercase; }
.output-text { min-height: 120px; margin: 10px 0 14px; white-space: pre-wrap; color: var(--ink-soft); }
.copy-button { width: 100%; border: 1px solid var(--forest); border-radius: 10px; background: var(--forest); color: white; padding: 9px 12px; cursor: pointer; font-weight: 850; }
.copy-button.secondary { background: white; color: var(--forest); }
.fine-print { margin: 18px 0 0; color: #6c7773; font-size: 12px; }

.product-band { position: relative; overflow: hidden; background: var(--forest-deep); color: white; border-radius: 30px; padding: clamp(32px, 6vw, 66px); }
.product-band::after { content: "日英"; position: absolute; right: -15px; bottom: -54px; font-family: "Yu Mincho", serif; font-size: 190px; font-weight: 900; color: rgba(255,255,255,.05); }
.product-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.product-band h2 { font-size: clamp(35px,5vw,54px); line-height: 1.08; margin-bottom: 18px; }
.product-band p { color: #d8e7e1; }
.check-list { padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.check-list li::before { content: "✓"; color: #efb15e; margin-right: 8px; font-weight: 900; }
.price-card { background: var(--paper); color: var(--ink); border-radius: 22px; padding: 28px; box-shadow: 0 24px 70px rgba(0,0,0,.22); }
.price { font-family: Georgia, serif; font-size: 48px; line-height: 1; margin: 8px 0 12px; }
.price small { font-family: inherit; font-size: 13px; color: var(--ink-soft); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: steps; }
.step { counter-increment: steps; position: relative; padding: 26px 24px; border-top: 3px solid var(--coral); background: rgba(255,253,248,.55); }
.step::before { content: "0" counter(steps); display: block; margin-bottom: 22px; font-family: Georgia, serif; font-size: 13px; color: var(--coral); font-weight: 800; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 14px; }

.page-hero { padding: 70px 0 42px; }
.page-hero h1 { max-width: 820px; font-size: clamp(42px,7vw,72px); }
.breadcrumbs { font-size: 12px; font-weight: 800; color: var(--ink-soft); }
.breadcrumbs a { color: var(--forest); }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 58px; align-items: start; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 52px; font-size: 34px; }
.prose h3 { margin-top: 32px; }
.prose p, .prose li { color: var(--ink-soft); }
.aside-card { position: sticky; top: 100px; padding: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; }
.aside-card h3 { margin-bottom: 10px; }

.sign-layout { display: grid; grid-template-columns: 360px 1fr; gap: 28px; align-items: start; }
.sign-preview { min-height: 540px; display: grid; place-items: center; padding: 34px; background: #d9d6cb; border-radius: var(--radius); }
.sign-paper { aspect-ratio: 1 / 1.414; width: min(100%, 430px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px; background: white; border: 12px solid var(--forest); box-shadow: 0 18px 50px rgba(20,35,31,.16); }
.sign-symbol { font-size: 54px; margin-bottom: 16px; }
.sign-ja { font-family: "Yu Mincho", serif; font-weight: 900; font-size: clamp(31px,5vw,48px); line-height: 1.15; }
.sign-en { margin-top: 18px; font-weight: 900; font-size: clamp(20px,3vw,30px); text-transform: uppercase; letter-spacing: .04em; }
.sign-note { margin-top: 25px; font-size: 14px; color: var(--ink-soft); }

.site-footer { padding: 54px 0 28px; background: var(--ink); color: white; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .7fr; gap: 48px; }
.footer-brand { max-width: 430px; }
.footer-brand p { color: #b9c6c1; font-size: 14px; }
.footer-col strong { display: block; margin-bottom: 12px; font-size: 13px; color: #e7b56a; }
.footer-col a { display: block; margin: 8px 0; color: #d5dfdb; text-decoration: none; font-size: 13px; }
.footer-bottom { margin-top: 38px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.13); display: flex; justify-content: space-between; gap: 20px; color: #93a39c; font-size: 11px; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 60; background: var(--ink); color: white; padding: 11px 16px; border-radius: 11px; box-shadow: var(--shadow); opacity: 0; transform: translateY(12px); transition: .2s; pointer-events: none; }
.toast.show { opacity: 1; transform: none; }
.analytics-consent { position: fixed; z-index: 100; right: 20px; bottom: 20px; width: min(560px, calc(100% - 40px)); padding: 22px; border: 1px solid rgba(20,35,31,.14); border-radius: 18px; background: var(--paper); color: var(--ink); box-shadow: 0 24px 70px rgba(20,35,31,.24); }
.analytics-consent[hidden] { display: none; }
.analytics-consent-copy strong { display: block; margin-bottom: 7px; font-size: 16px; }
.analytics-consent-copy p { margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.65; }
.analytics-consent-copy a { color: var(--forest); font-weight: 800; }
.analytics-consent-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 17px; }
.analytics-consent-actions .button { min-height: 42px; padding: 10px 16px; }
.analytics-settings-link { border: 0; background: transparent; color: #b9c6c1; padding: 0; cursor: pointer; font: inherit; text-decoration: underline; text-underline-offset: 3px; }
[data-lang="en"] { display: none; }
html[data-language="en"] [data-lang="ja"] { display: none; }
html[data-language="en"] [data-lang="en"] { display: revert; }

@media (max-width: 900px) {
  .hero-grid, .product-grid, .builder, .content-grid, .sign-layout { grid-template-columns: 1fr; }
  .hero { padding-top: 56px; }
  .hero-card { max-width: 590px; margin: 0 auto; }
  .tool-grid { grid-template-columns: 1fr 1fr; }
  .aside-card { position: static; }
  .nav-links { position: absolute; display: none; top: 76px; left: 0; right: 0; padding: 18px 20px 24px; flex-direction: column; align-items: stretch; background: var(--cream); border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .menu-toggle { display: inline-block; }
  .sign-layout .panel { order: 2; }
}
@media (max-width: 620px) {
  .shell { width: min(calc(100% - 28px), var(--max)); }
  .hero { padding: 44px 0 48px; }
  h1 { font-size: 43px; }
  .tool-grid, .steps, .footer-grid, .trust-grid { grid-template-columns: 1fr; }
  .trust-item { border-right: 0; border-bottom: 1px solid rgba(20,35,31,.10); }
  .check-list { grid-template-columns: 1fr; }
  .section { padding: 70px 0; }
  .panel { padding: 20px; }
  .button-row { flex-direction: column; align-items: stretch; }
  .button-row .button { width: 100%; }
  .hero-card { width: 100%; }
  .fake-body { padding: 16px; }
  .output-head, .footer-bottom { align-items: flex-start; flex-direction: column; }
  .brand-name { font-size: 14px; }
  .analytics-consent { right: 14px; bottom: 14px; width: calc(100% - 28px); padding: 18px; }
  .analytics-consent-actions { align-items: stretch; flex-direction: column-reverse; }
  .analytics-consent-actions .button { width: 100%; }
}
@media print {
  .site-header, .site-footer, .sign-layout .panel, .page-hero, .toast { display: none !important; }
  body, .section { background: white; padding: 0; }
  .shell, .sign-layout, .sign-preview { width: 100%; max-width: none; display: block; padding: 0; margin: 0; background: white; }
  .sign-paper { width: 100%; height: 100vh; max-width: none; box-shadow: none; }
}

