/* ==========================================================================
   NEO行政書士事務所 — ホーム（和モダン・大阪の墨絵）専用スタイル
   適用範囲：<body class="home-v2"> のホームのみ。他ページには読み込まれない。
   既存の style.css（共通トークン・ヘッダー・フッター・フォーム等）の上に重ねる。
   朱色（--shu）は、見出しの縦線・ボタン・数字などに限って使う。
   ========================================================================== */

.home-v2 {
  --shu: #B03A2E;
  --shu-dark: #8E2C22;
  --gold: #A58E67;
  --paper: #EEE5D4;
  --paper-grain-hero: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='640'%3E%3Cfilter id='f' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.02 0.14' numOctaves='4' seed='5'/%3E%3CfeColorMatrix values='0 0 0 0 0.52 0 0 0 0 0.43 0 0 0 0 0.30 0 0 0 0.85 -0.34'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
}

/* ---------- 共通の見出し部品 ---------- */
.hm-eyebrow-s,
.home-v2 .section-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.26em;
  color: var(--charcoal);
  text-transform: uppercase;
}
.hm-eyebrow-s::before,
.home-v2 .section-eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--shu); }
.hm-h2,
.home-v2 .section-title-editorial {
  padding-left: 20px;
  border-left: 3px solid var(--shu);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.5;
  color: var(--ink);
}
.hm-sub-h { display: block; margin-top: 6px; font-family: var(--font-jp-body); font-size: 13px; font-weight: 400; letter-spacing: 0.08em; color: var(--charcoal); }
.hm-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: end; margin-bottom: 44px; }
.hm-head-lead { max-width: 34em; font-size: 14px; line-height: 2; color: var(--charcoal); }
.hm-arrow { font-family: var(--font-en); }
.hm-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--ink);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.hm-more:hover { color: var(--shu); border-color: var(--shu); }

/* ---------- ヘッダー ---------- */
.home-v2 .header { padding: 20px 0; }
.home-v2 .header.is-scrolled { padding: 12px 0; background: rgba(244, 238, 226, 0.96); }
.home-v2 .brand-logo { width: 46px; height: 46px; }
.home-v2 .brand-mark { font-size: 21px; letter-spacing: 0.05em; }
.home-v2 .brand-sub { font-size: 10px; }
.home-v2 .nav-links { gap: 26px; }
.home-v2 .nav-links a { display: flex; flex-direction: column; align-items: center; gap: 3px; line-height: 1.2; padding: 2px 0 4px; }
.home-v2 .nav-links .en { font-family: var(--font-en); font-size: 11px; font-weight: 600; letter-spacing: 0.16em; }
.home-v2 .nav-links .ja { font-family: var(--font-jp-body); font-size: 10.5px; font-weight: 400; letter-spacing: 0.06em; color: var(--charcoal); }
.home-v2 .nav-links a::after { background: var(--shu); }
@media (max-width: 1360px) { .home-v2 .header-phone { display: none; } }
.home-v2 .mobile-drawer a small { display: block; margin-top: 2px; font-size: 10px; font-weight: 600; letter-spacing: 0.18em; color: rgba(244, 238, 226, 0.5); }
.home-v2 .mobile-drawer a { font-family: var(--font-jp-heading); font-size: 19px; }

/* ---------- ファーストビュー ---------- */
.home-v2 .hm-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(640px, 54vw, 840px);
  padding: 0;
  overflow: hidden;
  background: #F5EEE2;
  color: var(--ink);
}
.home-v2 .hm-hero-inner { position: relative; z-index: 3; width: 100%; max-width: var(--container); padding-top: 146px; padding-bottom: 84px; }
.hm-hero-inner > * { max-width: 580px; }
.hm-hero-inner > .hm-h1 { max-width: 660px; }
.hm-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
  font-family: var(--font-jp-heading);
  font-size: 14.5px;
  letter-spacing: 0.14em;
  color: var(--ink);
}
.hm-eyebrow::before, .hm-eyebrow::after { content: ""; width: 30px; height: 1px; background: var(--shu); }
.home-v2 .hm-h1 {
  margin: 0 0 30px;
  padding: 2px 0 2px 26px;
  border-left: 3px solid var(--shu);
  font-size: clamp(34px, 4.3vw, 58px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.04em;
}
.home-v2 .hm-lead { max-width: 30em; margin: 0 0 36px; font-size: 15px; line-height: 2; color: var(--ink); }
.hm-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 30px; }
.home-v2 .hm-btn {
  min-width: 270px;
  justify-content: space-between;
  padding: 18px 26px;
  background: var(--shu);
  border-color: var(--shu);
  color: #fff;
  font-family: var(--font-jp-heading);
  font-size: 15px;
  letter-spacing: 0.1em;
}
.home-v2 .hm-btn:hover { background: var(--shu-dark); border-color: var(--shu-dark); }
.hm-tel { flex: none; display: flex; align-items: center; gap: 12px; color: var(--ink); white-space: nowrap; }
.hm-tel svg { flex: none; width: 26px; height: 26px; }
.hm-tel-body { display: block; line-height: 1.45; }
.hm-tel small { display: block; font-size: 11.5px; color: var(--charcoal); }
.hm-tel strong { display: block; font-family: var(--font-jp-heading); font-size: 25px; font-weight: 600; letter-spacing: 0.04em; }

.hm-hero-art {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
.hm-hero-art img {
  position: absolute;
  left: 9.5%;
  top: -3%;
  width: 100%;
  height: 106%;
  object-fit: cover;
  object-position: 100% 62%;
  will-change: transform;
}
/* テキスト列（コンテナの左端から約500px）は和紙色で覆い、その先でやわらかく絵に移る。上部はヘッダーの文字用に薄く覆う */
.hm-hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(245, 238, 226, 0.92) 0, rgba(245, 238, 226, 0) 120px),
    linear-gradient(to right, #F5EEE2 0, #F5EEE2 calc(max(24px, 50% - 590px) + 500px), rgba(245, 238, 226, 0) calc(max(24px, 50% - 590px) + 760px));
}
.hm-hero-vert {
  position: absolute;
  z-index: 2;
  top: 128px;
  right: max(12px, 0.9vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  pointer-events: none;
}
.hm-hero-vert p {
  margin: 0;
  writing-mode: vertical-rl;
  font-family: var(--font-jp-heading);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.4em;
  line-height: 2.1;
  color: var(--ink);
}
.hm-seal {
  display: block;
  padding: 3px 2px 2px;
  background: var(--shu);
  color: #fff;
  font-family: var(--font-en);
  font-size: 9px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.08em;
  opacity: 0.9;
}

@media (prefers-reduced-motion: no-preference) {
  .hm-hero-inner > * { animation: hm-in 0.9s var(--ease) both; }
  .hm-hero-inner > *:nth-child(2) { animation-delay: 0.08s; }
  .hm-hero-inner > *:nth-child(3) { animation-delay: 0.16s; }
  .hm-hero-inner > *:nth-child(4) { animation-delay: 0.24s; }
  .hm-hero-art img { animation: hm-fade 1.4s var(--ease) 0.1s both; }
  .hm-hero-vert { animation: hm-fade 1.2s var(--ease) 0.5s both; }
}
@keyframes hm-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes hm-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- クイック導線 ---------- */
.hm-quick { position: relative; z-index: 3; background: #F8F4EC; border-bottom: 1px solid var(--line); }
.hm-quick-inner { display: grid; grid-template-columns: 1.1fr repeat(3, minmax(0, 1fr)); }
.hm-quick-lead { align-self: center; margin: 26px 0; padding: 28px 24px 28px 20px; border-left: 2px solid var(--shu); }
.hm-quick-title { font-family: var(--font-jp-heading); font-size: 18px; font-weight: 600; color: var(--ink); }
.hm-quick-sub { margin: 6px 0 14px; font-size: 12px; line-height: 1.7; color: var(--charcoal); }
.hm-quick-item { display: flex; gap: 18px; padding: 30px 24px; border-left: 1px solid var(--line); }
.hm-quick-ic { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: #EDE4D2; color: var(--ink); }
.hm-quick-ic svg { width: 26px; height: 26px; }
.hm-quick-name { font-family: var(--font-jp-heading); font-size: 19px; font-weight: 600; color: var(--ink); }
.hm-quick-name .n { margin-right: 10px; font-weight: 400; font-size: 20px; color: var(--shu); }
.hm-quick-desc { margin: 6px 0 14px; font-size: 12.5px; line-height: 1.7; color: var(--charcoal); }
.hm-sublink { display: block; margin-top: 10px; font-size: 12px; color: var(--charcoal); text-decoration: underline; text-underline-offset: 3px; }
.hm-sublink:hover { color: var(--shu); }

/* ---------- 選ばれる4つの理由 ---------- */
.home-v2 .hm-reasons { padding: 100px 0 96px; background: var(--kinari); }
.hm-reason-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.hm-reason { padding: 34px 26px 6px; border-left: 1px solid var(--line); }
.hm-reason:first-child { padding-left: 0; border-left: 0; }
.hm-reason-top { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.hm-reason .num { font-family: var(--font-jp-heading); font-size: 42px; font-weight: 400; line-height: 1; color: rgba(165, 142, 103, 0.55); }
.hm-reason .ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #EAE0CB; color: var(--ink); }
.hm-reason .ic svg { width: 22px; height: 22px; }
.hm-reason h3 { margin-bottom: 10px; font-size: 17px; line-height: 1.6; color: var(--ink); }
.hm-reason p { font-size: 13px; line-height: 1.95; color: var(--charcoal); }

/* ---------- 対応サービス ---------- */
.home-v2 .hm-service { padding: 100px 0 96px; }
.hm-svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.hm-svc {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
}
/* 画像（墨絵）の上に、HTMLの文字を重ねる。画像の文字は消してあり、見出しはすべてテキスト */
.hm-svc-media { position: relative; container-type: inline-size; background: #F5EEE2; }
.hm-svc-media > img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; }
.hm-svc-cap { position: absolute; left: 8.5%; top: 4.5%; right: 8%; pointer-events: none; }
.hm-svc-num {
  display: block;
  margin-bottom: 3.2cqw;
  font-family: var(--font-jp-heading);
  font-style: italic;
  font-weight: 400;
  font-size: 34px;
  font-size: clamp(24px, 8.4cqw, 46px);
  line-height: 1;
  color: #A58E67;
}
.hm-svc-capbox { padding-left: 4.4cqw; border-left: 2px solid var(--shu); max-width: 66cqw; }
.hm-svc-name { margin: 0; font-size: 26px; font-size: clamp(20px, 6.6cqw, 38px); line-height: 1.35; font-weight: 500; letter-spacing: 0.06em; color: var(--ink); }
.hm-svc-tag { margin: 1.6cqw 0 0; font-size: 12px; font-size: clamp(10.5px, 3.2cqw, 16px); line-height: 1.65; white-space: nowrap; letter-spacing: 0.04em; color: var(--charcoal); }
.hm-svc-body { display: flex; flex: 1; flex-direction: column; padding: 22px 26px 24px; }
.hm-svc-desc { margin-bottom: 14px; font-size: 13px; line-height: 1.95; color: var(--charcoal); }
.hm-svc-price { margin-bottom: 16px; }
.hm-svc-price span { font-family: var(--font-jp-heading); font-size: 20px; font-weight: 600; color: var(--ink); }
.hm-svc-links { margin-top: auto; border-top: 1px solid var(--line); }
.hm-svc-links li { border-bottom: 1px solid var(--line); }
.hm-svc-links a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 2px; font-size: 12.5px; line-height: 1.6; color: var(--ink); }
.hm-svc-links a:hover { color: var(--shu); }
.hm-other { margin-top: 52px; padding-top: 30px; border-top: 1px solid var(--ink); }
.hm-other-title { margin-bottom: 8px; font-family: var(--font-jp-heading); font-size: 18px; font-weight: 600; color: var(--ink); }
.hm-other-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hm-other-list li { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; min-width: 0; padding: 22px 24px; border-left: 1px solid var(--line); }
.hm-other-list li > div { min-width: 0; }
.hm-other-list li:first-child { padding-left: 0; border-left: 0; }
.hm-other-list h3 { margin-bottom: 6px; font-size: 16px; color: var(--ink); }
.hm-other-list p { margin-bottom: 8px; font-size: 12.5px; line-height: 1.85; color: var(--charcoal); }
.hm-other-list a { font-size: 12.5px; text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }
.hm-other-list .price { font-family: var(--font-jp-heading); font-size: 16px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.home-v2 .hm-other .service-secondary { margin-top: 26px; }

/* ---------- 既存セクション（対応事例・ブログ・代表紹介・FAQ・お問い合わせ）の調整 ---------- */
.home-v2 .hm-works { background: var(--kinari); }
.home-v2 .hm-journal { padding-top: 100px; }
.home-v2 .work-num, .home-v2 .journal-cat { color: var(--shu); }
.home-v2 .work-tag { color: var(--charcoal); }
.home-v2 .people-role { color: var(--shu); }
.home-v2 .faq-question .q-mark { color: var(--shu); }
.home-v2 .hm-faq { background: var(--kinari) !important; }
.home-v2 .hm-people { background: var(--washi); }
.home-v2 .hm-contact { background: var(--washi); }
.home-v2 .section-lead-editorial, .home-v2 .contact-lead-editorial { margin-left: 23px; word-break: normal; overflow-wrap: anywhere; line-break: strict; }
.home-v2 .hm-contact .section-title-editorial { font-size: clamp(22px, 2.15vw, 27px); }

.hm-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 36px; }
.hm-feature { display: block; overflow: hidden; background: rgba(255, 255, 255, 0.7); border: 1px solid var(--line); transition: transform 0.4s var(--ease), border-color 0.3s; }
.hm-feature:hover { transform: translateY(-3px); border-color: var(--ink); }
.hm-feature { display: flex; flex-direction: column; }
.hm-feature img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #F5EEE2; }
.hm-feature-body { display: flex; flex: 1; flex-direction: column; }
.hm-feature-body .hm-more { margin-top: auto; align-self: flex-start; }
.hm-feature-body { padding: 18px 20px 20px; }
.hm-feature-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; font-family: var(--font-en); font-size: 11px; letter-spacing: 0.08em; }
.hm-feature-meta .c { padding: 2px 8px; background: #EDE4D2; color: var(--charcoal); font-family: var(--font-jp-body); }
.hm-feature-title { margin-bottom: 14px; font-size: 14px; font-weight: 600; line-height: 1.75; color: var(--ink); }

/* ---------- 事務所について ---------- */
.home-v2 .hm-about { padding: 100px 0; background: var(--kinari); }
.hm-about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.hm-about .hm-h2 { margin-bottom: 28px; }
.hm-about .about-body { max-width: 600px; margin-bottom: 26px; }
.hm-about-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(160deg, #FDFBF6, #F7F2E6);
  border: 1px solid var(--line);
  color: var(--ink);
}
/* ロゴの白い地を、パネルの地色になじませる */
.hm-about-panel img { display: block; width: min(56%, 240px); height: auto; mix-blend-mode: multiply; }
.hm-about-panel .n { margin-top: 2px; font-family: var(--font-jp-heading); font-size: 21px; font-weight: 600; letter-spacing: 0.1em; }
.hm-about-panel .s { font-size: 11px; letter-spacing: 0.16em; color: var(--brass); font-weight: 600; }
.hm-about-panel::after { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(27, 26, 23, 0.1); pointer-events: none; }

/* ---------- 最終CTA ---------- */
.hm-final { position: relative; overflow: hidden; padding: 84px 0 260px; background: linear-gradient(180deg, #1D1B18, #141311); color: #EDE4D0; }
.hm-final-inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.5fr) auto auto; align-items: center; gap: 40px; }
.hm-final-inner > * { min-width: 0; }
.hm-final-copy { padding-left: 24px; border-left: 3px solid var(--shu); }
.hm-final-lead { margin-bottom: 10px; font-size: 12px; letter-spacing: 0.2em; color: rgba(237, 228, 208, 0.7); }
.hm-final-title { font-size: clamp(24px, 3vw, 36px); font-weight: 500; line-height: 1.65; color: #F4EEE2; word-break: normal; overflow-wrap: anywhere; line-break: strict; }
.hm-tel--dark, .hm-tel--dark small { color: #F4EEE2; }
.hm-tel--dark small { opacity: 0.72; }
.hm-final-sub { position: relative; z-index: 2; margin-top: 28px; font-size: 12.5px; color: rgba(237, 228, 208, 0.6); }
.hm-final-sub a { text-decoration: underline; text-underline-offset: 3px; }
.hm-final-skyline { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; width: 100%; height: auto; pointer-events: none; }

/* ---------- タブレット ---------- */
@media (max-width: 1100px) {
  .hm-reason-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-reason:nth-child(odd) { padding-left: 0; border-left: 0; }
  .hm-reason:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 34px; }
  .hm-svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-quick-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hm-quick-lead { grid-column: 1 / -1; margin: 22px 0 6px; }
  .hm-quick-item:nth-of-type(1) { border-left: 0; padding-left: 0; }
  .hm-final-inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .home-v2 .hm-hero { display: flex; flex-direction: column; align-items: stretch; min-height: 0; }
  .home-v2 .hm-hero-inner { order: 1; padding-top: 118px; padding-bottom: 10px; }
  .hm-hero-art { position: relative; inset: auto; order: 2; width: 100%; aspect-ratio: 16 / 9; margin-top: 6px; }
  .hm-hero-art img { left: 0; top: 0; height: 100%; object-position: 50% 50%; }
  .hm-hero-art::after { display: none; }
  .hm-hero-vert { display: none; }
}
@media (max-width: 900px) {
  .hm-head { grid-template-columns: 1fr; gap: 18px; }
  .hm-about-grid { grid-template-columns: 1fr; gap: 36px; }
  .hm-other-list { grid-template-columns: 1fr; }
  .hm-other-list li, .hm-other-list li:first-child { padding: 18px 0; border-left: 0; border-top: 1px solid var(--line); }
}
/* ---------- スマートフォン ---------- */
@media (max-width: 640px) {
  .home-v2 .hm-hero-inner { padding-top: 104px; }
  .home-v2 .hm-h1 { padding-left: 18px; font-size: clamp(30px, 8.6vw, 38px); }
  .hm-eyebrow { font-size: 13px; letter-spacing: 0.1em; }
  .hm-eyebrow::after { display: none; }
  .home-v2 .hm-lead { font-size: 14.5px; line-height: 1.95; }
  .hm-cta { flex-direction: column; align-items: stretch; gap: 18px; }
  .home-v2 .hm-btn { min-width: 0; width: 100%; }
  .hm-tel { justify-content: center; }
  .hm-hero-art { aspect-ratio: 6 / 5; }
  .hm-hero-art img { object-position: 82% 62%; }
  .hm-quick-inner { grid-template-columns: 1fr; }
  .hm-quick-item, .hm-quick-item:nth-of-type(1) { padding: 22px 0; border-left: 0; border-top: 1px solid var(--line); }
  .hm-reasons .hm-reason-list { grid-template-columns: 1fr; }
  .hm-reason, .hm-reason:nth-child(odd), .hm-reason:nth-child(n+3) { padding: 26px 0 8px; margin-top: 0; border-left: 0; border-top: 1px solid var(--line); }
  .hm-reason:first-child { border-top: 0; }
  .home-v2 .hm-reasons, .home-v2 .hm-service, .home-v2 .hm-about { padding: 72px 0; }
  .hm-svc-grid { grid-template-columns: 1fr; }
  .hm-feature-grid { grid-template-columns: 1fr; }
  .home-v2 .section-lead-editorial, .home-v2 .contact-lead-editorial { margin-left: 0; }
  .hm-final { padding: 64px 0 120px; }
}

/* スクロールナビはファーストビューでは非表示（縦書きコピーとの重なりを避ける） */
.home-v2 .scroll-nav { transition: opacity 0.4s var(--ease); }
.home-v2.at-top .scroll-nav { opacity: 0; pointer-events: none; }

/* 長い文が横にはみ出さないよう、本文系は文字単位でも折り返せるようにする */
.hm-reason p, .hm-svc-desc, .hm-head-lead, .hm-quick-desc, .hm-quick-sub, .hm-other-list p, .hm-feature-title, .hm-about .about-body p, .hm-final-sub {
  word-break: normal;
  overflow-wrap: anywhere;
  line-break: strict;
}
@media (max-width: 640px) {
  .hm-reasons .hm-reason-list, .hm-svc-grid, .hm-feature-grid, .hm-quick-inner { grid-template-columns: minmax(0, 1fr); }
}

/* ページ内リンクで固定ヘッダーに見出しが隠れないように */
.home-v2 section[id], .home-v2 article[id] { scroll-margin-top: 84px; }

/* ---------- 代表写真：やや小さく ---------- */
.home-v2 .hm-people .people-grid { grid-template-columns: 300px minmax(0, 1fr); gap: 56px; }
.home-v2 .hm-people .people-photo { max-width: 300px; }
@media (max-width: 820px) {
  .home-v2 .hm-people .people-grid { grid-template-columns: 1fr; gap: 32px; }
  .home-v2 .hm-people .people-photo { max-width: 240px; }
}
@media (max-width: 640px) {
  .hm-final { padding: 64px 0 150px; }
}

/* 代表紹介の社印：本来のロゴ */
.home-v2 .hm-seal-logo { display: block; width: 34px; height: 34px; object-fit: contain; mix-blend-mode: multiply; }

@media (max-width: 640px) {
  /* スマホでは背景のスカイラインを拡大し、大阪城と通天閣が小さくなりすぎないようにする */
  .hm-final-skyline { left: -16%; right: auto; width: 150%; max-width: none; }
}

/* ---------- スマホ(Safari含む)で横にはみ出さないための安全策 ---------- */
.home-v2 main, .home-v2 section { max-width: 100%; }
.home-v2 h1, .home-v2 h2, .home-v2 h3, .home-v2 .hm-btn, .home-v2 .hm-tel strong { overflow-wrap: anywhere; word-break: normal; line-break: strict; }
.home-v2 .hm-btn { white-space: normal; }
.home-v2 .hm-tel { white-space: normal; }
@media (max-width: 640px) {
  .hm-final-inner { gap: 24px; }
  .hm-final-copy { padding-left: 18px; }
  .hm-final-title { font-size: clamp(22px, 6.4vw, 28px); }
  .hm-tel strong { font-size: clamp(21px, 6.6vw, 25px); }
  .home-v2 .hm-final .hm-btn { width: 100%; max-width: 100%; }
}
