@charset "UTF-8";

html {
  overflow-y: scroll;
  font-size: 100%;
}

body {
  background: url(../images/celes/bg.jpg) center center / cover no-repeat fixed;
  color: #432;
  font-family: "BIZ UDPGothic", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  line-height: 1.7;
}

main {
  flex: 1;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  transition: 0.3s ease;
}

a:hover {
  color: #fae196;
}

.wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 4% 0;
}

section {
  margin: 6% 0;
  padding: 1rem 1.5rem 2rem;
  background-color: rgba(255, 255, 255, 0.85);
  border-radius: 10px;
}

.content {
  padding: 0 2%;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

h2:not(.modal-content h2) {
  margin-bottom: 1.5rem;
  border-bottom: 3px solid #6d3922;
  color: #6d3922;
  font-weight: bold;
  font-size: 1.5rem;
  text-align: center;
  line-height: 2;
}

h3:not(.modal-content h3) {
  margin: 2rem 0 0.5rem;
  color: #6d3922;
  font-weight: bold;
  font-size: 1.25rem;
  text-align: center;
}

.grid {
  display: grid;
}


/* Google Fonts 初期値
---------------------------------------- */
.material-symbols-outlined {
  display: inline-block;
  font-style: normal;
  font-weight: normal;
  font-size: 24px;
  line-height: 1;
  font-family: 'Material Symbols Outlined';
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  direction: ltr;
}


/* Swiper
---------------------------------------- */
.swiper-pagination-bullet {
  background-color: #fff;
  opacity: 0.6;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
}

.swiper-pagination-bullet-active {
  background-color: #fff;
  opacity: 1;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.6);
}

.swiper-button-prev::after,
.swiper-button-next::after {
  color: #fff;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.6);
}


/* ヘッダー
---------------------------------------- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99;
  width: 100%;
  height: 48px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  background-color: #5c2e19;
}

header .header-logo {
  flex: 1;
  text-align: center;
}

header .header-logo img {
  width: auto;
  height: 32px;
}

header nav {
  flex: 4;
  width: 100%;
}

header nav ul {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

header nav li {
  flex: 1;
  color: #fff;
  font-weight: bold;
  font-size: 0.875rem;
}


/* キービジュアル
---------------------------------------- */
h1:not(.agecheck-hedding) {
  margin-top: 5%;
}
/* .wrapper > h1 img {
  display: block;
  width: 100%;
  height: 100vh; 
  object-fit: contain;
} */


/* 取扱店
---------------------------------------- */
#shop .grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  justify-items: center;
  gap: 2rem;
}

#shop .grid img {
  max-width: 200px;
  height: auto;
}


/* ニュース
---------------------------------------- */
#news article {
  display: flex;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid #ccc;
}

#news article:first-of-type {
  padding-top: 0;
}

#news article:last-of-type {
  padding-bottom: 0;
  border-bottom: none;
}

#news time {
  flex: 0 0 7rem;
  margin-left: 0.4rem;
  font-weight: bold;
}

#news p {
  flex: 1;
}


/* ストーリー
---------------------------------------- */
#story .story-bg {
  /* background: url(../images/celes/story_bg.jpg) center center / cover no-repeat; */
}

#story article {
  padding: 4% 0;
}

/* #story p {
  color: #f2f2f2;
  text-shadow: 1px 1px #262626, -1px 1px 2px #262626, 1px -1px 2px #262626, -1px -1px 2px #262626, 1px 0 2px #262626, 0 1px 2px #262626, -1px 0 2px #262626, 0 -1px 2px #262626;
} */

#story span {
  font-size: 1.25rem;
  margin: 0 0.5rem;
}

#story .end {
  margin: 0;
  color: #dea713;
}

#story .spacing {
  margin-bottom: 1rem;
}

#story .spacing:last-of-type {
  margin-bottom: 0;
}


/* キャラクター
---------------------------------------- */
#character .character-wrapper:not(:last-of-type) {
  margin-bottom: 10%;
}

#character .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 520px;
}

#character .swiper-slide img {
  width: 100%;
  height: 100%;
  object-position: top;
  object-fit: cover;
}

#character .name {
  margin: 1rem 0 2rem;
  font-weight: bold;
  font-size: 1.5rem;
  text-align: center;
}

#character .row {
  display: flex;
  align-items: center;
  gap: 4rem;
  padding: 1rem 0;
  border-bottom: 1px solid #ccc;
}

#character .row:first-of-type {
  padding-top: 0;
}

#character dt,
#character dd,
#character .profile {
  padding: 0 1rem;
}

#character dt {
  flex: 0 0 6rem;
}

#character dd {
  flex: 1;
}

#character .profile {
  margin-top: 1rem;
}


/* ギャラリー
---------------------------------------- */
#gallery .grid {
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
  gap: 1.5rem;
}

#gallery figure {
  overflow: hidden;
}

#gallery figure img {
  transform: scale(1);
  transition: 0.3s ease;
}

#gallery figure:hover img {
  transform: scale(1.1);
}


/* システム
---------------------------------------- */
#system .grid {
  gap: 1.5rem;
}


/* スペック
---------------------------------------- */
#spec .row {
  margin-bottom: 1rem;
}

#spec .row:last-of-type {
  margin-bottom: 0;
}


/* フッター
---------------------------------------- */
footer {
  margin-top: 6%;
  padding: 1rem 0 0.25rem;
  background-color: #5c2e19;
  color: #fff;
  text-align: center;
}

footer .shop-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

footer .grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  justify-items: center;
  gap: 2rem;
  padding: 3.5rem 4%;
}

footer .grid img {
  max-width: 200px;
  height: auto;
}

footer .footer-logo img {
  width: 96px;
  height: auto;
}

footer small {
  color: #ddd;
}


/* ボタン
---------------------------------------- */
.btn-area {
  padding-bottom: 4rem;
}

.btn-area button {
  display: block;
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
  padding: 0.625rem;
  box-sizing: border-box;
  border: 1px solid #432;
  border-radius: 4px;
  background-color: #fff;
  color: #432;
  text-align: center;
  transition: 0.3s ease;
}

.btn-area button:hover {
  background-color: #ffe;
  color: #432;
}

#back-to-top {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
  background-color: #fae196;
  opacity: 0;
  color: #5c2e19;
  pointer-events: none;
  transition: opacity 0.4s ease, background 0.3s ease;
}

#back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

#back-to-top:hover {
  background-color: #eed06f;
}


/* メディアクエリ
---------------------------------------- */
@media screen and (min-width: 768px) {

  #character .character-wrapper {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }

  #character .swiper {
    flex: 0 0 40%;
  }

  #character .character-info {
    flex: 1;
  }

  #spec .row {
    display: flex;
    gap: 4rem;
    padding: 1rem 0;
  }

  #spec .row:first-of-type {
    padding-top: 0;
  }

  #spec dt {
    flex: 0 0 14rem;
  }

  #spec dd {
    flex: 1;
  }

}