/* ========================================
   トップページ専用スタイル (top.css)
======================================== */

/* ========================================
   0. 透明ナビゲーション（トップページ用）
======================================== */
.sn--transparent {
    position: absolute;
    width: 100%;
    background: transparent;
    border-bottom: none;
}

.sn--transparent .nav-links > li > a {
    color: #fff;
}

.sn--transparent .nav-links > li > a:hover {
    color: rgba(255, 255, 255, 0.7);
}

.sn--transparent .nav-logo img {
    filter: brightness(0) invert(1);
}

.sn--transparent .nav-burger {
    color: #fff;
}

/* ========================================
   1. ヒーローセクション
======================================== */
.top-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.top-hero__bg {
    position: absolute;
    inset: 0;
    background: #d0d0d0 url(../img/common/hero.png) no-repeat center / cover;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.top-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 58, 92, 0.65) 0%, rgba(45, 45, 45, 0.50) 100%);
    z-index: 2;
}

.top-hero__inner {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

.top-hero__eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.2em;
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 6px 16px;
    margin-bottom: 24px;
}

.top-hero__title {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.3);
    line-height: 1.4;
    margin-bottom: 24px;
}

.top-hero__title em {
    font-style: normal;
    color: #fff;
    background: linear-gradient(transparent 60%, rgba(204, 0, 0, 0.6) 60%);
}

.top-hero__lead {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.8;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45), 0 1px 2px rgba(0, 0, 0, 0.25);
    max-width: 600px;
    margin-bottom: 40px;
}

.top-hero__buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.top-hero__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 200px;
    text-align: center;
}

.top-hero__btn--primary {
    background: #CC0000;
    color: #fff;
    border: 2px solid #CC0000;
}

.top-hero__btn--primary:hover {
    background: #a80000;
    border-color: #a80000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(204, 0, 0, 0.4);
}

.top-hero__btn--outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.7);
}

.top-hero__btn--outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    transform: translateY(-2px);
}

/* ========================================
   1.5. 信頼バー
======================================== */
.trust-bar {
    background: #1A3A5C;
    padding: 14px 0;
}

.trust-bar__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.trust-bar__item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

.trust-bar__icon {
    font-size: 1rem;
}

/* ========================================
   2. 数字で見るロシナンテ
======================================== */
.top-numbers {
    padding: 48px 0;
    background: #fff;
}

.top-numbers__heading {
    margin-bottom: 40px;
}

.top-numbers__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.top-numbers__item {
    text-align: center;
    padding: 40px 20px;
    position: relative;
}

.top-numbers__icon {
    display: block;
    width: 96px;
    height: 96px;
    margin: 0 auto 16px;
    object-fit: contain;
}

.top-numbers__item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: #e0e0e0;
}

.top-numbers__value {
    display: block;
    font-size: 4rem;
    font-weight: 800;
    color: #CC0000;
    line-height: 1;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.top-numbers__value small {
    font-size: 1.5rem;
    font-weight: 700;
}

.top-numbers__label {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2D2D2D;
    margin-bottom: 8px;
}

.top-numbers__desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

/* ========================================
   3. 選ばれる5つの理由 (POINT style)
======================================== */
.top-points {
    padding: 48px 0;
    background: #F5F5F5;
}

.top-points__heading {
    margin-bottom: 60px;
}

.top-points__list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.top-points__card {
    background: #fff;
    padding: 48px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: grid;
    grid-template-columns: 1fr 160px;
    grid-template-rows: auto 1fr;
    gap: 0 40px;
    align-items: center;
}

.top-points__body {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
}

.top-points__icon {
    grid-column: 2;
    grid-row: 1 / -1;
    width: 160px;
    height: 160px;
    object-fit: contain;
    justify-self: center;
}

.top-points__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.top-points__number {
    grid-column: 1;
    grid-row: 1;
    display: block;
    font-size: 0.8rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: #CC0000;
    letter-spacing: 0.15em;
}

.top-points__number::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background: #CC0000;
    margin-top: 8px;
}

.top-points__title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2D2D2D;
    margin-bottom: 12px;
}

.top-points__desc {
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
    max-width: 700px;
}

/* ========================================
   4. サービス一覧
======================================== */
.top-services {
    padding: 48px 0;
    background: #fff;
}

.top-services__heading {
    margin-bottom: 60px;
}

.top-services__group {
    margin-bottom: 60px;
    text-align: center;
}

.top-services__group:last-child {
    margin-bottom: 0;
}

.top-services__cat {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1A3A5C;
    padding-bottom: 12px;
    border-bottom: 2px solid #1A3A5C;
    margin-bottom: 24px;
    display: inline-block;
}

.top-services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

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

.top-services__card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
    padding: 32px 24px;
    background: #F5F5F5;
    text-decoration: none;
    color: inherit;
    position: relative;
    transition: all 0.3s ease;
}

.top-services__card:hover {
    background: #fff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}



.top-services__body {
    flex: 1;
    min-width: 0;
}

.top-services__icon {
    flex-shrink: 0;
}

.top-services__icon img {
    width: 64px;
    height: 64px;
}

.top-services__name {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1rem;
    font-weight: 700;
    color: #2D2D2D;
    margin-bottom: 8px;
}

.top-services__name::after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-left: 8px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18l6-6-6-6'/%3E%3C/svg%3E") no-repeat center / contain;
    transition: transform 0.3s ease, background 0.3s ease;
}

.top-services__card:hover .top-services__name::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23CC0000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18l6-6-6-6'/%3E%3C/svg%3E");
    transform: translateX(4px);
}

.top-services__text {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
    flex: 1;
}

/* ========================================
   5. 制作実績ピックアップ
======================================== */
.top-works {
    padding: 60px 0;
    background: #F5F5F5;
}

.top-works__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 48px;
}

.top-works__header .top-works__heading {
    margin-bottom: 0;
    padding-bottom: 0;
    text-align: left;
}

.top-works__header .top-works__heading::after {
    display: none;
}

.top-works__more {
    font-size: 0.9rem;
    font-weight: 600;
    color: #CC0000;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.3s ease;
}

.top-works__more:hover {
    opacity: 0.7;
}

.top-works__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.top-works__scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
}

.top-works__scroll .top-works__card {
    flex: 0 0 260px;
    scroll-snap-align: start;
}

/* ── カルーセル共通 ── */
.result-carousel {
    position: relative;
}

.carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    cursor: grab;
    scrollbar-width: none;          /* Firefox */
    -ms-overflow-style: none;       /* IE/Edge */
}
.carousel-track::-webkit-scrollbar { display: none; }

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    z-index: 10;
    font-size: 1.2rem;
    line-height: 1;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, box-shadow 0.2s;
}
.carousel-prev:hover,
.carousel-next:hover {
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}
.carousel-prev { left: -16px; }
.carousel-next { right: -16px; }

.top-works__summary {
    font-size: 0.78rem;
    color: #888;
    line-height: 1.5;
    margin-top: 4px;
}

.top-works__card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.top-works__card:hover {
    transform: translateY(-6px);
}

.top-works__card:hover .top-works__thumb img {
    transform: scale(1.05);
}

.top-works__thumb {
    position: relative;
    overflow: hidden;
    margin-bottom: 12px;
    aspect-ratio: 16 / 10;
    background: #e0e0e0;
}

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

.top-works__tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #1A3A5C;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    letter-spacing: 0.05em;
}

.top-works__name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2D2D2D;
}

/* ========================================
   6. お知らせ
======================================== */
.top-news {
    padding: 80px 0;
    background: #fff;
}

.top-news__heading {
    margin-bottom: 40px;
}

.top-news__list {
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
}

.top-news__item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #e5e7eb;
    transition: background 0.2s ease;
}

.top-news__item:first-child {
    border-top: 1px solid #e5e7eb;
}

.top-news__date {
    font-size: 0.85rem;
    color: #999;
    white-space: nowrap;
    min-width: 100px;
}

.top-news__cat {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    background: #1A3A5C;
    padding: 3px 12px;
    border-radius: 3px;
    white-space: nowrap;
}

.top-news__cat--info {
    background: #1A3A5C;
}

.top-news__cat--works {
    background: #2E7D32;
}

.top-news__cat--update {
    background: #E65100;
}

.top-news__cat--event {
    background: #6A1B9A;
}

.top-news__text {
    font-size: 0.95rem;
    color: #2D2D2D;
}

/* ========================================
   7. CTA
======================================== */
.top-cta {
    padding: 100px 0;
    background: #ededed;
    text-align: center;
}

.top-cta__title {
    font-size: 2rem;
    font-weight: 800;
    color: #2D2D2D;
    margin-bottom: 16px;
}

.top-cta__lead {
    font-size: 1.05rem;
    color: #555;
    margin-bottom: 40px;
    line-height: 1.7;
}

.top-cta__buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.top-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    min-width: 220px;
    transition: all 0.3s ease;
}

.top-cta__btn--white {
    background: #CC0000;
    color: #fff;
    border: 2px solid #CC0000;
}

.top-cta__btn--white:hover {
    background: #a80000;
    border-color: #a80000;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(204, 0, 0, 0.3);
}

.top-cta__btn--outline {
    background: transparent;
    color: #2D2D2D;
    border: 2px solid #999;
}

.top-cta__btn--outline:hover {
    background: #fff;
    border-color: #2D2D2D;
    transform: translateY(-2px);
}

.top-cta__note {
    font-size: 0.85rem;
    color: #888;
}

/* ========================================
   レスポンシブ (768px)
======================================== */
@media (max-width: 768px) {
    /* Trust bar */
    .trust-bar__inner {
        gap: 12px 20px;
    }

    .trust-bar__item {
        font-size: 0.75rem;
    }

    /* Hero */
    .top-hero__inner {
        padding: 0 20px;
    }

    .top-hero__title {
        font-size: 1.8rem;
    }

    .top-hero__lead {
        font-size: 1rem;
    }

    .top-hero__buttons {
        flex-direction: column;
    }

    .top-hero__btn {
        min-width: auto;
        width: 100%;
    }

    /* Numbers */
    .top-numbers {
        padding: 60px 0;
    }

    .top-numbers__grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .top-numbers__item {
        padding: 32px 20px;
    }

    .top-numbers__item:not(:last-child)::after {
        right: 20%;
        top: auto;
        bottom: 0;
        height: 1px;
        width: 60%;
    }

    .top-numbers__value {
        font-size: 3rem;
    }

    /* Points */
    .top-points {
        padding: 60px 0;
    }

    .top-points__card {
        display: flex;
        flex-direction: column;
        padding: 32px 24px;
        gap: 0;
        text-align: center;
    }

    .top-points__number {
        text-align: center;
        margin-bottom: 16px;
    }

    .top-points__number::after {
        margin: 8px auto 0;
    }

    .top-points__icon {
        width: 120px;
        height: 120px;
        margin: 0 auto 20px;
    }

    .top-points__body {
        text-align: left;
    }

    /* Services */
    .top-services {
        padding: 60px 0;
    }

    .top-services__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .top-services__card {
        padding: 24px 16px;
    }

    /* Works */
    .top-works {
        padding: 60px 0;
    }

    .top-works__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

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

    /* News */
    .top-news {
        padding: 60px 0;
    }

    .top-news__item {
        flex-wrap: wrap;
        gap: 8px 16px;
    }

    .top-news__text {
        width: 100%;
    }

    /* CTA */
    .top-cta {
        padding: 60px 0;
    }

    .top-cta__title {
        font-size: 1.5rem;
    }

    .top-cta__buttons {
        flex-direction: column;
        align-items: center;
    }

    .top-cta__btn {
        width: 100%;
        max-width: 320px;
    }
}

@media (max-width: 480px) {
    .top-hero {
        min-height: 90vh;
    }

    .top-hero__title {
        font-size: 1.5rem;
    }

    .top-services__grid {
        grid-template-columns: 1fr;
    }

    .top-services__card {
        flex-direction: column;
        gap: 12px;
    }

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

    .carousel-prev { left: 4px; }
    .carousel-next { right: 4px; }
    .carousel-prev,
    .carousel-next {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}
