/*
Theme Name: KOCO SQUARE
Theme URI: https://example.com/
Author: Converted from static HTML
Description: Static HTML to WordPress theme conversion (front page + Topics (CPT) + Shop List (CPT) + Privacy Policy page).
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: koco-square
*/

@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Marcellus&display=swap');

.marcellus-regular {
  font-family: "Marcellus", serif;
  font-weight: 400;
  font-style: normal;
}

body {
  font-family: "Marcellus", 'Helvetica Neue', sans-serif;
  background-color: #F0EEE8;
  color: #3e3e3e;
  line-height: 1.6;
  position: relative;
}

a {
  transition: .3s ease opacity;
}
a:hover {
  opacity: .6;
}

#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  background-color: #F0EEE8;
  transition: transform 0.3s ease;
  z-index: 999991;
  width: 100vw;
}


.header-hidden {
  transform: translateY(-100%);
}

.header-logo {
  padding: 10px 20px 0;
}


nav ul {
  display: flex;
  align-items: center;
}

nav li a {
  font-size: 1rem;
  padding: 20px;
  position: relative;
  display: block;
}

nav li:not(.nav-access) a:before {
  content: '・';
}

nav li.nav-access a {
  background-color: #bfb498;
  color: #fff;
}

nav li.nav-sp {
  display: none;
}

nav li.nav-sp button.menu {
  background-color: #2e2e2e;
  padding: 22px 20px;
  height: 60px;
}

main {
  max-width: 1060px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
  position: relative;
}

.article-title {
  color: #bfb498;
  font-size: 50px;
}

.article-subtitle {
  letter-spacing: .3rem;
  font-size: 16px;
  font-family: 'Hiragino Mincho ProN', 'ヒラギノ明朝 ProN', sans-serif;
}

@media (max-width: 768px) {
  .article-title {
    font-size: 40px;
    line-height: 1.4;
  }
  .article-subtitle {
    font-size: 12px;
    line-height: 2;
  }
}

.article-subtitle {
  opacity: 0;
  transform: translateY(0.45em);
  transition: opacity 1s ease, transform 1s cubic-bezier(.22,.61,.36,1);
  transition-delay: var(--subtitle-delay, 0s);
  will-change: opacity, transform;
}

.article-subtitle.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .article-subtitle {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

.article-title .text {
  display: inline-flex;
  align-items: flex-start;
  font-size: 0;
}
.article-title .text .word+.word {
  margin-left: 0.2rem;
}
.article-title .text .word+.word.a,
.article-title .text .word+.word.t {
  margin-left: -0.3rem;
}

.article-title .text .word+.space {
  margin-left: 1.2rem;
}

.article-title .text .word {
  opacity: 0;
  transform: translateY(0.45em);
  transition:
    opacity .55s ease,
    transform .75s cubic-bezier(.22,.61,.36,1),
    filter .6s ease;
  transition-delay: var(--delay, 0s);
  will-change: opacity, transform, filter;
}

.article-title.is-visible .text .word {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .article-title .text .word {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}

@media (max-width: 768px) {
  .article-title .text {
    transform: scale(0.75);
    transform-origin: left bottom;
  }
}

.page-title {
  padding-top: 200px;
  padding-bottom: 130px;
}

.privacypolicy {
  padding-bottom: 170px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.03em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-smooth: always;
}

@media (max-width: 768px) {
  .page-title {
    padding-top: 90px;
    padding-bottom: 70px;
  }
  .privacypolicy {
    padding-bottom: 80px;
  }
}

.privacypolicy b {
  font-weight: bold;
}

.privacypolicy ol {
  list-style-type: disc;
  margin-left: 20px;
}

.index-about {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1500px;
  margin: 0 auto 120px;
}

.index-about-image {
  width: 45vw;
}

.index-about-image img {
  width: 100%;
  height: auto;
}

.index-about-text {
  padding-right: 10vw;
  padding-left: 5vw;
}

.index-about-text-title {
  font-size: 24px;
  line-height: 2;
  letter-spacing: .4rem;
  font-family: 'Hiragino Mincho ProN', 'ヒラギノ明朝 ProN', sans-serif;
  margin-bottom: 2.5rem;
}

.index-about-text-content {
  font-size: 16px;
  line-height: 2.5;
  font-family: 'Hiragino Mincho ProN', 'ヒラギノ明朝 ProN', sans-serif;
  letter-spacing: 0.1rem;
}

.index-about-text-content span {
  font-family: "Marcellus", 'Helvetica Neue', sans-serif;
}

.index-about-text-content .clear-pc {
  display: none;
}

.index-about-text-content .clear-sp {
  display: block;
}

.index-map {
  background: url(./images/location/bg_location.png) no-repeat center center;
  background-size: cover;
  min-height: 700px;
  max-width: 1500px;
  margin: 0 auto;
}
.index-map .page-title {
  padding-top: 60px;
  padding-bottom: 60px;
}
.index-map main {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.index-map-text {
  padding-left: 5vw;
  padding-right: 5vw;
  font-size: 16px;
  line-height: 2.5;
  font-family: 'Hiragino Mincho ProN', 'ヒラギノ明朝 ProN', sans-serif;
  letter-spacing: 0.1rem;
}
.index-map-text span {
  font-family: "Marcellus", 'Helvetica Neue', sans-serif;
}
.index-map-text br.clear-pc {
  display: none;
}

.index-shoplist {
  background: url(./images/shoplist/bg.jpg) no-repeat center center;
  background-size: cover;
  background-attachment: scroll;
  max-width: 1500px;
  margin: 0 auto;
}



.index-shoplist .page-title {
  padding-top: 100px;
  padding-bottom: 100px;
}

@media (max-width: 768px) {
  .index-shoplist .page-title {
    padding-top: 18px;
    padding-bottom: 18px;
  }
}

.index-shoplist .article-title,
.index-shoplist .article-subtitle {
  color: #fff;
} 

.index-shops {
  width: 100%;
  max-width: 860px;
  margin: 120px auto;
}
.index-shops-wrapper {
  width: 100%;
  max-width: 960px;
  margin: 0 auto 40px;
}
.index-shop {
  display: flex;
  background-color: #f9f8f6;
}
.index-shop-detail {
  padding: 30px;
  position: relative;
  width: 60%;
  display: flex;
  flex-direction: column;
  justify-content: end;
}
.index-shop-link-wrap {
  text-align: right;
}
.index-shop-link {
  position: relative;
  display: inline-block;
  margin-top: 25px;
}
.index-shop-link::after {
  content: '';
  background: url(./images/arrow-right.svg) no-repeat center center;
  background-size: contain;
  display: inline-block;
  width: 70px;
  height: 4px;
  margin-left: 10px;
  vertical-align: middle;
}
/*.index-shop-link {
  position: relative;
  display: inline-block;
  margin-top: 30px;
  width: 180px;
  padding-right: 120px;
}
.index-shop-link::after {
  content: '';
  display: block;
  position: absolute;
  width: 6px;
  height: 1px;
  background-color: #3e3e3e;
  transform: rotate(25deg);
  right: 40px;
  top: 12px;
  transition: .3s ease all;
}
.index-shop-link::before {
  content: '';
  display: block;
  width: 70px;
  height: 1px;
  background-color: #3e3e3e;
  position: absolute;
  right: 40px;
  top: 13px;
  transition: .3s ease all;
}
.index-shop-link:hover::after,
.index-shop-link:hover::before {
  right: 20px;
}
.index-shop-link:hover::before {
  width: 90px;
}*/
@media (max-width: 768px) {
  .index-shop-detail {
    padding: 15px 20px;
  }
}

.index-shop-floor {
  font-size: 14px;
  position: absolute;
  left: 10px;
  top: 10px;
}
.index-shop-name {
  font-size: 26px;
}
.index-shop-description {
  font-size: 14px;
  margin-top: 5px;
  font-family: 'Hiragino Mincho ProN', 'ヒラギノ明朝 ProN', sans-serif;
  letter-spacing: 0.05rem;
  line-height: 2;
}
@media (max-width: 768px) {
  .index-shop-name {
    font-size: 24px;
  }
  .index-shop-description {
    line-height: 1.8;
    margin-top: 0;
  }
}
.index-shop-logo {
  position: absolute;
  right: 25px;
  top: 20px;
}
.index-shop-image {
  width: 40%;
}
.index-shop-image-canvas {
  height: 100%;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.index-shop-image-canvas img {
  position: absolute;
  width: 110%;
  height: auto;
  top: -5%;
  left: -5%;
}
.index-shops-ul li:not(:first-child) {
  margin-top: 40px;
}

.index-topics {
  margin-top: 120px;
  margin-bottom: 60px;
}
.index-topics+.page-title {
  padding-top: 150px;
  padding-bottom: 95px;
}
@media (max-width: 768px) {
  .index-topics+.page-title {
    padding-top: 0;
    padding-bottom: 0;
  }
}
.index-topics-wrapper {
  display: flex;
}
.index-topics-wrapper .page-title {
    padding-top: 0;
    padding-bottom: 0;
    margin-top: -17px;
}

.index-topics-link {
  position: relative;
  display: inline-block;
  width: 180px;
}
.index-topics-link::after {
  content: '';
  display: block;
  position: absolute;
  width: 6px;
  height: 1px;
  background-color: #3e3e3e;
  transform: rotate(25deg);
  right: 40px;
  top: 12px;
  transition: .3s ease all;
}
.index-topics-link::before {
  content: '';
  display: block;
  width: 70px;
  height: 1px;
  background-color: #3e3e3e;
  position: absolute;
  right: 40px;
  top: 13px;
  transition: .3s ease all;
}
.index-topics-link:hover::after,
.index-topics-link:hover::before {
  right: 20px;
}
.index-topics-link:hover::before {
  width: 90px;
}
/*.index-topics-link::before {
  content: '';
  background: url(./images/arrow-right.svg) no-repeat center center;
  background-size: contain;
  display: inline-block;
  width: 70px;
  height: 4px;
  margin-left: 10px;
  vertical-align: middle;
  transition: .3s ease all;
}
.index-topics-link:hover::after {
  margin-left: 20px;
}*/

.index-topics-list-wrapper {
  margin-left: auto;
}
.index-topics-list {
  display: flex;
}
.index-topics-list li {
  padding: 0 30px;
  width: calc(100% / 3);
  max-width: 260px;
}
.index-topics-list li:not(:last-child) {
  border-right: 1px solid #BCBCBC;
}
.index-topic {
  display: flex;
  flex-direction: column;
}
.index-topic-category {
  font-size: 12px;
  color: #555;
}
.index-topic-title {
  font-size: 14px;
  margin: 5px 0;
  font-weight: normal;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.index-topic-date {
  font-size: 12px;
  color: #b29e6e;
}
.index-topic-date span {
  display: inline-block;
  margin-left: 5px;
  color: #fc794d;
}
.index-topic-thumbnail {
  width: 100%;
  margin-top: 50px;
  margin-bottom: 10px;
}
.index-topic-link {
  font-size: 12px;
  text-align: right;
  position: relative;
}
.index-topic-link::after {
  content: '';
  background: url(./images/arrow-right-black.svg) no-repeat center center;
  background-size: contain;
  width: 30px;
  height: 4px;
  display: inline-block;
  vertical-align: middle;
}





.loop-wrap {
  display: flex;
  width: 100vw;
  height: 450px;
  overflow: hidden;
  margin-bottom: 60px;
}

.loop-wrap img {
  width: auto;
  height: 100%;
}

.loop-wrap img:first-child {
  animation: loop 70s -35s linear infinite;
}

.loop-wrap img:last-child {
  animation: loop2 70s linear infinite;
}

@keyframes loop {
  0% {
    transform: translateX(100%);
  }
  to {
    transform: translateX(-100%);
  }
}

@keyframes loop2 {
  0% {
    transform: translateX(0);
  }
  to {
    transform: translateX(-200%);
  }
}


/* Responsive */
@media (max-width: 768px) {

.index-about {
  flex-direction: column;
  margin-bottom: 0;
}

.index-about-image {
  width: 100%;
}
.index-about-text {
  width: 100%;
  padding: 40px 30px;
}

.index-about-text-title {
  font-size: 20px;
  letter-spacing: .3rem;
}

.index-about-text-content {
  font-size: 14px;
  letter-spacing: 0.1rem;
}

.index-about-text-content .clear-pc {
  display: block;
}
.index-about-text-content .clear-sp {
  display: none;
}







.index-topics-wrapper {
  display: flex;
  flex-direction: column;
}
.index-topics-wrapper .page-title {
    padding-top: 40px;
    padding-bottom: 40px;
    margin-top: 0;
}

.index-topics-link {
  margin-top: 20px;
  margin-bottom: 40px;
}

.index-topics-list-wrapper {
  margin-left: -30px;
  width: 100vw;
  overflow: scroll;
  padding-bottom: 20px;
}
.index-topics-list li {
  min-width: 260px;
}




.index-map {
  background: url(./images/location/bg_location_sp.png) no-repeat bottom center;
  background-size: contain;
  min-height: 128vw;
  padding-bottom: 55vw;
}
.index-map main {
  flex-direction: column;
}
.index-map-text {
  padding-left: 0;
  padding-right: 0;
  font-size: 14px;
  letter-spacing: 0.1rem;
}
.index-map-text br.clear-pc {
  display: block;
}
.index-map .page-title {
  padding-top: 0;
  padding-bottom: 40px;
}
.index-shops {
  margin: 10px auto;
}
.index-shop {
  flex-direction: column;
}
.index-shop-detail,
.index-shop-image {
  width: 100%;
}
.index-shop-detail {
  height: 190px;
}
.index-shop-logo {
  transform: scale(0.7);
  transform-origin: top right;
}








.loop-wrap {
  height: 200px;
  margin-bottom: 40px;
}
.loop-wrap img:first-child {
  animation: loop 50s -25s linear infinite;
}

.loop-wrap img:last-child {
  animation: loop2 50s linear infinite;
}





















.header-logo img {
  width: 70px;
  height: auto;
}
nav li:not(.nav-access,.nav-sp) {
  display: none;
}

nav li.nav-access a {
  padding: 0;
  font-size: 12px;
  line-height: 60px;
  width: 60px;
  text-align: center;
}

nav li.nav-sp {
  display: block;
}

main {
  padding: 50px 30px;
}
}



.index-kv {
  position: relative;
}
.index-kv-catchcopy {
  color: #fff;
  font-size: 32px;
  font-family: 'Hiragino Mincho ProN', 'ヒラギノ明朝 ProN', sans-serif;
  letter-spacing: 0.3rem;
  position: absolute;
  left: 5vw;
  top: 5vw;
  z-index: 99999;
}

.index-kv-logo {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  z-index: 99999;
  width: 20vw;
  height: auto;
  opacity: 0;
}
.index-kv-logo.animation {
  animation: fadeIn 1.5s normal forwards;
/*  animation-delay: 1250ms;*/
}
.index-kv-scroll {
  background: url(./images/icon-circle.svg) no-repeat center center;
  background-size: contain;
  width: 50px;
  height: 50px;
  position: absolute;
  z-index: 99999;
  left: 5vw;
  bottom: 25px;
}
.index-kv-scroll span {
  display: block;
  width: 1px;
  height: calc(100% + 4px);
  background: linear-gradient(#fc794d 50%, transparent 50%) repeat-y;
  background-size: 2px 10px; /* 点線の太さと長さ */
  animation: moveDashes 0.5s linear infinite;
  position: absolute;
  left: 0;
  right: 0;
  margin: auto;
  top: 20px;
}

@media (max-width: 768px) {
  .index-kv-scroll {
    transform: scale(0.8);
    bottom: 15px;
  }
}

@keyframes moveDashes {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 0 10px;
  }
}

.index-kv-split {
  display: flex;
  min-height: 52vw;
  overflow: hidden;
}
.index-kv-split-cell {
  width: 50%;
  position: relative;
  overflow: hidden;
  height: 100dvh;
}

/*@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}*/
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px); /* 下に20pxからスタート */
  }
  100% {
    opacity: 1;
    transform: translateY(0); /* 元の位置に戻る */
  }
}

@media (max-width: 768px) {
  .index-kv-split {
    display: flex;
    flex-direction: column;
    min-height: initial;
    overflow: hidden;
  }
  .index-kv-split-cell {
    width: 100%;
    height: 50dvh;
  }
  .index-kv-catchcopy {
    font-size: 18px;
    left: 8vw;
    top: 8vw;
  }
  .index-kv-logo {
    width: 50vw;
    transform: translateY(4vw);
  }
  .index-topics {
    margin-top: 0;
  }
}


.sp-menu {
  position: fixed;
  left: 0;
  top: 0;
  background-color: #2e2e2e;
  width: 100vw;
  height: 100dvh;
  padding: 30px;
  z-index: 999991;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sp-menu > *:not(button, a) {
  margin-left: 20px;
}

.sp-menu .info-col {
  padding-left: 0;
  margin-top: 10px;
}

.sp-menu .nav-block {
  margin-bottom: 0;
}

.sp-menu .nav-block h4 {
  font-size: 24px;
  margin-bottom: 0;
}

.sp-menu .nav-block a {
  font-size: 12px;
}

.sp-menu .nav-block p {
  position: relative;
}

.sp-menu .nav-block p::before {
  content: '-';
  margin-right: 5px;
}

.sp-menu .nav-block:nth-child(3) {
  margin-top: 40px;
}

.sp-menu button.menu {
  position: absolute;
  right: 0;
  top: 0;
  background-color: #2e2e2e;
  padding: 22px 20px;
  height: 60px;
}

/* ベース：非表示。opacity は0へトランジション、visibilityは0sで0.3s遅らせて反映 */
#sp-menu {
  opacity: 0;
  visibility: hidden;
  pointer-events: none; /* 誤タップ防止（追加推奨） */
  transition: opacity .3s ease, visibility 0s linear .3s; /* ← visibilityは遅らせる */
}

/* 表示時：visibilityは即時visible、opacityは1へトランジション */
#sp-menu.fade-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .3s ease, visibility 0s; /* ← 遅延なしで即可視化 */
}

/* AOSがsp-menuに効いてしまう場合の衝突回避（sp-menuに data-aos を付けないのが本筋）
   もし付いてしまう場合は以下で上書き */
#sp-menu[data-aos="fade"] { opacity: 0 !important; }
#sp-menu[data-aos="fade"].aos-animate { opacity: 1 !important; }


article {
  position: relative;
}
.access-anchor {
  position: absolute;
  top: -160px;
}

@-webkit-keyframes main {
    0% {
        opacity: 0;
        -webkit-transform: scale(1);
        transform: scale(1);
    }

    10% {
        opacity: 1;
    }

    26% {
        opacity: 1;
    }

    34% {
        opacity: 0;
    }

    100% {
        opacity: 0;
        -webkit-transform: scale(1.2);
        transform: scale(1.2);
    }
}

@keyframes main {
    0% {
        opacity: 0;
        -webkit-transform: scale(1);
        transform: scale(1);
    }

    10% {
        opacity: 1;
    }

    26% {
        opacity: 1;
    }

    34% {
        opacity: 0;
    }

    100% {
        opacity: 0;
        -webkit-transform: scale(1.2);
        transform: scale(1.2);
    }
}


@-webkit-keyframes firstImageAnimation {
    0% {
        opacity: 1;
        -webkit-transform: scale(1);
        transform: scale(1);
    }

    26% {
        opacity: 1;
    }

    34% {
        
    }

    100% {
        -webkit-transform: scale(1.2);
        transform: scale(1.2);
        opacity: 0;
    }
}

@keyframes firstImageAnimation {
    0% {
        opacity: 1;
        -webkit-transform: scale(1);
        transform: scale(1);
    }

    26% {
        opacity: 1;
    }

    34% {
        
    }

    100% {
        -webkit-transform: scale(1.2);
        transform: scale(1.2);
        opacity: 0;
    }
}


#fv .img {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    background-position: center center;
    background-size: cover;
    overflow: hidden;
    /* 1枚目の画像に特別なアニメーションを適用 */
}

#fv .img img {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    background-position: center center;
    background-size: cover;
    opacity: 0;
    --animation-duration: 20s;
    /* 6枚のためにアニメーション時間を倍に */
    --animation-delay-base: calc(var(--animation-duration) / 5);
    -webkit-animation: main var(--animation-duration) linear 0s infinite;
    animation: main var(--animation-duration) linear 0s infinite;
    animation-play-state: paused;
}

#fv .img img.is-active {
  animation-play-state: running; /* ← クラスが付いたら再生 */
}

#fv .img:nth-child(1) img {
    opacity: 1;
    /* 初期状態で表示 */
    -webkit-animation: firstImageAnimation var(--animation-duration) linear infinite;
    animation: firstImageAnimation var(--animation-duration) linear infinite;
}

#fv .img:nth-child(2) img {
    -webkit-animation-delay: calc(var(--animation-delay-base));
    animation-delay: calc(var(--animation-delay-base));
}

#fv .img:nth-child(3) img {
    -webkit-animation-delay: calc(2 * var(--animation-delay-base));
    animation-delay: calc(2 * var(--animation-delay-base));
}

#fv .img:nth-child(4) img {
    -webkit-animation-delay: calc(3 * var(--animation-delay-base));
    animation-delay: calc(3 * var(--animation-delay-base));
}

#fv .img:nth-child(5) img {
    -webkit-animation-delay: calc(4 * var(--animation-delay-base));
    animation-delay: calc(4 * var(--animation-delay-base));
}

#fv .img:nth-child(6) img {
    -webkit-animation-delay: calc(5 * var(--animation-delay-base));
    animation-delay: calc(5 * var(--animation-delay-base));
}

