/* ========================================
   ヒーローセクション v2 - GSAP対応
   ======================================== */

.hero-v2 {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #faf9f7 0%, #f5f3f0 100%);
    overflow: hidden;
    padding: 120px 20px 60px;
}

/* ========================================
   背景装飾
   ======================================== */

.hero-v2__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.hero-v2__shape {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(139, 115, 85, 0.12), rgba(139, 115, 85, 0.03));
    filter: blur(40px);
}

.hero-v2__shape--1 {
    width: 500px;
    height: 500px;
    top: -150px;
    right: -100px;
}

.hero-v2__shape--2 {
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: -80px;
}

.hero-v2__shape--3 {
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ========================================
   コンテナ
   ======================================== */

.hero-v2__container {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 80px;
    align-items: center;
}

/* ========================================
   メインコンテンツ - デフォルトで全て表示
   ======================================== */

.hero-v2__content {
    max-width: 900px;
}

.hero-v2__label {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 3rem;
    opacity: 1; /* デフォルトで表示 */
}

.hero-v2__label-num {
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    color: #8B7355;
}

.hero-v2__label-text {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    color: #8B7355;
    text-transform: uppercase;
}

.hero-v2__label-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, #8B7355, transparent);
    max-width: 100px;
}

/* タイトル - 3行構成 */
.hero-v2__title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 4.5rem;
    font-weight: 300;
    line-height: 1.4;
    color: #4A4A4A;
    margin-bottom: 2rem;
    letter-spacing: 0.12em;
}

.hero-v2__title-line {
    display: block;
    overflow: hidden;
    opacity: 1; /* デフォルトで表示 */
}

.hero-v2__title-word {
    display: inline-block;
    margin-right: 0;
    opacity: 1; /* デフォルトで表示 */
}

/* JavaScript有効時のみアニメーション用に非表示 */
.js-enabled .hero-v2__label {
    opacity: 0;
}

.js-enabled .hero-v2__title-line {
    opacity: 1; /* lineは表示しておく */
}

.js-enabled .hero-v2__title-word {
    opacity: 0;
    transform: translateY(100%);
}

.js-enabled .hero-v2__text {
    opacity: 0;
}

.js-enabled .hero-v2__buttons {
    opacity: 0;
}

.js-enabled .hero-v2__meta-item {
    opacity: 0;
}

.js-enabled .hero-v2__scroll {
    opacity: 0;
}

.hero-v2__text {
    font-size: 1.15rem;
    font-weight: 300;
    color: #6B6B6B;
    margin-bottom: 3.5rem;
    letter-spacing: 0.08em;
    line-height: 1.8;
    opacity: 1; /* デフォルトで表示 */
}

/* ========================================
   ボタン
   ======================================== */

.hero-v2__buttons {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    opacity: 1; /* デフォルトで表示 */
}

.hero-v2__btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-decoration: none;
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.hero-v2__btn-text {
    position: relative;
    z-index: 1;
}

.hero-v2__btn-icon {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.hero-v2__btn--primary {
    background-color: #8B7355;
    color: #FFFFFF;
    border: 2px solid #8B7355;
}

.hero-v2__btn--primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: #6B5744;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.hero-v2__btn--primary:hover::before {
    width: 100%;
}

.hero-v2__btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(139, 115, 85, 0.3);
}

.hero-v2__btn--primary:hover .hero-v2__btn-icon {
    transform: translateX(5px);
}

.hero-v2__btn--secondary {
    background-color: transparent;
    color: #4A4A4A;
    border: 2px solid #4A4A4A;
}

.hero-v2__btn--secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: #4A4A4A;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.hero-v2__btn--secondary:hover::before {
    width: 100%;
}

.hero-v2__btn--secondary:hover {
    color: #FFFFFF;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(74, 74, 74, 0.2);
}

/* ========================================
   サイドメタ情報
   ======================================== */

.hero-v2__meta {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.hero-v2__meta-item {
    position: relative;
    padding-left: 30px;
    opacity: 1; /* デフォルトで表示 */
}

.hero-v2__meta-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, #8B7355, transparent);
}

.hero-v2__meta-num {
    display: block;
    font-size: 2rem;
    font-weight: 300;
    color: #8B7355;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.hero-v2__meta-text {
    display: block;
    font-size: 0.9rem;
    font-weight: 400;
    color: #6B6B6B;
    letter-spacing: 0.15em;
}

.hero-v2__meta-line {
    width: 60px;
    height: 1px;
    background-color: #E5DDD5;
    margin-top: 1rem;
}

/* ========================================
   スクロールヒント
   ======================================== */

.hero-v2__scroll {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 2;
    opacity: 1; /* デフォルトで表示 */
}

.hero-v2__scroll span {
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    color: #8B7355;
    text-transform: uppercase;
}

.hero-v2__scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, #8B7355, transparent);
    animation: scrollLineMove 2s ease-in-out infinite;
}

@keyframes scrollLineMove {
    0%, 100% {
        opacity: 0.3;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(15px);
    }
}

/* ========================================
   レスポンシブ対応
   ======================================== */

/* PC用の調整 (1200px以上) */
@media (min-width: 1201px) {
    .hero-v2__content {
        margin-left: 60px; /* 左から少し余白を追加 */
    }

    .hero-v2__meta {
        margin-right: 60px; /* 右から少し余白を追加 */
    }
}

/* タブレット */
@media (max-width: 1200px) {
    .hero-v2__container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .hero-v2__title {
        font-size: 3.8rem;
        font-weight: 300;
        letter-spacing: 0.11em;
    }

    .hero-v2__text {
        font-size: 1.1rem;
    }

    .hero-v2__meta {
        flex-direction: row;
        justify-content: flex-start;
        gap: 4rem;
    }

    .hero-v2__shape--1 {
        width: 400px;
        height: 400px;
    }

    .hero-v2__shape--2 {
        width: 350px;
        height: 350px;
    }

    .hero-v2__shape--3 {
        width: 250px;
        height: 250px;
    }
}

/* タブレット（小） */
@media (max-width: 900px) {
    .hero-v2 {
        padding: 100px 20px 60px;
        min-height: 90vh;
    }

    .hero-v2__title {
        font-size: 3.2rem;
        font-weight: 300;
        letter-spacing: 0.1em;
    }

    .hero-v2__label {
        margin-bottom: 2rem;
    }

    .hero-v2__text {
        font-size: 1.05rem;
        margin-bottom: 2.5rem;
        line-height: 1.85;
    }

    .hero-v2__meta {
        gap: 3rem;
    }
}

/* スマートフォン */
@media (max-width: 768px) {
    .hero-v2 {
        min-height: 100vh;
        padding: 100px 24px 60px;
    }

    .hero-v2__container {
        gap: 50px;
    }

    .hero-v2__label {
        font-size: 0.7rem;
        margin-bottom: 2rem;
        gap: 10px;
    }

    .hero-v2__label-num {
        font-size: 0.7rem;
    }

    .hero-v2__label-text {
        font-size: 0.7rem;
        letter-spacing: 0.15em;
    }

    .hero-v2__label-line {
        max-width: 50px;
    }

    .hero-v2__title {
        font-size: 2.5rem;
        font-weight: 300;
        line-height: 1.5;
        letter-spacing: 0.1em;
        margin-bottom: 2rem;
    }

    .hero-v2__title-word {
        margin-right: 0;
    }

    .hero-v2__text {
        font-size: 1rem;
        line-height: 1.9;
        margin-bottom: 2.5rem;
        letter-spacing: 0.08em;
    }

    .hero-v2__buttons {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .hero-v2__btn {
        width: 100%;
        justify-content: center;
        padding: 18px 32px;
        font-size: 0.95rem;
    }

    .hero-v2__meta {
        flex-direction: row;
        justify-content: space-between;
        gap: 1.5rem;
        max-width: 100%;
    }

    .hero-v2__meta-item {
        padding-left: 16px;
        flex: 1;
    }

    .hero-v2__meta-num {
        font-size: 1.3rem;
        margin-bottom: 0.3rem;
    }

    .hero-v2__meta-text {
        font-size: 0.7rem;
        letter-spacing: 0.1em;
    }

    .hero-v2__meta-line {
        width: 40px;
        margin-top: 0.8rem;
    }

    .hero-v2__scroll {
        bottom: 40px;
    }

    .hero-v2__scroll span {
        font-size: 0.7rem;
    }

    .hero-v2__scroll-line {
        height: 50px;
    }

    .hero-v2__shape--1 {
        width: 350px;
        height: 350px;
        top: -120px;
        right: -100px;
    }

    .hero-v2__shape--2 {
        width: 280px;
        height: 280px;
        bottom: -100px;
        left: -80px;
    }

    .hero-v2__shape--3 {
        width: 220px;
        height: 220px;
    }
}

/* 極小スマートフォン */
@media (max-width: 480px) {
    .hero-v2 {
        padding: 90px 20px 50px;
    }

    .hero-v2__title {
        font-size: 2rem;
        font-weight: 300;
        line-height: 1.5;
        letter-spacing: 0.08em;
    }

    .hero-v2__text {
        font-size: 0.9rem;
        line-height: 1.9;
    }

    .hero-v2__btn {
        padding: 16px 28px;
        font-size: 0.9rem;
    }

    .hero-v2__meta {
        gap: 1rem;
    }

    .hero-v2__meta-item {
        padding-left: 12px;
    }

    .hero-v2__meta-num {
        font-size: 1.1rem;
    }

    .hero-v2__meta-text {
        font-size: 0.65rem;
    }

    .hero-v2__meta-line {
        width: 30px;
    }
}

/* ========================================
   リッチインタラクション用スタイル（安全版）
   ======================================== */

/* 背景スライダー - 絶対配置で既存レイアウトに影響なし */
.hero-v2__slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-swiper {
    width: 100%;
    height: 100%;
}

.hero-slide {
    width: 100%;
    height: 100%;
    transition: opacity 2s ease;
}

/* パーティクルアニメーション */
.hero-v2__particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-v2__particles .particle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(139, 117, 97, 0.4), rgba(139, 117, 97, 0.1));
    animation: particleFloat 20s ease-in-out infinite;
    will-change: transform;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translate(30px, -50px) scale(1.2);
        opacity: 0.6;
    }
    50% {
        transform: translate(-20px, -100px) scale(0.8);
        opacity: 0.4;
    }
    75% {
        transform: translate(40px, -70px) scale(1.1);
        opacity: 0.5;
    }
}

/* マウスフォロワー - 絶対配置で独立 */
.mouse-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(139, 117, 97, 0.3);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
    mix-blend-mode: difference;
}

.mouse-follower--active {
    width: 60px;
    height: 60px;
    border-color: rgba(139, 117, 97, 0.6);
}

.mouse-follower-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    background-color: rgba(139, 117, 97, 0.8);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
}

/* スクロール進捗バー - 絶対配置で独立 */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #8B7355, #428570);
    z-index: 9999;
    width: 0%;
    transition: width 0.1s linear;
}

/* モバイルではマウスフォロワーを非表示 */
@media (max-width: 768px) {
    .mouse-follower,
    .mouse-follower-dot {
        display: none;
    }
}
