/* =====================
   Reset & Base
   ===================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: #fff;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 300;
    color: #222;
    overflow-x: hidden;
    background: #fff;
}

img { display: block; max-width: 100%; }
ul { list-style: none; }
button { cursor: pointer; }
a { text-decoration: none; }

/* Header Spacer（固定ヘッダー高さ分の余白を確保） */
.header-spacer {
    height: 60px;
    background: #fff;
}
@media (min-width: 768px) {
    .header-spacer { height: 68px; }
}

/* =====================
   Section Heading (shared)
   ===================== */
.section-heading {
    display: flex; flex-direction: column; align-items: center;
    gap: 0; margin-bottom: 60px;
    text-align: center;
}
.section-en {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 600; font-size: 16px;
    color: #cb9000; letter-spacing: 0.4em;
    margin-bottom: 4px;
}
.section-ja {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 300; font-size: 30px;
    color: #111; letter-spacing: 0.12em;
    margin-bottom: 10px;
}
.section-line {
    display: block; width: 48px; height: 2px;
    background: #cb9000; margin: 0 auto;
}

@media (max-width: 767px) {
    .section-ja { font-size: 22px; }
    .section-heading { margin-bottom: 40px; }
}

/* =====================
   Scroll Animations
   ===================== */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* =====================
   MV Section
   ===================== */
.mv-section {
    position: relative;
    min-height: 100svh;
    padding-top: 60px;
    overflow: hidden;
    background: #f8f9f8;
}
@media (min-width: 1024px) {
    .mv-section { padding-top: 68px; }
}

.mv-bg {
    position: absolute; inset: 0; pointer-events: none;
}
.mv-texture {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; opacity: 0.35;
}
.mv-vector14 {
    position: absolute; top: 0; right: -5%;
    width: 70%; opacity: 0.5; pointer-events: none;
}
.mv-vector11 {
    position: absolute; bottom: 5%; right: 0;
    width: 45%; opacity: 0.4; pointer-events: none;
}

.mv-inner {
    position: relative; z-index: 1;
    display: flex; align-items: center;
    justify-content: center;
    min-height: calc(60svh);
    padding: 40px 20px;
    gap: 0;
}
@media (min-width: 1024px) {
    .mv-inner {
        min-height: calc(72svh);
        padding: 60px 80px;
        gap: 40px;
        justify-content: space-between;
        max-width: 1400px;
        margin: 0 auto;
    }
}

/* Title circles area */
.mv-title-area {
    position: relative; z-index: 2;
    flex-shrink: 0;
    width: 340px; height: 340px;
}
@media (min-width: 1024px) {
    .mv-title-area { width: 480px; height: 480px; }
}
@media (max-width: 767px) {
    .mv-title-area { width: 260px; height: 260px; margin: 0 auto; }
}

.mv-circles { position: relative; width: 100%; height: 100%; }

.mv-circle {
    position: absolute;
    border-radius: 50%;
}
.mv-circle--gold {
    width: 80%; height: 80%;
    top: 10%; left: 10%;
    opacity: 0.7;
}
.mv-circle--gold2 {
    width: 80%; height: 80%;
    top: 5%; left: 15%;
    opacity: 0.55;
}
.mv-circle--blue {
    width: 80%; height: 80%;
    top: 12%; left: 0%;
    opacity: 0.65;
}

.mv-circle-text {
    position: absolute; z-index: 5;
    top: 50%; left: 50%;
    transform: translate(-44%, -42%);
    text-align: center;
}
.mv-web-en {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 400; font-size: clamp(56px, 10vw, 100px);
    color: #111; line-height: 1; letter-spacing: 0.02em;
}
.mv-web-sub {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 300; font-size: clamp(10px, 1.8vw, 16px);
    color: #111; line-height: 1.8;
    letter-spacing: 0.1em;
    margin-top: 8px;
}

/* MV Image */
.mv-image-area {
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.mv-illustration {
    width: clamp(300px, 67.5vw, 900px);
    object-fit: contain;
}
@media (max-width: 1023px) {
    .mv-inner { flex-direction: column; }
    .mv-image-area { display: none; }
}

/* MV message */
.mv-message {
    position: relative; z-index: 2;
    padding: 40px clamp(20px, 5vw, 120px) 80px;
    max-width: 1200px; margin: 0 auto;
    text-align: center;
}
.mv-bg-wave { display: none; }

/* White wave — sits above texture (z-index 1), below message text (z-index 2) */
.mv-section::before {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 110vw;
    height: calc(110vw * 878 / 1816);
    background-image: url('images/mv-bg-wave.svg');
    background-repeat: no-repeat;
    background-size: 100% 100%;
    pointer-events: none;
    z-index: 1;
}
.mv-headline-wrap,
.mv-body {
    position: relative;
    z-index: 1;
}
.mv-headline {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400; font-size: clamp(26px, 4.2vw, 46px);
    color: #111; letter-spacing: 0.06em;
    margin-bottom: 8px;
    display: block;
}
.mv-headline-wrap {
    display: block;
    margin-bottom: 52px;
}
.mv-headline-line {
    display: block;
    width: 100%;
    border: none;
    border-top: 1.5px solid #cb9000;
    margin: 5px 0 0;
}
.mv-body {
    font-size: clamp(13px, 1.6vw, 16px);
    line-height: 2; color: #444;
    letter-spacing: 0.05em;
}

.mv-vector2 {
    position: absolute; bottom: -20px; left: -20px;
    width: 40%; opacity: 0.3; pointer-events: none;
    z-index: 0;
}

/* MV Animation */
.mv-fade-title { opacity: 0; animation: mvFadeIn 1s ease 0.2s forwards; }
.mv-fade-image { opacity: 0; animation: mvFadeIn 1s ease 0.8s forwards; }
@keyframes mvFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =====================
   Service Section
   ===================== */
.service-section {
    background: rgba(248,249,248,0.95);
    position: relative;
    padding-bottom: 200px;
}

/* On desktop: sticky scroll-driven card stacking */
@media (min-width: 1024px) {
    .service-scroll-driver {
        /* tall enough for 3 card transitions */
        height: 360vh;
        position: relative;
    }
    .service-sticky-wrap {
        position: sticky;
        top: 68px;
        height: calc(100vh - 68px);
        overflow: visible;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 60px 40px 0;
    }
}
@media (max-width: 1023px) {
    .service-scroll-driver { height: auto; }
    .service-sticky-wrap { padding: 60px 20px; }
}

.service-cards-area {
    position: relative;
    width: 100%;
    max-width: 1154px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
}
@media (min-width: 1024px) {
    .service-cards-area {
        position: absolute;
        left: 50%;
        top: 180px; /* approx h2-bottom + 60px; fine-tuned by JS */
        transform: translateX(-50%);
        width: calc(100% - 80px);
        max-width: 1154px;
        height: auto;
    }
}

/* Individual service card */
.service-card {
    position: relative;
    width: 100%;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    /* Mobile: normal stacked layout */
    margin-bottom: 20px;
}
@media (max-width: 1023px) {
    .service-card {
        opacity: 0;
        transform: translateY(60px);
        transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.25,0.46,0.45,0.94);
    }
    .service-card.in-view { opacity: 1; transform: translateY(0); }
    .service-card:nth-child(1) { transition-delay: 0s; }
    .service-card:nth-child(2) { transition-delay: 0.25s; }
    .service-card:nth-child(3) { transition-delay: 0.5s; }
}

/* Desktop: cards absolutely positioned, driven by JS (top-based stacking) */
@media (min-width: 1024px) {
    .service-card {
        position: absolute;
        top: 0; left: 0; right: 0;
        margin-bottom: 0;
        will-change: transform;
    }
    .service-card--01 { z-index: 1; transform: translateY(0); opacity: 1; } /* visible from start */
    .service-card--02 { z-index: 2; transform: translateY(110vh); }
    .service-card--03 { z-index: 3; transform: translateY(110vh); }
}

/* Card hidden SVG bg (for shape) */
.service-card__bg {
    position: absolute; inset: 0; pointer-events: none;
    z-index: 0; overflow: hidden; border-radius: 20px;
}
.service-card__bg img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: fill;
}

/* Card Header bar */
.service-card__header {
    position: relative; z-index: 1;
    display: flex; align-items: center; gap: 16px;
    background: #e9e5e2;
    padding: 18px 32px;
    border-radius: 20px 20px 0 0;
    min-height: 72px;
}
.service-num {
    font-family: 'Roboto', sans-serif;
    font-weight: 300; font-size: clamp(32px, 4vw, 48px);
    color: #222; line-height: 1; flex-shrink: 0;
}
.service-title-text {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 300; font-size: clamp(15px, 1.8vw, 20px);
    color: #222; letter-spacing: 0.1em;
}

/* Card Body */
.service-card__body {
    position: relative; z-index: 1;
    padding: 32px;
    background: #fff;
}
@media (min-width: 1024px) {
    .service-card__body { padding: 40px 60px; }
}

.service-text-area { margin-bottom: 32px; }
.service-catchcopy {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400; font-size: clamp(18px, 2.2vw, 28px);
    color: #cb9000; letter-spacing: 0.1em;
    line-height: 1.5; margin-bottom: 20px;
}
.service-desc {
    font-size: clamp(13px, 1.4vw, 16px);
    line-height: 2; color: #444;
    letter-spacing: 0.06em;
}

.service-bottom-area {
    display: flex; gap: 40px; align-items: flex-start;
}
@media (max-width: 767px) {
    .service-bottom-area { flex-direction: column; gap: 16px; }
}

.service-icon-wrap {
    flex-shrink: 0;
    position: relative;
    width: 140px; min-height: 140px;
    display: flex; align-items: center; justify-content: center;
}
.service-icon {
    width: 140px; height: auto;
    object-fit: contain;
}
.service-icon-label {
    position: absolute;
    bottom: 24px; left: 50%;
    transform: translateX(-50%);
    font-size: 13px; color: #cb9000;
    letter-spacing: 0.1em;
    white-space: nowrap;
    font-family: 'Noto Sans JP', sans-serif;
}

.service-list {
    flex: 1;
    display: flex; flex-direction: column; gap: 4px;
}
.service-list li {
    display: flex; align-items: center; gap: 10px;
    font-size: clamp(12px, 1.3vw, 15px);
    color: #222; line-height: 2.2;
    letter-spacing: 0.05em;
}
.service-bullet { flex-shrink: 0; }

/* =====================
   Works Section
   ===================== */
.works-section {
    background: #fff;
    padding: 100px 0;
}
.works-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}
@media (max-width: 767px) {
    .works-section { padding: 60px 0; }
    .works-inner { padding: 0 20px; }
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}
@media (max-width: 767px) {
    .works-grid { grid-template-columns: 1fr; gap: 20px; }
}

.work-card {
    background: #e9e5e2;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.work-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.work-card__img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 407/400;
}
.work-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: opacity 0.35s ease;
}
.work-img--hover { opacity: 0; }
.work-card:hover .work-img--default { opacity: 0; }
.work-card:hover .work-img--hover { opacity: 1; }

.work-client {
    padding: 16px 20px;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700; font-size: 14px;
    color: #cb9000; letter-spacing: 0.05em;
}

.btn-center { display: flex; justify-content: center; }

.btn-outline {
    display: inline-flex; align-items: center; gap: 10px;
    border: 1.5px solid #00375d;
    background: #fff; color: #00375d;
    border-radius: 999px;
    padding: 12px 32px;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500; font-size: 16px;
    letter-spacing: 0.1em;
    transition: background 0.3s, color 0.3s;
    cursor: pointer;
}
.btn-outline:hover {
    background: #00375d;
    color: #fff;
}
.btn-outline:hover .btn-arrow { filter: invert(1); }
.btn-arrow { width: 10px; height: 10px; transform: rotate(90deg); }

/* =====================
   Cost Section
   ===================== */
.cost-section {
    background: rgba(248,249,248,0.95);
    padding: 100px 0;
}
.cost-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}
@media (max-width: 767px) {
    .cost-section { padding: 60px 0; }
    .cost-inner { padding: 0 20px; }
}

.cost-lead {
    text-align: center;
    font-size: clamp(13px, 1.5vw, 16px);
    line-height: 2; color: #333;
    letter-spacing: 0.06em;
    margin-bottom: 64px;
}

.cost-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: start;
}
@media (max-width: 1023px) {
    .cost-cards { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 599px) {
    .cost-cards { grid-template-columns: 1fr; gap: 32px; }
}

.cost-card {
    position: relative;
    display: flex; flex-direction: column; align-items: center;
}

.cost-card__badge {
    position: relative;
    width: 160px; height: 160px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    z-index: 2;
    margin-bottom: -30px;
}
.cost-badge-circle {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: contain;
}
.cost-badge-label {
    position: relative; z-index: 1;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 400; font-size: clamp(18px, 2.2vw, 26px);
    color: #fff; letter-spacing: 0.04em;
}
.cost-badge-tag {
    position: absolute; top: -24px; left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 10px; color: #00375d;
    letter-spacing: 0.08em;
    font-family: 'Noto Sans JP', sans-serif;
}

.cost-card__body {
    position: relative;
    width: 100%;
    background: #fff;
    border-radius: 20px;
    border: 1.5px solid #d0d8e0;
    padding: 48px 24px 28px;
    display: flex; flex-direction: column; align-items: center;
    gap: 12px;
    z-index: 1;
}
.cost-card-bg {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: fill; border-radius: 20px;
    z-index: -1; pointer-events: none;
    display: none; /* using CSS border for simplicity */
}
.cost-price {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500; font-size: clamp(22px, 2.8vw, 30px);
    color: #222; letter-spacing: -0.02em;
    align-self: flex-end;
}
.cost-divider {
    width: 90%; height: auto;
    object-fit: contain;
    margin: 4px 0;
}
.cost-features {
    align-self: flex-start;
    display: flex; flex-direction: column; gap: 6px;
}
.cost-features li {
    font-size: clamp(12px, 1.3vw, 14px);
    color: #333; line-height: 1.8;
    letter-spacing: 0.06em;
}
.cost-period-label {
    font-size: 12px; color: #555;
    letter-spacing: 0.1em;
    font-family: 'Noto Sans JP', sans-serif;
    margin-top: 8px;
}
.cost-period {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400; font-size: clamp(22px, 2.4vw, 28px);
    color: #222; letter-spacing: 0.02em;
}

/* =====================
   Flow Section
   ===================== */
.flow-section {
    background: #fff;
    padding: 100px 0;
    overflow: hidden;
}
.flow-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
}
@media (max-width: 767px) {
    .flow-section { padding: 60px 0; }
    .flow-inner { padding: 0 20px; }
}

.flow-diagram-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 20px;
}
.flow-diagram {
    min-width: 900px;
    width: 100%;
    height: auto;
}

/* =====================
   FAQ Section
   ===================== */
.faq-section {
    background: rgba(248,249,248,0.95);
    padding: 100px 0 140px;
    position: relative;
}
.faq-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}
@media (max-width: 767px) {
    .faq-section { padding: 60px 0 100px; }
    .faq-inner { padding: 0 16px; }
}

.faq-list {
    display: flex; flex-direction: column; gap: 16px;
    margin-bottom: 20px;
}

.faq-item {
    border: 1.5px solid #00375d;
    border-radius: 4px;
    background: #fff;
    overflow: hidden;
}

.faq-q {
    display: flex; align-items: center; gap: 16px;
    width: 100%; padding: 20px 28px;
    background: #fff; border: none;
    text-align: left; cursor: pointer;
    transition: background 0.2s;
}
.faq-q:hover { background: #f5f9ff; }

.faq-q-label {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300; font-size: 36px;
    color: #00375d; line-height: 1;
    flex-shrink: 0; letter-spacing: 0.1em;
}
@media (max-width: 767px) { .faq-q-label { font-size: 24px; } }

.faq-q-text {
    flex: 1;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 300; font-size: clamp(13px, 1.5vw, 16px);
    color: #111; line-height: 1.6; letter-spacing: 0.05em;
}

.faq-icon {
    width: 28px; height: auto; flex-shrink: 0;
    transform: rotate(180deg);
    transition: transform 0.35s ease;
}
.faq-q[aria-expanded="true"] .faq-icon { transform: rotate(0deg); }

.faq-a {
    padding: 0 28px;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-a.open {
    max-height: 300px;
    padding: 16px 28px 24px;
}
.faq-a p {
    font-size: clamp(13px, 1.4vw, 15px);
    color: #444; line-height: 1.9;
    letter-spacing: 0.04em;
    border-top: 1px solid #e0e8f0;
    padding-top: 16px;
}

/* Back to top */
.back-to-top {
    position: absolute; bottom: 40px; right: 40px;
    width: 60px; height: 60px;
    border-radius: 50%;
    background: #fff; border: 1.5px solid #00375d;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.3s, color 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.back-to-top:hover { background: #00375d; }
.back-to-top:hover svg polyline { stroke: #fff; }
@media (max-width: 767px) {
    .back-to-top { right: 16px; bottom: 24px; width: 48px; height: 48px; }
}
