/* =====================================================================
   自社開発SaaS の製品LP（/saas/<製品>）共通スタイル
   トンマナは GuestNote に合わせる（skills/leale-ui-theme/themes/guestnote.css の値）。
   コーポレートサイト本体（style.css）とは独立。2026-10-22 作成。
   ===================================================================== */
:root {
  --gn-blue: #3498db; --gn-blue-hover: #2980b9; --gn-blue-pale: #eaf2f8;
  --gn-head: #2c3e50; --gn-text: #333; --gn-muted: #7f8c8d; --gn-line: #e3e8ee;
  --gn-green: #27ae60; --gn-purple: #8e44ad; --gn-orange: #e67e22;
  --gn-bg: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  --r-card: 12px; --r-btn: 8px; --r-sec: 16px;
  --shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 18px 40px rgba(44, 62, 80, 0.14);
  --gn-btn-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
  --gn-foot: #1f2d3a; --gn-hl: transparent;
}
/* ---- 製品ごとの配色（各システムの実際の画面の色に合わせる。2026-10-22） ----
   GuestNote / LocaNote … 青 #3498db（両製品とも同じブランド色。LocaNote は decisions/0003 で GuestNote に合わせた）
   Shif-Match … ミントグリーン #3E9E8C（shif-match-web/src/app/globals.css の --gn-primary）
   Hata-Raku  … ミント #96D1C4 ＋ ティール #008080（hata-raku-saas/public/index.html）。白文字のボタンは読みやすさのためティール */
body[data-theme="shif-match"] {
  --gn-blue: #3E9E8C; --gn-blue-hover: #2F8273; --gn-blue-pale: #EAF6F2;
  --gn-head: #30354C; --gn-muted: #989AB6; --gn-line: #ECEEF5; --gn-green: #3E9E8C; --gn-orange: #C27E82;
  --gn-bg: linear-gradient(135deg, #f6faf8 0%, #cfe7df 100%);
  --gn-btn-shadow: 0 4px 10px rgba(62, 158, 140, 0.3); --gn-foot: #262a3d;
  --shadow-lg: 0 18px 40px rgba(48, 53, 76, 0.14);
}
body[data-theme="hata-raku"] {
  --gn-blue: #008080; --gn-blue-hover: #006666; --gn-blue-pale: #e8f5f2;
  --gn-head: #333333; --gn-muted: #9099B1; --gn-line: #e4e9e8; --gn-green: #1e8e3e; --gn-orange: #DEA9A8;
  --gn-bg: linear-gradient(135deg, #f7f7f2 0%, #bfe3da 100%);
  --gn-btn-shadow: 0 4px 10px rgba(0, 128, 128, 0.28); --gn-foot: #2b2b2b;
  --shadow-lg: 0 18px 40px rgba(40, 40, 40, 0.14); --gn-hl: #F4E77E;
}
body[data-theme="hata-raku"] .pain, body[data-theme="hata-raku"] .sec-head .en { border-top-color: #96D1C4; }
body[data-theme="hata-raku"] .hero h1 em { background: linear-gradient(transparent 64%, var(--gn-hl) 64%); }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: "Noto Sans JP", sans-serif; color: var(--gn-text); line-height: 1.8; background: #f5f7fa; overflow-x: hidden; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
.msr { font-family: "Material Symbols Rounded"; font-weight: normal; font-style: normal; font-size: 1.25em; line-height: 1;
  letter-spacing: normal; text-transform: none; display: inline-block; white-space: nowrap; direction: ltr;
  -webkit-font-feature-settings: "liga"; font-feature-settings: "liga"; vertical-align: -0.2em; }
.en { font-family: "Montserrat", sans-serif; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* ---- ヘッダー ---- */
.lp-head { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gn-line); }
.lp-head .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.lp-brand { display: flex; align-items: center; gap: 8px; font-family: "Montserrat", sans-serif; font-weight: 700;
  font-size: 1.25rem; color: var(--gn-head); letter-spacing: -0.02em; }
.lp-brand .msr { color: var(--gn-blue); font-size: 1.7rem; }
.lp-brand small { font-family: "Noto Sans JP", sans-serif; font-size: 0.66rem; font-weight: 400; color: var(--gn-muted); letter-spacing: 0; margin-left: 4px; }
.lp-nav { display: flex; gap: 22px; margin-left: auto; font-size: 0.86rem; font-weight: 700; color: var(--gn-head); }
.lp-nav a:hover { color: var(--gn-blue); }
.lp-head .btn { padding: 9px 16px; font-size: 0.86rem; }
.lp-menu { display: none; margin-left: auto; background: none; border: 0; color: var(--gn-head); cursor: pointer; }
@media (max-width: 860px) {
  .lp-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--gn-line); box-shadow: var(--shadow); }
  .lp-nav.open { display: flex; }
  .lp-nav a { padding: 14px 20px; border-top: 1px solid var(--gn-line); }
  .lp-menu { display: block; }
  .lp-head .btn { display: none; }
}

/* ---- ボタン ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: var(--r-btn);
  font-weight: 700; font-size: 0.98rem; border: 2px solid transparent; transition: background .2s, transform .2s, box-shadow .2s; cursor: pointer; }
.btn-primary { background: var(--gn-blue); color: #fff; box-shadow: var(--gn-btn-shadow); }
.btn-primary:hover { background: var(--gn-blue-hover); transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--gn-blue); border-color: var(--gn-blue); }
.btn-ghost:hover { background: var(--gn-blue-pale); }

/* ---- ヒーロー ---- */
.hero { background: var(--gn-bg); padding: 72px 0 84px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: 999px; background: #fff;
  color: var(--gn-blue); font-size: 0.8rem; font-weight: 700; box-shadow: var(--shadow); }
.hero .status { margin-left: 8px; background: var(--gn-orange); color: #fff; }
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.45; color: var(--gn-head); margin: 18px 0 16px; letter-spacing: 0.01em; }
.hero h1 em { font-style: normal; color: var(--gn-blue); }
.hero .lead { color: var(--gn-head); opacity: .85; font-size: 1.02rem; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .note { margin-top: 14px; font-size: 0.78rem; color: var(--gn-muted); }
@media (max-width: 860px) {
  .hero { padding: 44px 0 56px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
}

/* ---- 端末の枠 ---- */
.frame { position: relative; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; }
.frame.browser::before { content: ""; display: block; height: 30px; background: #eef1f5 radial-gradient(circle at 16px 15px, #ff6159 5px, transparent 6px),
  radial-gradient(circle at 34px 15px, #ffbd2e 5px, transparent 6px), radial-gradient(circle at 52px 15px, #28c941 5px, transparent 6px); }
.frame.browser::before { background-color: #eef1f5; }
.frame.phone { width: min(300px, 78vw); margin-inline: auto; border-radius: 36px; padding: 12px; background: #1d2733; }
.frame.phone > * { border-radius: 26px; overflow: hidden; }
.frame video, .frame img { width: 100%; }
.frame .tag { position: absolute; right: 12px; bottom: 12px; background: rgba(44, 62, 80, 0.82); color: #fff; font-size: 0.7rem;
  padding: 3px 10px; border-radius: 999px; pointer-events: none; }
.frame.phone .tag { right: 22px; bottom: 22px; }
.duo { position: relative; }
.duo .frame.phone { position: absolute; right: -10px; bottom: -36px; width: min(170px, 34vw); padding: 7px; border-radius: 24px; }
.duo .frame.phone > * { border-radius: 18px; }
@media (max-width: 860px) { .duo .frame.phone { right: 4px; bottom: -28px; } }
.pair { display: flex; gap: 18px; justify-content: center; align-items: flex-start; }
.pair .frame.phone { width: min(240px, 44vw); margin: 0; padding: 9px; border-radius: 30px; }
.pair .frame.phone:last-child { margin-top: 48px; }
.pair .frame.phone > * { border-radius: 22px; }

/* ---- セクション ---- */
section.sec { padding: 88px 0; }
section.sec.alt { background: #fff; }
.sec-head { text-align: center; margin-bottom: 48px; }
.sec-head .en { display: block; color: var(--gn-blue); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.18em; }
.sec-head h2 { font-size: clamp(1.4rem, 3vw, 2rem); color: var(--gn-head); margin-top: 6px; line-height: 1.5; }
.sec-head p { color: var(--gn-muted); margin-top: 10px; }
@media (max-width: 860px) { section.sec { padding: 60px 0; } .sec-head { margin-bottom: 32px; } }

/* お悩み */
.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pain { background: #fff; border-radius: var(--r-card); padding: 26px 24px; box-shadow: var(--shadow); border-top: 4px solid var(--gn-blue); }
.pain .msr { color: var(--gn-blue); font-size: 2rem; }
.pain h3 { font-size: 1.02rem; color: var(--gn-head); margin: 10px 0 6px; line-height: 1.5; }
.pain p { font-size: 0.9rem; color: #555; }
.answer { margin-top: 34px; text-align: center; font-size: 1.12rem; font-weight: 700; color: var(--gn-head); }
.answer b { color: var(--gn-blue); }
@media (max-width: 860px) { .pains { grid-template-columns: 1fr; } }

/* 特長（左右交互） */
.feature { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; }
.feature + .feature { margin-top: 96px; }
.feature.rev .feature-media { order: -1; }
.feature .num { font-family: "Montserrat", sans-serif; font-weight: 700; color: var(--gn-blue); font-size: 0.9rem; letter-spacing: 0.12em; }
.feature h3 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); color: var(--gn-head); line-height: 1.55; margin: 6px 0 14px; }
.feature p { color: #4a5a6a; }
.checks { list-style: none; margin-top: 16px; display: grid; gap: 8px; }
.checks li { padding-left: 30px; position: relative; font-size: 0.95rem; }
.checks li::before { content: "check_circle"; font-family: "Material Symbols Rounded"; position: absolute; left: 0; top: 0;
  color: var(--gn-green); font-size: 1.25rem; line-height: 1.5; }
.feature-media figcaption { font-size: 0.8rem; color: var(--gn-muted); margin-top: 12px; text-align: center; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 26px; }
  .feature.rev .feature-media { order: 0; }
  .feature + .feature { margin-top: 64px; }
}

/* 使い方ステップ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: st; }
.step { background: #f8fafc; border-radius: var(--r-sec); padding: 18px 18px 22px; border: 1px solid var(--gn-line); }
.step .frame { box-shadow: var(--shadow); border-radius: 10px; }
.step .frame.browser::before { height: 22px; background-size: auto; }
.step h3 { display: flex; align-items: center; gap: 10px; font-size: 1.02rem; color: var(--gn-head); margin: 16px 0 6px; line-height: 1.5; }
.step h3::before { counter-increment: st; content: counter(st); flex: 0 0 30px; height: 30px; border-radius: 50%; background: var(--gn-blue);
  color: #fff; font-family: "Montserrat", sans-serif; font-size: 0.9rem; display: grid; place-items: center; }
.step p { font-size: 0.9rem; color: #555; }
.step .frame.phone { width: min(230px, 70vw); }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr; } }

/* 画面ギャラリー */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery figure { background: #fff; border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow); cursor: zoom-in; }
.gallery figure img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; width: 100%; }
.gallery figure.tall img { aspect-ratio: 16 / 10; object-fit: contain; background: #eef2f7; }
.gallery figcaption { padding: 10px 14px; font-size: 0.85rem; font-weight: 700; color: var(--gn-head); }
@media (max-width: 860px) { .gallery { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .gallery { grid-template-columns: 1fr; } }

/* 機能一覧 */
.funcs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.func { background: #fff; border-radius: var(--r-card); padding: 18px; box-shadow: var(--shadow); }
.func .msr { color: var(--gn-blue); font-size: 1.6rem; }
.func h4 { font-size: 0.95rem; color: var(--gn-head); margin: 6px 0 2px; }
.func p { font-size: 0.82rem; color: #666; line-height: 1.7; }
@media (max-width: 960px) { .funcs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .funcs { grid-template-columns: 1fr; } }

/* 導入の流れ */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.flow li { list-style: none; background: #fff; border-radius: var(--r-card); padding: 20px; box-shadow: var(--shadow); position: relative; }
.flow li b { display: block; font-family: "Montserrat", sans-serif; color: var(--gn-blue); font-size: 0.78rem; letter-spacing: 0.1em; }
.flow li h4 { color: var(--gn-head); margin: 4px 0; font-size: 1rem; }
.flow li p { font-size: 0.86rem; color: #555; }
@media (max-width: 860px) { .flow { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .flow { grid-template-columns: 1fr; } }
.proof { margin-top: 32px; background: var(--gn-blue-pale); border-radius: var(--r-sec); padding: 22px 26px; display: flex; gap: 16px; align-items: flex-start; }
.proof .msr { color: var(--gn-blue); font-size: 2rem; }
.proof p { color: var(--gn-head); font-size: 0.95rem; }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: #fff; border-radius: var(--r-card); box-shadow: var(--shadow); padding: 4px 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 28px 16px 0; font-weight: 700; color: var(--gn-head); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "add"; font-family: "Material Symbols Rounded"; position: absolute; right: 0; top: 14px; color: var(--gn-blue); font-size: 1.4rem; }
.faq details[open] summary::after { content: "remove"; }
.faq details p { padding: 0 0 18px; color: #555; font-size: 0.93rem; }

/* CTA */
.cta { background: var(--gn-head); color: #fff; text-align: center; padding: 76px 0; }
.cta h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); line-height: 1.5; }
.cta p { color: #c9d4de; margin-top: 10px; }
.cta .ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }
.cta .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.cta .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

/* フッター */
.lp-foot { background: var(--gn-foot); color: #a8b6c3; font-size: 0.84rem; padding: 40px 0 28px; }
.lp-foot .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; }
.lp-foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.lp-foot a:hover { color: #fff; }
.lp-foot .others { width: 100%; border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.lp-foot .others a { background: rgba(255, 255, 255, 0.06); padding: 6px 14px; border-radius: 999px; }
.lp-foot .copy { width: 100%; font-size: 0.74rem; color: #74859a; }

/* 拡大表示 */
.zoom { position: fixed; inset: 0; z-index: 100; background: rgba(20, 30, 40, 0.86); display: none; place-items: center; padding: 20px; cursor: zoom-out; }
.zoom.open { display: grid; }
.zoom img { max-height: 92vh; width: auto; border-radius: 10px; box-shadow: var(--shadow-lg); }

/* 出現アニメ（JSが有効なときだけ） */
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---- 製品の連携（2026-10-22）。つながりの流れと、便利な点 ---- */
section.sec.links { background: linear-gradient(180deg, var(--gn-blue-pale) 0%, #fff 100%); }
.lk-lead { max-width: 820px; margin: -18px auto 34px; text-align: center; color: var(--gn-head); }
.lk-flow { display: flex; align-items: stretch; justify-content: center; gap: 10px; flex-wrap: nowrap; }
.lk-node { flex: 1 1 0; min-width: 0; background: #fff; border-radius: var(--r-card); box-shadow: var(--shadow); padding: 18px 16px;
  text-align: center; border-top: 4px solid var(--gn-blue); display: flex; flex-direction: column; gap: 4px; }
.lk-node .msr { color: var(--gn-blue); font-size: 2rem; }
.lk-node b { color: var(--gn-head); font-size: 1rem; }
.lk-node span:last-child { font-size: 0.84rem; color: #555; line-height: 1.65; }
.lk-arrow { align-self: center; color: var(--gn-blue); font-size: 1.6rem; flex: 0 0 auto; }
.lk-points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 34px; }
.lk-point { background: #fff; border-radius: var(--r-card); box-shadow: var(--shadow); padding: 22px 24px; border-left: 4px solid var(--gn-blue); }
.lk-point h3 { font-size: 1.02rem; color: var(--gn-head); margin-bottom: 6px; }
.lk-point p { font-size: 0.92rem; color: #555; }
@media (max-width: 860px) {
  .lk-flow { flex-direction: column; }
  .lk-arrow { transform: rotate(90deg); }
  .lk-points { grid-template-columns: 1fr; }
}
