/* 株式会社つなぐ-むすぶ 新コーポレートサイト 共通CSS(初期版) */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f5f1;
  --text: #2a2e2c;
  --text-sub: #5d625f;
  --line: #dedcd5;
  --accent: #4a6b52;      /* 落ち着いたグリーン(主なアクセント) */
  --accent-dark: #385040;
  --green-deep: #3e5d47;  /* ヘッダー・ファーストビュー・主力サービス用の濃いグリーン */
  --paper: #f7f6f2;       /* オフホワイト(写真配置領域などの下地) */
  --brand: #8DC21F;       /* ブランドの黄緑(細い線・小さな印のみ) */
  --max: 1080px;
  --narrow: 720px;
  --font: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", "MS PMincho", serif;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }

.wrap { width: 100%; max-width: 1536px; margin: 0 auto; padding: 0 clamp(20px, 4.5vw, 72px); }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: var(--narrow); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--text); color: #fff; padding: 8px 16px; z-index: 200;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid #ecebe6;
}
.header-inner {
  display: flex; align-items: flex-start; justify-content: space-between;
  height: 65px;
}
.brand { display: block; line-height: 0; margin-top: 13px; }
.brand img { height: 38px; width: auto; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 13px;
  background: none; border: 1px solid var(--line); border-radius: 0;
  padding: 6px 12px; font: inherit; font-size: 13px; color: var(--text); cursor: pointer;
}
.global-nav {
  display: none;
  position: absolute; top: 65px; left: 0; right: 0;
  background: #fff; border-bottom: 1px solid var(--line);
  padding: 8px 20px 20px;
}
.global-nav.is-open { display: block; }
.global-nav a {
  display: block; padding: 12px 0; font-size: 15px; text-decoration: none;
  border-bottom: 1px solid var(--bg-soft);
}
.global-nav a:hover { color: var(--green-deep); }
.global-nav .nav-contact {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 16px; padding: 14px 20px; border: 0;
  background: var(--green-deep); color: #fff; border-radius: 0; letter-spacing: 0.08em;
}
.global-nav .nav-contact:hover { color: #fff; background: #2f4a37; }

.arrow { flex: none; display: inline-block; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-block; padding: 14px 32px;
  background: var(--accent); color: #fff; text-decoration: none;
  font-size: 15px; letter-spacing: 0.06em;
  border: 1px solid var(--accent); border-radius: 2px;
  transition: background 0.2s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-outline { background: transparent; color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }

/* ---------- セクション共通 ---------- */
.section { padding: 80px 0; }
.section-soft { background: var(--bg-soft); }

.section-head { margin-bottom: 40px; }
.section-label {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; letter-spacing: 0.2em; color: var(--text-sub);
  margin-bottom: 12px;
}
.section-label::before {            /* ブランドの黄緑は、この短い線だけに使用 */
  content: ""; width: 24px; height: 2px; background: var(--brand);
}
.section-title { font-size: 24px; font-weight: 500; line-height: 1.6; }
.lead { color: var(--text-sub); margin-top: 16px; }

/* ---------- 01 ファーストビュー ---------- */
.hero { position: relative; background: var(--paper); overflow: hidden; }
.hero-copy { position: relative; z-index: 2; padding-top: 56px; padding-bottom: 40px; }
.hero-eyebrow {
  font-size: 12px; letter-spacing: 0.16em; color: var(--green-deep); line-height: 1.6;
}
.hero-title {
  margin-top: 22px;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(30px, 3.4vw, 56px); line-height: 1.42; letter-spacing: 0.06em;
  color: var(--text);
}
.hero-lead { margin-top: 28px; font-size: 14px; line-height: 2; letter-spacing: 0.06em; color: #3d413f; }
.hero-lead .nb { display: inline-block; }
.hero-lead::after { content: ""; display: block; width: 36px; height: 1px; background: var(--green-deep); margin-top: 22px; }
.hero-link {
  display: inline-flex; align-items: center; gap: 16px; margin-top: 22px;
  font-size: 13px; letter-spacing: 0.1em; text-decoration: none; color: var(--text);
  padding: 0 0 6px; border-bottom: 1px solid var(--text);
}
.hero-link:hover { color: var(--green-deep); border-color: var(--green-deep); }

/* 写真配置領域: 差し替えは .photo-slot の中身(img)だけでよい */
.photo-slot { position: relative; margin: 0; width: 100%; height: 100%; }
.photo-slot > img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* AI生成画像であることを示す小さな表記 */
.img-note { position: absolute; right: 8px; bottom: 8px; padding: 2px 8px; font-size: 11px; line-height: 1.5; letter-spacing: 0.04em; color: #fff; background: rgba(0,0,0,0.5); }
.photo-slot-empty {
  position: relative; width: 100%; height: 100%;
  background: #efede6;
  box-shadow: inset 0 0 0 1px #e3e0d7;
  display: flex; align-items: flex-end; justify-content: flex-end;
  padding: 12px 16px; color: #9b9a92; font-size: 11px; letter-spacing: 0.1em;
}

.hero-photo { aspect-ratio: 936 / 475; width: 100%; background: var(--paper); }
.hero-photo .photo-slot > img { object-position: 68% 40%; }  /* 人物の顔が切れないよう右寄りに固定 */

/* 画像の配置枠(写真が揃うまでの仮枠) */
.ph {
  position: relative; width: 100%;
  background: var(--bg-soft); border: 1px dashed var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-sub); font-size: 12px; letter-spacing: 0.08em;
}
.ph-wide { aspect-ratio: 16 / 7; }
.ph-card { aspect-ratio: 4 / 3; }

/* ---------- 02 私たちの主力サービス ---------- */
.main-services { background: #f9f9f7; padding: 56px 0 72px; }
.ms-label {
  display: flex; align-items: center; gap: 14px;
  font-size: 12px; letter-spacing: 0.2em; color: var(--green-deep);
}
.ms-label::before { content: ""; width: 28px; height: 1px; background: var(--green-deep); }
.ms-title {
  margin-top: 18px; font-size: 26px; font-weight: 500; letter-spacing: 0.08em; line-height: 1.5;
}
.ms-sub { margin-top: 10px; font-size: 14px; letter-spacing: 0.08em; color: var(--text-sub); line-height: 1.8; }
.ms-desc { margin-top: 24px; font-size: 14px; line-height: 2; color: #3d413f; letter-spacing: 0.04em; }

.ms-list { margin-top: 40px; display: grid; gap: 48px; }
.ms-item { display: grid; gap: 24px; }
.ms-photo { aspect-ratio: 327 / 267; height: auto; overflow: hidden; background: var(--paper); }
/* 写真は元の比率(約1.73:1)を枠(327:267)に収めるため左右を切り取る。人物の顔が残る位置に固定 */
.ms-photo > .ms-img-system { object-position: 30% 50%; }
.ms-photo > .ms-img-support { object-position: 90% 50%; }
.ms-num {
  display: flex; align-items: center; gap: 16px;
  font-size: 22px; letter-spacing: 0.08em; color: var(--green-deep); line-height: 1;
}
.ms-num::after { content: ""; flex: 1; height: 1px; background: #cfcdc5; }
.ms-name { margin-top: 18px; font-size: 20px; font-weight: 500; letter-spacing: 0.08em; line-height: 1.6; }
.ms-text { margin-top: 14px; font-size: 13.5px; line-height: 2; color: var(--text-sub); letter-spacing: 0.04em; }
.ms-price { margin-top: 18px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; }
.ms-price-label { font-size: 12px; font-weight: 500; letter-spacing: 0.06em; }
.ms-price-num { font-size: 30px; letter-spacing: 0.02em; line-height: 1.3; }
.ms-price-num small { font-size: 12px; letter-spacing: 0.04em; margin-left: 2px; }
.ms-price-free { font-size: 13px; color: #3d413f; }
.ms-note { margin-top: 6px; font-size: 11px; color: #7b7f7c; line-height: 1.7; }
.ms-link {
  display: inline-flex; align-items: center; gap: 28px; margin-top: 24px;
  padding: 12px 22px; font-size: 13px; letter-spacing: 0.1em; text-decoration: none; color: var(--text);
  border: 1px solid #8e928f; border-radius: 0;
  transition: background 0.2s, color 0.2s;
}
.ms-link:hover { background: var(--green-deep); border-color: var(--green-deep); color: #fff; }

/* ---------- 03 お困りごと ---------- */
.trouble-list { border-top: 1px solid var(--line); }
.trouble-list li { padding: 18px 0; border-bottom: 1px solid var(--line); }

/* ---------- 04 考え方 ---------- */
.philosophy-q { font-size: 24px; font-weight: 500; line-height: 1.6; }
.principles { margin-top: 32px; }
.principles li {
  padding: 18px 0 18px 20px; border-left: 2px solid var(--accent);
  margin-bottom: 16px; font-size: 17px;
}

/* ---------- 05 サービス・参考価格 ---------- */
.price-box { border: 1px solid var(--line); background: var(--bg); padding: 32px 24px; }
.price-box h3 { font-size: 18px; font-weight: 500; }
.price { margin-top: 16px; font-size: 14px; color: var(--text-sub); }
.price strong { display: block; font-size: 32px; font-weight: 500; color: var(--text); letter-spacing: 0.02em; line-height: 1.4; }
.price strong small { font-size: 16px; font-weight: 400; }
.notes { margin-top: 16px; font-size: 13px; color: var(--text-sub); line-height: 1.8; }
.notes li::before { content: "※"; margin-right: 4px; }
.price-box + .price-box { margin-top: 16px; }

/* ---------- 06 流れ ---------- */
.flow { counter-reset: step; }
.flow li {
  counter-increment: step; position: relative;
  padding: 0 0 28px 56px; border-left: 1px solid var(--line); margin-left: 16px;
}
.flow li:last-child { padding-bottom: 0; border-left-color: transparent; }
.flow li::before {
  content: counter(step); position: absolute; left: -17px; top: -2px;
  width: 32px; height: 32px; line-height: 30px; text-align: center;
  background: var(--bg-soft); border: 1px solid var(--accent); color: var(--accent);
  font-size: 13px; border-radius: 50%;
}
.flow h3 { font-size: 17px; font-weight: 500; line-height: 1.6; }

/* ---------- 07 実績 ---------- */
.works { display: grid; gap: 32px; }
.work { background: var(--bg-soft); border-top: 2px solid var(--accent); padding: 28px 28px 32px; }
.work h3 { font-size: 18px; font-weight: 500; line-height: 1.6; }
.work p { color: var(--text-sub); margin-top: 8px; font-size: 15px; }
.tag {
  display: inline-block; margin-top: 12px; font-size: 12px;
  color: var(--accent-dark); border: 1px solid var(--accent); padding: 2px 10px; border-radius: 2px;
}

/* ---------- 08 その他 ---------- */
.others { border-top: 1px solid var(--line); }
.others li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.others h3 { font-size: 17px; font-weight: 500; }
.others p { font-size: 14px; color: var(--text-sub); margin-top: 4px; }
.others a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 09 会社紹介・お問い合わせ ---------- */
.company-info { display: grid; gap: 0; border-top: 1px solid var(--line); }
.company-info div { display: grid; padding: 14px 0; border-bottom: 1px solid var(--line); gap: 2px; }
.company-info dt { font-size: 13px; color: var(--text-sub); }
.company-info dd a { text-underline-offset: 3px; }
.contact-box { margin-top: 48px; text-align: center; }
.contact-box p { margin-bottom: 24px; color: var(--text-sub); }

/* ---------- フッター ---------- */
.site-footer { background: var(--text); color: #d9dbd8; padding: 48px 0 32px; font-size: 14px; }
.footer-inner { display: grid; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { height: 32px; width: 32px; background: #fff; padding: 2px; border-radius: 2px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.copyright { margin-top: 32px; font-size: 12px; color: #9a9f9b; }

/* ---------- PC ---------- */
@media (min-width: 768px) {
  .container { padding: 0 48px; }
  .section { padding: 112px 0; }
  .section-title { font-size: 30px; }
  .nav-toggle { display: none; }
  .global-nav {
    display: flex; align-items: center; gap: clamp(20px, 2.3vw, 34px);
    position: static; border: 0; padding: 0; background: none; height: 65px;
  }
  .global-nav a { border: 0; padding: 0; font-size: 13px; letter-spacing: 0.08em; }
  .global-nav .nav-contact {
    align-self: flex-start; height: 56px; margin: 0 0 0 clamp(4px, 1vw, 16px);
    padding: 0 28px; gap: 16px; font-size: 13px;
  }

  /* 01 ファーストビュー: 左右2分割 */
  .hero { min-height: clamp(440px, 31vw, 640px); display: flex; align-items: stretch; }
  .hero-copy { max-width: none; width: 100%; margin: 0; padding-top: clamp(44px, 3.9vw, 64px); padding-bottom: 32px; padding-left: calc(max(0px, (100vw - 1536px) / 2) + clamp(20px, 4.5vw, 72px)); }  /* ヘッダーのロゴ位置に揃える */
  .hero-title { margin-top: clamp(18px, 1.9vw, 30px); }
  .hero-lead { margin-top: 24px; }
  .hero-lead { font-size: clamp(14px, 1.05vw, 16px); }
  .hero-eyebrow { font-size: clamp(12px, 0.85vw, 13px); }
  .hero-photo {
    position: absolute; top: 0; right: 0; bottom: 0; width: 61%; height: 100%; aspect-ratio: auto; z-index: 1;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.55) 9%, #000 24%);
            mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.55) 9%, #000 24%);
  }

  /* 02 私たちの主力サービス */
  .main-services { padding: 64px 0 96px; }
  .ms-title { font-size: clamp(26px, 2.1vw, 32px); }
  .ms-sub { font-size: 15px; }
  .ms-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }
  .ms-desc { margin: 0; font-size: 14.5px; padding-bottom: 4px; }
  .ms-desc span { display: block; }
  .ms-list { margin-top: 56px; grid-template-columns: 1fr 1fr; gap: clamp(32px, 4vw, 64px); }
  .ms-item { grid-template-columns: 46% 1fr; gap: clamp(20px, 2.6vw, 40px); align-items: start; }
  .ms-text { font-size: 13px; }
  .ms-price-num { font-size: clamp(26px, 2vw, 32px); }
  .trouble-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .philosophy-q { font-size: 34px; }
  .works { grid-template-columns: 1fr 1fr; gap: 48px; }
  .company-info div { grid-template-columns: 180px 1fr; }
  .footer-inner { grid-template-columns: 1fr auto; align-items: center; }

  /* 流れ: 横並び */
  .flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
  .flow li { padding: 40px 0 0; border-left: 0; margin-left: 0; border-top: 1px solid var(--line); }
  .flow li:last-child { border-top-color: var(--line); }
  .flow li::before { left: 0; top: -16px; }
}

/* ===== トップページ再構成(2026-10) ===== */
/* ページ内リンクで移動したとき、固定ヘッダーに見出しが隠れないようにする */
#trouble, #philosophy, #services, #works, #contact, #company, #flow { scroll-margin-top: 72px; }

/* 日本語の折り返しを整える(1文字だけの行を避ける) */
.issue-card h3, .issue-card p, .philosophy-text, .sol-name, .sol-body dd, .sol-note, .case-feature-text, .contact-text, .hero-lead p, .top-page .lead { text-wrap: pretty; line-break: strict; }
.top-page .section-title, .philosophy-q { text-wrap: balance; }

.nb { display: inline-block; }

/* ① ファーストビュー: 導線 */
.hero-title { font-size: clamp(28px, 3.1vw, 52px); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 26px; }
.hero-actions .hero-link { margin-top: 0; }
.hero-actions .btn { padding: 13px 28px; font-size: 14px; letter-spacing: 0.08em; }
.hero-lead::after { display: none; }

/* ② 経営課題 */
.issue-list { display: grid; gap: 14px; }
.issue-card { background: var(--bg); border: 1px solid var(--line); border-left: 3px solid var(--accent); padding: 22px 22px 24px; }
.issue-no { font-size: 13px; letter-spacing: 0.1em; color: var(--accent); line-height: 1; }
.issue-card h3 { margin-top: 10px; font-size: 16px; font-weight: 500; line-height: 1.6; }
.issue-card p:not(.issue-no) { margin-top: 8px; font-size: 14px; line-height: 1.95; color: var(--text-sub); }
.issue-more { margin-top: 24px; font-size: 14px; color: var(--text-sub); }

/* ③ 考え方 */
.philosophy-grid { display: grid; gap: 32px; }
.philosophy-q { font-size: 20px; font-weight: 500; line-height: 1.6; font-family: var(--serif); }
.philosophy-text { margin-top: 12px; font-size: 15px; line-height: 2; color: var(--text-sub); }
.philosophy-text:first-of-type { margin-top: 20px; }
.philosophy-photo { aspect-ratio: 16 / 10; height: auto; overflow: hidden; background: var(--paper); }
.philosophy-photo > img { object-position: 30% 50%; }

/* ④ 3つの解決方法 */
.sol-list { display: grid; gap: 16px; }
.sol-card { background: var(--bg-soft); border-top: 2px solid var(--accent); padding: 26px 24px 28px; }
.sol-no { font-size: 13px; letter-spacing: 0.1em; color: var(--accent); line-height: 1; }
.sol-name { margin-top: 10px; font-size: 18px; font-weight: 500; line-height: 1.7; }
.sol-body { margin-top: 16px; display: grid; gap: 14px; }
.sol-body dt { font-size: 12px; letter-spacing: 0.14em; color: var(--accent-dark); }
.sol-body dd { margin: 2px 0 0; font-size: 14.5px; line-height: 1.95; }
.sol-note { margin-top: 14px; font-size: 12.5px; line-height: 1.85; color: var(--text-sub); }
.sol-note a { text-decoration: underline; text-underline-offset: 3px; }
.flow-block { margin-top: 56px; }
.flow-title { font-size: 13px; letter-spacing: 0.16em; color: var(--text-sub); margin-bottom: 22px; }

/* ⑤ 改善事例 */
.case-feature { background: #fff; border: 1px solid var(--line); border-top: 2px solid var(--accent); padding: 28px 24px 30px; }
.case-feature-tag { font-size: 12px; letter-spacing: 0.14em; color: var(--accent-dark); }
.case-feature-text { margin-top: 12px; font-size: 15px; line-height: 2; }
.case-mini { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 6px; margin: 18px 0 24px; }
.case-mini li { padding: 6px 14px; font-size: 13px; background: var(--bg-soft); border: 1px solid var(--line); }
.case-mini li + li::before { content: none; }

/* ⑥ 相談 */
.contact-grid { display: grid; gap: 32px; }
.contact-text { margin: 18px 0 0; font-size: 15px; line-height: 2; color: var(--text-sub); }
.contact-notes { margin: 22px 0 28px; padding: 0; list-style: none; font-size: 14px; line-height: 1.9; color: var(--text-sub); }
.contact-notes li { position: relative; padding-left: 1.2em; }
.contact-notes li::before { content: "・"; position: absolute; left: 0; }
.contact-photo { aspect-ratio: 16 / 10; height: auto; overflow: hidden; background: var(--paper); }
.contact-photo > img { object-position: 90% 50%; }
.top-page #contact .section-title { font-size: 22px; }
.company-section { padding-top: 64px; padding-bottom: 72px; }

@media (min-width: 768px) {
  .issue-list { grid-template-columns: 1fr 1fr; gap: 18px; }
  .issue-card { padding: 26px 28px 28px; }
  .issue-card h3 { font-size: 19px; }
  .philosophy-grid { grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
  .philosophy-q { font-size: 26px; }
  .sol-list { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .sol-card { padding: 30px 26px 32px; }
  .case-feature { padding: 40px 44px 42px; }
  .case-feature-text { font-size: 16px; max-width: 44em; }
  .contact-grid { grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
  .top-page #contact .section-title { font-size: 28px; }
    .hero-lead { max-width: 31em; }
}

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

/* TOPページ: フッターのロゴのリンク化と、ページ先頭へ戻るボタン */
.top-page a.footer-brand { text-decoration: none; }
.top-page a.footer-brand:hover span { text-decoration: underline; text-underline-offset: 3px; }
.top-page .to-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 90;
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; padding: 0;
  background: var(--accent); color: #fff; font: inherit; font-size: 22px; line-height: 1; cursor: pointer;
  border: 1px solid var(--accent); border-radius: 2px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility .2s, background .2s;
}
.top-page .to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.top-page .to-top:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.top-page .to-top:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
@media (min-width: 768px) {
  .top-page .to-top { right: 32px; width: 52px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .top-page .to-top { transition: none; transform: none; }
}

/* TOPページ: サービス01の「詳細はこちら」リンク */
.top-page .sol-more { margin-top: 18px; font-size: 14px; line-height: 1.6; }
.top-page .sol-more a { display: inline-block; padding: 8px 0; color: var(--accent-dark); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
.top-page .sol-more a:hover { color: var(--accent); }

/* TOPページ「こんな状況はありませんか？」: 左にテキスト、右にイラストの4カード */
.top-page .issue-card { display: grid; gap: 18px; padding: 22px 20px 20px; }
.top-page .issue-img { display: block; width: 100%; height: auto; }
.top-page .issue-message { margin-top: 40px; text-align: center; }
.top-page #trouble { padding-bottom: 56px; }
.top-page .issue-message-lead { font-family: var(--serif); font-size: 16px; letter-spacing: 0; font-weight: 500; line-height: 1.7; color: var(--text); }
.top-page .issue-message-text { margin-top: 12px; font-size: 15px; line-height: 2; color: var(--text-sub); }
@media (min-width: 640px) {
  .top-page #trouble { padding-bottom: 64px; }
  .top-page .issue-img { align-self: center; }
  .top-page .issue-list { grid-template-columns: 1fr; gap: 16px; }
  .top-page .issue-card { grid-template-columns: minmax(0, 1fr) minmax(0, 44%); align-items: center; gap: 24px; padding: 24px 26px; }
  .top-page .issue-message-lead { font-size: 22px; }
  .top-page .issue-message-text { font-size: 16px; }
}
@media (min-width: 1024px) {
  .top-page .issue-list { grid-template-columns: 1fr 1fr; gap: 20px; }
  /* 番号と見出しはカード幅いっぱいに使い、説明文(左)とイラスト(右)を下段に並べる */
  .top-page .issue-card { grid-template-columns: minmax(0, 1fr) minmax(0, 52%); align-items: start; column-gap: 14px; row-gap: 0; padding: 24px 20px 24px 24px; }
  .top-page .issue-body { display: contents; }
  .top-page .issue-no { grid-column: 1 / -1; grid-row: 1; }
  .top-page .issue-card h3 { grid-column: 1 / -1; grid-row: 2; font-size: 18px; }
  .top-page .issue-body > p:not(.issue-no) { grid-column: 1; grid-row: 3; margin-top: 12px; }
  .top-page .issue-img { grid-column: 2; grid-row: 3; margin-top: 4px; }
  .top-page .issue-message { margin-top: 48px; }
  .top-page .issue-message-lead { font-size: 26px; }
}

/* 「こんな状況はありませんか？」: 説明文の折り返しを文節単位に(未対応ブラウザでは従来どおり) */
.top-page .issue-body h3, .top-page .issue-body p { word-break: auto-phrase; }

/* 共通ヘッダー・フッター: タブレット幅(768〜1023px)でのメニューの文字折れ、フッターの社名の縦長表示を防ぐ */
.footer-brand span { white-space: nowrap; }
@media (min-width: 768px) and (max-width: 1023px) {
  .global-nav { gap: 16px; }
  .global-nav a { white-space: nowrap; letter-spacing: 0.04em; }
  .global-nav .nav-contact { margin-left: 0; padding: 0 18px; gap: 10px; }
  .footer-inner { grid-template-columns: 1fr; align-items: start; gap: 20px; }
}
