/**
 * Front Page Styles
 * トップページ用スタイル
 *
 * @package Cocoon Child
 */

/* ========================================
   COCOON LAYOUT OVERRIDE
   ======================================== */
.page-front {
    width: 100%;
}

body.home .content-in,
body.home .wrap,
body.front-page .content-in,
body.front-page .wrap {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.home .main,
body.front-page .main {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.home .article,
body.front-page .article {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* ========================================
   HERO SECTION - NEW DESIGN
   ======================================== */
.front-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    padding-bottom: 60px;
}

.front-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.front-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(66, 55, 47, 0.1) 0%, rgba(66, 55, 47, 0.4) 100%);
}

/* 装飾テキスト "Lightness" */
.front-hero-deco-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 120px;
    font-weight: 300;
    font-style: italic;
    color: rgba(255, 255, 255, 0.15);
    letter-spacing: 0.1em;
    white-space: nowrap;
    pointer-events: none;
    z-index: 1;
}

/* メインコンテンツ */
.front-hero-content {
    width: 100%;
    padding: 0 60px;
}

/* キャッチコピー */
.front-hero-copy {
    margin-bottom: 50px;
}

.front-hero-lead {
    font-size: 20px;
    letter-spacing: 0.15em;
    margin-bottom: 20px;
}

.front-hero-title {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.front-hero-title-line {
    display: inline-block;
    font-size: 48px;
    letter-spacing: 0.1em;
    line-height: 1.4;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    padding: 10px 25px;
    width: fit-content;
}

/* 実績ボックス */
.front-hero-stats {
    display: flex;
    gap: 20px;
}

.front-hero-stat-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 20px 30px;
    text-align: center;
    min-width: 180px;
}

.front-hero-stat-label {
    font-size: 13px;
    color: #fff;
    margin-bottom: 8px;
}

.front-hero-stat-stars {
    color: #FFD700;
    font-size: 12px;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.front-hero-stat-value {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.front-hero-stat-num {
    font-size: 48px;
    font-weight: 400;
    color: #fff;
    line-height: 1;
}

.front-hero-stat-unit {
    font-size: 14px;
    color: #fff;
    line-height: 1.4;
    text-align: left;
}

.front-hero-stat-text {
    font-size: 20px;
    color: #fff;
    line-height: 1.5;
}

.front-hero-stat-note {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 8px;
}

/* 右サイドバナー */
.front-hero-side-banner {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent-2);
    color: var(--base-3);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 15px;
    border-radius: 8px 0 0 8px;
    z-index: 100;
    transition: background 0.3s ease;
}

.front-hero-side-banner:hover {
    background: #d4a0a0;
}

.front-hero-side-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    justify-content: center;
    margin-bottom: 15px;
}

.front-hero-side-badge-small {
    font-size: 9px;
}

.front-hero-side-badge-large {
    font-size: 16px;
    font-weight: 500;
}

.front-hero-side-text {
    writing-mode: vertical-rl;
    font-size: 14px;
    letter-spacing: 0.1em;
}

/* ========================================
   SLIDER SECTION
   ======================================== */
.front-slider-section {
    background: var(--base-1);
    padding-top: 30px;
    overflow: hidden;
}

/* 流れるテキスト（マーキー） */
.front-slider-marquee {
    overflow: hidden;
    white-space: nowrap;
    padding: 20px 0;
}

.front-slider-marquee-inner {
    display: inline-flex;
    animation: marquee 30s linear infinite;
}

.front-slider-marquee-inner span {
    font-size: 48px;
    font-weight: 300;
    letter-spacing: 0.15em;
    color: rgba(159, 133, 64, 0.3);
    padding: 0 50px;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-33.333%); }
}

/* Before/After スライダー */
.front-slider-wrapper {
    padding: 30px 0 50px;
}

.front-ba-swiper {
    overflow: visible;
}

.front-ba-swiper .swiper-wrapper {
    transition-timing-function: linear;
}

.front-ba-slide {
    width: auto;
}

.front-ba-images {
    display: flex;
    gap: 4px;
}

.front-ba-before,
.front-ba-after {
    width: 140px;
    height: 200px;
    overflow: hidden;
    border-radius: 4px;
}

.front-ba-before img,
.front-ba-after img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========================================
   ABOUT SECTION - NEW DESIGN
   ======================================== */
.front-about-header {
    max-width: 500px;
}

.front-about-title {
    font-size: 28px;
    letter-spacing: 0.1em;
    display: flex;
    align-items: baseline;
    gap: 20px;
}

.front-about-title-en {
    font-size: 14px;
    letter-spacing: 0.15em;
}

.front-about-title-line {
    width: 100%;
    max-width: 500px;
    height: 1px;
    background: var(--base-3);
    margin-top: 15px;
}

.front-about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 40px;
    align-items: center;
}

.front-about-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.front-about-image-left {
    margin-top: 100px;
}

.front-about-image-right {
    margin-top: -50px;
}

.front-about-text {
    text-align: center;
    padding: 0 20px;
}

.front-about-catchcopy {
    font-size: 42px;
    letter-spacing: 0.15em;
}

.front-about-desc {
    font-size: 15px;
}

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

/* ========================================
   RESULTS SECTION
   ======================================== */
.front-results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.front-result-item {
    background: var(--base-1);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.front-result-images {
    display: flex;
    gap: 2px;
}

.front-result-before,
.front-result-after {
    flex: 1;
    position: relative;
}

.front-result-before img,
.front-result-after img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.front-result-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent-1);
    color: var(--base-2);
    font-family: var(--font-en);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 4px;
}

/* ========================================
   MENU SECTION
   ======================================== */
.front-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.front-menu-item {
    background: var(--base-2);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.front-menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.front-menu-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.front-menu-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.front-menu-content {
    padding: 25px;
}

.front-menu-number {
    display: inline-block;
    color: var(--accent-1);
    font-size: 28px;
    font-weight: 500;
    line-height: 1;
}

/* ========================================
   VOICE SECTION
   ======================================== */
.front-voice-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.front-voice-item {
    background: var(--base-1);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.front-voice-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.front-voice-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.front-voice-content {
    padding: 25px;
}

.front-voice-rating .star {
    color: var(--accent-1);
    font-size: 14px;
    letter-spacing: 2px;
}

/* ========================================
   FLOW SECTION
   ======================================== */
.front-flow-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.front-flow-item {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    padding: 30px 0;
    border-bottom: 1px solid rgba(66, 55, 47, 0.1);
    position: relative;
}

.front-flow-item:last-child {
    border-bottom: none;
}

.front-flow-number {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background: var(--accent-1);
    color: var(--base-2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.front-flow-content {
    flex: 1;
    padding-top: 10px;
}

/* ========================================
   SALON SECTION
   ======================================== */
.front-salon-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.front-salon-item {
    background: var(--base-1);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
}

.front-salon-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.front-salon-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.front-salon-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.front-salon-content {
    padding: 20px;
}

/* ========================================
   BUTTONS
   ======================================== */
.front-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 35px;
    border-radius: 50px;
    font-family: var(--font-saw);
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.front-btn-outline {
    border: 1px solid var(--accent-1);
    color: var(--accent-1);
    background: transparent;
}

.front-btn-outline:hover {
    background: var(--accent-1);
    color: var(--base-2);
}

.front-btn-outline svg {
    transition: transform 0.3s ease;
}

.front-btn-outline:hover svg {
    transform: translateX(5px);
}

.front-btn-primary {
    background: var(--accent-1);
    color: var(--base-2);
    border: 1px solid var(--accent-1);
}

.front-btn-primary:hover {
    background: #8a7236;
    border-color: #8a7236;
}

/* ========================================
   ANIMATIONS
   ======================================== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   RESPONSIVE - TABLET
   ======================================== */
@media (max-width: 1024px) {
    .front-hero-deco-text {
        font-size: 80px;
    }

    .front-hero-title-line {
        font-size: 36px;
    }

    .front-hero-stats {
        flex-wrap: wrap;
    }

    .front-hero-stat-item {
        min-width: 150px;
        padding: 15px 20px;
    }

    .front-hero-stat-num {
        font-size: 36px;
    }

    .front-about-grid {
        grid-template-columns: 1fr 2fr 1fr;
        gap: 20px;
    }

    .front-about-catchcopy {
        font-size: 32px;
    }

    .front-results-grid,
    .front-menu-grid,
    .front-voice-grid,
    .front-salon-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */
@media (max-width: 768px) {
    .front-hero {
        padding-bottom: 30px;
    }

    .front-hero-content {
        padding: 0 20px;
    }

    .front-hero-deco-text {
        font-size: 50px;
    }

    .front-hero-lead {
        font-size: 14px;
    }

    .front-hero-title-line {
        font-size: 24px;
        padding: 8px 15px;
    }

    .front-hero-stats {
        flex-direction: column;
        gap: 15px;
    }

    .front-hero-stat-item {
        width: 100%;
        max-width: 250px;
    }

    .front-hero-side-banner {
        display: none;
    }

    .front-slider-marquee-inner span {
        font-size: 28px;
    }

    .front-ba-before,
    .front-ba-after {
        width: 100px;
        height: 140px;
    }

    .front-about-title {
        font-size: 22px;
        flex-direction: column;
        gap: 5px;
    }

    .front-about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .front-about-image-left,
    .front-about-image-right {
        margin-top: 0;
        max-width: 80%;
    }

    .front-about-image-left {
        margin-left: auto;
        order: 1;
    }

    .front-about-text {
        order: 2;
        padding: 0;
    }

    .front-about-image-right {
        order: 3;
    }

    .front-about-catchcopy {
        font-size: 28px;
    }

    .front-results-grid,
    .front-menu-grid,
    .front-voice-grid,
    .front-salon-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .front-result-before img,
    .front-result-after img {
        height: 150px;
    }

    .front-flow-item {
        flex-direction: column;
        gap: 15px;
        padding: 25px 0;
    }

    .front-flow-number {
        width: 50px;
        height: 50px;
        min-width: 50px;
    }

    .front-flow-number span {
        font-size: 20px;
    }

    .front-flow-content {
        padding-top: 0;
    }

    .front-btn {
        width: 100%;
        max-width: 300px;
    }

    .md-hidden {
        display: none;
    }

    .md-mt-40 {
        margin-top: 40px;
    }
}

/* ========================================
   UTILITY
   ======================================== */
.lh-220 { line-height: 2.2; }
.mt-60 { margin-top: 60px; }
.py-100 { padding-top: 100px; padding-bottom: 100px; }
.mt-50 { margin-top: 50px; }
.cg-20 { column-gap: 20px; }
.rg-20 { row-gap: 20px; }

@media (max-width: 768px) {
    .md-py-60 { padding-top: 60px; padding-bottom: 60px; }
    .md-fs-28 { font-size: 28px; }
    .md-fs-24 { font-size: 24px; }
}
