/* ============================================================
   Kanbei Financial Agency 株式会社 コーポレートサイト 共通スタイル
   方針: 紺×白基調+ロゴの赤アクセント1色 / モバイルファースト
   ============================================================ */

:root {
  --navy: #0e2440;        /* 基調の紺 */
  --navy-2: #17365e;      /* 明るめの紺 */
  --navy-3: #1f4478;
  --accent: #d02d26;      /* アクセント(ロゴの兜の赤・実測値) */
  --accent-dark: #a8231d;
  --accent-light: #e8c26a; /* 紺背景上の強調テキスト用ゴールド(暗い背景=金/白い背景=赤/ボタン=赤 のルール) */
  --accent-bg: #fdf1f0;    /* 赤の淡色背景 */
  --ink: #1d2a3a;         /* 本文 */
  --muted: #5b6b7e;       /* 補足文 */
  --line: #dfe5ed;        /* 罫線 */
  --bg-soft: #f5f7fa;     /* 淡い背景 */
  --bg-navy-soft: #eef2f8;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 2px 14px rgba(14, 36, 64, 0.08);
  --shadow-lg: 0 8px 30px rgba(14, 36, 64, 0.12);
  --header-h: 64px;
}

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

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

body {
  font-family: "Noto Sans JP", "游ゴシック体", "Yu Gothic", YuGothic, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  color: var(--ink);
  line-height: 1.9;
  font-size: 15.5px;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}

img, svg { vertical-align: middle; }
a { color: var(--navy-3); }

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 20px; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1080px; margin: 0 auto; padding: 0 16px;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
/* スマホ: 兜マーク+社名テキスト / PC: 社名入りフルロゴ(白背景ロゴのためヘッダーは白) */
.brand-logo-full { display: none; height: 46px; width: auto; }
.brand-logo-mark { flex: none; height: 34px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand-en {
  color: var(--navy); font-weight: 700; font-size: 14px; letter-spacing: 0.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand-ja { color: var(--muted); font-size: 10.5px; letter-spacing: 0.06em; }

.nav-toggle {
  display: block; border: 0; background: none; cursor: pointer;
  width: 44px; height: 44px; position: relative; flex: none;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 10px; width: 24px; height: 2px;
  background: var(--navy); transition: 0.25s;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { top: -8px; left: 0; }
.nav-toggle span::after { top: 8px; left: 0; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
body.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

.site-nav {
  display: none;
  position: absolute; top: var(--header-h); left: 0; right: 0;
  background: var(--white); border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  padding: 8px 20px 20px;
}
body.nav-open .site-nav { display: block; }
.site-nav ul { list-style: none; }
.site-nav li a {
  display: block; padding: 13px 4px; text-decoration: none;
  color: var(--navy); font-weight: 500; font-size: 15px;
  border-bottom: 1px solid var(--line);
}
.nav-cta {
  display: block; margin-top: 16px; text-align: center;
  background: var(--navy); color: #fff !important;
  border-radius: 6px; padding: 13px; text-decoration: none; font-weight: 700;
  border-bottom: none !important;
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: 15px 28px; border-radius: 6px;
  font-weight: 700; font-size: 15.5px; text-decoration: none;
  transition: 0.2s; border: 2px solid transparent; cursor: pointer;
  line-height: 1.4; text-align: center;
}
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-outline-light { border-color: rgba(255,255,255,0.7); color: #fff; background: transparent; }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--bg-navy-soft); }
.btn small { display: block; font-weight: 500; font-size: 11.5px; opacity: 0.85; }

/* ---------- ヒーロー ---------- */
.hero {
  background:
    radial-gradient(ellipse 900px 520px at 85% -10%, rgba(208, 45, 38, 0.14), transparent 60%),
    linear-gradient(160deg, #0b1e37 0%, var(--navy) 45%, var(--navy-2) 100%);
  color: #fff;
  padding: 64px 0 56px;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(115deg, transparent 45%, #000 100%);
  -webkit-mask-image: linear-gradient(115deg, transparent 45%, #000 100%);
}
.hero .container { position: relative; z-index: 1; }
.hero-tag {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em;
  color: var(--accent-light); border: 1px solid rgba(232,194,106,0.55);
  border-radius: 99px; padding: 5px 14px; margin-bottom: 22px;
  white-space: nowrap;
}
/* バッジ文言: スマホでは短縮版、タブレット以上でフル版を表示 */
.hero-tag .tag-long { display: none; }
.hero-tag .tag-short { display: inline; }
.hero h1 {
  font-size: clamp(26px, 6.4vw, 44px);
  font-weight: 900; line-height: 1.5; letter-spacing: 0.03em;
  margin-bottom: 20px;
}
.hero h1 .accent { color: var(--accent-light); }
.hero-lead { font-size: clamp(14.5px, 3.6vw, 17px); color: #c9d4e2; max-width: 640px; margin-bottom: 34px; }
.hero-cta { display: flex; flex-direction: column; gap: 14px; max-width: 420px; }
.hero-note { margin-top: 18px; font-size: 12px; color: #8fa2ba; }

/* ---------- セクション共通 ---------- */
.section { padding: 64px 0; }
.section-soft { background: var(--bg-soft); }
.section-navy { background: var(--navy); color: #fff; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-en {
  display: block; color: var(--accent); font-weight: 700;
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 10px;
}
.section-head h2 {
  font-size: clamp(22px, 5vw, 30px); font-weight: 900; color: var(--navy);
  line-height: 1.5; letter-spacing: 0.04em;
}
.section-navy .section-head h2 { color: #fff; }
.section-lead { margin: 16px auto 0; max-width: 680px; color: var(--muted); font-size: 14.5px; text-align: left; }
.section-navy .section-lead { color: #c9d4e2; }

/* ---------- お悩みカード ---------- */
.worries { display: grid; grid-template-columns: 1fr; gap: 14px; }
.worry {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px; box-shadow: var(--shadow);
  display: flex; gap: 14px; align-items: flex-start;
}
.worry-icon {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg-navy-soft); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
}
.worry h3 { font-size: 15.5px; color: var(--navy); margin-bottom: 4px; line-height: 1.6; }
.worry p { font-size: 13.5px; color: var(--muted); line-height: 1.75; }

/* ---------- 図解(選択制DCとは) ---------- */
.scheme {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 26px 20px; margin-top: 8px;
}
.scheme-title { text-align: center; font-weight: 700; color: var(--navy); margin-bottom: 20px; font-size: 15px; }
.scheme-flow { display: flex; flex-direction: column; gap: 0; align-items: stretch; }
.scheme-box { border-radius: 8px; padding: 16px; text-align: center; }
.scheme-box .label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; display: block; margin-bottom: 4px; }
.scheme-box .value { font-weight: 900; font-size: 17px; line-height: 1.5; }
.scheme-box .note { font-size: 11.5px; margin-top: 4px; display: block; }
.scheme-src { background: var(--navy); color: #fff; }
.scheme-src .label { color: #a9bcd6; }
.scheme-arrow {
  align-self: center; color: var(--accent); padding: 8px 0; line-height: 1;
}
.scheme-arrow svg { transform: rotate(90deg); }
.scheme-split { display: grid; grid-template-columns: 1fr; gap: 12px; }
.scheme-keep { background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink); }
.scheme-keep .label { color: var(--muted); }
.scheme-dc { background: var(--accent-bg); border: 2px solid var(--accent); color: var(--navy); }
.scheme-dc .label { color: var(--accent-dark); }
.scheme-result {
  margin-top: 4px; background: var(--bg-navy-soft); border: 1px dashed var(--navy-3);
  color: var(--navy); text-align: left; padding: 18px;
}
.scheme-result ul { list-style: none; }
.scheme-result li { padding-left: 22px; position: relative; font-size: 13.5px; margin: 6px 0; line-height: 1.7; }
.scheme-result li::before {
  content: ""; position: absolute; left: 2px; top: 9px;
  width: 9px; height: 9px; border-radius: 2px; background: var(--accent);
}
.scheme-note { margin-top: 16px; font-size: 12px; color: var(--muted); line-height: 1.8; }

/* ---------- 数字ハイライト ---------- */
.stats { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 34px; }
.stat {
  background: var(--white); border-top: 3px solid var(--accent);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow); padding: 20px; text-align: center;
}
.stat .num { font-size: 30px; font-weight: 900; color: var(--navy); line-height: 1.3; }
.stat .num small { font-size: 15px; font-weight: 700; }
.stat .desc { font-size: 12.5px; color: var(--muted); margin-top: 6px; line-height: 1.7; }

/* ---------- メリット3視点 ---------- */
.merits { display: grid; grid-template-columns: 1fr; gap: 18px; }
.merit {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  display: flex; flex-direction: column;
}
.merit-head {
  background: var(--navy); color: #fff; padding: 16px 20px;
  display: flex; align-items: center; gap: 12px;
}
.merit-head .m-icon {
  flex: none; width: 40px; height: 40px; border-radius: 8px;
  background: rgba(255,255,255,0.12); color: var(--accent-light);
  display: flex; align-items: center; justify-content: center;
}
.merit-head h3 { font-size: 16.5px; line-height: 1.4; }
.merit-head .m-for { display: block; font-size: 11px; font-weight: 500; color: #a9bcd6; letter-spacing: 0.1em; }
.merit-body { padding: 20px; flex: 1; }
.merit-body ul { list-style: none; }
.merit-body li {
  position: relative; padding: 9px 0 9px 26px; font-size: 14px; line-height: 1.75;
  border-bottom: 1px dashed var(--line);
}
.merit-body li:last-child { border-bottom: none; }
.merit-body li::before {
  content: ""; position: absolute; left: 0; top: 16px;
  width: 14px; height: 8px;
  border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}
.merit-body li strong { color: var(--navy); }

/* ---------- 業種別カード ---------- */
.industries { display: grid; grid-template-columns: 1fr; gap: 16px; }
.industry {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px 22px;
}
.industry-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.industry-icon {
  flex: none; width: 46px; height: 46px; border-radius: 10px;
  background: var(--navy); color: var(--accent-light);
  display: flex; align-items: center; justify-content: center;
}
.industry h3 { font-size: 16px; color: var(--navy); line-height: 1.45; }
.industry h3 small { display: block; font-size: 11px; color: var(--accent-dark); font-weight: 700; letter-spacing: 0.08em; }
.industry p { font-size: 13.5px; color: var(--ink); line-height: 1.85; }
.industry .point {
  margin-top: 12px; background: var(--bg-soft); border-radius: 6px;
  padding: 10px 14px; font-size: 12.5px; color: var(--navy); font-weight: 500;
}
.industry .point b { color: var(--accent-dark); }

/* ---------- 導入の流れ ---------- */
.steps { position: relative; display: grid; gap: 0; }
.step { display: flex; gap: 18px; position: relative; padding-bottom: 28px; }
.step:last-child { padding-bottom: 0; }
.step::before {
  content: ""; position: absolute; left: 23px; top: 48px; bottom: 0;
  width: 2px; background: var(--line);
}
.step:last-child::before { display: none; }
.step-num {
  flex: none; width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 900; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  border: 3px solid var(--white); box-shadow: 0 0 0 2px var(--line);
  position: relative; z-index: 1;
}
.step-body { padding-top: 6px; }
.step-body h3 { font-size: 16px; color: var(--navy); margin-bottom: 6px; line-height: 1.5; }
.step-body h3 .step-time {
  display: inline-block; margin-left: 8px; font-size: 11px; font-weight: 700;
  color: var(--accent-dark); background: var(--accent-bg); border-radius: 4px; padding: 2px 8px;
  vertical-align: 2px;
}
.step-body p { font-size: 13.5px; color: var(--muted); line-height: 1.8; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 48px 18px 18px;
  display: flex; gap: 12px; align-items: flex-start;
  font-weight: 700; color: var(--navy); font-size: 14.5px; line-height: 1.7;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 18px; top: 26px;
  width: 9px; height: 9px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg); transition: 0.2s;
}
.faq-item[open] summary::after { transform: rotate(-135deg); top: 30px; }
.faq-q {
  flex: none; width: 28px; height: 28px; border-radius: 6px;
  background: var(--navy); color: #fff; font-size: 14px; font-weight: 900;
  display: flex; align-items: center; justify-content: center; margin-top: 1px;
}
.faq-a { padding: 0 18px 20px 58px; font-size: 14px; color: var(--ink); line-height: 1.9; }
.faq-a p + p { margin-top: 8px; }
.faq-more { text-align: center; margin-top: 28px; }

/* ---------- 会社概要抜粋 ---------- */
.company-grid { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; }
.company-table { width: 100%; border-collapse: collapse; background: var(--white); box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden; }
.company-table th, .company-table td {
  text-align: left; padding: 15px 16px; font-size: 14px; line-height: 1.7;
  border-bottom: 1px solid var(--line); vertical-align: top;
}
.company-table th { width: 92px; color: var(--navy); font-weight: 700; background: var(--bg-soft); white-space: nowrap; }
.company-table tr:last-child th, .company-table tr:last-child td { border-bottom: none; }
.greeting-lead {
  background: var(--white); border-left: 4px solid var(--accent);
  box-shadow: var(--shadow); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px 20px;
}
.greeting-lead h3 { color: var(--navy); font-size: 16px; margin-bottom: 10px; }
.greeting-lead p { font-size: 14px; color: var(--ink); }
.greeting-lead .more { margin-top: 14px; font-size: 13.5px; }

/* ---------- 最下部CTA ---------- */
.cta-band {
  background:
    radial-gradient(ellipse 700px 400px at 15% 120%, rgba(208, 45, 38, 0.16), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, #0b1e37 100%);
  color: #fff; text-align: center; padding: 60px 0;
}
.cta-band h2 { font-size: clamp(20px, 5vw, 27px); font-weight: 900; line-height: 1.6; margin-bottom: 12px; }
.cta-band p { color: #c9d4e2; font-size: 14px; max-width: 560px; margin: 0 auto 30px; text-align: left; }
.cta-band .hero-cta { margin: 0 auto; }

/* ---------- フッター ---------- */
.site-footer { background: #0a1a30; color: #9fb1c8; padding: 44px 0 28px; font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
.footer-brand .brand-en { color: #fff; font-size: 15px; }
.footer-brand p { margin-top: 10px; line-height: 1.9; font-size: 12.5px; }
.footer-nav ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
.footer-nav a { color: #c9d4e2; text-decoration: none; display: block; padding: 6px 0; }
.footer-nav a:hover { color: #fff; }
.footer-note { margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 11.5px; line-height: 1.9; color: #7b8ea6; }
.footer-copy { margin-top: 14px; font-size: 11.5px; text-align: center; color: #647892; }

/* ---------- 下層ページ共通 ---------- */
.page-hero {
  background: linear-gradient(160deg, #0b1e37 0%, var(--navy-2) 100%);
  color: #fff; padding: 46px 0;
}
.page-hero h1 { font-size: clamp(22px, 5.4vw, 32px); font-weight: 900; letter-spacing: 0.04em; }
.page-hero .section-en { margin-bottom: 6px; color: var(--accent-light); /* 暗い背景上は金 */ }
.page-hero p { color: #c9d4e2; font-size: 13.5px; margin-top: 10px; }

/* ---------- フォーム ---------- */
.form-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px 22px;
}
.form-row { margin-bottom: 22px; }
.form-row label { display: block; font-weight: 700; color: var(--navy); font-size: 14px; margin-bottom: 8px; }
.req, .opt {
  display: inline-block; font-size: 10.5px; font-weight: 700; border-radius: 4px;
  padding: 2px 8px; margin-left: 8px; vertical-align: 1px;
}
.req { background: var(--accent); color: #fff; }
.opt { background: var(--bg-navy-soft); color: var(--navy); }
.form-row input[type="text"], .form-row input[type="email"], .form-row input[type="tel"],
.form-row input[type="password"], .form-row textarea {
  width: 100%; padding: 13px 14px; font-size: 16px; /* 16px未満だとiOSでズームされる */
  border: 1.5px solid var(--line); border-radius: 6px; background: var(--bg-soft);
  font-family: inherit; color: var(--ink);
}
.form-row input:focus, .form-row textarea:focus {
  outline: 2px solid var(--navy-3); outline-offset: 0; background: #fff;
}
.form-row textarea { min-height: 170px; resize: vertical; }
.form-note { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.form-actions { text-align: center; margin-top: 28px; }
.form-actions .btn { width: 100%; }
.form-error {
  display: none; background: #fdf0ef; border: 1px solid #e5b6b2; color: #8f2b24;
  border-radius: 6px; padding: 12px 16px; font-size: 13.5px; margin-bottom: 18px;
}
.form-error.show { display: block; }
/* honeypot: 人間には見えない位置に配置 */
.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- 完了画面 ---------- */
.done-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 44px 24px; text-align: center;
}
.done-icon {
  width: 66px; height: 66px; border-radius: 50%; margin: 0 auto 18px;
  background: var(--bg-navy-soft); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
}
.done-card h1, .done-card h2 { color: var(--navy); font-size: 20px; margin-bottom: 12px; }
.done-card p { font-size: 14px; color: var(--muted); text-align: left; max-width: 460px; margin: 0 auto; }
.done-card .btn { margin-top: 26px; }

/* ---------- パスワードゲート ---------- */
.gate-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 34px 24px; max-width: 460px; margin: 0 auto;
}
.gate-card h2 { color: var(--navy); font-size: 18px; text-align: center; margin-bottom: 8px; }
.gate-card .gate-lead { font-size: 13px; color: var(--muted); text-align: center; margin-bottom: 22px; }
.gate-icon {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 16px;
  background: var(--navy); color: var(--accent-light);
  display: flex; align-items: center; justify-content: center;
}

/* ---------- 代表挨拶(会社概要ページ) ---------- */
.greeting-full {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 30px 24px;
}
.greeting-full p { margin-bottom: 16px; font-size: 14.5px; }
.greeting-sign { text-align: right; margin-top: 24px; }
.greeting-sign .sign-title { font-size: 12.5px; color: var(--muted); }
.greeting-sign .sign-name { font-size: 18px; font-weight: 900; color: var(--navy); letter-spacing: 0.1em; }

/* ---------- アクセスマップ ---------- */
.map-frame { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-frame iframe { display: block; width: 100%; height: 320px; border: 0; }

/* ---------- 経営者向け4カード(ヒーロー直下) ---------- */
.owner-strip { background: var(--white); padding: 56px 0 60px; border-bottom: 1px solid var(--line); }
.owner-cards { display: grid; grid-template-columns: 1fr; gap: 14px; }
.owner-card {
  background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--accent);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px 18px;
}
.owner-card .oc-icon {
  width: 44px; height: 44px; border-radius: 10px; margin-bottom: 12px;
  background: var(--accent-bg); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.owner-card h3 { font-size: 15px; color: var(--navy); line-height: 1.6; margin-bottom: 6px; }
.owner-card p { font-size: 12.5px; color: var(--muted); line-height: 1.75; }
.owner-note { margin-top: 16px; font-size: 11.5px; color: var(--muted); line-height: 1.8; }

/* ---------- SVG図解カード ---------- */
.figures { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 22px; }
.figure-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px 18px;
}
.figure-card h3 {
  font-size: 15px; color: var(--navy); text-align: center; margin-bottom: 14px;
  padding-bottom: 10px; border-bottom: 2px solid var(--accent-bg); position: relative;
}
.figure-card h3::after {
  content: ""; position: absolute; left: 50%; bottom: -2px; transform: translateX(-50%);
  width: 56px; height: 2px; background: var(--accent);
}
.figure-card svg { display: block; width: 100%; height: auto; max-width: 430px; margin: 0 auto; }
.figure-note { margin-top: 12px; font-size: 11.5px; color: var(--muted); line-height: 1.8; }

/* ---------- 姫路城イメージ(会社概要) ---------- */
.castle-visual { margin: 0 0 28px; }
.castle-visual img {
  display: block; width: 100%; height: auto; border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.castle-visual figcaption { font-size: 11.5px; color: var(--muted); text-align: right; margin-top: 8px; }

/* ---------- フッターの兜マーク ---------- */
.footer-mark {
  flex: none; width: 44px; height: 44px; border-radius: 10px; background: #fff;
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.footer-mark img { width: 34px; height: auto; }

/* ============================================================
   タブレット以上 (768px〜)
   ============================================================ */
@media (min-width: 768px) {
  body { font-size: 16px; }
  .brand-en { font-size: 16px; }
  .brand-ja { font-size: 11px; }
  .brand-logo-full { display: block; }
  .brand-logo-mark, .brand .brand-text { display: none; }
  .owner-cards { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .owner-note { text-align: center; }
  .figures { grid-template-columns: 1fr 1fr; gap: 24px; }
  .figure-card { padding: 28px 26px; }
  .castle-visual img { max-height: 380px; object-fit: cover; }

  .nav-toggle { display: none; }
  .site-nav {
    display: block; position: static; background: none; border: none;
    box-shadow: none; padding: 0;
  }
  .site-nav ul { display: flex; align-items: center; gap: 4px; }
  .site-nav li a {
    border-bottom: none; padding: 8px 12px; font-size: 14px;
    border-radius: 6px;
  }
  .site-nav li a:hover { background: var(--bg-navy-soft); }
  .nav-cta { margin-top: 0; margin-left: 10px; padding: 10px 20px; font-size: 14px; }

  .hero { padding: 96px 0 88px; }
  .hero-tag { font-size: 12.5px; letter-spacing: 0.12em; padding: 5px 16px; }
  .hero-tag .tag-long { display: inline; }
  .hero-tag .tag-short { display: none; }
  .hero-cta { flex-direction: row; max-width: none; }
  .hero-cta .btn { min-width: 260px; }

  .section { padding: 88px 0; }
  .section-lead { text-align: center; }

  .worries { grid-template-columns: 1fr 1fr; gap: 18px; }
  .worry { padding: 26px 24px; }

  .scheme { padding: 38px 40px; }
  .scheme-flow { flex-direction: row; align-items: stretch; }
  .scheme-src { flex: 1.1; display: flex; flex-direction: column; justify-content: center; }
  .scheme-arrow { padding: 0 14px; display: flex; align-items: center; }
  .scheme-arrow svg { transform: none; }
  .scheme-split { flex: 1.6; }
  .scheme-result { flex: 1.6; margin-top: 0; display: flex; flex-direction: column; justify-content: center; }

  .stats { grid-template-columns: repeat(3, 1fr); gap: 20px; }

  .merits { grid-template-columns: repeat(3, 1fr); }

  .industries { grid-template-columns: 1fr 1fr; gap: 20px; }

  .steps { max-width: 760px; margin: 0 auto; }

  .company-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .company-table th { width: 120px; padding: 17px 20px; }
  .company-table td { padding: 17px 20px; }

  .footer-grid { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .footer-nav ul { grid-template-columns: 1fr 1fr; }

  .form-card { padding: 40px 44px; }
  .form-actions .btn { width: auto; min-width: 300px; }
  .form-row.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .form-row.form-2col > div { margin: 0; }

  .gate-card { padding: 44px 40px; }
  .map-frame iframe { height: 380px; }
}

/* ============================================================
   資料倉庫(partner / member ページ, パスワードゲート認証後)
   ============================================================ */
.resource-page { text-align: left; }

.resource-intro {
  background: var(--white); border-left: 4px solid var(--accent);
  box-shadow: var(--shadow); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px 20px; margin-bottom: 40px;
}
.resource-intro h1 { color: var(--navy); font-size: 19px; margin-bottom: 10px; line-height: 1.5; }
.resource-intro p { font-size: 14px; color: var(--ink); line-height: 1.9; }

.doc-section { margin-bottom: 48px; }
.doc-section:last-child { margin-bottom: 0; }
.doc-section-head { margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid var(--line); }
.doc-section-head h2 { color: var(--navy); font-size: 18px; letter-spacing: 0.03em; }
.doc-section-head .doc-count { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); font-weight: 500; }
.doc-section-note { font-size: 12.5px; color: var(--muted); margin-bottom: 16px; line-height: 1.8; }

.doc-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }

.doc-card {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px; text-decoration: none; color: inherit;
  transition: 0.15s;
}
.doc-card:hover { border-color: var(--navy-3); box-shadow: var(--shadow-lg); }
.doc-ico {
  flex: none; width: 42px; height: 34px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 10.5px; font-weight: 900; letter-spacing: 0.02em; color: #fff;
  margin-top: 2px;
}
.doc-ico-pdf { background: var(--navy); }
.doc-ico-xls { background: #1f7a4d; }
.doc-ico-img { background: var(--navy-3); }
.doc-info { flex: 1; min-width: 0; }
.doc-title { display: block; font-weight: 700; color: var(--navy); font-size: 14.5px; line-height: 1.6; }
.doc-desc { display: block; margin-top: 4px; font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.doc-dl {
  flex: none; align-self: center; color: var(--accent); font-weight: 700; font-size: 12px;
  display: flex; flex-direction: column; align-items: center; gap: 2px; white-space: nowrap;
}

/* ---------- 各種お手続き: 状況 → 様式 ---------- */
.howto-list { display: grid; gap: 10px; }
.howto-row {
  display: grid; grid-template-columns: 1fr; gap: 10px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px;
}
.howto-situation { font-size: 13.5px; color: var(--ink); line-height: 1.7; display: flex; align-items: center; gap: 8px; }
.howto-situation .howto-tag {
  flex: none; font-size: 10.5px; font-weight: 700; color: var(--accent-dark);
  background: var(--accent-bg); border-radius: 4px; padding: 3px 8px;
}
.howto-action { display: flex; }
.howto-action .doc-card { width: 100%; padding: 12px 14px; }
.howto-note { margin-top: 16px; font-size: 12.5px; color: var(--muted); background: var(--bg-soft); border-radius: 8px; padding: 14px 16px; line-height: 1.8; }
.howto-note-placeholder {
  display: inline-block; margin-top: 4px; font-weight: 700; color: var(--accent-dark);
  border: 1px dashed var(--accent); border-radius: 4px; padding: 2px 10px;
}

/* ---------- タブ(勉強動画) ---------- */
.tabs-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tab-btn {
  flex: 1 1 calc(50% - 8px); border: 1.5px solid var(--line); background: var(--white);
  color: var(--navy); font-weight: 700; font-size: 12.5px; padding: 12px 10px;
  border-radius: 8px; cursor: pointer; transition: 0.15s; font-family: inherit;
}
.tab-btn:hover { border-color: var(--navy-3); }
.tab-btn.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.tab-placeholder {
  background: var(--bg-soft); border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 32px 20px; text-align: center; color: var(--muted); font-size: 13.5px; line-height: 1.9;
}
.tab-placeholder .tp-badge {
  display: inline-block; background: var(--bg-navy-soft); color: var(--navy);
  font-size: 11px; font-weight: 700; border-radius: 99px; padding: 4px 14px; margin-bottom: 10px;
}
.doc-section .doc-grid + .doc-section-note,
.tab-panels + .doc-section-note { margin-top: 18px; margin-bottom: 0; }

/* ---------- 特集リソース(ページ上部の単独カード) ---------- */
.featured-card {
  display: flex; flex-direction: column; gap: 16px;
  background: var(--navy); color: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 24px 22px; text-decoration: none;
  border-top: 4px solid var(--accent-light);
}
.featured-ico {
  flex: none; width: 52px; height: 42px; border-radius: 8px;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 900; letter-spacing: 0.02em;
}
.featured-body { flex: 1; min-width: 0; }
.featured-title { display: block; font-weight: 900; font-size: 17px; color: #fff; line-height: 1.5; }
.featured-desc { display: block; margin-top: 8px; font-size: 13px; color: #c9d4e2; line-height: 1.8; }
.featured-btn {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 13.5px;
  padding: 11px 22px; border-radius: 6px; white-space: nowrap;
}
.featured-card:hover .featured-btn { background: var(--accent-dark); }

/* ---------- 困ったときは ---------- */
.help-card {
  background: var(--navy); color: #fff; border-radius: var(--radius);
  padding: 28px 22px; text-align: center;
}
.help-card h2 { font-size: 18px; margin-bottom: 10px; }
.help-card p { font-size: 13.5px; color: #c9d4e2; margin-bottom: 20px; line-height: 1.8; }

@media (min-width: 768px) {
  .resource-intro { padding: 30px 34px; }
  .resource-intro h1 { font-size: 22px; }
  .resource-intro p { font-size: 14.5px; }

  .doc-grid { grid-template-columns: 1fr 1fr; }
  .doc-section-head h2 { font-size: 20px; }

  .howto-row { grid-template-columns: 1fr 300px; align-items: center; }
  .howto-action .doc-card { padding: 10px 14px; }

  .tab-btn { flex: 1 1 auto; }

  .help-card { padding: 40px 44px; }

  .featured-card { flex-direction: row; align-items: center; padding: 30px 32px; }
  .featured-ico { width: 60px; height: 50px; font-size: 13px; }
  .featured-title { font-size: 19px; }
  .featured-desc { font-size: 13.5px; }
  .featured-btn { align-self: center; margin-left: auto; }
}
