/* SEISEI official site — 和モダン design tokens (from platform landing) */
:root {
  --paper: #f7f4ed;
  --paper-deep: #efe9dc;
  --ink: #23211c;
  --ink-soft: #5c574d;
  --aka: #b03a32;
  --aka-deep: #8e2c26;
  --line: rgba(35, 33, 28, 0.12);
  --serif: 'Shippori Mincho', 'Hiragino Mincho ProN', serif;
  --sans: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', sans-serif;
}
body[data-lang="zh"] {
  --serif: 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', 'SimSun', 'Shippori Mincho', serif;
  --sans: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', 'Source Han Sans SC', 'Zen Kaku Gothic New', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.serif { font-family: var(--serif); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-deep { background: var(--paper-deep); }

/* kicker */
.kicker { margin-bottom: 16px; }
.kicker span {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.28em;
  color: var(--aka);
  border-bottom: 1px solid var(--aka);
  padding-bottom: 6px;
  font-weight: 700;
}
h2.serif { font-size: clamp(28px, 4.5vw, 44px); font-weight: 700; letter-spacing: 0.04em; margin-bottom: 40px; line-height: 1.4; }
.section-lead { max-width: 680px; color: var(--ink-soft); font-size: 16px; margin: -24px 0 48px; }

/* light capsule tag (never dark overlay on images) */
.capsule-tag {
  position: absolute;
  top: 16px; left: 16px;
  background: rgba(247, 244, 237, 0.92);
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.18em;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  z-index: 2;
}

/* buttons */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 999px;
  padding: 14px 36px;
  font-size: 15px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--aka); color: #fff; }
.btn-primary:hover { background: var(--aka-deep); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(176, 58, 50, 0.28); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.btn-small { padding: 9px 22px; font-size: 13px; background: var(--ink); color: var(--paper); }
.btn-small:hover { background: var(--aka); }
.btn-large { padding: 17px 52px; font-size: 17px; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 244, 237, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 32px;
}
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.brand-mark {
  font-family: var(--serif); font-weight: 800; font-size: 26px; letter-spacing: 0.12em; color: var(--ink);
}
.brand-sub { font-size: 11px; letter-spacing: 0.32em; color: var(--ink-soft); font-weight: 700; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { text-decoration: none; font-size: 14px; letter-spacing: 0.06em; color: var(--ink-soft); font-weight: 500; }
.nav-links a:hover { color: var(--aka); }
.nav-right { display: flex; align-items: center; gap: 16px; margin-left: 8px; }
.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-switch button {
  border: none; background: transparent; color: var(--ink-soft);
  font-size: 12px; font-weight: 700; padding: 7px 13px; cursor: pointer; letter-spacing: 0.04em;
}
.lang-switch button.active { background: var(--ink); color: var(--paper); }
.hamburger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); }

/* hero */
.hero { position: relative; padding: 88px 0 72px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hero-copy h1 { font-size: clamp(38px, 5.5vw, 64px); font-weight: 800; line-height: 1.25; letter-spacing: 0.03em; margin-bottom: 24px; }
.hero-sub { color: var(--ink-soft); font-size: 16px; max-width: 480px; margin-bottom: 36px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-media { position: relative; border-radius: 6px; overflow: hidden; box-shadow: 0 24px 60px rgba(35, 33, 28, 0.14); }
.hero-media img { width: 100%; height: 420px; object-fit: cover; }
.tategaki {
  position: absolute; right: 34px; top: 120px;
  writing-mode: vertical-rl; letter-spacing: 0.5em;
  font-family: var(--serif); font-size: 15px; color: var(--ink-soft);
}

/* cards */
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 8px;
  padding: 32px 26px; transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(35, 33, 28, 0.1); }
.card-icon { width: 48px; height: 48px; border-radius: 50%; background: rgba(176, 58, 50, 0.1); color: var(--aka); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.card-icon svg { width: 24px; height: 24px; }
.card h3 { font-family: var(--serif); font-size: 19px; margin-bottom: 10px; letter-spacing: 0.04em; }
.card p { font-size: 14px; color: var(--ink-soft); }

/* saas */
.saas-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 48px; }
.saas-grid figure, .works-grid figure { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.saas-grid img { width: 100%; height: 170px; object-fit: cover; }
.saas-grid figcaption, .works-grid figcaption { padding: 14px 18px; font-size: 14px; font-weight: 500; }
.saas-cta { text-align: center; }
.saas-price { font-family: var(--serif); font-size: 26px; font-weight: 700; margin-bottom: 20px; }
.saas-price::after { content: ""; display: block; width: 56px; height: 2px; background: var(--aka); margin: 14px auto 0; }

/* works */

.help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 48px; }
.help-card { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 28px 26px; }
.help-card h3 { font-size: 21px; margin: 0 0 8px; }
.help-no { color: var(--aka); font-size: 14px; margin-right: 10px; letter-spacing: 0.12em; }
.help-card > p { color: var(--ink-soft); font-size: 14px; margin: 0 0 16px; }
.help-card ul { list-style: none; margin: 0; padding: 0; }
.help-card li { border-top: 1px solid var(--line); }
.help-card li a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 2px; font-size: 14px; color: var(--ink); text-decoration: none; }
.help-card li a:hover { color: var(--aka); }
.help-card li a::after { content: "\2192"; color: var(--aka); flex-shrink: 0; }

.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.works-grid img { width: 100%; height: 220px; object-fit: cover; transition: transform 0.5s ease; }
.works-grid figure:hover img { transform: scale(1.04); }
.works-grid figure { overflow: hidden; }

/* steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.steps li { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 30px 24px; position: relative; }
.step-no { font-family: var(--serif); font-size: 40px; color: var(--aka); font-weight: 700; display: block; margin-bottom: 8px; }
.steps h3 { font-family: var(--serif); font-size: 18px; margin-bottom: 8px; }
.steps p { font-size: 14px; color: var(--ink-soft); }

/* company */
.company-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }
.company-table { border-top: 1px solid var(--line); }
.company-table > div { display: grid; grid-template-columns: 140px 1fr; padding: 16px 0; border-bottom: 1px solid var(--line); }
.company-table dt { font-size: 14px; color: var(--ink-soft); letter-spacing: 0.06em; }
.company-table dd { font-size: 15px; font-weight: 500; }
.company-table a { color: var(--aka); text-decoration: none; }
.company-media { position: relative; border-radius: 6px; overflow: hidden; }
.company-media img { width: 100%; height: 380px; object-fit: cover; }

/* contact */
.contact { text-align: center; background: var(--ink); color: var(--paper); }
.contact .kicker span { color: var(--paper); border-color: var(--paper); }
.contact h2 { color: var(--paper); }
.contact p { color: rgba(247, 244, 237, 0.75); }
.contact-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin: 32px 0 20px; }
.contact .btn-ghost { border-color: var(--paper); color: var(--paper); }
.contact .btn-ghost:hover { background: var(--paper); color: var(--ink); }
.contact-hours { font-size: 13px; letter-spacing: 0.08em; }

/* footer */
.footer { background: #1b1915; color: rgba(247, 244, 237, 0.7); padding: 48px 0 28px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; margin-bottom: 32px; }
.footer .brand-mark { color: var(--paper); }
.footer-brand p { font-size: 13px; margin-top: 10px; }
.footer-links { display: flex; gap: 28px; }
.footer-links a { color: rgba(247, 244, 237, 0.7); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--paper); }
.copyright { text-align: center; font-size: 12px; letter-spacing: 0.1em; border-top: 1px solid rgba(247, 244, 237, 0.12); padding-top: 24px; }

/* reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-media img { height: 300px; }
  .tategaki { display: none; }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .saas-grid { grid-template-columns: repeat(2, 1fr); }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .help-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .company-grid { grid-template-columns: 1fr; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); flex-direction: column; padding: 12px 24px 20px;
    border-bottom: 1px solid var(--line); gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .hamburger { display: flex; }
  .nav-right .btn-small { display: none; }
  .section { padding: 64px 0; }
}
@media (max-width: 560px) {
  .cards-4, .saas-grid, .works-grid, .help-grid, .steps { grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100%; text-align: center; }
  .contact-ctas .btn { width: 100%; text-align: center; }
  .company-table > div { grid-template-columns: 1fr; gap: 4px; }
  .saas-grid img { height: 200px; }
  .nav-inner { gap: 12px; padding: 12px 16px; }
  .brand-mark { font-size: 22px; }
  .brand-sub { display: none; }
  .lang-switch button { padding: 7px 10px; font-size: 11px; }
}
