@charset "UTF-8";
/* ============================================================
   v46_header.css — ヘッダー改修（2026-08-21 社長指示）
   ①言語切替を「国旗＋コード」のプルダウンに ②スマホはハンバーガーメニュー
   全ページ共通。既存 style.css の後に読み込む（後勝ち前提）
   ============================================================ */

/* ── 言語プルダウン ─────────────────────────────── */
.langdd { position: relative; }
.langdd__btn {
  display: inline-flex; align-items: center; gap: .45em;
  padding: .38em .75em;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: var(--text-xs); font-weight: 600; letter-spacing: .08em;
  color: var(--navy); cursor: pointer;
}
.langdd__btn:hover { border-color: var(--gold); color: var(--gold-deep); }
.flagicon { width: 17px; height: 12px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.10); flex: none; }
.langdd__caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; margin-left: .1em; }
.langdd__menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  margin: 0; padding: 6px; list-style: none;
  background: var(--white);
  border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 10px 30px rgba(16,29,53,.14);
  min-width: 10.5em; z-index: 80;
}
.langdd__menu li { margin: 0; }
.langdd__menu a {
  display: flex; align-items: center; gap: .55em;
  padding: .55em .7em; border-radius: 7px;
  font-size: var(--text-sm); color: var(--ink); white-space: nowrap;
}
.langdd__menu a:hover { background: color-mix(in oklab, var(--gold-pale) 45%, var(--white)); color: var(--gold-deep); }
.langdd__menu a[aria-current="page"] { color: var(--gold-deep); font-weight: 700; }

/* ── ハンバーガー（PCでは出さない） ───────────────── */
.top__menubtn { display: none; }

@media (max-width: 52rem) {
  .top__inner { flex-wrap: nowrap; gap: var(--space-sm); }
  .top__brand { margin-right: auto; }

  .top__menubtn {
    display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px;
    width: 44px; height: 44px; flex: none;
    background: var(--white); border: 1px solid var(--line); border-radius: 9px; cursor: pointer;
  }
  .top__menubtn span { display: block; width: 18px; height: 2px; background: var(--navy); border-radius: 1px; transition: transform .18s var(--ease-out), opacity .12s; }
  .top.is-open .top__menubtn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .top.is-open .top__menubtn span:nth-child(2) { opacity: 0; }
  .top.is-open .top__menubtn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  /* ナビは開閉パネルに（既存の order:3; width:100% 展開を打ち消す） */
  .top__nav { order: 0; width: auto; margin-left: 0; }
  .top__nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 30px rgba(16,29,53,.12);
    padding: .4rem 1.2rem 1.1rem;
  }
  .top.is-open .top__nav { display: block; }
  .top__nav ul { flex-direction: column; column-gap: 0; row-gap: 0; }
  .top__nav li + li { border-top: 1px solid color-mix(in oklab, var(--navy) 10%, transparent); }
  .top__nav a { display: block; padding: .95em .2em; font-size: var(--text-sm); border-bottom: 0; }
}


/* ── 変な位置での改行の禁止（2026-08-21 社長指示・文節折り返し）────────
   「業種を問わ/ず」のような語中の折り返しを防ぐ。auto-phrase は Chrome系のみ
   有効で、他ブラウザでは通常の折り返しに自然に戻る（無害） */
.stat__label,
.stat__num,
.section__title,
.section__lede,
.top__nav a,
.pricemap__desc,
.phead__lede,
h1, h2, h3,
.page-cs .fee-table tbody td:first-child,
.page-cs .tbl tbody th[scope="rowgroup"],
.card__title,
.wnav__q,
.form__opt span,
.cta h2 {
  word-break: auto-phrase;
}
/* 数字＋単位（20年・150社以上・3言語・無料）はまとまりで扱う */
.stat__num { white-space: nowrap; }

/* ── スマホの縦圧縮（2026-08-21 社長指示: できるだけ縦長にしない）──────── */
@media (max-width: 40rem) {
  /* ヒーロー: 余白を締める */
  .hero__inner { padding-block: clamp(2.2rem, 8vw, 3.2rem) !important; }
  /* 実績リング: 縦積みの主犯。リング装飾をやめて2×2の密なグリッドに */
  .stats { padding-block: 1.6rem; }
  .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem .8rem; }
  .stat__ring { padding: .5rem .2rem; }
  .stat__num { font-size: 1.75rem; }
  .stat__label { font-size: .75rem; line-height: 1.5; }
  /* セクションの上下余白を1段詰める */
  .section { padding-block: 2.4rem; }
  .section__head { margin-bottom: 1.4rem; }
}


/* ── お問い合わせ: 前置きを最小化して即フォームへ（2026-08-21 社長指示）──── */
/* .sub .phead + .section（3クラス）に勝つため同じ構造で書く */
.page-cs .phead + .contactpage { padding-top: 1.4rem; }
.page-cs .quickcall { margin: 0 auto 1.2rem; }  /* 2026-08-21: 0指定が中央寄せを打ち消していた→左右auto */
@media (max-width: 40rem) {
  .page-cs .phead + .contactpage { padding-top: .9rem; }
}

/* ── ヘッダーの枠線を外す（会計会社らしく静かに）──────────────────── */
.langdd__btn { border: 0; background: none; padding: .38em .3em; }
.langdd__btn:hover { border: 0; }
.top__menubtn { border: 0; background: none; }


/* ══ company-setup 3点改修（2026-08-21 社長指摘）══════════════════════ */

/* 🔴 ③ バグ修正: 書類一覧の紺帯にカーソルを当てると背景が消え、白文字が白地に乗って
   読めなくなっていた（.tbl tbody tr:hover が :has(th[scope=rowgroup]) で除外される
   一方、doclist の帯は tr.grp の td なので除外条件に当たらなかった）。
   行ホバーの色替え自体をやめる＝当てても何も変わらない（社長判断） */
.page-cs .tbl tbody tr:hover,
.page-cs .doclist tbody tr:hover { background: none; }
/* 子要素（セル）の背景には触れない。触ると帯そのものが透明になる */

/* ① 比較表: 日本＝ふつうの事実／タイ＝注意して読む欄、と地の色で分ける */
.page-cs .cmp thead .cmp__jp,
.page-cs .cmp thead .cmp__th { display: table-cell; }
.page-cs .cmp thead .cmp__jp .flagicon,
.page-cs .cmp thead .cmp__th .flagicon { width: 19px; height: 13px; margin-right: .5em; vertical-align: -1px; }
/* 2026-08-25: タイ列のクリーム地は背景の青グレーと温度が合わず撤去（国旗で列の区別は足りる） */
.page-cs .cmp tbody td:first-of-type { color: var(--ink-soft); }

/* ② 手続きの流れ: 番号は静かな紺・中央。担当列と1〜2行目の色分けは廃止（2026-08-25社長指示） */
.page-cs .proc td.proc__n { font-weight: 700; color: var(--navy); text-align: center; }
.page-cs .proc thead th.proc__n { text-align: center; }
