/* ===================================
   トップページ専用スタイル - Dリフォーム
   背景動画固定・スクロールコンテンツ
   =================================== */

/* ===================================
   背景動画（固定表示）
   =================================== */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-background__video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
}

.video-background__video--pc {
    display: block;
}

.video-background__video--sp {
    display: none;
}

.video-background__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

/* ===================================
   ファーストビュー（ヒーローセクション）
   =================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero__content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--white);
    padding: 0 2rem;
    animation: fadeInUp 1s ease 0.3s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero__catch {
    font-size: 1rem;
    letter-spacing: 5px;
    margin-bottom: 1rem;
    opacity: 0.9;
    font-weight: 500;
    animation: fadeInUp 1s ease 0.5s both;
}

.hero__title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.4;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease 0.7s both;
}

.hero__subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    line-height: 1.8;
    text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.5);
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.9s both;
}

.hero__buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 1.1s both;
}

.hero__scroll {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    color: var(--white);
    font-size: 0.75rem;
    letter-spacing: 3px;
    z-index: 10;
    animation: fadeIn 1s ease 1.5s both;
    cursor: pointer;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero__scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--white), transparent);
    animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }
    50% {
        transform: scaleY(1);
        transform-origin: top;
    }
    50.1% {
        transform: scaleY(1);
        transform-origin: bottom;
    }
    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

/* ===================================
   メインコンテンツラッパー
   背景の上にスクロールするコンテンツ
   =================================== */
.main-content {
    position: relative;
    z-index: 1;
    background-color: transparent;
}

/* ===================================
   お知らせバナー
   =================================== */
.news-banner {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 1.2rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.news-banner__content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.news-banner__label {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 0.4rem 1.2rem;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1px;
    border-radius: 3px;
}

.news-banner__link {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

.news-banner__link:hover {
    opacity: 1;
}

.news-banner__link:hover .news-banner__text {
    color: var(--primary-color);
}

.news-banner__date {
    color: var(--text-light);
    font-size: 0.85rem;
}

.news-banner__text {
    color: var(--text-dark);
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

/* ===================================
   キャッチコピーセクション
   =================================== */
.catchcopy {
    padding: 6rem 0;
    background-color: rgba(255, 255, 255, 0.95);
}

.catchcopy__content {
    text-align: center;
}

.catchcopy__label {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
}

.catchcopy__title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.catchcopy__text {
    color: var(--text-medium);
    line-height: 2.2;
    max-width: 800px;
    margin: 0 auto;
}

/* ===================================
   サービスセクション
   =================================== */
.services {
    background-color: rgba(255, 248, 240, 0.95);
}

.services__list {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin-bottom: 3rem;
}

.service-row {
    display: flex;
    align-items: stretch;
    gap: 0;
    background-color: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.service-row:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.service-row--reverse {
    flex-direction: row-reverse;
}

.service-row__image {
    flex: 0 0 45%;
    min-height: 300px;
    overflow: hidden;
    background-color: var(--bg-light);
    position: relative;
}

.service-row__image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 123, 123, 0.1), rgba(78, 205, 196, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-row:hover .service-row__image::after {
    opacity: 1;
}

.service-row__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-row:hover .service-row__image img {
    transform: scale(1.08);
}

.service-row__body {
    flex: 1;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-row__icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    box-shadow: 0 5px 15px rgba(255, 123, 123, 0.3);
}

.service-row__title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-row__description {
    color: var(--text-light);
    line-height: 1.9;
    font-size: 1rem;
}

.services__button {
    text-align: center;
}

/* ===================================
   強みセクション
   =================================== */
.strengths {
    background-color: rgba(255, 255, 255, 0.95);
}

.strengths__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.strength-card {
    background-color: var(--bg-cream);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

.strength-card__image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background-color: var(--bg-light);
}

.strength-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.strength-card__body {
    padding: 2rem;
    position: relative;
}

.strength-card__number {
    position: absolute;
    top: -30px;
    right: 2rem;
    font-size: 5rem;
    font-weight: 700;
    color: var(--primary-color);
    opacity: 0.15;
    line-height: 1;
}

.strength-card__title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    position: relative;
}

.strength-card__title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    margin-top: 0.8rem;
    border-radius: 2px;
}

.strength-card__description {
    color: var(--text-medium);
    line-height: 1.9;
}

/* ===================================
   施工実績セクション
   =================================== */
.works {
    background-color: rgba(255, 248, 240, 0.95);
}

.works__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.work-card {
    background-color: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.work-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.work-card__image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-color: var(--bg-light);
    position: relative;
}

.work-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.work-card__content {
    padding: 1.5rem;
}

.work-card__title {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
}

.work-card__description {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.9rem;
}

.works__button {
    text-align: center;
}

/* ===================================
   会社概要セクション
   =================================== */
.company-brief {
    background-color: rgba(255, 255, 255, 0.95);
}

.company-brief__content {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.company-brief__image {
    flex: 1;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.company-brief__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.company-brief__info {
    flex: 1;
}

.company-brief__list {
    margin-bottom: 2rem;
}

.company-brief__item {
    display: flex;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.company-brief__item:last-child {
    border-bottom: none;
}

.company-brief__item dt {
    width: 100px;
    font-weight: 600;
    color: var(--primary-color);
    flex-shrink: 0;
}

.company-brief__item dd {
    color: var(--text-dark);
    line-height: 1.7;
}

.company-brief__button {
    text-align: left;
}

/* ===================================
   CTAセクション（透過背景）
   =================================== */
.cta-section {
    position: relative;
    padding: 6rem 0;
    /* 背景は固定動画が透けて見える */
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.9), rgba(255, 123, 123, 0.85));
    z-index: 0;
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.cta-section__content {
    text-align: center;
    color: var(--white);
}

.cta-section__label {
    font-size: 0.9rem;
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.cta-section__title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.cta-section__description {
    font-size: 1rem;
    margin-bottom: 2.5rem;
    line-height: 1.8;
    opacity: 0.95;
}

.cta-section__methods {
    display: flex;
    justify-content: center;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto 2.5rem;
}

.cta-section__method {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 1.5rem 2rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    flex: 1;
    max-width: 350px;
}

.cta-section__method:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    opacity: 1;
}

.cta-section__method--disabled {
    opacity: 0.7;
    cursor: default;
}

.cta-section__method--disabled:hover {
    transform: none;
    background-color: rgba(255, 255, 255, 0.15);
}

.cta-section__method-icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background-color: var(--white);
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.cta-section__method--line .cta-section__method-icon {
    color: #06C755;
}

.cta-section__method-content {
    text-align: left;
}

.cta-section__method-label {
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
    opacity: 0.9;
}

.cta-section__method-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
}

.cta-section__button {
    text-align: center;
}

/* ===================================
   レスポンシブ対応
   =================================== */
@media screen and (max-width: 1024px) {
    .service-row__image {
        flex: 0 0 40%;
        min-height: 250px;
    }

    .service-row__body {
        padding: 2rem;
    }

    .works__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .company-brief__content {
        gap: 2rem;
    }
}

@media screen and (max-width: 768px) {
    .video-background__video--pc {
        display: none;
    }

    .video-background__video--sp {
        display: block;
        width: auto;
        height: 100%;
        min-width: 0;
        min-height: 100%;
    }

    .hero {
        min-height: 100vh;
    }

    .hero__catch {
        font-size: 0.85rem;
        letter-spacing: 3px;
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero__subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero__buttons {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }

    .hero__buttons .btn {
        width: 100%;
        max-width: 280px;
    }

    .news-banner__content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .news-banner__link {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }

    .catchcopy {
        padding: 4rem 0;
    }

    .catchcopy__title {
        font-size: 1.5rem;
    }

    .catchcopy__text {
        font-size: 0.9rem;
        line-height: 2;
    }

    .catchcopy__text br {
        display: none;
    }

    .service-row {
        flex-direction: column;
    }

    .service-row--reverse {
        flex-direction: column;
    }

    .service-row__image {
        flex: none;
        width: 100%;
        min-height: 200px;
    }

    .service-row__body {
        padding: 1.5rem;
    }

    .strengths__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .strength-card__image {
        height: 200px;
    }

    .works__grid {
        grid-template-columns: 1fr;
    }

    .company-brief__content {
        flex-direction: column;
        gap: 2rem;
    }

    .company-brief__image {
        width: 100%;
        max-height: 250px;
    }

    .company-brief__button {
        text-align: center;
    }

    .cta-section__title {
        font-size: 1.6rem;
    }

    .cta-section__methods {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-section__method {
        max-width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .hero__title {
        font-size: 1.6rem;
    }

    .hero__subtitle {
        font-size: 0.9rem;
    }

    .service-row__body {
        padding: 1.2rem 1rem;
    }

    .service-row__icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .service-row__title {
        font-size: 1.2rem;
    }

    .service-row__description {
        font-size: 0.9rem;
    }

    .strength-card__body {
        padding: 1.5rem;
    }

    .strength-card__number {
        font-size: 4rem;
        right: 1rem;
    }

    .cta-section__method {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .cta-section__method-content {
        text-align: center;
    }

    .cta-section__method-value {
        font-size: 1.1rem;
    }
}
