/* ==========================================================================
   てらすよ横浜 デザイン用CSS
   ・色・文字の種類・基本サイズは theme.json（外観 → エディター → スタイル で変更可）
   ・ここではレイアウトと最小限の装飾だけを扱います（文章・画像はここに書きません）
   ========================================================================== */

:root {
	--tr-blue: var(--wp--preset--color--primary, #2679A8);
	--tr-blue-dark: var(--wp--preset--color--primary-dark, #1D5E85);
	--tr-blue-soft: var(--wp--preset--color--accent-soft, #D9EFF8);
	--tr-blue-pale: #F1F8FB;
	--tr-green: var(--wp--preset--color--secondary, #5E9E74);
	--tr-green-soft: var(--wp--preset--color--secondary-soft, #E2F0E6);
	--tr-text: var(--wp--preset--color--contrast, #263746);
	--tr-muted: var(--wp--preset--color--muted, #5B6B78);
	--tr-border: var(--wp--preset--color--border, #DCE6EC);
	--tr-radius: 4px;
}

html { scroll-behavior: smooth; }
body { -webkit-text-size-adjust: 100%; overflow-wrap: anywhere; }
img { height: auto; }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid #4D9CC9; outline-offset: 2px; }
#services { scroll-margin-top: 16px; }
h1, h2, h3, summary, .tr-kicker, .tr-link-list a { word-break: auto-phrase; }

/* ---------- ヘッダー ----------
   ロゴの太陽マークは元のデータの色（#F59E42）。サイト全体の青い配色とは別に固定しています。 */
.tr-header { background: #fff; border-bottom: 1px solid var(--tr-border); padding-top: 14px !important; padding-bottom: 14px !important; }
.tr-header__inner { gap: 16px; align-items: center; }
.tr-brand { gap: 12px !important; align-items: center !important; min-width: 0; }
.tr-brand__text { gap: 0 !important; min-width: 0; }
.tr-brand__logo, .tr-footer__logo .wp-block-site-logo { margin: 0 !important; flex: none; line-height: 0; }
.tr-brand__logo img, .tr-footer__logo .wp-block-site-logo img { height: auto; }
.tr-footer__logo { gap: 10px !important; align-items: center !important; }
.tr-brand .wp-block-site-title { margin: 0; line-height: 1.3; font-size: 1.35rem; }
.tr-brand .wp-block-site-title a, .tr-footer .wp-block-site-title a { display: inline-flex; align-items: center; gap: .45em; color: var(--tr-text); text-decoration: none; }
/* ロゴ画像はWordPressの「サイトロゴ」ブロック（メディアライブラリの画像）で表示します */
.tr-brand__sub { margin: 0 !important; font-size: .74rem; color: var(--tr-muted); letter-spacing: .04em; line-height: 1.4; }
.tr-header__nav { gap: 22px; align-items: center; }
.tr-header .wp-block-navigation__container { gap: 1.5em; }
.tr-header .wp-block-navigation-item__content { color: var(--tr-text); padding: .3em 0; font-weight: 600; }
.tr-header .wp-block-navigation-item__content:hover { color: var(--tr-blue); }
.tr-header__cta .wp-block-button__link { padding: .7em 1.4em; font-size: .95rem; }
.tr-header__tel { text-align: right; line-height: 1.3; }
.tr-header__tel p { margin: 0 !important; }
.tr-header__tel-number { font-weight: 700; font-size: 1.15rem; }
.tr-header__tel-number a { color: var(--tr-text); text-decoration: none; }
.tr-header__tel-hours { font-size: .72rem; color: var(--tr-muted); }
.tr-nav-contact-mobile { display: none !important; }
.tr-header .wp-block-navigation__responsive-container-open { padding: 8px; border: 1px solid var(--tr-border); border-radius: var(--tr-radius); }
.tr-header .wp-block-navigation__responsive-container-open svg { width: 28px; height: 28px; }
.tr-header .wp-block-navigation__responsive-container.is-menu-open { background: #fff; }
.tr-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { align-items: stretch; padding-top: 3.5rem; }
.tr-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 0; font-size: 1.1rem; align-items: stretch; }
.tr-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { width: 100%; border-bottom: 1px solid var(--tr-border); }
.tr-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { padding: .9em 0; }
.tr-header .wp-block-navigation__responsive-container.is-menu-open .tr-nav-contact-mobile { display: block !important; }
@media (max-width: 1100px) { .tr-header__tel { display: none; } }
@media (max-width: 781px) { .tr-header__cta { display: none !important; } .tr-brand__sub { font-size: .7rem; } }

/* ---------- 固定ページのタイトル部分 ---------- */
.tr-main { margin-top: 0 !important; }
.tr-page-head { background: var(--tr-blue-pale); border-bottom: 1px solid var(--tr-border); padding-top: clamp(36px, 6vw, 72px) !important; padding-bottom: clamp(28px, 5vw, 56px) !important; margin-bottom: clamp(32px, 5vw, 56px); }
.tr-page-head h1, .tr-page-head .wp-block-post-title { margin: 0; font-size: clamp(1.7rem, 4vw, 2.6rem); color: var(--tr-text); }
.tr-page-head .wp-block-post-date, .tr-page-head .wp-block-post-terms { color: var(--tr-muted); font-size: .9rem; margin: 0 0 .3em; }
.tr-page-content { padding-bottom: clamp(56px, 8vw, 96px); }
.tr-page-content:has(> .tr-cta:last-child) { padding-bottom: 0; }
.tr-main--landing .tr-page-content { padding-bottom: 0; }
.tr-back-links { margin-top: 2rem; padding-bottom: 3rem; }
.tr-page-content > h2, .tr-page-content > .wp-block-group:not(.alignfull):not(.tr-box-muted) > h2 { margin-top: 2.6em; font-size: clamp(1.4rem, 2.6vw, 1.75rem); color: var(--tr-text); padding-left: .7em; border-left: 4px solid var(--tr-blue); line-height: 1.4; }
.tr-page-content > .alignfull { margin-block-start: 0 !important; margin-block-end: 0 !important; }
.tr-page-content > .alignfull.tr-cta { margin-block-start: clamp(56px, 8vw, 96px) !important; }
.wp-site-blocks > footer.wp-block-template-part, .wp-site-blocks > main, .wp-site-blocks > .tr-main { margin-block-start: 0 !important; }

/* ---------- 共通 ---------- */
h1, h2, h3 { color: var(--tr-text); }
.tr-kicker { font-size: .88rem !important; font-weight: 700; color: var(--tr-blue); letter-spacing: .06em; margin-bottom: .4em !important; }
.tr-tag { display: inline-block; font-size: .78rem !important; font-weight: 700; color: var(--tr-blue-dark); background: var(--tr-blue-soft); padding: .15em .65em !important; border-radius: 2px; margin: 0 0 .6em !important; }
.tr-more { font-weight: 700; margin-top: .8em !important; }
.tr-more a { text-decoration: none; }
.tr-more a::after { content: " →"; }
.tr-more a:hover { text-decoration: underline; }
.tr-center { text-align: center; }
.tr-center.wp-block-buttons, .wp-block-buttons.tr-center { justify-content: center; }
.tr-box-muted { background: var(--tr-blue-pale); border: 1px solid var(--tr-border); border-radius: var(--tr-radius); padding: clamp(20px, 3vw, 32px) !important; margin-top: 2rem !important; }
.tr-box-muted h2, .tr-box-muted h3 { margin-top: 0 !important; font-size: 1.15rem; border: 0 !important; padding: 0 !important; }
.tr-box-muted > *:last-child { margin-bottom: 0; }

/* ---------- トップページのセクション ---------- */
.tr-section { padding-top: clamp(56px, 8vw, 104px) !important; padding-bottom: clamp(56px, 8vw, 104px) !important; }
.tr-section--soft { background: var(--tr-blue-pale); }
.tr-section--line { background: #fff; border-top: 1px solid var(--tr-border); }
.tr-section--compact { padding-top: 40px !important; padding-bottom: 40px !important; border-top: 1px solid var(--tr-border); }
.tr-main--landing .tr-section > *:not(.alignfull) { max-width: var(--wp--style--global--wide-size) !important; }
.tr-section__head { margin-bottom: clamp(28px, 4vw, 48px) !important; }
.tr-section__head h2, .tr-two-col h2 { margin: 0 0 .4em; font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.35; }
.tr-section__lead, .tr-section__head p { color: var(--tr-muted); margin: 0; font-size: 1.02rem; }

/* ---------- ファーストビュー（写真＋文章） ---------- */
.tr-hero-cover { padding-top: clamp(48px, 7vw, 96px) !important; padding-bottom: clamp(48px, 7vw, 96px) !important; align-items: center !important; }
@media (min-width: 782px) { .tr-hero-cover { min-height: clamp(520px, 44vw, 700px) !important; } }
.tr-hero-cover .wp-block-cover__inner-container { width: 100%; color: var(--tr-text) !important; }
.tr-hero-cover__inner { width: 100%; }
.tr-hero-panel { max-width: 620px; background: rgba(255, 255, 255, .95); border-radius: var(--tr-radius); padding: clamp(28px, 4vw, 48px) !important; }
.tr-hero-panel h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.4; letter-spacing: .03em; margin: .1em 0 .55em; color: var(--tr-text); }
.tr-hero__sub { font-size: 1.05rem; line-height: 1.9; margin-bottom: 1.6rem !important; }
.tr-hero__area { font-size: .88rem !important; color: var(--tr-muted); margin-top: 1.1rem !important; margin-bottom: 0 !important; }
@media (max-width: 781px) {
	.tr-hero-cover { display: block !important; min-height: 0 !important; padding: 0 !important; background: #fff; }
	.tr-hero-cover img.wp-block-cover__image-background { position: relative !important; display: block; width: 100%; height: auto !important; aspect-ratio: 16 / 10; object-fit: cover; }
	.tr-hero-cover .wp-block-cover__background { display: none; }
	.tr-hero-cover .wp-block-cover__inner-container { position: static; box-sizing: border-box; width: 100% !important; max-width: 100%; padding: 24px 16px 36px; }
	.tr-hero-cover__inner, .tr-hero-panel { max-width: 100% !important; box-sizing: border-box; }
	.tr-hero-panel { background: transparent; padding: 0 !important; }
	.tr-hero-cover .wp-block-buttons { flex-direction: column; align-items: stretch; }
	.tr-hero-cover .wp-block-button, .tr-hero-cover .wp-block-button__link { width: 100%; }
}

/* ---------- 準備中のお知らせ（トップページに1か所。不要になったらブロックごと削除） ---------- */
.tr-notice-strip { background: var(--tr-blue-soft); padding-top: 18px !important; padding-bottom: 18px !important; }
.tr-notice-strip__text { margin: 0 auto !important; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; text-align: center; font-weight: 700; font-size: 1.05rem; color: var(--tr-blue-dark); }
.tr-notice-strip__text::before { content: ""; flex: none; width: .55em; height: .55em; margin-right: .6em; border-radius: 50%; background: var(--tr-blue); }

/* ---------- サービス（写真と文章の横並び） ---------- */
.tr-feature { gap: clamp(28px, 5vw, 72px) !important; align-items: center !important; margin-bottom: clamp(48px, 7vw, 88px) !important; }
.tr-feature > .wp-block-column:first-child { flex: 0 0 54% !important; }
.tr-feature > .wp-block-column:last-child { flex: 1 1 0 !important; min-width: 0; }
@media (max-width: 781px) { .tr-feature > .wp-block-column:first-child { flex-basis: 100% !important; } }
.tr-feature .wp-block-image { margin: 0; }
.tr-feature .wp-block-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--tr-radius); }
.tr-feature h3 { font-size: clamp(1.5rem, 2.8vw, 2rem); margin: 0 0 .5em; }
.tr-feature p { line-height: 1.9; }
.tr-feature .wp-block-buttons { margin-top: 1.4rem; }
@media (min-width: 782px) { .tr-feature--reverse { flex-direction: row-reverse; } }
.tr-service-grid { gap: clamp(28px, 4vw, 48px) !important; border-top: 1px solid var(--tr-border); padding-top: clamp(40px, 6vw, 64px); }
.tr-service-item > * { margin-top: 0 !important; }
.tr-service-item .wp-block-image { margin-bottom: 18px !important; }
.tr-service-item .wp-block-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--tr-radius); }
.tr-service-item h3 { font-size: 1.35rem; margin-bottom: .4em !important; }
.tr-service-item h3 a { color: var(--tr-text); text-decoration: none; }
.tr-service-item h3 a:hover { color: var(--tr-blue); }
.tr-service-item p { line-height: 1.85; margin-bottom: 0; }

/* ---------- ご相談の例（リンクのリスト） ---------- */
.tr-link-list { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 12px 24px; }
.tr-link-list li { margin: 0; }
.tr-link-list a { display: block; height: 100%; box-sizing: border-box; padding: 18px 44px 18px 20px; position: relative; background: #fff; border: 1px solid var(--tr-border); border-radius: var(--tr-radius); color: var(--tr-text); text-decoration: none; font-weight: 600; }
.tr-link-list a::after { content: "→"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--tr-blue); }
.tr-link-list a:hover { border-color: var(--tr-blue); color: var(--tr-blue-dark); }

/* ---------- ご依頼の流れ（01〜05） ---------- */
.tr-flow { list-style: none; padding: 0 !important; margin: 0; counter-reset: trflow; display: grid; gap: 0; }
.tr-flow > li { counter-increment: trflow; position: relative; padding: 18px 0 18px 64px; margin: 0; line-height: 1.8; border-top: 1px solid var(--tr-border); }
.tr-flow > li:last-child { border-bottom: 1px solid var(--tr-border); }
.tr-flow > li::before { content: counter(trflow, decimal-leading-zero); position: absolute; left: 0; top: 14px; font-size: 1.9rem; font-weight: 700; color: var(--tr-blue); line-height: 1.2; letter-spacing: .02em; }
.tr-flow strong { color: var(--tr-text); font-size: 1.1rem; }
@media (min-width: 900px) {
	.tr-section .tr-flow { grid-template-columns: repeat(5, 1fr); gap: 0 28px; }
	.tr-section .tr-flow > li { padding: 58px 0 0; border-top: 2px solid var(--tr-blue); border-bottom: 0; font-size: .95rem; }
	.tr-section .tr-flow > li::before { top: 12px; }
}

/* ---------- 対応エリア・料金 ---------- */
.tr-two-col { gap: clamp(32px, 6vw, 88px) !important; }
.tr-two-col h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); }
.tr-area-main { font-size: 1.1rem; }
.tr-area-list { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 8px; margin: .8rem 0 1.2rem; }
.tr-area-list li { margin: 0; padding: .3em 1em; border-radius: 2px; background: var(--tr-green-soft); color: #2F5E40; font-weight: 700; font-size: .95rem; }
.tr-area-sub { font-size: .95rem; color: var(--tr-muted); }
.tr-price-box { border: 1px solid var(--tr-border); border-radius: var(--tr-radius); background: #fff; padding: 22px 24px !important; }
.tr-price-box > * { margin-top: 0 !important; }
.tr-price-text { margin-bottom: .9em !important; }
.tr-price-label { font-size: .84rem !important; font-weight: 700; color: var(--tr-muted); margin-bottom: .3em !important; }
.tr-price-factors { margin: 0 !important; padding-left: 1.2em !important; font-size: .95rem; }
.tr-price-factors li { margin: .15em 0; }
.tr-price-grid { gap: 28px !important; }
.tr-price-grid h3 { font-size: 1.15rem; margin-bottom: .5em; }

/* ラベル（ブロックの「スタイル」から選べます） */
[class*="is-style-tr-badge-"] { display: inline-block; width: auto !important; max-width: max-content; padding: .15em .7em !important; border-radius: 2px; font-size: .78rem !important; font-weight: 700; letter-spacing: .04em; line-height: 1.7; margin-bottom: .7em !important; }
.is-style-tr-badge-fixed { background: var(--tr-blue); color: #fff; }
.is-style-tr-badge-provisional { background: #FFF3E0; color: #8A4B0A; border: 1px solid #F0C98F; }
.is-style-tr-badge-estimate { background: var(--tr-green-soft); color: #2F5E40; }
.is-style-tr-badge-preparing { background: #EEF1F3; color: #4A5560; }
.is-style-tr-lead { font-size: 1.1rem; line-height: 1.95; }
.is-style-tr-note { font-size: .9rem; color: var(--tr-muted); line-height: 1.8; }

/* 囲み（ブロックの「スタイル」から選べます） */
.tr-card, .is-style-tr-card { background: #fff; border: 1px solid var(--tr-border); border-radius: var(--tr-radius); padding: 22px 24px !important; }
.tr-card > .wp-block-image:first-child { margin: -22px -24px 18px !important; }
.tr-card > .wp-block-image:first-child img, .tr-card .wp-block-post-featured-image img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.is-style-tr-panel { background: var(--tr-blue-pale); border-radius: var(--tr-radius); padding: clamp(20px, 3vw, 32px) !important; }
.is-style-tr-notice { background: var(--tr-blue-soft); border-left: 4px solid var(--tr-blue); padding: 14px 18px !important; }
.is-style-tr-notice > * { margin-top: .3em !important; margin-bottom: .3em !important; }

/* ---------- サービスページ（LP）の冒頭 ---------- */
.tr-service-hero { gap: clamp(24px, 5vw, 64px) !important; align-items: center !important; margin-bottom: 1.5rem !important; }
.tr-service-hero .wp-block-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--tr-radius); }
.tr-service-hero .is-style-tr-lead { font-size: 1.12rem; }
.tr-work-table thead th { background: var(--tr-blue); color: #fff; }
.tr-work-table td:first-child { font-weight: 700; width: 30%; background: var(--tr-blue-pale); }
@media (max-width: 599px) { .tr-work-table td:first-child { width: 36%; } .tr-work-table th, .tr-work-table td { padding: .6em .7em; font-size: .93rem; } }

/* ---------- リスト ---------- */
.is-style-tr-check, .is-style-tr-cross { list-style: none; padding-left: 0 !important; }
.is-style-tr-check li, .is-style-tr-cross li { position: relative; padding-left: 1.7em; margin: .45em 0; }
.is-style-tr-check li::before { content: ""; position: absolute; left: .15em; top: .55em; width: .85em; height: .45em; border-left: 2.5px solid var(--tr-blue); border-bottom: 2.5px solid var(--tr-blue); transform: rotate(-45deg); }
.is-style-tr-cross li::before, .is-style-tr-cross li::after { content: ""; position: absolute; left: .2em; top: .85em; width: .85em; height: 2px; background: #8B97A1; transform: rotate(45deg); }
.is-style-tr-cross li::after { transform: rotate(-45deg); }

/* ---------- よくある質問 ---------- */
.wp-block-details { background: #fff; border: 1px solid var(--tr-border); border-radius: var(--tr-radius); overflow: hidden; }
.wp-block-details + .wp-block-details { margin-top: 10px !important; }
.wp-block-details summary { list-style: none; cursor: pointer; padding: 18px 50px 18px 50px; position: relative; font-weight: 700; line-height: 1.6; color: var(--tr-text); }
.wp-block-details summary::before { content: "Q"; position: absolute; left: 18px; top: 17px; font-weight: 700; color: var(--tr-blue); font-size: 1.1rem; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--tr-blue); border-bottom: 2px solid var(--tr-blue); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.wp-block-details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.wp-block-details > :not(summary) { margin: 0 20px 0 50px !important; }
.wp-block-details > :not(summary):last-child { padding-bottom: 18px; }
.tr-main--landing .tr-section .wp-block-details { max-width: 900px; }

/* ---------- 表 ---------- */
.wp-block-table table { border-collapse: collapse; width: 100%; background: #fff; }
.wp-block-table th, .wp-block-table td { border: 1px solid var(--tr-border); padding: .85em 1em; vertical-align: top; text-align: left; }
.wp-block-table th { background: var(--tr-blue-pale); color: var(--tr-text); font-weight: 700; }
.wp-block-table tbody th { width: 28%; }
@media (max-width: 599px) {
	.tr-info-table table, .tr-info-table tbody, .tr-info-table tr, .tr-info-table th, .tr-info-table td { display: block; width: 100% !important; box-sizing: border-box; }
	.tr-info-table tr + tr th { border-top: 0; }
	.tr-info-table td { border-top: 0; }
}
.tr-unset { color: var(--tr-muted); }

/* ---------- お問い合わせ案内（青い帯） ---------- */
.tr-cta { background: var(--tr-blue); color: #fff; text-align: center; padding-top: clamp(56px, 8vw, 88px) !important; padding-bottom: clamp(56px, 8vw, 88px) !important; }
.tr-cta h2 { color: #fff; margin-top: 0; font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
.tr-cta p { color: rgba(255, 255, 255, .92); }
.tr-cta .wp-block-buttons { justify-content: center; }
.tr-cta .wp-block-button:not(.is-style-outline) > .wp-block-button__link { background: #fff; color: var(--tr-blue-dark); }
.tr-cta .wp-block-button:not(.is-style-outline) > .wp-block-button__link:hover { background: var(--tr-blue-soft); }
.tr-cta .is-style-outline > .wp-block-button__link { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .85); }
.tr-cta .tr-link-line > .wp-block-button__link { border-color: #06C755; color: #fff; background: #06C755; }
.tr-cta__note { font-size: .88rem !important; margin-top: 1.4rem !important; }
.tr-cta a:not(.wp-block-button__link) { color: #fff; }
@media (max-width: 599px) { .tr-cta .wp-block-buttons { flex-direction: column; align-items: stretch; } .tr-cta .wp-block-button, .tr-cta .wp-block-button__link { width: 100%; } }

/* ---------- 運営者について ---------- */
.tr-about-strip { align-items: center !important; gap: 24px !important; }
.tr-about-strip h3 { margin: 0 0 .3em; font-size: 1.1rem; }
.tr-about-strip p { margin: 0; font-size: .96rem; }
@media (min-width: 782px) { .tr-about-strip > .wp-block-column:last-child { flex: 0 0 auto !important; } }

/* ---------- ボタン ---------- */
.wp-block-button__link { font-weight: 700; }
.wp-block-button.is-style-outline > .wp-block-button__link { background: #fff; color: var(--tr-blue); border: 2px solid var(--tr-blue); padding: calc(.85em - 2px) calc(1.8em - 2px); }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--tr-blue-pale); color: var(--tr-blue-dark); }
.wp-block-button.tr-link-line > .wp-block-button__link { border-color: #06C755; color: #05833A; }
.wp-block-buttons { gap: 12px; }

/* ---------- お知らせ一覧 ---------- */
.tr-news-list .wp-block-post-template { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--tr-border); }
.tr-news-item { padding: 18px 0 !important; border-bottom: 1px solid var(--tr-border); gap: .3em 1.4em !important; align-items: baseline; }
.tr-news-item .wp-block-post-date { color: var(--tr-muted); font-size: .9rem; min-width: 8.5em; margin: 0; }
.tr-news-item .wp-block-post-title { font-size: 1.05rem; margin: 0; }
.tr-news-item .wp-block-post-title a { text-decoration: none; }
.tr-works-list .wp-block-post-template { gap: 24px; }

/* ---------- フォーム ---------- */
.tr-form-wrap { max-width: 720px; }
.tr-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.tr-form fieldset[disabled] { opacity: .65; }
.tr-form__row { margin-bottom: 22px; }
.tr-form label { display: block; font-weight: 700; margin-bottom: 6px; color: var(--tr-text); }
.tr-form input[type="text"], .tr-form input[type="email"], .tr-form input[type="tel"], .tr-form select, .tr-form textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 1rem; padding: 12px 14px; border: 1.5px solid #C5D2DA; border-radius: var(--tr-radius); background: #fff; color: var(--tr-text); min-height: 52px; }
.tr-form input:focus, .tr-form select:focus, .tr-form textarea:focus { border-color: var(--tr-blue); outline: 3px solid rgba(38, 121, 168, .2); outline-offset: 0; }
.tr-form [aria-invalid="true"] { border-color: #B3261E; background: #FFF7F6; }
.tr-form__req, .tr-form__opt { display: inline-block; margin-left: .6em; padding: 0 .5em; border-radius: 2px; font-size: .72rem; vertical-align: 2px; line-height: 1.7; }
.tr-form__req { background: #C0392B; color: #fff; }
.tr-form__opt { background: #EEF1F3; color: #56626C; }
.tr-form__consent label { font-weight: 600; display: flex; align-items: center; gap: .5em; flex-wrap: wrap; }
.tr-form__consent input { width: 22px; height: 22px; accent-color: var(--tr-blue); }
.tr-form__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.tr-form__error { color: #B3261E; font-size: .9rem; margin: 6px 0 0; font-weight: 600; }
.tr-form__error--top { background: #FFF1F0; border: 1px solid #F2C4C0; border-radius: var(--tr-radius); padding: 12px 16px; margin-bottom: 20px; }
.tr-form__submit { margin-top: 28px; }
.tr-form__submit .wp-block-button__link { border: 0; cursor: pointer; min-width: 260px; font-size: 1.05rem; padding: 1em 2em; }
.tr-form__done { background: var(--tr-green-soft); border-radius: var(--tr-radius); padding: 18px 22px; margin-bottom: 24px; }
.tr-form__done-title { font-weight: 700; font-size: 1.1rem; margin: 0 0 .3em; }
.tr-form__closed { background: #FFF3E0; border-radius: var(--tr-radius); padding: 16px 20px; margin-bottom: 24px; }
.tr-form__closed--admin { background: var(--tr-blue-pale); }
.tr-form__closed-title { font-weight: 700; margin: 0 0 .3em; }
.tr-form__closed p, .tr-form__done p { margin: .2em 0; }
.tr-editor-note { font-size: 13px; background: var(--tr-blue-soft); padding: 8px 12px; border-radius: 4px; }

/* ---------- フッター ---------- */
.tr-footer { background: #F4F7F9; color: var(--tr-text); border-top: 1px solid var(--tr-border); padding-top: clamp(48px, 6vw, 72px) !important; padding-bottom: 24px !important; font-size: .93rem; }
.tr-footer a { color: var(--tr-text); }
.tr-footer a:hover { color: var(--tr-blue); }
.tr-footer__cols { gap: 32px !important; }
.tr-footer__brand { flex-basis: 40% !important; }
.tr-footer__title { color: var(--tr-text) !important; font-size: .95rem !important; letter-spacing: .06em; margin-bottom: .6em; }
.tr-footer__links { list-style: none; padding: 0 !important; margin: 0; }
.tr-footer__links li { margin: .4em 0; }
.tr-footer__links a { text-decoration: none; }
.tr-footer__links a:hover { text-decoration: underline; }
.tr-footer__bottom { border-top: 1px solid var(--tr-border); margin-top: 36px !important; padding-top: 18px; font-size: .82rem; color: var(--tr-muted); }
.tr-footer__bottom p { margin: 0; }
.tr-footer__bottom a { margin-right: 1em; }

/* ---------- スマホ下部の固定ボタン ---------- */
.tr-mobile-cta { display: none !important; }
@media (max-width: 781px) {
	.tr-mobile-cta { display: flex !important; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: rgba(255, 255, 255, .97); border-top: 1px solid var(--tr-border); padding: 8px 10px calc(8px + env(safe-area-inset-bottom)) !important; margin: 0 !important; }
	.tr-mobile-cta .wp-block-buttons { width: 100%; flex-wrap: nowrap; gap: 8px; }
	.tr-mobile-cta .wp-block-button { flex: 1 1 0; }
	.tr-mobile-cta .wp-block-button__link { width: 100%; padding: .8em .4em !important; font-size: 1rem; white-space: nowrap; }
	body { padding-bottom: 76px; }
}

/* ---------- 法的ページなど ---------- */
.tr-legal h2 { font-size: 1.2rem !important; }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }

/* 対応エリアの写真 */
.tr-area-img { margin: 0 0 1.2rem !important; }
.tr-area-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--tr-radius); }
.tr-area-img figcaption, .tr-service-hero figcaption { font-size: .75rem; color: var(--tr-muted); text-align: right; margin-top: .3em; }
.tr-photo-note { font-size: .78rem !important; color: var(--tr-muted); }
.tr-hero-cover .tr-photo-note { width: 100%; max-width: var(--wp--style--global--wide-size); margin: 1rem auto 0 !important; text-align: right; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
@media (max-width: 781px) { .tr-hero-cover .tr-photo-note { position: absolute; top: calc(62.5vw - 1.8rem); right: 10px; margin: 0 !important; width: auto; } }
.tr-cta-cover { min-height: 0 !important; }
.tr-main--landing .tr-page-content > .alignfull.tr-cta { margin-block-start: 0 !important; }

/* スマホ：ロゴ・事業名とメニューボタンが重ならないように */
@media (max-width: 781px) {
	.tr-header__inner { gap: 10px !important; }
	.tr-brand { gap: 8px !important; flex: 1 1 auto; }
	.tr-brand__logo img { width: 46px !important; }
	.tr-brand .wp-block-site-title { font-size: 1.15rem; }
	.tr-header__nav { flex: none; }
}
@media (max-width: 360px) { .tr-brand__sub { display: none; } }
