/* ロゴとメインコピー */
.first_view {
  position: relative;
  padding: 3em 0 4em 0;
  text-align: center;
  .main_logo {
    width: 4.5em;
    margin: auto;
    /* -webkit-filter: brightness(0) invert(1);
    filter: brightness(0) invert(1); */
  }
  .main_copy {
    padding: 4em 0 2em 0;
    .main_copy_image img {
      width: 7em;
      margin: 0 auto 1em;
    }
    .main_copy_text {
      font-weight: 500;
      font-size: 1.0625em;
      font-family: var(--serif);
    }
  }
  .main_logo img,
  .main_copy img {
    -webkit-filter: brightness(1) invert(0);
    filter: brightness(1) invert(0);
    transition: 1s;
  }
  .container {
    position: relative;
    z-index: 2;
  }
  .first_view_bg {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    transition: 1s;
    & img {
      width: 100%;
    }
  }
}
@media (max-width: 739px) {
  .first_view {
    min-height: 100vh;
    background-color: rgba(255, 255, 255, 1);
    color:var(--base-color);
    transition: 2s;
  }
  .first_view.loaded {
    background-color: rgba(255, 255, 255, 0);
    color:#fff;
    .first_view_bg {
      opacity: 0;
    }
    .main_logo img,
    .main_copy img {
      -webkit-filter: brightness(0) invert(1);
      filter: brightness(0) invert(1);
      transition: 2s;
    }
  }
}
@media (min-width: 740px) {
  .first_view {
    background-color: rgba(255, 255, 255, 1);
  }
}
@media (min-width: 960px) {
  .first_view {
    position: relative;
    .main_copy {
      display: flex;
      flex-direction: row-reverse;
      justify-content: center;
      gap: 2em;
      .main_copy_text {
        writing-mode: vertical-rl;
        font-feature-settings: normal;
        text-align: left;
        line-height: 1.8;
        font-size: 1.0625em;
      }
    }
    .bg_img {
      top: -6em;
    }
  }
}
/* コンセプト */
.consept {
  background: #fdedea;
  padding: 5em 0 10em;
  position: relative;
  overflow: hidden;
  & .container {
    width: 100%;
    position: relative;
    z-index: 3;
  }
  & h2 {
    padding: 0 0 2em 0;
    width: 82%;
    margin: auto;
  }
  .consept_text {
    background-color: #fff;
    padding: 2em;
    & h3 {
      font-size: 2.125em;
      line-height: 1.5;
      padding: 0 0 0.75em 0;
      font-family: var(--serif);
      white-space: nowrap;
    }
  }
  .consept_block_1 {
    padding: 0 0 4em 10%;
  }
  .consept_block_2 {
    padding: 0 10% 0 0;
  }
  .bg_image_1,
  .bg_image_2 {
    position: absolute;
    width: 75%;
    mix-blend-mode: multiply;
  }
  .bg_image_1 {
    position: absolute;
    top: -1em;
    left: 0;
    z-index: 1;
  }
  .bg_image_2 {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 1;
  }
}
@media (min-width: 740px) {
  .consept {
    & .consept_text {
      padding: 2em 2.5em;
      & h3 {
        font-size: 2.125em;
        line-height: 1.6;
      }
    }
    .bg_image_1,
    .bg_image_2 {
      width: 60%;
    }
    .bg_image_1 {
      top: 0.5em;
    }
  }
}
/* 豆説明 */
.beans {
  padding: 5em 0;
  background-color: #e2d6ce;
  & h2 {
    padding: 0 0 2em 0;
  }
  & h2 + p {
    font-size: 1.187em;
    text-align: center;
    margin: 0 0 0.5em 0;
    font-weight: 500;
    line-height: 1.8;
  }
  .roast_step {
    background: #fff;
    padding: 1.5em 1.2em;
    margin: 2.5em 0;
    & ol {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      column-gap: 5px;
      row-gap: 1em;
      text-align: center;
      .roast_step_num {
        line-height: 1;
        font-weight: 600;
        font-size: 1.5em;
        color: #6d3521;
      }
      & p {
        font-size: 0.72em;
        line-height: 1.4;
        font-weight: 700;
        letter-spacing: 0;
      }
    }
  }
  .roast_graph {
    padding: 2.5em 0;
  }
  .onlineshop_link a {
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-thickness: 2px;
    font-weight: 500;
  }
  .onlineshop_link > p {
    margin: 0 0 1em 0;
  }
  .notice1 {
    font-size: 1.125em;
  }
  .notice2 {
    font-size: 0.95em;
  }
  .shop_select_title {
    margin: 3.5em auto 0 auto;
    text-align: center;
    & h3 {
      font-size: 1.5em;
      font-weight: 700;
    }
    & img {
      width: 3.5em;
      transform: translateY(-0.5em);
    }
  }
  .shop_select_title > div {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    margin: 0 0 0 -0.5em;
  }
  .shop_select {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5em;
    text-align: center;
    margin: 1.5em 0 0 0;
    font-size: 0.875em;
    & a {
      display: block;
    }
    & a > div {
      background-color: #fff;
      margin: 0 0 0.5em 0;
    }
    .shop_select_rakuten img {
      width: 80%;
      margin: auto;
    }
  }
}
@media (min-width: 740px) {
  .roast_step_image img {
    width: 84%;
    margin: auto;
  }
  .beans {
    .order_info {
      text-align: center;
    }
    .shop_select {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 1em;
      .shop_select_rakuten img {
        width: 100%;
        margin: auto;
      }
      & a > div {
        background-color: #fff;
        padding: 0.75em 0;
      }
    }
  }
}
/* コラム */
.column {
  padding: 3.5em 0 5em 0;
  background-color: #fff;
  & h2 {
    padding: 0 0 2em 0;
  }
  .column_title_image {
    margin: 0 auto 2em auto;
    max-width: 400px;
  }
  & p.asterisk {
    margin: 1em 0 0 0;
  }
  .column_list ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 1em;
    row-gap: 2.5em;
    padding: 3em 0 0 0;
    & a {
      display: block;
    }
    & h3 {
      font-size: 1.0625em;
      line-height: 1.5;
      padding: 0.75em 0 0.5em;
      font-weight: 500;
    }
    & p {
      font-size: 0.85em;
      opacity: 0.8;
      line-height: 1.8;
      overflow: hidden;
      display: -webkit-box;
      text-overflow: ellipsis;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 3;
      line-clamp: 3;
    }
    .column_list_date {
      font-family: var(--font-serif);
      font-size: 0.85em;
      padding: 0.75em 0 0 0;
    }
  }
  .backnumber a {
    display: block;
    text-align: center;
    padding: 1em;
    border: 1px solid;
    margin: 2.5em 0 0 0;
  }
  .backnumber a span::after {
    content: "";
    display: inline-block;
    width: 1em;
    height: 1em;
    background: url(../images/icon_link_blank.svg) no-repeat;
    background-size: cover;
    opacity: 0.7;
    margin: 0 0 0 0.5em;
    transform: translateY(0.1em);
  }
}
.shopinfo {
  background-color: #fff;
  .container {
    padding: 5em 0 2.5em;
  }
  & address,
  .open_time,
  .telfax {
    text-align: center;
  }
  & address {
    margin: 2em 0 1em;
  }
  & address a {
    display: block;
    font-weight: 500;
    margin: 0.5em 0 0 0;
  }
  & address a i {
    display: inline-block;
    padding-right: 0.5em;
  }
  & address a i svg {
    fill: #6d3521;
  }
  & address a span {
    text-decoration: underline;
    text-underline-offset: 5px;
  }
  .telfax {
    & dt {
      font-weight: 500;
    }
    & dd {
      font-size: 2.25em;
      line-height: 1.2;
    }
  }
  .open_time {
    margin: 2em 0 1em;
    & h3 {
      font-weight: 500;
    }
    & table {
      margin: 1em auto 0.5em;
      border-collapse: collapse;
      border-top: 1px solid rgba(71, 39, 28, 0.3);
      & th {
        font-weight: normal;
      }
      & th,
      & td {
        border-bottom: 1px solid rgba(71, 39, 28, 0.3);
        padding: 0.5em;
      }
      & td {
        font-weight: 500;
      }
    }
    & p {
      font-size: 0.9em;
    }
  }
  .payment {
    text-align: center;
    margin: 0 0 2em 0;
    padding: 0.5em 0;
    border: 2px solid;
    line-height: 1.6;
  }
  .shop_outside {
    margin: 0 0 1.5em 0;
    position: relative;
  }
  .shop_outside::after {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border: 1px solid rgba(71, 39, 28, 0.1);
  }
}
/* google map表示 */
.mapWrapper {
  position: relative;
  background-color: #eee;
}
.mapWrapper::before {
  content: "";
  display: block;
  padding-top: calc(1 / 1 * 100%);
}
.mapWrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
}
.contact {
  & a {
    background-color: #f8c9d0;
    padding: 3.5em 0;
    display: block;
  }
  & h2 {
    font-size: 1.75em;
    margin: 0 0 0.75em 0;
  }
  & p {
    font-size: 0.875em;
  }
  .container {
    display: flex;
    gap: 1em;
    align-items: center;
  }
  .contact_text {
    flex: 1;
  }
  .contact_icon {
    width: 80px;
  }
  .link_circle {
    position: relative;
    width: 80px;
    height: 80px;
  }
  .circle1,
  .circle2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 80px;
    height: 80px;
  }
  .circle1 {
    & circle {
      fill: none;
      stroke: #fff;
      stroke-width: 1;
    }
  }
  .circle2 {
    & circle {
      fill: none;
      stroke: #47271c;
      stroke-width: 1;
      stroke-dasharray: 244.92;
      /* 2πr = 2 * π * 98 ≒ 615.75 */
      stroke-dashoffset: 244.92;
      transform: rotate(-90deg);
      /* 描画開始位置を12時に調整 */
      transform-origin: 50% 50%;
      transition: stroke-dashoffset 1s ease-out;
    }
  }
  .circle2:hover circle {
    stroke-dashoffset: 0;
  }
  .yajirushi {
    width: 40px;
    transform: rotate(45deg);
    position: absolute;
    top: calc(50% - 20px);
    left: calc(50% - 20px);
    fill: #fff;
    transition: 0.5s;
  }
}
@media (hover: hover) {
  .contact {
    & a:hover .circle2 circle {
      stroke-dashoffset: 0;
    }
    & a:hover .yajirushi {
      fill: #47271c;
    }
  }
}
/* スライダー設定 */
.splide,
.splide__track,
.splide__list,
.splide__slide {
  width: 100%;
  height: 100vh;
}
.splide {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
}
.splide__slide div {
  width: 100%;
  height: 100%;
  & img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
  }
}
.splide__slide.is-active div,
.splide__slide.is-prev div,
.splide__slide div.is-prev {
  -webkit-animation: scale 8s linear 0s normal both;
  animation: scale 8s linear 0s normal both;
}
.splide__track[aria-live="polite"] .splide__slide div {
  -webkit-animation-play-state: paused;
  animation-play-state: paused;
}
@-webkit-keyframes scale {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.05);
  }
}
@keyframes scale {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.05);
  }
}
