@charset "UTF-8";

/* ======================
Variables
====================== */
:root {
    /* Color Palette */
    --base-white: #FFFDF8;
    --base-yellow: #FCECBB;
    --text-black: #222;
    --orange: #F97A00;
    --orange-hover: #D85F00;
    --white: #FFF;
    --black: #000;

    /* Typography */
    --font-serif: 'Noto Serif JP';
    --font-sans: 'Noto Sans JP';

    /* Font Sizes */
    --font-size-base: 16px;

    --font-size-xs: 12px;
    --font-size-sm: 14px;
    --font-size-md: 18px;
    --font-size-lg: 20px;
    --font-size-xl: 24px;
    --font-size-2xl: 32px;

    /* Spacing Scale */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;

    --space-6: 24px;
    --space-8: 32px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;
    --space-30: 120px;
    --space-40: 160px;
}

/* ======================
Base
====================== */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

html {
    overscroll-behavior: none;
    scrollbar-gutter: stable;
}

body {
    font-family:
        var(--font-sans),
        Arial,
        sans-serif;
    font-style: normal;
    font-weight: 400;
    line-height: 1.8;
    color: var(--text-black);
    background-color: var(--base-white);
}

body.is-modal-open {
    overflow: hidden;
}

main {
    position: relative;
    overflow: hidden;
}

a,
button {
    cursor: pointer;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 3px;
}

/* 改行 */
.spBr {
    display: none;
}

.pcBr {
    display: block;
}

@media (max-width: 767px) {
    .spBr {
        display: block;
    }

    .pcBr {
        display: none;
    }
}

/* ======================
Common Components
====================== */
.section {
    padding-right: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
    padding-left: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
}

.page {
    padding-top: clamp(120px, 11.1vw, 160px);
    padding-bottom: clamp(120px, 11.1vw, 160px);
}

.page,
.section__container {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: var(--space-40) auto;
    padding-right: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
    padding-left: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
}


/* 見出し */
.section__ttl,
.page__ttl {
    color: var(--black);
    font-family: var(--font-serif);
    font-size: clamp(24px, 1.25rem + 0.83vw, 32px);
    font-weight: 700;
    writing-mode: vertical-rl;
    letter-spacing: 0.2em;
    margin: 0 auto clamp(64px, 8vw, 120px);
    display: flex;
    align-items: center;
    gap: clamp(12px, 1.7vw, 24px);
    white-space: nowrap;
}

.section__ttl img,
.page__ttl img {
    width: clamp(68px, 6.3vw, 90px);
}

/* ロゴ */
.logo {
    width: clamp(158px, 8.5rem + 7.5vw, 248px);
}

/* ======================
UI Components
====================== */
/* ボタン */
.btn {
    display: block;
    background-color: var(--orange);
    border: solid 1px transparent;
    color: var(--white);
    padding: var(--space-6) var(--space-8);
    width: 100%;
    max-width: 320px;
    height: 68px;
    font-size: var(--font-size-lg);
    font-weight: 700;
    line-height: 1;
    text-align: center;
    transition: all 0.3s ease;
    margin: var(--space-12) auto 0;
}

.btn:hover {
    background-color: var(--orange-hover);
    border: solid 1px var(--orange-hover);
}

/* アニメーション */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity 1s ease,
        transform 1s ease;
}

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

/* ======================
Dialog Component
====================== */
.menu {
    width: min(70vw, calc(50vw + 600px));
    height: 100vh;
    background-color: var(--base-white);
    max-height: none;
    margin: 0 0 0 auto;
    padding: 0;
    border: none;
    transition: transform 0.5s ease;
    transform: translateX(100%);
}

.menu__header {
    width: 100%;
    padding-top: var(--space-3);
    padding-bottom: var(--space-3);
    padding-left: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
    padding-right: max(clamp(1rem, 0.5rem + 2.5vw, 2.5rem),
            calc((100vw - 1200px) / 2));
}

.menu__header-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    margin-left: auto;
    margin-right: 0;
    max-width: 1200px;
}

.menu__header-container .logo {
    display: none;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: clamp(64px, 10vh, 160px);
    padding-bottom: var(--space-10);
}

.nav__list {
    display: flex;
    flex-direction: column;
    gap: clamp(32px, 5vw, 80px);
    justify-content: center;
}

.nav__item {
    font-family: var(--font-serif);
    font-size: clamp(16px, 1.4vw, 20px);
    font-weight: 700;
    transition: color 0.3s ease;
}

.nav__item:last-child {
    font-size: clamp(12px, 1.1vw, 16px);
}

.nav__item:hover {
    color: var(--orange);
}

/* 閉じるボタン */
.menu__close {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu__close-inner {
    width: 48px;
    height: 18px;
    position: relative;
}

.close__line {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%);
    width: 40px;
    height: 1px;
    background-color: var(--black);
}

.close__line:nth-of-type(1) {
    transform: translate(-50%, -50%) rotate(26deg);
}

.close__line:nth-of-type(2) {
    transform: translate(-50%, -50%) rotate(-26deg);
}

/* メニュー　開く時 */
.menu[open] {
    transform: translateX(0);

    @starting-style {
        transform: translateX(100%);
    }
}

/* メニュー　閉じる時 */
.menu.is-closing {
    transform: translateX(100%);
}

.menu__close .close__line {
    transition: width 0.3s ease;
}

.menu__close:hover .close__line {
    width: 48px;
}

/* 表示時　スクロール固定 */
body.is-modal-open {
    overflow: hidden;
}

/* フォーカス　スタイルを消去 */
.focus-trap {
    outline: none !important;
    border: none !important;
    position: absolute;
    width: 0;
    height: 0;
}

/* 閉じるボタンフォーカス（safari） */
.menu__close:focus {
    outline: none;
    box-shadow: none;
}

.menu__close:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 2px;
}

/* ======================
Dialog Component　SP
====================== */
@media (max-width: 767px) {
    .menu {
        width: 100%;
        max-width: 100%;
        margin: 0;
        left: 0;
        right: 0;
    }

    .menu__header {
        padding: var(--space-3) var(--space-4);
    }

    .menu__header-container {
        justify-content: space-between;
    }

    .menu__header-container .logo {
        display: block;
    }

    /* 閉じるボタン */
    .menu__close {
        width: 48px;
        height: 48px;
    }

    .menu__close-inner {
        width: 32px;
        height: 12px;
    }

    .close__line {
        width: 24px;
    }

    .menu__close:hover .close__line {
        width: 32px;
    }
}

/* ======================
Header Component
====================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    width: 100%;
    height: auto;
    padding: var(--space-3) clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(16px);
    box-shadow: 4px 4px 16px rgba(0, 0, 0, 0.16);
    border-bottom: solid 1px rgba(255, 255, 255, 0.2);
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.header__content {
    display: flex;
    align-items: center;
    gap: var(--space-5);
}

/* お問い合わせボタン */
.header__btn {
    display: flex;
    background-color: var(--orange);
    border: solid 1px transparent;
    width: 180px;
    height: 60px;
    padding: 18px 22px;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;

    font-size: var(--font-size-base);
    font-weight: 500;
    line-height: 1;
    color: var(--white);
}

.btn__img {
    width: 24px;
    height: 24px;
}

.header__btn:hover {
    background-color: var(--orange-hover);
    border: solid 1px var(--orange-hover);
}

/* メニューボタン */
.menu__open {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu__open-inner {
    width: 48px;
    height: 18px;
    position: relative;
}

.open__line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 1px;
    background-color: var(--black);
}

.open__line:nth-of-type(1) {
    top: 0;
}

.open__line:nth-of-type(2) {
    bottom: 0;
}

.menu__open .open__line {
    transition: width 0.3s ease,
        top 0.3s ease,
        bottom 0.3s ease,
        transform 0.3s ease;
}

.menu__open:hover .open__line {
    width: 48px;
}

/* ======================
Header Component　SP
====================== */
@media (max-width: 767px) {
    .header {
        padding: var(--space-3) var(--space-4);
    }

    .logo {
        height: 32px;
    }

    .header__content {
        gap: var(--space-3);
    }

    .header__btn {
        width: 48px;
        height: 48px;
        padding: var(--space-3);
        justify-content: space-between;
    }

    .header__btn span {
        display: none;
    }

    .menu__open {
        width: 48px;
        height: 48px;
    }

    .menu__open-inner {
        width: 32px;
        height: 12px;
    }

    .open__line {
        width: 24px;
    }

    .menu__open:hover .open__line {
        width: 32px;
    }
}

/* ======================
Footer Component
====================== */
.footer {
    position: relative;
    background-image: url(../images/webP/0F9A0226.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    padding: var(--space-8) clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
}

.footer::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background-color: rgba(0, 0, 0, 0.6);
}

.footer__container {
    margin: 0 auto;
    max-width: 1200px;
}

.footer__inner {
    position: relative;
    display: flex;
    justify-content: space-between;
    z-index: 2;
}

/* 会社情報 */
.footer__info {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-top: var(--space-8);
}

.footer__info-item {
    display: flex;
    gap: var(--space-1);
}

.footer__info-item dt {
    width: 60px;
    flex-shrink: 0;
}

/* フッターメニュー */
.footer__nav {
    text-align: right;
}

.footer__nav-list {
    display: flex;
    gap: clamp(24px, 3vw, 48px);
    justify-content: flex-end;
}

.footer__nav-item a {
    line-height: 1;
    font-weight: 700;
    transition: 0.3s ease;
}

.footer__privacy {
    display: inline-block;
    margin-top: var(--space-6);
    text-align: right;
    font-size: var(--font-size-xs);
    transition: 0.3s ease;
    line-height: 1;
    font-weight: 700;
}

.footer__nav-item a:hover,
.footer__privacy:hover {
    color: var(--orange);
}

/* コピーライト */
.copy {
    position: relative;
    z-index: 1;
    font-size: var(--font-size-xs);
    border-top: solid 1px var(--white);
    padding-top: var(--space-8);
    text-align: center;
    margin-top: var(--space-12);
}

/* フッター背景 */
.main__footer {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* ======================
Footer Component SP
====================== */
@media (max-width: 767px) {
    .footer__inner {
        flex-direction: column;
    }

    .footer__nav {
        text-align: left;
    }

    .footer__nav-list {
        flex-direction: column;
        margin-top: var(--space-8);
    }

    .footer__privacy {
        margin-top: var(--space-8);
        text-align: left;
    }
}