@charset "UTF-8";

/* =========================================
   Index Page Specific Styles (vFinal + Solid Impact MV)
   ========================================= */

/* -----------------------------------------
   Global Section Settings
   ----------------------------------------- */
.section {
    padding: 100px 0;
}

.section__title {
    font-family: var(--font-en-head);
    font-size: 2.5rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: 0.05em;
    color: #333;
}

.section__desc {
    text-align: center;
    margin-bottom: 60px;
    color: #666;
    font-size: 1rem;
}

/* -----------------------------------------
   MV (Main Visual) - Solid & Impact Style
   ----------------------------------------- */
.mv-solid-wrapper {
    position: relative;
    width: 100%;
    /* 高さ調整：高すぎず、ヘッダーに近づける */
    height: auto;
    min-height: 750px;
    background: #fff;
    overflow: hidden;
    /* padding調整：コンテンツを上に寄せる */
    padding-top: 180px;
    padding-bottom: 160px;
    display: flex;
    align-items: flex-start;
    /* 中央揃えではなく上寄せ */
}

/* 1. Kinetic Typography Background */
.mv-typo-bg {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%) skewY(-5deg);
    /* 斜めに配置 */
    z-index: 0;
    opacity: 0.04;
    /* 極薄く背景に徹する */
    pointer-events: none;
}

.typo-line {
    font-family: var(--font-en-head);
    font-size: 9vw;
    /* 巨大文字 */
    font-weight: 900;
    white-space: nowrap;
    color: #000;
    line-height: 1;
    animation: slideText 60s linear infinite;
}

.typo-line.reverse {
    animation: slideTextReverse 60s linear infinite;
    -webkit-text-stroke: 2px #000;
    color: transparent;
}

@keyframes slideText {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes slideTextReverse {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

/* 2. Grid Overlay */
.mv-grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(#eee 1px, transparent 1px),
        linear-gradient(90deg, #eee 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 1;
    pointer-events: none;
    opacity: 0.4;
}

/* 3. Main Content Container */
.mv-solid-container {
    position: relative;
    z-index: 5;
    width: 100%;
    padding-bottom: 60px;
    /* Space for slider */
}

.mv-content-box {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    /* 左側(キャッチコピー)を広く */
    gap: 60px;
    align-items: center;
}

/* Copy Area */
.mv-tagline {
    font-family: var(--font-en-head);
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--accent-color);
    letter-spacing: 0.2em;
    margin-bottom: 25px;
    display: inline-block;
    background: #f0f4ff;
    padding: 6px 15px;
    border-left: 3px solid var(--accent-color);
}

.mv-impact-title {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 900;
    font-size: 4rem;
    /* サイズ調整 */
    line-height: 1.2;
    color: #111;
    letter-spacing: -0.02em;

    /* 1行レイアウト設定 */
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    /* スマホでは折り返し */
    gap: 5px;
}

/* Hanamaru Impact (Inline) */
.hanamaru-impact {
    position: relative;
    display: inline-block;
    color: #111;
    margin: 0 5px;
}

.hanamaru-impact .text-layer {
    position: relative;
    z-index: 2;
}

.hanamaru-svg-solid {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-5deg);
    width: 130%;
    height: 150%;
    z-index: 1;
    pointer-events: none;
}

.hanamaru-svg-solid path {
    fill: none;
    stroke: #ff4d4d;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawSolid 1.2s cubic-bezier(0.2, 1, 0.3, 1) 0.5s forwards;
    opacity: 0.8;
}

@keyframes drawSolid {
    to {
        stroke-dashoffset: 0;
    }
}

/* Desc & Btn Group */
.mv-desc-group {
    padding-left: 40px;
    border-left: 1px solid #ccc;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mv-solid-desc {
    font-size: 1.05rem;
    line-height: 2;
    margin-bottom: 40px;
    font-weight: 500;
    color: #444;
}

.marker {
    background: linear-gradient(transparent 60%, #ffeeba 60%);
    font-weight: bold;
}

.btn-solid-black {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    background: #111;
    color: #fff;
    width: 100%;
    max-width: 300px;
    padding: 20px 30px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid #111;
}

.btn-solid-black:hover {
    background: #fff;
    color: #111;
}

.btn-solid-black i {
    font-size: 1.1rem;
}

/* 4. Solid Slider (Ticker Style Bottom) */
.mv-slider-solid {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #111;
    padding: 15px 0;
    z-index: 10;
    transform: skewY(-2deg) translateY(20px);
    /* 傾斜をつけて配置 */
    border-top: 1px solid #333;
}

.mv-track {
    display: flex;
    gap: 0;
    /* 境界線で区切るためギャップなし */
    animation: scrollLeft 40s linear infinite;
    width: max-content;
}

.mv-card-solid {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 40px;
    border-right: 1px solid #444;
    color: #fff;
    min-width: 260px;
}

.card-num {
    font-family: var(--font-en-head);
    font-size: 1.5rem;
    color: #666;
    font-weight: bold;
}

.card-txt {
    font-size: 1rem;
    font-weight: bold;
    white-space: nowrap;
    letter-spacing: 0.05em;
}

@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}


/* -----------------------------------------
   PHILOSOPHY (Cinematic Slider with Splash)
   ----------------------------------------- */
.concept-art {
    background: #111;
    /* 黒背景 */
    color: #fff;
    padding: 120px 0 140px;
    overflow: hidden;
    position: relative;
}

/* Splash Background Effects */
.splash-effect {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    z-index: 0;
    pointer-events: none;
    animation: splash-move 10s infinite alternate ease-in-out;
}

.splash-red {
    top: -100px;
    left: -100px;
    background: radial-gradient(circle, #ff4d4d 0%, transparent 70%);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation-delay: 0s;
}

.splash-yellow {
    bottom: -100px;
    right: -100px;
    background: radial-gradient(circle, #ffcc00 0%, transparent 70%);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation-delay: -5s;
}

@keyframes splash-move {
    0% {
        transform: scale(1) translate(0, 0) rotate(0deg);
    }

    100% {
        transform: scale(1.2) translate(50px, 30px) rotate(20deg);
    }
}

/* Content Container */
.splash-container {
    position: relative;
    z-index: 2;
}

.splash-title {
    color: #fff;
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.5rem;
    letter-spacing: 0.2em;
    border-bottom: none;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

/* Slider Container */
.philosophy-slider {
    position: relative;
    width: 100%;
    min-height: 500px;
    max-width: 900px;
    margin: 0 auto;
}

.philosophy-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.philosophy-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.slide-content {
    text-align: center;
    position: relative;
    padding: 20px;
    width: 100%;
}

/* English Background Text */
.philo-en-bg {
    font-family: var(--font-en-head);
    font-size: 5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    line-height: 1;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -120%);
    white-space: nowrap;
    width: 100%;
    pointer-events: none;
    z-index: 0;
    mix-blend-mode: overlay;
}

/* Japanese Catchphrase */
.philo-jp-catch {
    position: relative;
    z-index: 1;
    font-family: "Yu Mincho", serif;
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 30px;
    text-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    background: linear-gradient(to right, #fff, #ffeeba);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Description */
.philo-desc {
    position: relative;
    z-index: 1;
    font-size: 1.05rem;
    line-height: 2.2;
    color: #eee;
    max-width: 720px;
    margin: 0 auto 50px;
    text-align: justify;
    text-align-last: center;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
}

.philo-btn {
    position: relative;
    z-index: 2;
}

.btn-solid {
    display: inline-block;
    padding: 15px 50px;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    letter-spacing: 0.1em;
    transition: all 0.3s;
    border-radius: 4px;
    border: 1px solid #fff;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.btn-solid:hover {
    background: #fff;
    color: #111;
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.5);
    border-color: #ffcc00;
}

/* Indicators */
.philo-indicators {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: #ffcc00;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.8);
}

/* -----------------------------------------
   SOLUTIONS Section (White BG)
   ----------------------------------------- */
.section-solutions {
    background: #fff;
}

.solution-list-vertical {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.sol-v-item {
    display: flex;
    align-items: center;
    gap: 60px;
    /* GPU Acceleration Fix - transform removed */
    backface-visibility: hidden;
    perspective: 1000px;
}

.sol-v-item:nth-child(even) {
    flex-direction: row-reverse;
}

.sol-v-img {
    flex: 1;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    /* GPU Acceleration Fix - transform removed */
    will-change: transform;
    /* ホバー時の拡大用 */
}

.sol-v-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.sol-v-item:hover .sol-v-img img {
    transform: scale(1.05);
}

.sol-v-content {
    flex: 1;
}

.sol-v-num {
    font-size: 4rem;
    font-weight: 900;
    color: #f0f0f0;
    line-height: 1;
    display: block;
    margin-bottom: 10px;
    font-family: var(--font-en-head);
}

.sol-v-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.sol-v-desc {
    font-size: 1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 30px;
}

.link-arrow {
    font-weight: bold;
    color: var(--accent-color);
    text-decoration: none;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 2px;
}

/* -----------------------------------------
   PRODUCTS Grid (Light Gray BG)
   ----------------------------------------- */
.section-products {
    background: #f4f5f7;
    padding-bottom: 0;
}

.products-grid-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    /* 中央揃えで見栄え良く */
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto 60px;
    padding: 0 20px;
}

.product-card {
    width: calc((100% - 60px) / 3);
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.product-card__img {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.product-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-card__img img {
    transform: scale(1.05);
}

.product-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff4d4d;
    color: #fff;
    padding: 2px 10px;
    font-size: 0.7rem;
    font-weight: bold;
    border-radius: 4px;
    z-index: 2;
}

.product-card__body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-card__title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.product-card__desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
}

.btn-outline {
    display: inline-block;
    padding: 12px 40px;
    border: 2px solid #333;
    color: #333;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    background: transparent;
}

.btn-outline:hover {
    background: #333;
    color: #fff;
}

.btn-area {
    text-align: center;
    margin-top: 60px;
    padding-bottom: 80px;
}

@media (max-width: 900px) {
    .product-card {
        width: calc((100% - 30px) / 2);
    }
}

@media (max-width: 600px) {
    .product-card {
        width: 100%;
    }

    .products-grid-wrapper {
        gap: 20px;
    }
}

/* -----------------------------------------
   WORKS Section (White BG)
   ----------------------------------------- */
.section-works {
    background: #fff;
}

.works-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.works-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.works-img {
    height: 250px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
}

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

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

.works-name {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.works-cat {
    font-size: 0.9rem;
    color: #888;
}

/* -----------------------------------------
   News & Blog (Light BG)
   ----------------------------------------- */
.section-news-blog {
    background: #f9f9f9;
}

.nb-grid {
    display: flex;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.nb-col {
    flex: 1;
}

.nb-title {
    text-align: left;
    font-size: 2rem;
    margin-bottom: 30px;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
    display: inline-block;
}

.nb-list {
    list-style: none;
    margin-bottom: 30px;
}

.nb-list li {
    display: flex;
    align-items: baseline;
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
    gap: 15px;
}

.nb-list time {
    font-family: var(--font-en-head);
    font-size: 0.9rem;
    color: #888;
    min-width: 90px;
}

.news-tag {
    background: #333;
    color: #fff;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 2px;
}

.blog-tag {
    background: var(--accent-color);
    color: #fff;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 2px;
}

.nb-list a {
    color: #333;
    text-decoration: none;
    flex: 1;
    transition: color 0.3s;
}

.nb-list a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* -----------------------------------------
   Contact Area
   ----------------------------------------- */
.contact-box {
    background: #f4f8ff;
    padding: 80px 40px;
    text-align: center;
    border-radius: 12px;
}

.contact-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.contact-desc {
    margin-bottom: 40px;
    font-size: 1.1rem;
    color: #666;
}

.contact-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-contact-primary {
    background: var(--accent-color);
    color: #fff;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 86, 179, 0.3);
}

.btn-contact-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 86, 179, 0.4);
}

.btn-contact-tel {
    background: #fff;
    color: #333;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-contact-tel:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* -----------------------------------------
   Typewriter Effect Styles
   ----------------------------------------- */
.typing-cursor::after {
    content: '|';
    display: inline-block;
    margin-left: 2px;
    animation: blink 0.7s infinite;
    color: var(--accent-color);
    font-weight: 200;
}

.typing-done::after {
    display: none;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.js-typewriter {
    visibility: hidden;
    white-space: pre-wrap;
}

.js-typewriter.is-active {
    visibility: visible;
}

/* -----------------------------------------
   Responsive (Mobile Settings)
   ----------------------------------------- */
@media (max-width: 1024px) {

    /* Tablet & Smaller Desktop */
    .mv-content-box {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .mv-desc-group {
        border-left: none;
        padding-left: 0;
        margin-top: 20px;
    }

    .mv-impact-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 900px) {

    /* PHILOSOPHY: Adjust for Mobile */
    .philo-en-bg {
        font-size: 2.5rem;
        transform: translate(-50%, -50%);
        white-space: normal;
        line-height: 1.2;
    }

    .philo-jp-catch {
        font-size: 1.6rem;
    }

    .philo-desc {
        font-size: 0.95rem;
        padding: 0 15px;
        text-align: left;
        text-align-last: left;
    }

    .philosophy-slider {
        min-height: 650px;
    }

    .splash-effect {
        width: 300px;
        height: 300px;
        filter: blur(50px);
    }

    /* SOLUTIONS: Stack vertical items */
    .sol-v-item {
        flex-direction: column !important;
        text-align: center;
        gap: 20px;
    }

    .sol-v-img {
        width: 100%;
        height: 200px;
    }

    /* PRODUCTS: Stop animation, vertical stack */
    .infinite-slider-track {
        animation: none;
        flex-direction: column;
        width: 100%;
        gap: 20px;
    }

    .product-card {
        width: 100%;
        margin-right: 0;
    }

    .pc-only-card {
        display: none;
    }

    /* WORKS: 1 Column */
    .works-list {
        grid-template-columns: 1fr;
    }

    /* NEWS & BLOG: 1 Column */
    .nb-grid {
        flex-direction: column;
        gap: 60px;
    }

    /* Contact */
    .contact-btns {
        flex-direction: column;
    }

    .contact-box {
        padding: 40px 20px;
    }
}

@media (max-width: 768px) {

    /* MV Solid Wrapper Reset */
    .mv-solid-wrapper {
        height: auto;
        padding-bottom: 100px;
        display: block;
        min-height: auto;
    }

    .mv-typo-bg {
        transform: translateY(0) skewY(0);
        top: 10%;
        opacity: 0.08;
    }

    .typo-line {
        font-size: 15vw;
    }

    .mv-content-box {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Mobile Font Adjustment */
    .mv-impact-title {
        font-size: 2.8rem;
        display: block;
        /* スマホでは改行させる */
        text-align: left;
    }

    .hanamaru-impact {
        display: inline-block;
        margin: 5px 0;
    }

    .hanamaru-svg-solid {
        width: 120%;
    }

    .mv-slider-solid {
        transform: none;
        bottom: 0;
        padding: 15px 0;
        border-top: 1px solid #333;
        position: relative;
    }

    .card-num {
        font-size: 1.2rem;
    }

    .card-txt {
        font-size: 0.9rem;
    }

    .mv-track {
        animation: scrollLeft 20s linear infinite;
    }

    /* Keep scroll on mobile for impact */
    .mv-card-solid {
        min-width: 200px;
        padding: 10px 20px;
    }
}

/* LP Button Style (Imported from products.css) */
.btn-lp-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 400px;
    background: #fff;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    padding: 15px 25px;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-lp-home:hover {
    background: var(--accent-color);
    color: #fff;
    box-shadow: 0 10px 20px rgba(0, 86, 179, 0.2);
    transform: translateY(-3px);
}