/* Layout: 白い余白の多い一枚もの。上に右寄せのバー、中央に理念、下にデータ非保存の仕組み。 */
:root {
  --bg: #ffffff;
  --bg-soft: #f4f9fc;
  --ink: #1d2a33;
  --muted: #62727e;
  --line: #dde9ef;
  --accent: #3f9ec6;
  --accent-ink: #2a7ea3;
  --glass: rgba(255, 255, 255, 0.78);
  --halo-a: rgba(120, 200, 230, 0.28);
  --halo-b: rgba(190, 225, 245, 0.45);
  --font-body: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --font-latin: "Jost", "Helvetica Neue", Arial, sans-serif;
}
/* 白基調の世界観を守るため、ダークモードには切り替えない（意図的に単一テーマ） */
:root { color-scheme: light; }

* { box-sizing: border-box; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.9; font-weight: 400;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 0;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1040px; margin: 0 auto; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---- header ---- */
header { position: relative; z-index: 5; padding-block: 22px; }
.bar { display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.logo { font-family: var(--font-latin); font-weight: 400; font-size: 26px; letter-spacing: 0.02em; line-height: 1; }
.logo span { color: var(--accent); }
nav.menu { position: relative; display: flex; align-items: center; gap: 4px; padding: 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--glass); backdrop-filter: blur(10px); }
nav.menu > a, nav.menu > .tab > button {
  font: inherit; font-size: 14px; font-weight: 500; color: var(--ink); background: none; border: 0;
  padding: 8px 16px; border-radius: 999px; cursor: pointer; line-height: 1.4; display: inline-flex; align-items: center; gap: 6px;
}
nav.menu > a:hover, nav.menu > .tab > button:hover, nav.menu > .tab > button[aria-expanded="true"] { background: var(--bg-soft); color: var(--accent-ink); }
.tab { position: static; }
.chev { width: 10px; height: 10px; transition: transform .2s; }
button[aria-expanded="true"] .chev { transform: rotate(180deg); }
.panel {
  position: absolute; top: calc(100% + 12px); right: 0; width: 360px; max-width: 92vw; padding: 10px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 18px 40px -18px rgba(40, 90, 120, 0.28);
}
.panel .head { font-size: 12px; color: var(--muted); padding: 8px 12px 6px; letter-spacing: 0.08em; }
.site { display: block; padding: 12px; border-radius: 12px; }
.site:hover { background: var(--bg-soft); }
.site b { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-weight: 500; font-size: 15px; line-height: 1.5; }
.site small { display: block; color: var(--muted); font-size: 13px; line-height: 1.7; margin-top: 2px; }
.badge { white-space: nowrap; font-size: 11px; font-weight: 500; color: var(--accent-ink); border: 1px solid var(--line); background: var(--bg-soft); border-radius: 999px; padding: 0 8px; line-height: 20px; }
.site.soon b { color: var(--muted); }
.menu-btn { display: none; font: inherit; font-size: 14px; font-weight: 500; color: var(--ink); background: var(--glass); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; cursor: pointer; }

/* ---- hero ---- */
.hero { position: relative; padding-block: 72px 96px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 32px; align-items: center; }
.eyebrow { font-family: var(--font-latin); font-size: 13px; letter-spacing: 0.22em; color: var(--accent-ink); margin: 0 0 20px; font-weight: 500; }
h1 { font-size: clamp(30px, 5vw, 50px); line-height: 1.5; font-weight: 300; letter-spacing: 0.04em; margin: 0 0 28px; text-wrap: balance; }
h1 em { font-style: normal; font-weight: 500; background: linear-gradient(transparent 68%, var(--halo-b) 68%); }
.lead { max-width: 34em; color: var(--muted); margin: 0; font-size: 16px; }
.cta { display: inline-flex; margin-top: 36px; gap: 10px; align-items: center; font-weight: 500; font-size: 15px; color: var(--accent-ink); border-bottom: 1px solid var(--accent); padding-bottom: 4px; cursor: pointer; background: none; border-top: 0; border-left: 0; border-right: 0; font-family: inherit; }
.drops { width: 100%; max-width: 380px; justify-self: center; aspect-ratio: 1; }
.drops svg { width: 100%; height: 100%; display: block; }
.aura { position: absolute; inset: -120px -40px auto auto; width: 560px; height: 560px; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, var(--halo-a), transparent); }

/* ---- sections ---- */
section { padding-block: 72px; border-top: 1px solid var(--line); }
.label { font-family: var(--font-latin); font-size: 12px; letter-spacing: 0.22em; color: var(--accent-ink); font-weight: 500; margin: 0 0 14px; }
h2 { font-size: clamp(22px, 3.4vw, 30px); font-weight: 400; line-height: 1.6; letter-spacing: 0.04em; margin: 0 0 20px; text-wrap: balance; }
.prose { max-width: 38em; color: var(--muted); margin: 0 0 12px; }
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.principles h3 { font-size: 17px; font-weight: 500; margin: 0 0 8px; letter-spacing: 0.04em; line-height: 1.6; }
.principles p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.85; }
.card { background: var(--glass); border-radius: 24px; padding: 32px 28px; box-shadow: 0 20px 40px -26px rgba(40, 110, 150, 0.4), inset 0 0 0 1px var(--line); }
.ico { width: 52px; height: 52px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #cfeaf6); border: 1px solid #b9ddee; display: grid; place-items: center; margin-bottom: 22px; }
.ico svg { width: 26px; height: 26px; stroke: var(--accent-ink); fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

/* data flow */
.flow { margin-top: 44px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, 0.5fr) minmax(0, 1fr); align-items: stretch; }
.node { border: 1px solid var(--line); border-radius: 20px; padding: 26px; background: var(--glass); }
.node.you { background: var(--bg-soft); border-color: transparent; }
.node h3 { font-size: 15px; margin: 0 0 12px; font-weight: 500; letter-spacing: 0.06em; display: flex; gap: 8px; align-items: center; }
.node ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 15px; line-height: 1.8; }
.node li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 10px; vertical-align: middle; }
.node.srv li::before { background: var(--line); }
.node.srv { border-style: dashed; }
.link { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 22px; padding-inline: 8px; font-size: 12px; color: var(--muted); text-align: center; line-height: 1.6; }
.link .line { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.link svg { width: 100%; max-width: 120px; height: 12px; overflow: visible; }
.link .x { color: var(--accent-ink); font-weight: 500; }
.note { margin: 36px 0 0; font-size: 13px; color: var(--muted); line-height: 1.9; max-width: 44em; }
.note a { color: var(--accent-ink); border-bottom: 1px solid var(--line); }

/* ---- footer ---- */
footer { border-top: 1px solid var(--line); padding-block: 36px 48px; font-size: 13px; color: var(--muted); }
.foot { display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; align-items: center; }
.foot nav { display: flex; gap: 8px 24px; flex-wrap: wrap; }
.foot a:hover { color: var(--accent-ink); }

/* ---- narrow ---- */
@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-block: 40px 64px; }
  .drops { max-width: 240px; justify-self: start; order: -1; }
  .principles { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .link { flex-direction: row; padding-block: 18px; justify-content: center; }
  .link .line { flex-direction: row; }
  .link svg { transform: rotate(90deg); width: 40px; }
  section { padding-block: 56px; }
}
@media (max-width: 720px) {
  .menu-btn { display: inline-block; }
  nav.menu { display: none; position: absolute; top: calc(100% + 4px); left: 0; right: 0; flex-direction: column; align-items: stretch; border-radius: 20px; padding: 10px; background: var(--bg); box-shadow: 0 18px 40px -18px rgba(40, 90, 120, 0.28); }
  nav.menu.open { display: flex; }
  nav.menu > a, nav.menu > .tab > button { width: 100%; justify-content: space-between; border-radius: 12px; padding: 12px 14px; }
  .panel { position: static; width: auto; box-shadow: none; border: 0; padding: 0 0 6px; }
  header .wrap { position: relative; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---- subpages ---- */
.bar.sub { justify-content: space-between; }
.back { font-size: 14px; font-weight: 500; color: var(--muted); padding: 8px 4px; }
.back:hover { color: var(--accent-ink); }
.doc { max-width: 760px; margin: 0 auto; padding-block: 48px 96px; position: relative; }
.doc .aura { inset: -160px -200px auto auto; width: 480px; height: 480px; }
.doc h1 { font-size: clamp(28px, 4.4vw, 38px); margin: 0 0 18px; }
.doc .lead { margin: 0 0 24px; }
.doc section { padding-block: 40px 8px; border-top: 1px solid var(--line); margin-top: 40px; }
.doc section.first { border-top: 0; margin-top: 8px; padding-top: 0; }
.doc h2 { font-size: 20px; margin: 0 0 14px; letter-spacing: 0.04em; }
.doc p { margin: 0 0 12px; color: var(--muted); font-size: 15px; line-height: 1.95; }
.doc ul, .doc ol { margin: 0 0 12px; padding-left: 1.4em; color: var(--muted); font-size: 15px; line-height: 1.95; }
.doc li { margin-bottom: 6px; }
.doc a.text { color: var(--accent-ink); border-bottom: 1px solid var(--line); }
.doc a.text:hover { border-bottom-color: var(--accent); }
.ph { background: var(--bg-soft); border: 1px dashed #b9ddee; border-radius: 6px; padding: 0 8px; color: var(--accent-ink); font-size: 14px; white-space: nowrap; }
dl.info { margin: 0; border-top: 1px solid var(--line); }
dl.info > div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
dl.info dt { font-size: 14px; font-weight: 500; color: var(--ink); }
dl.info dd { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.9; }
.dates { font-size: 13px; color: var(--muted); }
/* form */
form.contact { display: grid; gap: 22px; margin-top: 8px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 500; }
.field .opt { color: var(--muted); font-weight: 400; font-size: 12px; margin-left: 6px; }
.field input[type=text], .field input[type=email], .field select, .field textarea {
  font: inherit; font-size: 15px; color: var(--ink); background: var(--bg); width: 100%;
  border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; line-height: 1.7;
}
.field textarea { min-height: 180px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); line-height: 1.8; }
.check input { margin-top: 6px; accent-color: var(--accent); }
.send { justify-self: start; font: inherit; font-size: 15px; font-weight: 500; color: #fff; background: var(--accent-ink); border: 0; border-radius: 999px; padding: 13px 36px; cursor: pointer; }
.send:hover { background: var(--accent); }
.status { font-size: 14px; color: var(--accent-ink); min-height: 1.6em; margin: 0; }
@media (max-width: 720px) {
  dl.info > div { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 14px 0; }
  .doc { padding-block: 24px 64px; }
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.recaptcha-note { font-size: 12px !important; color: var(--muted); line-height: 1.8 !important; margin: 0 !important; }
.grecaptcha-badge { visibility: hidden; }
.view[hidden] { display: none !important; }
/* ---- obsidian ---- */
.plist { display: grid; gap: 18px; margin-top: 36px; counter-reset: pl; }
.pcard { position: relative; overflow: hidden; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 0 8px; background: #fff; border-radius: 22px; padding: 30px 30px 26px 22px; box-shadow: 0 18px 40px -30px rgba(40, 110, 150, 0.5), inset 0 0 0 1px var(--line); transition: transform .25s ease, box-shadow .25s ease; }
.pcard::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, var(--halo-b), rgba(255, 255, 255, 0) 70%); pointer-events: none; }
.pcard::before { counter-increment: pl; content: counter(pl, decimal-leading-zero); grid-column: 1; grid-row: 1; align-self: start; padding-left: 8px; font-family: var(--font-latin); font-weight: 300; font-size: 40px; line-height: 1; letter-spacing: 0.02em; color: var(--accent); }
.pcard > * { grid-column: 2; position: relative; }
.pcard:hover { transform: translateY(-3px); box-shadow: 0 24px 46px -28px rgba(40, 110, 150, 0.6), inset 0 0 0 1px #c5deea; }
.pcard h2 { font-family: var(--font-latin); font-size: 22px; font-weight: 500; margin: 2px 0 10px; letter-spacing: 0.01em; color: var(--ink); }
.pcard p { margin: 0 0 20px; color: var(--muted); font-size: 15px; line-height: 1.95; }
.plinks { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.plinks a { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 500; color: var(--ink); transition: border-color .2s, background .2s, color .2s; }
.plinks a::after { content: "\2197"; font-size: 13px; opacity: .7; }
.plinks a:hover { border-color: var(--accent); color: var(--accent-ink); }
.plinks a.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.plinks a.primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.pnote { font-size: 13px !important; margin-top: 32px !important; text-align: center; }
@media (max-width: 720px) {
  .pcard { grid-template-columns: minmax(0, 1fr); padding: 24px 22px 22px; }
  .pcard::before { grid-column: 1; grid-row: auto; padding: 0; font-size: 30px; margin-bottom: 6px; }
  .pcard > * { grid-column: 1; }
  .pcard h2 { font-size: 20px; }
  .plinks a { flex: 1 1 auto; justify-content: center; padding: 0 16px; }
}
