/* ============================================================
   KAIJU — modern recovery support site
   Calm, direct, product-aware design for people who need clarity.
   ============================================================ */

:root {
  --bg: #f7f8f5;
  --bg-soft: #eef3ef;
  --surface: #ffffff;
  --surface-2: #f9fbf8;
  --ink: #17201c;
  --ink-soft: #59655f;
  --muted: #7a8680;
  --line: #dfe7e1;
  --line-strong: #cbd8d0;
  --primary: #0b7a63;
  --primary-deep: #075443;
  --primary-soft: #dff3ed;
  --accent: #f2b84b;
  --accent-soft: #fff4d8;
  --danger: #b55343;
  --radius: 8px;
  --radius-lg: 8px;
  --shadow: 0 1px 2px rgba(18, 31, 27, .05), 0 10px 28px -18px rgba(18, 31, 27, .28);
  --shadow-lg: 0 2px 8px rgba(18, 31, 27, .08), 0 28px 70px -34px rgba(18, 31, 27, .36);
  --font-sans: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", sans-serif;
  --font-serif: "Shippori Mincho B1", "Hiragino Mincho ProN", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background:
    linear-gradient(180deg, #fbfcfa 0, var(--bg) 360px),
    var(--bg);
  line-height: 1.85;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}
img, video { max-width: 100%; height: auto; border-radius: var(--radius); }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-deep); }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 800px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 248, 245, .78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(203, 216, 208, .72);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.42rem;
  letter-spacing: .1em;
  color: var(--ink);
}
.brand::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 16px 0 0 var(--primary);
}
.brand span { color: var(--primary); }
.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  border: 1px solid rgba(203, 216, 208, .75);
  border-radius: 999px;
  padding: 4px;
  background: rgba(255, 255, 255, .66);
}
.nav a {
  color: var(--ink-soft);
  font-size: .9rem;
  font-weight: 700;
  line-height: 1;
  padding: 10px 13px;
  border-radius: 999px;
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--primary-deep); background: var(--primary-soft); }
.nav a.nav-cta {
  background: var(--ink);
  color: #fff;
  margin-left: 3px;
  box-shadow: 0 8px 20px -14px rgba(23, 32, 28, .65);
}
.nav a.nav-cta:hover { background: var(--primary-deep); color: #fff; }
.nav-toggle { display: none; }

@media (max-width: 980px) {
  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    border-radius: var(--radius);
    padding: 10px;
    background: rgba(255, 255, 255, .96);
    box-shadow: var(--shadow-lg);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 16px; border-radius: var(--radius); font-size: 1rem; }
  .nav a.nav-cta { margin: 6px 0 0; text-align: center; }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .2s; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 86px 0 90px;
  background:
    linear-gradient(115deg, rgba(11, 122, 99, .08), rgba(242, 184, 75, .08) 48%, rgba(23, 32, 28, .04));
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr);
  gap: 56px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  color: var(--primary-deep);
  text-transform: uppercase;
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.45rem, 5.8vw, 4.65rem);
  line-height: 1.16;
  letter-spacing: .03em;
  margin: 0 0 24px;
  font-weight: 700;
}
.hero h1 em {
  display: inline-block;
  font-style: normal;
  color: var(--primary);
}
.hero p.lead {
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.5vw, 1.13rem);
  margin: 0 0 34px;
  max-width: 39em;
}
.hero-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 28px;
  max-width: 620px;
}
.hero-actions a {
  display: grid;
  gap: 4px;
  min-height: 78px;
  padding: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, .68);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 900;
  line-height: 1.35;
  box-shadow: 0 8px 22px -20px rgba(23, 32, 28, .5);
}
.hero-actions a:hover {
  border-color: var(--primary);
  color: var(--primary-deep);
  background: #fff;
}
.hero-actions span {
  color: var(--accent);
  font-size: .75rem;
  letter-spacing: .08em;
}
.hero-img {
  position: relative;
  min-height: 430px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #dfe7e1;
}
.hero-img img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  border-radius: 0;
  object-fit: cover;
  display: block;
  filter: saturate(.96) contrast(1.03);
}
.hero-img::after {
  content: "KAIJU";
  position: absolute;
  right: 18px;
  bottom: 14px;
  color: rgba(255, 255, 255, .82);
  font-family: var(--font-serif);
  font-size: .9rem;
  letter-spacing: .2em;
}
@media (max-width: 860px) {
  .hero { padding: 52px 0 62px; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-img, .hero-img img { min-height: 310px; }
  .hero-actions { grid-template-columns: 1fr; }
}

/* ---------- buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border-radius: var(--radius);
  font-weight: 900;
  font-size: .96rem;
  line-height: 1.2;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}
.btn-primary { background: var(--primary); color: #fff !important; box-shadow: 0 12px 24px -16px rgba(7, 84, 67, .7); }
.btn-primary:hover { background: var(--primary-deep); transform: translateY(-2px); color: #fff; }
.btn-ghost { background: rgba(255, 255, 255, .74); color: var(--ink); border: 1px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary-deep); transform: translateY(-2px); }
.btn-amber { background: var(--accent); color: #241909 !important; }
.btn-amber:hover { filter: brightness(.97); transform: translateY(-2px); }

/* ---------- sections ---------- */
section.block { padding: 84px 0; }
section.block.tinted {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.sec-head {
  display: grid;
  gap: 10px;
  max-width: 700px;
  margin: 0 auto 44px;
  text-align: center;
}
.sec-head .kicker {
  display: inline-block;
  justify-self: center;
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .16em;
  color: var(--primary);
  text-transform: uppercase;
}
.sec-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3.4vw, 2.45rem);
  margin: 0;
  letter-spacing: .03em;
  line-height: 1.35;
}
.sec-head p { color: var(--ink-soft); margin: 0 auto; max-width: 42em; }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
a.card { color: inherit; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.card img { border-radius: 0; aspect-ratio: 16/10; object-fit: cover; }
.card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin: 0 0 10px; font-size: 1.2rem; font-family: var(--font-serif); letter-spacing: .02em; }
.card-body p { margin: 0 0 18px; color: var(--ink-soft); font-size: .94rem; flex: 1; }
.card-link { font-weight: 900; color: var(--primary); font-size: .92rem; }
.card-link::after { content: " →"; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }

/* ---------- feature rows ---------- */
.feature {
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
  gap: 42px;
  align-items: center;
  padding: 34px 0;
  border-top: 1px solid var(--line);
}
.feature:first-of-type { border-top: 0; }
.feature:nth-child(even) .feature-img { order: 2; }
.feature-img img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; }
.feature h3 { font-family: var(--font-serif); font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin: 0 0 14px; letter-spacing: .02em; line-height: 1.45; }
.feature p { color: var(--ink-soft); margin: 0 0 24px; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 24px; }
  .feature:nth-child(even) .feature-img { order: 0; }
}

/* ---------- apps strip ---------- */
.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.app-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  color: inherit;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  overflow: hidden;
}
.app-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.app-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.app-card .app-tag {
  display: inline-block;
  font-size: .74rem;
  font-weight: 900;
  background: var(--primary-soft);
  color: var(--primary-deep);
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 14px;
}
.app-card h3 { margin: 0 0 8px; font-size: 1.28rem; letter-spacing: .02em; }
.app-card p { color: var(--ink-soft); font-size: .94rem; margin: 0; }
@media (max-width: 860px) { .apps { grid-template-columns: 1fr; } }

/* ---------- column list ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 132px;
}
.post-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.post-item h3 { margin: 0; font-size: 1rem; line-height: 1.65; }
.post-item .more { color: var(--primary); font-weight: 900; font-size: .88rem; margin-top: auto; }
@media (max-width: 860px) { .posts { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    linear-gradient(135deg, rgba(7, 84, 67, .96), rgba(23, 32, 28, .96)),
    var(--primary-deep);
  border-radius: var(--radius);
  color: #fff;
  padding: clamp(38px, 6vw, 64px);
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(242, 184, 75, .16));
  pointer-events: none;
}
.cta-band h2 { font-family: var(--font-serif); font-size: clamp(1.55rem, 3vw, 2.2rem); margin: 0 0 14px; letter-spacing: .03em; }
.cta-band p { color: rgba(255, 255, 255, .82); margin: 0 0 30px; }
.cta-band .btns { justify-content: center; position: relative; }
.cta-band .btn-ghost { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .34); }
.cta-band .btn-ghost:hover { background: rgba(255, 255, 255, .18); color: #fff; }

/* ---------- article ---------- */
.article-hero { padding: 58px 0 18px; }
.breadcrumb { font-size: .86rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.article-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.45;
  letter-spacing: .02em;
  margin: 0;
}
.article-body { padding: 28px 0 76px; }
.article-body > .content {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 58px);
  box-shadow: var(--shadow);
}
.content h1 { display: none; }
.content h2 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  line-height: 1.55;
  margin: 2.2em 0 .8em;
  padding-left: 16px;
  letter-spacing: .02em;
  border-left: 4px solid var(--accent);
}
.content h2:first-child { margin-top: 0; }
.content h3 { font-size: 1.15rem; margin: 1.8em 0 .6em; color: var(--primary-deep); }
.content h4, .content h5 { margin: 1.5em 0 .5em; }
.content p { margin: 0 0 1.2em; }
.content ul, .content ol { padding-left: 1.4em; margin: 0 0 1.4em; }
.content li { margin-bottom: .4em; }
.content figure { margin: 2em 0; text-align: center; }
.content img { box-shadow: var(--shadow); }
.content blockquote {
  margin: 1.6em 0;
  padding: 18px 22px;
  background: var(--surface-2);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
}
.content table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: .94rem; }
.content th, .content td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.content th { background: var(--bg-soft); }
.content hr { border: none; border-top: 1px solid var(--line); margin: 2.4em 0; }
.content strong { color: var(--primary-deep); }

/* ---------- footer ---------- */
.site-footer {
  background: #111816;
  color: #b9c3bd;
  margin-top: 0;
  padding: 58px 0 32px;
  font-size: .92rem;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 44px; }
.site-footer .brand { color: #fff; }
.site-footer h4 { color: #fff; font-size: .84rem; letter-spacing: .1em; margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #b9c3bd; }
.site-footer a:hover { color: var(--accent); }
.footer-note {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  color: #7f8b85;
  font-size: .82rem;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
}

/* ---------- reveal animation ---------- */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .btn, .card, .app-card, .post-item { transition: none; }
}
