/* ============================================================
   home.css — トップページ専用（2026-10-13 全面改修）
   環水公園の写真ヒーロー＋「ご用件から選ぶ」パネル、
   新着→おすすめ→サービス→段階別→お困りごと→料金→書式→事務所→FAQ→インフォメーション。
   情報の並べ方は地域金融機関のトップ（用件別の入口を最初に出す型）を参考にした。
   共通の色・書体は skin-v2.css の :root を使い、ここでは新しい色を足さない。
   ============================================================ */

/* ---------- 共通：章の見出し ---------- */
.hs-head { text-align: center; margin: 0 auto clamp(28px, 4vw, 48px); max-width: 46em; }
.hs-head::before { content: ''; display: block; width: 48px; height: 3px; margin: 0 auto clamp(16px, 2vw, 22px); background: var(--moegi); border-radius: 2px; }
.hs-h { font-family: var(--disp); font-weight: 800; font-size: clamp(25px, 2.8vw, 36px); line-height: 1.45; letter-spacing: .04em; color: var(--iwa); }
.hs-h small { font-size: .55em; font-weight: 700; letter-spacing: .06em; color: var(--ink3); margin-left: .6em; white-space: nowrap; }
.hs-en { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: .08em; color: var(--moegi-t); }
.hs-en::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--moegi); box-shadow: 0 0 0 3px var(--moegi-l); }
.hs-lead { margin-top: 18px; font-size: 15px; line-height: 2; color: var(--ink2); }
.hs-head.is-left { text-align: left; margin-left: 0; max-width: none; }
.hs-head.is-left::before { margin-left: 0; width: 100%; height: 1px; background: linear-gradient(90deg, var(--moegi) 0 48px, var(--line) 48px); }
.hs-head.is-left .hs-lead { max-width: 48em; }
.home-sec { padding: clamp(64px, 8vw, 112px) 0; background: var(--shiro); }
.home-sec > .w, .home-notice > .w { max-width: 1200px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 48px); }
.home-more { display: flex; justify-content: center; margin-top: clamp(28px, 3.6vw, 40px); }
.btn-arrow { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 52px; padding: 0 22px 0 26px; border: 1px solid var(--line); border-radius: 10px; background: var(--shiro); color: var(--iwa); font-size: 14.5px; font-weight: 700; text-decoration: none; transition: border-color var(--tr), box-shadow var(--tr); }
.btn-arrow::after { content: ''; flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; background: var(--sugi) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8h7M8 5l3 3-3 3' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.btn-arrow:hover { border-color: var(--sugi); box-shadow: var(--sh-xs); }
.btn-arrow:focus-visible, .hp-link:focus-visible, .pk-card:focus-visible, .svc-tab:focus-visible, .help-links a:focus-visible, .nt-tab:focus-visible, .notice-list a:focus-visible { outline: 3px solid var(--moegi); outline-offset: 3px; }

/* ---------- 1. ヒーロー（写真＋ご用件パネル） ---------- */
#top.hero { position: relative; display: block; min-height: 0; height: auto; overflow: visible; max-width: calc(1680px + 2 * clamp(12px, 1.6vw, 24px)); margin-inline: auto; padding: calc(var(--nav-h) + 12px) clamp(12px, 1.6vw, 24px) 0; background: var(--yuki); }
#top .hero-stage { position: relative; display: block; flex: none; max-width: none; margin-inline: 0; height: clamp(520px, 44vw, 680px); border-radius: 20px; overflow: hidden; background: #2f72b4 !important; isolation: isolate; }
#top .hero-stage > .hero-media { position: absolute; inset: 0; z-index: 0; display: block; width: 100%; height: 100%; }
#top .hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 56%; }
/* 2026-10-14 本人指示：写真を暗くする処理はしない・見出しは中央。写真上部の濃い空に白文字で置く。 */
#top .hero-overlay { display: block; position: absolute; z-index: 2; left: clamp(32px, 4.4vw, 80px); top: 50%; right: auto; bottom: auto; transform: translateY(-50%); width: auto; max-width: calc(100% - clamp(320px, 26vw, 380px) - clamp(110px, 10vw, 170px)); min-height: 0; margin: 0; padding: 0; background: none; box-shadow: none; text-align: left; }
#top .hero-label { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 clamp(14px, 1.6vw, 20px); padding: 6px 16px; border-radius: 999px; background: rgba(255,255,255,.94); color: var(--sugi); font-size: 13px; font-weight: 700; letter-spacing: .1em; }
#top .hero-label::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--moegi); }
#top .hero-h1 { margin: 0; font-family: var(--disp); font-weight: 900; font-size: clamp(40px, 4.5vw, 74px); line-height: 1.55; letter-spacing: .08em; color: #fff; text-shadow: 0 0 2px rgba(6,40,80,.45), 0 2px 14px rgba(6,40,80,.5); text-wrap: initial; }
/* 2026-10-14 本人指示：写真を暗くしない・白い帯も付けない。白文字＋点線の下線。読みやすさは文字の輪郭の薄い影だけで補う */
#top .hero-line { display: inline; padding-bottom: .06em; border-bottom: 2px dashed rgba(255,255,255,.9); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
#top .hero-sub { display: block; max-width: 100%; margin-top: clamp(12px, 1.4vw, 18px); padding: 0; background: none; color: #fff; font-size: clamp(16px, 1.4vw, 21px); font-weight: 800; line-height: 1.8; letter-spacing: .06em; text-shadow: 0 0 2px rgba(6,40,80,.5), 0 1px 10px rgba(6,40,80,.55); }
#top .hero-line { white-space: nowrap; }

/* ご用件から選ぶ：PCは写真の右にカードとして重ねる。1099px以下は写真の下に置く（写真の角と重ねない） */
.hero-panel { position: absolute; z-index: 3; top: calc(50% + (var(--nav-h) + 12px) / 2); right: calc(clamp(12px, 1.6vw, 24px) + clamp(20px, 2.4vw, 40px)); transform: translateY(-50%); width: clamp(320px, 26vw, 380px); margin: 0; padding: clamp(18px, 1.6vw, 22px); border-radius: 16px; background: rgba(255,255,255,.96); border: 0; box-shadow: 0 20px 48px -20px rgba(11,42,31,.4); }
.hp-title { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 12px; font-size: 15px; font-weight: 800; letter-spacing: .08em; color: var(--sugi); }
.hp-title::before, .hp-title::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.hp-body { display: block; }
.hp-group + .hp-group { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.hp-group-h { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 13.5px; font-weight: 800; color: var(--iwa); }
.hp-group-h::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--moegi); box-shadow: 0 0 0 3px var(--moegi-l); }
.hp-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin: 0; padding: 0; list-style: none; }
.hp-link { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 5px; height: 100%; min-height: 78px; padding: 8px 4px 6px; border-radius: 10px; color: var(--sugi); font-size: 12.5px; font-weight: 700; line-height: 1.45; text-align: center; text-decoration: none; transition: background var(--tr); }
.hp-link:hover { background: var(--g50); }
.hp-link svg { flex: 0 0 auto; width: 30px; height: 30px; color: var(--sugi); }
.hp-cta { display: flex; gap: 8px; margin-top: 14px; }
.hp-cta .btn-primary { display: flex; flex: 1 1 auto; align-items: center; justify-content: center; min-height: 50px; padding: 0 16px; font-size: 14.5px; white-space: nowrap; }
.hp-tel { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--sugi); font-family: var(--mono); font-size: 13.5px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.hp-tel svg { width: 16px; height: 16px; }
.hp-tel:hover { border-color: var(--sugi); }

/* 768〜1099px：カードは写真の右に残し、見出しとカードを少し小さくして並べる（2026-10-14 本人指摘「幅によってカードが消える」） */
@media (max-width: 1099px) {
  #top .hero-stage { height: clamp(460px, 56vw, 580px); }
  #top .hero-overlay { left: clamp(24px, 3.2vw, 40px); max-width: calc(100% - 300px - clamp(64px, 7vw, 96px)); }
  #top .hero-h1 { font-size: clamp(28px, 3.9vw, 42px); }
  #top .hero-sub { font-size: 14.5px; }
  .hero-panel { width: 290px; padding: 16px 14px; right: calc(clamp(12px, 1.6vw, 24px) + 18px); }
  .hp-link { min-height: 70px; font-size: 11.5px; padding: 6px 2px; }
  .hp-link svg { width: 26px; height: 26px; }
  .hp-cta { flex-direction: column; }
  .hp-tel { width: 100%; }
}
/* 767px以下：カードは写真の下（写真の角とは重ねない） */
@media (max-width: 767px) {
  #top .hero-overlay { max-width: calc(100% - 64px); }
  .hero-panel { position: relative; top: auto; right: auto; transform: none; width: auto; max-width: 980px; margin: clamp(14px, 2vw, 20px) auto 0; padding: 18px 22px; background: var(--shiro); border: 1px solid var(--line2); box-shadow: var(--sh-xs); }
  .hp-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 24px; }
  .hp-groups { display: contents; }
  .hp-group + .hp-group { margin-top: 0; padding: 0 0 0 24px; border-top: 0; border-left: 1px dashed var(--line); }
  .hp-cta { grid-column: 1 / -1; flex-direction: row; justify-content: center; padding-top: 14px; border-top: 1px dashed var(--line); }
  .hp-cta .btn-primary { flex: 0 1 300px; }
  .hp-tel { width: auto; }
}
@media (max-width: 699px) {
  #top.hero { padding: calc(var(--nav-h) + 4px) 10px 0; }
  #top .hero-stage { height: clamp(380px, 104vw, 460px); border-radius: 16px; }
  #top .hero-media img { object-position: 50% 66%; }
  #top .hero-overlay { left: 18px; right: 18px; max-width: none; }
  #top .hero-label { font-size: 12px; padding: 6px 13px; margin-bottom: 12px; }
  #top .hero-h1 { font-size: clamp(21px, 7.2vw, 34px); letter-spacing: .03em; line-height: 1.55; }
  #top .hero-sub { font-size: 13.5px; line-height: 1.75; }
  .hero-panel { margin-top: 12px; padding: 16px 14px; }
  .hp-group + .hp-group { padding-left: 0; border-left: 0; }
  .hp-body { display: block; }
  .hp-group + .hp-group { margin-top: 12px; padding: 12px 0 0; border-left: 0; border-top: 1px dashed var(--line); }
  .hp-link { min-height: 76px; font-size: 12px; }
  .hp-cta { flex-direction: column; margin-top: 12px; padding: 12px 0 0; border-top: 0; }
  .hp-cta .btn-primary { flex: none; }
  .hp-tel { width: 100%; }
}

/* ---------- 2. 重要なお知らせ ---------- */
.home-notice { padding: clamp(28px, 4vw, 44px) 0 0; background: var(--yuki); }
.notice-box { display: grid; grid-template-columns: clamp(170px, 18vw, 220px) minmax(0, 1fr); border: 1.5px solid var(--sugi); border-radius: 14px; background: var(--shiro); overflow: hidden; }
.notice-label { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 22px 16px; border-right: 1px dashed var(--line); color: var(--sugi); font-size: 16px; font-weight: 800; letter-spacing: .06em; text-align: center; }
.notice-label span { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.notice-label svg { width: 26px; height: 26px; }
.notice-label a { font-size: 12.5px; font-weight: 700; color: var(--moegi-t); }
.notice-list { margin: 0; padding: clamp(14px, 1.8vw, 22px) clamp(18px, 2.6vw, 34px); list-style: none; }
.notice-list > div { display: grid; grid-template-columns: 6.6em minmax(0, 1fr); gap: 4px 16px; padding: 7px 0; font-size: 14px; line-height: 1.7; }
.notice-list > div + div { border-top: 1px solid var(--line2); }
.notice-list time { font-family: var(--mono); font-size: 13px; color: var(--ink3); padding-top: .1em; }
.notice-list a { color: var(--iwa); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.notice-list a::before { content: '›'; margin-right: .45em; color: var(--moegi-t); font-weight: 800; }
.notice-list a:hover { color: var(--sugi); text-decoration-color: var(--moegi); }
@media (max-width: 699px) {
  .notice-box { grid-template-columns: minmax(0, 1fr); }
  .notice-label { flex-direction: row; justify-content: space-between; padding: 12px 16px; border-right: 0; border-bottom: 1px dashed var(--line); }
  .notice-label span { flex-direction: row; text-align: left; gap: 8px; }
  .notice-label br { display: none; }
  .notice-list { padding: 8px 16px 10px; }
  .notice-list > div { grid-template-columns: minmax(0, 1fr); gap: 0; }
}

/* ---------- 3. おすすめ情報（横送り） ---------- */
#pickup { background: var(--yuki); }
.pk-rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 20px) / 4); gap: 20px; margin: 0; padding: 4px 2px 18px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.pk-rail::-webkit-scrollbar { display: none; }
.pk-item { scroll-snap-align: start; min-width: 0; }
.pk-card { display: flex; flex-direction: column; height: 100%; padding: 14px 14px 18px; border-radius: 14px; background: var(--shiro); color: var(--iwa); text-decoration: none; box-shadow: var(--sh-xs); transition: box-shadow var(--tr), transform var(--tr); }
.pk-card:hover { box-shadow: var(--sh-sm); transform: translateY(-2px); }
.pk-img { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: #fff; border: 1px solid var(--line2); }
.pk-img img { display: block; width: 100%; height: 100%; object-fit: contain; }
.pk-img.is-doc { background: var(--g50); }
.pk-img.is-doc img { object-fit: contain; padding: 10px; filter: drop-shadow(0 2px 6px rgba(11,42,31,.12)); }
.pk-tag { position: absolute; left: 10px; top: 10px; padding: 3px 10px; border-radius: 999px; background: var(--sugi); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; }
.pk-title { margin-top: 14px; font-size: 15.5px; font-weight: 800; line-height: 1.55; color: var(--iwa); }
.pk-desc { margin-top: 8px; font-size: 13.5px; line-height: 1.85; color: var(--ink3); flex: 1 1 auto; }
.pk-more { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; font-size: 13px; font-weight: 700; color: var(--sugi); text-decoration: underline; text-underline-offset: 4px; }
.pk-more::after { content: ''; width: 22px; height: 22px; border-radius: 50%; background: var(--sugi) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8h7M8 5l3 3-3 3' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.pk-bar { display: flex; align-items: center; gap: 18px; margin-top: 10px; }
.pk-progress { position: relative; flex: 1 1 auto; height: 3px; border-radius: 2px; background: var(--line); overflow: hidden; }
.pk-progress span { position: absolute; left: 0; top: 0; bottom: 0; width: 25%; border-radius: 2px; background: var(--sugi); transition: left .2s linear, width .2s linear; }
.pk-nav { display: flex; gap: 10px; }
.pk-arrow { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; background: var(--shiro); color: var(--sugi); cursor: pointer; transition: border-color var(--tr); }
.pk-arrow svg { width: 18px; height: 18px; }
.pk-arrow:hover:not(:disabled) { border-color: var(--sugi); }
.pk-arrow:disabled { opacity: .35; cursor: default; }
.pk-all { font-size: 13.5px; font-weight: 700; color: var(--sugi); white-space: nowrap; }
@media (max-width: 1099px) { .pk-rail { grid-auto-columns: calc((100% - 2 * 18px) / 3); gap: 18px; } }
@media (max-width: 767px) { .pk-rail { grid-auto-columns: min(78%, 300px); gap: 14px; } .pk-bar { gap: 12px; } .pk-all { display: none; } }

/* ---------- 4. サービス（タブ） ---------- */
#services { background: var(--shiro); padding-bottom: 0; }
.svc-tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; }
.svc-tab { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 8px 14px; border: 0; border-radius: 12px 12px 0 0; background: transparent; color: var(--iwa); font: inherit; font-size: 14px; font-weight: 800; line-height: 1.45; text-align: center; cursor: pointer; transition: background var(--tr); }
.svc-tab img { display: block; width: 100%; max-width: 150px; height: auto; aspect-ratio: 4 / 3; object-fit: contain; padding: 2px; border-radius: 10px; background: #fff; border: 1px solid var(--line2); }
.svc-tab[aria-selected="true"] img { border-color: var(--moegi); }
.svc-tab:hover { background: var(--g25); }
.svc-tab[aria-selected="true"] { background: var(--g50); color: var(--sugi); }
.svc-tab[aria-selected="true"] span { text-decoration: underline 3px var(--moegi); text-underline-offset: 6px; }
.svc-stage { margin-inline: calc(50% - 50vw); padding: clamp(28px, 3.6vw, 44px) 0 clamp(56px, 7vw, 96px); background: var(--g50); }
.svc-stage > .svc-panels { max-width: 1200px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 48px); }
.svc-panel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.svc-panel + .svc-panel { margin-top: 48px; }
.js-tabs .svc-panel + .svc-panel { margin-top: 0; }
.svc-panel[hidden] { display: none; }
.svc-p-h { font-family: var(--disp); font-size: clamp(20px, 2vw, 26px); font-weight: 800; line-height: 1.5; color: var(--sugi); }
.svc-p-num { display: block; margin-bottom: 6px; font-family: var(--mono); font-size: 12.5px; font-weight: 600; letter-spacing: .1em; color: var(--moegi-t); }
.svc-p-desc { margin-top: 12px; font-size: 15px; line-height: 2; color: var(--ink2); }
.svc-p-sub { margin: 0 0 12px; font-size: 14px; font-weight: 800; color: var(--iwa); }
.svc-p-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
#services .svc-p-links a { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 100%; min-height: 58px; padding: 10px 14px 10px 18px; border-radius: 10px; background: var(--shiro); color: var(--iwa); font-size: 14px; font-weight: 700; line-height: 1.55; text-decoration: none; box-shadow: var(--sh-xs); transition: box-shadow var(--tr); }
.svc-p-links a::after { content: ''; flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; background: var(--sugi) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8h7M8 5l3 3-3 3' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.svc-p-links a:hover { box-shadow: var(--sh-sm); }
.svc-p-links a:focus-visible { outline: 3px solid var(--moegi); outline-offset: 2px; }
.svc-p-actions { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-top: 18px; }
@media (max-width: 899px) {
  .svc-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .svc-tab { border-radius: 12px; }
  .svc-tab img { max-width: 96px; }
  .svc-stage { margin-top: 12px; }
  .svc-panel { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 559px) {
  .svc-tab { padding: 8px 4px 10px; font-size: 12.5px; }
  .svc-p-links { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 6. お困りですか？ ---------- */
#help { position: relative; padding-bottom: clamp(150px, 16vw, 230px); background: var(--g25); overflow: hidden; }
#help::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: clamp(120px, 14vw, 210px); pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 210' preserveAspectRatio='none'%3E%3Cpath d='M0 120 L90 92 L150 104 L230 58 L290 82 L360 40 L420 70 L470 52 L540 86 L610 46 L680 78 L760 30 L830 66 L900 50 L980 84 L1050 44 L1120 72 L1190 56 L1270 88 L1340 64 L1440 96 V210 H0Z' fill='%23d6e4ee'/%3E%3Cpath d='M260 66 L290 82 L320 72 Z M720 46 L760 30 L792 48 Z M1020 58 L1050 44 L1076 56Z' fill='%23fff' opacity='.9'/%3E%3Cpath d='M0 160 L120 140 L240 150 L380 126 L520 146 L660 132 L800 150 L960 128 L1100 146 L1260 132 L1440 150 V210 H0Z' fill='%23c9dccf'/%3E%3Cpath d='M0 188 L180 178 L360 186 L560 174 L760 186 L980 176 L1200 186 L1440 178 V210 H0Z' fill='%23EDF6F0'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat; }
#help > .w { position: relative; z-index: 1; }
.help-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.help-card { position: relative; display: flex; flex-direction: column; height: 100%; border-radius: 14px; background: rgba(255,255,255,.96); box-shadow: var(--sh-xs); overflow: hidden; }
.help-card::before { content: ''; position: absolute; top: 0; left: 50%; width: 36px; height: 3px; transform: translateX(-50%); background: var(--moegi); border-radius: 0 0 2px 2px; }
.help-top { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 24px 18px 20px; text-align: center; flex: 1 1 auto; }
.help-q { font-size: 16px; font-weight: 800; line-height: 1.7; color: var(--iwa); }
.help-q em { font-style: normal; color: var(--sugi); text-decoration: underline 3px var(--moegi); text-underline-offset: 5px; text-decoration-skip-ink: none; }
.help-top svg { width: 56px; height: 56px; color: var(--sugi); }
.help-links { margin: 0; padding: 14px 20px 16px; list-style: none; background: var(--yuki); border-top: 1px solid var(--line2); }
.help-links li + li { margin-top: 4px; }
#help .help-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 30px; font-size: 14px; font-weight: 700; color: var(--iwa); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.help-links a::before { content: '›'; color: var(--moegi-t); font-weight: 900; }
.help-links a:hover { color: var(--sugi); text-decoration-color: var(--moegi); }
@media (max-width: 899px) { .help-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
@media (max-width: 559px) {
  .help-grid { grid-template-columns: minmax(0, 1fr); }
  .help-top { flex-direction: row; justify-content: space-between; text-align: left; padding: 18px 16px 14px; }
  .help-top svg { flex: 0 0 44px; width: 44px; height: 44px; }
  .help-links { padding: 10px 16px 12px; }
}

/* ---------- 7. 料金（既存の本文を新しい見出しで） ---------- */
#pricing.price-sec { background: var(--yuki); padding: clamp(64px, 8vw, 112px) 0; }
#pricing .rv, #faq .rv, #tools .rv { opacity: 1; transform: none; }

/* ---------- 8. 書式 ---------- */
#tools.tool-sec { background: var(--shiro); padding: clamp(64px, 8vw, 112px) 0; }

/* ---------- 9. 事務所案内（地域と共に） ---------- */
#about.home-sec { background: var(--yuki); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.about-copy p { font-size: 15px; line-height: 2.05; color: var(--ink2); }
.about-copy p + p { margin-top: 14px; }
.about-mission { margin: 22px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.about-mission li { display: grid; grid-template-columns: 2.4em minmax(0, 1fr); gap: 4px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.about-mission b { grid-row: span 2; font-family: var(--mono); font-size: 13px; color: var(--moegi-t); padding-top: .2em; }
.about-mission strong { font-size: 15px; color: var(--sugi); }
.about-mission span { font-size: 13.5px; line-height: 1.85; color: var(--ink3); }
.about-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.about-facts li { padding: 5px 12px; border-radius: 999px; background: var(--shiro); border: 1px solid var(--line); font-size: 12.5px; font-weight: 700; color: var(--sugi); }
.about-addr { margin-top: 18px; font-style: normal; font-size: 13.5px; line-height: 1.9; color: var(--ink2); }
.about-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.about-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; align-content: start; }
.about-photos figure { margin: 0; border-radius: 14px; overflow: hidden; background: var(--shiro); border: 1px solid var(--line2); }
.about-photos figure:first-child { grid-column: 1 / -1; }
.about-photos img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.about-photos figure:first-child img { aspect-ratio: 16 / 9; }
.about-photos figcaption { padding: 10px 14px 12px; font-size: 12.5px; line-height: 1.6; color: var(--ink3); }
@media (max-width: 899px) {
  .about-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 10. FAQ ---------- */
#faq.faq-sec { background: var(--shiro); padding: clamp(64px, 8vw, 112px) 0; }
#faq .faq-layout { display: block; }
#faq .faq-wrap { max-width: 900px; margin-inline: auto; background: transparent; border-radius: 0; padding: 0; gap: 0; border-top: 1px solid var(--line); }
#faq .faq-item, #faq .faq-item.open { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
#faq .faq-btn { padding: 22px 0; }
#faq .faq-a-in { padding: 0 0 22px 28px; }
#faq .faq-item.open .faq-a { max-height: none; }

/* ---------- 11. インフォメーション（分野別タブ） ---------- */
#news.home-sec { background: var(--yuki); }
.news-grid { display: grid; grid-template-columns: clamp(170px, 18vw, 210px) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.nt-tabs { display: flex; flex-direction: column; gap: 8px; }
.nt-tab { min-height: 44px; padding: 8px 14px; border: 0; border-radius: 8px; background: var(--line2); color: var(--ink2); font: inherit; font-size: 14px; font-weight: 700; text-align: center; cursor: pointer; transition: background var(--tr), color var(--tr); }
.nt-tab:hover { background: var(--g100); }
.nt-tab[aria-selected="true"] { background: var(--sugi); color: #fff; }
.nt-panel[hidden] { display: none; }
.nt-panel + .nt-panel { margin-top: 28px; }
.js-tabs .nt-panel + .nt-panel { margin-top: 0; }
.nt-panel-h { margin: 0 0 6px; font-size: 14px; font-weight: 800; color: var(--sugi); }
.js-tabs .nt-panel-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nt-list { margin: 0; padding: 0; list-style: none; }
.nt-list > div { display: grid; grid-template-columns: 6.6em 7.4em minmax(0, 1fr); gap: 4px 14px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; line-height: 1.7; }
.nt-list time { font-family: var(--mono); font-size: 13px; color: var(--ink3); }
.nt-cat { justify-self: start; padding: 1px 8px; border-radius: 4px; background: var(--shiro); border: 1px solid var(--line); font-size: 11.5px; font-weight: 700; color: var(--sugi); white-space: nowrap; }
.nt-list a { color: var(--iwa); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.nt-list a::before { content: '›'; margin-right: .45em; color: var(--moegi-t); font-weight: 900; }
.nt-list a:hover { color: var(--sugi); text-decoration-color: var(--moegi); }
.nt-stats { margin-top: 18px; font-size: 13px; color: var(--ink3); }
.nt-stats b { color: var(--sugi); font-family: var(--mono); }
@media (max-width: 767px) {
  .news-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .nt-tabs { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .nt-tab { min-height: 40px; padding: 6px 12px; font-size: 13px; }
  .nt-list > div { grid-template-columns: auto minmax(0, 1fr); }
  .nt-list > div a { grid-column: 1 / -1; }
}

/* ---------- 12. 最終CTA ---------- */
#news + .final-sec::before { background: var(--yuki); }

@media (prefers-reduced-motion: reduce) {
  .pk-card, .pk-card:hover { transform: none; transition: none; }
}

/* 料金の顧問プラン3枚：641〜900pxは最後の1枚を中央に（旧 #home-hero-legibility から移設） */
@media (min-width: 641px) and (max-width: 900px) { .home-plan-card:last-child { grid-column: 1 / -1; width: calc(50% - 8px); justify-self: center; } }

/* ---------- 触り心地：押せる場所は軽く反応し、切り替えはふわっと。動きを減らす設定では止める ---------- */
@keyframes home-panel-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
/* 切り替えた時だけ動かす（読み込み直後は演出しない） */
.js-tabs.is-switched .svc-panel:not([hidden]), .js-tabs.is-switched .nt-panel:not([hidden]) { animation: home-panel-in .32s var(--ease) both; }
.hp-link svg, .help-top svg { transition: transform .25s var(--ease); }
.hp-link:hover svg { transform: translateY(-3px); }
.hp-link:active, .svc-tab:active, .nt-tab:active, .pk-arrow:active:not(:disabled), .btn-arrow:active { transform: scale(.97); }
.svc-tab, .nt-tab, .pk-arrow, .btn-arrow { transition: background var(--tr), color var(--tr), border-color var(--tr), box-shadow var(--tr), transform .15s ease; }
.svc-tab img { transition: border-color var(--tr), transform .25s var(--ease); }
.svc-tab:hover img { transform: translateY(-2px); }
.help-card { transition: box-shadow var(--tr), transform var(--tr); }
.help-card:hover { box-shadow: var(--sh-sm); transform: translateY(-2px); }
.help-card:hover .help-top svg { transform: scale(1.06); }
.btn-arrow::after, .pk-more::after, #services .svc-p-links a::after { transition: transform .25s var(--ease); }
.btn-arrow:hover::after, .pk-card:hover .pk-more::after, #services .svc-p-links a:hover::after { transform: translateX(3px); }
.pk-img img { transition: transform .4s var(--ease); }
.pk-card:hover .pk-img img { transform: scale(1.03); }
.about-photos img { transition: transform .5s var(--ease); }
.about-photos figure:hover img { transform: scale(1.03); }
.notice-list a, .nt-list a, #help .help-links a { transition: color var(--tr), text-decoration-color var(--tr); }
/* scroll-behavior:smooth は付けない。読み込み直後のスナップ調整が滑らかなスクロール扱いになり、ChromeがLCPを記録しなくなる（2026-10-13 CIで NO_LCP）。
   矢印の送りは home.js が behavior:'smooth' を指定して滑らかに動かす。 */
.pk-rail { -webkit-overflow-scrolling: touch; }
.pk-rail.is-dragging { scroll-snap-type: none; cursor: grabbing; }
.pk-rail.is-dragging .pk-card { pointer-events: none; }
@media (hover: none) {
  .help-card:hover, .pk-card:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .js-tabs.is-switched .svc-panel:not([hidden]), .js-tabs.is-switched .nt-panel:not([hidden]) { animation: none; }
  .hp-link:hover svg, .svc-tab:hover img, .help-card:hover, .help-card:hover .help-top svg,
  .pk-card:hover .pk-img img, .about-photos figure:hover img,
  .btn-arrow:hover::after, .pk-card:hover .pk-more::after, #services .svc-p-links a:hover::after { transform: none; }
}

/* ---------- 料金：顧問プランの下に、単発のご依頼を1項目1カードで並べる（2026-10-14 本人指示） ---------- */
#pricing .home-once { margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; border: 0; background: none; }
#pricing .home-once-h { position: relative; padding-left: 16px; font-size: clamp(19px, 1.9vw, 23px); }
#pricing .home-once-h::before { content: ''; position: absolute; left: 0; top: .2em; bottom: .2em; width: 4px; border-radius: 2px; background: var(--moegi); }
#pricing .home-once-sub { margin-top: 8px; }
#pricing .home-once-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
#pricing .home-once-grid li { display: flex; flex-direction: column; padding: 18px 20px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--shiro); box-shadow: var(--sh-xs); transition: box-shadow var(--tr), border-color var(--tr); }
#pricing .home-once-grid li:hover { border-color: var(--moegi); box-shadow: var(--sh-sm); }
#pricing .home-once-name { font-size: 15.5px; font-weight: 800; line-height: 1.5; color: var(--iwa); }
#pricing .home-once-price { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 15px; color: var(--sugi); }
#pricing .home-once-days { margin-top: 8px; font-size: 12.5px; line-height: 1.75; }
#pricing .home-once-actions { margin-top: 20px; }
@media (max-width: 899px) { #pricing .home-once-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559px) { #pricing .home-once-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; } #pricing .home-once-grid li { padding: 14px 16px 16px; } }

/* 2026-10-14 章の切り替わりが分かるよう、背景を白と淡い緑で交互にする */
#pickup { background: #fff; }
#services { background: var(--yuki); }
#help { background: #fff; }
#pricing.price-sec { background: var(--g50); }
#tools.tool-sec { background: #fff; }
#about.home-sec { background: var(--g50); }
#faq.faq-sec { background: #fff; }
#news.home-sec { background: var(--g50); }
#news + .final-sec::before { background: var(--g50); }
#pricing .home-once-grid li, #pricing .home-plan-card { background: #fff; }

/* ご用件カード：PCは大きく、広い画面では項目名を1行に（2026-10-15 本人指示「もっと大きく・改行を少なく」） */
@media (min-width: 1100px) {
  .hero-panel { width: clamp(380px, 33vw, 540px); padding: clamp(20px, 1.7vw, 28px); border-radius: 18px; }
  #top .hero-overlay { max-width: calc(100% - clamp(380px, 33vw, 540px) - clamp(110px, 9vw, 160px)); }
  .hp-title { margin-bottom: 14px; font-size: 16.5px; }
  .hp-group + .hp-group { margin-top: 14px; padding-top: 14px; }
  .hp-group-h { margin-bottom: 10px; font-size: 15px; }
  .hp-links { gap: 6px; }
  .hp-link { min-height: 92px; gap: 7px; padding: 10px 2px 8px; font-size: 13.5px; }
  .hp-link svg { width: 34px; height: 34px; }
  .hp-cta { margin-top: 16px; gap: 10px; }
  .hp-cta .btn-primary { min-height: 54px; font-size: 15.5px; }
  .hp-tel { min-height: 54px; padding: 0 18px; font-size: 15px; }
}
@media (min-width: 1440px) {
  .hp-br { display: none; }
  .hp-link { min-height: 80px; white-space: nowrap; }
}
/* WebKit が「ダウンロード」を語の途中で折るため、項目名は改行位置（br）だけで折る */
.hp-link { word-break: keep-all; overflow-wrap: normal; }
