/* CARMO サービス紹介 LP（/products/yoyaku/）
   配色はアプリのログイン画面（CARMO ブランド：#4A7BF7 → #7B5CF0 のグラデーション、濃紺 #090B1A）に合わせ、
   LP 本体は読みやすさ優先の明るい構成にする。 */
:root {
  --ink: #141833;
  --muted: #4e5570;
  --navy: #0d1030;
  --blue: #3d68e6;
  --brand1: #4a7bf7;
  --brand2: #7b5cf0;
  --soft: #f3f5fe;
  --line: #dfe3f2;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  line-height: 1.75;
  background: #fff;
}
a { color: inherit; }
img { max-width: 100%; }
.wrap { width: min(1180px, 92%); margin: auto; }
.narrow { max-width: 820px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 30; background: #fff; padding: 8px 12px; }

/* ---- ブランド（ワードマーク） ---- */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  display: inline-grid; place-items: center;
  background: linear-gradient(135deg, var(--brand1), var(--brand2));
  box-shadow: 0 6px 16px rgba(74, 123, 247, 0.35);
}
.brand-mark svg { width: 20px; height: 20px; fill: #fff; }
.brand-name { font-weight: 900; letter-spacing: 0.16em; font-size: 20px; color: var(--navy); }
.brand-sub { font-size: 11px; color: var(--muted); font-weight: 700; letter-spacing: 0.02em; margin-left: 2px; }

/* ---- ナビ ---- */
#site-nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  transition: box-shadow 0.2s ease;
}
#site-nav.scrolled { box-shadow: 0 6px 24px rgba(20, 24, 51, 0.08); }
.navin { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.links { display: flex; align-items: center; gap: 24px; }
.links a { text-decoration: none; font-weight: 700; font-size: 14px; white-space: nowrap; }
.links a:hover { color: var(--blue); }
#site-nav .links a.current {
  color: var(--blue);
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 7px;
}

/* ---- ボタン ---- */
.button {
  display: inline-flex; justify-content: center; align-items: center;
  border: 0; border-radius: 8px; padding: 14px 24px;
  background: linear-gradient(135deg, var(--brand1), var(--brand2));
  color: #fff !important; text-decoration: none !important; font-weight: 800; cursor: pointer;
  box-shadow: 0 10px 24px rgba(74, 123, 247, 0.28);
}
.button:hover { filter: brightness(1.06); }
.button.small { padding: 9px 17px; box-shadow: none; }
.button.outline { background: #fff; color: var(--blue) !important; border: 2px solid var(--blue); box-shadow: none; }
.button.light { background: #fff; color: var(--navy) !important; box-shadow: none; }
.text-link { font-weight: 700; text-underline-offset: 5px; }
.nw { white-space: nowrap; }

/* ---- ヒーロー ---- */
.hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 10%, rgba(74, 123, 247, 0.12), transparent 42%),
    radial-gradient(circle at 88% 80%, rgba(123, 92, 240, 0.12), transparent 45%),
    linear-gradient(125deg, #f5f7ff, #fff 58%, #f4f1ff);
  padding: 84px 0 76px;
}
.hero-grid { display: grid; grid-template-columns: 44% 56%; align-items: center; gap: 48px; }
.eyebrow { color: var(--blue); letter-spacing: 0.11em; font-weight: 900; font-size: 13px; margin: 0 0 6px; }
.hero h1, .section h2 { line-height: 1.32; letter-spacing: -0.03em; margin: 0.35em 0; }
.hero h1 { font-size: clamp(36px, 4.1vw, 60px); }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--brand1), var(--brand2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 18px; color: var(--muted); }
.checks { padding: 0; list-style: none; }
.checks li { margin: 9px 0; font-weight: 700; }
.checks li::before { content: "✓"; margin-right: 10px; color: var(--brand2); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 24px; margin-top: 30px; }
.screen {
  overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff;
  box-shadow: 0 22px 55px rgba(20, 24, 70, 0.14);
}
.screen img { display: block; width: 100%; height: auto; }
.hero-screen { height: 470px; }
.hero-screen img { height: 100%; object-fit: cover; object-position: top left; }

/* ---- 数字帯 ---- */
.numbers { background: var(--navy); color: #fff; padding: 26px 0; }
.four { display: grid; grid-template-columns: repeat(4, 1fr); }
.four div { padding: 3px 28px; border-right: 1px solid rgba(255, 255, 255, 0.16); }
.four div:last-child { border-right: 0; }
.four strong, .four span { display: block; }
.four strong { font-size: 18px; }
.four span { font-size: 12px; color: #b8bfe6; }

/* ---- セクション共通 ---- */
.section { padding: 96px 0; }
.intro { text-align: center; background: var(--soft); }
.intro p { color: var(--muted); }
.section h2 { font-size: clamp(29px, 3.3vw, 44px); }
.heading { text-align: center; margin-bottom: 64px; }
.heading p { color: var(--muted); }

/* ---- 機能紹介 ---- */
.feature { display: grid; grid-template-columns: 56% 44%; gap: 60px; align-items: center; margin-bottom: 110px; }
.feature.reverse { grid-template-columns: 44% 56%; }
.feature.reverse > .screen { order: 2; }
.feature > div:last-child > b {
  font-size: 34px; font-weight: 900;
  background: linear-gradient(135deg, var(--brand1), var(--brand2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.feature h3 { font-size: 28px; line-height: 1.4; margin: 0.2em 0 0.5em; }
.feature p { color: var(--muted); }
.feature ul { padding-left: 1.2em; }
.feature li { margin: 5px 0; }
.crop { height: 430px; }
.crop img { height: 100%; object-fit: cover; object-position: top left; }
.zoomable img { cursor: zoom-in; }

.capability-panel {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 22px;
  background: var(--soft); border: 1px solid var(--line); border-radius: 14px;
}
.capability-panel div { min-height: 118px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.capability-panel strong, .capability-panel span { display: block; }
.capability-panel strong { color: var(--blue); font-size: 18px; }
.capability-panel span { margin-top: 7px; color: #5b6280; font-size: 13px; }
.manual-link { margin-top: 28px; font-weight: 800; }
.manual-link a { text-underline-offset: 4px; }
.feature-system { margin-bottom: 10px; }

/* ---- お客さまサイト（スマホ画面） ---- */
.customer-site { background: linear-gradient(180deg, #f6fbfa, #fff); }
.phones { display: grid; grid-template-columns: repeat(3, minmax(0, 260px)); justify-content: center; gap: 36px; }
.phones figure { margin: 0; text-align: center; }
.phones img {
  display: block; width: 100%; height: auto; border-radius: 26px;
  border: 8px solid #141833; background: #141833;
  box-shadow: 0 18px 40px rgba(20, 24, 70, 0.18);
}
.phones figcaption { margin-top: 14px; font-weight: 800; }
.phones figcaption small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }

/* ---- 導入サポート ---- */
.support { background: var(--navy); color: #fff; }
.support .eyebrow { color: #9fb4ff; }
.support p { color: #d3d8f4; }
.support-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 70px; align-items: center; }
.support-box { background: #fff; color: var(--ink); border-radius: 15px; padding: 34px; display: flex; flex-direction: column; gap: 6px; }
.support-box strong { font-size: 20px; }
.support-box ul { margin: 6px 0 0; padding-left: 1.2em; color: var(--muted); }
.support a { color: inherit; text-underline-offset: 4px; }

/* ---- 料金 ---- */
.price { background: var(--soft); }
.price-card {
  max-width: 640px; margin: auto; background: #fff; border: 1px solid var(--line);
  border-radius: 16px; padding: 42px 38px; text-align: center;
}
.price-card h3 { margin: 0 0 6px; font-size: 22px; }
.price-card .price-amount { color: var(--ink); margin: 0; font-weight: 800; }
.price-card .price-amount strong { font-size: 52px; letter-spacing: -0.02em; margin-right: 4px; color: var(--navy); }
.price-card .price-amount small { font-size: 14px; color: var(--muted); margin-left: 4px; }
.price-card .price-tax { font-weight: 800; color: var(--blue); margin: 0 0 16px; }
.price-card p { color: var(--muted); margin: 0 0 24px; }

/* ---- FAQ ---- */
.faq details { border-bottom: 1px solid var(--line); padding: 22px 8px; }
.faq summary { font-weight: 800; cursor: pointer; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

/* ---- 申込フォーム ---- */
.apply { background: linear-gradient(135deg, #eef2ff, #fff 60%, #f3efff); }
.apply-grid { display: grid; grid-template-columns: 36% 64%; gap: 56px; align-items: start; }
.apply-grid > * { min-width: 0; }
.apply-intro > p { color: var(--muted); }
.apply dl { margin: 26px 0; }
.apply dl div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding: 14px 0; }
.apply dt { font-weight: 800; }
.apply dd { margin: 0; text-align: right; font-weight: 700; }
.apply dd small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }
.apply-note a { text-underline-offset: 4px; font-weight: 700; }
.form-card { position: relative; background: #fff; padding: 36px; border-radius: 16px; box-shadow: 0 20px 50px rgba(20, 24, 70, 0.1); }
.form-card fieldset { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.form-card legend, .form-card label.block, .fields label { display: block; font-weight: 800; margin-bottom: 9px; }
.form-card label.block { margin-bottom: 18px; }
.form-card i { font-style: normal; font-size: 11px; color: #d13e3e; margin-left: 4px; }
.form-card i.optional, .form-card label small { color: var(--muted); font-size: 11px; font-weight: 700; }
.choices, .fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choices label { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 12px 13px; cursor: pointer; font-weight: 400; }
.choices label:has(input:checked) { border-color: var(--blue); background: #f4f6ff; }
.choices span { display: flex; flex-direction: column; margin-left: 10px; line-height: 1.5; }
.choices small { color: var(--muted); font-size: 12px; }
.fields { margin-bottom: 18px; }
.form-card input:not([type="radio"]):not([type="checkbox"]), .form-card textarea {
  width: 100%; border: 1px solid #b9c0da; border-radius: 6px; padding: 12px; font: inherit; margin-top: 6px; background: #fff;
}
.form-card input:focus-visible, .form-card textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.choices input, .agree input { width: auto; margin: 0; accent-color: var(--blue); }
.agree { display: flex; align-items: flex-start; gap: 10px; margin: 6px 0 22px; font-weight: 700; }
.agree input { margin-top: 6px; }
.agree a { color: var(--blue); text-underline-offset: 3px; }
.full { width: 100%; }
.button:disabled { opacity: 0.65; cursor: wait; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status:empty { display: none; }
.form-status.error { background: #fff0f0; color: #a21d1d; padding: 10px 12px; border-radius: 6px; margin-bottom: 18px; font-weight: 700; }
.success { text-align: center; padding: 40px 10px; }
.success h3 { font-size: 24px; margin: 0 0 8px; }
.success p { color: var(--muted); }

/* ---- フッター ---- */
footer { background: #090b1a; color: #d5d9ee; padding: 34px 0; }
footer .brand-name { color: #fff; }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.foot div { display: flex; gap: 18px; }
.foot a { font-size: 13px; }

/* ---- reveal（JS 有効時のみ非表示から表示へ） ---- */
html.reveal-ready .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
html.reveal-ready .reveal.visible { opacity: 1; transform: none; }

/* ---- 利用規約ダイアログ（/terms を iframe で表示） ---- */
.terms-dialog {
  width: min(1100px, 96vw); max-width: none; height: 92vh; max-height: none;
  padding: 0; border: 0; border-radius: 12px; overflow: hidden;
}
.terms-dialog::backdrop { background: rgba(6, 8, 20, 0.78); }
.terms-dialog-header {
  height: 58px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 18px 0 24px; border-bottom: 1px solid var(--line); color: var(--navy);
}
.terms-dialog-header button { width: 40px; height: 40px; border: 0; background: transparent; color: var(--navy); font-size: 28px; cursor: pointer; }
.terms-dialog iframe { display: block; width: 100%; height: calc(92vh - 58px); border: 0; background: #fff; }

/* ---- 画像拡大 ---- */
.image-lightbox {
  width: min(96vw, 1700px); max-width: none; height: 94vh; max-height: none; margin: auto;
  padding: 56px 16px 16px; border: 0; border-radius: 12px; background: #11142a; color: #fff; overflow: hidden;
}
.image-lightbox::backdrop { background: rgba(6, 8, 20, 0.86); }
.image-lightbox img { display: block; width: 100%; height: calc(94vh - 110px); object-fit: contain; }
.image-lightbox p { margin: 8px 50px 0; text-align: center; font-size: 0.9rem; color: #e4e8ff; }
.image-lightbox-close {
  position: absolute; top: 10px; right: 14px; width: 40px; height: 40px;
  border: 0; border-radius: 50%; background: #fff; color: var(--navy); font-size: 26px; line-height: 1; cursor: pointer;
}

@media (max-width: 800px) {
  .links > a:not(.button):not(.global-link) { display: none; }
  .links { gap: 14px; }
  .brand-sub { display: none; }
  .hero-grid, .feature, .feature.reverse, .support-grid { grid-template-columns: 1fr; }
  .hero { padding: 52px 0; }
  .hero-screen { height: 300px; }
  .four { grid-template-columns: 1fr 1fr; gap: 18px; }
  .four div { border: 0; padding: 0; }
  .section { padding: 68px 0; }
  .heading { margin-bottom: 44px; }
  .feature, .feature.reverse { gap: 28px; margin-bottom: 76px; }
  .feature.reverse > .screen { order: 0; }
  .feature h3 { font-size: 24px; }
  .crop { height: 280px; }
  .capability-panel { padding: 14px; }
  .capability-panel div { min-height: 100px; padding: 15px; }
  .phones { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .phones img { border-width: 4px; border-radius: 14px; }
  .phones figcaption { font-size: 13px; }
  .phones figcaption small { font-size: 11px; }
  .actions { align-items: flex-start; flex-direction: column; }
  .apply-grid { grid-template-columns: 1fr; gap: 28px; }
  .choices, .fields { grid-template-columns: 1fr; }
  .form-card { padding: 22px; }
  .foot { flex-direction: column; }
  .foot div { flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 430px) {
  /* 狭い画面ではナビを「ロゴ＋もう一方のページへのリンク＋相談ボタン」に絞る */
  .links { gap: 10px; }
  .links .global-link.current { display: none; }
  .links a { font-size: 13px; }
  .links .button.small { padding: 8px 11px; }
  .brand { gap: 8px; }
  .brand-name { font-size: 17px; letter-spacing: 0.1em; }
  .capability-panel { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.reveal-ready .reveal { opacity: 1; transform: none; transition: none; }
}
