/* =========================================================
   Font
========================================================= */

body {
    font-family: var(--font-shippori-mincho);
}
html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
}

* {
    box-sizing: border-box;
}

/* =========================================================
   Focus
========================================================= */

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 5px;
}

/* =========================================================
   Side navigation
========================================================= */
.sp-header,
.sp-drawer {
    display: none;
}
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 50;

    width: var(--sidebar-width);
    /* height: 100vh; */

    background: var(--color-background);
}

.side-nav {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100vh;
}

.side-nav__list {
    display: flex;
    flex-direction: column;
    justify-content: start;
    gap: 24px;

    width: 100%;
    padding: 0 0 0 16%;

    font-size: clamp(10px, 0.72vw, 14px);
    font-weight: 600;
    letter-spacing: 0.08em;
}

.side-nav__link {
    display: inline-block;
    padding: 4px 0;

    transition:
        color var(--transition-base),
        opacity var(--transition-base);
}

.side-nav__link:hover {
    color: var(--color-accent);
}

/* =========================================================
   Hero
========================================================= */

.hero {
    width: 100%;
    position: relative;
    height: 100vh;
}
/* ========================================
   Hero Infinite Slider
======================================== */

.hero-slider {
    position: relative;
    grid-column: 1;
    grid-row: 1;

    width: 100%;
    height: 100vh;

    overflow: hidden;
}
/* FV画像のカラースクリーン */
.hero-slider::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;

    background-color: rgba(66, 33, 11, 0.2);

    pointer-events: none;
}
.hero-slider__track {
    display: flex;

    width: 1000%;
    height: 100%;

    animation: hero-slider-scroll 60s linear infinite;
}

.hero-slider__slide {
    flex: 0 0 10%;

    width: 10%;
    height: 100%;
}

.hero-slider__slide img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}

@keyframes hero-slider-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}
/* ========================================
   Right Utility Bar
======================================== */
.side-utility {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;

    width: 57px;
    height: 100vh;
    background-color: var(--color-black);
    margin: 0px;
    padding: 0;
}

/* 右端の縦ライン */
.side-utility::after {
    content: "";

    position: absolute;
    top: 0;
    right: 4px;
    bottom: 0;

    width: 1px;

    background: rgba(255, 255, 255, 0.35);
}
/* ========================================
   Side utility top
======================================== */

.side-utility__top {
    position: absolute;
    top: 18px;
    left: 50%;

    display: flex;
    flex-direction: column;
    align-items: center;

    width: 100%;

    transform: translateX(-50%);
}

.side-utility__logo {
    display: block;

    width: 28px;
}

.side-utility__logo img {
    display: block;

    width: 100%;
    height: auto;
}

.side-utility__accent {
    display: block;

    width: 1px;
    height: 45px;
    margin: 15px 0 12px;

    background: var(--color-gold);
}

.side-utility__message {
    margin: 0;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.65;
    letter-spacing: 0.12em;

    color: var(--color-white);

    writing-mode: vertical-rl;
    text-orientation: upright;
}
/* ========================================
   Hamburger
======================================== */

.side-utility__menu {
    position: absolute;
    top: 72%;
    left: 50%;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;

    width: 36px;
    height: 42px;
    padding: 0;

    color: var(--color-white);
    background: transparent;

    border: 0;

    transform: translate(-50%, -50%);

    cursor: pointer;
}

/* 3本の縦線 */
.side-utility__menu span {
    display: block;

    width: 1px;
    height: 27px;

    background: var(--color-white);
}
/* 3本の縦線 */
.side-utility__menu span {
    display: block;

    width: 1px;
    height: 27px;

    background: var(--color-white);

    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}

/* 開いた状態 */
.side-utility__menu.is-open span:nth-child(1) {
    transform: translateX(5px) rotate(45deg);
}

.side-utility__menu.is-open span:nth-child(2) {
    opacity: 0;
}

.side-utility__menu.is-open span:nth-child(3) {
    transform: translateX(-5px) rotate(-45deg);
}

/* ========================================
   Contact
======================================== */

.side-utility__contact {
    position: absolute;
    top: 77%;
    left: 50%;
    z-index: 2;

    display: flex;
    flex-direction: column;
    align-items: center;

    color: var(--color-white);

    text-decoration: none;

    transform: translateX(-50%);
}

/* 金色の丸 */
.side-utility__contact-dot {
    display: block;

    width: 5px;
    height: 5px;
    margin-bottom: 10px;

    background: var(--color-gold);

    border-radius: 50%;
}

/* お問い合わせはこちら */
.side-utility__contact-text {
    display: block;

    font-size: 11px;
    font-weight: 500;
    line-height: 1.65;
    letter-spacing: 0.12em;

    color: var(--color-white);

    white-space: nowrap;

    writing-mode: vertical-rl;
    text-orientation: upright;
}
/* ========================================
   Drawer Menu
======================================== */

.drawer-menu {
    position: fixed;
    top: 0;

    /* 黒い縦帯のすぐ左 */
    right: 0;

    z-index: 999;

    display: flex;
    align-items: center;

    width: clamp(260px, 20vw, 360px);
    height: 100vh;

    padding: 60px 40px;

    background: var(--color-black);

    /* 閉じた状態 */
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;

    transition:
        transform 0.4s ease,
        opacity 0.3s ease,
        visibility 0.4s;
}

/* 開いた状態 */
.drawer-menu.is-open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

.drawer-menu__nav {
    width: 100%;
}

.drawer-menu__list {
    display: flex;
    flex-direction: column;
    gap: 28px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.drawer-menu__list a {
    display: inline-block;

    padding: 4px 0;
    font-size: 15px;
    letter-spacing: 0.08em;

    color: var(--color-white);

    transition: opacity 0.25s ease;
}

.drawer-menu__list a:hover {
    opacity: 0.6;
}
.hero__visual {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 58px;

    width: 100%;
    height: 100%;
    /* min-height: 600px;
    max-height: 900px; */

    overflow: visible;
}

/* 写真 */

.hero__image {
    display: block;

    grid-column: 1;

    width: 100%;
    height: auto;
}
/* Main calligraphy logo */

.hero__logo {
    position: absolute;
    top: 6%;
    left: 50%;

    width: clamp(200px, 25vw, 500px);

    transform: translateX(-50%);
}

.hero__logo img {
    width: 100%;
}

/* Vertical hero copy */

.hero__message {
    position: absolute;
    top: 85%;
    left: 61%;
    height: 400px;

    font-size: 18px;
    font-weight: 800;
    line-height: 2;
    letter-spacing: 0.15em;
    color: var(--color-white);

    writing-mode: vertical-rl;
    text-orientation: upright;

    transform: translateY(-50%);
}

/* =========================================================
   Origin
========================================================= */

.origin {
    padding-top: clamp(90px, 10vw, 180px);
    padding-right: clamp(50px, 9vw, 150px);
    padding-bottom: clamp(100px, 12vw, 200px);
    padding-left: var(--sidebar-width);
    background-color: var(--color-background);
}

.origin__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(70px, 10vw, 170px);

    width: 100%;
    max-width: none;
    margin: 0;
}

/* Origin content */

.origin__content {
    align-self: center;

    max-width: 660px;
}

.origin__label {
    margin-bottom: 12px;

    font-size: 16px;
    line-height: 1.8;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--color-muted);
}

.origin__title {
    margin-bottom: clamp(55px, 6vw, 90px);

    font-size: 50px;
    font-weight: 800;
    line-height: 1.6;
    letter-spacing: 0.12em;
}

.origin__title em {
    font-style: normal;
    color: var(--color-accent);
}

/* Origin articles */

.origin__body {
    display: flex;
    flex-direction: column;
    gap: clamp(50px, 5vw, 75px);
}

.origin__heading {
    margin-bottom: 18px;

    font-size: 30px;
    font-weight: 800;
    line-height: 2.8;
    letter-spacing: 0.12em;
}

.origin__text {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.8;
    letter-spacing: 0.12em;
    color: var(--color-muted);
}

/* =========================================================
   Vertical Statement
========================================================= */

/* .origin__statement {
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-start;

    margin: 0;
    font-size: 50px;
    font-weight: 800;
    line-height: 1.6;
    letter-spacing: 0.12em;
}

.origin__statement span {
    display: block;
    padding: 0 9px;

    writing-mode: vertical-rl;
    text-orientation: upright;

    border-right: 1px solid var(--color-line);
} */

.origin__statement {
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-start;

    gap: 4px;

    margin: 0;

    font-size: 50px;
    font-weight: 800;

    /* 親では行間を持たせない */
    line-height: 1;

    letter-spacing: 0;
}

.origin__statement span {
    display: block;

    writing-mode: vertical-rl;
    -webkit-writing-mode: vertical-rl;

    text-orientation: upright;

    white-space: nowrap;

    /* 列幅を固定 */
    width: 1.3em;

    /* flexで潰れないようにする */
    flex: 0 0 1.55em;

    /* 縦方向の文字間 */
    line-height: 1.55;

    /* 必要ならここだけ字間 */
    letter-spacing: 0.08em;
    border-right: 1px solid var(--color-text);
}

/* タイピング中のカーソル */
.origin__statement span.is-typing::after {
    content: "";
    display: inline-block;

    width: 2px;
    height: 1em;
    margin-top: 3px;

    background: var(--color-text);

    animation: typing-cursor 0.7s steps(1) infinite;
}

@keyframes typing-cursor {
    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}
.origin__statement span:first-child {
    border-right: 1px solid var(--color-text);
}

/* ==============================
   Ticker
============================== */

.ticker {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;

    padding: 30px 0;

    background: var(--color-background);
}

/* 2セットを横並び */
.ticker__track {
    display: flex;
    width: max-content;

    animation: ticker-scroll 20s linear infinite;

    will-change: transform;
}

/*
 * 重要
 * 1セットを最低でも画面幅以上にする
 * これで途中で内容がなくなるのを防ぐ
 */
.ticker__content {
    display: flex;
    flex: 0 0 100vw;

    align-items: center;
    justify-content: flex-start;

    gap: 50px;
    padding: 0 25px;

    box-sizing: border-box;
    white-space: nowrap;
}

.ticker__content span {
    flex: 0 0 auto;

    font-size: 64px;
    line-height: 1;
    letter-spacing: 0.32em;

    color: #fff;
    white-space: nowrap;
}

.ticker__content img {
    display: block;
    flex: 0 0 auto;
    transform: translateX(-50px);
    width: 55px;
    height: 55px;

    object-fit: contain;
    border-radius: 50%;
}

/* 1セット分だけ移動する */
@keyframes ticker-scroll {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(-100vw, 0, 0);
    }
}

/* =========================================================================================================
   Smartphone
   600px and below
==================================================================================================== */
@media (max-width: 600px) {
    html,
    body {
        width: 100%;
        overflow-x: hidden;
    }

    .main-content {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
    }

    .hero {
        width: 100%;
        height: 85vh;
        margin: 0;
        padding: 0;
    }

    .hero__visual {
        width: 100%;
        max-width: none;
        margin: 0;
        padding-top: 70px;
        height: 75vh;
        /* PCの右58pxカラムをSPでは消す */
        grid-template-columns: 1fr;
    }
    .hero-slider {
        grid-column: 1 / -1;
        height: 75vh;
        width: 100%;
        max-width: 100%;
    }
    .hero__logo {
        top: 100px;
    }
    .hero__message {
        top: 80%;
        left: 62%;
        height: 220px;
        font-size: 12px;
        line-height: 1.8;
    }
    /* ========================================
       PC左ナビを非表示
    ======================================== */

    .site-header,
    .side-nav {
        display: none;
    }

    /* ========================================
       黒帯
    ======================================== */

    .side-utility {
        position: fixed;

        top: 0;
        right: 0;
        left: 0;
        z-index: 100;

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

        width: 100%;
        height: 70px;

        margin: 0;

        background: var(--color-black);

        transform: none;
    }

    /* ========================================
       左側
    ======================================== */

    .side-utility__top {
        position: static;

        display: flex;
        flex-direction: row;
        align-items: center;
        margin-right: 50px;
        margin-left: 20px;
        width: auto;
        height: 100%;
        font-size: 8px;
        font-weight: 800;
        line-height: 1.5;
        letter-spacing: 0.12em;
        /* PC指定を解除 */
        left: auto;
        transform: none;
    }

    .side-utility__logo {
        width: 34px;
        margin-left: 16px;
    }

    .side-utility__message {
        writing-mode: horizontal-tb;
        text-orientation: mixed;
        margin-left: 9px;
        font-size: 8px;
        white-space: nowrap;
        font-weight: 800;
    }
    .side-utility__accent {
        display: none;
    }
    /* ========================================
       ハンバーガー
    ======================================== */

    .side-utility__menu {
        position: static;

        display: flex;
        flex-direction: column; /* ← これが重要 */

        align-items: center;
        justify-content: center;

        gap: 5px;

        width: 56px;
        height: 70px;

        margin-left: 0;
        padding: 0;

        transform: none;
    }

    .side-utility__menu span {
        display: block;

        width: 24px;
        height: 1px;

        background: var(--color-white);

        transform: none;
    }

    /* SPの横線はY軸方向へ重ね、3本の中心を揃えて閉じる形にする */
    .side-utility__menu.is-open span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .side-utility__menu.is-open span:nth-child(2) {
        opacity: 0;
    }

    .side-utility__menu.is-open span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    /* PCの右Side-bar用Offsetを外し、SPではHeader直下から右開きにする */
    .drawer-menu {
        top: 70px;
        right: 0;
        z-index: 99;

        width: min(260px, 100%);
        height: calc(100vh - 70px);
        height: calc(100dvh - 70px);
        padding: 40px 32px;
    }

    /* ========================================
       お問い合わせ
    ======================================== */
    .side-utility__right {
        display: flex;
        justify-content: flex-end;
    }
    .side-utility__contact {
        position: static;

        display: flex;
        flex-direction: row;
        align-items: center;

        margin-right: 14px;

        transform: none;
    }

    .side-utility__contact-text {
        writing-mode: horizontal-tb;
        text-orientation: mixed;

        font-size: 14px;
        font-weight: 800;
        line-height: 1.2;
        letter-spacing: 0.12em;
        white-space: nowrap;
    }

    .side-utility__contact-dot {
        width: 4px;
        height: 4px;

        margin: 0 7px 0 0;
    }
    .kotira {
        display: none;
    }
    /* ハンバーガーを右側へ */
    .side-utility__menu {
        order: 2;
    }

    /* お問い合わせを左側へ */
    .side-utility__contact {
        order: 1;
    }
    /* ========================================
   SP Origin
======================================== */

    .origin {
        width: 100%;
        padding-bottom: 50px;
    }

    .origin__inner {
        display: flex;
        flex-direction: column;

        width: 100%;
        max-width: none;
        margin: 0;

        gap: 28px;
    }

    /* ========================================
   縦書きを一番上へ
======================================== */

    .origin__statement {
        order: -1;

        display: flex;
        flex-direction: row-reverse;
        align-items: flex-start;
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        height: auto;

        font-size: 32px;
        font-weight: 800;
        line-height: 1;
        letter-spacing: 0.12em;

        gap: 10px;
    }

    .origin__statement span {
        display: block;

        padding: 0 8px;

        writing-mode: vertical-rl;
        text-orientation: upright;

        white-space: nowrap;
        height: auto;
        /* max-height: none; */

        border-right: 1px solid var(--color-text);
    }

    /* ========================================
   由来本文
======================================== */

    .origin__content {
        width: 100%;
        max-width: none;

        align-self: auto;
    }

    .origin__label {
        margin-bottom: 8px;

        font-size: 16px;
        font-weight: 600;
        line-height: 1.8;
        letter-spacing: 0.12em;
    }

    .origin__title {
        margin-bottom: 24px;

        font-size: 32px;
        font-weight: 800;
        line-height: 2.6;
        letter-spacing: 0.12em;
    }

    .origin__body {
        gap: 28px;
    }

    .origin__heading {
        margin-bottom: 9px;

        font-size: 24px;
        font-weight: 800;
        line-height: 1.6;
        letter-spacing: 0.12em;
    }

    .origin__text {
        font-size: 14px;
        font-weight: 600;
        line-height: 1.8;
        letter-spacing: 0.12em;
    }

    /* ========================================
   SP Ticker
======================================== */

    .ticker {
        width: 100%;
        margin: 0;

        padding: 20px 0;

        overflow: hidden;
    }

    .ticker__content {
        gap: 40px;
        /* padding-right: 22px; */
    }

    .ticker__content span {
        font-size: 48px;
        font-weight: 600;
        line-height: 0.8;
        letter-spacing: 0.3em;
    }

    .ticker__content img {
        width: 45px;
        height: 45px;
    }
}
