/*
Theme Name: Il-fait-beau
Description: Custom theme for Il-fait-beau
Version: 1.0.0
*/

:root {
    /* color */
    --color-base: #FFFFFF;
    --color-main: #EBEBDF;
    --color-accent: #647634;
    --color-accent-light: #BCCD8E;
    --color-black: #303030;
    --color-black-light: #444444;
    --line-white: #F1F1F1;

    /* font size*/
    --font-size-sm: 12px;
    --font-size-base: 16px;
    --font-size-lg: 20px;
    --font-size-xl: 24px;
    --font-size-2xl: 28px;
    --font-size-3xl: 32px;
    --font-size-4xl: 40px;
    --font-size-5xl: 60px;

    /* font family */
    --font-family-serif: 'EB Garamond', serif;
    --font-family-serif-jp: 'Noto Serif JP', serif;

    /* line height */
    --line-height-base: normal;
    --line-height-lg: 2;

    /* 
    新しく追加した。上下トリミング 
    margin-block: var(--leading-trim);でできる。
    */
    --leading-trim: calc((1lh / 2) - 1em);
}


/* ==============================
Global
============================== */
* {
    box-sizing: border-box;
}

body {
    background-color: var(--color-base);
    font-size: var(--font-size-base);
    color: var(--color-black);
    font-family: var(--font-family-serif-jp);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
    overflow: hidden;
}

::selection {
    background-color: var(--color-accent);
    color: var(--color-base);
}

::-webkit-selection {
    background-color: var(--color-accent);
    color: var(--color-base);
}

::-moz-selection {
    background-color: var(--color-accent);
    color: var(--color-base);
}

a {
    cursor: pointer;
    user-select: none;
    -webkit-user-drag: none;
}

img {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

main {
    margin-top: 98.5px;
}

.button-border span {
    position: absolute;
    display: block;
    transition: all 0.3s ease-in-out;
}

.button-border span:nth-child(1) {
    top: 0;
    width: 94%;
    left: 0;
    height: 1px;
}

.button-border span:nth-child(2) {
    bottom: 0;
    left: 0;
    width: 1px;
    height: 100%;
}

.button-border span:nth-child(3) {
    right: 0;
    bottom: 0;
    width: 94%;
    height: 1px;
}

.button-border span:nth-child(4) {
    right: 0;
    top: 0;
    width: 1px;
    height: 100%;
}

.button-border--hover:hover .button-border span:nth-child(1),
.button-border--hover:hover .button-border span:nth-child(3) {
    width: 0;
}

.button-border--hover:hover .button-border span:nth-child(2),
.button-border--hover:hover .button-border span:nth-child(4) {
    height: 0;
}

.button-border--black span {
    background-color: var(--color-black-light);
}

.button-border--white span {
    background-color: var(--color-base);
}

@media (min-width: 768px) {
    main {
        margin-top: 124.5px;
    }
}


.pc-only {
    display: block;
}

.sp-only {
    display: none;
}

@media screen and (max-width: 768px) {
    .pc-only {
        display: none;
    }

    .sp-only {
        display: block;
    }
}
/* ==============================
Fade In
============================== */
/* フェードインアニメーション */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* 遅延を追加できるバリエーション */
.fade-in-delay-1 {
    transition-delay: 0.1s;
}

.fade-in-delay-2 {
    transition-delay: 0.2s;
}

.fade-in-delay-3 {
    transition-delay: 0.3s;
}

/* 方向のバリエーション */
.fade-in-left {
    transform: translateX(-30px);
}

.fade-in-right {
    transform: translateX(30px);
}

.fade-in-left.is-visible,
.fade-in-right.is-visible {
    transform: translateX(0);
}

/* ==============================
Container
============================== */
.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==============================
Header
============================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    max-height: 94px;
}

.header .container {
    padding: 24px 20px;
    max-width: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo {
    height: max-content;
    width: auto;
    flex-shrink: 0;
    position: relative;
    z-index: 100;
}

.header__logo a {
    display: inline-block;
}

.header__logo img {
    max-width: none;
    width: auto;
    height: 46px;
    object-fit: contain;
}

.header__ham {
    position: relative;
    z-index: 100;
    display: flex;
    flex-direction: column;
    width: 60px;
    cursor: pointer;
    height: 46px;
}

.header__ham span {
    position: absolute;
    right: 0;
    width: 60px;
    height: 2px;
    background-color: var(--color-black-light);
    transition: all 0.3s ease-in-out;
}

.header__ham span:nth-child(1) {
    top: 0;
}

.header__ham span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
}

.header__ham span:nth-child(3) {
    bottom: 0;
    width: 40px;
}

.header__ham.is-active span {
    top: 50%;
    width: 60px;
}

.header__ham.is-active span:nth-child(1) {
    transform: translateY(-50%) rotate(45deg);
}

.header__ham.is-active span:nth-child(2) {
    opacity: 0;
}

.header__ham.is-active span:nth-child(3) {
    transform: translateY(-50%) rotate(-45deg);
}

@media (min-width: 768px) {
    .header .container {
        padding: 24px 60px;
    }

    .header__logo img {
        height: 72px;
    }
}


/* ==============================
Hampage
============================== */

.hampage {
    opacity: 0;
    padding-top: 96px;
    background-color: var(--color-base);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    height: 100vh;
    width: 100%;
    transition: all 0.3s ease-in-out;
    overflow-x: hidden;
    overflow-y: auto;
    pointer-events: none;
}

.hampage.is-open {
    opacity: 1;
    pointer-events: auto;
}

.hampage .wrapper {
    display: flex;
    padding: 0 20px;
    flex-direction: column;
    justify-content: space-between;
    min-height: calc(100vh - 96px);
}

.hampage__img {
    display: none;
    position: relative;
    overflow: hidden;
}

.hampage__img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hampage__img img.active {
    opacity: 1;
    z-index: 1;
}

.hampage__nav {
    padding: 80px 0;
}

.hampage__nav-list {
    display: flex;
    flex-direction: column;
    gap: 80px;
}


.hampage__nav-list li {
    margin: 0;
}

.hampage__nav-list a {
    font-size: var(--font-size-3xl);
    display: block;
    text-align: center;
    padding: 4px 20px;
    width: fit-content;
    margin: 0 auto;
}

.hampage__nav-list li.current-menu-item>a,
.hampage__nav-list li.current-page-item>a {
    border-bottom: 1px solid var(--color-accent);
}

.hampage__nav-list li.current-menu-item>a::first-letter,
.hampage__nav-list li.current-page-item>a::first-letter {
    color: var(--color-accent);
    text-transform: uppercase;
}

.hampage__nav-list a:hover {
    color: var(--color-accent);
}

.hampage__reserve {
    width: 100%;
    padding: 40px 0 32px 0;
    border-top: 1px solid var(--color-black-light);
}

.hampage__tel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.hampage__tel-item {
    display: flex;
    gap: 12px;
    align-items: center;
}

.hampage__tel-label {
    text-transform: uppercase;
    font-family: var(--font-family-serif);
    font-size: var(--font-size-xl);
}

.hampage__tel-number {
    font-size: var(--font-size-3xl);
}

.hampage__tel-time {
    font-size: var(--font-size-sm);
}

.hampage__links {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    row-gap: 24px;
    column-gap: 20px;
    justify-content: center;
}

.hampage__links-item {
    padding: 16px 18px;
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    flex: 0 0 calc(50% - 10px);
    max-width: calc(50% - 10px);
    text-align: center;
    position: relative;
}

.hampage__links-icon {
    display: block;
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    flex-shrink: 0;
}

.hampage__links-text {
    white-space: nowrap;
}

@media (min-width: 768px) {
    .hampage {
        display: grid;
        grid-template-columns: 1fr 1fr;
        overflow-y: hidden;
        padding-top: 0;
    }

    .hampage__img {
        display: block;
    }

    .hampage__img img {
        height: 100%;
        width: 100%;
        object-fit: cover;
    }

    .hampage .wrapper {
        padding: 0 60px;
        padding-top: 96px;
        overflow-y: scroll;
        height: 100vh;
    }

    .hampage__reserve {
        padding: 60px 0;
    }

    .hampage__tel-time {
        font-size: var(--font-size-base);
    }

    .hampage__links {
        margin-top: 28px;
    }
}

/* ==============================
Reserve
============================== */
.reserve .container {
    padding: 60px 20px;
    background-color: var(--color-main);
}

.reserve__heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.reserve__heading h2 {
    font-size: var(--font-size-xl);
}

.reserve__heading h2::first-letter {
    color: var(--color-accent);
    text-transform: uppercase;
}

.reserve__heading-line {
    width: 28px;
    height: 1px;
    background-color: var(--color-accent);
    margin: 0 auto;
    display: block;
}

.reserve__wrapper {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
}

.reserve__tel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.reserve__tel-item {
    display: flex;
    gap: 12px;
    align-items: center;
}

.reserve__tel-label {
    text-transform: uppercase;
    font-family: var(--font-family-serif);
    font-size: var(--font-size-xl);
}

.reserve__tel-number {
    font-size: var(--font-size-3xl);
}

.reserve__tel-time {
    font-size: var(--font-size-sm);
}

.reserve__links {
    margin-top: 24px;
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: center;
}

.reserve__links-item {
    padding: 16px 18px;
    position: relative;
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    flex: 0 0 calc(50% - 10px);
    max-width: calc(50% - 10px);
    text-align: center;
    position: relative;
}

.reserve__links-icon {
    display: block;
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    flex-shrink: 0;
}

.reserve__links-text {
    white-space: nowrap;
}

.reserve__line {
    display: none;
}

.reserve__content--cancell {
    margin-top: 60px;
    border-top: 1px solid var(--color-black-light);
    border-bottom: 1px solid var(--color-black-light);
    padding: 32px 20px;

}

.reserve__cancell-heading {
    font-size: var(--font-size-lg);
    font-family: var(--font-family-serif);
    text-align: center;
}

.reserve__cancell-text {
    margin-top: 20px;
    line-height: var(--line-height-lg);
}

@media (min-width: 768px) {
    .reserve {
        padding: 40px 20px;
        position: relative;
    }

    .reserve::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        height: calc(50% + 1px);
        width: 100%;
        background-color: var(--color-black-light);
        z-index: -1;
        transform: translateY(1px);
    }

    .reserve .container {
        padding: 40px 0;
    }

    .reserve__heading {
        gap: 24px;
    }

    .reserve__heading h2 {
        font-size: var(--font-size-4xl);
    }

    .reserve__heading p {
        font-size: var(--font-size-lg);
    }

    .reserve__heading-line {
        width: 36px;
    }

    .reserve__wrapper {
        flex-direction: row;
        height: 280px;
        align-items: center;
    }

    .reserve__content {
        flex: 1;
        height: 100%;
        max-width: 50%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .reserve__line {
        border-right: 1px solid var(--color-black-light);
        height: 100%;
        width: 1px;
        display: block;
    }

    .reserve__content--tel {
        padding: 16px clamp(20px, 8%, 120px);
    }

    .reserve__tel-number {
        white-space: nowrap;
    }

    .reserve__tel-time {
        font-size: var(--font-size-base);
        white-space: nowrap;
    }

    .reserve__links {
        margin-top: 0;
        flex-direction: column;
        gap: 20px;
    }

    .reserve__links-item {
        max-width: 100%;
    }

    .reserve__content--cancell {
        border: none;
        margin-top: 0;
        padding: 16px clamp(20px, 6%, 80px);
    }

    .reserve__cancell-heading {
        font-size: var(--font-size-2xl);
    }

    .reserve__cancell-text {
        margin-top: 0;
    }
}

/* ==============================
Footer
============================== */
.footer {
    background-color: var(--color-black-light);
    padding: 60px 0;
    color: var(--color-base);
}

.footer__logo {
    width: 160px;
    margin: 0 auto;
}

.footer__info {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    align-items: start;
}

.footer__info-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__map {
    width: 100%;
    margin-top: 40px;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.footer__map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}


.footer__sns-copy-wrapper {
    border-top: 1px solid var(--color-base);
    margin-top: 28px;
}

.footer__sns {
    display: flex;
    gap: 20px;
    justify-content: center;
    padding-top: 28px;
    padding-bottom: 12px;
    color: var(--color-base);
}

.footer__copyright {
    margin-top: 40px;
    font-size: var(--font-size-sm);
    text-align: center;
}

@media (min-width: 768px) {
    .footer {
        padding: 40px 0;
    }

    .footer__content {
        display: flex;
        justify-content: space-between;
        gap: 40px;
        max-height: 400px;
        align-items: stretch;
    }

    .footer__wrapper {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        flex: 1;
        min-width: 350px;
        gap: 20px;
    }

    .footer__logo {
        margin: 0;
        width: 200px;
    }

    .footer__map {
        margin-top: 0;
        aspect-ratio: 3/2;
        max-width: 600px;
        align-self: stretch;
    }

    .footer__info {
        gap: 32px;
        margin-top: 0;
    }

    .footer__info-label {
        width: 96px;
        min-width: 96px;
    }

    .footer__info-item {
        flex-direction: row;
    }

    .footer__sns-copy-wrapper {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-top: 40px;
        margin-top: 40px;
    }

    .footer__sns {
        padding-top: 0;
        padding-bottom: 0;
    }

    .footer__sns-icon {
        display: block;
        width: 40px;
        height: 40px;
    }

    .footer__sns-icon img {
        width: 100%;
    }

    .footer__copyright {
        margin-top: 0;
        font-size: var(--font-size-base);
    }
}







/* ニュース・インフォメーションで使ってるヘッダー */
.page__header {
    width: 100%;
    height: 420px;
    display: flex;
    align-items: center;
}

.page__header-inner {
    margin: auto;
    max-width: 1120px;
    width: 100%;
    display: grid;
    gap: 48px;
    padding: 0 40px;
}

.page__header-inner h1 {
    font-size: 60px;
    font-family: var(--font-family-serif);
    color: var(--color-base);
    margin-block: var(--leading-trim);
}

.page__header-inner span {
    font-size: var(--font-size-xl);
    font-family: var(--font-family-serif-jp);
    color: var(--color-base);
    margin-block: var(--leading-trim);
}

@media screen and (max-width:768px) {
    .page__header {
        height: 400px;
    }

    .page__header-inner {
        gap: 20px;
    }

    .page__header-inner h1 {
        font-size: 48px;
    }

    .page__header-inner span {
        font-size: var(--font-size-lg);
    }
}

/* ==============================
Fade In Animations
============================== */
/* フェードイン（上から） */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* フェードイン（基本） */
.fade-in {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.is-visible {
    opacity: 1;
}

/* transformを保持する必要がある要素用 */
.fade-in-keep-transform {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-keep-transform.is-visible {
    opacity: 1;
}

/* フェードイン（左から） */
.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* フェードイン（右から） */
.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* フェードイン（スケール） */
.fade-in-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-scale.is-visible {
    opacity: 1;
    transform: scale(1);
}

/* 遅延を追加できるバリエーション */
.fade-in-delay-1 {
    transition-delay: 0.1s;
}

.fade-in-delay-2 {
    transition-delay: 0.2s;
}

.fade-in-delay-3 {
    transition-delay: 0.3s;
}

/* モバイルではアニメーションを軽く */
@media screen and (max-width: 768px) {

    .fade-in-up,
    .fade-in-left,
    .fade-in-right {
        transform: translateY(20px);
    }

    .fade-in-left {
        transform: translateX(-20px);
    }

    .fade-in-right {
        transform: translateX(20px);
    }
}
