/* ============================================================
   エース株式会社 コーポレートサイト 共通スタイル
   カラー原則: ネイビー1色＋無彩色。アンバーは警告表示のみ
   ============================================================ */

:root {
  /* ロゴ実測色。正式カラーコード確定時はここ1箇所を差し替える */
  --navy: #001C48;
  --navy-hover: #14294F;
  --ink: #222B3D;
  --muted: #66708A;
  --bg: #FFFFFF;
  --gray: #F2F4F8;
  --line: #DFE4ED;
  --amber: #A97B22; /* 「要精密検査」等の警告表示のみに使用 */
  --font-jp: "Noto Sans JP", sans-serif;
  --font-en: "Montserrat", "Noto Sans JP", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-jp);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.95;
  font-size: 16px;
  letter-spacing: 0.03em;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1080px; margin: 0 auto; padding: 0 24px;
  height: 72px; display: flex; align-items: center; gap: 32px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand .brand-symbol { height: 54px; width: auto; }
.brand .brand-wordmark { height: 20px; width: auto; transform: translateY(2px); }
.global-nav { margin-left: auto; }
.global-nav ul { display: flex; gap: 28px; list-style: none; align-items: center; }
.global-nav a { font-size: 14px; font-weight: 500; color: var(--ink); }
.global-nav a:hover { color: var(--navy); }
.global-nav a.btn { color: #fff; }
.global-nav a.btn:hover { color: #fff; }

.btn {
  display: inline-block; background: var(--navy); color: #fff;
  font-weight: 600; text-align: center;
  padding: 16px 40px; border: 1px solid var(--navy); border-radius: 2px;
  transition: background 0.2s; cursor: pointer; font-size: 16px;
  font-family: var(--font-jp); letter-spacing: 0.05em;
}
.btn:hover { background: var(--navy-hover); }
.btn.small { padding: 10px 22px; font-size: 13px; }
.btn.ghost { background: transparent; color: var(--navy); }
.btn.ghost:hover { background: var(--gray); }

.nav-toggle { display: none; }

/* ---------- セクション共通 ---------- */
main { padding-top: 72px; }
.section { padding: 104px 0; }
.section.gray { background: var(--gray); }
.section.navy { background: var(--navy); color: #fff; }
.section.navy a { color: #fff; }

.sec-label {
  font-family: var(--font-en); font-weight: 600; font-size: 12px;
  letter-spacing: 0.28em; color: var(--muted); text-transform: uppercase;
  margin-bottom: 16px;
}
.section.navy .sec-label { color: rgba(255, 255, 255, 0.55); }

.sec-title {
  font-size: 34px; font-weight: 700; line-height: 1.5;
  letter-spacing: 0.04em; color: var(--navy); margin-bottom: 40px;
}
.section.navy .sec-title { color: #fff; }

.lead { font-size: 16px; max-width: 760px; }
.lead + .lead { margin-top: 1.2em; }

/* ---------- ファーストビュー ---------- */
.hero { padding: 130px 0 110px; position: relative; overflow: hidden; }
.hero-inner { display: flex; align-items: center; gap: 60px; position: relative; }
.hero-text { flex: 1 1 auto; }
.hero-copy {
  font-size: clamp(31px, 6vw, 64px); font-weight: 700; line-height: 1.4;
  letter-spacing: 0.05em; color: var(--navy); margin-bottom: 28px;
}
.hero-sub { font-size: 17px; color: var(--ink); margin-bottom: 44px; max-width: 560px; }
.hero-visual { flex: 0 0 320px; display: flex; justify-content: center; }
.hero-visual img { width: 260px; opacity: 0.96; }

/* キービジュアル背景（同心円＋周回するアクセント円弧） */
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg .arc-svg { position: absolute; top: -300px; right: -260px; width: 860px; height: 860px; }
/* アクセント円弧が同心円上を周回し、ソナーの発信がゆっくり広がる */
.hero-bg .orbit { transform-origin: 430px 430px; transform-box: view-box; animation: arcOrbit 30s linear infinite; }
.hero-bg .orbit.rev { animation: arcOrbitRev 48s linear infinite; }
.hero-bg .ping {
  transform-origin: 430px 430px; transform-box: view-box;
  opacity: 0; animation: arcPing 42s cubic-bezier(0.2, 0.55, 0.4, 1) infinite;
}
/* 発生間隔≒波紋が最初の同心円に到達する時間（約6秒） */
.hero-bg .ping.p2 { animation-delay: 6s; }
.hero-bg .ping.p3 { animation-delay: 12s; }
.hero-bg .ping.p4 { animation-delay: 18s; }
.hero-bg .ping.p5 { animation-delay: 24s; }
.hero-bg .ping.p6 { animation-delay: 30s; }
.hero-bg .ping.p7 { animation-delay: 36s; }
@keyframes arcOrbit { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes arcOrbitRev { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }
/* 波紋：1波・2波・3波が短い間隔で連続発生し、一緒に広がりながら薄くなっていく */
@keyframes arcPing {
  0% { transform: scale(0.15); opacity: 0; stroke-width: 2.6; }
  6% { opacity: 0.35; }
  100% { transform: scale(2.4); opacity: 0; stroke-width: 0.5; }
}

/* スコアカード（キービジュアル） */
.score-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: 4px;
  box-shadow: 0 28px 70px rgba(0, 28, 72, 0.16);
  padding: 26px 30px 22px; width: 280px;
  animation: heroCardIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both, heroFloat 7s 1s ease-in-out infinite alternate;
}
.score-card .sc-label { font-family: var(--font-en); font-weight: 600; font-size: 10px; letter-spacing: 0.3em; color: var(--muted); }
.score-card .sc-title { font-size: 15px; font-weight: 700; color: var(--navy); margin: 2px 0 12px; }
.score-card .sc-num { font-family: var(--font-en); font-weight: 600; font-size: 46px; color: var(--navy); line-height: 1; }
.score-card .sc-num span { font-size: 15px; color: var(--muted); font-weight: 500; letter-spacing: 0.05em; }
.score-card svg { display: block; margin: 4px auto 0; }
.score-card .sc-chip {
  display: inline-block; font-size: 11px; font-weight: 600; color: var(--amber);
  border: 1px solid var(--amber); border-radius: 2px; padding: 3px 10px; margin-top: 6px;
}
.score-card .sc-foot { font-size: 10.5px; color: var(--muted); margin-top: 12px; }
@keyframes heroCardIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }
@keyframes heroFloat { from { transform: translateY(0); } to { transform: translateY(-10px); } }

/* ---------- 症状チェックリスト ---------- */
.symptom-list { list-style: none; max-width: 720px; }
.symptom-list li {
  background: #fff; border: 1px solid var(--line); border-radius: 2px;
  padding: 20px 24px 20px 58px; margin-bottom: 14px;
  font-size: 17px; font-weight: 500; position: relative;
}
.symptom-list li::before {
  content: ""; position: absolute; left: 22px; top: 50%;
  width: 18px; height: 18px; transform: translateY(-50%);
  border: 2px solid var(--navy); border-radius: 2px;
}

/* ---------- 3点差別化カード ---------- */
.point-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.point-card { background: #fff; border: 1px solid var(--line); padding: 40px 32px; border-radius: 2px; }
.section.navy .point-card { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.18); }
.point-card .num {
  font-family: var(--font-en); font-weight: 600; font-size: 13px;
  letter-spacing: 0.2em; color: var(--muted); display: block; margin-bottom: 14px;
}
.section.navy .point-card .num { color: rgba(255, 255, 255, 0.55); }
.point-card h3 { font-size: 21px; color: var(--navy); margin-bottom: 14px; line-height: 1.5; }
.section.navy .point-card h3 { color: #fff; }
.point-card p { font-size: 14.5px; line-height: 1.9; }

/* ---------- フローチャート ---------- */
.flow-figure { max-width: 620px; margin: 0 auto; }
.flow-note {
  max-width: 620px; margin: 28px auto 0; text-align: center;
  font-size: 14.5px; color: var(--muted);
}

/* ---------- CTAブロック ---------- */
.cta-block { text-align: center; }
.cta-block .cta-copy { font-size: 26px; font-weight: 700; color: var(--navy); margin-bottom: 32px; line-height: 1.6; }
.section.navy .cta-block .cta-copy { color: #fff; }
.cta-block .btn { font-size: 17px; padding: 20px 56px; }
.section.navy .cta-block .btn { background: #fff; color: var(--navy); border-color: #fff; }
.section.navy .cta-block .btn:hover { background: var(--gray); }
.cta-block .cta-sub { margin-top: 18px; font-size: 13px; color: var(--muted); }
.section.navy .cta-block .cta-sub { color: rgba(255, 255, 255, 0.6); }

/* ---------- 引用・物語 ---------- */
.story-quote {
  border-left: 3px solid var(--navy); padding: 8px 0 8px 28px;
  font-size: 17px; line-height: 2.1; max-width: 720px;
}
.philosophy {
  font-size: clamp(20px, 3vw, 26px); font-weight: 700; line-height: 1.9;
  color: var(--navy); text-align: center; max-width: 820px; margin: 0 auto;
}

/* ---------- PMVV ---------- */
.pmvv-list { list-style: none; max-width: 760px; margin: 0 auto; }
.pmvv-list li { display: flex; gap: 28px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.section.navy .pmvv-list li { border-color: rgba(255, 255, 255, 0.16); }
.pmvv-list .label {
  flex: 0 0 120px; font-family: var(--font-en); font-weight: 600;
  font-size: 13px; letter-spacing: 0.22em; color: var(--muted);
}
.section.navy .pmvv-list .label { color: rgba(255, 255, 255, 0.55); }
.pmvv-list .value { font-size: 19px; font-weight: 700; color: var(--navy); line-height: 1.7; }
.section.navy .pmvv-list .value { color: #fff; }
.pmvv-list .desc { display: block; font-size: 14px; font-weight: 400; color: var(--ink); margin-top: 8px; }
.section.navy .pmvv-list .desc { color: rgba(255, 255, 255, 0.75); }

/* ---------- サービス ---------- */
.service-block { background: #fff; border: 1px solid var(--line); border-radius: 2px; padding: 56px; margin-bottom: 36px; }
.service-block .svc-name { font-size: 27px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.service-block .svc-tag { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.service-block h4 { font-size: 16px; color: var(--navy); margin: 28px 0 10px; }
.service-block ul { padding-left: 1.4em; font-size: 15px; }
.service-block li { margin-bottom: 6px; }

.price-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 15px; }
.price-table th, .price-table td { border: 1px solid var(--line); padding: 14px 18px; text-align: left; vertical-align: top; }
.price-table th { background: #E7ECF4; font-weight: 600; white-space: nowrap; color: var(--navy); }
.price-note { font-size: 13px; color: var(--muted); margin-top: 14px; }

/* ---------- 会社概要 ---------- */
.company-table { width: 100%; max-width: 760px; border-collapse: collapse; font-size: 15px; }
.company-table th, .company-table td { border-bottom: 1px solid var(--line); padding: 18px 12px; text-align: left; vertical-align: top; }
.company-table th { width: 160px; font-weight: 600; color: var(--navy); white-space: nowrap; }

/* ---------- フォーム ---------- */
.form { max-width: 640px; }
.form .field { margin-bottom: 26px; }
.form label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 8px; color: var(--navy); }
.form label .req { color: var(--amber); font-size: 12px; margin-left: 8px; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form textarea {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 2px;
  font-family: var(--font-jp); font-size: 16px; background: #fff; color: var(--ink);
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--navy); outline-offset: -1px; }
.form textarea { min-height: 160px; resize: vertical; }
.form .form-note { font-size: 13px; color: var(--muted); margin-bottom: 28px; }

/* ---------- 診断ツール ---------- */
.shindan-app { background: #fff; border: 1px solid var(--line); border-radius: 2px; padding: 56px; max-width: 860px; margin: 0 auto; }
.shindan-progress { height: 4px; background: var(--gray); border-radius: 2px; margin-bottom: 40px; overflow: hidden; }
.shindan-progress .bar { height: 100%; background: var(--navy); width: 0; transition: width 0.3s; }
.shindan-step-label { font-family: var(--font-en); font-size: 12px; letter-spacing: 0.22em; color: var(--muted); margin-bottom: 14px; text-transform: uppercase; }
.shindan-q { font-size: 22px; font-weight: 700; color: var(--navy); line-height: 1.6; margin-bottom: 32px; }
.choice-list { list-style: none; display: grid; gap: 14px; }
.choice-list button {
  width: 100%; text-align: left; padding: 18px 24px; font-size: 16px;
  font-family: var(--font-jp); background: #fff; border: 1px solid var(--line);
  border-radius: 2px; cursor: pointer; transition: border-color 0.15s, background 0.15s;
  line-height: 1.7; color: var(--ink);
}
.choice-list button:hover { border-color: var(--navy); background: #F7F9FC; }
.shindan-back { margin-top: 28px; background: none; border: none; color: var(--muted); font-size: 13px; cursor: pointer; font-family: var(--font-jp); }
.shindan-back:hover { color: var(--navy); text-decoration: underline; }
.dummy-notice { font-size: 12px; color: var(--amber); margin-top: 24px; }

/* 診断結果 */
.result-score { text-align: center; margin-bottom: 40px; }
.result-score .score-num { font-family: var(--font-en); font-size: 72px; font-weight: 600; color: var(--navy); line-height: 1; }
.result-score .score-max { font-size: 20px; color: var(--muted); }
.result-chart { display: flex; justify-content: center; margin: 32px 0; }
.check-items { list-style: none; max-width: 560px; margin: 0 auto 8px; }
.check-items li {
  border: 1px solid var(--amber); color: var(--amber); font-weight: 600;
  border-radius: 2px; padding: 14px 20px; margin-bottom: 12px; font-size: 15px;
}
.result-rx { text-align: center; margin: 40px 0; padding: 36px; background: var(--gray); border-radius: 2px; }
.result-rx .rx-label { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.result-rx .rx-name { font-size: 24px; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.result-rx .rx-desc { font-size: 14.5px; max-width: 520px; margin: 0 auto; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { padding: 22px 8px; font-weight: 600; font-size: 16px; color: var(--navy); cursor: pointer; list-style: none; position: relative; padding-right: 40px; }
.faq-list summary::after { content: "+"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-family: var(--font-en); font-size: 20px; color: var(--muted); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list .faq-a { padding: 0 8px 24px; font-size: 15px; }

/* ---------- 経年グラフ等 ---------- */
.figure-box { background: #fff; border: 1px solid var(--line); border-radius: 2px; padding: 40px; max-width: 640px; margin: 0 auto; }
.figure-caption { text-align: center; font-size: 13px; color: var(--muted); margin-top: 16px; }

/* ---------- フッター ---------- */
.site-footer { background: var(--navy); color: #fff; padding: 72px 0 40px; }
.footer-inner { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.footer-pmvv { text-align: center; margin-bottom: 56px; }
.footer-pmvv .f-purpose { font-size: 20px; font-weight: 700; letter-spacing: 0.08em; margin-bottom: 6px; }
.footer-pmvv .f-slogan { font-family: var(--font-en); font-size: 12px; letter-spacing: 0.3em; color: rgba(255, 255, 255, 0.55); }
.footer-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 32px; margin-bottom: 40px; }
.footer-nav a { color: rgba(255, 255, 255, 0.85); font-size: 13.5px; }
.footer-nav a:hover { color: #fff; }
.footer-company { text-align: center; font-size: 13px; color: rgba(255, 255, 255, 0.65); line-height: 2; }
.copyright { text-align: center; font-family: var(--font-en); font-size: 11px; letter-spacing: 0.12em; color: rgba(255, 255, 255, 0.4); margin-top: 40px; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 900px) {
  .point-grid { grid-template-columns: 1fr; }
  .hero-inner { flex-direction: column; align-items: flex-start; text-align: left; gap: 56px; }
  .hero-visual { align-self: center; }
  .hero-visual { flex-basis: auto; }
  .hero-visual img { width: 180px; }
  .hero-bg .arc-svg { top: -220px; right: -240px; width: 600px; height: 600px; }
  .hero-bg .arc-accent { display: none; }
  .geo-square, .geo-dots, .geo-ring.small { display: none; }
  .geo-ring { width: 150px; height: 150px; right: -56px; top: 110px; bottom: auto; }
  .score-card { width: 260px; }
}

@media (max-width: 768px) {
  body { font-size: 15px; }
  .section { padding: 72px 0; }
  .sec-title { font-size: 26px; }
  .hero { padding: 96px 0 72px; }
  .service-block { padding: 32px 24px; }
  .shindan-app { padding: 32px 20px; }
  .company-table th { width: 110px; }

  /* backdrop-filter があると fixed のメニューがヘッダー基準になるため、モバイルでは無効化 */
  .site-header { backdrop-filter: none; background: #fff; }

  .nav-toggle {
    display: block; margin-left: auto; background: none; border: none;
    width: 44px; height: 44px; cursor: pointer; position: relative; z-index: 120;
  }
  .nav-toggle span {
    display: block; width: 24px; height: 2px; background: var(--navy);
    margin: 6px auto; transition: transform 0.25s, opacity 0.25s;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .global-nav {
    position: fixed; inset: 0; background: #fff; padding: 110px 32px 40px;
    transform: translateX(100%); transition: transform 0.28s; margin-left: 0;
  }
  .global-nav.open { transform: translateX(0); }
  .global-nav ul { flex-direction: column; align-items: flex-start; gap: 8px; }
  .global-nav li { width: 100%; border-bottom: 1px solid var(--line); }
  .global-nav a { display: block; padding: 16px 4px; font-size: 16px; }
  .global-nav li.nav-cta { border-bottom: none; margin-top: 24px; }
  .global-nav li.nav-cta .btn { width: 100%; }
}
