/* =========================================================
   トップノッチ 共通デザイン（全ページ共通）
   色を変えたいときは、下の「色の設定」だけ直せば全ページに反映されます
   ========================================================= */

/* ---------- 色の設定 ---------- */
:root {
  --blue: #1d63e0;          /* メインの青（ボタン・見出しの飾り） */
  --blue-logo: #2575fe;     /* ロゴと同じ青（飾り用） */
  --blue-deep: #14305a;     /* 文字・濃い部分 */
  --blue-pale: #eef4ff;     /* うすい青の背景 */
  --green: #2f9e86;         /* アクセントの緑 */
  --green-pale: #eaf6f2;    /* うすい緑の背景 */
  --text: #1f2d3d;          /* 本文の文字色 */
  --text-sub: #5a6b7d;      /* 補足の文字色 */
  --line: #dbe4ef;          /* 区切り線 */
  --white: #ffffff;
}

/* ---------- 基本 ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  font-size: 17px;
  line-height: 1.9;
  color: var(--text);
  background: var(--white);
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { text-decoration: none; }
h1, h2, h3 { line-height: 1.5; color: var(--blue-deep); margin: 0; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section--tint { background: var(--blue-pale); }
.section--green { background: var(--green-pale); }

.section-title { text-align: center; margin-bottom: 40px; }
.section-title .en {
  display: block;
  font-size: 13px;
  letter-spacing: .18em;
  color: var(--green);
  font-weight: 700;
  margin-bottom: 6px;
}
.section-title h2 { font-size: 28px; }
.section-title h2::after {
  content: "";
  display: block;
  width: 48px; height: 4px;
  background: var(--blue-logo);
  border-radius: 2px;
  margin: 14px auto 0;
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(29, 99, 224, .25);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(29, 99, 224, .3); }
.btn--ghost {
  background: var(--white);
  color: var(--blue);
  border: 2px solid var(--blue);
  box-shadow: none;
}
.btn--ghost:hover { box-shadow: none; background: var(--blue-pale); }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 10px; padding-bottom: 10px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--blue-deep); }
.brand img { width: 52px; height: auto; }
.brand-text { font-weight: 700; font-size: 15px; line-height: 1.4; }
.brand-text small { display: block; font-weight: 400; font-size: 12px; color: var(--text-sub); }

.nav ul { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--text); text-decoration: none; font-size: 15px; font-weight: 600; }
.nav a:hover { color: var(--blue); }
.nav a.nav-cta {
  background: var(--blue); color: var(--white);
  padding: 9px 20px; border-radius: 999px;
}
.nav a.nav-cta:hover { color: var(--white); background: #1550b8; }

/* スマホ用メニュー（JavaScriptなしで開閉できる作り） */
.nav-toggle { display: none; }
.nav-button { display: none; }

/* ---------- トップの大きな見出し部分 ---------- */
.hero {
  background: linear-gradient(170deg, #dcebff 0%, #eef4ff 55%, #e9f6f1 100%);
  padding: 64px 0 56px;
  text-align: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--white);
  color: var(--blue-deep);
  font-weight: 700; font-size: 15px;
  padding: 6px 18px 6px 12px; border-radius: 999px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
}
.hero-eyebrow .flag { display: block; border: 1px solid rgba(0, 0, 0, .15); }
.hero h1 { line-height: 1.3; }
.hero h1 .h1-sub {
  display: block; white-space: nowrap;
  font-size: min(28px, calc((100vw - 40px) / 20));   /* 狭い画面でも1行に収まる大きさ */
  letter-spacing: .04em; color: var(--blue-deep);
}
.hero h1 .h1-name {
  display: block; margin-top: 8px;
  font-size: 52px; letter-spacing: .08em; color: var(--blue);
}
.hero p.lead { font-size: 18px; margin: 22px auto 30px; max-width: 720px; text-align: left; }
.hero .btn-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- トップ写真（横いっぱいの帯） ---------- */
.banner { margin: 0; background: var(--white); }
.banner img {
  display: block; width: 100%;
  height: clamp(220px, 34vw, 420px);
  object-fit: cover;
  object-position: 70% center;   /* 建物が写る右側を残す */
}
.credit { margin: 0; padding-top: 6px; padding-bottom: 6px; font-size: 12px; color: var(--text-sub); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; }

/* ---------- 主な業務内容 ---------- */
.services { max-width: 760px; margin: 0 auto; display: grid; gap: 16px; }
.services li {
  background: var(--white);
  border-left: 6px solid var(--blue-logo);
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 4px 14px rgba(20, 48, 90, .06);
}
.services li strong { display: block; color: var(--blue-deep); font-size: 18px; margin-bottom: 4px; }
.center-link { text-align: center; margin-top: 28px; }

/* ---------- 選ばれる理由 ---------- */
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.reason {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 22px;
}
.reason-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.reason .num {
  flex: none;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--green); color: var(--white); font-weight: 700;
  font-size: 22px; line-height: 1;
}
.reason .num small { font-size: 10px; letter-spacing: .12em; margin-bottom: 2px; }
.reason h3 { font-size: 18px; margin: 2px 0 0; }
.reason p { font-size: 15px; margin: 0; color: var(--text); line-height: 1.8; }

/* ---------- お客様の声 ---------- */
.voices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.voice {
  margin: 0;
  background: var(--white);
  border-radius: 16px;
  padding: 28px 26px 22px;
  border: 1px solid var(--line);
  position: relative;
}
.voice::before {
  content: "“";
  position: absolute; top: 4px; left: 16px;
  font-size: 64px; line-height: 1; color: var(--blue-logo); opacity: .25;
  font-family: Georgia, serif;
}
.voice p { font-size: 15px; line-height: 1.9; position: relative; }
.voice .who { font-size: 14px; font-weight: 700; color: var(--blue-deep); margin: 0; text-align: right; padding: 0; border-radius: 0; background: none; }
.voice p + p { margin-top: 0; }
/* お客様の声ページ：1列で読みやすく */
.voices--list { grid-template-columns: 1fr; max-width: 820px; margin: 0 auto; }
.voices--list .voice { padding: 34px 32px 24px; }
.voices--list .voice p { font-size: 16px; }
.voices--list .voice .who { margin-top: 14px; }

/* ---------- 申込みの流れ ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: step; }
.steps li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 14px 18px;
  text-align: center;
  font-weight: 700; font-size: 15px; line-height: 1.6;
  color: var(--blue-deep);
}
.steps li::before {
  counter-increment: step;
  content: "STEP " counter(step);
  display: block;
  font-size: 12px; letter-spacing: .1em; color: var(--green); margin-bottom: 6px;
}

/* ---------- お問い合わせ案内 ---------- */
.contact-box {
  max-width: 760px; margin: 0 auto;
  background: var(--white);
  border: 2px solid var(--blue);
  border-radius: 20px;
  padding: 40px 32px;
  text-align: center;
}
.contact-box h2 { font-size: 26px; margin-bottom: 14px; }
.contact-box .hours { font-size: 15px; color: var(--text-sub); margin: 18px 0 0; line-height: 1.8; }

/* ---------- フッター ---------- */
.site-footer { background: var(--blue-deep); color: #d5e1f3; padding: 48px 0 28px; font-size: 14px; line-height: 1.9; }
.site-footer a { color: #d5e1f3; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; }
.site-footer h3 { color: var(--white); font-size: 16px; margin-bottom: 10px; }
.footer-nav li { margin-bottom: 4px; }
.footer-badge { margin-top: 16px; }
.footer-badge a { display: inline-block; line-height: 0; }
.footer-badge img { display: block; width: 140px; height: auto; }
.copyright { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 28px; padding-top: 18px; text-align: center; font-size: 13px; }

/* =========================================================
   スマートフォン用（画面が狭いとき）
   ========================================================= */
@media (max-width: 860px) {
  body { font-size: 16px; }
  .section { padding: 52px 0; }
  .section-title h2 { font-size: 24px; }

  .nav-button {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 10px; cursor: pointer;
    border: 1px solid var(--line); border-radius: 10px; background: var(--white);
  }
  .nav-button span { display: block; height: 2px; background: var(--blue-deep); border-radius: 1px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 16px; }
  .nav li a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav a.nav-cta { margin-top: 12px; text-align: center; border-bottom: none; }
  .nav-toggle:checked ~ .nav { display: block; }
  .site-header .wrap { position: relative; }

  .hero { padding: 40px 0 36px; }
  .hero h1 .h1-name { font-size: 40px; }
  .hero p.lead { font-size: 16px; }
  .hero-eyebrow { font-size: 14px; }
  .banner img { height: 240px; object-position: 78% center; }
  .reasons { grid-template-columns: 1fr; }
  .voices { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li { text-align: left; padding: 14px 18px; }
  .steps li::before { display: inline; margin: 0 10px 0 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-badge img { width: 120px; }
  .contact-box { padding: 32px 20px; }
  .btn { padding: 15px 28px; }
}

@media (max-width: 420px) {
  .brand-text small { display: none; }
}

/* =========================================================
   下層ページ共通（会社概要・サービス・お客様の声 など）
   ========================================================= */
.page-hero {
  background: linear-gradient(170deg, #dcebff 0%, #eef4ff 55%, #e9f6f1 100%);
  padding: 48px 0;
  text-align: center;
}
.page-hero .en { display: block; font-size: 13px; letter-spacing: .18em; color: var(--green); font-weight: 700; margin-bottom: 6px; }
.page-hero h1 { font-size: 30px; }
.page-hero p { margin: 14px auto 0; max-width: 640px; font-size: 16px; color: var(--text-sub); }

.profile-table { max-width: 820px; margin: 0 auto; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-size: 15px; line-height: 1.75; }
.profile-table .row { display: block; border-top: 1px solid var(--line); }
.profile-table .row:first-child { border-top: none; }
.profile-table dt { background: var(--blue-pale); color: var(--blue-deep); font-weight: 700; padding: 9px 14px; font-size: 14px; line-height: 1.6; }
.profile-table dd { margin: 0; padding: 12px 14px; font-size: 15px; line-height: 1.75; }
.profile-table dd small { display: block; color: var(--text-sub); font-size: 13px; line-height: 1.7; margin-top: 4px; }
.profile-table dd ul li { margin-bottom: 8px; }
.profile-table dd ul li:last-child { margin-bottom: 0; }

.owner { max-width: 820px; margin: 0 auto; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 32px 30px; }
.owner-name { margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); text-align: center; }
.owner-name .role { display: block; font-size: 16px; color: var(--green); font-weight: 700; }
.owner-name strong { font-size: 24px; color: var(--blue-deep); }
.owner h3 { font-size: 17px; margin: 22px 0 8px; color: var(--blue-deep); }
.owner p:last-child { margin-bottom: 0; }

.owner .sign { margin-top: 2.2em; font-size: 15px; line-height: 1.9; color: var(--text-sub); text-align: left; }
.owner .sign strong { font-size: 18px; color: var(--blue-deep); }

@media (max-width: 860px) {
  .page-hero { padding: 36px 0; }
  .page-hero h1 { font-size: 24px; }
  .profile-table .row { grid-template-columns: 1fr; }
  .owner { padding: 24px 20px; }
}

/* =========================================================
   サービス内容と料金ページ（services.html）
   ========================================================= */
.intro { max-width: 820px; margin: 0 auto 24px; }
.intro p { margin-bottom: .8em; }
.notice { max-width: 820px; margin: 0 auto 24px; background: var(--green-pale); border-left: 5px solid var(--green); border-radius: 8px; padding: 16px 22px; font-size: 15px; line-height: 1.85; }
.notice strong { display: block; color: var(--blue-deep); margin-bottom: 4px; }
.jump { max-width: 820px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.jump a { display: inline-block; padding: 10px 22px; border: 1px solid var(--blue); border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; background: var(--white); }
.jump a:hover { background: var(--blue-pale); }

.svc-list { max-width: 820px; margin: 0 auto; display: grid; gap: 18px; }
.svc { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 24px 26px; }
.svc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 12px; }
.svc-head h3 { font-size: 18px; }
.svc p { font-size: 16px; margin-bottom: .8em; }
.svc > :last-child { margin-bottom: 0; }
.badge-free { flex: none; background: var(--green); color: var(--white); font-weight: 700; font-size: 14px; line-height: 1; padding: 8px 14px; border-radius: 999px; white-space: nowrap; }
.note { font-size: 14px !important; line-height: 1.8; color: var(--text-sub); }
.sub-title { font-weight: 700; color: var(--blue-deep); margin: 14px 0 4px; font-size: 15px; }

.dots { margin: 0 0 .9em; }
.dots li { position: relative; padding-left: 1.3em; margin-bottom: 6px; font-size: 16px; line-height: 1.8; }
.dots li::before { content: ""; position: absolute; left: .2em; top: .8em; width: 7px; height: 7px; border-radius: 50%; background: var(--blue-logo); }

.fee-foot { max-width: 820px; margin: 22px auto 0; font-size: 14px; color: var(--text-sub); }

@media (max-width: 860px) {
  .svc { padding: 20px 18px; }
  .svc-head { flex-direction: column; gap: 8px; }
}

.svc-head--free { justify-content: flex-start; align-items: center; gap: 12px; }
@media (max-width: 860px) { .svc-head--free { flex-direction: row; align-items: center; gap: 10px; } }

/* 有料サービスのタイトル：左線＋うす青の背景 */

/* 無料サービスのタイトル：蛍光ペン風の下線（うす緑） */
.svc-head--free h3 { font-size: 19px; background: linear-gradient(transparent 62%, #b8e5d4 62%, #b8e5d4 94%, transparent 94%); padding: 0 4px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* =========================================================
   お申込みの流れページ（how-to-apply.html）
   ========================================================= */
.flow { max-width: 880px; }
.flow-lead { text-align: center; margin-bottom: 32px; }
.flow-step { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 28px 28px 30px; margin-bottom: 44px; position: relative; }
.flow-step:not(:last-of-type)::after { content: ""; position: absolute; left: 50%; bottom: -34px; width: 0; height: 0; margin-left: -14px; border-left: 14px solid transparent; border-right: 14px solid transparent; border-top: 18px solid var(--blue-logo); opacity: .55; }
.flow-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.flow-num { flex: none; width: 58px; height: 58px; border-radius: 50%; background: var(--green); color: var(--white); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; line-height: 1; }
.flow-num small { font-size: 10px; letter-spacing: .12em; margin-bottom: 2px; }
.flow-head h2 { font-size: 23px; }
.who-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.who { border-radius: 12px; padding: 18px 20px 12px; }
.who h4 { margin: 0 0 10px; font-size: 16px; color: var(--blue-deep); }
.who .dots li { font-size: 15.5px; }
.who--you { background: var(--green-pale); }
.who--us { background: var(--blue-pale); }
.who-grid > .who:only-child { grid-column: 1 / -1; }
.flow-end { text-align: center; font-weight: 700; color: var(--blue-deep); margin: 0; }

@media (max-width: 860px) {
  .flow-step { padding: 22px 18px 24px; }
  .flow-head h2 { font-size: 20px; }
  .flow-num { width: 52px; height: 52px; font-size: 22px; }
  .who-grid { grid-template-columns: 1fr; }
}

/* ---------- 個別ページ用の微調整（HTMLに直接書かず、ここにまとめる） ---------- */
ol.steps { margin: 0; padding: 0; list-style: none; }
.profile-table.profile-table--flush { margin-top: 0; margin-bottom: 0; }
.section.section--tight-bottom { padding-bottom: 20px; }

/* ---------- お問合せページ ---------- */
.contact-page { max-width: 760px; margin: 0 auto; }
.contact-page > p { margin: 0 0 24px; }
.mail-card { background: var(--blue-pale); border: 1px solid var(--line); border-radius: 14px; padding: 30px 24px; text-align: center; margin-bottom: 28px; }
.mail-card h2 { font-size: 22px; margin-bottom: 14px; }
.mail-card .mail-addr { font-size: 26px; font-weight: 700; color: var(--blue-deep); margin: 0 0 8px; word-break: break-all; }
.mail-card p { margin: 0 0 16px; }
.mail-card .mail-note { font-size: 13px; line-height: 1.8; color: var(--text-sub); }
.contact-page .notice { max-width: none; margin-bottom: 28px; }
.contact-page .notice .dots { margin: 8px 0 0; }
.contact-page .notice .dots { display: flex; flex-wrap: wrap; gap: 0 28px; }
.mail-card .mail-info { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.9; }
.contact-closing { margin: 0; color: var(--text-sub); font-size: 15px; line-height: 1.9; }
@media (max-width: 860px) { .mail-card .mail-addr { font-size: 20px; } .mail-card { padding: 26px 16px; } }
.section--tight-bottom .flow-lead { margin-bottom: 0; }
.section.section--steps { padding-top: 40px; }

/* ---------- ビザの種類ページ（visa-types.html） ---------- */
.visa-list .sub-title { margin-top: 12px; }
.visa-list .sub-title + p { margin-bottom: .4em; }
.visa-notes .notice p { margin: 0 0 .8em; }
.visa-notes .notice p:last-child { margin-bottom: 0; }

/* メニューが増えたため、中くらいの画面幅ではヘッダーを少し詰める */
@media (min-width: 861px) and (max-width: 1040px) {
  .nav ul { gap: 14px; }
  .nav a { font-size: 14px; }
  .nav a.nav-cta { padding: 8px 14px; }
  .brand-text small { display: none; }
}

/* 見出し帯の直後の本文：上の余白を詰める */
.page-hero + .section { padding-top: 40px; }
@media (max-width: 860px) { .page-hero + .section { padding-top: 32px; } }

/* 有料サービスのタイトル：青い楕円の「有料」＋うす青の蛍光ペン風の下線（無料サービスと同じ作り） */
.svc-head--paid { justify-content: flex-start; align-items: center; gap: 12px; flex-wrap: wrap; }
.badge-paid { flex: none; background: var(--blue); color: var(--white); font-weight: 700; font-size: 14px; line-height: 1; padding: 8px 14px; border-radius: 999px; white-space: nowrap; }
.svc-head--paid h3 { font-size: 19px; background: linear-gradient(transparent 62%, #c9dcff 62%, #c9dcff 94%, transparent 94%); padding: 0 4px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
@media (max-width: 860px) {
  .svc-head--paid { flex-direction: row; align-items: center; gap: 8px 10px; }
}

/* 「無料相談」ボタンは緑（無料サービスの色に合わせる）。白抜きのボタンは青のまま */
.btn:not(.btn--ghost) { background: #1c8a6f; box-shadow: 0 6px 16px rgba(28, 138, 111, .3); }
.btn:not(.btn--ghost):hover { box-shadow: 0 10px 20px rgba(28, 138, 111, .36); }
.nav a.nav-cta { background: #1c8a6f; }
.nav a.nav-cta:hover { background: #167058; }

/* サービスページ上部のジャンプボタン：「無料のサービス」は緑 */
.jump a.jump-free { border-color: #1c8a6f; color: #1c8a6f; }
.jump a.jump-free:hover { background: var(--green-pale); }

/* 注意事項の枠：落ち着いたうす黄色（無料サービスの緑と区別する） */
.notice.notice--caution { background: #fffaf0; border-left-color: #efd08c; }

/* 注意事項の枠のタイトル：蛍光ペン風の下線（文字の大きさは変えない） */
.notice.notice--caution strong { width: fit-content; background: linear-gradient(transparent 62%, #f3dba0 62%, #f3dba0 94%, transparent 94%); padding: 0 4px; margin-left: -4px; margin-bottom: 8px; }

/* 問合せ枠：外側が白の帯のときは、枠の中をほんのりうす水色にする（外側がうす水色のときは、枠の中は白のまま） */
.section:not(.section--tint):not(.section--green) .contact-box { background: #f6f9ff; }

/* サービスページの区切り線：サイトの色（うす青の線）にそろえる */
.svc hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }

/* お問合せの枠：最後の段落の下の余白をなくす */
.mail-card > :last-child { margin-bottom: 0; }

/* ---------- エラーページ(404・403・500) ---------- */
.error-page { max-width: 640px; margin: 0 auto; text-align: center; }
.error-page .btn-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin: 26px 0 34px; }
.error-links-title { font-size: 14px; font-weight: 700; color: var(--text-sub); margin: 0 0 8px; }
.error-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: center; }
.error-links a { color: var(--blue); font-weight: 600; }
.error-page .error-mail { font-size: 22px; font-weight: 700; color: var(--blue-deep); margin: 18px 0 4px; word-break: break-all; }
.error-page .mail-note { font-size: 13px; color: var(--text-sub); margin: 0; }

/* ---------- 代表のご挨拶:経歴の部分(罫線+少し小さい文字) ---------- */
.owner .owner-hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0 0; }
.owner .owner-bio { font-size: 15px; }
.owner .owner-bio h3 { font-size: 15px; }
.owner .owner-bio p { font-size: 15px; }

/* ---------- 言語切替(国旗)ヘッダー・フッター ---------- */
.nav li.nav-lang { display: flex; align-items: center; padding-left: 14px; flex-shrink: 0; border-left: 1px solid var(--line); }
.nav li.nav-lang .lang-item { display: inline-flex; align-items: center; gap: 8px; line-height: 0; text-decoration: none; }
.nav li.nav-lang .lang-item img { display: block; flex-shrink: 0; height: 18px; width: auto; border: 1px solid rgba(0, 0, 0, .18); border-radius: 2px; }
.nav li.nav-lang a.lang-item img { opacity: .9; }
.nav li.nav-lang a.lang-item:hover img { opacity: 1; }
/* 国旗の横の言語名は、パソコンでは見えない位置に置く(読み上げ用)。スマホのメニューでは表示 */
.lang-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.footer-nav .lang-link { display: inline-flex; align-items: center; gap: 8px; }
.footer-nav .lang-link img { display: block; height: 16px; width: auto; border: 1px solid rgba(255, 255, 255, .5); border-radius: 2px; }
@media (max-width: 860px) {
  .nav li.nav-lang { padding: 14px 4px 4px; border-left: none; gap: 26px; }
  .nav li.nav-lang .lang-name { position: static; width: auto; height: auto; overflow: visible; clip: auto; font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--text); }
  .nav li.nav-lang a.lang-item { display: inline-flex; padding: 0; border-bottom: none; }
}

/* ---------- スマホ:メニューボタンの横に国旗/メニュー外をタップで閉じる/ページの先頭へ ---------- */
.lang-quick, .nav-backdrop { display: none; }
.nav li.nav-about { display: none; }  /* 会社概要はスマホのメニューにだけ表示(PCではフッターにあるため) */
@media (max-width: 860px) {
  .nav li.nav-about { display: list-item; }
  .lang-quick { display: inline-flex; align-items: center; margin-left: auto; padding: 10px 4px; line-height: 0; }
  .lang-quick img { display: block; height: 18px; width: auto; border: 1px solid rgba(0, 0, 0, .18); border-radius: 2px; }
  /* メニューが開いているとき、画面全体を透明なボタンで覆い、メニュー以外をタップすると閉じる */
  .nav-toggle:checked ~ .nav-backdrop { display: block; position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: -1; }
}
.to-top-bar { background: var(--white); border-top: 1px solid var(--line); }
.to-top-bar .wrap { text-align: right; }
.to-top-bar a { display: inline-block; padding: 10px 0; color: var(--blue-deep); font-size: 14px; font-weight: 600; text-decoration: none; }
.to-top-bar a:hover { color: var(--blue); text-decoration: underline; }

/* ---------- プライバシーポリシー / フッターのリンク ---------- */
.policy { max-width: 760px; margin: 0 auto; }
.policy > p { margin: 0 0 1em; }
.policy h2 { font-size: 20px; margin: 2em 0 .6em; color: var(--blue-deep); }
.policy .policy-mail { font-size: 20px; font-weight: 700; color: var(--blue-deep); word-break: break-all; }
.policy .policy-note { font-size: 13px; font-weight: 400; color: var(--text-sub); line-height: 1.8; }
.policy a { text-decoration: underline; }
.policy .policy-end { margin-top: 2.4em; padding-top: 1.2em; border-top: 1px solid var(--line); font-size: 15px; color: var(--text-sub); line-height: 1.9; }
.copyright p { margin: 0; }
