@charset "utf-8";

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Scoped styles for New Top Page */
#new-top-wrapper {
    width: 100%;
    overflow: hidden;
    font-family: "Noto Sans JP", serif;
    color: #000;
    line-height: 1.5;
    letter-spacing: 0.1em;
}

#new-top-wrapper *,
#new-top-wrapper *::before,
#new-top-wrapper *::after {
    box-sizing: border_box;
}

/* Fixed Header */
#new-top-wrapper .new-top-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: #16335a;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 5%;
}

#new-top-wrapper .new-top-header .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

#new-top-wrapper .new-top-header .logo {
    font-size: 2.8rem;
    font-weight: 500;
    color: #fff;
    margin: 0;
}

#new-top-wrapper .new-top-header .logo a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}

#new-top-wrapper .new-top-header .logo .logo-main {
    display: block;
    width: 100%;
}

#new-top-wrapper .new-top-header .logo .logo-sub {
    display: block;
    font-size: 1.2rem;
    font-weight: normal;
    width: 100%;
    text-align: justify;
    text-align-last: justify;
    letter-spacing: 0;
    margin-top: 5px;
    line-height: 1.2;
}

#new-top-wrapper .new-top-header .new-top-nav ul {
    display: flex;
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
}

#new-top-wrapper .new-top-header .new-top-nav ul li.mobile-only {
    display: none;
}

#new-top-wrapper .new-top-header .new-top-nav ul li a {
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: 1.8rem;
    transition: opacity 0.3s;
    letter-spacing: 0.05em;
}

#new-top-wrapper .new-top-header .new-top-nav ul li a:hover {
    opacity: 0.7;
}

/* Responsive Nav & Hamburger */
@media (max-width: 1024px) {
    #new-top-wrapper .new-top-header .new-top-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #16335a;
        z-index: 1500;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.3s, visibility 0.3s;
    }

    #new-top-wrapper .new-top-header .new-top-nav ul {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100%;
        gap: 20px;
    }

    #new-top-wrapper .new-top-header .new-top-nav ul li.mobile-only {
        display: block;
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }

    #new-top-wrapper .new-top-header .new-top-nav ul li.mobile-only a {
        display: inline-block;
        width: 90%;
        max-width: 300px;
        background-color: #fff;
        color: #000;
        padding: 15px 20px;
        border-radius: 4px;
        font-size: 1.8rem;
        font-weight: 500;
        letter-spacing: 0.24em;
        transition: all 0.3s;
    }

    #new-top-wrapper .new-top-header .new-top-nav ul li.mobile-only a:hover {
        color: #fff;
        background: #8F8F8F;
        opacity: 1;
        transform: none;
    }

    #new-top-wrapper .new-top-header .new-top-nav ul li a {
        font-size: 2.4rem;
        display: block;
        padding: 10px;
    }
}

#new-top-wrapper .new-top-header .hamburger {
    display: none;
    width: 30px;
    height: 24px;
    cursor: pointer;
    z-index: 2000;
    position: relative;
}

@media (max-width: 1024px) {
    #new-top-wrapper .new-top-header .hamburger {
        display: block;
    }
}

#new-top-wrapper .new-top-header .hamburger span {
    display: block;
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #fff;
    transition: all 0.3s;
    left: 0;
}

#new-top-wrapper .new-top-header .hamburger span:nth-child(1) {
    top: 0;
}

#new-top-wrapper .new-top-header .hamburger span:nth-child(2) {
    top: 11px;
}

#new-top-wrapper .new-top-header .hamburger span:nth-child(3) {
    bottom: 0;
}

/* Active State */
#new-top-wrapper .new-top-header.active .new-top-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#new-top-wrapper .new-top-header.active .hamburger span:nth-child(1) {
    top: 11px;
    transform: rotate(45deg);
}

#new-top-wrapper .new-top-header.active .hamburger span:nth-child(2) {
    opacity: 0;
}

#new-top-wrapper .new-top-header.active .hamburger span:nth-child(3) {
    bottom: 11px;
    transform: rotate(-45deg);
}

/* Full Screen Hero */
#new-top-wrapper .new-top-hero {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ddd;
    background-image: url('../images/new-top-hero.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    padding-top: 80px;
}

#new-top-wrapper .new-top-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
}

#new-top-wrapper .new-top-hero .inner {
    position: relative;
    z-index: 1;
    color: #fff;
    text-align: center;
    width: 100%;
    max-width: 1000px;
    padding: 0 20px;
}

#new-top-wrapper .new-top-hero .inner .sp-br {
    display: none;
}

@media (max-width: 768px) {
    #new-top-wrapper .new-top-hero .inner .sp-br {
        display: block;
    }
}

#new-top-wrapper .new-top-hero .inner .highlight-match {
    font-size: 1.3em;
    color: #fdd835;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(253, 216, 53, 0.5);
}

#new-top-wrapper .new-top-hero .inner h1 {
    font-size: clamp(2.4rem, 4vw, 4.2rem);
    font-weight: bold;
    margin-bottom: 40px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
    line-height: 1.4;
    width: 100%;
}

#new-top-wrapper .new-top-hero .inner .hero-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 80%;
    margin: 40px auto 0;
}

#new-top-wrapper .new-top-hero .inner .hero-images .hero-img-item {
    width: 100%;
}

#new-top-wrapper .new-top-hero .inner .hero-images .hero-img-item img {
    width: 100%;
    height: auto;
    vertical-align: bottom;
}

#new-top-wrapper .new-top-hero .inner .matching-count-area {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 0;
}

#new-top-wrapper .new-top-hero .inner .matching-count-area .count-label {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

#new-top-wrapper .new-top-hero .inner .matching-count-area .count-number {
    font-size: 6rem;
    font-weight: bold;
    color: #fff;
    line-height: 1;
    font-family: "Josefin Sans", sans-serif;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

#new-top-wrapper .new-top-hero .inner .matching-count-area .count-number .unit {
    font-size: 2.4rem;
    margin-left: 5px;
    vertical-align: baseline;
}

#new-top-wrapper .new-top-hero .inner .hero-note {
    font-size: 1.6rem;
    margin-top: 2rem;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    #new-top-wrapper .new-top-hero .inner h1 {
        font-size: 3rem;
    }

    #new-top-wrapper .new-top-hero .inner .hero-images {
        width: 100%;
    }
}

#new-top-wrapper .new-top-hero .inner p {
    font-size: 2.2rem;
    line-height: 1.6;
    font-weight: 500;
}

/* Campaign Section */
#new-top-wrapper .campaign {
    text-align: center;
    padding-top: clamp(7rem, 3.211rem + 10.53vw, 14rem);
}

#new-top-wrapper .campaign .campaign-title {
    color: #000;
    font-size: clamp(2rem, 1.783rem + 0.6vw, 2.4rem);
    margin-bottom: 2rem;
    font-weight: 500;
}

#new-top-wrapper .campaign .campaign-text {
    font-size: clamp(3rem, 1.917rem + 3.01vw, 5rem);
    font-weight: 600;
}

#new-top-wrapper .campaign .campaign-text span {
    display: inline-block;
}

#new-top-wrapper .campaign .campaign-note {
    font-size: 1.7rem;
    text-align: center;
    margin-top: 1rem;
    font-weight: 500;
    color: #c90000;
}

/* CTA Section */
#new-top-wrapper .cta-section {
    background-color: #16335a;
    padding: 60px 0;
}

#new-top-wrapper .cta-section .inner .btn {
    display: grid;
    gap: 20px;
    max-width: 740px;
    justify-content: center;
    margin: 0 auto;
    list-style: none;
    padding: 0;
}

@media (min-width: 600px) {
    #new-top-wrapper .cta-section .inner .btn {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px;
    }
}

#new-top-wrapper .cta-section .inner .btn li a {
    display: block;
    padding: 15px 20px;
    color: #000;
    font-size: 1.8rem;
    font-weight: 500;
    text-align: center;
    letter-spacing: 0.24em;
    background: #fff;
    text-decoration: none;
    transition: all 0.3s;
    border-radius: 4px;
}

#new-top-wrapper .cta-section .inner .btn li a:hover {
    color: #fff;
    background: #8F8F8F;
}

/* Common Section Styles */
#new-top-wrapper .new-top-section {
    padding: 120px 0;
}

#new-top-wrapper .new-top-section .inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

#new-top-wrapper .new-top-section .section-title {
    font-size: 3.6rem;
    text-align: center;
    margin-bottom: 60px;
    font-weight: bold;
    border-bottom: none;
    padding-bottom: 0;
}

#new-top-wrapper .new-top-section .section-title::before {
    content: attr(data-title);
    display: block;
    color: #a2a2a2;
    font-family: "Josefin Sans", serif;
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 0.315em;
    margin-bottom: 0.5em;
}

/* Instagram Section */
#new-top-wrapper .instagram-section {
    padding: 60px 20px !important;
    background-color: #fff;
}

#new-top-wrapper .instagram-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 600px;
    margin: 0 auto;
    padding: 15px 30px;
    background-color: #f8f9fa;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

#new-top-wrapper .instagram-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

#new-top-wrapper .instagram-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

#new-top-wrapper .instagram-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    flex-shrink: 0;
}

#new-top-wrapper .instagram-icon img {
    width: 100%;
    height: auto;
    filter: brightness(0) invert(1);
}

#new-top-wrapper .instagram-text {
    font-size: 2.0rem;
    font-weight: bold;
    color: #333;
    margin: 0;
    letter-spacing: 0.02em;
    line-height: 1.4;
}

#new-top-wrapper .instagram-text span {
    display: inline-block;
}

#new-top-wrapper .instagram-arrow {
    width: 24px;
    height: 24px;
    position: relative;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

#new-top-wrapper .instagram-link:hover .instagram-arrow {
    transform: translateX(5px);
}

#new-top-wrapper .instagram-arrow::after {
    content: "";
    display: block;
    width: 10px;
    height: 10px;
    border-top: 3px solid #dc2743;
    border-right: 3px solid #dc2743;
    transform: rotate(45deg);
    position: absolute;
    top: 7px;
    right: 5px;
}

@media (max-width: 768px) {
    #new-top-wrapper .instagram-section {
        padding: 40px 20px !important;
    }
    #new-top-wrapper .instagram-link {
        padding: 15px 20px;
        border-radius: 20px;
    }
    #new-top-wrapper .instagram-text {
        font-size: 1.6rem;
    }
    #new-top-wrapper .instagram-icon {
        width: 44px;
        height: 44px;
        padding: 8px;
    }
    #new-top-wrapper .instagram-arrow {
        width: 20px;
    }
}

/* Service Section */
#new-top-wrapper .service-section {
    background-color: #fff;
}



#new-top-wrapper .service-section .service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    #new-top-wrapper .service-section .service-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }
}

#new-top-wrapper .service-section .service-grid .service-item {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1 / 1;
    background-color: #16335a;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    margin: 0 auto;
}

#new-top-wrapper .service-section .service-grid .service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

#new-top-wrapper .service-section .service-grid .service-item h2 {
    font-size: 2.6rem;
    line-height: 1.4;
    font-weight: bold;
}

/* Modals */
#new-top-wrapper .modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
}

#new-top-wrapper .modal .modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    width: 85%;
    max-width: 700px;
    position: relative;
    text-align: center;
}

#new-top-wrapper .modal .modal-content .close {
    display: none;
}

#new-top-wrapper .modal .modal-content h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 2rem;
    color: #333;
    font-weight: bold;
}

#new-top-wrapper .modal .modal-content p {
    font-size: 1.6rem;
    line-height: 2;
    text-align: left;
    margin-bottom: 30px;
}

#new-top-wrapper .modal .modal-content .modal-close-btn {
    display: inline-block;
    padding: 10px 40px;
    background-color: #666;
    color: #fff;
    font-size: 1.6rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#new-top-wrapper .modal .modal-content .modal-close-btn:hover {
    background-color: #333;
}

/* YouTube Section */
#new-top-wrapper .youtube-section {
    background-color: #f9f9f9;
}

#new-top-wrapper .youtube-section .youtube-text {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
    font-weight: bold;
}

#new-top-wrapper .youtube-section .video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

#new-top-wrapper .youtube-section .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Case Section */
#new-top-wrapper .case-section {
    background-color: #eee;
}

#new-top-wrapper .case-section .case-list {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

#new-top-wrapper .case-section .case-item {
    background-color: #16335a;
    color: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

#new-top-wrapper .case-section .case-item h3 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    font-weight: bold;
    border-bottom: none;
    padding-bottom: 0;
    display: block;
}

#new-top-wrapper .case-section .case-item .case-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

/* pcで横並びにしていたメディアクエリ等は不要になるため削除または調整 */
/* 画像サイズ調整 */
#new-top-wrapper .case-section .case-item .case-content .case-img {
    width: 100%;
}



#new-top-wrapper .case-section .case-item .case-content .case-img .placeholder-img {
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 */
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #999;
    font-weight: bold;
    font-size: 1.8rem;
    border: 1px solid #ddd;
}

#new-top-wrapper .case-section .case-item .case-content .case-text {
    width: 100%;
    font-size: 1.6rem;
    line-height: 2.2;
    text-align: justify;
    letter-spacing: 0.05em;
}

/* Member List Section */
#new-top-wrapper .member-list-section {
    background-color: #fff;
}

#new-top-wrapper .member-list-section .member-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    #new-top-wrapper .member-list-section .member-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

#new-top-wrapper .member-list-section .member-grid .member-item {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

#new-top-wrapper .member-list-section .member-grid .member-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

#new-top-wrapper .member-list-section .member-grid .member-item .member-name {
    font-weight: bold;
    font-size: 1.6rem;
    margin: 0;
    color: #16335a;
}

#new-top-wrapper .member-list-section .member-grid .no-members {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #666;
}

/* Case Q&A */
.case-qa {
    margin-top: 20px;
}

.case-qa dt {
    font-weight: bold;
    color: #fdd835;
    margin-top: 2em;
    font-size: 1.8rem;
    line-height: 1.4;
}

.case-qa dt:first-child {
    margin-top: 0;
}

.case-qa dd {
    margin: 0.8em 0 0 0;
    line-height: 1.8;
}

.case-qa dd strong {
    color: #fdd835;
    font-weight: bold;
}

.case-client-name {
    margin-top: 15px;
    font-weight: bold;
    text-align: center;
    font-size: 1.6rem;
    line-height: 1.6;
}