@charset 'UTF-8';

/*
MAIN
================================================ */
.hero-slider {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.slides-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(0.6) translateX(0);
    transition: transform 1.5s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1),
        filter 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    transform: scale(0.85) translateX(0);
    z-index: 3;
    pointer-events: auto;
    position: relative;
    filter: brightness(1.1) contrast(1.05);
}

/* activeスライドの枠線アクセント */
.slide.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 6px solid rgba(255, 255, 255, 1);
    border-radius: 8px;
    z-index: 10;
    pointer-events: none;
    box-shadow: 
        0 0 25px rgba(255, 255, 255, 0.6),
        0 0 50px rgba(255, 255, 255, 0.3),
        inset 0 0 25px rgba(255, 255, 255, 0.15);
}

.slide.prev {
    opacity: 0.5;
    transform: scale(0.6) translateX(-35%);
    z-index: 2;
    pointer-events: auto;
    filter: brightness(0.8) contrast(0.9);
}

.slide.next {
    opacity: 0.5;
    transform: scale(0.6) translateX(35%);
    z-index: 2;
    pointer-events: auto;
    filter: brightness(0.8) contrast(0.9);
}

/* スライド内の画像にズームアニメーション */
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 8s ease-out;
    transform: scale(1.1);
}

.slide.active img {
    transform: scale(1);
    filter: brightness(1.05) contrast(1.1) saturate(1.1);
}

/* スライドオーバーレイ効果 */
.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(42, 93, 31, 0.1) 0%,
        rgba(42, 93, 31, 0.05) 50%,
        rgba(42, 93, 31, 0.1) 100%
    );
    z-index: 1;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active::before {
    opacity: 1;
}

/* スライドコンテンツ */
.slide-content {
    position: absolute;
    bottom: 120px;
    left: 50px;
    z-index: 5;
    color: var(--color-white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out 0.5s;
}

.slide.active .slide-content {
    opacity: 1;
    transform: translateY(0);
}

.slide.prev .slide-content,
.slide.next .slide-content {
    opacity: 0;
    transform: translateY(30px);
}

.slide-title {
    font-size: 3.5rem;
    font-weight: 300;
    margin: 0 0 15px;
    font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
    letter-spacing: 0.2em;
    line-height: 1.2;
}

.slide-description {
    font-size: 1.3rem;
    margin: 0;
    font-weight: 300;
    letter-spacing: 0.1em;
    line-height: 1.6;
    opacity: 0.9;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .slide-content {
        bottom: 80px;
        left: 30px;
        right: 30px;
    }
    
    .slide-title {
        font-size: 2.2rem;
        margin-bottom: 10px;
    }
    
    .slide-description {
        font-size: 1.1rem;
    }
    
    .slide-progress {
        top: 20px;
        width: 150px;
    }
    
    /* モバイルでは通常のスライドショー（1枚表示） */
    .slide.active {
        transform: scale(1) translateX(0);
        opacity: 1;
    }
    
    .slide.prev,
    .slide.next {
        opacity: 0;
        transform: scale(0.8) translateX(0);
        pointer-events: none;
    }
    
    /* モバイルでは枠線を非表示 */
    .slide.active::after {
        display: none;
    }
    

}

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

/* スライド進捗バー */
.slide-progress {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    z-index: 10;
    overflow: hidden;
    animation: fadeInDown 1s ease-out var(--duration-base) both;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--color-white), rgba(255, 255, 255, 0.8));
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
}



/* スライドナビゲーション */
.slide-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
    background: transparent;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    position: relative;
    overflow: hidden;
}

.nav-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all var(--duration-base) ease;
}

.nav-dot:hover::before {
    width: 100%;
    height: 100%;
}

.nav-dot:hover {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.9);
    transform: scale(1.1);
}

.nav-dot.active {
    background: var(--color-white);
    border-color: var(--color-white);
    transform: scale(1.3);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.nav-dot.active::before {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
}

/* 矢印ナビゲーション */
.slide-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    backdrop-filter: blur(10px);
    opacity: 0;
    animation: fadeInArrow 1s ease-out 1s both;
}

.slide-arrow:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.slide-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.slide-arrow svg {
    width: 24px;
    height: 24px;
    color: var(--color-white);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: transform var(--duration-base) ease;
}

.slide-arrow:hover svg {
    transform: scale(1.1);
}

.prev-arrow {
    left: 30px;
    animation-delay: 1.2s;
}

.next-arrow {
    right: 30px;
    animation-delay: 1.4s;
}

/* 自動再生の一時停止／再生ボタン */
.slide-playback-toggle {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    color: var(--color-white);
    z-index: 10;
    backdrop-filter: blur(10px);
    transition: all var(--duration-base) ease;
}

.slide-playback-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
}

.slide-playback-toggle__icon {
    width: 14px;
    height: 14px;
}

.slide-playback-toggle__icon--play {
    display: none;
}

.slide-playback-toggle.is-paused .slide-playback-toggle__icon--pause {
    display: none;
}

.slide-playback-toggle.is-paused .slide-playback-toggle__icon--play {
    display: block;
}

/* アニメーション定義 */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInArrow {
    0% {
        opacity: 0;
        transform: translateY(-50%) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
}

/* スライド切り替え時のパーティクル効果 */
.slide-transition-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 15;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: particleFloat 2s ease-out forwards;
}

@keyframes particleFloat {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) scale(0);
    }
}



/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .slide-nav {
        bottom: 20px;
        gap: 8px;
    }
    
    .nav-dot {
        width: 10px;
        height: 10px;
    }
    
    .slide-arrow {
        width: 40px;
        height: 40px;
    }
    
    .slide-arrow svg {
        width: 20px;
        height: 20px;
    }
    
    .prev-arrow {
        left: 15px;
    }

    .next-arrow {
        right: 15px;
    }

    .slide-playback-toggle {
        bottom: 20px;
        right: 15px;
        width: 32px;
        height: 32px;
    }
}

.main-message {
    margin: 160px auto;
    max-width: 1100px;
    background-image: url('../images/pine_icon.png');
    background-color: rgba(255, 255, 255, 0.9);
    background-blend-mode: soft-light;
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 400px auto;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.message-body {
    font-size: 2.0rem;
    line-height: 2.2;
    letter-spacing: 0.15em;
    padding: 3rem 2rem;
    max-width: 600px;
    color: #26611f;
    font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
    writing-mode: vertical-rl;
    text-orientation: upright;
    height: auto;
    margin: 0;
    display: inline-block;
    text-align: left;
    position: relative;
}

.message-body .first-line {
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    margin-bottom: 2rem;
    display: block;
    position: relative;
    left: -0.5rem;
}

.message-body br:first-of-type {
    margin-bottom: 1.5rem;
}

@media screen and (max-width: 768px) {
    .main-message {
        padding: 30px 20px;
        background-size: 80px auto;
        margin: 60px auto;
        background-position: right bottom;
        background-blend-mode: soft-light;
    }

    .message-body {
        font-size: 1.4rem;
        writing-mode: horizontal-tb;
        text-orientation: mixed;
        display: flex;
        flex-direction: column;
        align-items: center;
        line-height: 2.2;
        letter-spacing: 0.08em;
        padding: 0;
    }

    .message-body .first-line {
        font-size: 1.8rem;
        margin-bottom: 1rem;
        left: 0;
        letter-spacing: 0.12em;
        font-weight: 600;
    }

    .message-body br {
        display: block;
        content: "";
        margin: 0.8rem 0;
    }
}

/*
業務内容セクションのスタイル
================================================ */
.service-section {
    padding: 120px 0;
    background-color: var(--color-bg-light);
    position: relative;
    overflow: hidden;
}

.service-section__title {
    font-size: 2.4rem;
    font-weight: normal;
    color: var(--color-primary);
    text-align: center;
    margin: 0 auto 80px;
    font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
    position: relative;
    letter-spacing: 0.2em;
    padding-bottom: 15px;
    display: inline-block;
    width: 100%;
}

.service-section__title::after {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background-color: var(--color-primary);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.5;
}

.service-section__title::before {
    content: 'Services';
    display: block;
    font-size: 1.2rem;
    color: var(--color-primary);
    opacity: 0.6;
    margin-bottom: 5px;
    font-family: "Crimson Text", serif;
    letter-spacing: 0.1em;
    text-align: center;
}

/* カテゴリスタイル */
.service-category {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 40px;
}

.service-category:last-of-type {
    margin-bottom: 40px;
}

.service-category__title {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 30px;
    position: relative;
    padding-left: 20px;
    font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
    letter-spacing: 0.05em;
    font-weight: 500;
    border-left: 4px solid var(--color-primary);
}

.service-category__description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text-muted);
    /* .service-category__title の margin-bottom と対で調整すること（相殺後の実効ギャップ=15px） */
    margin: -15px 0 30px;
}

.service-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* サービスアイテムスタイル */
.service-item {
    background-color: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    transition: all var(--duration-base) ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: rgba(42, 93, 31, 0.1);
}

.service-item__icon {
    width: 60px;
    height: 60px;
    background-color: rgba(42, 93, 31, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all var(--duration-base) ease;
}

.service-item__icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    transition: all var(--duration-base) ease;
    filter: brightness(0) saturate(100%) invert(25%) sepia(33%) saturate(1048%) hue-rotate(90deg) brightness(92%) contrast(89%);
}

/* カテゴリー1のアイコン色設定 */
.service-category:nth-child(2) .service-item__icon {
    background-color: rgba(60, 142, 47, 0.15);
    border: 2px solid rgba(42, 93, 31, 0.1);
}

.service-category:nth-child(2) .service-item:hover .service-item__icon {
    background-color: rgba(60, 142, 47, 0.25);
    border-color: rgba(42, 93, 31, 0.2);
}

/* カテゴリー2のアイコン色設定 */
.service-category:nth-child(3) .service-item__icon {
    background-color: rgba(50, 150, 70, 0.15);
    border: 2px solid rgba(60, 142, 47, 0.1);
}

.service-category:nth-child(3) .service-item:hover .service-item__icon {
    background-color: rgba(50, 150, 70, 0.25);
    border-color: rgba(60, 142, 47, 0.2);
}

/* カテゴリー3のアイコン色設定 */
.service-category:nth-child(4) .service-item__icon {
    background-color: rgba(30, 120, 40, 0.15);
    border: 2px solid rgba(30, 120, 40, 0.1);
}

.service-category:nth-child(4) .service-item:hover .service-item__icon {
    background-color: rgba(30, 120, 40, 0.25);
    border-color: rgba(30, 120, 40, 0.2);
}

/* ホバー効果 */
.service-item:hover .service-item__icon {
    transform: scale(1.05);
}

.service-item:hover .service-item__icon img {
    filter: brightness(0) saturate(100%) invert(25%) sepia(33%) saturate(1048%) hue-rotate(90deg) brightness(92%) contrast(89%);
}

.service-item__content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-item__title {
    font-size: 1.3rem;
    color: var(--color-primary);
    margin-bottom: 12px;
    font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
    font-weight: 500;
}

.service-item__description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
    margin: 0;
}

.service-button-container {
    text-align: center;
    margin-top: 60px;
}

@media (max-width: 1024px) {
    .service-items {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .service-section {
        padding: 80px 0 60px;
    }

    .service-section__title {
        margin: 0 auto 60px;
        font-size: 2.2rem;
    }

    .service-section__title::after {
        width: 50px;
    }

    .service-section__title::before {
        text-align: center;
    }

    .service-category {
        padding: 0 20px;
        margin-bottom: 60px;
    }
    
    .service-category__title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .service-category__description {
        margin-top: -5px;
    }

    .service-items {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-item {
        padding: 25px 20px;
    }
    
    .service-item__icon {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }
    
    .service-item__icon img {
        width: 25px;
        height: 25px;
    }
    
    .service-item__title {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .service-button-container {
        margin-top: 40px;
        padding: 0 20px;
    }
}

/*
施工実績セクションのスタイル
================================================ */
.work-section {
    padding: 120px 0;
    background-color: #f9f9f9;
    position: relative;
    overflow: hidden;
}

.work-title {
    font-size: 2.4rem;
    font-weight: normal;
    text-align: center;
    margin: 0 auto 80px;
    color: var(--color-primary);
    font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
    position: relative;
    letter-spacing: 0.2em;
    padding-bottom: 15px;
    display: inline-block;
    width: 100%;
}

.work-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background-color: var(--color-primary);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.5;
}

.work-title::before {
    content: 'Works';
    display: block;
    font-size: 1.2rem;
    color: var(--color-primary);
    opacity: 0.6;
    margin-bottom: 5px;
    font-family: "Crimson Text", serif;
    letter-spacing: 0.1em;
    text-align: center;
}

.work-image-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 80px;
}

.work-image-item {
    width: 100%;
    text-align: center;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    overflow: hidden;
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.work-image-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(42, 93, 31, 0.15);
}

.work-image-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    transition: transform 0.6s ease;
}

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

.work-image-title {
    position: relative;
    padding: 1.5rem;
    text-align: center;
    font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    background: var(--color-white);
}

.work-image-title .location {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--color-primary);
    letter-spacing: 0.1em;
    text-align: center;
    padding-bottom: 12px;
    position: relative;
    display: inline-block;
}

.work-image-title .location::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background-color: var(--color-primary);
    opacity: 0.3;
    transition: width var(--duration-base) ease;
}

.work-image-item:hover .work-image-title .location::after {
    width: 60px;
}

.work-image-title .description {
    font-size: 1rem;
    color: #555;
    margin: 0;
    line-height: 1.8;
    letter-spacing: 0.05em;
    text-align: center;
    position: relative;
}

.work-button-container {
    text-align: center;
    margin-top: 80px;
    padding: 0 20px;
}

@media (max-width: 1024px) {
    .work-image-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        padding: 20px 40px;
    }
}

@media (max-width: 768px) {
    .work-section {
        padding: 60px 0 40px;
    }

    .work-title {
        margin: 0 auto 50px;
        font-size: 1.8rem;
    }

    .work-title::after {
        width: 50px;
    }

    .work-image-container {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 20px;
    }

    .work-image-item {
        gap: 15px;
    }

    .work-image-title {
        padding: 1.2rem;
    }

    .work-image-title .location {
        font-size: 1.1rem;
        padding-bottom: 10px;
    }

    .work-image-title .description {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .work-button-container {
        margin-top: 50px;
    }
}

/*
新着情報のスタイル
================================================ */
.blog-section {
    padding: 120px 0;
    background-color: #f9f9f9;
    position: relative;
    overflow: hidden;
}

.blog-title {
    font-size: 2.4rem;
    font-weight: normal;
    color: var(--color-primary);
    text-align: center;
    margin: 0 auto 80px;
    font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
    position: relative;
    letter-spacing: 0.2em;
    padding-bottom: 15px;
    display: inline-block;
    width: 100%;
}

.blog-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background-color: var(--color-primary);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.5;
}

.blog-title::before {
    content: 'News';
    display: block;
    font-size: 1.2rem;
    color: var(--color-primary);
    opacity: 0.6;
    margin-bottom: 5px;
    font-family: "Crimson Text", serif;
    letter-spacing: 0.1em;
    text-align: center;
}

@media screen and (max-width: 768px) {
    .blog-section {
        padding: 80px 0;
    }

    .blog-title {
        margin: 0 auto 60px;
        font-size: 1.8rem;
    }

    .blog-title::after {
        width: 50px;
    }
}