/* =========================================================
   セラピスト × AI・DX — Landing styles
   Plain CSS, light/dark aware, responsive.
   ========================================================= */

:root {
  --paper: #faf7f1;
  --paper-2: #f3eee4;
  --card: #ffffff;
  --ink: #232a31;
  --ink-soft: #4c5762;
  --ink-faint: #7d8894;
  --line: #e6ded0;
  --accent: #c0863a;      /* gold — 一隅を照らす灯 */
  --accent-deep: #a06d27;
  --teal: #2b4a52;        /* 科学の深み */
  --teal-soft: #3d6069;
  --shadow: 0 1px 2px rgba(35, 42, 49, .04), 0 8px 24px rgba(35, 42, 49, .06);
  --shadow-hover: 0 2px 4px rgba(35, 42, 49, .06), 0 16px 40px rgba(35, 42, 49, .10);
  --radius: 16px;
  --wrap: 1080px;

  --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14181d;
    --paper-2: #1a1f26;
    --card: #1e242c;
    --ink: #ece8e1;
    --ink-soft: #b7bfc8;
    --ink-faint: #8a939d;
    --line: #2d353e;
    --accent: #d6a24a;
    --accent-deep: #e0b164;
    --teal: #7fb8c2;
    --teal-soft: #9ccbd3;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
    --shadow-hover: 0 2px 4px rgba(0, 0, 0, .35), 0 16px 40px rgba(0, 0, 0, .45);
  }
}

/* ---------- Reset-ish ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.85;
  font-size: 16px;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper); padding: 10px 16px; z-index: 100; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.sp-only { display: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; }
.brand-mark { border-radius: 7px; }
.brand-text { font-size: 15px; letter-spacing: .02em; }
.site-nav { display: flex; gap: 26px; }
.site-nav a {
  text-decoration: none; color: var(--ink-soft); font-size: 14px; font-weight: 500;
  position: relative; transition: color .2s ease;
}
.site-nav a:hover { color: var(--accent-deep); }
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--accent); transition: width .25s ease;
}
.site-nav a:hover::after { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 92px;
  background:
    radial-gradient(1100px 460px at 78% -8%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%),
    radial-gradient(900px 500px at 8% 4%, color-mix(in srgb, var(--teal) 12%, transparent), transparent 62%),
    var(--paper);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.hero-inner { text-align: center; }
.kicker {
  font-size: 12px; letter-spacing: .34em; font-weight: 700; color: var(--accent-deep);
  margin: 0 0 20px;
}
.hero-title {
  font-family: var(--serif); font-weight: 700; font-size: clamp(30px, 6vw, 52px);
  line-height: 1.42; margin: 0 0 26px; letter-spacing: .02em;
}
.hero-title .accent {
  color: var(--accent-deep);
  background: linear-gradient(transparent 66%, color-mix(in srgb, var(--accent) 30%, transparent) 66%);
  padding: 0 .04em;
}
.hero-lead {
  font-size: clamp(15px, 2.2vw, 17px); color: var(--ink-soft);
  max-width: 640px; margin: 0 auto 36px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 30px; border-radius: 999px; text-decoration: none;
  font-weight: 700; font-size: 15px; transition: transform .18s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  border: 1.5px solid transparent;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: color-mix(in srgb, var(--card) 60%, transparent); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-deep); transform: translateY(-2px); }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-about { background: var(--paper); }
.section-contents { background: var(--paper-2); }
.section-kicker {
  font-size: 12px; letter-spacing: .3em; font-weight: 700; color: var(--accent-deep); margin: 0 0 12px;
}
.section-title {
  font-family: var(--serif); font-weight: 600; font-size: clamp(24px, 4vw, 34px);
  margin: 0 0 18px; letter-spacing: .02em;
}
.section-sub { color: var(--ink-soft); margin: 0 0 40px; font-size: 15px; }

.prose { max-width: 760px; }
.prose p { margin: 0 0 20px; color: var(--ink-soft); }
.prose strong { color: var(--ink); font-weight: 700; }

/* Pillars */
.pillars {
  list-style: none; margin: 46px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.pillar {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; box-shadow: var(--shadow);
}
.pillar-label {
  display: block; font-family: var(--serif); font-weight: 600; font-size: 17px; color: var(--teal);
  margin-bottom: 8px;
}
.pillar-desc { display: block; font-size: 14px; color: var(--ink-soft); line-height: 1.7; }

/* ---------- Cards ---------- */
.card-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px;
}
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(var(--accent), var(--teal)); opacity: .8;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.card-tag {
  font-family: var(--serif); font-weight: 600; font-size: 13px; letter-spacing: .1em;
  color: #fff; background: var(--teal); padding: 4px 12px; border-radius: 999px;
}
.card-status {
  font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--accent-deep);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); padding: 3px 10px; border-radius: 999px;
}
.card-title {
  font-family: var(--serif); font-weight: 600; font-size: 20px; margin: 0 0 14px; letter-spacing: .02em;
}
.card-desc { font-size: 14.5px; color: var(--ink-soft); margin: 0 0 18px; line-height: 1.8; }
.card-points { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); padding-top: 16px; }
.card-points li {
  position: relative; padding-left: 22px; font-size: 13.5px; color: var(--ink-soft); margin-bottom: 8px;
}
.card-points li:last-child { margin-bottom: 0; }
.card-points li::before {
  content: ""; position: absolute; left: 4px; top: 10px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
}
.contents-note { margin: 34px 0 0; font-size: 13px; color: var(--ink-faint); }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper-2); border-top: 1px solid var(--line); padding: 50px 0 40px; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 600; font-size: 16px; margin-bottom: 16px; }
.footer-note { font-size: 12.5px; color: var(--ink-faint); line-height: 1.9; margin: 0; max-width: 720px; }

/* ---------- Responsive ---------- */

/* Tablet */
@media (max-width: 860px) {
  .card-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; gap: 14px; }
  .section { padding: 68px 0; }
}

/* Phone */
@media (max-width: 620px) {
  body { font-size: 15.5px; line-height: 1.8; }
  .wrap { padding: 0 20px; }
  .site-nav { display: none; }              /* 短い1枚ものなのでスクロールで十分 */
  .header-inner { height: 58px; }
  .brand-text { font-size: 14px; }
  .sp-only { display: inline; }

  .hero { padding: 60px 0 54px; }
  .kicker { letter-spacing: .24em; margin-bottom: 16px; }
  .hero-title { margin-bottom: 22px; line-height: 1.5; }
  .hero-lead { font-size: 15px; margin-bottom: 30px; }

  .section { padding: 54px 0; }
  .section-title { font-size: clamp(22px, 6.4vw, 28px); }
  .section-sub { margin-bottom: 30px; }

  .pillar { padding: 20px 20px; }
  .card { padding: 24px 22px; }
  .card-title { font-size: 18.5px; }
  .card-desc { font-size: 14px; }

  .btn { padding: 12px 24px; font-size: 14.5px; }
  .site-footer { padding: 42px 0 36px; }
}

/* Small phone */
@media (max-width: 400px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 52px 0 48px; }
  .hero-title { font-size: 25px; }
  .hero-actions { flex-direction: column; gap: 12px; }
  .hero-actions .btn { width: 100%; }        /* ボタンは縦積みで押しやすく */
  .card-tag { font-size: 12px; padding: 3px 10px; }
  .card-status { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
