/* barco WordPress移行LP・診断ページ 共通 */
:root {
  --bg: #ffffff;
  --surface: #f8fafa;
  --tint: #e6f2f2;
  --line: #dce7e7;
  --ink: #1a3a3a;
  --muted: #4c6c6c;
  --accent: #0d7377;
  --accent-dark: #0a5c5f;
  --deep: #0b2b2c;
  --warn: #b4492f;
  --radius: 8px;
  --gutter: 80px;
  --section: 120px;
  --max: 1120px;
  --font-ja: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --font-en: "Inter", var(--font-ja);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ja);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.04em;
  font-feature-settings: "palt" 0;
  text-spacing-trim: trim-start;
  text-autospace: normal;
  line-break: strict;
  overflow-wrap: anywhere;
}
h1, h2, h3 {
  margin: 0;
  line-height: 1.45;
  letter-spacing: 0.06em;
  font-feature-settings: "palt" 1;
  word-break: auto-phrase;
  text-wrap: balance;
}
p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

.wrap { max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--surface { background: var(--surface); }
.section--deep { background: var(--deep); color: #fff; }

.label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-en); font-weight: 500; font-size: 13px; letter-spacing: 0.12em;
  color: var(--accent);
}
.label::before { content: ""; width: 3px; height: 16px; background: var(--accent); border-radius: 2px; }
.section--deep .label { color: #7fd1d3; }
.section--deep .label::before { background: #7fd1d3; }

.h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 700; margin-top: 14px; }
.lead { margin-top: 18px; color: var(--muted); max-width: 40em; }
.section--deep .lead { color: rgba(255, 255, 255, 0.78); }

/* ボタン */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 0 32px;
  border-radius: var(--radius); border: 2px solid var(--accent);
  background: var(--accent); color: #fff;
  font: 700 16px/1 var(--font-ja); letter-spacing: 0.06em; text-decoration: none;
  cursor: pointer; transition: background .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 6px 18px rgba(13, 115, 119, 0.22);
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid #7fd1d3; outline-offset: 3px; }
.btn--ghost { background: #fff; color: var(--accent); box-shadow: none; }
.btn--ghost:hover { background: var(--tint); color: var(--accent-dark); }
.btn .arrow { font-family: var(--font-en); font-weight: 500; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ヘッダー */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.94); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: baseline; gap: 12px; text-decoration: none; }
.brand__en { font: 700 22px/1 var(--font-en); letter-spacing: 0.08em; color: var(--deep); }
.brand__ja { font-size: 12px; color: var(--muted); letter-spacing: 0.08em; }
.nav, .nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { font-size: 14px; font-weight: 500; text-decoration: none; }
.nav__links a:hover { color: var(--accent); }
.nav .btn { min-height: 44px; padding: 0 20px; font-size: 14px; }

/* フッター */
.footer { background: var(--deep); color: rgba(255, 255, 255, 0.7); padding: 48px 0 calc(48px + env(safe-area-inset-bottom)); font-size: 13px; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.footer .brand__en { color: #fff; }

/* 登場の動き */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease-out, transform .6s ease-out; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

.menu-btn { display: none; }

@media (max-width: 900px) {
  :root { --gutter: 20px; --section: 72px; }
  .menu-btn {
    display: grid; place-content: center; gap: 6px; width: 44px; height: 44px; margin-left: auto; margin-right: 8px;
    border: 0; background: transparent; cursor: pointer;
  }
  .menu-btn span { display: block; width: 22px; height: 2px; background: var(--deep); transition: transform .2s; }
  .menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav__links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(11, 43, 44, 0.08);
  }
  .nav__links.is-open { display: block; }
  .nav__links a { display: block; padding: 0 20px; height: 52px; line-height: 52px; border-top: 1px solid var(--line); font-size: 15px; }
  .brand__ja { display: none; }
  .header__inner { height: 60px; }
}
