:root {
  --paper: #ece5d3;
  --paper-card: #f6f1e6;
  --paper-deep: #e2dac2;
  --ink: #2c2a20;
  --ink-soft: #5e5847;
  --ink-faint: #8a8371;
  --moss-900: #15374a;
  --moss-800: #1c4a60;
  --moss-700: #26708f;
  --moss-500: #6fbbd6;
  --moss-200: #d6eef6;
  --rust: #a15a3a;
  --rust-dark: #833f27;
  --plum: #7c5d78;
  --line: rgba(44, 42, 32, 0.28);
  --line-soft: rgba(44, 42, 32, 0.14);
  --radius: 2px;
  --font-display: 'Shippori Mincho', serif;
  --font-body: 'Noto Sans JP', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.sp-only { display: none; }
.nowrap { white-space: nowrap; }

.icon {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.15em;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.2vw, 2.35rem);
  color: var(--moss-800);
  margin: 0 0 48px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.02em;
}
.section-title-light { color: var(--paper-card); }

/* ---------- Specimen card ---------- */
.specimen-card {
  position: relative;
  background: var(--paper-card);
  border: 1px solid var(--line);
  padding: 34px 30px;
}
.specimen-card::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid var(--line-soft);
  pointer-events: none;
}
.corner-icon {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--moss-500);
  stroke-width: 1.4;
  opacity: 0.55;
}

/* ---------- Specimen photo frame ---------- */
.specimen-frame {
  margin: 0;
  background: var(--paper-card);
  border: 1px solid var(--line);
  padding: 10px;
}
.specimen-frame img {
  width: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Buttons (ink stamp) ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  border: 1.5px solid var(--moss-700);
  transition: background .2s, color .2s;
}

.btn-primary {
  background: var(--moss-700);
  color: var(--paper-card);
}
.btn-primary:hover { background: var(--moss-800); }

.btn-outline {
  color: var(--moss-700);
}
.btn-outline:hover { background: var(--moss-700); color: var(--paper-card); }

.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(236, 229, 211, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo { display: flex; align-items: center; }

.logo-img { height: 36px; width: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.9rem;
  font-weight: 500;
}

.site-nav a { color: var(--ink-soft); transition: color .2s; }
.site-nav a:hover { color: var(--moss-700); }

.nav-cta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  border: 1px solid var(--moss-700);
  color: var(--moss-700) !important;
  padding: 9px 18px;
  transition: background .2s, color .2s;
}
.nav-cta:hover { background: var(--moss-700); color: var(--paper-card) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--moss-800);
  margin: 0 auto;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: 72px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  height: 100%;
  background:
    linear-gradient(180deg, var(--paper) 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line-soft);
  z-index: -1;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
  padding: 88px 24px 96px;
}

.about-inner { padding: 0 24px 110px; }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  font-weight: 700;
  color: var(--moss-800);
  margin: 0 0 28px;
  line-height: 1.45;
}

.hero-lead {
  font-size: 1.02rem;
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 0 40px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.scroll-cue {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 36px;
  border: 1.5px solid var(--moss-500);
  border-radius: 999px;
}
.scroll-cue span {
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 7px;
  background: var(--moss-500);
  border-radius: 999px;
  animation: scrollcue 1.6s infinite;
}
@keyframes scrollcue {
  0% { top: 7px; opacity: 1; }
  70% { top: 18px; opacity: 0; }
  100% { top: 18px; opacity: 0; }
}

/* ---------- Sections common ---------- */
.section { padding: 110px 0; }

/* ---------- About ---------- */
.about-text p { color: var(--ink-soft); font-size: 1rem; margin: 0 0 20px; }
.about-text p:last-child { margin-bottom: 0; }
.about-text { max-width: 720px; }

/* ---------- Name story ---------- */
.name-story-inner { padding: 20px 24px 110px; }

.name-story-intro {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
  font-size: 1.1rem;
  color: var(--moss-800);
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 2.1;
}

.name-story-photo { margin: 0 0 48px; }
.name-story-photo img { height: 320px; }

.name-story-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.name-story-card h3 {
  font-family: var(--font-display);
  color: var(--moss-700);
  font-size: 1.3rem;
  margin: 0 0 12px;
  font-weight: 600;
}
.name-story-card p:last-child { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

.name-story-text {
  max-width: 720px;
  margin: 0 auto;
}
.name-story-text p { color: var(--ink-soft); font-size: 1rem; margin: 0 0 20px; }
.name-story-text p:last-child { margin-bottom: 0; }

/* ---------- For you ---------- */
.for-you-photo { margin: 0 0 40px; }
.for-you-photo img { height: 320px; }

.for-you-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.for-you-card p:last-child { margin: 0; color: var(--ink); font-size: 1rem; line-height: 1.9; }

.for-you-note {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

/* ---------- Business ---------- */
.business-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.business-card.has-photo { padding-top: 0; }
.business-card-img {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
  margin: 0 0 20px;
  border-bottom: 1px solid var(--line);
}
.business-card.has-photo h3,
.business-card.has-photo > p { margin-left: 30px; margin-right: 30px; }
.business-card.has-photo::after { inset: 5px; }

.business-card h3 { margin: 0 0 10px; color: var(--moss-800); font-size: 1.1rem; font-family: var(--font-display); font-weight: 600; }
.business-card p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

.business-note {
  margin: 32px 0 0;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ---------- Message ---------- */
.message {
  background: var(--moss-900);
  color: var(--paper-card);
}
.message-inner { text-align: center; max-width: 760px; margin-left: auto; margin-right: auto; }
.message-text { color: rgba(246, 241, 230, 0.78); font-size: 1.02rem; }

/* ---------- Founder ---------- */
.founder-inner { max-width: 720px; margin: 0 auto; }
.founder-inner .section-title { text-align: center; }
.founder-inner .section-title { margin-left: auto; margin-right: auto; }

.founder-text p {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 2;
  margin: 0 0 32px;
}
.founder-text p:last-child { margin-bottom: 0; }

.founder-sign {
  margin: 48px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  text-align: right;
  font-family: var(--font-display);
  color: var(--moss-800);
  font-weight: 700;
  font-size: 1.05rem;
}

/* ---------- Company table (ledger) ---------- */
.company-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper-card);
  border: 1px solid var(--line);
}
.company-table th, .company-table td {
  text-align: left;
  padding: 20px 26px;
  border-bottom: 1px dashed var(--line-soft);
  vertical-align: top;
}
.company-table tr:last-child th, .company-table tr:last-child td { border-bottom: none; }
.company-table th {
  width: 180px;
  color: var(--moss-700);
  font-weight: 500;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  background: var(--paper-deep);
}
.company-table td { color: var(--ink); }
.company-table a { color: var(--rust); font-weight: 600; }

/* ---------- Contact ---------- */
.contact-lead { color: var(--ink-soft); margin: -24px 0 40px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
}

.contact-info { display: grid; gap: 28px; align-content: start; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-icon { font-size: 1.3rem; }
.contact-item h3 { margin: 0 0 4px; font-size: 0.95rem; color: var(--moss-800); font-family: var(--font-display); font-weight: 600; }
.contact-item p { margin: 0; color: var(--ink-soft); }
.contact-item a:hover { color: var(--moss-700); }

.contact-form {
  background: var(--paper-card);
  border: 1px solid var(--line);
  padding: 34px;
  position: relative;
}
.contact-form::before {
  content: "";
  position: absolute;
  top: -1px; left: 24px; right: 24px;
  height: 1px;
  background-image: linear-gradient(to right, var(--ink-faint) 50%, transparent 0%);
  background-size: 8px 1px;
}
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
  color: var(--moss-700);
}
.req {
  font-family: var(--font-body);
  font-size: 0.68rem;
  background: var(--rust);
  color: var(--paper-card);
  padding: 2px 8px;
  margin-left: 8px;
  font-weight: 700;
}
.form-row input, .form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--paper);
  transition: border-color .2s, background .2s;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--moss-500);
  background: var(--paper-card);
}
.form-note { margin: 14px 0 0; font-size: 0.85rem; color: var(--moss-700); font-weight: 600; min-height: 1.2em; font-family: var(--font-mono); }

/* ---------- Footer ---------- */
.site-footer { background: var(--moss-900); color: rgba(246, 241, 230, 0.7); padding: 44px 0 40px; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-logo { display: flex; align-items: center; }

.footer-logo-img { height: 28px; width: auto; }
.footer-copy { margin: 0; font-size: 0.8rem; font-family: var(--font-mono); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .business-grid { grid-template-columns: repeat(2, 1fr); }
  .name-story-grid { grid-template-columns: 1fr; }
  .for-you-grid { grid-template-columns: 1fr; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-photo img { height: 260px; }
}

@media (max-width: 720px) {
  .sp-only { display: inline; }
  .pc-only { display: none; }

  .site-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 28px;
    gap: 18px;
    transform: translateY(-140%);
    opacity: 0;
    transition: transform .3s ease, opacity .3s ease;
    border-bottom: 1px solid var(--line);
  }
  .site-nav.open { transform: translateY(0); opacity: 1; }
  .nav-cta { text-align: center; }
  .nav-toggle { display: flex; }

  .section { padding: 72px 0; }
  .business-grid { grid-template-columns: 1fr; }
  .company-table th { width: 120px; padding: 16px; }
  .company-table td { padding: 16px; }
  .contact-form { padding: 24px; }
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue span { animation: none; }
}

/* ---------- Print ---------- */
@media print {
  body { background-image: none; }

  .site-header {
    position: static;
    backdrop-filter: none;
    box-shadow: none;
  }
  .site-nav, .nav-toggle, .scroll-cue { display: none; }

  .hero { padding-top: 0; }

  .message, .site-footer {
    background: var(--moss-900) !important;
    color: var(--paper-card) !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .message-text { color: rgba(246, 241, 230, 0.78) !important; }

  .specimen-card, .specimen-frame, .business-card, .for-you-card,
  .name-story-card, .contact-form, .contact-item, .company-table tr {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .section-title, .hero-title, h1, h2, h3 {
    break-after: avoid;
    page-break-after: avoid;
  }
  .hero-inner, .name-story-grid, .for-you-grid, .business-grid, .contact-grid {
    break-inside: avoid;
  }

  .reveal { opacity: 1 !important; transform: none !important; }

  .btn { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
