:root {
  --navy: #0b2447;
  --navy-dark: #071a35;
  --navy-soft: #e8edf5;
  --accent: #c8102e;
  --ink: #1d2733;
  --muted: #5b6776;
  --line: #d9e0ea;
  --bg-alt: #f5f7fb;
  --radius: 4px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }

body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink);
  background: #fff;
  -webkit-text-size-adjust: 100%;
}

/* Google 翻訳のバナーを非表示にし、ページ位置のずれを防ぐ */
body { top: 0 !important; }
.skiptranslate iframe, iframe.skiptranslate, .VIpgJd-ZVi9od-ORHb-OEVmcd { display: none !important; }
#goog-gt-tt, .goog-te-balloon-frame { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--accent); }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 820px; }

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 200;
  background: var(--navy); color: #fff; padding: 8px 14px; border-radius: var(--radius);
}
.skip-link:focus { top: 8px; }

:focus-visible { outline: 3px solid #4d82d6; outline-offset: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff; border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); flex-shrink: 0; }
.brand img { height: 46px; width: auto; }
.brand-name { font-weight: 700; font-size: 15px; letter-spacing: .02em; line-height: 1.3; }

.site-nav { margin-left: auto; }
.site-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; }
.site-nav a {
  display: block; padding: 8px 11px; font-size: 14px; font-weight: 500;
  color: var(--ink); text-decoration: none; border-radius: var(--radius); white-space: nowrap;
}
.site-nav a:hover { color: var(--navy); background: var(--navy-soft); }
.site-nav a.nav-cta { background: var(--navy); color: #fff; margin-left: 6px; padding: 8px 16px; }
.site-nav a.nav-cta:hover { background: var(--navy-dark); color: #fff; }

.lang-switch { display: flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; flex-shrink: 0; }
.lang-switch button {
  font: inherit; font-size: 13px; line-height: 1; padding: 8px 12px;
  border: 0; background: #fff; color: var(--muted); cursor: pointer;
}
.lang-switch button + button { border-left: 1px solid var(--line); }
.lang-switch button[aria-pressed="true"] { background: var(--navy); color: #fff; }

.menu-toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 1px solid var(--line); background: #fff; border-radius: var(--radius); cursor: pointer; }
.menu-toggle span { display: block; height: 2px; background: var(--navy); margin: 5px 0; }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: #fff; padding: 88px 0 96px; }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.eyebrow { font-size: 14px; letter-spacing: .12em; color: #b7c6e0; margin-bottom: 14px; }
.hero h1 { font-size: clamp(28px, 4.2vw, 44px); line-height: 1.45; font-weight: 700; letter-spacing: .02em; }
.lead { margin-top: 24px; color: #dbe4f3; font-size: 16px; max-width: 36em; }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

.hero-panel { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 28px 28px 20px; border-top: 4px solid var(--accent); }
.hero-logo { width: 100%; max-width: 280px; margin: 0 auto 20px; }
.facts { list-style: none; border-top: 1px solid var(--line); }
.facts li { padding: 12px 0; border-bottom: 1px solid var(--line); line-height: 1.5; }
.facts li:last-child { border-bottom: 0; }
.facts strong { display: block; color: var(--navy); font-size: 18px; }
.facts span { font-size: 13px; color: var(--muted); }

.btn {
  display: inline-block; padding: 13px 28px; border-radius: var(--radius);
  font: inherit; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; border: 1px solid transparent;
}
.btn-primary { background: #fff; color: var(--navy); }
.btn-primary:hover { background: var(--navy-soft); color: var(--navy); }
.btn-ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }

.section-head { margin-bottom: 44px; text-align: center; }
.section-en { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.section-head h2 { font-size: 28px; line-height: 1.4; color: var(--navy); margin-top: 4px; }
.section-head h2::after { content: ""; display: block; width: 40px; height: 3px; background: var(--accent); margin: 14px auto 0; }
.section-note { text-align: center; color: var(--muted); margin: -16px 0 32px; font-size: 15px; }

/* Company profile */
.profile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.profile > div { display: grid; grid-template-columns: 200px 1fr; border-bottom: 1px solid var(--line); }
.profile > div:last-child { border-bottom: 0; }
.profile dt { background: var(--navy-soft); color: var(--navy); font-weight: 700; padding: 16px 24px; }
.profile dd { padding: 16px 24px; }
.plain-list { list-style: none; }
.plain-list li::before { content: "・"; color: var(--navy); }
.profile-compact { margin: 18px 0 20px; }
.profile-compact > div { grid-template-columns: 120px 1fr; }
.profile-compact dt, .profile-compact dd { padding: 10px 16px; }

/* Cards */
.cards { display: grid; gap: 24px; }
.cards-4 { grid-template-columns: repeat(2, 1fr); }
.card { position: relative; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--navy); border-radius: var(--radius); padding: 32px 28px 28px; }
.card-no { position: absolute; top: 14px; right: 20px; font-size: 32px; font-weight: 700; color: var(--navy-soft); line-height: 1; }
.card h3 { font-size: 19px; color: var(--navy); margin-bottom: 12px; line-height: 1.5; }
.card p { font-size: 15px; }
.card-future { border-top-style: dashed; }
.tag { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 1px 10px; font-size: 12px; font-weight: 500; color: var(--navy); background: var(--navy-soft); border-radius: 999px; }

/* Strengths */
.strengths { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.strengths li { counter-increment: s; padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.strengths li::before { content: counter(s, decimal-leading-zero); display: block; font-size: 30px; font-weight: 700; color: var(--navy); line-height: 1; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 2px solid var(--navy); }
.strengths h3 { font-size: 17px; color: var(--navy); line-height: 1.6; margin-bottom: 10px; }
.strengths p { font-size: 15px; }

/* Affiliate */
.affiliate { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
.affiliate h3 { font-size: 20px; color: var(--navy); }
.affiliate-body p { font-size: 15px; }
.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.photo-grid .photo-ph:first-child { grid-column: 1 / -1; }
.photo-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }

.photo-ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  aspect-ratio: 4 / 3; border: 1px dashed #aab7cc; border-radius: var(--radius);
  background: var(--navy-soft); color: var(--muted); font-size: 14px; line-height: 1.6;
}
.photo-ph small { font-size: 12px; }
.photo-ph-portrait { aspect-ratio: 3 / 4; }

/* Message */
.message { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start; }
.message-photo img, .message-photo .photo-ph { width: 100%; }
.message-photo img { aspect-ratio: 3 / 4; object-fit: cover; object-position: center top; border-radius: var(--radius); border: 1px solid var(--line); }
.message-photo figcaption { margin-top: 14px; text-align: center; line-height: 1.6; }
.message-photo .role { display: block; font-size: 13px; color: var(--muted); }
.message-photo .name { display: block; font-weight: 700; color: var(--navy); }
.message-body p { margin-bottom: 1em; }
.message-body .signature { margin-top: 24px; text-align: right; font-weight: 500; }

/* News */
.news-list { list-style: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.news-list li { display: grid; grid-template-columns: 130px 1fr; gap: 8px 20px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.news-list li:last-child { border-bottom: 0; }
.news-date { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.news-title { font-weight: 700; color: var(--navy); }
.news-body { grid-column: 2; font-size: 14.5px; color: var(--ink); white-space: pre-line; }
.news-body a { word-break: break-all; }
.news-list li.news-empty { display: block; text-align: center; color: var(--muted); }

/* Contact */
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 40px; }
.field { margin-bottom: 22px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 15px; }
.req { color: var(--accent); }
.field input, .field textarea {
  width: 100%; font: inherit; padding: 11px 14px; border: 1px solid #b9c4d4; border-radius: var(--radius); background: #fff; color: var(--ink);
}
.field input:focus, .field textarea:focus { border-color: var(--navy); outline: 2px solid #4d82d6; outline-offset: 0; }
.field .invalid { border-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; margin-bottom: 20px; }
.consent input { margin-top: 7px; }
.form-status { min-height: 1.6em; margin-bottom: 12px; font-size: 15px; }
.form-status.ok { color: #0a6b3a; }
.form-status.err { color: var(--accent); }
.btn-submit { background: var(--navy); color: #fff; width: 100%; padding: 15px; font-size: 16px; }
.btn-submit:hover { background: var(--navy-dark); color: #fff; }
.btn-submit:disabled { opacity: .6; cursor: wait; }

/* Privacy */
.policy { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 40px; font-size: 15px; }
.policy h3 { font-size: 17px; color: var(--navy); margin: 28px 0 8px; padding-left: 12px; border-left: 4px solid var(--navy); line-height: 1.5; }
.policy ul { margin: 8px 0 0 1.4em; }

.privacy-teaser { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 40px; text-align: center; }
.privacy-link { margin-top: 20px; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); color: #fff; }

/* Sub page (privacy.html) */
.page-hero { background: var(--navy); color: #fff; padding: 48px 0; text-align: center; }
.page-hero .section-en { color: #b7c6e0; }
.page-hero h1 { font-size: 28px; line-height: 1.4; margin-top: 4px; }
.page-body { padding-top: 56px; }
.back-link { margin-top: 28px; text-align: center; }

/* Footer */
.site-footer { background: var(--navy-dark); color: #c9d4e8; padding: 48px 0 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 36px; }
.footer-name { color: #fff; font-weight: 700; font-size: 18px; }
.footer-tag { font-size: 14px; margin-top: 4px; }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 24px; align-content: flex-start; }
.footer-links a { color: #c9d4e8; font-size: 14px; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.copyright { border-top: 1px solid rgba(255,255,255,.15); text-align: center; padding: 18px 24px; font-size: 13px; color: #9fb0cc; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .menu-toggle { display: block; margin-left: auto; order: 3; }
  .lang-switch { order: 2; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: var(--header-h);
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 16px; margin: 0;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 15px; }
  .site-nav a.nav-cta { margin: 12px 0 0; text-align: center; border-radius: var(--radius); }
}

@media (max-width: 860px) {
  .hero { padding: 56px 0 64px; }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .section { padding: 64px 0; }
  .cards-4, .strengths, .affiliate { grid-template-columns: 1fr; }
  .message { grid-template-columns: 1fr; gap: 28px; }
  .message-photo { max-width: 240px; margin: 0 auto; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .brand-name { display: none; }
  .brand img { height: 40px; }
  .profile > div { grid-template-columns: 1fr; }
  .profile dt { padding: 10px 16px; }
  .profile dd { padding: 12px 16px; }
  .news-list li { grid-template-columns: 1fr; padding: 16px; }
  .news-body { grid-column: 1; }
  .contact-form, .policy, .privacy-teaser { padding: 24px 18px; }
  .hero-actions .btn { flex: 1 1 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
