/* Services image unified sizing */
.service-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

@media (min-width: 992px) {
    .service-img {
        height: 360px;
    }
}

/* Horizontal scroll-snap gallery */
.hsnap-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    display: flex;
    gap: 0.75rem;
    padding-bottom: 0.5rem;
}

.hsnap-container::-webkit-scrollbar {
    height: 8px;
}

.hsnap-container::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, .2);
    border-radius: 4px;
}

.hsnap-item {
    flex: 0 0 auto;
    width: 72vw;
    max-width: 420px;
    aspect-ratio: 16 / 9;
    scroll-snap-align: start;
}

.hsnap-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: .5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
}

@media (min-width: 768px) {
    .hsnap-item {
        width: 360px;
    }
}

/* Masonry風（CSS columns） */
.masonry {
    column-gap: 1rem;
    column-count: 1;
}

@media (min-width: 576px) {
    .masonry {
        column-count: 2;
}
}

@media (min-width: 992px) {
    .masonry {
        column-count: 3;
}
}

.masonry-item {
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    margin-bottom: 1rem;
}

.masonry-item img {
    width: 100%;
    height: auto;
    border-radius: .5rem;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .08);
    display: block;
}

/* Services carousel sizing */
.service-carousel {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.service-carousel .carousel-item img {
    width: 100%;
    height: auto;
}

@media (min-width: 992px) {
    .service-carousel .carousel-item img {
        height: 420px;
        object-fit: cover;
        aspect-ratio: 16 / 9;
    }
}

/* footer: 認定ロゴの表示サイズ調整 */
.footer-cert-logo-img {
    height: 60px;
    width: auto;
}

@media (min-width: 992px) {
    .footer-cert-logo-img {
        height: 80px;
    }
}

/* フッター下段の横並び余白調整 */
.footer-bottom {
    gap: 12px;
}

@media (min-width: 992px) {
    .footer-bottom {
        gap: 16px;
    }
}

/* jobs: PC版カードの左右マージン調整 */
@media (min-width: 992px) {
    .job-card-wrapper {
        padding-left: 12px;
        padding-right: 12px;
    }
}

/*
Theme Name: 辰輝テーマ
Description: 株式会社辰輝のWordPressテーマ
Version: 1.0
Author: 株式会社辰輝
*/

/* CSS変数の定義 */
:root {
    --bs-primary: #F4D03F !important;
    /* ロゴに合わせた自然な黄色 */
    --bs-primary-rgb: 244, 208, 63 !important;
    --primary-color: #F4D03F;
    --primary-dark: #E67E22;
    --black-color: #000000;
    --white-color: #ffffff;
}

/* ボタンスタイル */
.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: var(--black-color) !important;
}

/* ボタンの中央寄せ */
.btn {
    display: inline-block;
    margin: 0 auto;
}

/* ボタンコンテナの中央寄せ */
.btn-container,
.button-container,
.text-center .btn {
    text-align: center !important;
}

/* 特定のボタンは除外 */
.navbar-nav .btn,
.navbar-nav .nav-link.btn,
.contact-form-container .btn {
    margin: 0 !important;
    display: inline-block !important;
    width: auto !important;
    text-align: left !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--primary-color) !important;
    /* デスクトップ用統一 */
    border-color: var(--primary-color) !important;
    color: var(--black-color) !important;
}

.btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: var(--black-color) !important;
}

/* お問い合わせセクション以外のbtn-lightボタンのホバー効果 */
.btn-light:not(#contact .btn-light):hover,
.btn-light:not(#contact .btn-light):focus,
.btn-light:not(#contact .btn-light):active {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: var(--black-color) !important;
}

/* プライマリカラー */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

/* ナビゲーションメニューのスタイル */
.navbar-nav .nav-link.active {
    background-color: var(--primary-color) !important;
    color: var(--black-color) !important;
}

/* ナビゲーションメニューのホバー効果 */
.navbar-nav .nav-link {
    position: relative;
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(244, 208, 63, 0.1) !important;
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

.navbar-nav .nav-link.active {
    background-color: var(--primary-color) !important;
    color: var(--black-color) !important;
    border-radius: 8px;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    box-shadow: 0 4px 12px rgba(244, 208, 63, 0.3);
}



.navbar-nav .nav-link.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 208, 63, 0.4);
}

/* お問い合わせメニューを目立たせる（推奨案：:last-child） */
.navbar-nav .nav-item:last-child .nav-link {
    background-color: var(--primary-color) !important;
    color: var(--black-color) !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
}

.navbar-nav .nav-item:last-child .nav-link:hover {
    background-color: var(--primary-dark) !important;
    color: var(--black-color) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(244, 208, 63, 0.4) !important;
}

/* Heroセクションのレスポンシブ高さ設定 */
.hero {
    min-height: 100vh !important;
    margin-top: -80px !important;
    padding-top: 80px !important;
}

@media (min-width: 768px) {
    .hero {
        min-height: 100vh !important;
        margin-top: -80px !important;
        padding-top: 80px !important;
    }
}

@media (min-width: 1200px) {
    .hero {
        min-height: 100vh !important;
        margin-top: -80px !important;
        padding-top: 80px !important;
    }
}

/* 背景画像の移動アニメーション */
@keyframes slideBackground {
    0% {
        background-position: left center;
    }

    100% {
        background-position: right center;
    }
}

.hero {
    animation: slideBackground 20s linear forwards;
}

/* ヘッダーの透明度設定 */
.sticky-top {
    background-color: rgba(248, 249, 250, 0.7) !important;
    backdrop-filter: blur(8px) !important;
}

/* （固定ヘッダー用オフセットは無しに戻す） */

/* モバイルメニューの視認性改善 */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: rgba(255, 255, 255, 0.98);
        border-radius: 8px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        margin-top: 1rem;
        padding: 1.5rem;
    }

    .navbar-nav {
        gap: 0.5rem;
    }

    .navbar-nav .nav-link {
        font-size: 1.4rem !important;
        font-weight: 600 !important;
        padding: 1rem 1.5rem !important;
        margin: 0.25rem 0 !important;
        border-radius: 8px !important;
        text-align: center;
        min-height: 56px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        border: 2px solid transparent;
    }

    .navbar-nav .nav-link:hover {
        background-color: rgba(244, 208, 63, 0.15) !important;
        color: var(--primary-color) !important;
        border-color: var(--primary-color) !important;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(244, 208, 63, 0.2);
    }

    .navbar-nav .nav-link.active {
        background-color: var(--primary-color) !important;
        color: var(--black-color) !important;
        border-color: var(--primary-color) !important;
        box-shadow: 0 4px 16px rgba(244, 208, 63, 0.4);
    }

    .navbar-nav .nav-link.btn {
        background-color: var(--primary-color) !important;
        color: var(--black-color) !important;
        border-color: var(--primary-color) !important;
        font-weight: 700 !important;
        font-size: 1.4rem !important;
        padding: 1rem 1.5rem !important;
        min-height: 56px;
        box-shadow: 0 4px 16px rgba(244, 208, 63, 0.3);
    }

    .navbar-nav .nav-link.btn:hover {
        background-color: var(--black-color) !important;
        /* 案2: 黒ベース統一 */
        border-color: var(--black-color) !important;
        color: var(--primary-color) !important;
        transform: translateY(-2px);
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
    }

    .navbar-toggler {
        border: 2px solid var(--primary-color);
        border-radius: 8px;
        padding: 0.5rem 0.75rem;
    }

    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.25rem rgba(244, 208, 63, 0.25);
    }

    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23F4D03F' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
}

/* footer-linksのスマホ対応 */
@media (max-width: 767.98px) {
    .footer-links {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .footer-links .list-inline-item {
        display: block !important;
        margin: 0.25rem 0 !important;
        padding: 0.25rem 0 !important;
    }

    .footer-links .list-inline-item:not(:first-child) {
        margin-left: 0 !important;
    }
}

/* フッター文字サイズの調整 */
.smaller {
    font-size: 0.75rem !important;
}

/* 施工事例ページのスタイル */
.work-card {
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

.work-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.work-image-container {
    position: relative;
    overflow: hidden;
}

.work-image-container img {
    transition: transform 0.3s ease;
}

.work-card:hover .work-image-container img {
    transform: scale(1.05);
}

.work-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #F4D03F;
    color: #000000;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 1;
}

.work-badge+.work-badge {
    top: 40px;
}

.work-meta {
    margin-top: 1rem;
    padding: 0.5rem 0;
    border-top: 1px solid #e9ecef;
}

.works-filter {
    margin-bottom: 3rem;
}

.filter-btn {
    transition: all 0.3s ease;
    border-radius: 8px;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn:focus,
.filter-btn:active {
    background-color: #F4D03F !important;
    border-color: #F4D03F !important;
    color: #000000 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 208, 63, 0.3);
}

.filter-btn.active {
    background-color: #F4D03F !important;
    border-color: #F4D03F !important;
    color: #000000 !important;
    box-shadow: 0 4px 12px rgba(244, 208, 63, 0.3);
}

.work-item {
    transition: all 0.3s ease;
}

.work-item.hidden {
    display: none;
}

#no-works-message {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#no-works-message i {
    color: #6c757d;
    margin-bottom: 1rem;
}

/* 施工事例カードのレスポンシブ対応 */
@media (max-width: 767.98px) {
    .works-filter .d-flex {
        flex-direction: column;
        align-items: center;
    }

    .filter-btn {
        margin: 0.25rem;
        width: 100%;
        max-width: 200px;
    }

    .work-item {
        margin-bottom: 1.5rem;
    }

    .work-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }
}

/* 求人ページのスタイル */
.job-card {
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.job-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
    border-color: #F4D03F;
}

.job-card .card-title {
    color: #F4D03F !important;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.job-card .card-text {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.job-card .card-text i {
    color: #F4D03F;
    width: 20px;
    text-align: center;
}

.job-card .btn {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.job-card .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(244, 208, 63, 0.3);
}

/* 求人詳細セクション */
.jobs-detail-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.jobs-detail-section h3 {
    color: #495057;
    margin-bottom: 1.5rem;
}

.jobs-detail-section h4 {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.jobs-detail-section ul {
    list-style: none;
    padding: 0;
}

.jobs-detail-section li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.jobs-detail-section li:last-child {
    border-bottom: none;
}

.jobs-detail-section i {
    color: #F4D03F;
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
}

/* 応募方法セクション */
.application-section {
    background: #f8f9fa;
    border: 2px solid #F4D03F;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.application-section h3 {
    color: #495057;
    text-align: center;
    margin-bottom: 1.5rem;
}

.application-section h5 {
    color: #6c757d;
    margin-bottom: 0.75rem;
}

.application-section .btn {
    border-radius: 8px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.application-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 208, 63, 0.4);
}

/* 求人がない場合のメッセージ */
.no-jobs-message {
    text-align: center;
    padding: 4rem 2rem;
    color: #6c757d;
}

.no-jobs-message i {
    color: #dee2e6;
    margin-bottom: 1.5rem;
}

.no-jobs-message .lead {
    color: #495057;
    margin-bottom: 1rem;
}

/* 求人ページのレスポンシブ対応 */
@media (max-width: 767.98px) {
    .job-card {
        margin-bottom: 1.5rem;
    }

    .job-card .card-title {
        font-size: 1.1rem;
    }

    .job-card .card-text {
        font-size: 0.85rem;
    }

    .jobs-detail-section {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }

    .jobs-detail-section h3 {
        font-size: 1.3rem;
    }

    .jobs-detail-section h4 {
        font-size: 1rem;
    }

    .application-section {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }

    .application-section .btn {
        width: 100%;
        margin-top: 0.5rem;
    }

    .no-jobs-message {
        padding: 3rem 1rem;
    }
}

/* お問い合わせページのスタイル */
.contact-method-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.contact-method-card {
    background: white;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    min-height: 320px;
    /* 最小高さを設定 */
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-method-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #F4D03F;
}

.contact-method-card .icon-wrapper {
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.contact-method-card .card-title {
    color: #495057;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.contact-method-card .card-text {
    color: #6c757d;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 4rem;
    /* 最小高さを増加 */
    text-align: center;
    padding: 0 1rem;
    /* 左右の余白を追加 */
}

.contact-method-card .btn {
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-bottom: 0.5rem;
    padding: 1rem 2.5rem !important;
    /* 他のボタンと同じサイズ */
    width: 200px !important;
    /* 固定幅で統一 */
    text-align: center !important;
    /* 中央揃え */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.contact-method-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 208, 63, 0.4);
}

.contact-method-card .text-muted {
    font-size: 0.85rem;
    margin-top: 0.5rem;
    flex-shrink: 0;
    text-align: center;
}

/* デスクトップ専用のバランス調整 */
@media (min-width: 768px) {
    .contact-method-card {
        min-height: 360px;
        /* デスクトップではより高い最小高さ */
    }

    .contact-method-card .card-text {
        min-height: 5rem;
        /* デスクトップではより高いテキストエリア */
    }

    .contact-method-card .icon-wrapper {
        margin-bottom: 2rem;
        /* アイコンとタイトルの間隔を広げる */
    }
}

/* 準備中ページのスタイル */
.coming-soon-container {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--primary-color);
}

.coming-soon-container i {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.coming-soon-container .alert {
    border-radius: 10px;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

/* お問い合わせフォーム */
.contact-form-container {
    background: white;
    padding: 3rem;
    border: 1px solid #e9ecef;
}

.contact-form-container h2 {
    color: #495057;
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    padding: 0.75rem 1rem;
}

.form-control:focus,
.form-select:focus {
    border-color: #F4D03F;
    box-shadow: 0 0 0 0.2rem rgba(244, 208, 63, 0.25);
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #dc3545;
}

.form-control.is-valid,
.form-select.is-valid {
    border-color: #198754;
}

.invalid-feedback {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.valid-feedback {
    color: #198754;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-check-input:checked {
    background-color: #F4D03F;
    border-color: #F4D03F;
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(244, 208, 63, 0.25);
}

.form-check-label a {
    color: #F4D03F;
    text-decoration: none;
}

.form-check-label a:hover {
    text-decoration: underline;
}

/* 送信ボタン */
.btn-primary {
    border-radius: 8px;
    font-weight: 600;
    padding: 1rem 2.5rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 208, 63, 0.4);
}

/* 送信完了モーダル */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
    border-bottom: 2px solid #F4D03F;
    background: linear-gradient(135deg, #F4D03F 0%, #f39c12 100%);
    color: #000;
    border-radius: 12px 12px 0 0;
}

.modal-header .btn-close {
    filter: invert(1);
}

.modal-body {
    padding: 2rem;
}

.modal-body i {
    color: #28a745;
}

.modal-body h4 {
    color: #495057;
    margin-bottom: 1rem;
}

.modal-body p {
    color: #6c757d;
    line-height: 1.6;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 1rem 2rem;
}

/* 会社情報セクション */
.company-info-section h3 {
    color: #495057;
    margin-bottom: 2rem;
}

.company-info-section h5 {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.company-info-section p {
    color: #495057;
    font-weight: 500;
}

.company-info-section i {
    color: #F4D03F;
}

/* お問い合わせページのレスポンシブ対応 */
@media (max-width: 767.98px) {
    .contact-method-card {
        padding: 2rem 1.5rem;
        margin-bottom: 1.5rem;
    }

    .contact-method-card .card-title {
        font-size: 1.1rem;
    }

    .contact-method-card .card-text {
        min-height: 2.5rem;
    }

    .contact-form-container {
        padding: 2rem 1.5rem;
    }

    .contact-form-container h2 {
        font-size: 1.5rem;
    }

    .form-control,
    .form-select {
        padding: 0.6rem 0.8rem;
    }

    .btn-primary {
        padding: 0.8rem 2rem;
        width: 100%;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .modal-body h4 {
        font-size: 1.2rem;
    }

    .company-info-section h3 {
        font-size: 1.3rem;
    }

    .company-info-section h5 {
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    .contact-form-container {
        padding: 1.5rem 1rem;
    }

    .contact-method-card {
        padding: 1.25rem;
    }

    .modal-body {
        padding: 1rem;
    }
}

@media (max-width: 767.98px) {
    .smaller {
        font-size: 0.7rem !important;
    }
}

/* セクションタイトルのスタイル */
.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 3rem;
    padding: 0 1rem;
    background: transparent;
    z-index: 2;
    text-align: center;
    width: 100%;
}

/* デバッグ用：h2タグの背景色を確認 */
h2.section-title {
    background: transparent !important;
}

/* 全体的なh2タグの中央寄せ */
h2 {
    text-align: center !important;
}

/* 特定のコンテナ内のh2は除外 */
.contact-form-container h2,
.service-introduction h2 {
    text-align: inherit !important;
}

/* 企業理念画像のスマートフォン表示改善 */
@media (max-width: 767.98px) {
    .philosophy-item {
        overflow: hidden;
        border-radius: 8px;
        margin: 0 -15px;
        /* コンテナの余白を活用 */
    }

    .philosophy-item img {
        width: 120%;
        height: auto;
        object-fit: cover;
        object-position: center;
        transform: scale(1.05);
    }
}

/* 事業内容ページの画像明度調整 */
.service-img {
    filter: brightness(1.2) contrast(1.1) saturate(1.1);
    transition: filter 0.3s ease;
}

.service-img:hover {
    filter: brightness(1.3) contrast(1.15) saturate(1.15);
}

/* カルーセル画像も明度調整 */
.carousel-item img {
    filter: brightness(1.2) contrast(1.1) saturate(1.1);
}

/* TOPページの事業内容セクション画像も明度調整 */
.service-card-image img {
    filter: brightness(1.2) contrast(1.1) saturate(1.1);
    transition: filter 0.3s ease;
}

.service-card-image img:hover {
    filter: brightness(1.3) contrast(1.15) saturate(1.15);
}

/* 内装仕上工事の特定画像は明度調整を除外 */
.carousel-item img[src*="works-interior-013-1600.jpg"],
.carousel-item img[src*="works-interior-015-1600.jpg"] {
    filter: none;
}

/* レスポンシブ対応 */
@media (max-width: 767.98px) {
    h2 {
        text-align: center !important;
    }

    .btn {
        display: block !important;
        margin: 0 auto !important;
        width: fit-content !important;
    }

    /* ナビゲーションのボタンは除外 */
    .navbar-nav .btn,
    .navbar-nav .nav-link.btn {
        display: inline-block !important;
        margin: 0 !important;
        width: auto !important;
        text-align: left !important;
    }
}

.section-title span {
    position: relative;
    padding: 0 1rem;
    background: transparent;
    z-index: 3;
}

.section-title::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #F4D03F, transparent);
    z-index: 1;
    display: none;
}

/* カードのホバー効果 */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* ワークカードのスタイル */
.work-card .card-img-top {
    transition: transform 0.3s ease;
}

.work-card:hover .card-img-top {
    transform: scale(1.05);
}

/* 追加のユーティリティクラス */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

/* レスポンシブ画像 */
.img-responsive {
    max-width: 100%;
    height: auto;
}

/* アニメーション用クラス */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* トップページのスタイル */
.hero {
    min-height: 100vh !important;
    margin-top: -80px !important;
    padding-top: 80px !important;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    animation: fadeInUp 1s ease-out;
}

/* TOP: ヒーローキャッチコピーを強調 */
.main-catch {
    font-family: 'Klee One', '游明朝', 'YuMincho', 'ヒラギノ明朝 ProN', 'Hiragino Mincho ProN', 'Noto Serif JP', serif;
    font-size: 3.25rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: none;
    color: #ffffff !important;
    text-shadow: 0 14px 36px rgba(0, 0, 0, .5), 0 4px 12px rgba(0, 0, 0, .4), 0 0 0 rgba(0, 0, 0, 0);
    animation: mainCatchPop .9s cubic-bezier(.2, .7, .2, 1) .05s both;
    position: relative;
}

/* 強調アンダーラインの演出 */
.main-catch::after {
    content: '';
    position: relative;
    display: block;
    width: 0;
    height: 6px;
    margin: .4rem auto 0;
    background: rgba(244, 208, 63, .95);
    box-shadow: 0 6px 16px rgba(244, 208, 63, .45);
    border-radius: 3px;
    animation: underlineGrow .9s ease-out .2s forwards;
}

@keyframes mainCatchPop {
    0% {
        opacity: 0;
        transform: translateY(14px) scale(.98);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes underlineGrow {
    to {
        width: 220px;
    }
}

@keyframes underlineGrowMedium {
    to {
        width: 260px;
    }
}

@keyframes underlineGrowLarge {
    to {
        width: 320px;
    }
}

@media (min-width: 768px) {
    .main-catch { 
        font-size: 4.5rem; 
        color: #ffffff !important;
        margin-bottom: 1.5rem !important;
    }
    
    .main-catch::after {
        animation-name: underlineGrowMedium;
    }
}

@media (min-width: 1200px) {
    .main-catch { 
        font-size: 5.5rem; 
        color: #ffffff !important;
        margin-bottom: 2rem !important;
    }
    
    .main-catch::after {
        animation-name: underlineGrowLarge;
    }
}

@media (max-width: 767.98px) {
    .main-catch { 
        font-size: 4rem; 
        margin-bottom: 2.5rem !important;
        color: #ffffff !important;
    }
}

@media (max-width: 575.98px) {
    .main-catch { 
        font-size: 3rem; 
        margin-bottom: 2.5rem !important;
        letter-spacing: 0.1em; 
        color: #ffffff !important;
    }

    .main-catch::after {
        animation-duration: .8s;
    }
}

.hero-sub {
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    letter-spacing: 0.02em;
    margin-bottom: .125rem !important;
    text-shadow: 0 4px 14px rgba(0, 0, 0, .35), 0 1px 4px rgba(0, 0, 0, .25);
}

.hero-sub-secondary {
    color: #f8f9fa;
    opacity: .95;
    line-height: 1.25;
    letter-spacing: 0.01em;
    margin-bottom: 1rem !important;
}

.hero p {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-buttons {
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-buttons .btn {
    margin: 0 0.75rem;
    min-width: 200px;
}

/* PCの時は横並び */
@media (min-width: 768px) {
    .hero-buttons {
        display: flex;
        justify-content: center;
        gap: 1rem;
    }

    .hero-buttons .btn {
        margin: 0;
        flex: 0 0 auto;
    }
}

.hero .btn {
    transition: all 0.3s ease;
    border-width: 2px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(244, 208, 63, 0.4);
}

/* 背景画像の移動アニメーション */
@keyframes slideBackground {
    0% {
        background-position: left center;
    }

    100% {
        background-position: right center;
    }
}

/* 旧C案のコラージュ背景スタイルは戻すため削除 */


/* カードのホバー効果 */
.card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: #F4D03F;
}

.card-body {
    transition: all 0.3s ease;
}

.card:hover .card-body {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* アイコンのアニメーション */
.card .fas {
    transition: all 0.3s ease;
}

.card:hover .fas {
    transform: scale(1.1);
    color: #F4D03F !important;
}

/* お問い合わせボタンの統一スタイル */
.contact-section .btn-light {
    transition: all 0.3s ease;
    border-width: 2px;
    font-weight: 600;
    background-color: white;
    color: #000;
    border-color: white;
}

/* .contact-section .btn-light:hover ルールを削除 - .contact-btn で統一 */

/* フェードインアニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* レスポンシブ対応 */
@media (max-width: 767.98px) {
    .hero {
        min-height: 70vh !important;
        padding: 80px 0 60px 0 !important;
    }

    .hero h1 {
        font-size: 4rem;
        /* スマホで見出しを少し大きく */
        margin-bottom: 2.5rem !important;
    }

    /* サブコピーのフォントサイズを少し拡大 */
    .hero p.lead.hero-sub {
        font-size: 1.2rem !important;
    }

    .hero p.hero-sub-secondary {
        font-size: 1.05rem !important;
    }

    /* スマホでBootstrapの .mb-2 を上書きして行間を詰める */
    p.lead.hero-sub.mb-2 {
        margin-bottom: 0.125rem !important;
    }


    .hero p {
        font-size: 1rem;
        margin-bottom: 2rem !important;
    }

    .hero-buttons {
        margin-top: 1.5rem;
    }

    .hero-buttons .btn {
        margin: 1.25rem 0;
        width: 100%;
        max-width: 300px;
        min-width: 250px;
    }

    .section-title::before {
        display: none;
    }

    /* セクション間の間隔を調整 */
    section {
        padding: 3rem 0 !important;
    }

    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
}

@media (max-width: 575.98px) {
    .hero {
        min-height: 60vh !important;
        padding: 60px 0 40px 0 !important;
    }

    .hero h1 {
        font-size: 3rem;
        /* 小さいスマホでも見出しを拡大 */
        margin-bottom: 2.5rem !important;
    }

    /* さらに小さい端末でも確実に上書き */
    p.lead.hero-sub.mb-2 {
        margin-bottom: 0.125rem !important;
    }


    .hero p {
        margin-bottom: 1.5rem !important;
    }

    /* 小さいスマホではさらにサブコピーを拡大 */
    .hero p.lead.hero-sub {
        font-size: 1.25rem !important;
    }

    .hero p.hero-sub-secondary {
        font-size: 0.85rem !important;
    }

    .hero-buttons {
        margin-top: 1.25rem;
    }

    .hero .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }

    /* 超小画面でのボタン配置の最適化 */
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
        min-width: 250px;
        margin: 1rem 0;
    }

    /* セクション間の間隔をさらに調整 */
    section {
        padding: 2.5rem 0 !important;
    }

    .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
}

/* お問い合わせボタンのホバー効果（HTMLファイルと完全に統一） */
.contact-btn {
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.contact-btn:hover,
.contact-btn:focus {
    outline: 2px solid white !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3) !important;
    background-color: #F4D03F !important;
    color: #000000 !important;
    transform: translateY(-2px) !important;
}

/* 旧セレクターとの互換性のため残す */
#contact .btn-light:hover,
#contact .btn-light:focus,
#contact .btn-light:active {
    outline: 2px solid white !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3) !important;
    background-color: #F4D03F !important;
    color: #000000 !important;
    transform: translateY(-2px) !important;
    transition: all 0.3s ease !important;
}

/* 通常状態のボタンスタイルをリセット */
#contact .btn-light {
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* アクセス部分のレスポンシブ対応 */
.map-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.map-container iframe {
    width: 100%;
    height: 300px;
    border: none;
}

.contact-info {
    background-color: #f8f9fa;
    border-radius: 8px;
    height: 100%;
}

/* レスポンシブ対応 */
@media (max-width: 991.98px) {
    .map-container iframe {
        height: 250px;
    }

    .contact-info {
        margin-top: 1rem;
    }
}

@media (max-width: 767.98px) {
    .map-container iframe {
        height: 200px;
    }

    .contact-info {
        padding: 1.5rem !important;
    }
}

@media (max-width: 575.98px) {
    .map-container iframe {
        height: 180px;
    }

    .contact-info {
        padding: 1rem !important;
    }

    .contact-info h4 {
        font-size: 1.25rem;
    }

    .contact-info p {
        font-size: 0.9rem;
    }
}

/* フッターのレスポンシブ対応 */
/* フッターナビのBootstrap依存排除用 基本スタイル */
.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    /* 文字間隔を広く */
}

.footer-links .footer-link-item {
    margin: 0;
    padding: 0;
}

.footer-links .footer-link {
    display: inline-block;
    letter-spacing: 0.05em;
    /* 文字間隔を追加 */
}

/* タブレット用 */
@media (max-width: 991.98px) {
    .footer-links {
        gap: 0.75rem 1.25rem;
        /* タブレット用の間隔 */
    }
}

/* スマホで縦積み */
@media (max-width: 767.98px) {
    .footer-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        /* スマホ用の縦間隔を広く */
    }

    .footer-links .footer-link {
        letter-spacing: 0.08em;
        /* スマホ用の文字間隔をさらに広く */
        line-height: 1.6;
        /* 行間も調整 */
    }
    
    /* 以前の下線強制は検証完了のため削除（Bootstrap基準を使用） */
    
    /* Bootstrapのtext-decoration-none（!important）を上書き */
    /* 以前のtext-decoration-none上書きは削除（不要） */

    /* フッターリンクも強制的にアンダーライン表示 */
    /* 以前のフッターリンク下線強制は削除（不要） */
    
    /* ボタンは除く */
    .btn,
    .btn:hover,
    .btn:focus,
    .btn:active {
        text-decoration: none !important;
    }
    
    /* ナビゲーションリンクは除く */
    .navbar-nav .nav-link {
        text-decoration: none !important;
    }
}

/* フッターのレイアウト調整 */
footer .row>div {
    text-align: center !important;
}

footer .row>div:first-child {
    margin-bottom: 2rem !important;
}
}

/* SP: フッターのTEL/FAXリンクのみ下線を消す */
@media (max-width: 767.98px) {

    footer .container .row>div:first-child p a[href^="tel:"],
    footer .container .row>div:first-child p a[href^="mailto:"] {
        /* iOS Safari対策を含めて下線を完全に無効化 */
        text-decoration: none !important;
        -webkit-text-decoration: none !important;
        text-decoration-line: none !important;
        text-decoration-color: transparent !important;
        text-decoration-skip-ink: none !important;
        -webkit-text-decoration-skip: none !important;
        border-bottom: 0 !important;
        background-image: none !important;
        color: inherit !important;
        display: inline-block;
        /* Safariでの装飾残り対策 */
        -webkit-appearance: none;
    }

    /* すべての状態で上書き（Safari擬似状態対策） */
    footer .container .row>div:first-child p a[href^="tel:"]:link,
    footer .container .row>div:first-child p a[href^="tel:"]:visited,
    footer .container .row>div:first-child p a[href^="tel:"]:hover,
    footer .container .row>div:first-child p a[href^="tel:"]:active,
    footer .container .row>div:first-child p a[href^="mailto:"]:link,
    footer .container .row>div:first-child p a[href^="mailto:"]:visited,
    footer .container .row>div:first-child p a[href^="mailto:"]:hover,
    footer .container .row>div:first-child p a[href^="mailto:"]:active {
        text-decoration: none !important;
        -webkit-text-decoration: none !important;
        text-decoration-line: none !important;
    }
}

/* タブ型デザインのスタイル */
.service-tabs {
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 2rem;
}

.service-tabs .nav-link {
    background: transparent;
    border: none;
    color: #6c757d;
    font-weight: 500;
    padding: 1rem 1.5rem;
    margin: 0 0.25rem;
    border-radius: 8px 8px 0 0;
    transition: all 0.3s ease;
    position: relative;
}

.service-tabs .nav-link:hover {
    background-color: #f8f9fa;
    color: #495057;
    transform: translateY(-2px);
}

.service-tabs .nav-link.active {
    background-color: #F4D03F;
    color: #000000;
    font-weight: 600;
    box-shadow: none;
}

.service-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #F4D03F;
}

/* Services: スクロール時にタブを上部に固定 */
.sticky-tabs {
    position: sticky;
    top: 64px;
    /* 固定ヘッダー分のオフセット（調整可） */
    z-index: 1010;
    /* ハンバーガーメニューより下に配置 */
    background: #fff;
}

.sticky-tabs .service-tabs {
    margin-bottom: 0.5rem;
    box-shadow: none;
}

@media (max-width: 991.98px) {
    .sticky-tabs {
        top: 60px;
    }
}

/* Servicesページ専用の強制上書き（影消し・余白詰め） */
.page-template-page-services .sticky-tabs {
    margin-top: -8px;
    /* containerの左右パディング(12px)を打ち消す */
    margin-left: -12px;
    margin-right: -12px;
}

.page-template-page-services .sticky-tabs .col-12 {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.page-template-page-services .service-tabs,
.page-template-page-services .service-tabs .nav-link,
.page-template-page-services .service-tabs .nav-link.active {
    box-shadow: none !important;
}

/* タブ自体の余白と背景をリセット */
.page-template-page-services .service-tabs {
    padding-left: 0 !important;
    padding-right: 0 !important;
    background: transparent !important;
    border: none !important;
}

.page-template-page-services .service-tabs .nav-link {
    box-shadow: none !important;
    border: none !important;
}

/* ハンバーガーメニューを最前面に配置 */
.navbar-toggler {
    z-index: 1030 !important;
    position: relative;
}

.navbar-collapse {
    z-index: 1025 !important;
    position: relative;
}

/* セクションタイトルの英語併記スタイル */
.section-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.section-title .english {
    font-size: 3.5rem;
    color: #F4D03F;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-style: italic;
    line-height: 1;
}

/* CONTACTセクションの英語タイトルは白色 */
#contact .section-title .english {
    color: white;
}

/* SP: フッター“電話する”CTA調整 */
@media (max-width: 767.98px) {
    .phone-cta {
        border: 2px solid #fff;
        font-weight: 700;
        padding: 0.5rem 1rem;
    }
}

.section-title .japanese {
    font-size: 1.1rem;
    font-weight: 500;
    color: inherit;
    line-height: 1.2;
}

@media (max-width: 767.98px) {
    .section-title .english {
        font-size: 2.5rem;
    }

    .section-title .japanese {
        font-size: 0.9rem;
    }
}

/* タブのレスポンシブ対応 */
@media (max-width: 991.98px) {
    .service-tabs {
        flex-wrap: wrap;
        justify-content: center;
    }

    .service-tabs .nav-item {
        flex: 0 0 calc(50% - 0.5rem);
        /* 2列表示 */
        margin-bottom: 0.5rem;
    }

    .service-tabs .nav-link {
        width: 100%;
        text-align: center;
        margin: 0;
        padding: 0.75rem 1rem;
        font-size: 1rem;
        /* 文字サイズを大きく */
    }
}

@media (max-width: 575.98px) {
    .service-tabs .nav-item {
        flex: 0 0 100%;
        /* 1列表示 */
        margin-bottom: 0.25rem;
    }

    .service-tabs .nav-link {
        padding: 0.6rem 0.8rem;
        font-size: 0.95rem;
        /* スマホでも文字サイズを大きく */
    }
}

.service-tab-content {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.service-tab-content img {
    transition: transform 0.3s ease;
}

.service-tab-content img:hover {
    transform: scale(1.02);
}

/* TOP: 事業内容カード（画像上にテキスト） */
.service-card {
    border: none !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .12);
}

.service-card:hover {
    border: none !important;
}

.service-card {
    border-radius: 12px;
    overflow: hidden;
    /* 角で画像をクリップ */
    position: relative;
}

.service-card .service-card-image {
    position: relative;
    overflow: hidden;
    border-radius: inherit;
    /* 親と同じ角丸 */
}

.service-card .service-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-radius: inherit;
    /* 親に合わせる */
}

@media (min-width: 992px) {
    .service-card .service-card-image img {
        height: 360px;
        aspect-ratio: 16 / 9;
        object-fit: cover;
    }
}

.service-card .service-card-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.75rem 1rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .55) 90%);
    color: #fff;
}

/* TOP services grid sizing */
@media (min-width: 992px) {
    .services-grid {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
}

/* h3の上に余白を追加 */
.service-category-header h3 {
    padding-top: 1rem;
}

/* レスポンシブ対応のmax-width調整 */
.service-description {
    max-width: 90%;
    margin: 0 auto;
    padding: 0 15px;
    font-size: 1.1rem;
    line-height: 1.8;
}

@media (min-width: 768px) {
    .service-description {
        max-width: 80%;
        padding: 0 20px;
    }
}

@media (max-width: 767.98px) {
    .service-description {
        padding: 0 10px;
    }
}

@media (max-width: 575.98px) {
    .service-description {
        padding: 0 5px;
    }
}

/* service-introductionのレスポンシブ対応 */
.service-introduction {
    padding: 2rem 2.5rem !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border: 1px solid #dee2e6 !important;
    margin-bottom: 3rem !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

.service-introduction h2 {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: #2c3e50 !important;
    margin-bottom: 1.5rem !important;
    line-height: 1.3 !important;
}

.service-introduction .lead {
    font-size: 1.1rem !important;
    line-height: 1.7 !important;
    color: #495057 !important;
    margin-bottom: 0 !important;
}

/* タブレット用 */
@media (max-width: 991.98px) {
    .service-introduction {
        padding: 1.5rem 2rem !important;
        margin-bottom: 2.5rem !important;
    }

    .service-introduction h2 {
        font-size: 1.75rem !important;
        margin-bottom: 1.25rem !important;
    }

    .service-introduction .lead {
        font-size: 1.05rem !important;
        line-height: 1.6 !important;
    }
}

/* スマホ用 */
@media (max-width: 767.98px) {
    .service-introduction {
        padding: 1.25rem 1.5rem !important;
        margin-bottom: 2rem !important;
        border-radius: 8px !important;
    }

    .service-introduction h2 {
        font-size: 1.5rem !important;
        margin-bottom: 1rem !important;
        text-align: center !important;
    }

    .service-introduction .lead {
        font-size: 1rem !important;
        line-height: 1.6 !important;
        text-align: center !important;
    }
}

@media (max-width: 575.98px) {
    .service-introduction {
        padding: 1rem 1.25rem !important;
        margin-bottom: 1.5rem !important;
    }

    .service-introduction h2 {
        font-size: 1.375rem !important;
        margin-bottom: 0.875rem !important;
    }

    .service-introduction .lead {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
    }
}

/* ナビゲーションの開閉アニメーションを滑らかに（短め・最適化） */
.collapse.navbar-collapse {
    transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.2s ease;
    will-change: height, transform;
}

/* collapsing状態のトランジションを明示 */
.navbar-collapse.collapsing {
    transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease, transform 0.2s ease;
    opacity: .9;
    transform: translateY(-2px);
}

/* 展開完了時の最終状態（フェードと位置） */
.navbar-collapse.collapse.show {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* 施工事例ページ: style_.css からの補完 */
.work-image-container {
    position: relative;
    overflow: hidden;
}

.work-image-container img {
    height: 240px;
    object-fit: cover;
    width: 100%;
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 31, 63, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.work-card:hover .work-overlay {
    opacity: 1;
}

@media (max-width: 767.98px) {
    .work-image-container img {
        height: 200px;
    }
}

/* サイドバー関連施工事例画像の高解像度対応 */
.single-works .card-body img[src*="sidebar-related"] {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: high-quality;
}

/* 関連施工事例の画像コンテナ */
.single-works .card-body .mb-3 img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.single-works .card-body .mb-3:hover img {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 高解像度ディスプレイ対応 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .single-works .card-body img {
        image-rendering: -webkit-optimize-contrast;
    }
}