@charset "UTF-8";

/* Theme Name: IKEBUKURO COFFEE FESTIVAL
Author: Mharuka
Description: モバイル特化デザインのサイト制作 */

:root {
  --base_color: #E8E3D8;
  --base_color2: #d6d1c4;
  --main_color: #257C4D;
  --txt-color: #333333;
  --sub-color:#af9177;
  --sub-color2:#e3e862;

  --font_en: "Limelight", sans-serif;
  --font_ja: "Zen Maru Gothic", sans-serif;
}

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;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--base_color);
  color: var(--txt-color);
  display: flex;
  flex-direction: row-reverse;
}

/* PC用ヘッダー */
header {
  width: 45%;
  border: 1px solid var(--txt-color);
  padding: 20px;
  position: fixed;
  top: 120px;
  left: 3%;

  >h1 {
    color: var(--main_color);
    font-size: 36px;
    margin-bottom: 10px;
    font-family: var(--font_en);
  }

  .tag-line {
    margin-bottom: 10px;
    font-size: 18px;
    font-family: var(--font_ja);
  }
}

/* PC用ナビゲーション */
.pc-nav ul {
  display: flex;
  justify-content: center;
  gap: 0 10px;
  height: 50px;
  align-items: center;

  a {
    color: var(--txt-color);
    font-size: 18px;
    padding: 10px 16px;

    &:hover {
      text-decoration: underline 2px solid var(--main_color);
      text-underline-offset: 3px;
    }
  }
}


/* コンテンツ */
.container {
  width: 42%;
  background-color: var(--base_color2);
  margin-right: 3%;
  box-shadow: 0 0 6px #AAA;
}

/* 共通部分 */
.page-section {
  min-height: 90vh;
  padding: 20px;

  >h3 {
    font-family: var(--font_en);
    font-size: 32px;
    text-align: center;
    padding: 50px 0;
  }
}

/* ティッカーアニメーション */
.ticker {
  background-color: var(--txt-color);
  color: #fff;
  overflow-x: hidden;
  padding: 10px 0;

  >p {
    white-space: nowrap;
    animation: ticker 6s linear infinite;
    width: fit-content;
    text-indent: 4em;

    >span {
      margin-left: 4em;
    }
  }
}

@keyframes ticker {
  0% {
    translate: 0 0;
  }

  100% {
    translate: -50% 0;
  }
}

/* メインビジュアル */
.main-visual{
  aspect-ratio: 1/0.8;
  >img{
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* メインコピー部分 */
.main-copy {
  padding: 50px 20px;
  position: relative;
  >h2{
    writing-mode: vertical-rl;
    position: absolute;
    top: -200px;
    right: 30px;
    padding: 8px;
    width: fit-content;
    height: auto;
    background-color: #ffffffc7;
    font-size: clamp(1.25rem, 0.875rem + 1.5vw, 2rem);
    font-family: var(--font_ja); 
    line-height: 1.5;
    >span{
      padding-top: 3em;
    }
  }
  >.lead{
    line-height: 1.8;
    margin-top: 100px;
  }
}

/* おしらせ */
#news>dl{
  font-size: 18px;
  >dt{
    font-weight: bold;
    margin-bottom: 10px;
  }
  >dd{
    margin-bottom: 50px;
    >a{
      color: var(--txt-color);
      &:hover{
        text-decoration: underline 2px solid var(--main_color);
        text-underline-offset: 3px;
      }
    }

  }
}

/* 店舗情報 */
.page-section#shop{
  padding: 10px 0; /* 共通スタイルに上書きする */
}
.shop-lead{
  max-width: 540px;
  margin: 0 auto 40px;
  line-height: 1.8;
}
.shop-wrapper{
  display: flex;
  scroll-snap-type: x mandatory;
  gap: 30px;
  overflow: auto;
  padding: 0 20px 40px;
}
.shop-box{
  flex: 0 0 80%;
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 6px #AAA;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  scroll-margin: 20px;
  >h4{
    margin:10px 0;
  }
}
.shop-img{
  aspect-ratio: 4/3;
  >img{
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* アクセス */
#access>h4{
  font-size: 22px;
  margin-bottom: 10px;
}
.g-map{
aspect-ratio: 3/2;
margin-bottom: 60px;
>iframe{
  width: 100%;
  height: 100%;
}
}

/* ボイス */
.voice-wrapper{
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 50px;
}
.voice-box{
  display: grid;
  gap: 14px;
  color: #fff;
  background-color: var(--sub-color);
  border: 2px solid #fff;
  grid-template-columns: repeat(2, 1fr);
  padding: 10px;
  grid-template-rows: subgrid;
  grid-row: span 4 ;

      /* ios用の修正 */
    @media(width <= 640px){
      grid-template-rows: auto;
      grid-auto-rows: auto;
      align-items: start;
    }
}

.voice-img{
  grid-column: 1/2;
  grid-row: 1/2;
  aspect-ratio: 1/1;
}

.voice-name{
grid-column: 2/3;
grid-row: 1/2;
text-align: center;
place-content: center;
font-weight: bold;
align-self: center;
}

.voice-text{
grid-column:1/3 ;
grid-row:3/4 ;
line-height: 1.8;
padding: 10px;
}

.voice-box>h4{
  grid-column: 1/3;
  grid-row: 2/3;
  font-size: 22px;
  text-align: center;
}
.date{
  grid-column: 2/3;
  grid-row: 4/5;
  text-align: right;
}

/* ギャラリー */
.gallery-wrapper{
  columns: 2;
  column-gap: 20px;
  margin-bottom: 50px;
  >.gallery-box{
    margin-bottom: 20px;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 6px #AAA;
    break-inside: avoid;
  }
  h4{
    font-size: 18px;
    margin-bottom: 10px;
  }
}

time{
  display: block;
  text-align: right;
  margin-bottom: 10px;
}

.gallery-tag>span{
  display: inline-block;
  padding: 6px 10px;
  border-radius: 8px;
  background-color: var(--sub-color);
  color: #fff;
}


[data-category="music"]>.gallery-tag>span{
  background-color: var(--sub-color2);
  color: var(--txt-color);
}


.gallery-tag>span:nth-of-type(2){
  background-color: var(--sub-color2);
  color: var(--txt-color);
  margin-left: 10px;
}

/* フィルタリング部分 */
#all:checked ~ .gallery-wrapper>.gallery-box{
  display: block;
}
#coffee:checked ~ .gallery-wrapper>.gallery-box:not([data-category*="coffee"]){
  display: none;
}
#music:checked ~ .gallery-wrapper>.gallery-box:not([data-category*="music"]){
  display: none;
}

/* *を入れることで部分一致 */

[type="radio"]{
  display: none;
}

/* フィルタリングのボタン */
#gallery label{
  width: 100px;
  display: inline-block;
  padding: 6px 20px;
  border-radius: 8px;
  border: 2px solid var(--main_color);
  text-align: center;
  margin-bottom: 30px;
  margin-right: 10px;
}

#gallery input:checked + label{
  background-color: var(--main_color);
  color: #fff;
}

.gallery-outer{
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

/* .gallery-outer{
  display: grid;
  gap:  0 10px;
  grid-template-areas: ". all coffee music ."
  "gallery-wrapper gallery-wrapper gallery-wrapper gallery-wrapper gallery-wrapper";
} 

[for="all"]{
  grid-area: all;
}
[for="coffee"]{
  grid-area: coffee;
}
[for="music"]{
  grid-area: music;
}
.gallery-wrapper{
  grid-area: gallery-wrapper;
} */

footer{
  background-color: var(--txt-color);
  color: #fff;
  padding: 30px 0;
  text-align: center;

}

/* sp用ナビ */
#ham-btn,#cover,#sp-nav{
  display: none;
}

.sp-banner{
  display: none;
}

/* 900px以下のレイアウト */
@media (width <= 900px){
  header{
    display: none;
  }

  .container{
    width: 80%;
    margin: 0 auto;
  }


  /* ハンバーガーメニュー */
  #ham-btn{
    display: block;
    width: 100px;
    height: 100px;
    background-color: var(--main_color);
    position: fixed;
    top: 0px;
    right: 0px;
    cursor: pointer;
    z-index: calc(infinity);
    clip-path: circle(90% at 100% 0);
    >span{
      display: block;
      width: 40%;
      height: 4px;
      background-color: #fff;
      position: absolute;
      inset: 0;
      top: -40px;
      left: 24px;
      margin: auto;
      border-radius: 5px;
      transition: 0.2s;
      &::after{
        display: block;
        content: "";
        width: 100%;
        height: 4px;
        background-color: #fff;
        position: absolute;
        top: 18px;
        border-radius: 5px;
      }
      }
      &.is-active>span{
        top: -24px;
        rotate: 45deg;
        &::after{
          top: 0;
          rotate: -90deg;
        }
      }
  }

  #cover{
    display: block;
    width: 100px;
    height: 100px;
    position: fixed;
    top: 0;
    right: 0;
    background-color:var(--sub-color);
    z-index: 10;
    clip-path: circle(100% at 100% 0);
    transition: 0.3s;
    &.is-active{
      scale:40;
    }
  }

  #sp-nav{
    width: 100%;
    height: 100vh;
    padding: 140px 40px 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 20;
    li{
      margin: 40px 12px 20px;
    }
    a{
      color: var(--txt-color);
      display: block;
      font-size: 20px;
      border-bottom: 2px solid var(--main_color);
      padding-bottom: 8px;
    }
}
.sp-banner{
  display: block;
  padding: 10px;
}

}

/* 640px以下のレイアウト */
@media (width <= 640px){
  .container{
    width: 100%;
    box-shadow: none;
  }
  .main-copy>.lead{
    margin-top: 50px;
  }
  .gallery-wrapper{
    columns:1;
    .gallery-box{
      margin-bottom: 50px;
    }
  }
}

.page-section#single-post{  
  >h3{
    font-size: 28px;
    font-family: var(--font_ja);
    line-height: 1.5;
  }
  >a{
    display: block;
    width: 220px;
    background-color: var(--main_color);
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    text-align: center;
    margin: 50px auto;
    &:hover{
      opacity: 0.8;
    }
  }
}
.post-date{
  font-weight: 700;
  margin-bottom: 20px;
}
.post-content{
   line-height: 2.5;
}