/*
Theme Name: PlusPass Corporate
Theme URI: https://plus-pass.com/
Author: PlusPass Inc.
Description: 株式会社PlusPass コーポレートサイト用テーマ (静的HTMLから生成)
Version: 1.0.0
*/
/* PlusPass corporate site — design tokens & layout
   配色はロゴ実測(ブルー#0080CC / イエロー#FDD000)を継承。
   ネイビーは「通信の信号」を想起させる信頼色、イエローは主要数字とCTAだけに使う。 */

:root {
  --bg: #f7f9fb;
  --surface: #ffffff;
  --surface-2: #eef3f8;
  --ink: #101d33;
  --text: #2b3a4f;
  --muted: #5c6b80;
  --line: #d9e1ea;
  --navy: #0b1f3a;
  --navy-2: #122c52;
  --blue: #0080cc;
  --blue-deep: #0064a6;
  --blue-soft: #e3f1fb;
  --yellow: #fdd000;
  --on-navy: #f2f6fa;
  --on-navy-muted: #a9b8cc;
  --focus: #0080cc;

  --font-display: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --font-body: "IBM Plex Sans JP", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --font-num: "Manrope", "IBM Plex Sans JP", sans-serif;

  --w: 1120px;
  --radius: 6px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1524;
    --surface: #122036;
    --surface-2: #172a45;
    --ink: #f2f6fa;
    --text: #d6dee9;
    --muted: #96a5ba;
    --line: #24344d;
    --navy: #07142a;
    --navy-2: #0e2140;
    --blue: #3aa0e6;
    --blue-deep: #0080cc;
    --blue-soft: #14304d;
    --on-navy: #f2f6fa;
    --on-navy-muted: #a9b8cc;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1524;
  --surface: #122036;
  --surface-2: #172a45;
  --ink: #f2f6fa;
  --text: #d6dee9;
  --muted: #96a5ba;
  --line: #24344d;
  --navy: #07142a;
  --navy-2: #0e2140;
  --blue: #3aa0e6;
  --blue-deep: #0080cc;
  --blue-soft: #14304d;
  --on-navy: #f2f6fa;
  --on-navy-muted: #a9b8cc;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt";
}
img { max-width: 100%; display: block; }
a { color: var(--blue-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--focus); outline-offset: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.3;
  letter-spacing: 0.01em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 700; }
h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 700; }
h3 { font-size: 22px; font-weight: 700; }
h4 { font-size: 17px; font-weight: 700; }
p { margin: 0; }
.lead { font-size: 17px; max-width: 34em; }
.eyebrow {
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 14px;
}

.container { width: min(var(--w), 100% - 48px); margin-inline: auto; }
.section { padding: 96px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 16px; margin-bottom: 48px; max-width: 40em; }
.section-head p { color: var(--muted); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 24px;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 30px; width: auto; }
.brand .brand-sub {
  margin-left: 14px; padding-left: 14px; border-left: 1px solid var(--line);
  font-size: 12px; color: var(--muted); letter-spacing: 0.04em;
}
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--blue); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px 12px; color: var(--ink); font: inherit; cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: var(--radius);
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-on-navy { background: transparent; color: var(--on-navy); border-color: rgba(255,255,255,.35); }
.btn-on-navy:hover { border-color: #fff; }
.btn-yellow { background: var(--yellow); color: #101d33; }
.btn-yellow:hover { background: #ffdc33; }
.btn .arrow { font-family: var(--font-num); }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: var(--on-navy); position: relative; overflow: hidden; }
.hero-inner {
  display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: center;
  padding: 88px 0 72px;
}
.hero .eyebrow { color: var(--yellow); }
.hero h1 { color: #fff; font-size: clamp(30px, 4.6vw, 52px); }
.hero h1 span { display: inline-block; } /* 句の途中で折り返さない */
.hero .lead { color: var(--on-navy-muted); margin-top: 22px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.hero-art { position: relative; width: 100%; max-width: 520px; justify-self: end; }
.hero-art canvas { position: absolute; inset: -10% -6% -6% -10%; width: 116%; height: 116%; display: block; z-index: 0; }
/* 実画面の合成: ノートPC(すまっぴー) + スマホ(診断ツール)。合成写真でなく実物を見せて信頼を取る */
.device-stack { position: relative; z-index: 1; aspect-ratio: 5 / 4; }
.device-laptop {
  position: absolute; right: 0; top: 6%; width: 88%;
  background: #0a0f1a; border-radius: 12px; padding: 10px 10px 16px;
  box-shadow: 0 30px 60px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.08);
}
.device-laptop img { border-radius: 5px; width: 100%; height: auto; }
.device-phone {
  position: absolute; left: 0; bottom: 0; width: 31%;
  background: #0a0f1a; border-radius: 26px; padding: 8px;
  box-shadow: 0 24px 48px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.1);
}
.device-phone img { border-radius: 19px; width: 100%; height: auto; aspect-ratio: 9 / 18.5; object-fit: cover; object-position: top; display: block; }

.stats {
  border-top: 1px solid rgba(255,255,255,.14);
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.stat { padding: 30px 0; display: grid; gap: 4px; }
.stat + .stat { border-left: 1px solid rgba(255,255,255,.14); padding-left: 36px; }
.stat-num {
  font-family: var(--font-num); font-weight: 800; font-size: 44px; line-height: 1;
  color: var(--yellow); font-variant-numeric: tabular-nums; letter-spacing: -0.01em;
}
.stat-num small { font-family: var(--font-display); font-size: 18px; color: var(--on-navy); margin-left: 6px; font-weight: 700; }
.stat-label { font-size: 14px; color: var(--on-navy-muted); }

/* ---------- Services ---------- */
.service-list { border-top: 1px solid var(--line); }
.service {
  display: grid; grid-template-columns: 6fr 6fr; gap: 56px; align-items: center;
  padding: 64px 0; border-bottom: 1px solid var(--line);
}
.service:nth-child(even) .service-media { order: -1; } /* 画像を左右交互に置いて単調さを消す */
.service-text h3 { font-size: 26px; }
.service-media { margin: 0; display: grid; gap: 10px; }
.service-media figcaption { font-size: 13px; color: var(--muted); line-height: 1.6; }
.shot { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--surface); box-shadow: 0 12px 32px rgba(16,29,51,.10); }
.shot img { width: 100%; height: auto; }
.shot-strip { box-shadow: none; }
.service-media-phone { justify-items: center; }
.phone-frame {
  width: min(280px, 70%); background: #0a0f1a; border-radius: 30px; padding: 9px;
  box-shadow: 0 24px 48px rgba(16,29,51,.25);
}
.phone-frame img { border-radius: 22px; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; object-position: top; display: block; }
.banner-fan { position: relative; padding-bottom: 22%; padding-right: 12%; }
.banner-fan .shot-small { position: absolute; right: 0; bottom: 0; width: 42%; transform: rotate(3deg); }
.loop-diagram { border: 1px solid var(--line); border-radius: 6px; background: var(--surface); padding: 20px 16px; }
.loop-diagram svg { width: 100%; height: auto; display: block; font-family: var(--font-body); }
.loop-node rect { fill: var(--surface-2); stroke: var(--line); stroke-width: 1; }
.loop-node-accent rect { fill: var(--blue-soft); stroke: var(--blue); }
.loop-label { font-size: 15px; font-weight: 700; fill: var(--ink); font-family: var(--font-display); }
.loop-sub { font-size: 12px; fill: var(--muted); }
.loop-center { font-size: 13px; fill: var(--blue); font-weight: 700; }
.loop-edge { fill: none; stroke: var(--blue); stroke-width: 2; }
.loop-arrow { fill: var(--blue); }
.service-tag {
  font-family: var(--font-num); font-size: 12px; letter-spacing: 0.16em; color: var(--muted);
  text-transform: uppercase; font-weight: 700; margin-bottom: 10px;
}
.service-name { font-size: 15px; color: var(--muted); margin-top: 8px; }
.service-body { display: grid; gap: 18px; }
.service-body p { max-width: 38em; }
.for-whom { display: grid; gap: 6px; padding: 16px 20px; background: var(--surface-2); border-radius: var(--radius); }
.for-whom dt { font-size: 12px; letter-spacing: 0.1em; color: var(--muted); font-weight: 700; }
.for-whom dd { margin: 0; font-size: 15px; }
.service-links { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn-sm { padding: 11px 16px; font-size: 14px; }
.sub-services { display: grid; gap: 16px; }
.sub-service { display: grid; gap: 4px; padding-left: 14px; border-left: 3px solid var(--yellow); }
.sub-service h4 { font-size: 16px; }
.sub-service p { font-size: 15px; }

/* ---------- Strengths ---------- */
.strengths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 48px; }
.strength-wide { grid-column: 1 / -1; max-width: 46em; } /* 1つ目だけ幅広で、均等グリッドの機械感を避ける */
.strength { border-top: 2px solid var(--ink); padding-top: 20px; display: grid; gap: 10px; }
.strength h3 { font-size: 20px; }
.strength p { font-size: 15px; color: var(--text); }

/* ---------- Brands ---------- */
.brands { display: flex; flex-wrap: wrap; gap: 10px; }
.brands span {
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 14px; color: var(--ink); background: var(--surface);
}
.note { font-size: 13px; color: var(--muted); }

/* ---------- Message ---------- */
.message { display: grid; grid-template-columns: 4fr 8fr; gap: 48px; align-items: start; }
.message-quote {
  font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 30px); font-weight: 700;
  color: var(--ink); line-height: 1.5;
}
.message-body { display: grid; gap: 18px; max-width: 36em; }
.message-side { display: grid; gap: 22px; align-content: start; }
.ceo-photo { margin: 0; display: grid; gap: 8px; max-width: 320px; }
.ceo-photo img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 6px; }
.ceo-photo figcaption { font-size: 13px; color: var(--muted); }
.signature { font-size: 14px; color: var(--muted); }
.signature strong { color: var(--ink); font-size: 16px; display: block; }

/* ---------- Company table ---------- */
.company-table { border-top: 1px solid var(--line); margin: 0; }
.company-table div { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.company-table dt { font-size: 14px; color: var(--muted); font-weight: 500; }
.company-table dd { margin: 0; color: var(--ink); }

/* ---------- History ---------- */
.history { border-top: 1px solid var(--line); margin: 0; padding: 0; list-style: none; }
.history li { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.history time { font-family: var(--font-num); font-weight: 700; color: var(--blue); font-variant-numeric: tabular-nums; }

/* ---------- News ---------- */
.news { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.news li { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.news time { font-family: var(--font-num); color: var(--muted); font-variant-numeric: tabular-nums; font-size: 14px; padding-top: 3px; }
.news a { color: var(--ink); text-decoration: none; }
.news a:hover { color: var(--blue); }

/* ---------- Contact ---------- */
.contact-section { background: var(--navy); color: var(--on-navy); }
.contact-section h2, .contact-section h3 { color: #fff; }
.contact-section .eyebrow { color: var(--yellow); }
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.contact-intro { display: grid; gap: 18px; }
.contact-intro p { color: var(--on-navy-muted); max-width: 30em; }
.contact-types { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.contact-types li { padding-left: 18px; position: relative; color: var(--on-navy); }
.contact-types li::before { content: ""; position: absolute; left: 0; top: 13px; width: 8px; height: 2px; background: var(--yellow); }
.contact-mail { color: #fff; font-family: var(--font-num); font-weight: 700; font-size: 18px; }

.form { background: var(--surface); color: var(--text); padding: 36px; border-radius: var(--radius); display: grid; gap: 18px; }
.form h3 { color: var(--ink); }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 700; color: var(--ink); }
.field .req { color: #c8102e; font-size: 12px; margin-left: 6px; font-weight: 500; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 15px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg); color: var(--ink); width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.consent input { margin-top: 5px; }
.form-status { font-size: 14px; min-height: 1.5em; }
.form-status.ok { color: #0a7a3c; }
.form-status.err { color: #c8102e; }
.hp { position: absolute; left: -9999px; }

/* ---------- Page header (sub pages) ---------- */
.page-head { padding: 72px 0 48px; border-bottom: 1px solid var(--line); }
.page-head p { color: var(--muted); margin-top: 12px; }
.prose { max-width: 42em; display: grid; gap: 16px; }
.prose h3 { margin-top: 24px; }
.prose ul { margin: 0; padding-left: 1.3em; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 32px; font-size: 14px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-grid img { height: 26px; width: auto; margin-bottom: 14px; }
.footer-col { display: grid; gap: 8px; align-content: start; }
.footer-col strong { color: var(--ink); font-size: 13px; letter-spacing: 0.08em; }
.footer-col a { color: var(--text); text-decoration: none; }
.footer-col a:hover { color: var(--blue); }
.copyright { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding: 64px 0 48px; }
  .hero-art { max-width: 420px; justify-self: start; }
  .service:nth-child(even) .service-media { order: 0; }
  .service-media { order: 1; }
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255,255,255,.14); }
  .service, .message, .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  .strengths { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .company-table div, .history li, .news li { grid-template-columns: 1fr; gap: 4px; }
  .field-row { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--surface);
         flex-direction: column; align-items: stretch; gap: 0; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 16px 24px; border-top: 1px solid var(--line); }
  .nav .btn { margin: 16px 24px; justify-content: center; }
  .nav-toggle { display: inline-flex; }
  .brand .brand-sub { display: none; }
}
