/* ========================================
   スプラッシュスクリーン
======================================== */
.splash {
    position: fixed;
    inset: 0;
    z-index: 99999;
    /* iPad Chrome等でツールバーがある状態でも全画面を覆うよう dvh で明示指定
       inset:0 だけでは Chromium 系ブラウザでツールバー分がカバーされないケースがある */
    height: 100dvh;
    min-height: 100dvh;
    background-image: url('../images/top-bg.webp');
    background-size: 576px calc(576px * 1240 / 1748);
    background-position: center top;
    background-repeat: repeat;
    transition: opacity 0.8s ease;
}

@media (min-width: 768px) {
    .splash {
        background-size: 768px calc(768px * 1240 / 1748);
    }
}

@media (min-width: 1024px) {
    .splash {
        background-size: 1024px calc(1024px * 1240 / 1748);
    }
}

.splash.is-hiding {
    opacity: 0;
    pointer-events: none;
}

@keyframes brush-sprite-erase {
    from { mask-position: 100% 0;
           -webkit-mask-position: 100% 0; }
    to   { mask-position: 0% 0;
           -webkit-mask-position: 0% 0; }
}

/* ブラシリビールレイヤー：top.pngをマスクで徐々に表示 */
.splash__brush-reveal {
    --brush-frames:   60;
    --brush-frame-w:  960px;
    --brush-frame-h:  540px;
    --brush-sprite-w: calc(var(--brush-frame-w) * var(--brush-frames));

    position: absolute;
    inset: 0;

    background-image: url('../images/top.webp');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    mix-blend-mode: multiply;

    -webkit-mask-image: url('../images/brush-sprite.png');
    mask-image:         url('../images/brush-sprite.png');
    -webkit-mask-size:  calc(var(--brush-frames) * 100%) 100%;
    mask-size:          calc(var(--brush-frames) * 100%) 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat:         no-repeat;
    -webkit-mask-position: 0 0;
    mask-position:         0 0;
}

/* 画面が画像(1200:630)より横長のときはcover */
@media (min-aspect-ratio: 1200/630) {
    .splash__brush-reveal {
        background-size: cover;
    }
}

/* ========================================
   セクションブロック（ウェーブ＋セクションを包むラッパー）
   → ウェーブ部分にも左右フレームを表示するため
======================================== */
.section-block {
    position: relative;
    /* z-index は設定しない → スタッキングコンテキストを生成しない
       （iOS Safari で position:fixed 子要素の再描画バグを防ぐため） */
}

.section-block--contact { background-color: #fafafa; }

/* ========================================
   左右フレーム：position:fixed で全セクション共通表示
   section-block 単位の疑似要素から切り離すことで
   スタッキングコンテキストの影響を受けない
======================================== */
.section-frame-left,
.section-frame-right {
    position: fixed;
    top: 0;
    height: 100%;
    width: var(--frame-width-sm);
    background-color: var(--color-frame);
    z-index: 1000;
    pointer-events: none;
}

.section-frame-left  { left: 0; }
.section-frame-right { right: 0; }

@media (min-width: 768px) {
    .section-frame-left,
    .section-frame-right { width: var(--frame-width-md); }
}

@media (min-width: 1024px) {
    .section-frame-left,
    .section-frame-right { width: var(--frame-width-lg); }
}

/* wave-divider ・ sec-icon は common.css に移行しました */

/* ========================================
   FVセクション（モバイル）
======================================== */
.fv {
    position: relative;
    min-height: 667px;
    height: var(--fv-height, 100svh); /* JS初回設定の固定値。JS実行前のフォールバックは100svh */
    padding: 0 0 var(--spacing-xl);
    overflow: hidden;
    display: flex;
    align-items: center;
    border-top: var(--frame-width-sm) solid var(--color-frame);
}

@media (min-width: 768px) {
    .fv {
        border-top-width: var(--frame-width-md);
    }
}

@media (min-width: 1024px) {
    .fv {
        border-top-width: var(--frame-width-lg);
    }
}

/* 背景画像スライダー */
.fv__bg-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.fv__bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    z-index: 1;
}

/* 表示中のスライド */
.fv__bg-slide--active {
    opacity: 1;
    z-index: 2;
}

/* ペンキ塗りワイプで入ってくるスライド（スプライト版） */
.fv__bg-slide--entering {
    opacity: 1;
    z-index: 3;
}

/* ========================================
   スプライトシート方式 ブラシワイプ
======================================== */
.fv__brush-mask {
    --brush-frames:    60;
    --brush-frame-w:   960px;
    --brush-frame-h:   540px;
    --brush-sprite-w:  calc(var(--brush-frame-w) * var(--brush-frames));
    --brush-duration:  1.8s;

    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;

    -webkit-mask-image: url('../images/brush-sprite.png');
    mask-image:         url('../images/brush-sprite.png');
    -webkit-mask-size:  calc(var(--brush-frames) * 100%) 100%;
    mask-size:          calc(var(--brush-frames) * 100%) 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat:         no-repeat;
    -webkit-mask-position: 0 0;
    mask-position:         0 0;

    background: transparent;
}

@keyframes brush-sprite-play {
    from {
        -webkit-mask-position: 0% 0;
        mask-position: 0% 0;
    }
    to {
        -webkit-mask-position: 100% 0;
        mask-position:         100% 0;
    }
}

/* オーバーレイ */
.fv__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%),
        linear-gradient(to right, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.1) 70%);
    z-index: 2;
}

/* モバイルメニューオープン時はフレームを非表示 */
body.menu-open .fv-bottom-frame {
    display: none;
}

.fv__container {
    width: 100%;
    padding: 0 var(--spacing-sm);
    position: relative;
    z-index: 3;
}

@media (min-width: 576px) {
    .fv__container {
        padding: 0 var(--spacing-md);
    }
}

@media (min-width: 1024px) {
    .fv__container {
        padding: 0 var(--spacing-lg);
    }
}

@media (min-width: 1200px) {
    .fv__container {
        padding: 0 var(--spacing-xxlger);
    }
}

.fv__inner {
    max-width: var(--section-content-width-sm);
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    align-items: flex-start;
    width: 100%;
}

@media (min-width: 768px) {
    .fv__inner {
        max-width: var(--section-content-width-md);
    }
}

@media (min-width: 1024px) {
    .fv__inner {
        max-width: var(--section-content-width-lg);
    }
}

@media (min-width: 1200px) {
    .fv__inner {
        max-width: var(--section-content-width-exlg);
    }
}

.fv__content {
    text-align: left;
    max-width: 800px;
}

.fv__title-main {
    display: block;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.4;
    color: #ffffff;
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.fv__title-accent {
    color: #ffffff;
    background-image: linear-gradient(to right, rgba(219, 77, 83, 0.8) 0%, rgba(219, 77, 83, 0.8) 100%);
    background-repeat: no-repeat;
    background-size: 0% 45%;
    background-position: 0 100%;
    transition: background-size 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fv__title-accent.is-marker-revealed {
    background-size: 100% 45%;
}

.fv__title-sub {
    display: block;
    font-size: 18px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: var(--spacing-lg);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.fv__text {
    font-size: 16px;
    line-height: var(--body-line-height-sp);
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.fv__buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    justify-content: flex-start;
}

/* ========================================
   FVセクション（タブレット：768px以上）
======================================== */
@media (min-width: 768px) {
    .fv__title-main {
        font-size: 42px;
    }
    
    .fv__title-sub {
        font-size: 20px;
    }
    
    .fv__text {
        font-size: 18px;
    }
}

/* ========================================
   FVセクション（PC：1024px以上）
======================================== */
@media (min-width: 1024px) {
    .fv {
        margin-top: 0;
        min-height: 768px;
        /* height: 100vh を削除 → ベーススタイルの var(--fv-height, 100svh) を全サイズで統一使用 */
        padding: var(--spacing-xxl) 0;
        padding-bottom: 100px;
    }
    
    .fv__title-main {
        font-size: 52px;
    }
    
    .fv__title-sub {
        font-size: 22px;
    }
    
    .fv__text {
        font-size: 18px;
    }
}

/* ========================================
   FV下部フレーム（FV内の最下部に配置）
======================================== */
.fv-bottom-frame {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: var(--frame-width-sm);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 100;
    transition: background-color 0.6s ease, background-image 0.6s ease;
}

@media (min-width: 768px) {
    .fv-bottom-frame {
        height: var(--frame-width-md);
    }
}

@media (min-width: 1024px) {
    .fv-bottom-frame {
        height: var(--frame-width-lg);
    }
}

.fv-bottom-frame {
    background-color: var(--color-frame);
}

/* ========================================
   .sec：各コンテンツセクション共通ラッパー
   （トップページ・サブページ共通で使用）
   ※ common.css にベーススタイル（padding等）を定義済み
======================================== */

/* セクション下部フレームライン → common.css に移行 */

/* 背景色 */
.company-bg-wrap {
    position: relative;
}

/* 共通スタイルは common.css で管理 */
.page-index .company-bg-wrap__fixed-bg {
    background-image: url('../images/header-wall.webp');
}

.sec--company {
    background: none;
}

.works-bg-wrap {
    position: relative;
}

/* 層1：z-indexはトップページ固有の値を維持 */
.page-index .works-bg-wrap__fixed-wrapper {
    z-index: 0;
}

/* 共通スタイルは common.css で管理 */
.page-index .works-bg-wrap__fixed-bg {
    background-image: url('../images/top-bg.webp');
}

/* 層2：白オーバーレイ（背景画像の前面） */
.page-index .works-bg-wrap__color-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, var(--works-overlay-opacity));
    pointer-events: none;
    z-index: 1;
}

/* 層3：コンテンツ（オーバーレイより前面） */
.page-index .sec--works {
    position: relative;
    z-index: 2;
}



.sec--service {
    background-color: #ffffff;
}

.sec--works {
    background: none;
}

.sec--reason {
    background-color: #ffffff;
}

/* コンテンツレイアウト */
.sec__content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

@media (min-width: 1024px) {
    .sec__content {
        flex-direction: row;
    }
}

.sec__text {
    font-size: 16px;
    line-height: 2;
    color: var(--color-text);
    flex: 1 1 0;
}

.sec__info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.sec__info-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    background-color: var(--color-bg-light);
    border-radius: 12px;
}

.sec__info-icon {
    font-size: 32px;
}

.sec__info-label {
    font-size: 12px;
    color: var(--color-text-light);
    margin-bottom: 4px;
}

.sec__info-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text);
}

.sec__image {
    flex: 1 1 0;
}

.sec__image-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #e0e7ee 0%, #f0f3f7 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--color-text-light);
}

.sec__image-placeholder::before {
    content: '画像が入ります';
}

.sec__btn {
    text-align: center;
    margin-top: var(--spacing-lg);
}

/* ========================================
   会社案内セクション - シンプル版スタイル
======================================== */

/* 外壁塗装・屋根塗装・防水工事 のハイライトテキスト */
.sec--company .sec__service-label {
    color: var(--color-text);
    font-weight: 700;
    display: inline;
    background-image: linear-gradient(to right, rgba(208, 75, 110, 0.4) 0%, rgba(208, 75, 110, 0.4) 100%);
    background-repeat: no-repeat;
    background-size: 100% 45%;
    background-position: 0 100%;
    padding-bottom: 0;
}

.sec--service .sec__service-label {
    color: var(--color-text);
    font-weight: 700;
    display: inline;
    background-image: linear-gradient(to right, rgba(34, 181, 115, 0.4) 0%, rgba(34, 181, 115, 0.4) 100%);
    background-repeat: no-repeat;
    background-size: 100% 45%;
    background-position: 0 100%;
    padding-bottom: 0;
}

/* シンプル版（画像なし、テキスト中心） */
.sec__content--simple {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.sec__text--full {
    width: 100%;
    max-width: 880px;
    text-align: left;
    margin: 0 auto;
}

.sec__text--full p {
    font-family: var(--font-family);
    font-size: 1.2rem;
    line-height: var(--body-line-height-sp);
    color: var(--color-text);
    letter-spacing: var(--body-letter-spacing);
    font-weight: 500;
    margin-bottom: var(--spacing-md);
}

.sec__text--full p:last-child {
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .sec__text--full p {
        font-size: 1.25rem;
        line-height: var(--body-line-height-pc);
        text-align: center;
    }
}

@media (min-width: 1024px) {
    .sec__text--full p {
        font-size: 1.375rem;
    }
}

@media (min-width: 1200px) {
    .sec__text--full p {
        font-size: 1.425rem;
    }
}

/* ========================================
   サービスグリッド（モバイル）
======================================== */
.service-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: var(--spacing-lg);
}

@media (min-width: 768px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* 画像アイテム */
.service-grid__item--image {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 16 / 10;
    display: block;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: linear-gradient(135deg, #d4f0e3 0%, #eaf8f1 100%);
    text-decoration: none;
}

@media (min-width: 768px) {
    .service-grid__item--image {
        aspect-ratio: 16 / 10;
    }
}

.service-grid__item--image:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    opacity: 1;
}

.service-grid__item--image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.service-grid__item--image:hover img {
    transform: scale(1.04);
}

/* プレースホルダー（画像未設定時） */
.service-grid__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-grid__placeholder i {
    font-size: 3.5rem;
    color: #22b573;
    opacity: 0.35;
}

/* 画像上のオーバーレイ */
.service-grid__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem 1rem;
    background: linear-gradient(to top, rgba(20, 90, 55, 0.45) 0%, transparent 100%);
    display: flex;
    align-items: flex-end;
    pointer-events: none;
    transition: background 0.3s ease;
}

.service-grid__item--image:hover .service-grid__overlay {
    background: linear-gradient(to top, rgba(20, 90, 55, 0.75) 0%, transparent 100%);
}

/* フレーム画像オーバーレイ */
.service-grid__overlay::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/image-frame01.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: bottom left;
    opacity: 0.85;
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.3s ease;
}

.service-grid__item--image:hover .service-grid__overlay::before {
    opacity: 1;
}

.service-grid__title {
    color: #ffffff;
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    font-weight: 700;
    letter-spacing: var(--body-letter-spacing);
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-family);
}

.service-grid__title i {
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.service-grid__item--image:hover .service-grid__title i {
    transform: translateX(4px);
}

/* テキストアイテム */
.service-grid__item--text {
    display: flex;
    align-items: center;
}

.service-grid__item--text > div {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.service-grid__item--text p {
    font-size: var(--body-font-size-sp);
    line-height: var(--body-line-height-sp);
    letter-spacing: var(--body-letter-spacing);
    color: var(--color-text);
    font-weight: 500;
}

@media (min-width: 576px) {
    .service-grid__overlay {
        padding: 1rem 1.25rem;
    }
    .service-grid__item--text p {
        font-size: var(--body-font-size-pc);
        line-height: var(--body-line-height-pc);
    }
}

/* 対応工事リスト */
.service-grid__list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.service-grid__list li {
    font-size: var(--body-font-size-sp);
    line-height: 1.6;
    color: var(--color-text);
    padding-left: 1.5rem;
    position: relative;
}

@media (min-width: 768px) {
    .service-grid__list li {
        font-size: var(--body-font-size-pc);
    }
}

.service-grid__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-frame);
}

/* ========================================
   施工実績 - キーワードマーカー
======================================== */
.sec--works .works-keyword {
    font-weight: 700;
    color: var(--color-text);
    display: inline;
    background-image: linear-gradient(to right, rgba(77, 144, 171, 0.4) 0%, rgba(77, 144, 171, 0.4) 100%);
    background-repeat: no-repeat;
    background-size: 100% 45%;
    background-position: 0 100%;
}

/* ========================================
   施工実績スライダー
======================================== */
.works-slider {
    position: relative;
    overflow: hidden;
    margin-bottom: var(--spacing-lg);
}

.works-slider__track {
    display: flex;
    gap: var(--spacing-sm);
    overflow: visible;
    will-change: transform;
}

.works-slider__track .work-card {
    flex: 0 0 100%;
    scroll-snap-align: start;
}

@media (min-width: 576px) {
    .works-slider__track .work-card {
        flex: 0 0 calc(50% - var(--spacing-sm) / 2);
    }
}

@media (min-width: 768px) {
    .works-slider__track {
        gap: var(--spacing-md);
    }
    .works-slider__track .work-card {
        flex: 0 0 calc(50% - var(--spacing-md) / 2);
    }
}

@media (min-width: 1024px) {
    .works-slider__track .work-card {
        flex: 0 0 calc(33.333% - var(--spacing-md) * 2 / 3);
    }
}

@media (min-width: 1200px) {
    .works-slider__track .work-card {
        flex: 0 0 calc(33.333% - var(--spacing-md) * 2 / 3);
    }
}

/* ドットインジケーター */
.works-slider__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: var(--spacing-sm);
}

.works-slider__dot {
    width: 36px;
    height: 36px;
    background-image: url('../images/title-deco03.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    opacity: 0.45;
    transition: opacity 0.2s ease, transform 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

.works-slider__dot span {
    display: block;
}

.works-slider__dot.is-active {
    opacity: 1;
}

@media (min-width: 768px) {
    .works-slider__dot {
        width: 40px;
        height: 40px;
        font-size: 0.75rem;
    }
}

.work-card {
    flex: 1 1 0;
}

.work-card__image {
    position: relative;
}

.work-card__image-placeholder {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #e0e7ee 0%, #f0f3f7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--color-text-light);
}

.work-card__image-placeholder::before {
    content: '施工写真';
}

.work-card__badge {
    position: absolute;
    top: var(--spacing-sm);
    left: var(--spacing-sm);
    background-color: var(--color-primary);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
}

.work-card__content {
    padding: var(--spacing-sm) 0;
}

.work-card__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
}

/* ========================================
   選ばれる理由 - キーワードマーカー
======================================== */
.sec--reason .reason-keyword {
    font-weight: 700;
    color: var(--color-text);
    display: inline;
    background-image: linear-gradient(to right, rgba(240, 200, 56, 0.4) 0%, rgba(240, 200, 56, 0.4) 100%);
    background-repeat: no-repeat;
    background-size: 100% 45%;
    background-position: 0 100%;
    padding-bottom: 0;
}

/* ========================================
   選ばれる理由
======================================== */
.reason-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.reason-item {
    display: flex;
    flex-direction: column;
    background-color: #fffefa;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 4px solid rgba(240, 200, 56, 0);
    transition: border-color 0.8s ease;
}

@media (min-width: 768px) {
    .reason-item {
        flex-direction: row-reverse;
        align-items: stretch;
        min-height: 280px;
    }

    .reason-item--reverse {
        flex-direction: row;
    }
}

.reason-item__body {
    padding: var(--spacing-sm);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: var(--spacing-xs);
}

@media (max-width: 575px) {
    .reason-item__body {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (max-width: 374px) {
    .reason-item__body {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

.reason-item__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.reason-item__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    background-color: transparent;
    background-image: url('../images/title-deco04.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    font-family: var(--font-en);
    flex-shrink: 0;
    margin-bottom: 0;
    letter-spacing: 0.05em;
}

.reason-item__badge span {
    transform: translateY(1px);
    display: block;
}

.reason-item__title {
    font-size: 20px;
    font-weight: 700;
    color: #d4a800;
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .reason-item__body {
        width: 50%;
        flex-shrink: 0;
        padding: var(--spacing-md);
    }
    .reason-item__image {
        width: 50%;
        flex-shrink: 0;
        aspect-ratio: unset;
    }
    .reason-item__title {
        font-size: 22px;
    }
}

.reason-item__text {
    font-size: 1rem;
    line-height: var(--body-line-height-sp);
    color: var(--color-text);
}

@media (min-width: 375px) {
    .reason-item__text {
        font-size: 1.1rem;
    }
}

@media (min-width: 768px) {
    .reason-item__text {
        font-size: 1.1rem;
        line-height: var(--body-line-height-pc);
    }
}

@media (min-width: 1200px) {
    .reason-item__text {
        font-size: 1.2rem;
    }
}

@media (max-width: 767px) {
    .reason-item__badge {
        width: 72px;
        height: 72px;
        font-size: 17px;
    }
}

.reason-item__image {
    overflow: hidden;
    position: relative;
}

.reason-item__image::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(240, 200, 56, 0.05);
    pointer-events: none;
    z-index: 1;
}

@media (max-width: 767px) {
    .reason-item__image {
        width: 100%;
        aspect-ratio: 16 / 9;
    }
}

.reason-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.reason-item.is-visible {
    border-color: rgba(240, 200, 56, 0.7);
}

@keyframes badge-scale-pop {
    0%   { transform: scale(1);    }
    30%  { transform: scale(1.15); }
    55%  { transform: scale(0.93); }
    75%  { transform: scale(1.08); }
    90%  { transform: scale(0.98); }
    100% { transform: scale(1);    }
}

.reason-item.is-visible .reason-item__badge {
    animation: badge-scale-pop 0.65s cubic-bezier(0.22, 0.61, 0.36, 1) 0.3s forwards;
}

.reason-item:hover .reason-item__image img {
    transform: scale(1.04);
}

/* ========================================
   FV左下背景フレーム + お知らせエリア
======================================== */
.fv-bottom-left-frame {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35%;
    min-width: 320px;
    max-width: 500px;
    height: auto;
    background-color: var(--color-frame);
    border-radius: 0 20px 0 0;
    z-index: 50;
    padding: 16px var(--spacing-sm) 12px var(--spacing-sm);
    display: flex;
    align-items: center;
    overflow: visible;
}

@media (min-width: 768px) {
    .fv-bottom-left-frame {
        left: var(--frame-width-md);
        min-width: 380px;
        padding: 16px var(--spacing-sm) 16px var(--spacing-sm);
        border-radius: 0 24px 0 0;
    }
}

@media (min-width: 1024px) {
    .fv-bottom-left-frame {
        min-width: 450px;
        padding: 20px var(--spacing-md) 20px var(--spacing-md);
        border-radius: 0 28px 0 0;
    }
}

@media (min-width: 1024px) {
    .fv-bottom-left-frame {
        left: var(--frame-width-lg);
    }
}

.fv-news-badge {
    position: absolute;
    top: 0;
    left: 20px;
    transform: translateY(calc(-100% - 8px));
    background-color: rgba(219, 77, 83, 0.85);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1;
    padding: 7px 18px;
    border-radius: 50px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
    .fv-news-badge {
        left: 24px;
        font-size: 0.875rem;
        padding: 8px 20px;
        transform: translateY(calc(-100% - 10px));
    }
}

.fv-news {
    width: 100%;
    display: flex;
    align-items: center;
}

.fv-news-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

@media (min-width: 768px) {
    .fv-news-list {
        gap: 10px;
    }
}

.fv-news-item {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

.fv-news-item:hover {
    opacity: 0.7;
}

.fv-news-item--empty {
    cursor: default;
    text-align: center;
}

.fv-news-item--empty:hover {
    opacity: 1;
}

.fv-news-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fv-news-date {
    font-size: clamp(0.85rem, 1.8vw, 0.9rem);
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    line-height: 1;
}

.fv-news-text {
    font-size: clamp(0.875rem, 2vw, 0.925rem);
    color: #ffffff;
    line-height: 1.5;
    font-weight: 500;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* ========================================
   施工実績カード（トップページ用スタイル）
======================================== */
.works-count-note {
    text-align: left;
    font-size: 0.9rem;
    font-weight: 500;
    color: #6a6a6a;
    margin: 0 0 var(--spacing-sm);
}

.works-count-note strong {
    font-size: 1.25rem;
    font-weight: 700;
    color: #4d90ab;
    margin: 0 2px;
}

.works-count-display {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--color-text-light);
    margin-left: 0.4em;
}

.sec--works .work-card {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s ease;
    background: linear-gradient(135deg, #c6dde8 0%, #e4f0f5 100%);
    display: block;
}

.sec--works .work-card:hover {
    box-shadow: var(--shadow-sm);
}

.sec--works .work-card__image {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: transparent;
}

.sec--works .work-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.sec--works .work-card:hover .work-card__image img {
    transform: scale(1.04);
}

.sec--works .work-card__badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(77, 144, 171, 0.85);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    z-index: 3;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    height: auto;
}

.sec--works .work-card__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.5rem 0.85rem;
    display: flex;
    align-items: center;
    min-height: 48px;
    pointer-events: none;
    z-index: 2;
}

.sec--works .work-card__content::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/image-frame02.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: bottom left;
    opacity: 0.85;
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.3s ease;
}

.sec--works .work-card:hover .work-card__content::before {
    opacity: 1;
}

.sec--works .work-card__title {
    font-size: clamp(0.9rem, 1.5vw, 1.05rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.4;
    position: relative;
    z-index: 1;
    letter-spacing: var(--body-letter-spacing);
    text-shadow: none;
    display: flex;
    align-items: center;
    gap: 0.4em;
}

@media (min-width: 1024px) {
    .sec--works .work-card__title {
        font-size: 1rem;
    }
}

.sec--works .work-card__title::before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    content: '\f054';
    font-size: 0.75em;
    opacity: 0.85;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    line-height: 1;
}

.sec--works .work-card:hover .work-card__title::before {
    transform: translateX(3px);
}

.sec--works .work-card__image-placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #c6dde8 0%, #e4f0f5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sec--works .work-card__image-placeholder::before {
    content: '施工写真';
    font-size: 0.85rem;
    color: var(--color-text-light);
}

/* ========================================
   セクションボタン（クリップリビール）
======================================== */
.sec__btn .btn--rect::before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    content: '\f054';
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    z-index: 1;
    transition: left 0.3s ease;
}

.sec__btn .btn--rect:hover::before {
    left: 1.1rem;
}

.sec__btn .btn--rect .btn-deco-hint {
    position: absolute;
    inset: 0;
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

.sec__btn .btn--rect .btn-deco {
    position: absolute;
    inset: 0;
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1;
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 0;
    will-change: clip-path;
    transform: translateZ(0);
}

.sec__btn .btn--rect:hover .btn-deco {
    clip-path: inset(0 0% 0 0);
}

.sec__btn .btn--rect .btn-label {
    position: relative;
    z-index: 1;
    padding-right: 0.5rem;
}

@media (min-width: 768px) {
    .btn--rect {
        padding: 1.75rem 1.25rem;
        font-size: var(--body-font-size-pc);
        width: 212px;
        padding-right: 1rem;
    }
}

.sec__btn .btn--rect:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
    transform: none;
    opacity: 1;
}

/* セクションごとのボタンテキストカラー */
.sec--company .sec__btn .btn--rect { color: #d04b6e; }
.sec--service .sec__btn .btn--rect { color: #22b573; }
.sec--works   .sec__btn .btn--rect { color: #4d90ab; }
.sec--reason  .sec__btn .btn--rect { color: #f0c838; }

.sec--company .sec__btn .btn--rect:hover,
.sec--service .sec__btn .btn--rect:hover,
.sec--works   .sec__btn .btn--rect:hover,
.sec--reason  .sec__btn .btn--rect:hover {
    color: #ffffff;
}

/* ボタン配置 */
.sec--service .sec__btn {
    display: flex;
    justify-content: flex-end;
}

.sec--works .sec__btn {
    display: flex;
    justify-content: flex-start;
}

.sec--reason .sec__btn {
    display: flex;
    justify-content: flex-end;
}

/* ========================================
   英語タイトル（アニメーションなし・常時表示）
======================================== */
.title__en {
    clip-path: none;
}

/* wave-revealアニメーション → common.css .wave-divider--animated に移行 */

/* section-deco → common.css に移行 */

/* sec-icon → common.css に移行 */


/* ========================================
   お問い合わせ - キーワードハイライト
======================================== */
.contact__highlight {
    font-weight: 700;
    color: var(--color-text);
    display: inline;
    background-image: linear-gradient(to right, rgba(82, 178, 204, 0.4) 0%, rgba(82, 178, 204, 0.4) 100%);
    background-repeat: no-repeat;
    background-size: 100% 45%;
    background-position: 0 100%;
    padding-bottom: 0;
}
