@charset "utf-8";

/**************************************************
   Variable
**************************************************/
:root {
    /* --- Colors --- */
    --clr-bg-page : #E0E0E0;        /* Gray  : 背景 */
    --clr-bg-text : #faffff;        /* White : 写真上の文字背景 */
    --clr-text    : #2D2D2D;        /* Black : 文字色 */

    /* --- Font --- */
    --fnt-base   : "source-han-sans-japanese", sans-serif;
    --fnt-accent : "ten-mincho", serif;

    /* --- Spacing / Margin / Padding --- */
    --spc-2xs : 0.4rem;         /* 4px */
    --spc-xs  : 0.8rem;         /* 8px */
    --spc-s   : 1.6rem;         /* 16px */
    --spc-m   : 2.4rem;         /* 24px */
    --spc-l   : 4.0rem;         /* 40px */
    --spc-xl  : 7.2rem;         /* 72px */
    --spc-2xl : 16.0rem;        /* 160px */
}


/**************************************************
   Selector
**************************************************/
html {
    font-size: 62.5%;               /* 1rem = 16px * 62.5% = 10px */
    scroll-behavior: smooth;        /* ページ内リンクをクリックした時、スクロールを滑らかにする */
}

*, *::before, *::after {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

.l-body {
    margin-inline: auto;
    background-color: var(--clr-bg-page);
    color: var(--clr-text);
    font-family: var(--fnt-base);
    font-size: 1.2rem;
    line-height: 2;
    letter-spacing: 0.15em;
}

img {
    display: block;
    max-inline-size: 100%;
    block-size: auto;
    object-fit: cover;
}

ul {
    list-style: none;
}

a {
    display: inline-block;
    text-decoration: none;
    color: inherit;                     /* リンクテキストの色をリセット */
}

button {
    appearance: none;                   /* ブラウザ独自のスタイルをリセット */
    background-color: transparent;
    border: none;
    cursor: pointer;
}

span {
    display: inline-block;
}


/**************************************************
   Component / Utility
**************************************************/
/* --- View detail button --- */
.c-btn__view {
    display: block;
    inline-size: 240px;
    block-size: 50px;
    margin-inline: auto;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: var(--clr-bg-text);
    background-color: var(--clr-text);
    border: 1px solid var(--clr-text);
}


/* --- SP landscape  --- */
.u-br--landscape {
    display: none;
}

@media screen and (max-height: 500px) and (orientation: landscape) {
    .u-br--landscape {
        display: inline;
    }
}


/* --- Scroll animation --- */
/* - 上から下にフェードイン - */
.u-scroll--down {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-50px);
    transition:
        opacity 0.5s ease-out,
        transform 0.5s ease-out,
        visibility 0.5s;
}

.u-scroll--down.is-show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* - 下から上にフェードイン - */
.u-scroll--up {
    opacity: 0;
    visibility: hidden;
    transform: translateY(50px);
    transition:
        opacity 0.5s ease-out,
        transform 0.5s ease-out,
        visibility 0.5s;
}

.u-scroll--up.is-show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* - 左から右にフェードイン - */
.u-scroll--right {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%);
    transition:
        opacity 0.8s ease-out,
        transform 0.8s ease-out,
        visibility 0.8s;
}

.u-scroll--right.is-show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* - 右から左にフェードイン - */
.u-scroll--left {
    opacity: 0;
    visibility: hidden;
    transform: translateX(50%);
    transition:
        opacity 0.8s ease-out,
        transform 0.8s ease-out,
        visibility 0.8s;
}

.u-scroll--left.is-show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* - 拡大しながらフェードイン - */
.u-scroll--scale-up {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
    transition:
        opacity 0.5s ease-out,
        transform 0.5s ease-out,
        visibility 0.5s;
}

.u-scroll--scale-up.is-show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}


/* --- Hover animation --- */
@media screen and (min-width: 1024px) {

    /* - 色を薄くする - */
    .u-hover--opacity:hover {
        opacity: 0.7;
        transition: opacity 0.3s ease;
    }

    /* - ボタンの色を変更する - */
    .u-hover--color:hover {
        background-color: var(--clr-bg-text);
        color: var(--clr-text);
        transition: all 0.3s ease;
    }

    /* - 画像は色を薄くしながら拡大、画像の説明文は下線を引く - */
    .u-hover--img:hover img  {
        transform: scale(1.1);
        opacity: 0.7;
        transition: all 0.3s ease;
    }

    .u-hover--img:hover p  {
        border-block-end: 1px solid var(--clr-text);
    }

    /* - 下線を引く - */
    .u-hover--line:hover {
        text-decoration: underline;
    }

    /* - 少し上にずらす - */
    .u-hover--up:hover {
        margin-block-end: var(--spc-xs);
        transition: all 0.3s ease;
    }
}


/**************************************************
   Keyframes
**************************************************/
/* --- FV img switch --- */
@keyframes img-switch-anim {
    0%   { opacity: 0; }
    5%   { opacity: 1; }
    20%  { opacity: 1; }
    25%  { opacity: 0; }
    100% { opacity: 0; }
}

/* --- Scroll bar --- */
@keyframes scroll-bar {
    0%    { transform: scaleY(0); transform-origin: top; }          /* 上端を固定して下へ伸ばす */
    50%   { transform: scaleY(1); transform-origin: top; }
    50.1% { transform: scaleY(1); transform-origin: bottom; }       /* 下端を固定して上から縮ませる */
    100%  { transform: scaleY(0); transform-origin: bottom; }
}


/**************************************************
   Header
**************************************************/
.l-header {
    position: fixed;
    inset-inline: 0;
    inset-block-start: 0;
    max-inline-size: 100vw;
    block-size: 90px;
    padding-inline: var(--spc-m);
    background-color: rgba(224, 224, 224, 90%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2000;
}

.l-header__logo {
    line-height: 1px;
}

.l-header__logo-img {
    block-size: 50px;
    vertical-align: bottom;
}

.l-header__order {
    display: none;
}

.l-header__icon-list {
    display: flex;
    align-items: center;
    gap: var(--spc-2xs);
    margin-inline-start: auto;
}

.l-header__icon-item {
    inline-size: 40px;
    block-size: 40px;
    position: relative;
}

.l-header__icon-link {
    inline-size: 100%;
    block-size: 100%;
}

.l-header__icon-img {
    position: absolute;
    inset-inline: 50%;
    inset-block: 50%;
    display: block;
    inline-size: 28px;
    block-size: 28px;
    transform: translate3d(-50%, -50%, 0);
}

.l-header__hamburger {
    inline-size: 100%;
    block-size: 100%;
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.l-header__hamburger-line {
    block-size: 2px;
    background-color: var(--clr-text);
    transform-origin: center;
    transition: all 0.5s ease;
}

.is-active .l-header__hamburger-line:nth-child(1) {
    transform: translateY(9px) rotate(40deg);
}

.is-active .l-header__hamburger-line:nth-child(2) {
    opacity: 0;
}

.is-active .l-header__hamburger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-40deg);
}

.l-header__nav {
    position: fixed;
    inset-block-start: 90px;
    inline-size: 100%;
    block-size: calc(100dvh - 90px);
    padding: var(--spc-m) var(--spc-l);
    background-color: rgba(224, 224, 224, 95%);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.5s ease,
        visibility 0.5s;
}

.l-header__nav.is-active {
    opacity: 1;
    visibility: visible;
}

.l-header__nav-link {
    padding: var(--spc-s);
    font-family: var(--fnt-accent);
    font-size: 2.0rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    filter: blur(10px);
    transition: filter 0.5s ease;
}

.is-active .l-header__nav-link {
    filter: blur(0);
}


/**************************************************
   Main
**************************************************/
.l-main {
    position: relative;
    overflow-x: hidden;
}

.p-fv {
    position: relative;
    block-size: 100dvh;
}

.p-fv__img-list {
    position: relative;
}

.p-fv__img-item {
    position: absolute;
    inset: 0;
    inline-size: 100%;
    block-size: 100dvh;
    opacity: 0;
    background-size: cover;
    background-position: center;
    image-rendering: -webkit-optimize-contrast;         /* 画像がボケないように設定 */
    animation: img-switch-anim 25s infinite;
}

.p-fv__img--1 {
    background-image: url(../img/photo/coffee-sp.webp);
    animation-delay: 0s;
}

.p-fv__img--2 {
    background-image: url(../img/photo/cafe-sp.webp);
    animation-delay: 5s;
}

.p-fv__img--3 {
    background-image: url(../img/photo/beans-sp.webp);
    animation-delay: 10s;
}

.p-fv__img--4 {
    background-image: url(../img/photo/roast-sp.webp);
    animation-delay: 15s;
}

.p-fv__img--5 {
    background-image: url(../img/photo/brew-sp.webp);
    animation-delay: 20s;
}

.p-fv__catch {
    position: absolute;
    inset-inline-start: calc(8vw + 90px);
    inset-block-start: 8vw;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--fnt-accent);
    font-size: 2.0rem;
    letter-spacing: 0.5em;
    line-height: 1;
    writing-mode: vertical-rl;
    padding: var(--spc-s) var(--spc-2xs) 0;
    background-color: rgba(250, 255, 255, 90%);
}

.p-fv__scroll {
    position: absolute;
    inset-inline-start: 50vw;
    inset-block-end: -60px;
    inline-size: 0.5px;
    block-size: 120px;
    background-color: var(--clr-text);
    animation: scroll-bar 1.2s infinite ease-out;
}

.l-section {
    padding-block-start: var(--spc-2xl);
}

.l-section__title {
    padding-inline-start: var(--spc-l);
    margin-block-end: var(--spc-xl);
}

.l-section__title-en {
    display: block;
    font-family: var(--fnt-accent);
    font-size: 2.8rem;
    text-transform: uppercase;
    line-height: 1.5;
    letter-spacing: 0.2em;
}

.l-section__title-jp {
    display: block;
    font-size: 1.4rem;
    font-weight: 400;
}

.l-section__title-jp::before {
    content: "－";
    padding-inline-end: var(--spc-s);
}

.p-about__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spc-xl);
}

.p-about__img {
    inline-size: 100%;
}

.p-about__body {
    padding-inline: var(--spc-l);
}

.p-about__text {
    line-height: 2.5;
    text-align: center;
    margin-block-end: var(--spc-xl);
}

.p-commitment__content {
    display: flex;
    flex-direction: column;
    gap: var(--spc-xl);
    margin-block-end: var(--spc-2xl);
}

.p-commitment__content:last-child {
    margin-block-end: 0;
}

.p-commitment__body {
    position: relative;
    padding-inline: var(--spc-l);
}

.p-commitment__tag {
    position: absolute;
    inset-inline-end: var(--spc-l);
    inset-block-start: calc(var(--spc-l) * -1);
    font-family: var(--fnt-accent);
    font-size: 1.2rem;
}

.p-commitment__subtitle {
    margin-block-end: var(--spc-l);
    font-family: var(--fnt-accent);
    letter-spacing: 0.3em;
}

.p-commitment__subtitle-num {
    display: block;
    font-size: 1.6rem;
    font-weight: 400;
    margin-block-end: var(--spc-xs);
}

.p-commitment__subtitle-text {
    display: block;
    font-size: 2.0rem;
    letter-spacing: 0.3em;
    padding-block-end: var(--spc-xs);
    border-block-end: 0.5px solid var(--clr-text);
}

.p-commitment__text {
    text-align: justify;            /* 両端揃え */
    text-justify: inter-character;  /* 日本語の調整を最適化 */
    word-break: break-all;          /* 単語の途中で変な改行が起きないようにする */
}

.p-category__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spc-xl);
    justify-content: center;
    padding-inline: var(--spc-l);
    margin-block-end: var(--spc-xl);
}

.p-category__img {
    margin-block-end: var(--spc-s);
}

.p-category__name-en {
    font-family: var(--fnt-accent);
    font-size: 2.4rem;
}

.p-category__name-jp {
    margin-inline-start: var(--spc-s);
}

.p-online {
    padding-block-end: var(--spc-2xl);
}

.p-online__text {
    padding-inline: var(--spc-l);
    margin-block-end: var(--spc-xl);
}


/**************************************************
   Footer
**************************************************/
.l-footer {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    block-size: 240px;
    padding: var(--spc-m);
    background-color: var(--clr-text);
    color: var(--clr-bg-text);
}

.l-footer__logo-img {
    block-size: 80px;
    vertical-align: bottom;
}

.l-footer__wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.l-footer__link {
    font-size: 1.0rem;
}

.l-footer__copy-wrapper {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    font-size: 1.2rem;
}


/**************************************************
   Pagetop button
**************************************************/
.l-pagetop {
    position: fixed;
    inset-inline-end: var(--spc-m);
    inset-block-end: var(--spc-2xl);
    inline-size: 60px;
    block-size: 60px;
    border-radius: 50%;
    border: 1px solid var(--clr-text);
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--clr-bg-text);
    color: var(--clr-text);
    opacity: 0;
    visibility: hidden;
    transform: translateY(50px);
    transition:
        opacity 0.5s ease-out,
        visibility 0.5s,
        transform 0.5s ease-out;
}

.l-pagetop.is-show {
    opacity: 0.8;
    visibility: visible;
    transform: translateY(0);
}


/**************************************************
   Media queries
**************************************************/
/* --- Tablet portrait --- */
@media screen and (min-width: 768px) and (orientation: portrait) {

    .l-header {
        block-size: 120px;
        padding-inline: var(--spc-l);
    }

    .l-header__logo-img {
        block-size: 60px;
    }

    .l-header__order {
        display: block;
        margin-inline-start: var(--spc-xl);
        font-size: 1.6rem;
        letter-spacing: 0.2em;
        line-height: 1.4;
    }

    .l-header__order-link {
        border-block-end: 0.5px solid var(--clr-text);
        margin-inline: var(--spc-2xs);
    }

    .l-header__icon-item {
        inline-size: 48px;
        block-size: 48px;
    }

    .l-header__icon-img {
        inline-size: 36px;
        block-size: 36px;
    }

    .l-header__hamburger {
        padding: 12px 10px;
    }

    .is-active .l-header__hamburger-line:nth-child(1) {
        transform: translateY(11px) rotate(40deg);
    }

    .is-active .l-header__hamburger-line:nth-child(3) {
        transform: translateY(-11px) rotate(-40deg);
    }

    .l-header__nav {
        inset-block-start: 120px;
        block-size: calc(100dvh - 120px);
        padding: var(--spc-xl);
    }

    .l-header__nav-link {
        padding: var(--spc-m);
        font-size: 2.4rem;
    }

    .p-fv {
        block-size: 100vh;
    }

    .p-fv__img-item {
        block-size: 100vh;
        background-attachment: fixed;
    }

    .p-fv__img--1 {
        background-image: url(../img/photo/coffee.webp);
    }

    .p-fv__img--2 {
        background-image: url(../img/photo/cafe.webp);
    }

    .p-fv__img--3 {
        background-image: url(../img/photo/beans.webp);
    }

    .p-fv__img--4 {
        background-image: url(../img/photo/roast.webp);
    }

    .p-fv__img--5 {
        background-image: url(../img/photo/brew.webp);
    }

    .p-fv__catch {
        inset-inline-start: calc(10vw + 120px);
        inset-block-start: 10vw;
        font-size: 2.4rem;
    }

    .p-fv__scroll {
        inset-block-end: -100px;
        block-size: 200px;
    }

    .l-section__title {
        padding-inline-start: var(--spc-xl);
    }

    .l-section__title-en {
        font-size: 3.6rem;
        line-height: 1.8;
    }

    .p-about__body {
        padding-inline: var(--spc-xl);
    }

    .p-commitment__img {
        padding-inline: var(--spc-xl);
    }

    .p-commitment__body {
        padding-inline: var(--spc-2xl);
    }

    .p-commitment__tag {
        inset-inline-end: var(--spc-xl);
    }
    
    .p-category__list {
        padding-inline: var(--spc-xl);
    }

    .p-online__text {
        padding-inline: var(--spc-xl);
    }

    .l-footer {
        block-size: 280px;
        padding: var(--spc-l);
    }

    .l-footer__logo-img {
        block-size: 100px;
    }

    .l-pagetop {
        inset-inline-end: var(--spc-l);
    }
}


/* --- Tablet landscape & Desktop --- */
@media screen and (min-width: 1024px) {

    .l-header {
        block-size: 120px;
        padding-inline: var(--spc-l);
    }

    .l-header__logo-img {
        block-size: 60px;
    }

    .l-header__order {
        display: block;
        margin-inline-start: var(--spc-xl);
        font-size: 1.6rem;
        letter-spacing: 0.2em;
        line-height: 1.4;
    }

    .l-header__order-link {
        border-block-end: 0.5px solid var(--clr-text);
        margin-inline: var(--spc-2xs);
    }

    .l-header__icon-list {
        gap: var(--spc-s);
    }

    .l-header__icon-item {
        inline-size: 48px;
        block-size: 48px;
    }

    .l-header__icon-img {
        inline-size: 36px;
        block-size: 36px;
    }

    .l-header__hamburger {
        padding: 12px 10px;
    }

    .is-active .l-header__hamburger-line:nth-child(1) {
        transform: translateY(11px) rotate(40deg);
    }

    .is-active .l-header__hamburger-line:nth-child(3) {
        transform: translateY(-11px) rotate(-40deg);
    }

    .l-header__nav {
        inset-block-start: 120px;
        block-size: calc(100dvh - 120px);
        padding: var(--spc-xl) 0;
        text-align: center;
    }

    .l-header__nav-link {
        padding: var(--spc-m);
        font-size: 2.4rem;
    }

    .p-fv {
        block-size: 100vh;
    }

    .p-fv__img-item {
        block-size: 100vh;
        background-attachment: fixed;
    }

    .p-fv__img--1 {
        background-image: url(../img/photo/coffee.webp);
    }

    .p-fv__img--2 {
        background-image: url(../img/photo/cafe.webp);
    }

    .p-fv__img--3 {
        background-image: url(../img/photo/beans.webp);
    }

    .p-fv__img--4 {
        background-image: url(../img/photo/roast.webp);
    }

    .p-fv__img--5 {
        background-image: url(../img/photo/brew.webp);
    }

    .p-fv__catch {
        inset-inline-start: calc(8vw + 120px);
        inset-block-start: 8vw;
        font-size: 2.4rem;
    }

    .p-fv__scroll {
        inset-block-end: -100px;
        block-size: 200px;
    }

    .l-section {
        max-inline-size: 1024px;
        margin-inline: auto;
    }

    .l-section__title {
        text-align: center;
        padding-inline-start: 0;
    }

    .l-section__title-en {
        font-size: 3.6rem;
        line-height: 1.8;
    }

    .l-section__title-jp::before {
        display: none;
    }

    .p-about__content {
        margin-inline: auto;
        flex-direction: row;
        justify-content: center;
        gap: 0;
    }

    .p-about__img {
        max-inline-size: 600px;
    }

    .p-about__body {
        padding-inline: var(--spc-xl);
    }

    .p-commitment__content {
        margin-inline: auto;
        flex-direction: row;
        justify-content: center;
        gap: 0;
    }

    .p-commitment__content:nth-child(2n) {
        flex-direction: row-reverse;
    }

    .p-commitment__img {
        max-inline-size: 560px;
        max-block-size: 350px;
        padding-inline: 0;
    }

    .p-commitment__body {
        padding-inline: var(--spc-xl);
    }

    .p-commitment__tag {
        inset-inline-end: var(--spc-xl);
    }

    .p-commitment__content:nth-child(2n + 1) .p-commitment__tag {
        inset-inline-start: var(--spc-xl);
    }

    .p-commitment__text {
        line-height: 2.5;
    }

    .p-category__list {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        padding-inline: 0;
        gap: var(--spc-xl);
    }

    .p-online__text {
        padding-inline: var(--spc-xl);
        
    }

    .l-footer {
        block-size: 280px;
        padding: var(--spc-l);
    }

    .l-footer__logo-img {
        block-size: 100px;
    }

    .l-pagetop {
        inset-inline-end: var(--spc-l);
    }
}


/* --- Mobile landscape --- */
@media screen and (max-height: 500px) and (orientation: landscape) {

    .l-header {
        block-size: 60px;
    }

    .l-header__logo-img {
        block-size: 40px;
    }

    .l-header__order {
        display: block;
        margin-inline-start: var(--spc-l);
        font-size: 1.4rem;
        letter-spacing: 0.2em;
        line-height: 1.4;
    }

    .l-header__order-link {
        border-block-end: 0.5px solid var(--clr-text);
        margin-inline: var(--spc-2xs);
    }

    .l-header__nav {
        inset-block-start: 60px;
        block-size: calc(100dvh - 60px);
        padding: var(--spc-s) var(--spc-xl);
    }

    .l-header__nav-link {
        padding: var(--spc-xs);
    }

    .p-fv__img--1 {
        background-image: url(../img/photo/coffee.webp);
    }

    .p-fv__img--2 {
        background-image: url(../img/photo/cafe.webp);
    }

    .p-fv__img--3 {
        background-image: url(../img/photo/beans.webp);
    }

    .p-fv__img--4 {
        background-image: url(../img/photo/roast.webp);
    }

    .p-fv__img--5 {
        background-image: url(../img/photo/brew.webp);
    }

    .p-fv__catch {
        inset-inline-start: calc(5vw + 60px);
        inset-block-start: 5vw;
        line-height: 1.15;
    }

    .p-fv__scroll {
        inset-block-end: -40px;
        block-size: 80px;
    }

    .l-section__title {
        padding-inline-start: var(--spc-xl);
    }

    .p-about__body {
        padding-inline: var(--spc-xl);
    }

    .p-commitment__body {
        padding-inline: var(--spc-xl);
    }

    .p-commitment__tag {
        inset-inline-end: var(--spc-xl);
    }

    .p-category__list {
        padding-inline: var(--spc-xl);
    }

    .p-category__name-en {
        font-size: 1.8rem;
    }

    .p-online__text {
        padding-inline: var(--spc-xl);
    }
}
