/* ==========================================================
   2026-10-14 導線改善（トップの入口・読みやすさ・フォーム・固定バー）
   既存の home.css / subpage2.css の「あとから」読み込み、上書きする。
   元に戻すときは、functions.php の 'tsuruta-ux' の1行を外すだけでよい。
   ========================================================== */

:root {
  --accent: #f05020;       /* 飾り・枠線・大きな文字・アイコン専用 */
  --accent-text: #c93d0e;  /* 通常サイズの文字・白文字を載せる背景（白との比 約5.05:1） */
  --label-gray: #767676;   /* 小さな補助ラベル（白との比 約4.5:1） */
}

/* ----- キーボード操作のフォーカス表示 ----- */
:focus-visible { outline: 3px solid #222; outline-offset: 2px; }

/* ----- スキップリンク ----- */
.skip-link {
  position: absolute; left: 8px; top: -80px; z-index: 10000;
  background: #222; color: #fff; padding: 10px 16px; border-radius: 4px;
  font-size: 14px; text-decoration: none;
}
.skip-link:focus { top: 8px; outline-color: #fff; }
#main-content:focus { outline: none; }

/* ----- トップのヒーロー：連絡ボタン ----- */
.hero-sub  { font-size: 16px; opacity: 1; }
.hero-desc { font-size: 16px; opacity: 1; line-height: 1.9; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 10px; }
.hero-cta-btn {
  display: inline-flex; flex-direction: column; justify-content: center;
  min-height: 56px; padding: 12px 24px; border-radius: 6px; box-sizing: border-box;
  text-decoration: none; line-height: 1.4; color: #fff;
}
.hero-cta-tel  { background: var(--accent-text); border: 2px solid var(--accent-text); }
.hero-cta-tel:hover { background: #a8330a; border-color: #a8330a; color: #fff; }
.hero-cta-mail { background: rgba(255, 255, 255, 0.12); border: 2px solid #fff; align-items: center; }
.hero-cta-mail:hover { background: #fff; color: #222; }
.hero-cta-main { font-size: 18px; font-weight: 700; }
.hero-cta-sub  { font-size: 13px; }
.hero-cta-note { margin: 0; font-size: 14px; }
.hero-cta-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.tel-link { color: var(--accent-text); font-weight: 700; text-decoration: underline; }

@media (max-width: 900px) {
  .section-hero { height: auto; }
  .hero-bg { height: auto; min-height: 520px; display: flex; align-items: flex-end; }
  .hero-content { position: relative; left: auto; bottom: auto; max-width: none; width: 100%; box-sizing: border-box; padding: 96px 24px 36px; z-index: 1; }
  .hero-cta { flex-direction: column; }
  .hero-cta-btn { width: 100%; }
}

/* ----- ヘッダーの電話・メールのアイコン（文字つき） ----- */
.navbar-tel, .navbar-mail {
  flex-direction: column; gap: 2px; width: auto; min-width: 56px; height: 48px; padding: 0 6px;
  box-sizing: border-box; text-decoration: none;
}
.navbar-tel svg, .navbar-mail svg { width: 18px; height: 18px; flex-shrink: 0; }
.navbar-action-label { font-size: 12px; font-weight: 700; line-height: 1; }
.navbar-mail { border-color: var(--accent-text); color: var(--accent-text); }
.navbar-mail:hover { background: var(--accent-text); color: #fff; }
.navbar-menu li a.active, .navbar-drawer-menu li a.active { color: var(--accent-text); }
.navbar-hamburger { min-width: 44px; min-height: 44px; }

/* ----- トップ：お悩みから探す ----- */
.section-concerns { background: #faf7f2; }
.section-concerns .section-inner { padding-bottom: 48px; }
.concerns-lead { margin: 0 0 24px; font-size: 16px; color: #444; }
.concerns-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.concern-card {
  background: #fff; border: 1px solid #e3ddd3; border-radius: 8px; padding: 0;
  display: flex; flex-direction: column;
}
.concern-main {
  display: flex; flex-direction: column; gap: 8px; flex: 1;
  padding: 18px 20px; min-height: 96px; text-decoration: none; color: #222;
}
.concern-main:hover { background: #fdf3ee; }
.concern-text { font-size: 17px; font-weight: 700; line-height: 1.5; }
.concern-name { font-size: 14px; color: var(--accent-text); font-weight: 700; }
.concern-sub {
  display: block; padding: 10px 20px; border-top: 1px solid #eee; font-size: 14px;
  color: var(--accent-text); text-decoration: underline; min-height: 24px;
}
@media (max-width: 900px) { .concerns-grid { grid-template-columns: 1fr; } }
@media (min-width: 601px) and (max-width: 900px) { .concerns-grid { grid-template-columns: repeat(2, 1fr); } }

/* ----- 業務ページ：本文・ラベル・開閉 ----- */
.subpage-layout :is(.sub-section-desc, .sub-section-note, .icon-list li, .faq-q p, .faq-a p, .flow-content-desc, .doc-list li, .fee-list li, .alert-notice, .sub-hero-desc) {
  font-size: 16px; line-height: 1.8;
}
.sub-hero-label, .sub-section-label, .section-label {
  font-size: 13px; color: var(--label-gray);
}
.sub-hero-badge, .required, .service-badge { background: var(--accent-text); }
.check-label a, .privacy-section a { color: var(--accent-text); }
details.sub-section > summary { min-height: 48px; }
details.sub-section > summary:focus-visible { outline: 3px solid #222; outline-offset: -3px; }

/* ----- 業務ページ末尾：関連する相談 ----- */
.related-consult { padding: 40px 0 8px; }
.related-title { font-size: 20px; margin: 0 0 16px; }
.related-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.related-list a {
  display: inline-flex; align-items: center; min-height: 48px; padding: 10px 20px;
  border: 2px solid var(--accent-text); border-radius: 6px; color: var(--accent-text);
  font-size: 16px; font-weight: 700; text-decoration: none; background: #fff;
}
.related-list a:hover { background: var(--accent-text); color: #fff; }

/* ----- フォーム ----- */
.form-hint { margin: 0 0 14px; font-size: 14px; color: #444; }
.form-group input[type="text"], .form-group input[type="email"], .form-group input[type="tel"],
.form-group select, .form-group textarea { font-size: 16px; min-height: 44px; }
.form-group textarea { min-height: 120px; }
.btn-submit { background: var(--accent-text) !important; min-height: 48px; font-size: 16px; }
.form-result { font-size: 16px; line-height: 1.7; }
.form-result.success, .form-result.error { padding: 14px 16px; border-radius: 6px; margin-top: 16px; }
.form-result.success { background: #eef7ee; border: 1px solid #5a9a5a; color: #1f4d1f; }
.form-result.error   { background: #fdf0ee; border: 1px solid #c0392b; color: #8a1f13; }
.form-result:focus { outline: none; }

/* ----- スマホ固定の連絡バー（スマホ幅のみ。.sticky-contact-bar ごと削除すれば元に戻る） ----- */
.sticky-contact-bar { display: none; }
@media (max-width: 900px) {
  .sticky-contact-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    box-sizing: border-box; min-height: 56px; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: #fff; border-top: 1px solid #ddd; box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
  }
  .sticky-contact-bar a {
    flex: 1; display: flex; align-items: center; justify-content: center; min-height: 44px;
    border-radius: 6px; font-size: 16px; font-weight: 700; text-decoration: none; box-sizing: border-box;
  }
  .sticky-contact-tel  { background: var(--accent-text); color: #fff; border: 2px solid var(--accent-text); }
  .sticky-contact-mail { background: #fff; color: var(--accent-text); border: 2px solid var(--accent-text); }
  .sticky-contact-bar.is-hidden { display: none; }
  /* 本文の最下部がバーに隠れないように */
  body { padding-bottom: 72px; }
}
@media print { .sticky-contact-bar { display: none !important; } }

/* ----- トップ・共通部品の本文サイズ（15px前後 → 16px、補助は13px以上） ----- */
.about-text p, .consult-content p, .service-body ul li, .service-body > p,
.info-table td, .activity-lead, .contact-lead, .contact-mail-desc,
.form-group label, .check-label { font-size: 16px; line-height: 1.8; }
.photo-caption, .service-note, .activity-place, .footer-tel, .footer-nav a,
.contact-tel-hours, .contact-tel-label { font-size: 14px; }
.footer-copy { font-size: 13px; }
.required { font-size: 12px; }
.contact-tel-number { font-size: inherit; }

/* ----- 業務ページ上部の「電話相談／メール相談」バー：スマホで電話番号が折り返さないように ----- */
.sub-cta-item[href^="tel:"] .sub-cta-value { white-space: nowrap; }
@media (max-width: 600px) {
  .sub-cta-item { padding: 18px 16px; gap: 12px; }
  .sub-cta-value { font-size: 17px; }
}

/* ==========================================================
   2026-10-19 費用の表（債務整理・相続登記）
   ========================================================== */
.fee-point {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  margin: 0 0 20px; padding: 14px 18px; border: 2px solid var(--accent); border-radius: 8px;
  background: #fff6f2; font-weight: 700; line-height: 1.6; color: #222;
}
.fee-point-badge {
  background: var(--accent-text); color: #fff; padding: 4px 12px; border-radius: 4px; white-space: nowrap;
}
.fee-table-wrap { margin: 8px 0 20px; }
.fee-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.fee-table th, .fee-table td {
  padding: 14px 12px; border-bottom: 1px solid #e5e5e5; text-align: left; vertical-align: top; line-height: 1.7;
}
.fee-table thead th { background: #f7f3ee; font-size: 14px; color: #444; }
.fee-table tbody th { width: 26%; font-weight: 700; color: #222; }
.fee-cell-price { width: 24%; }
.fee-price { display: block; font-size: 18px; font-weight: 700; color: #222; }
.fee-excl { display: block; font-size: 13px; color: #555; }
.fee-notes { margin: 0; padding-left: 1.2em; font-size: 14px; color: #333; }
.fee-notes li { margin: 0 0 4px; list-style: disc; display: list-item; padding: 0; border: 0; font-weight: 400; }
.fee-foot { margin: 12px 0 24px; font-size: 14px; line-height: 1.8; color: #444; }

@media (max-width: 640px) {
  .fee-table, .fee-table tbody, .fee-table tr, .fee-table th, .fee-table td { display: block; width: auto; }
  .fee-table thead { position: absolute; left: -9999px; }
  .fee-table tr { border: 1px solid #e5e5e5; border-radius: 8px; margin: 0 0 14px; padding: 4px 0; background: #fff; }
  .fee-table th, .fee-table td { border-bottom: 0; padding: 8px 14px; }
  .fee-table tbody th { width: auto; padding-bottom: 0; font-size: 17px; }
  .fee-price { font-size: 20px; }
}
.fee-table caption.screen-reader-text { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ===== 2026-10-19 トップの費用案内・費用欄へのリンク ===== */
details.sub-section[id] { scroll-margin-top: 90px; }

/* ===== 2026-10-19 トップ「業務内容」各分野の下の費用の行 ===== */
.service-item--fee { border-bottom: 0; padding-bottom: 16px; }
.service-fee {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px;
  margin: 0; padding: 0 0 40px 252px; border-bottom: 1px solid #eee;
  font-size: 14px; line-height: 1.6; color: #444;
}
.service-fee-label {
  display: inline-block; padding: 2px 10px; border: 1px solid #cfc8bc; border-radius: 4px;
  background: #f7f3ed; font-size: 13px; font-weight: 700; color: #333;
}
.service-fee-link { display: inline-block; padding: 10px 0; color: var(--accent-text); font-weight: 700; text-decoration: underline; }
.service-fee-text { color: #555; }
@media (max-width: 900px) and (min-width: 601px) { .service-fee { padding-left: 180px; } }
@media (max-width: 600px) { .service-fee { padding-left: 0; padding-bottom: 32px; } }

/* ===== 2026-10-19 代表者の肩書きを1行に収める（列の幅に合わせて文字の大きさを調整） ===== */
.about-photo { container-type: inline-size; }
.photo-caption-title { display: inline-block; white-space: nowrap; letter-spacing: 0; font-size: 13px; }
@supports (font-size: 1cqw) {
  .photo-caption-title { font-size: min(14px, 4.2cqw); }
}

/* ----- 2026-10-26 土日・時間外対応の強調（鶴田さん依頼：目立つ所に大きく） ----- */
.flex-hours-note {
  margin: 20px 0 0; padding: 14px 20px; border-radius: 6px;
  background: #fff; color: #222; border-left: 6px solid var(--accent);
  font-size: 22px; font-weight: 700; line-height: 1.6;
}
.flex-hours-note span { display: inline-block; }
.contact-flex-note { margin: 0 0 28px; background: #fff7f3; border: 2px solid var(--accent); border-left-width: 6px; }
@media (max-width: 600px) {
  .flex-hours-note { font-size: 18px; padding: 12px 16px; }
}
