@charset "utf-8";

/* 
Theme name:IKEBUKURO COFFEE FESTIVAL
Description:スマホ特化型サイトの制作
Author:tinatu 
*/


html {
    box-sizing: border-box;
    -webkit-text-size-adjust: 100%
}

*,
:after,
:before {
    background-repeat: no-repeat;
    box-sizing: inherit
}

:after,
:before {
    text-decoration: inherit;
    vertical-align: inherit
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

audio:not([controls]) {
    display: none;
    height: 0
}

hr {
    overflow: visible
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
main,
menu,
nav,
section,
summary {
    display: block
}

summary {
    display: list-item
}

small {
    font-size: 80%
}

[hidden],
template {
    display: none
}

abbr[title] {
    border-bottom: 1px dotted;
    text-decoration: none
}

a {
    background-color: transparent;
    -webkit-text-decoration-skip: objects
}

a:active,
a:hover {
    outline-width: 0
}

code,
kbd,
pre,
samp {
    font-family: monospace, monospace
}

b,
strong {
    font-weight: bolder
}

dfn {
    font-style: italic
}

mark {
    background-color: #ff0;
    color: #000
}

sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline
}

sub {
    bottom: -.25em
}

sup {
    top: -.5em
}

input {
    border-radius: 0
}

[role=button],
[type=button],
[type=reset],
[type=submit],
button {
    cursor: pointer
}

[disabled] {
    cursor: default
}

[type=number] {
    width: auto
}

[type=search][type=search]::-webkit-search-cancel-button,
[type=search]::-webkit-search-decoration {
    -webkit-appearance: none
}

textarea {
    overflow: auto;
    resize: vertical
}

button,
input,
optgroup,
select,
textarea {
    font: inherit
}

optgroup {
    font-weight: 700
}

button {
    overflow: visible
}

[type=button]::-moz-focus-inner,
[type=reset]::-moz-focus-inner,
[type=submit]::-moz-focus-inner,
button::-moz-focus-inner {
    border-style: 0;
    padding: 0
}

[type=button]::-moz-focus-inner,
[type=reset]::-moz-focus-inner,
[type=submit]::-moz-focus-inner,
button:-moz-focusring {
    outline: 1px dotted
}

[type=reset],
[type=submit],
button,
html [type=button]button,
select {
    text-transform: none
}

button,
input,
select,
textarea {
    background-color: transparent;
    border-style: none;
    color: inherit
}

select::-ms-expand {
    display: none
}

select::-ms-value {
    color: currentColor
}

legend {
    border: 0;
    color: inherit;
    display: table;
    max-width: 100%;
    white-space: normal
}

::-webkit-file-upload-button {
    -webkit-appearance: button;
    font: inherit
}

[type=search]img {
    border-style: none;
    vertical-align: bottom
}

progress {
    vertical-align: baseline
}

svg:not(:root) {
    overflow: hidden
}

audio,
canvas,
progress,
video {
    display: inline-block
}

@media screen {
    [hidden~=screen] {
        display: inherit
    }

    [hidden~=screen]:not(:active):not(:focus):not(:target) {
        position: absolute !important;
        clip: rect(0 0 0 0) !important
    }
}

[aria-busy=true] {
    cursor: progress
}

[aria-controls] {
    cursor: pointer
}

[aria-disabled] {
    cursor: default
}

::-moz-selection {
    background-color: #b3d4fc;
    color: #000;
    text-shadow: none
}

::selection {
    background-color: #b3d4fc;
    color: #000;
    text-shadow: none
}

ul,
ol {
    list-style: none;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    vertical-align: bottom;
}

/* ------------------------------- */
/* リセットここまで */
/* ------------------------------- */

/* 変数の登録 */
:root {
    --base_color: #E8E3D8;
    --base_color2: #d6d1c4;
    --main_color: #257C4D;
    --txt-color: #333333;
    --txt-color2: #5b381b;
    --coffee: #5a411e;
    --music: #ecb337;

    --font_en: "Luckiest Guy", cursive;
    --font_ja: "M PLUS Rounded 1c", sans-serif;

    --radius: 8px;
}

html {
    scroll-behavior: smooth
        /* スムーススクロール */
    ;
}

body {
    background-color: var(--base_color);
    color: var(--txt-color);

    a {
        color: var(--txt-color);
    }

    @media(width <=960px) {
        justify-content: center;
        /* 真ん中に持ってくる */
    }
}

/* outer部分 */
.outer {
    /* ヘッダーとコンテナを並べるためにDF、方向はローリバース */
    display: flex;
    flex-direction: row-reverse;
}

/* ----------------- */
/* ヘッダー部分 */
/* ----------------- */
header {
    width: 48%;
    background-color: var(--base_color);
    /* ポジションする時、下に潜った要素がすけたりするので必ずBGCつける */
    position: fixed;
    top: 70px;
    left: 2%;
    border: 1px solid var(--txt-color);
    padding: 20px;
    border-radius: var(--radius);

    >h1 {
        font-size: 36px;
        font-family: var(--font_en);
        letter-spacing: 0.05em;
        margin-bottom: 6px;

        a {
            color: var(--main_color);
        }
    }

    .tag-line {
        font-family: var(--font_ja);
        font-size: 18px;
        margin-bottom: 6px;
    }

    @media(width <=960px) {
        display: none;
        /* SP時は見えなくする */
    }
}

/* ----------------- */
/* PC用ナビゲーション */
/* ----------------- */
.pc-nav {
    margin-top: 10px;

    >ul {
        display: flex;
        justify-content: center;
        gap: 0 20px;

        a {
            padding: 5px 10px;
            font-family: var(--font_en);
            color: var(--txt-color2);

            /* リンクをクリックしやすくするため、必ずaにはパディング付ける */
            &:hover {
                text-decoration: underline 3px var(--txt-color2);
                text-underline-offset: 5px;
            }
        }
    }
}

/* ----------------- */
/* コンテンツ部分 */
/* ----------------- */
.container {
    width: 40%;
    margin-right: 2%;
    background-color: var(--base_color2);
    box-shadow: 3px 0 3px #aaa, -3px 0 3px #aaa;
    /* 2方向に影を付けたいときは、カンマで区切って書き足す */
    position: relative;
    /* h2の基準点にするため */

    @media(width <=960px) {
        margin-right: 0;
        width: 100%;
        max-width: 600px;
    }
}

/* ------------- */
/* 共通部分 */
/* ------------- */
.page-section {
    padding: 100px 20px 50px;

    h2 {
        text-align: center;
        font-family: var(--font_ja);
        font-size: 26px;
        color: var(--main_color);
        margin-bottom: 50px;

        &::after {
            display: block;
            content: attr(data-en);
            font-family: var(--font_en);
            color: var(--txt-color);
            font-size: 0.6en;
            letter-spacing: 0.03em;
            line-height: 0.8;
        }
    }

}

/* ----------------- */
/* ティッカー部分 */
/* ----------------- */
.ticker {
    background-color: var(--txt-color);
    color: #fff;
    overflow: hidden;

    >p {
        width: fit-content;
        white-space: nowrap;
        font-family: var(--font_ja);
        font-size: 16px;
        text-indent: 4em;
        animation: ticker 10s infinite linear;

        span {
            margin-left: 4em;
        }
    }
}

@keyframes ticker {
    0% {
        translate: 0 0;
    }

    100% {
        translate: -50% 0;
    }
}

/* メインコピー部分 */
.main-copy {
    padding: 50px 20px;

    >h2 {
        writing-mode: vertical-rl;
        /* 縦書き、右から左 */
        position: absolute;
        top: 50px;
        right: 40%;
        background-color: #ffffff6f;
        backdrop-filter: blur(6px);
        /* backdrop-filter: blur グラスモーフィングするにはBGCが＃FFFだと聞かないので少し色を付ける？ */
        font-family: var(--font_ja);
        font-size: 26px;
    }
}

/* ----------------- */
/* お知らせ */
/* ----------------- */
.news-list {
    dt {
        font-weight: bold;
        margin-bottom: 6px;
    }

    dd {
        margin-bottom: 16px;
        cursor: pointer;

        >a:hover {
            text-decoration: underline;
            text-underline-offset: 4px;
        }
    }
}

/* ----------------- */
/* 店舗の紹介 */
/* ----------------- */

/* スクロールスナップにする */
.shop-wrapper {
    display: flex;
    overflow: auto;
    gap: 0 40px;
    scroll-snap-type: x mandatory;
    /* X方向にスクロールスナップにする */

    .shop-box {
        flex: 0 0 80%;
        background-color: var(--base_color);
        padding: 14px;
        margin-bottom: 30px;
        /* スクロールバーとの隙間 */
        border-radius: var(--radius);
        scroll-snap-align: start;
        /* スクロールスナップする位置 */
        scroll-snap-stop: always;

        /* スクロールスナップするとき１個づつ止まる */
        >h3 {
            font-size: 24px;
            font-family: var(--font_ja);
            color: var(--main_color);
            margin-bottom: 10px;
        }

        .shop-photo {
            aspect-ratio: 4/2.4;

            >img {
                object-fit: cover;
                width: 100%;
                height: 100%;
            }
        }

        .shop-text {
            line-height: 1.6;
            margin-top: 10px;
        }
    }
}

/* ----------------- */
/* アクセス部分 */
/* ----------------- */
.access-wrapper {
    margin-bottom: 100px;

    h3 {
        font-size: 22px;
        margin-bottom: 10px;

        >span {
            display: block;
            font-size: 18px;
            font-weight: normal;
        }
    }
}

.access-inner {
    width: 100%;
    aspect-ratio: 2/1.2;

    >iframe {
        width: 100%;
        height: 100%;
    }
}

/* ----------------- */
/* 参加者の声 */
/* ----------------- */

.voice-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.voice-box {
    background-color: var(--base_color);
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(2, 50%);
    gap: 10px;

    >img {
        grid-column: 1/2;
        grid-row: 1/3;
    }

    .voice-date {
        grid-column: 2/3;
        grid-row: 1/2;
        text-align: center;
        align-self: center;
    }

    .voice-name {
        grid-column: 2/3;
        grid-row: 2/3;
        text-align: center;
    }

    >h3 {
        grid-column: 1/3;
        grid-row: 3/4;
    }

    .voice-text {
        grid-column: 1/3;
        grid-row: 4/5;
    }
}

/* ----------------- */
/* イベントの様子 */
/* ----------------- */

/* ボタンのスタイル */
.photo-wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0 20px;


    >input[type="radio"] {
        display: none;
        /* まるポチ部分を消す */
    }

    >label {
        display: inline-block;
        border: 2px solid var(--main_color);
        margin-bottom: 50px;
        width: 25%;
        text-align: center;
        padding: 10px 0;
        border-radius: var(--radius);
        cursor: pointer;
        transition: 0.2s;

        &:hover {
            box-shadow: 0 0 10px #7b7b7b;
        }
    }
}

/* checkedの指定 */
#all:checked+label {
    background-color: var(--main_color);
    color: #fff;
}

#coffee:checked+label {
    background-color: var(--coffee);
    color: #fff;
    border: 2px solid var(--coffee);
}

#music:checked+label {
    background-color: var(--music);
    color: #fff;
    border: 2px solid var(--music);
}





.photo-container {
    columns: 2;
    /* 列数を指定 */

    @media(width <=560px) {
        columns: 1;
    }
}

.photo-box {
    break-inside: avoid;
    /* 改行禁止 */
    background-color: var(--base_color);
    padding: 16px;
    border-radius: var(--radius);
    margin-bottom: 20px;

    h3> {
        text-align: center;
        margin-bottom: 6px;
        font-family: var(--font_ja);
    }

    .photo-date {
        text-align: right;
        margin: 6px 0;
    }

    img {
        height: auto !important;
    }
}



/* タグの色 コーヒー/ミュージック */
.photo-tag>span {
    display: inline-block;
    color: #fff;
    padding: 4px;
    border-radius: var(--radius);
    font-size: 14px;
    margin-right: 6px;
    background-color: var(--coffee);

    &:nth-of-type(2) {
        background-color: var(--music);
    }
}

/* [] 属性セレクタ 特定の属性（アトリビュート）やその値を指定 */
[data-category="music"]>.photo-tag>span {
    background-color: var(--music);
}


/* フィルタリング */
/* ～は階層を一つ上げる */
/* photo-box:not photo-boxの中でデータカテゴリがcoffee以外を非表示する */
/* data-category*="coffee" ＊は部分一致 */
#coffee:checked~.photo-container>.photo-box:not([data-category*="coffee"]) {
    display: none;
}

#music:checked~.photo-container>.photo-box:not([data-category*="music"]) {
    display: none;
}



/* ----------------- */
/* SPメニュー */
/* ----------------- */
#bento-btn,
#sp-nav,
.sp-header {
    display: none;
}

@media(width <=960px) {

    /* 弁当メニュ－ 以下ブログよりコピペ */
    #bento-btn {
        display: block;
        width: 44px;
        height: 44px;
        position: fixed;
        right: 20px;
        top: 20px;
        transition: .3s;
        z-index: 1000;
        background-color: var(--base_color);

        @media(width <=600px) {
            /* containerに重なったらBGCをcontainerと同じにする */
            background-color: var(--base_color2);
        }

        &::after {
            position: absolute;
            content: '';
            width: 8px;
            height: 8px;
            background: #333;
            display: block;
            left: calc(50% - 4px);
            top: calc(50% - 4px);
            box-shadow: -12px 0 0 #333, 12px 0 0 #333, -12px -12px 0 #333, 0 -12px 0 #333, 12px -12px 0 #333, -12px 12px 0 #333, 0 12px 0 #333, 12px 12px 0 #333;

        }

        &::before {
            position: absolute;
            content: '';
            height: 20px;
            width: 3px;
            left: 21px;
            top: 12px;
            background: #ffffff;
            opacity: 0;
        }

        &.is-active {
            background: #333;
            border-radius: 22px;
            transform: rotate(45deg);

            &::before {
                opacity: 1;
            }

            &::after {
                box-shadow: none;
                width: 20px;
                height: 3px;
                left: 13px;
                top: 21px;
                background: #fff;
            }
        }
    }

    footer {
        background-color: var(--txt-color);
        color: #fff;
        text-align: center;
        padding: 20px 0;
    }

    /* SP用パーツ */
    /* 960px以下で左側ヘッダーが隠れるので、イベントタイトル・タグラインをコンテナに移植 */
    .sp-header {
        display: block;

        >h1 {
            font-size: 36px;
            letter-spacing: 0.03em;
            color: var(--main_color);
            font-family: var(--font_en);
            text-align: center;
            margin-bottom: 10px;
        }

        .tag-line {
            font-family: var(--font_ja);
            margin-bottom: 20px;
            text-align: center;
            font-weight: bold;
        }
    }

    /* --------- */
    /* spナビ */
    /* --------- */
    #sp-nav {
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.5);
        /* 半透明の白背景 */
        backdrop-filter: blur(10px);
        /* 10pxのぼかし */
        -webkit-backdrop-filter: blur(10px);
        /* Safari・iOS用 */
        position: fixed;
        top: 0;
        left: 0;
        z-index: 900;
        padding: 20% 20px 0;

        /* アニメーション */
        opacity: 0;
        transition: all 0.5s ease-in-out, display 0.5s allow-discrete;

        /* 開始の状態 */
        &.is-active {
            display: block;
            opacity: 1;

            @starting-style {
                opacity: 0;
            }
        }
    }

    li {
        font-size: 30px;

        >a {
            font-size: 30px;
            font-family: var(--font_en);
            color: var(--txt-color);
            border-bottom: 1px solid var(--txt-color);
            padding: 4px;
        }
    }
}

/* ------------- */
/* 個別記事ページ */
/* ------------- */
.individual-post {
    padding: 50px 20px;

    >h3 {
        margin-bottom: 30px;
    }

    .individual-date {
        text-align: right;
        margin-bottom: 30px;
        border-bottom: 1px solid #333;
        padding-bottom: 10px;
    }

    .post-text {
        line-height: 1.75;
    }
}

.to-top {
    display: block;
    width: 200px;
    padding: 20px 0;
    text-align: center;
    border: 2px solid var(--main_color);
    margin: 40px auto;
    background-color: var(--main_color);
    color: #fff;
    border-radius: var(--radius);
}