/*
Theme Name: Ecru Edge
Description: Ecru Edge Hair Salon
Version: 1.0
*/


/* =================================
   基本設定
================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #fff;
    color: #222;
    font-family:
        Arial,
        "Helvetica Neue",
        sans-serif;
}
#hero {
    padding-top: 0 ;
    margin-top: 0 ;
}

#hero,
.hero-slider,
.hero-slide {
    width: 100%;
    height: auto ;     /*  */
}

/* 2.  */
.hero-slide img {
    width: 100% ;     /*  */
    height: auto ;    /*  */
    display: block;
}
.about-text, .concept-text, .price-text, .stylist-text, .features-text, .qa-text, .section-text {
    padding: 40px 80px ;    /*  */
    box-sizing: border-box ; /*  */
}


/*  */
.reserve-button, .btn, .submit-button {
    transition: all 0.3s ease;   /* 0.3秒かけて変形させる */
    display: inline-block;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* ✨ 【最重要】ボタンに触れた瞬間のホバーアニメーション */
.reserve-button:hover, .btn:hover, .submit-button:hover {
    transform: translateY(-3px) scale(1.03); /* */
    box-shadow: 0 8px 20px rgba(255, 114, 0, 0.3);  /*  */
    opacity: 0.9;
}


/* =================================
   固定ヘッダー
================================= */

#site-header {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 80px;

    background: transparent;

    z-index: 999;
}


/* =================================
   WordPress管理バー対策
================================= */

body.admin-bar #site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {

    body.admin-bar #site-header {
        top: 46px;
    }

}


/* =================================
   ロゴ
================================= */

.site-logo {
    position: absolute;

    top: 30px;
    left: 40px;

    display: flex;
    flex-direction: column;

    color: #777;

    text-decoration: none;

    z-index: 10001;
}
.site-logo:hover {
    opacity: 1;
    color: burlywood;
}

.logo-main {
    font-size: 50px;
    font-weight: 600;

    line-height: 1;
}

.logo-sub {
    margin-top: 5px;

    font-size: 20px;

    letter-spacing: 0.08em;

    line-height: 1;

    text-align: center;
}


/* =================================
   ハンバーガーボタン
================================= */

#menu-button {

    position: absolute;

    top: 32px;
    right: 45px;

    width: 68px;
    height: 52px;

    margin-top: 20px;

    border: none;

    background: transparent;

    cursor: pointer;

    z-index: 10001;

    pointer-events: auto;
}
#menu-button:hover span {
    background-color: burlywood;
}

#menu-button span {

    position: absolute;

    left: 0;

    width: 68px;
    height: 2px;

    background: #444;

    transition:
        top 0.35s ease,
        transform 0.35s ease,
        opacity 0.35s ease;
}

#menu-button span:nth-child(1) {
    top: 5px;
}

#menu-button span:nth-child(2) {
    top: 25px;
}

#menu-button span:nth-child(3) {
    top: 45px;
}


/* × */

#menu-button.is-active span:nth-child(1) {

    top: 25px;

    transform: rotate(45deg);
}

#menu-button.is-active span:nth-child(2) {

    opacity: 0;
}

#menu-button.is-active span:nth-child(3) {

    top: 25px;

    transform: rotate(-45deg);
}


/* 管理バー */

body.admin-bar #menu-button {
    top: 20px;
}

@media screen and (max-width: 782px) {

    body.admin-bar #menu-button {
        top: 20px;
    }

}


/* =================================
   モーダル
================================= */

.global-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(20, 20, 20, 0.7);

    /* 🌸 display: none は使わず、常に flex に */
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 5vh; /* 👈 画面の高さの5%分のレスポンシブな余白 */
    z-index: 10000;

    /* 🌸 初期状態は「透明」かつ「非表示（hidden）」に */
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* 隠れている間、裏側のボタンの邪魔をしないため */

    /* 🌸 フェードアップさせたいので、初期位置を少し下に */
    transform: translateY(100px);

    /* 🌸 transform も一緒になめらかに動かす */
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

/* ✨ 表示クラス（is-active）が追加されたとき */
.global-modal.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto; /* クリックできるように戻し */
    transform: translateY(0); /* 20px下から、元の位置へふわりと戻り */
}


/* 管理バーがある場合 */

body.admin-bar .global-modal {

    top: 32px;

    height: calc(100vh - 32px);
}

@media screen and (max-width: 782px) {

    body.admin-bar .global-modal {

        top: 46px;

        height: calc(100vh - 46px);
    }

}


/* =================================
   モーダル内メニュー
================================= */

.modal-navigation {

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 28px;

    text-align: center;
}

.modal-navigation a {

    color: #fff;

    text-decoration: none;

    font-size: 28px;

    font-weight: 400;

    transition: opacity 0.3s ease;
}

.modal-navigation a:hover {
    opacity: 0.6;
}


/* =================================
   FV
================================= */

#hero {

    width: 100%;
    height: 100vh;

    margin: 0;
    padding: 0;

    overflow: hidden;
}


/* FVスライダー */

.hero-slider {

    width: 100%;
    height: 100%;

    overflow: hidden;
}


.hero-track {

    display: flex;

    width: 400%;
    height: 100%;

    transform: translateX(0);

    transition: transform 1s ease;
}


.hero-slide {

    width: 25%;
    height: 100%;

    flex-shrink: 0;
}


.hero-slide img {

    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* =================================
   2カラム 画像が左側の場合 比率を45%：55%
================================= */

.two-column.image-left {

    width: 100%;
    max-width: 1100px;

    margin: 0 auto;

    display: grid;

    grid-template-columns: 45% 55%;
}

/* =================================
   2カラム 画像が右側の場合 比率を55%：45%
================================= */

.two-column.two-column-right {

    width: 100%;
    max-width: 1100px;

    margin: 0 auto;

    display: grid;

    grid-template-columns: 55% 45%;
}
/* ================================= 
    2カラム 画像が右側の場合（Concept / Price） 
================================= */
.two-column.two-column-right .image-right img {
    margin-left: -100px;  /* 🌸 【最重要】右側の画像を「左」へはみ出させる（数値はカンプに合せて） */
    position: relative;
    z-index: 1;           /* 画像を背後に潜り込ませるための階層設定 */
}


/* =================================
   タイトル
================================= */

.section-title {

    min-height: 300px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 50px;
}

.section-title h2 {

    margin: 0;

    font-size: 70px;

    font-weight: 400;

    letter-spacing: 0.03em;
}

.section-title p {

    margin: 8px 0 0;

    font-size: 18px;

    text-align: center;
}


/* =================================
   テキスト
================================= */

.section-text {

    min-height: 300px;

    padding: 50px 50px 50px 80px; 

    font-size: 18px;

    line-height: 2;
}


/* =================================
   画像が左側の場合
================================= */

.image-left {
    
    min-height: 300px;
    align-self: end;
    margin-bottom: 40px;
    position: relative;
    z-index: 10;
    width: 100%;
}

.image-left img {

    display: block;

    width: 110%;
    max-width: none;
    
    height: 350px;

    object-fit: cover;

}

/* =================================
   画像が右側の場合
================================= */

.image-right {
    
    min-height: 300px;
    align-self: end;
    margin-bottom: 40px;
    position: relative;
    z-index: 10;
    width: 100%;
    display: flex;
    justify-content: flex-end; 

}

.image-right img {

    display: block;

    width: 110%;
    max-width: none;
    
    height: 350px;

    object-fit: cover;

}


/* =================================
   画像の角丸
================================= */

/*
   文字側に接している側だけ角丸
*/

.image-right img {

    border-radius:
        30px
        0
        0
        30px;
}

.image-left img {

    border-radius:
        0
        30px
        30px
        0;
}


/* =================================
   各セクションの色
================================= */

.about-title,
.stylist-title {

    background: #fff0f2;
}

.about-text,
.stylist-text {

    background: #ffc7d0;
}

.concept-text,
.price-text {

    background: #b7dafa;
}

.concept-title,
.price-title {

    background: #dcefff;
}

.features-title,
.qa-title {

    background: #d8f5f7;
}

.features-text,
.qa-text {

    background: #b6e9ed;
}


/* =================================
   スクロール画像アニメーション
================================= */

.reveal-image {

    opacity: 0;

    transform:
        scale(0.3);

    clip-path:
        circle(0% at 50% 50%);

    transition:
        opacity 1s ease,
        transform 1s ease,
        clip-path 1.2s ease;
}


.reveal-image.is-visible {

    opacity: 1;

    transform:
        scale(1);

    clip-path:
        circle(100% at 50% 50%);
}


/* =================================
   スタイリストカルーセル
================================= */

#style-carousel {
    width: 100%;
    height: 100%;
    max-width: 1400px;
    margin: 50px auto;
    text-align: center;
    background: #fff;
}

.style-carousel-inner {
    align-items: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
}

.style-window {

    width: 60% !important;

    height: 60% !important;

    overflow: hidden;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
}


/*
   5枚を横並びにして、
   trackを左右に動かす
*/

.style-track {
    display: flex;
    width: 500%;
    height: 100%;
    transition: transform 0.7s ease;
    will-change: transform;
}


.style-item {
    width: 20%;
    height: 100%;
    flex: 0 0 20%;
}


.style-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;        
    margin-top: 30px; 
}

/* 左右ボタン */

.style-prev,
.style-next {
    border: none;
    background: transparent;
    color: #444;
    font-size: 2.5em;
    cursor: pointer;
}

.style-pause {
    margin-top: 0; 
    padding: 10px 30px;
    background: transparent;
    border: none;
    color: #444;
    cursor: pointer;
    font-size: 1.5em;
}

.style-prev:hover,
.style-next:hover,
.style-pause:hover {
    opacity: 0.5;
}


/* =================================
   Reserve
================================= */

#reserve {

    width: 100%;
    max-width: 1100px;

    margin: 0 auto;

    padding: 80px 20px;

    text-align: center;

    background: #fff3f4;
}

#reserve h2 {

    margin: 0;

    font-size: 40px;

    font-weight: 400;
}

#reserve p {

    font-size: 18px;
}


.reserve-button {

    display: block;

    width: 70% !important;

    margin: 30px auto 0;

    padding: 20px;

    border-radius: 50px;

    background: #ff7200;

    color: #fff;

    text-decoration: none;

    font-size: 30px;

    font-weight: bold;
}


/* =================================
   Access
================================= */

#access {

    width: 100%;
    max-width: 1100px;

    margin: 0 auto;

    padding: 80px 20px;

    text-align: center;
}

#access h2 {

    margin: 0;

    font-size: 40px;

    font-weight: 400;
}

#access p {

    font-size: 18px;
}


.map {

    width: 100%;

    max-width: 800px;

    margin: 40px auto 0;
}

.map iframe {

    display: block;

    width: 100%;

    height: 450px;

    border: 0;
}


/* =================================
   スマホ
================================= */

@media screen and (max-width: 767px) {

    .site-logo {

        left: 20px;
        top: 15px;
    }

    .logo-main {
        font-size: 20px;
    }

    #menu-button {

        right: 20px;
        top: 17px;
    }

    .modal-navigation a {

        font-size: 22px;
    }

    .two-column {

        grid-template-columns: 1fr;

    }

    .section-title {

        min-height: 220px;
    }

    .section-text {

        min-height: auto;

        padding: 35px 25px;

    }

    .section-image {

        min-height: auto;
    }

    .section-image img {

        height: 250px;
    }

    .image-left img,
    .image-right img {

        border-radius: 0 0 30px 30px;
    }

    .style-item {

        width: 140px;
        height: 140px;
    }

}

/* =========================================
   FOOTER
========================================= */

#site-footer {
    width: 100%;
    margin: 0;
    padding: 100px 8% 30px;

    background: #222;
    color: #fff;
}


/* -----------------------------------------
   フッター内部
----------------------------------------- */

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;

    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    gap: 80px;
}


/* -----------------------------------------
   フッターロゴ
----------------------------------------- */

.footer-logo {
    flex: 0 0 auto;
}

.footer-logo a {
    display: inline-flex;
    flex-direction: column;

    align-items: center;
    font-weight: bold;
    text-decoration: none;
    color: #777;
}
.footer-logo a:hover {
    opacity: 1;
    color: burlywood;
}

/* Ecru Edge */

.footer-logo-main {
    display: block;

    font-family: Arial, "Helvetica Neue", sans-serif;

    font-size: 70px;
    font-weight: 500;

    line-height: 1;

    letter-spacing: 0.04em;

    white-space: nowrap;
}


/* hair salon */

.footer-logo-sub {
    display: block;

    margin-top: 20px;

    font-family: Arial, "Helvetica Neue", sans-serif;

    font-size: 20px;
    font-weight: 400;

    line-height: 1;

    letter-spacing: 0.16em;

    text-align: center;

    white-space: nowrap;
}


/* -----------------------------------------
   店舗情報
----------------------------------------- */

.footer-info {
    text-align: center;

    line-height: 2;

    letter-spacing: 0.04em;
}

.footer-info span {
    font-size: 1.5em
}
.footer-info p {
    margin: 0;
    font-size: 1em;
}


/* -----------------------------------------
   コピーライト
----------------------------------------- */

.footer-bottom {
    max-width: 1400px;

    margin: 80px auto 0;

    padding-top: 25px;

    text-align: center;
}

.footer-bottom p {
    margin: 0;

    font-size: 15px;

    letter-spacing: 0.08em;

    color: #fff;
}


/* =========================================
   FOOTER RESPONSIVE
========================================= */

@media screen and (max-width: 767px) {

    .logo-main {
    font-size: 30px;
    font-weight: 600;

    line-height: 1;
    }

    .logo-sub {
    margin-top: 5px;

    font-size: 18px;

    letter-spacing: 0.08em;

    line-height: 1;

    text-align: center;
    }
    
    #site-footer {
        padding: 70px 25px 25px;
    }

    .footer-inner {
        flex-direction: column;

        align-items: center;

        gap: 50px;

        text-align: center;
    }

    .footer-logo-main {
        font-size: 30px;
    }

    .footer-logo-sub {
        font-size: 15px;
        margin-top: 10px;
    }

    .footer-info {
        text-align: center;

        font-size: 13px;

        line-height: 1.9;
    }

    .footer-bottom {
        margin-top: 60px;
    }

/* =================================
   ハンバーガーボタン
================================= */

#menu-button {

    position: absolute;

    top: 32px;
    right: 25px;

    width: 68px;
    height: 52px;

    margin-top: 0;

    border: none;

    background: transparent;

    cursor: pointer;

    z-index: 10001;

    pointer-events: auto;
}

#menu-button span {

    position: absolute;

    left: 0;

    width: 68px;
    height: 2px;

    background: #444;

    transition:
        top 0.35s ease,
        transform 0.35s ease,
        opacity 0.35s ease;
}

#menu-button span:nth-child(1) {
    top: 5px;
}

#menu-button span:nth-child(2) {
    top: 25px;
}

#menu-button span:nth-child(3) {
    top: 45px;
}

#menu-button:hover span {
    background-color: burlywood;
}

#menu-button.is-active span:nth-child(1) {

    top: 25px;

    transform: rotate(45deg);
}

#menu-button.is-active span:nth-child(2) {

    opacity: 0;
}

#menu-button.is-active span:nth-child(3) {

    top: 25px;

    transform: rotate(-45deg);
}
}

/* =================================
   FV
================================= */
@media screen and (max-width: 900px) {
#hero {

    width: 100%;
    height: 100vh;
    max-height: 600px;
    margin: 0;
    padding: 0;

    overflow: hidden;
}
.hero-slide img {

    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}
}
/* =================================
    sectionタイトル
================================= */
@media screen and (max-width: 900px) {
section,
#concept, #price, #stylist, #features, #qa, #reserve, #access {
    padding-top: 100px ;    /*   */
    padding-bottom: 100px ; /*  セクションの下部の空白 */
}

.section-title {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 50px;
    
    padding-top: 100px; 
}

/*  */
.section-title h2 {
    margin: 0;
    font-size: 3em;
    font-weight: 400;
    letter-spacing: 0.03em;
}

.section-title p {
    margin: 8px 0 0;
    font-size: 18px;
    text-align: center;
}
}

/* =================================
テキスト
================================= */
@media screen and (max-width: 900px) {
    .section-text {
        padding: 20px 40px ; 
        font-size: 1em;
        line-height: 2;
    }
    .about-text, 
    .concept-text, 
    .price-text, 
    .stylist-text, 
    .features-text, 
    .qa-text {
        padding: 20px 40px ; 
    }
}


@media screen and (max-width: 900px) {

    /* 1.  */
    .two-column, 
    .two-column-right {
        display: flex !important;
        flex-direction: column !important; /*  */
        gap: 20px !important;              /*  */
    }

    /* 2.  */
    .image-left,
    .image-right {
        order: 1 !important;   /*  */
        width: 100% !important;/*  */
    }
    .image-left img,
    .image-right img {
        width: 100% !important;
        height: 100%;
        aspect-ratio: 1 / 1 !important; /*  */
        object-fit: cover !important;   /*  */
        border-radius: 5%;
}

    .about-text,
    .concept-text,
    .price-text,
    .stylist-text,
    .features-text,
    .qa-text {
        order: 2 !important;   /*  */
        width: 100% !important;
        padding: 0 10px !important; /*  */
    }
}
/* =================================
   スタイリストカルーセル
================================= */

#style-carousel {

    width: 100%;

    max-width: 1400px;

    margin: 50px auto;

    text-align: center;

    background: #fff;
}
.style-carousel-inner {
    display: flex;
    flex-direction: column; /*  */
    align-items: center;    /*  */
}


.carousel-controls {
    position: static ; /*  */
    display: flex ;
    justify-content: center ; /*  */
    gap: 20px ;        /*  */
    margin-top: 30px ; /*  */
}

.style-window {

    width: 400px;

    height: 400px;

    overflow: hidden;

    border-radius: 50%;

    flex-shrink: 0;

    position: relative;
}


/*
   5枚を横並びにして、
   trackを左右に動かす
*/

.style-track {

    display: flex;

    width: 500%;

    height: 100%;

    transition: transform 0.7s ease;

    will-change: transform;
}


.style-item {

    width: 20%;

    height: 100%;

    flex: 0 0 20%;
}


.style-item img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;
}


/* 左右ボタン */

.style-prev,
.style-next {

    font-size: 3em;

    border: none;

    background: transparent;

    color: #444;

    cursor: pointer;
}


.style-prev:hover,
.style-next:hover,
.style-pause:hover {

    opacity: 0.5;
}


/* 停止ボタン */

.style-pause {
    margin-top: 0; 
    padding: 10px 30px;
    background: transparent;
    border: none;
    color: #444;
    cursor: pointer;
    font-size: 2em;
}

.reserve-button {

    display: block;

    width: 100%;

    margin: 30px auto 0;

    padding: 20px;

    border-radius: 50px;

    background: #ff7200;

    color: #fff;

    text-decoration: none;

    font-size: 30px;

    font-weight: bold;
}

/* 🔙 右下固定ボタン（top時は非表示） */
.page-top-link {
    position: fixed;
    right: 30px;
    bottom: 30px;
    color: #777;
    text-decoration: none;
    
    /* 矢印「▲」を真ん中に置くための設定 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999; 
    
    /* 初期状態は非表示 */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}


.page-top-link .arrow {
    font-size: 3em;             
    line-height: 1;
    margin-bottom: 10px;    
}
.page-top-link .text {
    font-size: 1.2em;            
    font-family: 'EB Garamond', serif; 
    font-style: italic;
    letter-spacing: 0.12em;      
    line-height: 1;
}
.page-top-link.is-visible {
    opacity: 1;
    visibility: visible;
}
.page-top-link:hover {
    opacity: 1;
    transform: translateY(-4px); 
    color: burlywood;
    background: transparent ;
    background-color: transparent ;
    box-shadow: none ;
    outline: none ;
    border: none ;
}
@media screen and (max-width: 900px) {
    /* フワッと表示させるための仕掛け */
.page-top-link {
    right: 10px;
    bottom: 30px;
}
.page-top-link .arrow {
    font-size: 2em;             
    margin-bottom: 10px;    
}
.page-top-link .text {
    font-size: 1em;            
}

.style-window {

    width: 500px;
    height: 500px;
}
	
.reserve-button {

    width: 100%;

    font-size: 10px;
}
}