/* 行政書士法人Tree トップページの様式（tree-top.css）。もとは build_top.py が src/keep.css と src/top.css から作る。*/
/* ==========================================================================
   引き継ぎ：読み込み画面・ヒーロー・落ち葉
   もとの様式（css/treenew-styles.css）と同じ見た目・同じ動きになるよう、値をそのまま写している。
   変えたのは次の点だけ。
   ・読み込み画面：出る時間を短くした（文字とロゴの速さ）。出すのは最初の1回だけ（tree-top.js）。
     スクリプトが動かなくても白い画面が残らないよう、数秒後に自動で消える。
   ・ヒーロー：写真が親の地色に隠れないよう z-index:0。スマホで下が隠れないよう高さに svh を併記。
     手書きの文字は、画面が狭いときに左右が切れないよう幅を画面に合わせる（広い画面では今と同じ幅1600px）。
     背の低い画面で「Scroll」の印がボタンに重なるのを防ぐため、その高さでは印を出さない。
   ・「動きを減らす」設定の端末でも、ヒーローと落ち葉は今までどおり動く（代表の了承なしに止めない）。
   ・ボタンと「Scroll」の文字は、もとの書体と行間を直接指定（ページ全体の書体を変えても形が変わらないように）。
   クラス名（.slide .active .loaded .letter .char .mouse .loader .animate）と動きの名前（bounce scroll kenBurns）は
   もとのまま。ほかの部品で同じ名前を使わないこと。
   ========================================================================== */

/* ---------- 読み込み画面 ---------- */
.loading-screen { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100svh; background: #ffffff; display: flex; align-items: center; justify-content: center; z-index: 2147483647; transition: opacity 0.5s ease-out; animation: trLoaderSafety 0.5s 5s forwards; }
.loading-screen.loaded { opacity: 0; pointer-events: none; }
html.tr-seen .loading-screen { display: none; }
.loader { text-align: center; }
.logo-reveal-container { text-align: center; padding: 60px 40px; }
.logo-wrapper { margin-bottom: 40px; display: flex; justify-content: center; align-items: center; }
.reveal-logo { width: 200px; height: 200px; object-fit: contain; opacity: 0; transform: scale(0.9) translateY(10px); filter: blur(3px); animation: logoRevealSubtle 1.1s ease-out forwards; }
.message-text { font-family: 'Hina Mincho', serif; font-size: 28px; line-height: 1.6; color: #343a40; font-weight: 400; letter-spacing: 2px; }
.char { display: inline-block; opacity: 0; transform: translateY(30px) scale(0.7); animation: charAppear 0.55s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }
@keyframes logoRevealSubtle {
  0% { opacity: 0; transform: scale(0.9) translateY(10px); filter: blur(3px); }
  60% { opacity: 1; filter: blur(0px); }
  100% { opacity: 1; transform: scale(1) translateY(0); filter: blur(0px); }
}
@keyframes charAppear {
  0% { opacity: 0; transform: translateY(30px) scale(0.7); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes trLoaderSafety { to { opacity: 0; visibility: hidden; } }

/* ---------- ヒーロー ---------- */
.hero { height: 100vh; height: 100svh; position: relative; z-index: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.hero-slideshow { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -2; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; transition: opacity 2s ease-in-out; animation: kenBurns 18s infinite linear; }
.slide.active { opacity: 1; }
.slide-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(45, 122, 45, 0.3) 0%, rgba(0, 0, 0, 0.2) 100%); }
@keyframes kenBurns {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}
.hero-content { text-align: center; z-index: 2; position: relative; }
.svg-text-container { margin-bottom: 120px; padding: 80px 20px; width: 100%; display: flex; justify-content: center; overflow: hidden; }
.desktop-svg { width: 100%; min-width: min(1600px, calc(120.6vw - 39px)); max-width: none; height: auto; filter: drop-shadow(0 12px 60px rgba(0, 0, 0, 0.6)); margin: 0 auto; display: block; }
.mobile-svg { display: none; width: 100%; height: auto; filter: drop-shadow(0 12px 60px rgba(0, 0, 0, 0.6)); margin: 0 auto; background: transparent; border: none; outline: none; box-shadow: none; overflow: visible; }
.letter { stroke-dasharray: 2800; stroke-dashoffset: 2800; opacity: 0; filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.6)); stroke-linecap: round; stroke-linejoin: round; }
.letter.animate { animation: writeTextSequential 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards; }
.letter-1.animate { animation-delay: 0.2s; }
.letter-2.animate { animation-delay: 0.4s; }
.letter-3.animate { animation-delay: 0.6s; }
.letter-4.animate { animation-delay: 0.8s; }
.letter-5.animate { animation-delay: 1.0s; }
.letter-6.animate { animation-delay: 1.2s; }
.letter-7.animate { animation-delay: 1.5s; }
.letter-8.animate { animation-delay: 1.7s; }
.letter-9.animate { animation-delay: 2.0s; }
.letter-10.animate { animation-delay: 2.2s; }
.letter-11.animate { animation-delay: 2.4s; }
.letter-12.animate { animation-delay: 2.6s; }
.letter-13.animate { animation-delay: 2.9s; }
.letter-14.animate { animation-delay: 3.1s; }
.letter-15.animate { animation-delay: 3.3s; }
.letter-16.animate { animation-delay: 3.5s; }
@keyframes writeTextSequential {
  0% { stroke-dashoffset: 2800; fill: transparent; opacity: 0; }
  4% { opacity: 1; fill: transparent; }
  46% { stroke-dashoffset: 400; fill: rgba(255, 255, 255, 0.4); opacity: 1; }
  100% { stroke-dashoffset: 0; fill: rgba(255, 255, 255, 0.9); opacity: 1; }
}
.modern-btn { display: inline-flex; align-items: center; justify-content: center; padding: 20px 45px; background: transparent; border: 2px solid rgba(255, 255, 255, 0.8); border-radius: 50px; text-decoration: none; font-family: 'Hina Mincho', 'Noto Sans JP', sans-serif; font-weight: 500; font-size: 18px; line-height: 1.6; letter-spacing: 1.5px; color: #ffffff; transition: all 0.3s ease; position: relative; overflow: hidden; box-shadow: none; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); }
.modern-btn::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: rgba(255, 255, 255, 0.1); transition: left 0.4s ease; z-index: -1; }
.modern-btn:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 1); color: #ffffff; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7); }
.modern-btn:hover::before { left: 0; }
.modern-btn:active { transform: translateY(0); }
.scroll-indicator { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); text-align: center; animation: bounce 2s infinite; }
.mouse { width: 20px; height: 30px; border: 2px solid rgba(255, 255, 255, 0.8); border-radius: 10px; margin: 0 auto 10px; position: relative; }
.mouse::before { content: ''; position: absolute; top: 5px; left: 50%; transform: translateX(-50%); width: 2px; height: 6px; background: rgba(255, 255, 255, 0.8); border-radius: 1px; animation: scroll 2s infinite; }
.scroll-indicator p { color: rgba(255, 255, 255, 0.8); font-family: 'Hina Mincho', 'Noto Sans JP', sans-serif; font-size: 12px; line-height: 1.6; letter-spacing: 2px; text-transform: uppercase; }
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}
@keyframes scroll {
  0% { opacity: 0; top: 5px; }
  50% { opacity: 1; }
  100% { opacity: 0; top: 15px; }
}
.seo-h1 { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ---------- 落ち葉（線画のモミジ） ---------- */
.unified-background { position: relative; min-height: 100vh; }
.leaf-animation-layer { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; pointer-events: none; z-index: 500; overflow: visible; clip-path: polygon(0% 100%, 100% 100%, 100% 100%, 0% 100%); transition: clip-path 0.8s ease; }
.leaf-animation-layer.is-on { clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%); }
.particle-container { position: absolute; width: 100%; height: 100%; overflow: visible; opacity: 1; }
.leaf-particle { position: absolute; top: -50px; width: 80px; height: 80px; opacity: 0; animation: leafFallWithSway linear infinite; transform-origin: center; background-size: contain; background-repeat: no-repeat; background-position: center; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3)); }
@keyframes leafFallWithSway {
  0% { transform: translateY(-20vh) translateX(0px) rotate(0deg); opacity: 0; }
  3% { opacity: 0.8; }
  10% { transform: translateY(10vh) translateX(25px) rotate(30deg); }
  20% { transform: translateY(40vh) translateX(35px) rotate(80deg); }
  30% { transform: translateY(70vh) translateX(15px) rotate(120deg); }
  40% { transform: translateY(100vh) translateX(-25px) rotate(160deg); }
  50% { transform: translateY(130vh) translateX(-35px) rotate(200deg); }
  60% { transform: translateY(160vh) translateX(-15px) rotate(240deg); }
  70% { transform: translateY(190vh) translateX(20px) rotate(280deg); }
  80% { transform: translateY(220vh) translateX(30px) rotate(320deg); }
  90% { transform: translateY(250vh) translateX(10px) rotate(350deg); opacity: 0.8; }
  100% { transform: translateY(280vh) translateX(0px) rotate(360deg); opacity: 0; }
}

@media (max-width: 768px) {
  .hero-content { padding: 0 20px; }
  .message-text { font-size: 20px; white-space: nowrap; letter-spacing: 1px; }
  .svg-text-container { margin-bottom: 60px; padding: 40px 10px; }
  .desktop-svg { display: none; }
  .mobile-svg { display: block; width: 100%; height: auto; }
}
/* 背の低い画面では「Scroll」の印がボタンに重なるので出さない */
@media (min-width: 769px) and (max-height: 720px), (max-width: 768px) and (max-height: 540px) {
  .scroll-indicator { display: none; }
}

/* ==========================================================================
   新しい様式：ヒーローより下を「墨」と「生成り」の二つの面で組む
   ・色は 墨／生成り と、金の細い線・小さな欧文だけ。朱は「必須」の小札にだけ使う。
   ・見出しは明朝を大きく、字間を広く。欧文の添え書きと数字は Cormorant Garamond。本文は端末のゴシック。
   ・面の指定は is-ink（墨）／is-paper（生成り）。data-tr-tone は落ち葉の色の切り替えに使う。
   ・落ち葉の層は画面に固定されている。.unified-background とその外側の要素に
     transform・filter・contain を付けないこと（葉がページと一緒に流れてしまう）。
   ・ヒーローの写真は重なり順−2。html に地色を塗らないこと。
   ・ページ全体（body）の文字の大きさ・行間・字間は変えない（ヒーローの手書きの文字の形が変わるため）。
     新しい部品の文字組みは、下の「新しい部品の根」にまとめて指定している。
   ・新しいクラス名はすべて tr- で始める。
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --ink: #131210; --ink-2: #1a1816; --ink-3: #0b0a09;
  --paper: #f4f0e7; --paper-2: #ebe5d8; --white: #fbf9f4;
  --gold: #c6a76b; --gold-l: #dcc491; --gold-d: #7a5f30; --gold-line: #b89a5e;
  --tx: #1d1b18; --tx-2: #595247; --on: #f2ede1; --on-2: rgba(242, 237, 225, .74); --on-3: rgba(242, 237, 225, .6);
  --ln: rgba(29, 27, 24, .15); --ln-d: rgba(29, 27, 24, .4); --ln-on: rgba(242, 237, 225, .15); --ln-gold: rgba(198, 167, 107, .45);
  --shu: #a63a26;
  --f-go: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", "Yu Gothic", "Noto Sans JP", Meiryo, sans-serif;
  --f-min: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  --f-min-sys: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  --f-en: "Cormorant Garamond", "Times New Roman", serif;
  --ease: cubic-bezier(.22, .8, .22, 1);
  --hd: 80px; --gut: 56px; --sec: 176px;
}
/* ページ内の移動をなめらかにするのは、利用者が操作を始めてから（tr-smooth はスクリプトが付ける）。
   ほかのページから「#contact」などで来たときは、先頭から流さずにその場へ着地させる */
html { scroll-padding-top: calc(var(--hd) + 16px); -webkit-text-size-adjust: 100%; }
html.tr-smooth { scroll-behavior: smooth; }
body { font-family: var(--f-go); font-size: 17px; line-height: 1.9; color: var(--tx); background: var(--ink); overflow-x: hidden; position: relative; overflow-wrap: break-word; }
/* 写真が切り替わる途中に透けて見える地は、今までどおり白 */
.hero { background: #ffffff; }
/* 新しい部品の根：文字組みはここで決める */
.tr-header, .tr-menu, .tr-rail, .tr-door, .tr-gatebox, .unified-background, .tr-footer, .tr-dock { font-size: 16px; line-height: 2; letter-spacing: .04em; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
ul, ol { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; letter-spacing: inherit; background: none; border: 0; border-radius: 0; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold-d); outline-offset: 3px; }
.is-ink :focus-visible, .tr-footer :focus-visible, .tr-menu :focus-visible, .tr-dock :focus-visible { outline-color: var(--gold-l); }
.is-ink .tr-sheet :focus-visible { outline-color: var(--gold-d); }
.hero :focus-visible { outline-color: #ffffff; }
.tr-vh { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.tr-skip { position: fixed; left: 16px; top: -80px; z-index: 1200; padding: 12px 22px; background: var(--ink); color: var(--on); font-weight: 600; text-decoration: none; }
.tr-skip:focus { top: 16px; }
.tr-wrap { width: min(100% - var(--gut) * 2, 1240px); margin-left: auto; margin-right: auto; }
.tr-en { font-family: var(--f-en); font-variant-numeric: lining-nums; }
.tr-nb { white-space: nowrap; }
.tr-ph { display: inline-block; }
.tr-faq__q, .tr-feat h3, .tr-feat p, .tr-news__ttl, .tr-tan__purpose, .tr-tan__lead, .tr-tan__items a, .tr-btn, .tr-foot__col a, .tr-gate__sub, .tr-head__lead, .tr-door__text p, .tr-steps p, .tr-fee > p, .tr-group p, .tr-faq__a p { text-wrap: pretty; }
.tr-min, .tr-head__title, .tr-sec h3, .tr-office h3, .tr-byobu h3, .tr-tan__name, .tr-form__title { font-family: var(--f-min); font-weight: 500; }
rt { font-family: var(--f-go); font-size: .5em; font-weight: 400; letter-spacing: 0; }

/* ---------- 面 ---------- */
/* 面ごとの色の組：--fg 本文／--fg2 補足／--fg3 さらに控えめ／--rule 細い線／--rule2 強い線／--acc 金の文字／--hov-* 行に乗せたときの反転 */
.is-paper, .tr-sheet { --fg: var(--tx); --fg2: var(--tx-2); --fg3: var(--tx-2); --rule: var(--ln); --rule2: var(--ln-d); --acc: var(--gold-d); --hov-bg: var(--ink); --hov-fg: var(--on); --hov-acc: var(--gold); --hov-rule: var(--ln-gold); }
.is-ink { --fg: var(--on); --fg2: var(--on-2); --fg3: var(--on-3); --rule: var(--ln-on); --rule2: var(--ln-gold); --acc: var(--gold); --hov-bg: var(--paper); --hov-fg: var(--tx); --hov-acc: var(--gold-d); --hov-rule: var(--ln-d); }
.is-paper { background-color: var(--paper); color: var(--tx); background-image: url(/img/top2026/grain-paper.webp?v=b3fa743d); background-size: 128px 128px; }
.is-ink { background-color: var(--ink); color: var(--on); background-image: url(/img/top2026/grain-ink.webp?v=ffd55560); background-size: 128px 128px; }
.unified-background { background: var(--ink); }

/* ---------- 押せるもの ---------- */
.tr-arrow { position: relative; display: inline-block; flex: none; width: 26px; height: 9px; transition: transform .45s var(--ease); }
.tr-arrow::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 1px; background: currentColor; }
.tr-arrow::after { content: ""; position: absolute; right: 0; top: 0; width: 8px; height: 8px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: translateY(.5px) rotate(45deg) scale(.82); transform-origin: 100% 0; }
a:hover > .tr-arrow, a:hover .tr-arrow { transform: translateX(6px); }
.tr-link { color: inherit; font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold-line); text-decoration-thickness: 1px; text-underline-offset: 7px; transition: color .3s, text-decoration-color .3s; }
.tr-link:hover { color: var(--gold-d); text-decoration-color: currentColor; }
.is-ink .tr-link:hover { color: var(--gold-l); }
.is-ink .tr-sheet .tr-link:hover { color: var(--gold-d); }
.tr-btn { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 58px; padding: 10px 34px; font-size: 15px; font-weight: 600; line-height: 1.5; letter-spacing: .14em; text-decoration: none; text-align: center; white-space: nowrap; transition: color .45s var(--ease), border-color .45s var(--ease); }
.tr-btn::before, .tr-way .consultation-btn::before, .submit-btn-wamodern::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: -1; background: var(--gold); transform: scaleX(0); transform-origin: 100% 50%; transition: transform .55s var(--ease); }
.tr-btn:hover::before, .tr-btn:focus-visible::before, .tr-way .consultation-btn:hover::before, .tr-way .consultation-btn:focus-visible::before { transform: scaleX(1); transform-origin: 0 50%; }
.submit-btn-wamodern:not(:disabled):hover::before { transform: scaleX(1); transform-origin: 0 50%; }
.tr-btn:active { transform: translateY(1px); }
.tr-btn--ink { background: var(--ink); color: var(--on); }
.tr-btn--ink:hover, .tr-btn--ink:focus-visible { color: var(--ink); }
.tr-btn--line { border: 1px solid var(--ln-d); color: var(--tx); }
.tr-btn--line::before { background: var(--ink); }
.tr-btn--line:hover, .tr-btn--line:focus-visible { color: var(--on); border-color: var(--ink); }
.tr-btn--gold { border: 1px solid var(--ln-gold); color: var(--gold-l); }
.tr-btn--gold:hover, .tr-btn--gold:focus-visible { color: var(--ink); border-color: var(--gold); }
.tr-ic { flex: none; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 章の見出し ---------- */
.tr-eyebrow { display: flex; align-items: center; gap: 18px; font-family: var(--f-en); font-style: italic; font-weight: 500; font-size: 20px; line-height: 1; letter-spacing: .06em; color: var(--gold-d); }
.tr-eyebrow::before { content: ""; flex: none; width: 56px; height: 1px; background: currentColor; opacity: .75; }
.is-ink .tr-eyebrow { color: var(--gold); }
.is-ink .tr-sheet .tr-eyebrow { color: var(--gold-d); }
.tr-head { position: relative; margin-bottom: 84px; }
.tr-head__title { margin-top: 26px; font-size: clamp(34px, 4.3vw, 60px); line-height: 1.42; letter-spacing: .16em; }
.tr-head__lead { max-width: 36em; margin-top: 30px; color: var(--tx-2); }
.is-ink .tr-head__lead { color: var(--on-2); }
.tr-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.tr-sec { position: relative; padding: var(--sec) 0; }
.tr-sec > .tr-wrap { position: relative; }
.tr-ghostbox { position: absolute; top: 0; right: 0; bottom: 0; left: 0; overflow: hidden; pointer-events: none; }
.tr-ghost { position: absolute; right: -1vw; top: 56px; font-style: italic; font-weight: 500; font-size: clamp(120px, 21vw, 330px); line-height: 1; letter-spacing: -.01em; white-space: nowrap; color: rgba(29, 27, 24, .05); }
.is-ink .tr-ghost { color: rgba(242, 237, 225, .045); }

/* ---------- 出現（画面に入ったら一度だけ） ----------
   「見えたら出す」仕掛けが動き出したとき（html に tr-io が付く）だけ、いったん隠す。仕掛けが動かなければ最初から見えている */
.tr-line { display: block; overflow: hidden; }
.tr-line > span { display: block; }
.tr-draw { transform-origin: 0 50%; }
html.tr-io .tr-rv { opacity: 0; transform: translate3d(0, 34px, 0); }
html.tr-io .tr-rv.is-in { opacity: 1; transform: none; transition: opacity 1.2s var(--ease) var(--d, 0s), transform 1.2s var(--ease) var(--d, 0s); }
html.tr-io .tr-byobu.tr-rv, html.tr-io .tr-sheet.tr-rv { transform: none; }
html.tr-io .tr-lines .tr-line > span { transform: translate3d(0, 110%, 0); }
html.tr-io .tr-lines.is-in .tr-line > span { transform: none; transition: transform 1.3s var(--ease); }
html.tr-io .tr-lines.is-in .tr-line + .tr-line > span { transition-delay: .14s; }
html.tr-io .tr-draw { transform: scaleX(0); }
html.tr-io .tr-draw.is-in { transform: none; transition: transform 1.8s var(--ease) .2s; }
html.snap-all .tr-rv, html.snap-all .tr-lines .tr-line > span, html.snap-all .tr-draw { opacity: 1 !important; transform: none !important; }

/* ---------- ヘッダー ---------- */
.tr-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1100; height: var(--hd); background: rgba(255, 255, 255, .75); -webkit-backdrop-filter: blur(15px); backdrop-filter: blur(15px); box-shadow: 0 4px 6px rgba(0, 0, 0, .1); color: var(--tx); transition: background .4s, box-shadow .4s; }
.tr-header.is-scrolled { background: #f7f3eb; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 1px 0 rgba(184, 154, 94, .45); }
.tr-header__in { display: flex; align-items: center; gap: 30px; width: min(100% - 56px, 1360px); height: 100%; margin-left: auto; margin-right: auto; }
.tr-logo { display: flex; align-items: center; flex: none; margin-right: auto; }
.tr-logo img { display: block; width: auto; height: 50px; }
.tr-nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 36px); font-size: 14.5px; font-weight: 600; letter-spacing: .12em; }
.tr-nav a { position: relative; padding: 10px 0; text-decoration: none; white-space: nowrap; }
.tr-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: var(--gold-d); transform: scaleX(0); transform-origin: 100% 50%; transition: transform .5s var(--ease); }
.tr-nav a:hover::after, .tr-nav a:focus-visible::after { transform: scaleX(1); transform-origin: 0 50%; }
.tr-header__tel { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.tr-header__tel a { font-family: var(--f-en); font-variant-numeric: lining-nums; font-weight: 500; font-size: 27px; letter-spacing: .05em; line-height: 1.05; text-decoration: none; white-space: nowrap; }
.tr-header__tel span { font-size: 11.5px; letter-spacing: .08em; color: var(--tx-2); white-space: nowrap; }
.tr-header__cta { min-height: 48px; padding: 8px 28px; }
.tr-header__sp { display: none; }
.tr-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: 0 50%; opacity: 0; transition: opacity .4s; }
.tr-header.is-scrolled .tr-progress { opacity: 1; }

/* 画面の左端：いま読んでいる章（広い画面だけ） */
.tr-rail { position: fixed; left: 28px; top: 50%; z-index: 450; display: none; flex-direction: column; align-items: center; gap: 16px; transform: translateY(-50%); color: var(--tx); pointer-events: none; opacity: 0; transition: opacity .6s, color .6s; line-height: 1.2; }
.tr-rail.is-onink { color: var(--on); }
.tr-rail.is-on { opacity: .8; }
.tr-rail__no { font-style: italic; font-weight: 500; font-size: 16px; letter-spacing: .08em; }
.tr-rail__line { display: block; width: 1px; height: 64px; background: currentColor; opacity: .55; }
.tr-rail__name { writing-mode: vertical-rl; font-size: 12.5px; letter-spacing: .34em; white-space: nowrap; min-height: 10em; }
@media (min-width: 1440px) { .tr-rail { display: flex; } }

/* スマホのメニュー */
.tr-menu { position: fixed; top: var(--hd); right: 0; bottom: 0; left: 0; z-index: 1090; background: var(--ink); color: var(--on); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.tr-menu__in { display: flex; flex-direction: column; width: min(100% - 48px, 560px); min-height: 100%; margin-left: auto; margin-right: auto; padding: 34px 0 0; }
.tr-menu__grp { margin-bottom: 30px; }
.tr-menu__ttl { padding-bottom: 12px; border-bottom: 1px solid var(--ln-gold); font-size: 17px; letter-spacing: .18em; color: var(--gold); }
.tr-menu__grp li, .tr-menu__main li { border-bottom: 1px solid var(--ln-on); }
.tr-menu__grp a, .tr-menu__main a { display: flex; align-items: center; min-height: 54px; padding: 8px 2px; font-size: 16px; line-height: 1.6; text-decoration: none; }
.tr-menu__main { margin: 36px 0 30px; border-top: 1px solid var(--ln-gold); }
.tr-menu__main a { font-weight: 600; letter-spacing: .1em; min-height: 58px; }
.tr-menu__cta { position: sticky; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; padding: 14px 0 calc(14px + env(safe-area-inset-bottom, 0px)); background: var(--ink); border-top: 1px solid var(--ln-gold); }
.tr-menu__cta a { display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 6px 4px; border: 1px solid var(--ln-gold); color: var(--gold-l); font-size: 14px; font-weight: 600; line-height: 1.4; letter-spacing: .04em; text-align: center; text-decoration: none; }
.tr-menu__cta .tr-ic { display: none; }
.tr-menu__cta a.c-tel01 { background: var(--gold); border-color: var(--gold); color: var(--ink); font-family: var(--f-en); font-variant-numeric: lining-nums; font-size: 21px; font-weight: 600; letter-spacing: .03em; white-space: nowrap; }

/* ---------- 理念：法律をもっと身近に ---------- */
.tr-door { position: relative; z-index: 1; padding: 200px 0 184px; overflow: hidden; }
.tr-door__grid { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, .78fr); gap: clamp(48px, 7vw, 120px); align-items: center; }
.tr-door__title { margin-top: 38px; font-family: 'Hina Mincho', var(--f-min); font-weight: 400; font-size: clamp(44px, 6.6vw, 104px); line-height: 1.34; letter-spacing: .08em; color: var(--on); white-space: nowrap; }
.tr-door__rule { display: block; width: min(100%, 560px); height: 1px; margin: 54px 0 48px; background: linear-gradient(90deg, var(--gold), rgba(198, 167, 107, 0)); }
.tr-door__text { max-width: 34em; color: var(--on-2); }
.tr-door__text p { margin-bottom: 22px; line-height: 2.2; }
.tr-door__sign { margin: 42px 0 0 !important; font-size: 18px; letter-spacing: .22em; color: var(--on); }
.tr-door__side { position: relative; display: flex; justify-content: flex-end; align-items: flex-start; gap: 50px; }
.tr-door__fig { position: relative; flex: 1 1 auto; max-width: 400px; }
.tr-door__fig::after { content: ""; position: absolute; top: 22px; right: -22px; bottom: -22px; left: 22px; border: 1px solid var(--ln-gold); pointer-events: none; }
.tr-door__win { position: relative; display: block; aspect-ratio: 3 / 4.3; overflow: hidden; background: var(--ink-2); }
@supports not (aspect-ratio: 1 / 1) { .tr-door__win { padding-top: 143%; } }
.tr-door__win img { position: absolute; left: 0; top: -12%; width: 100%; height: 124%; max-width: none; object-fit: cover; }
.tr-door__motto { flex: none; padding-top: 6px; writing-mode: vertical-rl; font-size: 14px; line-height: 1.4; letter-spacing: .52em; color: var(--gold); white-space: nowrap; }

/* ---------- 入口：個人のお客さま／事業者のお客さま ---------- */
.tr-gatebox { position: relative; z-index: 1; }
.tr-gate { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ln-gold); }
.tr-gate__panel { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; min-height: clamp(380px, 58vh, 620px); padding: clamp(36px, 4.6vw, 76px); color: #ffffff; text-decoration: none; }
.tr-gate__panel + .tr-gate__panel { border-left: 1px solid var(--ln-gold); }
.tr-gate__ph { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: -2; transform: scale(1.02); transition: transform 2.6s var(--ease); }
.tr-gate__bw, .tr-gate__col { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background-size: cover; background-position: center; }
.tr-gate__bw { background-color: #2b2a28; }
/* 色つきの写真は、マウスを乗せたときだけ上に重ねる */
.tr-gate__col { opacity: 0; transition: opacity 1.3s var(--ease); }
.tr-gate__panel::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: -1; background: linear-gradient(180deg, rgba(19, 18, 16, .5) 0%, rgba(19, 18, 16, .46) 45%, rgba(19, 18, 16, .9) 100%); transition: opacity .9s; }
.tr-gate__body { display: grid; gap: 14px; max-width: 30em; }
.tr-gate__en { font-style: italic; font-weight: 500; font-size: 20px; line-height: 1; letter-spacing: .06em; color: var(--gold-l); }
.tr-gate__ttl { font-size: clamp(28px, 3.3vw, 46px); line-height: 1.4; letter-spacing: .14em; }
.tr-gate__sub { font-size: 14.5px; line-height: 1.9; color: rgba(255, 255, 255, .84); }
.tr-gate__go { flex: none; display: grid; place-items: center; width: 72px; height: 72px; border: 1px solid rgba(220, 196, 145, .6); border-radius: 50%; color: var(--gold-l); transition: background .5s var(--ease), color .5s, border-color .5s; }
.tr-gate__links { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ln-gold); }
.tr-gate__links a { display: flex; align-items: center; justify-content: center; gap: 20px; min-height: 88px; padding: 10px 16px; font-size: 15px; font-weight: 600; letter-spacing: .16em; text-decoration: none; transition: background .4s, color .4s; }
.tr-gate__links a + a { border-left: 1px solid var(--ln-on); }
.tr-gate__links .tr-arrow { color: var(--gold); }
@media (hover: hover) {
  .tr-gate__panel:hover .tr-gate__ph { transform: scale(1.09); }
  .tr-gate__panel:hover .tr-gate__col { opacity: .82; }
  .tr-gate__panel:hover::before { opacity: .9; }
  .tr-gate__panel:hover .tr-gate__go { background: var(--gold); border-color: var(--gold); color: var(--ink); }
  .tr-gate__links a:hover { background: var(--ink-2); color: var(--gold-l); }
}

/* ---------- 業務案内：屏風のように並ぶ短冊 ----------
   まず、縦に並ぶ行（スマホ・スクリプトなし）。パソコンの屏風は、この下で上書きする */
.tr-byobus { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.tr-byobu { min-width: 0; scroll-margin-top: 8px; background: var(--white); border: 1px solid var(--ln); }
.tr-byobu__cover { position: relative; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 20px; padding: 24px 26px; background: var(--ink); color: var(--on); }
.tr-byobu__en { font-style: italic; font-weight: 500; font-size: 17px; line-height: 1; color: var(--gold); }
.tr-byobu__title { font-size: 23px; line-height: 1.4; letter-spacing: .16em; }
.tr-byobu__count { margin-left: auto; font-style: italic; font-size: 14px; line-height: 1; color: var(--on-3); }
.tr-byobu__count span { margin-right: 4px; font-style: normal; font-size: 24px; color: var(--gold); }
.tr-tan { position: relative; }
.tr-tan + .tr-tan { border-top: 1px solid var(--ln); }
.tr-tan__tab { display: grid; grid-template-columns: 40px minmax(0, 1fr) 30px; align-items: center; gap: 10px; width: 100%; min-height: 78px; padding: 14px 22px 14px 22px; text-align: left; transition: color .4s; }
.tr-tan__no { font-size: 23px; font-weight: 500; line-height: 1; color: var(--gold-d); }
.tr-tan__name { font-size: 18.5px; line-height: 1.55; letter-spacing: .08em; }
.tr-faq__pm, .tr-tan__pm { position: relative; flex: none; display: block; width: 30px; height: 30px; border: 1px solid var(--ln-d); border-radius: 50%; transition: background .4s, border-color .4s, color .4s; }
.tr-faq__pm::before, .tr-faq__pm::after, .tr-tan__pm::before, .tr-tan__pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1px; margin: -.5px 0 0 -5px; background: currentColor; transition: transform .5s var(--ease); }
.tr-faq__pm::after, .tr-tan__pm::after { transform: rotate(90deg); }
.tr-faq[open] .tr-faq__pm::after, html.tr-js .tr-tan.is-open .tr-tan__pm::after { transform: rotate(0deg); }
.tr-faq[open] .tr-faq__pm, html.tr-js .tr-tan.is-open .tr-tan__pm { background: var(--ink); border-color: var(--ink); color: var(--on); }
html:not(.tr-js) .tr-tan__pm { visibility: hidden; }
.tr-tan__panel { display: grid; grid-template-rows: 1fr; }
.tr-tan__in { position: relative; min-height: 0; overflow: hidden; }
html.tr-js .tr-tan__panel { grid-template-rows: 0fr; transition: grid-template-rows .65s var(--ease); }
html.tr-js .tr-tan.is-open .tr-tan__panel { grid-template-rows: 1fr; }
html.tr-js .tr-tan:not(.is-open) .tr-tan__in { visibility: hidden; transition: visibility 0s .65s; }
.tr-tan__body { position: relative; padding: 2px 22px 30px 22px; }
.tr-tan__purpose { font-size: 17.5px; line-height: 1.75; letter-spacing: .06em; }
.tr-tan__lead { margin-top: 10px; font-size: 14.5px; line-height: 1.95; color: var(--tx-2); }
.tr-tan__items { margin-top: 20px; border-top: 1px solid var(--ln-d); }
.tr-tan__items li { border-bottom: 1px solid var(--ln); }
.tr-tan__items a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 54px; padding: 10px 6px 10px 2px; font-size: 15.5px; font-weight: 600; line-height: 1.5; text-decoration: none; transition: color .3s, padding .45s var(--ease); }
.tr-tan__items small { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 400; line-height: 1.6; letter-spacing: .02em; color: var(--tx-2); }
.tr-tan__items .tr-arrow { color: var(--gold-d); }
.tr-tan__price { margin-top: 12px; font-size: 14px; }
.tr-tan__price .tr-link, .tr-more .tr-link { display: inline-block; padding: 10px 0; }
.tr-tan__ghost { display: none; }
@media (hover: hover) {
  .tr-tan__items a:hover { color: var(--gold-d); padding-left: 10px; }
  .tr-tan__tab:hover { color: var(--gold-d); }
}
.tr-next { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--ln); }

/* パソコン：屏風。短冊の名前は縦書き。開いている1枚だけが幅を取り、中身を見せる */
@media (min-width: 1180px) {
  html.tr-js .tr-byobus { gap: 56px; }
  html.tr-js .tr-byobu { display: flex; height: 664px; background: var(--paper-2); box-shadow: 0 44px 80px -56px rgba(29, 27, 24, .45); }
  html.tr-js .tr-byobu__cover { flex: 0 0 196px; flex-direction: column; flex-wrap: nowrap; align-items: flex-start; justify-content: space-between; gap: 0; padding: 38px 30px 34px; }
  html.tr-js .tr-byobu__cover::after { content: ""; position: absolute; left: 30px; right: 30px; bottom: 78px; height: 1px; background: var(--ln-gold); }
  html.tr-js .tr-byobu__en { font-size: 19px; }
  html.tr-js .tr-byobu__title { align-self: center; writing-mode: vertical-rl; font-size: 31px; line-height: 1.3; letter-spacing: .34em; white-space: nowrap; }
  html.tr-js .tr-byobu__count { margin: 0; }
  html.tr-js .tr-byobu__tans { --cw: 84px; flex: 1 1 0; min-width: 0; display: flex; }
  html.tr-js .tr-tan { display: flex; flex: 0 0 var(--cw); min-width: 0; border-top: 0; border-left: 1px solid var(--ln); transition: flex-grow .9s var(--ease), background-color .6s; }
  html.tr-js .tr-tan:first-child { border-left: 0; }
  html.tr-js .tr-tan.is-open { flex-grow: 1; background-color: var(--white); }
  html.tr-js .tr-tan.is-open::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--gold-line); }
  html.tr-js .tr-tan__h { flex: 0 0 calc(var(--cw) - 1px); display: flex; }
  html.tr-js .tr-tan__tab { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 26px; width: 100%; height: 100%; min-height: 0; padding: 38px 0 30px; }
  html.tr-js .tr-tan__no { font-size: 25px; }
  html.tr-js .tr-tan__name { flex: 1 1 auto; writing-mode: vertical-rl; font-size: 19px; line-height: 1.3; letter-spacing: .22em; white-space: nowrap; }
  html.tr-js .tr-tan__pm { margin-top: auto; }
  /* 中身は枠から浮かせて置く（幅を決め打ちにしても、屏風全体の幅の計算に響かないように） */
  html.tr-js .tr-tan__panel { position: relative; display: block; flex: 1 1 0; min-width: 0; overflow: hidden; transition: none; }
  html.tr-js .tr-tan__in { position: absolute; left: 0; top: 0; width: var(--pw, 480px); height: 100%; overflow: visible; opacity: 0; transform: translate3d(30px, 0, 0); transition: opacity .3s, transform .6s var(--ease), visibility 0s .6s; }
  html.tr-js .tr-tan:not(.is-open) .tr-tan__in { transition: opacity .3s, transform .6s var(--ease), visibility 0s .3s; }
  html.tr-js .tr-tan.is-open .tr-tan__in { opacity: 1; transform: none; visibility: visible; transition: opacity .8s .3s, transform 1s var(--ease) .2s, visibility 0s 0s; }
  html.tr-js .tr-tan__body { display: flex; flex-direction: column; height: 100%; padding: 46px 48px 38px 18px; }
  html.tr-js .tr-tan__purpose { font-size: 21px; line-height: 1.65; letter-spacing: .08em; }
  html.tr-js .tr-tan__lead { margin-top: 14px; }
  html.tr-js .tr-tan__items { margin-top: 24px; }
  html.tr-js .tr-tan__items a { min-height: 47px; padding-block: 8px; }
  html.tr-js .tr-tan__price { margin-top: auto; padding-top: 12px; position: relative; z-index: 1; }
  html.tr-js .tr-tan__ghost { display: block; position: absolute; right: 30px; bottom: -6px; font-size: 200px; font-weight: 400; line-height: 1; letter-spacing: -.02em; color: rgba(29, 27, 24, .05); pointer-events: none; }
  html.tr-js .tr-tan:not(.is-open) .tr-tan__tab:hover { background: rgba(251, 249, 244, .7); }
}
/* スマホ・タブレット：スクリプトが動き出すまで、開いた行を見せない（一瞬開いて閉じるのを防ぐ） */
@media (max-width: 1179px) {
  html.tr-js:not(.tr-bz) .tr-tan.is-open .tr-tan__panel { grid-template-rows: 0fr; }
  html.tr-js:not(.tr-bz) .tr-tan.is-open .tr-tan__pm::after { transform: rotate(90deg); }
  html.tr-js:not(.tr-bz) .tr-tan.is-open .tr-tan__pm { background: none; border-color: var(--ln-d); color: inherit; }
}

/* ---------- ご依頼の流れ ---------- */
.tr-stepsbox { position: relative; }
.tr-steps__rule { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--gold); opacity: .6; }
.tr-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 48px; }
.tr-steps li { position: relative; padding-top: 46px; }
.tr-steps li::before { content: ""; position: absolute; left: 0; top: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 7px rgba(198, 167, 107, .14); }
.tr-steps__no { display: block; font-size: 78px; font-weight: 400; line-height: 1; letter-spacing: 0; color: var(--gold); }
.tr-steps h3 { margin-top: 26px; font-size: 22px; line-height: 1.5; letter-spacing: .12em; }
.tr-steps p { margin-top: 12px; font-size: 14.5px; line-height: 2; color: var(--on-2); }
.tr-fee { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 28px 56px; margin-top: 96px; padding: 48px 52px; border: 1px solid var(--ln-gold); background: rgba(242, 237, 225, .025); }
.tr-fee h3 { font-size: 22px; line-height: 1.5; letter-spacing: .14em; white-space: nowrap; }
.tr-fee > p { font-size: 15px; line-height: 2; color: var(--on-2); }
.tr-fee__btns { display: grid; gap: 12px; }

/* ---------- 事務所の特徴・よくあるご質問（左に見出し、右に本文） ---------- */
.tr-split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(48px, 7vw, 120px); align-items: start; }
.tr-split__head { position: sticky; top: calc(var(--hd) + 56px); margin-bottom: 0; }
.tr-split__head .tr-head__title { font-size: clamp(30px, 3.4vw, 46px); white-space: nowrap; }
.tr-feat li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px 24px; padding: 48px 0; border-top: 1px solid var(--ln-d); }
.tr-feat li:last-child { border-bottom: 1px solid var(--ln-d); }
.tr-feat__no { grid-row: 1 / span 2; font-size: 54px; font-weight: 400; line-height: 1; color: var(--gold-d); }
.tr-feat h3 { font-size: clamp(21px, 2vw, 27px); line-height: 1.6; letter-spacing: .1em; }
.tr-feat p { font-size: 15.5px; color: var(--tx-2); }

/* ---------- 事務所のご案内 ---------- */
.tr-office { position: relative; }
.tr-office__band { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: clamp(380px, 66vh, 680px); padding-bottom: 76px; background-color: var(--ink); color: var(--on); }
.tr-office__ph { position: absolute; left: 0; right: 0; top: -14%; height: 128%; z-index: -2; background-size: cover; background-position: center 62%; }
.tr-office__band::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: -1; background: linear-gradient(180deg, rgba(19, 18, 16, .62) 0%, rgba(19, 18, 16, .3) 36%, rgba(19, 18, 16, .8) 100%); }
.tr-office__band .tr-wrap { position: relative; }
.tr-office__band .tr-head { margin-bottom: 0; }
.tr-office__band .tr-eyebrow { color: var(--gold-l); }
.tr-office__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(48px, 7vw, 112px); align-items: start; padding: 64px 0 var(--sec); }
.tr-plate { display: flex; align-items: center; gap: 28px; }
.tr-office__lead { margin: 30px 0 6px; padding: 28px 0; border-top: 1px solid var(--rule2); border-bottom: 1px solid var(--rule); font-size: 15.5px; color: var(--fg2); }
.tr-plate img { flex: none; width: 88px; height: 88px; object-fit: cover; object-position: 50% 0; }
.is-ink .tr-plate img { filter: brightness(0) invert(1); opacity: .9; }
.tr-plate__name { font-size: clamp(24px, 2.4vw, 31px); line-height: 1.4; letter-spacing: .14em; }
.tr-plate__sub { font-size: 13px; letter-spacing: .22em; color: var(--acc); }
.tr-ledger > div { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 4px 24px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.tr-ledger dt { padding-top: 4px; font-size: 13px; letter-spacing: .24em; color: var(--acc); }
.tr-ledger small { display: block; font-family: var(--f-en); font-style: italic; font-size: 15.5px; letter-spacing: .04em; color: var(--fg3); }
.tr-ledger a.c-tel01 { font-family: var(--f-en); font-variant-numeric: lining-nums; font-weight: 500; font-size: 29px; line-height: 1.2; letter-spacing: .05em; text-decoration: none; }
.tr-more { margin-top: 28px; font-size: 15px; }
.tr-map { position: sticky; top: calc(var(--hd) + 40px); padding: 36px; border: 1px solid var(--ln-gold); background: var(--ink-2); }
.tr-map img { display: block; width: 100%; }
.tr-map figcaption { margin-top: 28px; }
.tr-map .tr-btn { width: 100%; }

/* ---------- グループと連携 ---------- */
.tr-sec--group { --acc: #6f5629; background-color: var(--paper-2); border-top: 1px solid var(--ln); }
.tr-sec--group .tr-eyebrow, .tr-sec--faq .tr-eyebrow { color: #6f5629; }
.tr-group { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule2); border-left: 1px solid var(--rule); }
.tr-group li { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 48px 48px 44px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.tr-group__tag { font-size: 12px; line-height: 1.6; letter-spacing: .26em; color: var(--acc); }
.tr-group h3 { font-size: 23px; line-height: 1.5; letter-spacing: .08em; }
.tr-group p { font-size: 15px; color: var(--fg2); }
.tr-group p.tr-group__tag { font-size: 12px; color: var(--acc); }
.tr-group p.tr-group__no { font-size: 13px; letter-spacing: .08em; color: var(--fg3); }
.tr-group .tr-link { margin-top: auto; padding-top: 12px; font-size: 14.5px; }

/* ---------- 記事一覧 ---------- */
.tr-news { min-height: 320px; border-bottom: 1px solid var(--rule2); }
.tr-news__item { position: relative; display: grid; grid-template-columns: 7em 10em minmax(0, 1fr) auto; align-items: center; gap: 12px 36px; padding: 34px 28px; border-top: 1px solid var(--rule2); text-decoration: none; transition: background-color .5s var(--ease), color .5s var(--ease); }
.tr-news__date { font-family: var(--f-en); font-variant-numeric: lining-nums; font-size: 21px; line-height: 1.2; letter-spacing: .06em; color: var(--acc); transition: color .5s; }
.tr-news__cat { justify-self: start; max-width: 100%; padding: 2px 12px; border: 1px solid var(--rule2); font-size: 12px; line-height: 1.8; letter-spacing: .1em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: border-color .5s; }
.tr-news__ttl { font-family: var(--f-min-sys); font-size: 18px; font-weight: 600; line-height: 1.75; letter-spacing: .05em; }
.tr-news__msg { padding: 40px 0; border-top: 1px solid var(--rule2); color: var(--fg2); }
@media (hover: hover) {
  .tr-news__item:hover { background-color: var(--hov-bg); color: var(--hov-fg); }
  .tr-news__item:hover .tr-news__date { color: var(--hov-acc); }
  .tr-news__item:hover .tr-news__cat { border-color: var(--hov-rule); }
}

/* ---------- よくあるご質問 ---------- */
.tr-sec--faq { --acc: #6f5629; background-color: var(--paper-2); }
.tr-faqs { border-top: 1px solid var(--ln-d); }
.tr-faq { border-bottom: 1px solid var(--ln-d); }
.tr-faq summary { display: grid; grid-template-columns: 40px minmax(0, 1fr) 30px; align-items: center; gap: 12px; padding: 28px 4px; cursor: pointer; list-style: none; }
.tr-faq summary::-webkit-details-marker { display: none; }
.tr-faq__mark { font-style: italic; font-weight: 500; font-size: 30px; line-height: 1; color: var(--gold-d); }
.tr-faq__q { font-size: 18.5px; line-height: 1.7; letter-spacing: .06em; }
.tr-faq__a { padding: 0 46px 32px 56px; font-size: 15.5px; color: var(--tx-2); }
.tr-faq__a .tr-link { display: inline-block; padding: 12px 0; }

/* ---------- お問い合わせ ---------- */
.tr-ways { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); border-top: 1px solid var(--ln-gold); border-bottom: 1px solid var(--ln-gold); }
.tr-way { padding: 36px 0 40px clamp(40px, 5vw, 80px); }
.tr-way--tel { grid-row: 1 / span 2; display: flex; flex-direction: column; justify-content: center; padding: 48px clamp(32px, 5vw, 80px) 48px 0; border-right: 1px solid var(--ln-on); }
.tr-way + .tr-way + .tr-way { border-top: 1px solid var(--ln-on); }
.tr-way__label { display: flex; align-items: baseline; gap: 16px; font-size: 13px; line-height: 1.6; letter-spacing: .3em; color: var(--gold); }
.tr-way__label small { font-size: 12px; letter-spacing: .1em; color: var(--on-3); }
.tr-way--tel a.c-tel01 { display: block; margin: 12px 0 8px; font-family: var(--f-en); font-variant-numeric: lining-nums; font-weight: 400; font-size: clamp(48px, 6vw, 88px); line-height: 1.05; letter-spacing: .03em; color: var(--on); text-decoration: none; white-space: nowrap; transition: color .4s; }
.tr-way--tel a.c-tel01:hover { color: var(--gold-l); }
.tr-way__hours { font-size: 14px; letter-spacing: .1em; color: var(--on-2); }
.tr-way .consultation-btn { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; gap: 16px; min-height: 68px; margin-top: 14px; padding: 12px 26px; border: 1px solid var(--ln-gold); color: var(--gold-l); font-size: 16px; font-weight: 600; line-height: 1.5; letter-spacing: .14em; text-decoration: none; transition: color .45s var(--ease), border-color .45s; }
.tr-way .consultation-btn .tr-arrow { margin-left: auto; }
.tr-way .consultation-btn:hover, .tr-way .consultation-btn:focus-visible { color: var(--ink); border-color: var(--gold); }

.tr-sheet { position: relative; margin-top: 104px; padding: clamp(40px, 6vw, 88px); background-color: var(--paper); color: var(--tx); scroll-margin-top: 8px; background-image: url(/img/top2026/grain-paper.webp?v=b3fa743d); background-size: 128px 128px; }
.tr-sheet::before { content: ""; position: absolute; top: 14px; right: 14px; bottom: 14px; left: 14px; border: 1px solid rgba(184, 154, 94, .5); pointer-events: none; }
.tr-sheet__head { position: relative; margin-bottom: 46px; }
.tr-form__title { margin-top: 18px; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.5; letter-spacing: .14em; }
.tr-shiori { position: absolute; right: clamp(24px, 6vw, 96px); top: -58px; width: 120px; height: auto; transform: rotate(16deg); pointer-events: none; }
.contact-form-wamodern { position: relative; }
.form-grid-wamodern { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 48px; }
.form-field-wamodern.full-width, .form-submit-wamodern { grid-column: 1 / -1; }
.field-label-wamodern { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; font-size: 14px; font-weight: 600; line-height: 1.6; letter-spacing: .14em; }
.required-indicator { padding: 1px 8px; background: var(--shu); color: #ffffff; font-size: 12px; font-weight: 600; line-height: 1.7; letter-spacing: .1em; }
.optional-indicator { padding: 0 8px; border: 1px solid var(--ln-d); color: var(--tx-2); font-size: 12px; font-weight: 400; line-height: 1.7; letter-spacing: .1em; }
.input-wamodern, .select-wamodern, .textarea-wamodern { display: block; width: 100%; min-height: 60px; padding: 15px 18px; border: 1px solid rgba(29, 27, 24, .5); border-radius: 0; background-color: rgba(255, 255, 255, .62); color: var(--tx); font-family: inherit; font-size: 16px; line-height: 1.6; letter-spacing: .04em; -webkit-appearance: none; appearance: none; transition: border-color .3s, background-color .3s, box-shadow .3s; }
.input-wamodern:focus, .select-wamodern:focus, .textarea-wamodern:focus { outline: 2px solid transparent; border-color: var(--gold-d); background-color: #ffffff; box-shadow: 0 0 0 1px var(--gold-d); }
.select-wamodern { padding-right: 46px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none' stroke='%231d1b18' stroke-width='1.2'%3E%3Cpath d='M1 1.5l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; }
.textarea-wamodern { min-height: 190px; resize: vertical; }
.textarea-wamodern::placeholder { color: #6f685c; }
.form-submit-wamodern { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 36px; margin-top: 8px; }
.submit-btn-wamodern { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; width: min(100%, 320px); min-height: 66px; padding: 10px 30px; border: 0; border-radius: 0; background: var(--ink); color: var(--on); font-family: inherit; font-size: 16px; font-weight: 600; line-height: 1.5; letter-spacing: .3em; cursor: pointer; transition: color .45s var(--ease); }
.submit-btn-wamodern:not(:disabled):hover { color: var(--ink); }
.submit-btn-wamodern:active { transform: translateY(1px); }
.submit-btn-wamodern:disabled { opacity: .6; cursor: progress; }
.btn-decoration-wamodern { display: none; }
.tr-form__policy { font-size: 13.5px; color: var(--tx-2); }
.tr-form__nojs { margin-bottom: 28px; padding: 14px 18px; border: 1px solid var(--shu); font-size: 14.5px; }

/* ---------- フッター ---------- */
.tr-footer { position: relative; padding: 112px 0 44px; background: var(--ink-3); color: var(--on-2); }
.tr-foot__lead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 40px; padding-bottom: 56px; border-bottom: 1px solid var(--ln-gold); }
.tr-foot__logo { display: block; width: auto; height: 58px; filter: brightness(0) invert(1); opacity: .92; }
.tr-foot__tag { font-size: clamp(19px, 2.3vw, 31px); line-height: 1.5; letter-spacing: .3em; color: var(--on); }
.tr-foot__top { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px; padding: 64px 0 72px; }
.tr-foot__ttl { margin-bottom: 18px; font-size: 15px; line-height: 1.6; letter-spacing: .2em; color: var(--gold); }
.tr-foot__col li a { display: inline-block; padding: 5px 0; font-size: 14px; line-height: 1.8; text-decoration: none; transition: color .3s; }
.tr-foot__col li a:hover { color: var(--gold-l); }
.tr-foot__info p:not(.tr-foot__ttl) { font-size: 13.5px; line-height: 2.05; }
.copyright { padding-top: 28px; border-top: 1px solid var(--ln-on); font-size: 12.5px; letter-spacing: .12em; color: var(--on-3); text-align: center; }

/* ---------- スマホの画面下：相談の入口 ---------- */
.tr-dock { display: none; }

/* ---------- スクリプトが動かない・届かないとき（html に tr-js が付かない／外される）----------
   手書きの文字は書き終えた形で見せ、開けないメニューのボタンは出さず、分野へのリンクはフッターに必ず出す */
html:not(.tr-js) .hero .letter { opacity: 1; stroke-dashoffset: 0; fill: rgba(255, 255, 255, .9); }
html:not(.tr-js) .loading-screen { display: none; }
html:not(.tr-js) .tr-menu-btn { display: none; }
html:not(.tr-js) .tr-foot__top > .tr-foot__col { display: block !important; }

/* ---------- 落ち葉：生成りの面では今までどおり、墨と写真の面では金色に ---------- */
.leaf-particle { width: 104px; height: 104px; margin: -12px 0 0 -12px; filter: none; }
.leaf-particle::before, .leaf-particle::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: center / contain no-repeat; transition: opacity 1s ease; }
.leaf-particle::before { background-image: url(/img/top2026/leaf-ink.webp?v=26c3a608); }
.leaf-particle::after { background-image: url(/img/top2026/leaf-gold.webp?v=6f417cc3); opacity: 0; }
.leaf-animation-layer.is-dark .leaf-particle::before { opacity: 0; }
.leaf-animation-layer.is-dark .leaf-particle::after { opacity: 1; }
/* ヒーローが画面の外にある間は、写真と「Scroll」の印の動きを止めておく（見えているときの動きは今までどおり） */
html.tr-hero-away .hero .slide, html.tr-hero-away .scroll-indicator, html.tr-hero-away .mouse::before { animation-play-state: paused; }
/* スマホなどの縦長の画面では、ヒーローの写真は中央の縦長の部分しか見えない。その部分だけを切り出した軽い版を使う（見える絵は同じ。2・3枚目は tree-top.js） */
@media (max-aspect-ratio: 3/4) {
  .hero-slideshow .slide:first-child { background-image: url(/img/top2026/haikei1-m.webp) !important; }
}

@media (min-width: 1024px) {
  .tr-office__grid { padding-bottom: 112px; }
  .tr-sec--group { padding-top: 112px; }
}

/* ==========================================================================
   画面の幅に合わせる
   ========================================================================== */
@media (max-width: 1099px) {
  .tr-header__tel { display: none; }
}
@media (max-width: 1279px) {
  .tr-header__in { gap: 22px; }
  .tr-fee { grid-template-columns: minmax(0, 1fr) auto; }
  .tr-fee h3 { grid-column: 1 / -1; }
}
@media (max-width: 1179px) {
  .tr-byobus { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
  .tr-tan__name { text-wrap: balance; }
  .tr-steps { grid-template-columns: 1fr 1fr; gap: 56px 40px; }
  .tr-steps__rule { display: none; }
  .tr-steps li { border-top: 1px solid rgba(198, 167, 107, .6); }
  .tr-steps li::before { top: -5px; }
}
@media (max-width: 1023px) {
  :root { --hd: 68px; --gut: 36px; --sec: 136px; }
  .tr-nav, .tr-header__cta { display: none; }
  .tr-header__in { width: min(100% - 32px, 1360px); gap: 8px; }
  .tr-logo img { height: 42px; }
  .tr-header__sp { display: flex; align-items: center; gap: 4px; }
  .tr-header__sp .c-tel01, .tr-menu-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 58px; height: 54px; padding: 0 6px; font-size: 12px; font-weight: 600; line-height: 1.2; letter-spacing: .08em; text-decoration: none; }
  .tr-menu-btn__bars { position: relative; display: block; width: 24px; height: 10px; margin: 6px 0 5px; }
  .tr-menu-btn__bars i { position: absolute; left: 0; right: 0; height: 1px; background: currentColor; transition: transform .45s var(--ease); }
  .tr-menu-btn__bars i:nth-child(1) { top: 0; }
  .tr-menu-btn__bars i:nth-child(2) { top: 9px; }
  .tr-menu-btn[aria-expanded="true"] .tr-menu-btn__bars i:nth-child(1) { transform: translateY(4.5px) rotate(24deg); }
  .tr-menu-btn[aria-expanded="true"] .tr-menu-btn__bars i:nth-child(2) { transform: translateY(-4.5px) rotate(-24deg); }
  .tr-foot__top { grid-template-columns: 1fr 1fr; gap: 44px 36px; }
  .tr-gate__panel { gap: 20px; }
  .tr-gate__ttl { font-size: 26px; letter-spacing: .1em; white-space: nowrap; }
  .tr-gate__go { width: 54px; height: 54px; }
}
/* タブレット：ヘッダーに「無料相談」を出す（スマホは画面下の帯、パソコンは今までどおり） */
@media (min-width: 768px) and (max-width: 1023px) {
  .tr-header__cta { display: inline-flex; min-height: 44px; padding: 6px 22px; }
  .tr-foot__col li a { padding: 10px 0; }
}
@media (min-width: 1024px) and (pointer: coarse) {
  .tr-foot__col li a { padding: 10px 0; }
}
@media (max-width: 1179px) {
  .tr-ledger a.c-tel01 { display: inline-block; padding: 5px 0; }
  .tr-group .tr-link { padding-top: 15px; }
  .tr-form__policy a { display: inline-block; padding: 12px 0; }
}
@media (max-width: 899px) {
  .tr-door { padding: 136px 0 120px; }
  .tr-door__grid { grid-template-columns: 1fr; gap: 72px; }
  .tr-door__side { justify-content: flex-start; gap: 44px; padding-right: 22px; }
  .tr-door__fig { max-width: 300px; }
  .tr-split { grid-template-columns: 1fr; gap: 0; }
  .tr-split__head { position: static; margin-bottom: 56px; }
  .tr-split__head .tr-line { display: inline; overflow: visible; }
  .tr-split__head .tr-line > span { display: inline; }
  html.tr-io .tr-split__head .tr-lines .tr-line > span { transform: none; }
  .tr-office__grid { grid-template-columns: 1fr; gap: 64px; padding-top: 48px; }
  .tr-map { position: static; max-width: 520px; margin-left: auto; margin-right: auto; }
  .tr-ways { grid-template-columns: 1fr; }
  .tr-way { padding: 30px 0 34px; }
  .tr-way--tel { grid-row: auto; padding: 36px 0 34px; border-right: 0; }
  .tr-way + .tr-way { border-top: 1px solid var(--ln-on); }
  .tr-fee { grid-template-columns: 1fr; padding: 40px 36px; }
  .tr-fee__btns { grid-template-columns: 1fr 1fr; }
  .tr-news__item { grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px 20px; padding: 28px 8px; }
  .tr-news__ttl { grid-column: 1 / 3; grid-row: 2; }
  .tr-news__item .tr-arrow { grid-column: 3; grid-row: 1 / span 2; }
}
@media (max-width: 767px) {
  :root { --hd: 62px; --gut: 24px; --sec: 92px; }
  .tr-header, .tr-menu, .tr-rail, .tr-door, .tr-gatebox, .unified-background, .tr-footer, .tr-dock { font-size: 15.5px; }
  .tr-logo img { height: 38px; }
  .tr-eyebrow { gap: 14px; font-size: 18px; }
  .tr-eyebrow::before { width: 36px; }
  .tr-head { margin-bottom: 52px; }
  .tr-head__title { margin-top: 20px; font-size: clamp(28px, 8.2vw, 36px); letter-spacing: .12em; }
  .tr-head__lead { margin-top: 22px; }
  .tr-head--row { flex-direction: column; align-items: flex-start; gap: 28px; }
  .tr-ghost { top: 28px; font-size: 34vw; }
  .tr-btn { min-height: 56px; padding: 10px 26px; white-space: normal; }

  .tr-door { padding: 104px 0 88px; }
  .tr-door__title { margin-top: 28px; font-size: min(46px, 12.4vw); line-height: 1.4; }
  .tr-door__rule { margin: 40px 0 36px; }
  .tr-door__text p { line-height: 2.1; }
  .tr-door__grid { gap: 52px; }
  .tr-door__fig { max-width: 250px; }
  .tr-door__win { aspect-ratio: 3 / 3.5; }
  @supports not (aspect-ratio: 1 / 1) { .tr-door__win { padding-top: 117%; } }
  .tr-door__fig::after { top: 16px; right: -16px; bottom: -16px; left: 16px; }
  .tr-door__motto { font-size: 13px; }

  .tr-gate { grid-template-columns: 1fr; }
  .tr-gate__panel { min-height: 236px; padding: 28px 24px; }
  .tr-gate__panel + .tr-gate__panel { border-left: 0; border-top: 1px solid var(--ln-gold); }
  .tr-gate__en { font-size: 18px; }
  .tr-gate__links { grid-template-columns: 1fr; }
  .tr-gate__links a { justify-content: space-between; min-height: 62px; padding: 10px 24px; }
  .tr-gate__links a + a { border-left: 0; border-top: 1px solid var(--ln-on); }

  .tr-byobus { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .tr-byobu__cover { padding: 20px 20px; }
  .tr-byobu__count { display: none; }
  .tr-byobu__title { font-size: 21px; }
  .tr-tan__tab { min-height: 72px; padding: 12px 18px 12px 18px; grid-template-columns: 36px minmax(0, 1fr) 30px; }
  .tr-tan__name { font-size: 17.5px; }
  .tr-tan__body { padding: 0 18px 26px 18px; }
  .tr-tan__purpose { font-size: 16.5px; }
  .tr-next { margin-top: 48px; padding-top: 32px; }
  .tr-next .tr-btn { width: 100%; }

  .tr-steps { grid-template-columns: 1fr; gap: 0; border-left: 1px solid rgba(198, 167, 107, .5); }
  .tr-steps li { display: grid; grid-template-columns: 66px minmax(0, 1fr); gap: 4px 14px; padding: 0 0 40px 26px; border-top: 0; }
  .tr-steps li:last-child { padding-bottom: 0; }
  .tr-steps li::before { left: -5px; top: 14px; }
  .tr-steps__no { grid-row: 1 / span 2; font-size: 46px; }
  .tr-steps h3 { margin-top: 4px; font-size: 20px; }
  .tr-steps p { margin-top: 4px; }
  .tr-fee { margin-top: 64px; padding: 32px 24px; gap: 18px; }
  .tr-fee h3 { font-size: 20px; }
  .tr-fee__btns { grid-template-columns: 1fr; }

  .tr-split__head { margin-bottom: 44px; }
  .tr-feat li { grid-template-columns: 58px minmax(0, 1fr); gap: 8px 14px; padding: 34px 0; }
  .tr-feat__no { grid-row: 1; font-size: 38px; }
  .tr-feat p { grid-column: 1 / -1; }
  .tr-tan__lead, .tr-steps p, .tr-gate__sub { font-size: 15.5px; }
  .tr-group__tag, .tr-group p.tr-group__tag, .tr-way__label small { font-size: 13px; }
  .tr-feat h3 { font-size: 20px; letter-spacing: .06em; }

  .tr-office__band { min-height: 260px; padding-bottom: 40px; }
  .tr-office__grid { gap: 52px; padding-top: 36px; }
  .tr-plate { gap: 20px; padding-bottom: 30px; }
  .tr-plate__name { font-size: 22px; letter-spacing: .1em; }
  .tr-plate img { width: 68px; height: 68px; }
  .tr-ledger > div { grid-template-columns: 5.6em minmax(0, 1fr); gap: 2px 14px; padding: 16px 0; }
  .tr-ledger dt { padding-top: 4px; font-size: 13px; letter-spacing: .14em; }
  .tr-ledger dd { font-size: 15px; line-height: 1.8; }
  .tr-map { padding: 22px; }
  .tr-map img { max-width: 260px; margin-left: auto; margin-right: auto; }
  .tr-map .tr-btn { gap: 12px; padding: 10px 16px; letter-spacing: .06em; }
  .tr-group { grid-template-columns: 1fr; }
  .tr-group li { padding: 30px 22px 28px; gap: 8px; }
  .tr-group h3 { font-size: 21px; }

  .tr-news__item { padding: 24px 4px; }
  .tr-news__date { font-size: 19px; }
  .tr-news__ttl { font-size: 16.5px; }
  .tr-news { min-height: 430px; }
  .tr-faq summary { grid-template-columns: 30px minmax(0, 1fr) 30px; gap: 10px; padding: 22px 0; }
  .tr-faq__mark { font-size: 26px; }
  .tr-faq__q { font-size: 17px; }
  .tr-faq__a { padding: 0 6px 26px 40px; }

  .tr-way--tel a.c-tel01 { font-size: min(60px, 14.6vw); }
  .tr-way .consultation-btn { min-height: 64px; padding: 12px 20px; }
  .tr-sheet { margin-top: 72px; padding: 56px 22px 40px; }
  .tr-sheet::before { top: 8px; right: 8px; bottom: 8px; left: 8px; }
  .tr-sheet__head { margin-bottom: 34px; }
  .tr-shiori { top: -46px; right: 18px; width: 88px; }
  .form-grid-wamodern { grid-template-columns: 1fr; gap: 24px; }
  .submit-btn-wamodern { width: 100%; }

  .tr-footer { padding: 80px 0 calc(40px + 70px + env(safe-area-inset-bottom, 0px)); }
  .tr-foot__lead { flex-direction: column; align-items: flex-start; padding-bottom: 40px; }
  .tr-foot__logo { height: 46px; }
  .tr-foot__tag { letter-spacing: .2em; }
  .tr-foot__top { grid-template-columns: 1fr; padding: 40px 0 44px; gap: 36px; }
  /* 分野の一覧は、スマホではメニューと業務案内にあるので、フッターでは省く */
  .tr-foot__top > .tr-foot__col:nth-child(1), .tr-foot__top > .tr-foot__col:nth-child(2) { display: none; }
  .tr-foot__col li a { padding: 10px 0; }
  .tr-contact { padding-bottom: 96px; }

  .tr-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1050; display: grid; grid-template-columns: 1.3fr 1fr 1fr; padding-bottom: env(safe-area-inset-bottom, 0px); background: var(--ink); border-top: 1px solid var(--gold-line); color: var(--on); transform: translateY(105%); visibility: hidden; transition: transform .45s var(--ease), visibility 0s .45s; }
  .tr-dock.is-on { transform: none; visibility: visible; transition: transform .45s var(--ease), visibility 0s 0s; }
  .tr-dock a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 62px; padding: 7px 4px; font-size: 12.5px; font-weight: 600; line-height: 1.3; letter-spacing: .08em; text-decoration: none; }
  .tr-dock a + a { border-left: 1px solid var(--ln-on); }
  .tr-dock a.c-tel01 { background: var(--gold); color: var(--ink); }
  .tr-dock a:focus-visible { outline-offset: -5px; }
  .tr-dock a.c-tel01:focus-visible { outline-color: var(--ink); }
}
@media (max-width: 359px) {
  :root { --gut: 18px; }
  .tr-gate__ttl { font-size: 23px; letter-spacing: .06em; }
  .tr-header__sp .c-tel01, .tr-menu-btn { min-width: 50px; }
  .tr-dock a { font-size: 11.5px; }
}

/* 「動きを減らす」設定の端末：新しい部品の動きは止める（ヒーローと落ち葉は今までどおり） */
@media (prefers-reduced-motion: reduce) {
  html, html.tr-smooth { scroll-behavior: auto; }
  html.tr-io .tr-rv, html.tr-io .tr-lines .tr-line > span, html.tr-io .tr-draw { opacity: 1; transform: none; transition: none; }
  .tr-btn::before, .tr-way .consultation-btn::before, .submit-btn-wamodern::before, .tr-gate__ph, .tr-arrow, .tr-dock, .tr-menu-btn__bars i { transition: none; }
  html.tr-js .tr-tan, html.tr-js .tr-tan__panel, html.tr-js .tr-tan__in, html.tr-js .tr-tan.is-open .tr-tan__in { transition: none; }
}
@media print {
  .loading-screen, .tr-header, .tr-menu, .tr-rail, .tr-dock, .leaf-animation-layer, .scroll-indicator, .tr-ghostbox { display: none !important; }
  .is-ink, .tr-footer, .unified-background, body { background: #ffffff !important; color: #000000 !important; }
  html.tr-io .tr-rv, html.tr-io .tr-lines .tr-line > span, html.tr-io .tr-draw { opacity: 1 !important; transform: none !important; }
  html.tr-js .tr-tan__panel { grid-template-rows: 1fr !important; }
  html.tr-js .tr-tan__in { visibility: visible !important; }
  .is-ink *, .tr-footer * { color: #000000 !important; }
  .tr-office__band, .tr-office__band *, .tr-byobu__cover, .tr-byobu__cover *, .tr-tan__pm { color: #000000 !important; }
  .tr-office__band { min-height: 0 !important; padding: 24px 0 !important; background: none !important; }
  .tr-office__ph, .tr-office__band::after, .tr-skip { display: none !important; }
  .tr-map img { filter: invert(1); }
}
