/* 蓬莱テクノロジー 会社サイト 共通スタイル（v2） */
:root {
  --bg: #f3f6f5;
  --surface: #ffffff;
  --surface-2: #e9efed;
  --ink: #0d1513;
  --muted: #56625e;
  --line: #d9e1de;
  --accent: #0f7066;
  --accent-ink: #ffffff;
  --accent-soft: #dcefeb;
  --coral: #e8664f;
  --band: #0a2522;
  --band-ink: #e9f4f1;
  --band-muted: #9dbab4;
  --band-line: #1d3f3a;
  --visual: #dedde0;
  --shadow: 0 1px 2px rgba(13, 21, 19, .05), 0 12px 32px -12px rgba(13, 21, 19, .16);
  --font-head: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-body: "IBM Plex Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-latin: "Bricolage Grotesque", "Zen Kaku Gothic New", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --wrap: 1160px;
  --radius: 18px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a100f;
    --surface: #111a18;
    --surface-2: #16211f;
    --ink: #e5eeeb;
    --muted: #97a8a3;
    --line: #22302d;
    --accent: #5fd0be;
    --accent-ink: #062320;
    --accent-soft: #123430;
    --coral: #f2876f;
    --band: #0f2f2b;
    --band-ink: #e9f4f1;
    --band-muted: #9dbab4;
    --band-line: #24504a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a100f;
  --surface: #111a18;
  --surface-2: #16211f;
  --ink: #e5eeeb;
  --muted: #97a8a3;
  --line: #22302d;
  --accent: #5fd0be;
  --accent-ink: #062320;
  --accent-soft: #123430;
  --coral: #f2876f;
  --band: #0f2f2b;
  --band-ink: #e9f4f1;
  --band-muted: #9dbab4;
  --band-line: #24504a;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  word-break: auto-phrase;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.nb { display: inline-block; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }
@media (max-width: 480px) { .wrap { padding-inline: 16px; } }

/* ヘッダー */
.site-head {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 28px; height: 28px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-ja { font-family: var(--font-head); font-weight: 700; font-size: 16px; letter-spacing: .04em; }
.brand-en { font-family: var(--font-latin); font-size: 11px; font-weight: 600; letter-spacing: .08em; color: var(--muted); }
.site-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; font-size: 14px; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--ink); }
.site-nav .nav-cta { color: var(--accent-ink); background: var(--ink); padding: 7px 14px; border-radius: 999px; font-weight: 600; }
.site-nav .nav-cta:hover { color: var(--accent-ink); }
@media (max-width: 720px) { .site-nav .hide-sm { display: none; } .site-nav { gap: 16px; } .site-head .wrap { flex-wrap: nowrap; } }
@media (max-width: 420px) { .site-nav .hide-xs { display: none; } .site-nav .nav-cta { padding: 6px 12px; font-size: 13px; } }

/* 共通の部品 */
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.35; text-wrap: balance; margin: 0; }
.label {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 14px;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500;
  color: var(--ink); background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 14px 5px 10px; box-shadow: var(--shadow);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px color-mix(in srgb, var(--coral) 22%, transparent); }
.btn {
  display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; text-decoration: none;
  border-radius: 999px; padding: 12px 22px; transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 24px -10px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-ghost { color: var(--ink); border: 1px solid var(--line); background: var(--surface); }
.btn:hover { transform: translateY(-1px); }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.section { padding-block: 96px; }
@media (max-width: 720px) { .section { padding-block: 64px; } }
.section-head { max-width: 40em; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(26px, 3.6vw, 38px); }
.section-head p { color: var(--muted); margin: 14px 0 0; }

/* ヒーロー */
.hero { padding-block: 56px 72px; }
.hero-grid { max-width: 760px; }
.hero h1 { font-size: clamp(36px, 6.2vw, 68px); font-weight: 900; letter-spacing: .01em; line-height: 1.2; margin-top: 22px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { color: var(--muted); font-size: 17px; max-width: 30em; margin: 22px 0 0; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

/* 技術の帯 */
.stack { border-block: 1px solid var(--line); padding-block: 22px; }
.stack .wrap { display: flex; align-items: center; gap: 12px 32px; flex-wrap: wrap; }
.stack .stack-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.stack ul { display: flex; gap: 10px 28px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; font-family: var(--font-latin); font-weight: 600; font-size: 17px; color: var(--muted); }

/* ミッション */
.mission { font-family: var(--font-head); font-weight: 700; font-size: clamp(24px, 3.4vw, 40px); line-height: 1.55; max-width: 24em; margin: 0; }
.mission .soft { color: var(--muted); }

/* 事業 */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 14px; display: flex; flex-direction: column; gap: 4px;
}
.card h3, .card p { padding-inline: 10px; }
.card h3 { font-size: 19px; }
.card p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }

/* 作品 */
.feature {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
  background: var(--band); color: var(--band-ink); border-radius: 28px; padding: 48px; overflow: hidden; position: relative;
}
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; padding: 32px 24px; gap: 28px; } }
.feature::before {
  content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -180px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--coral) 35%, transparent), transparent 65%);
  pointer-events: none;
}
.feature > * { position: relative; }
.feature .label { color: var(--band-muted); }
.feature h3 { font-size: clamp(32px, 4.4vw, 48px); font-weight: 900; }
.feature .kicker { color: var(--band-muted); margin: 4px 0 18px; }
.feature p { margin: 0 0 22px; max-width: 32em; }
.feature .facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px 28px; margin: 0 0 28px; padding: 0; list-style: none; }
.feature .facts li { display: flex; flex-direction: column; font-size: 12px; color: var(--band-muted); }
.feature .facts b { font-family: var(--font-latin); font-size: 22px; color: var(--band-ink); font-weight: 700; }
.feature .btn-primary { background: var(--band-ink); color: var(--band); box-shadow: none; }
.feature .phone { justify-self: center; width: min(280px, 72vw); border-radius: 32px; padding: 10px; background: #050f0e; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); transform: rotate(3deg); }
.feature .phone img { border-radius: 24px; }

.work-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
@media (max-width: 900px) { .work-row { grid-template-columns: 1fr; } }
.work-mini { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.work-mini h3 { font-size: 21px; }
.work-mini .kicker { color: var(--muted); font-size: 14px; margin: 2px 0 12px; }
.work-mini p { margin: 0 0 16px; font-size: 15px; }
.work-mini.next { background: transparent; border-style: dashed; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tags li { font-size: 12px; color: var(--muted); background: var(--surface-2); border-radius: 999px; padding: 2px 10px; }

/* 作り方（順番に意味がある） */
.loop { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: step; border-top: 1px solid var(--line); }
@media (max-width: 900px) { .loop { grid-template-columns: 1fr; } }
.loop li { padding: 28px 28px 8px 0; counter-increment: step; }
.loop li::before { content: counter(step, decimal-leading-zero); font-family: var(--font-latin); font-weight: 700; font-size: 15px; color: var(--accent); display: block; margin-bottom: 10px; }
.loop h3 { font-size: 20px; margin-bottom: 6px; }
.loop p { margin: 0; color: var(--muted); font-size: 15px; }

/* 歩み */
.timeline { margin: 0; padding: 0; list-style: none; border-left: 2px solid var(--line); margin-left: 6px; }
.timeline li { position: relative; padding: 0 0 28px 28px; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); }
.timeline li.done::before { background: var(--accent); }
.timeline time, .timeline .when { font-family: var(--font-mono); font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.timeline h3 { font-size: 17px; margin-top: 2px; }
.timeline p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } }

/* 運営者情報の表 */
.info { width: 100%; border-collapse: collapse; font-size: 15px; }
.info th, .info td { text-align: left; vertical-align: top; padding: 14px 0; border-bottom: 1px solid var(--line); }
.info tr:first-child th, .info tr:first-child td { border-top: 1px solid var(--line); }
.info th { width: 8.5em; font-weight: 500; color: var(--muted); padding-right: 16px; }
.info .note { color: var(--muted); font-size: 13px; }
@media (max-width: 480px) {
  .info th, .info td { display: block; width: auto; }
  .info th { padding-bottom: 0; border-bottom: 0; }
  .info tr:first-child td { border-top: 0; }
}

/* お問い合わせ帯 */
.cta-band { background: var(--band); color: var(--band-ink); border-radius: 28px; padding: 56px 48px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
@media (max-width: 900px) { .cta-band { grid-template-columns: 1fr; padding: 36px 24px; } }
.cta-band h2 { font-size: clamp(26px, 3.6vw, 38px); }
.cta-band p { color: var(--band-muted); margin: 12px 0 0; }
.mailbox { background: color-mix(in srgb, var(--band-ink) 7%, transparent); border: 1px solid var(--band-line); border-radius: 16px; padding: 20px; }
.mailbox .addr { display: block; font-family: var(--font-mono); font-size: clamp(16px, 2.2vw, 20px); color: var(--band-ink); text-decoration: none; word-break: break-all; }
.mailbox .row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.copy {
  font: 600 13px var(--font-body); color: var(--band); background: var(--band-ink);
  border: 0; border-radius: 999px; padding: 7px 14px; cursor: pointer;
}
.mailbox small { color: var(--band-muted); font-size: 12px; }

/* 規約ページ */
.doc { max-width: 46em; padding-block: 56px 72px; }
.doc h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 900; }
.doc .meta { color: var(--muted); font-size: 14px; margin: 10px 0 36px; }
.doc h2 { font-size: 19px; margin: 48px 0 12px; }
.doc h3 { font-size: 16px; margin: 28px 0 8px; }
.doc p, .doc li { font-size: 15px; }
.doc ul { padding-left: 1.3em; }
.doc li + li { margin-top: 4px; }
.toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; background: var(--surface); }
.toc ol { margin: 0; padding-left: 1.4em; columns: 2; column-gap: 32px; font-size: 14px; }
@media (max-width: 560px) { .toc ol { columns: 1; } }
.data-table-wrap { overflow-x: auto; margin: 12px 0 8px; }
.data-table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 14px; }
.data-table th, .data-table td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.data-table th { background: var(--accent-soft); font-weight: 600; }

/* フッター */
.site-foot { border-top: 1px solid var(--line); padding-block: 32px 44px; font-size: 13px; color: var(--muted); margin-top: 24px; }
.site-foot .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--ink); }
