/* Hero title (HOME) */
.hero-line-break { display: none; }
@media (max-width: 600px) {
  .hero-line-break { display: block; }
}

/* Navigation (header + footer, shared via .site-nav-jp) */
.header-tagline { white-space: nowrap; }
.site-nav-jp .wp-block-navigation-item__label { white-space: pre-line; text-align: center; line-height: 1.4; }
.site-nav-jp .wp-block-navigation-item__content { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; width: 120px; padding: 8px 16px; border-radius: 4px; transition: background-color .2s ease, color .2s ease; box-sizing: border-box; }
.site-nav-jp .nav-home .wp-block-navigation-item__content:hover { background-color: #8bc34a; color: #ffffff; }
.site-nav-jp .nav-home .wp-block-navigation-item__content:hover .wp-block-navigation-item__label { color: #ffffff; }
.site-nav-jp .nav-business .wp-block-navigation-item__content:hover { background-color: #ff2e9f; color: #ffffff; }
.site-nav-jp .nav-business .wp-block-navigation-item__content:hover .wp-block-navigation-item__label { color: #ffffff; }
.site-nav-jp .nav-company .wp-block-navigation-item__content:hover { background-color: #ff8c00; color: #ffffff; }
.site-nav-jp .nav-company .wp-block-navigation-item__content:hover .wp-block-navigation-item__label { color: #ffffff; }
.site-nav-jp .nav-contact .wp-block-navigation-item__content:hover { background-color: #00b0ff; color: #ffffff; }
.site-nav-jp .nav-contact .wp-block-navigation-item__content:hover .wp-block-navigation-item__label { color: #ffffff; }
.site-nav-jp .wp-block-navigation-item__content:hover,
.site-nav-jp .wp-block-navigation-item__content:hover .wp-block-navigation-item__label { text-decoration: none !important; }

@media (max-width: 767.98px) {
  .site-nav-jp .wp-block-navigation__responsive-container-open { display: inline-flex !important; align-items: center; gap: 6px; }
  .site-nav-jp .wp-block-navigation__responsive-container-open::after { content: "メニュー"; font-size: 0.85rem; font-weight: 700; }
}

/* Shared utility styles */
.is-style-borderless-table table,
.is-style-borderless-table th,
.is-style-borderless-table td { border: none; }
.section-title-line { border-bottom: 1px solid #333; padding-bottom: 8px; margin-bottom: 16px; }

/* Company page (会社情報) */
body.page-company .wp-block-post-title { font-size: var(--wp--preset--font-size--large); border-bottom: 4px solid var(--wp--preset--color--secondary-100); padding-bottom: 16px; }
body.page-company { --wp--style--root--padding-left: var(--wp--preset--spacing--16); --wp--style--root--padding-right: var(--wp--preset--spacing--16); --wp--style--global--content-size: 960px; }

/* Business page (事業内容) */
body.page-business .wp-block-post-title { font-size: var(--wp--preset--font-size--large); border-bottom: 4px solid var(--wp--preset--color--secondary-100); padding-bottom: 16px; }
body.page-business { --wp--style--root--padding-left: var(--wp--preset--spacing--16); --wp--style--root--padding-right: var(--wp--preset--spacing--16); --wp--style--global--content-size: 960px; }
.business-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.business-box, .business-box-wide { background-color: #dbe9f7; border-radius: 4px; padding: 20px; box-sizing: border-box; }
.business-box-num { color: #1a3e8c; font-weight: 700; margin: 0 0 8px; }
.business-box p:last-child { margin: 0; line-height: 1.7; }
.business-box-wide { display: flex; align-items: center; gap: 16px; }
.business-box-wide .business-box-num { margin: 0; }
.business-box-wide p:last-child { margin: 0; flex: 1; text-align: center; }

.segment-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 16px; }
.segment-item { text-align: center; }
.segment-photo { position: relative; width: 100%; aspect-ratio: 4/3; border-radius: 4px; overflow: hidden; background-color: #cbd5e1; display: flex; align-items: center; justify-content: center; color: #64748b; font-size: 0.85rem; }
.segment-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.segment-title { position: relative; display: inline-block; color: #1a3e8c; font-weight: 700; margin: 12px 0 4px; padding: 4px 14px; }
.segment-title::before, .segment-title::after { content: ""; position: absolute; width: 10px; height: 10px; }
.segment-title::before { top: 0; left: 0; border-top: 2px solid #1a3e8c; border-left: 2px solid #1a3e8c; }
.segment-title::after { bottom: 0; right: 0; border-bottom: 2px solid #1a3e8c; border-right: 2px solid #1a3e8c; }
.segment-sub { color: #1a3e8c; font-weight: 700; margin: 0 0 12px; font-size: 0.95em; }
.segment-text { text-align: left; margin: 0; line-height: 1.8; }

@media (max-width: 600px) {
  .business-grid-3,
  .segment-grid { grid-template-columns: 1fr; }
}

.fs-table { width: 100%; border-collapse: collapse; margin-top: 16px; }
.fs-table th, .fs-table td { border: 1px solid #999; padding: 6px 10px; text-align: center; }
.fs-table td:first-child, .fs-table th:first-child { text-align: left; }
.fs-table thead th { background-color: #f0f0f0; }

.fs-accordion { display: none; }
.fs-accordion-item { border: 1px solid #999; border-top: none; }
.fs-accordion-item:first-child { border-top: 1px solid #999; }
.fs-accordion-item summary { padding: 10px 12px; font-weight: 700; cursor: pointer; background-color: #f0f0f0; list-style: none; position: relative; }
.fs-accordion-item summary::-webkit-details-marker { display: none; }
.fs-accordion-item summary::after { content: "+"; position: absolute; right: 12px; }
.fs-accordion-item[open] summary::after { content: "\2212"; }
.fs-accordion-body { padding: 8px 12px 12px; }
.fs-accordion-body p { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 4px 0; border-bottom: 1px dashed #ddd; }
.fs-accordion-body p:last-child { border-bottom: none; }
.fs-accordion-body span:first-child { color: #555; }
.fs-accordion-body span:last-child { font-weight: 700; color: #1a3e8c; text-align: right; }

@media (max-width: 600px) {
  .fs-table { display: none; }
  .fs-accordion { display: block; margin-top: 16px; }
}

.repair-slider { width: 100%; max-width: 640px; margin-top: 20px; }
.repair-slider-images { position: relative; width: 100%; height: 420px; border-radius: 6px; overflow: hidden; background-color: #f0f0f0; }
.repair-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.6s ease; box-sizing: border-box; }
.repair-slide.is-active { opacity: 1; pointer-events: auto; }
.repair-slide img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-in; }
.repair-slider-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 36px; height: 36px; border: none; border-radius: 50%; background-color: rgba(0,0,0,0.4); color: #ffffff; font-size: 1.5rem; line-height: 1; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.repair-slider-nav:hover { background-color: rgba(0,0,0,0.65); }
.repair-slider-prev { left: 12px; }
.repair-slider-next { right: 12px; }
.repair-slider-dots { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 14px; }
.repair-slider-dots span { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background-color: #cbd5e1; transition: all 0.3s ease; }
.repair-slider-dots span.is-active { width: 14px; height: 14px; background-color: #1a3e8c; }

.repair-slide-case { padding: 16px; flex-direction: column; gap: 10px; background-color: #ffffff; }
.repair-case { width: 100%; max-width: 560px; }
.repair-case-table { width: 100%; border-radius: 8px; overflow: hidden; font-size: var(--wp--preset--font-size--mini); }
.repair-case-row { display: flex; flex-wrap: wrap; }
.repair-case-row-1 .repair-case-pair { flex: 1 1 50%; display: flex; min-width: 0; }
.repair-case-pair-full { flex: 1 1 100%; display: flex; flex-direction: column; min-width: 0; }
.repair-case-label { flex: 0 0 auto; font-weight: 700; white-space: nowrap; padding: 8px 10px; }
.repair-case-value { flex: 1 1 auto; min-width: 0; padding: 8px 10px 8px 0; overflow-wrap: break-word; }
.repair-case-row-1 .repair-case-label { background-color: #fff4e6; color: #b45309; }
.repair-case-row-1 .repair-case-value { background-color: #fafafa; color: #334155; padding-right: 10px; }
.repair-case-row-2 .repair-case-label,
.repair-case-row-2 .repair-case-value { background-color: #e6f4fd; color: #0369a1; font-size: var(--wp--preset--font-size--minute); }
.repair-case-row-2 .repair-case-value { font-size: var(--wp--preset--font-size--mini); }
.repair-case-row-2 .repair-case-value { padding-right: 10px; }

@media (max-width: 480px) {
  .repair-case-row-1 .repair-case-pair { flex-basis: 100%; }
}
.repair-case-photos { display: flex; align-items: flex-start; justify-content: center; gap: 12px; margin-top: 10px; }
.repair-case-photos img { width: auto; height: auto; max-width: calc(50% - 6px); max-height: 220px; border-radius: 4px; cursor: zoom-in; }
.repair-case-photos-single img { max-width: 260px; }

.repair-lightbox { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; background-color: rgba(0,0,0,0.85); padding: 24px; box-sizing: border-box; z-index: 9999; cursor: zoom-out; }
.repair-lightbox.is-open { display: flex; }
.repair-lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 4px; }

.sales-card { margin-top: 40px; }
.sales-card-name { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: linear-gradient(135deg, #1a3e8c 0%, #00b0ff 100%); border-radius: 8px; padding: 12px 20px; margin-bottom: 12px; box-shadow: 0 3px 10px rgba(26,62,140,0.25); }
.sales-card-name a:first-child { color: #ffffff; font-weight: 700; letter-spacing: 0.02em; text-decoration: none; }
.sales-card-name a:first-child:hover { text-decoration: underline; }
.sales-card-body { background-color: #ffffff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 20px; box-shadow: 0 4px 16px rgba(15,23,42,0.06); }
.sales-card-body p { margin: 0; line-height: 1.8; }
.sales-card-video { position: relative; width: 50%; aspect-ratio: 16/9; margin-top: 16px; border-radius: 6px; overflow: hidden; }
.sales-card-video iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.sales-card-video-credit { width: 50%; margin: 4px 0 0 !important; font-size: var(--wp--preset--font-size--minute); color: #64748b; }
.sales-btn { flex-shrink: 0; display: inline-block; background-color: #ffffff; color: #1a3e8c; border-radius: 999px; padding: 6px 24px; text-decoration: none !important; font-weight: 700; font-size: var(--wp--preset--font-size--tiny); }
.sales-btn:hover { background-color: #1a3e8c; color: #ffffff; box-shadow: inset 0 0 0 2px #ffffff; }

/* Contact page (お問合せ) */
body.page-contact .wp-block-post-title { display: none; }
