body {
  font-family: "Noto Sans JP", serif;
}
.container {
  display: flex;
  height: 100%;
  /* ビューポートの高さ */
}

.zen-maru-gothic-regular {
  font-family: "Zen Maru Gothic", serif;
  font-weight: bold;
  font-style: normal;
}

.noto-sans-jp {
  font-family: "Noto Sans JP", serif;
  font-optical-sizing: auto;
  font-weight: weight;
  font-style: normal;
}

.material-icons {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  padding: 16px;
}

main {
  padding: 0 24px;
}

h1 {
  font-size: 24px;
}

h2 {
  font-size: 20px;
}

h3 {
  font-size: 18px;
  text-align: center;
  color: #1a1a1a;
}

.inner-button-content {
  padding: 0 56px;
}

.left,
.right {
  width: calc((100% - 480px) / 2);
  background-color: var(--main-color);
  padding: 0 20px;
  position: fixed;
  top: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/** 左側 */
.left {
  left: 0;
  /* 左側に固定 */
  background-image: url("img/background-left.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  flex-direction: column;
  align-items: center;
}

.alkoo-logo {
  width: 180px;
}

.alkoo-logo:hover {
  cursor: pointer;
}

.alkoo-logo#header-logo {
  padding: 20px;
}

.menu-list {
  font-family: "Zen Maru Gothic", serif;
  color: #00615D;
  font-size: 18px;
  margin-top: 20px;
  font-weight: 500;
  text-align: center;
}

/* 基本スタイル */
.menu-list li {
  position: relative; /* アンダーラインを配置するために必要 */
  margin-top: 20px;
  margin-bottom: 20px;
  cursor: pointer;
}

.menu-list li::after {
  content: "";
  position: absolute;
  bottom: -2px; /* 文字の真下に配置 */
  left: 0;
  width: 0; /* 初期状態では幅0 */
  height: 2px; /* アンダーラインの太さ */
  background-color: #00615D; /* アンダーラインの色 */
  transition: width 0.5s ease;
  /* アニメーションの設定 */
}

/* ホバー時にアンダーラインが左から右に広がる */
.menu-list li:hover::after,
.menu-list li.active::after {
  width: 100%; /* ホバー時にアンダーラインが全幅に広がる */
}

/* ホバー時の文字色変更 */
.menu-list li:hover,
.menu-list li.active {
  color: #00615D;
  cursor: pointer;
}

.right {
  background-image: url("./img/background-right.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  right: 0;
}

.houjin-button {
  font-size: 16px;
  display: block;
  text-align: center;
  vertical-align: middle;
  text-decoration: none;
  margin: auto;
  margin-top: 24px;
  margin-bottom: 24px;
  padding: 1rem 4rem;
  font-weight: sbold;
  border: 2px solid #00615D;
  color: #00615D;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  border-radius: 8px;
  font-weight: bold;
  background: rgba(255, 255, 255, 0.8); /* 白の半透明背景 */
}

.houjin-button::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: #00615D;
  color: #71d7d3;
  transform: translateX(-100%);
  transition: all 0.3s;
  z-index: -1;
}

.houjin-button:hover::before {
  transform: translateX(0);
  color: #FFFFFF;
}

.houjin-button:hover {
  color: #FFFFFF;
}

.nav#houjin {
  justify-content: center;
  text-align: center;
  align-items: center;
}

.download-button#center-houjin-button {
  margin-top: 0px;
}

.navigation {
  display: flex;
  flex-direction: column; /* 子要素を縦に並べる */
  align-items: center; /* 子要素を横方向に中央揃え */
  justify-content: center; /* 子要素を縦方向に中央揃え */
  text-align: center; /* テキストの中央揃え（オプション） */
}

span {
  display: inline-block;
}

.dl-text-right {
    font-family: "Zen Maru Gothic", serif;
    font-size: 18px;
    color: #FFF;
    font-weight: 500;
    position: relative;
    display: inline-block;
    width: 70%;
    margin: 0 5% .5rem;
    padding: .75rem 1rem;
    font-size: 1rem;
    line-height: 1.4;
    word-break: auto-phrase;
    border-radius: .5rem;
    text-align: center;
    font-weight: bold;
    background: #00615D;
}

.dl-text-right:before {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -1rem;
    border-width: .625rem;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0) rgba(0, 0, 0, 0) rgba(0, 0, 0, 0) rgba(0, 0, 0, 0);
    border-top-color: #FFFFFF;
}

.dl-text-right:after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -1rem;
    border-width: .625rem;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0) rgba(0, 0, 0, 0) rgba(0, 0, 0, 0) rgba(0, 0, 0, 0);
    border-top-color: #00615D;
}

.center {
  position: relative;
  flex-grow: 1;
  height: 100%;
  max-width: 480px;
  background-color: #ffffff;
  z-index: 2;
}

.sp-header {
  position: fixed;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%; /* 横幅を100%に */
  box-shadow: 0px 2px 10px 0px gray;
  z-index: 100;
}

.top-area {
  display: grid;
  place-items: center;
}

.top-header {
  position: relative;
}

.top-area {
  position: relative;
}

.top-image-area {
  position: relative;
}

.top-image {
  width: 100%; /* 画像が親要素に合わせてサイズ調整されます */
  height: auto;
}

.arukou-text {
  color: #f6953d;
}

button {
  display: flex;
  gap: 8px;
  padding: 12px 40px;
  text-align: center;
  font-family: "Noto Sans JP", serif;
  font-weight: 700;
  justify-content: center;
  align-items: center;
  border-radius: 50px;
}

button .material-icons {
  padding: 0;
}

.download-button {
  width: calc(100% - 200px);
  background-color: #f6953d;
  color: #ffffff;
  margin-top: 20px;
}

.download-button:hover {
  opacity: 0.8;
}

.users-voice-button {
  height: 40px;
  width: calc(100% - 24px);
  padding: 8px 0 8px;
  background-color: #f6953d;
  text-align: center;
  font-family: "Noto Sans JP", serif;
  font-weight: 700;
  border-radius: 40px;
  color: #ffffff;
  margin-top: 20px;
  margin-bottom: 20px;
  margin: auto;
  width: 100%;
}

.users-voice-button:hover {
  opacity: 0.8;
}

.top-text-download {
  display: flex;
  align-items: center;
  flex-flow: column;
  width: 100%;
  margin: auto;
  padding: 10px 0;
}

.green-button {
  width: calc(100% - 80px);
  margin: 0 auto;
  border: #00cc56 1px solid;
  background: white;
  color: #00cc56;
}

.gd-button {
  width: calc(100% - 80px);
  margin: 0 auto;
  border: rgb(192, 0, 20) 1px solid;
  background: white;
  color: rgb(192, 0, 20);
}

.story-section {
  text-align: center;
  display: flex;
  flex-flow: column;
  align-items: center;
  font-family: "Zen Maru Gothic", serif;
  font-weight: 700;
  line-height: 2;
}

.triangle-icon {
  font-size: 16px;
  transition: transform 0.5s ease;
}

.triangle-icon.rotated {
  transform: rotate(180deg);
}

.story-content {
  transition: all 0.5s ease;
  overflow: hidden;
  opacity: 1;
  width: 100%;
  font-size: 18px;
}

.story-content.hidden {
  opacity: 0;
  max-height: 0;
  padding: 0;
  margin: 0;
}

.story-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px;
  width: calc(100%);
  gap: 20px;
  padding-top: 40px;
}

.story-inner img {
  width: 100%;
  padding: 0;
}

.hot-background {
  background-color: #feebe7;
}

.hot-gradation {
  background: linear-gradient(180deg, #feebe7 0%, #f3f4f9 100%);
}

.cool-gradation {
  background: linear-gradient(180deg, #f3f4f9 0%, #e3f2fc 100%);
}

.cool-background {
  background-color: #e3f2fc;
}

.cool-to-white-gradation {
  padding-top: 16px;
  padding-bottom: 40px;
  background: linear-gradient(180deg, #e3f2fc 0%, #ffffff 100%);
}

.header-title {
  font-family: "Zen Maru Gothic", serif;
  text-align: center;
  line-height: 2;
  margin: 16px 0;
}

.article-title {
  font-family: "Zen Maru Gothic", serif;
  text-align: center;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
  position: relative;
  display: inline-block;
  width: 100%;
}

.article-title::after {
  content: '';
  position: absolute;
  bottom: -16px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #00cc56, #00cc56);
  border-radius: 2px;
}

.how-to-title {
  font-family: "Zen Maru Gothic", serif;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* アコーディオンスタイル */
.how-to-section {
  border: 1px #929292 solid;
  border-radius: 8px;
  padding: 8px 16px;
  margin: 8px 0 0;
}

.accordion-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  transition: color 0.3s ease;
}

.accordion-toggle:hover {
  color: #00cc56;
}

.accordion-icon {
  display: block;
  transition: transform 0.3s ease;
  font-size: 20px;
  padding: 0;
}

.accordion-toggle.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.accordion-content.show {
  max-height: 2000px;
  transition: max-height 0.5s ease-in;
}

.explanation {
  font-family: "Noto Sans JP", serif;
  text-align: left;
  color: #1a1a1a;
  font-size: 14px;
}

.other-list {
  margin: auto;
  text-align: left;
  display: flex;
  flex-flow: column;
  gap: 8px;
}

.other-list li {
  align-items: center;
  display: flex;
  vertical-align: middle; /* アイコンとテキストを縦方向で中央揃え */
  padding-left: 20px;
  gap: 8px;
  color: #1a1a1a;
}

.nav#another {
  background-color: #e7fef2;
  padding: 36px;
}

.nav#premium {
  background-color: #fefbf1;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  padding: 8px;
}

.alkoo-more-fun {
  font-family: "Zen Maru Gothic", serif;
  font-size: 24px;
  text-align: center;
  margin-top: 24px;
  margin-bottom: 16px;
  font-weight: 700;
  color: #1a1a1a;
}

.alkoo-premium-logo {
  padding: 0 80px 16px;
}

.premium-text {
  font-family: "Noto Sans JP", serif;
  padding-bottom: 16px;
}

.screenshot-premium {
  padding: 0 50px 20px;
}

.button-premium {
  height: 40px;
  width: calc(100% - 24px);
  padding: 8px 0 8px;
  background-color: #e5b943;
  text-align: center;
  font-family: "Noto Sans JP", serif;
  font-weight: 700;
  border-radius: 40px;
  color: #ffffff;
  margin-bottom: 20px;
  /* margin: auto; */
  width: 100%;
}

.button-premium:hover {
  opacity: 0.8;
}

.explanation#premium {
  margin: 20px 0;
  margin-bottom: 0px;
  text-align: center;
}

.screenshot {
  display: flex;
  justify-content: center;
  margin: auto;
  width: auto;
}

.qr-code {
  width: 50%;
  max-width: 360px;
  margin: 16px;
  border-radius: 24px;
  border: 1px solid #58E9FF;
}

.flex-store {
  display: flex;
  justify-content: center;
}

.users-voice-title {
  font-family: "Zen Maru Gothic", serif;
  font-size: 24px;
  text-align: center;
  margin-top: 24px;
  margin-bottom: 12px;
  font-weight: 700;
  color: #1a1a1a;
}

.users-voice {
  font-weight: 700;
  color: #1a1a1a;
}

.swiper-item {
  border-radius: 8px;
  min-height: 160px;
  margin-top: 8px;
  height: auto;
  font-size: 16px;
  line-height: 1.5;
  display: flex; /* Flexbox を使用 */
  align-items: center; /* 縦方向に中央揃え */
  justify-content: center; /* 横方向に中央揃え */
  text-align: center; /* テキストを中央揃えに */
  width: 100%;
}

.swiper {
  padding: 0 16px;
}

.swiper-pagination {
  margin-bottom: 0;
}

.dl-area-right {
  position: relative;
  padding-left: 8px;
  max-width: 100%;
  max-height: max-content;
  text-align: center;
  flex-flow: column;
    display: flex;
    justify-content: center;
  align-items: center;
}

.other-contents {
  padding: 0 16px;
}

.other-contents .nav {
  padding-bottom: 0;
}

.appstore {
  height: 44px;
  cursor: pointer;
}

.playstore {
  height: 44px;
  cursor: pointer;
}

.flex-store {
  display: flex;
  gap: 10px; /* 画像の間隔 */
  flex-wrap: wrap; /* 画面幅が狭い場合に画像を折り返し */
}

.link {
  padding-left: 24px;
  margin: 16px 0;
}

.link-text {
  line-height: 2.4; /* 行間を広げる */
  font-size: 14px;
  color: #007aff;
}

.link-text:hover {
  color: #469fff;
}

.fab {
  position: fixed;
  bottom: 80px;
  right: 16px;
  background-color: #ffffff; /* 背景色 */
  border-radius: 50%; /* 丸い形にする */
  padding: 16px;
  display: block;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* 少し影をつけて浮き上がらせる */
  border: 1px solid #00c965;
  opacity: 0;
  transform: translateY(20px); /* 初期位置を下にずらす */
  transition: opacity 0.5s ease, transform 0.5s ease;
  z-index: 5;
}

.fab.visible {
  opacity: 1;
  transform: translateY(0); /* 元の位置に戻す */
}

.fab img {
  width: 16px; /* 画像のサイズ */
  height: 16px;
}

.copyright {
  background-color: #f4f4f4;
  text-align: center;
  padding: 20px;
}

footer {
  display: flex; /* 初期状態では非表示 */
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 0 0.5rem;
  background-color: #f4f4f4;
  color: black;
  text-align: left;
  align-items: center;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(20px); /* 初期位置を下にずらす */
  transition: opacity 0.5s ease, transform 0.5s ease;
  z-index: 1;
}

footer.visible {
  opacity: 1;
  transform: translateY(0); /* 元の位置に戻す */
}

footer .app-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-right: 0.5rem;
}

.footer-title {
  font-weight: bold;
  margin-bottom: 0.25rem;
}

.footer-text {
  line-height: 1.5rem;
  font-size: 0.75rem;
}

footer button {
  background-color: #00c965;
  color: white;
  flex: 1;
  margin: 1rem;
  padding: 8px;
  border-radius: 8px;
  text-align: center;
  font-weight: bold;
}

#close-footer {
  margin-bottom: auto;
  overflow: hidden;
  width: 0.5rem;
  height: 0.5rem;
  text-indent: 100%;
  white-space: nowrap;
  cursor: pointer;
}

#close-footer:before {
  content: "";
  display: block;
  position: absolute;
  top: 1.5rem;
  right: 0.5rem;
  width: 1rem;
  height: 2px;
  background-color: #757575;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

#close-footer:after {
  content: "";
  display: block;
  position: absolute;
  top: 1.5rem;
  right: 0.5rem;
  width: 1rem;
  height: 2px;
  background-color: #757575;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}

#sp-menu {
  display: flex;
  flex-flow: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  transform: translateY(-100%);
  transition: transform 0.5s ease;
  background: white;
  position: fixed;
  width: 100%;
  height: 100vh;
  top: 0;
  left: 0;
  z-index: 10;
}

#sp-menu.visible {
  transform: translateY(0);
}

section {
  margin: 16px 0 48px;
  display: flex;
  flex-flow: column;
  justify-content: center;
  gap: 16px;
}

.fadein {
  transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition-duration: 1.5s;
  transition-property: opacity, transform;
  transform: translate3d(0, 50px, 0);
  animation-delay: 1.5s;
  opacity: 0;
}

.fadein.visible {
  transform: translate3d(0, 0, 0);
  opacity: 1;
}

.contents-image :hover {
  opacity: 0.7;
}

.greatkun-area {
  width: 100%;
  position: absolute;
  bottom: 40px;
  left: 0;
}

.greatkun-move {
  display: block;
  position: relative;
  bottom: 0;
  left: 0;
  width: 280px;
  height: 120px;
}


.greatkun-hat {
  display: block;
  position: absolute;
  left: 86px;
  top: 18px;
  z-index: 1; /* 後ろに配置 */
}

.greatkun-walking {
  position: relative;
  z-index: 2; /* 前面に配置 */
}

.left .greatkun-move {
  animation: move-left 50s linear infinite;
}

.right .greatkun-move {
  animation: move-right 50s linear infinite;
}

.qa {
  border-bottom: 1px #e3e3e3 solid;
}

.question {
  display: flex;
  font-weight: 500;
  padding: 16px 0;
  width: 100%;
  align-items: center;
  justify-content: space-between;
}

.question:hover {
  cursor: pointer;
  color: #00cc56;
}

.answer {
  display: none;
  margin-bottom: 1rem;
}

.faq .expand {
  display: block;
  margin: 0;
  padding: 0;
}

.text-animation {
  overflow: hidden;
  transform: translate(-100%, 0);
  transition: transform cubic-bezier(0.215, 0.61, 0.355, 1) 1.5s;
  animation-delay: 2s;
}

.text-animation.visible {
  transform: translate(0, 0);
}

.text-animation-reverse {
  display: block;
  transform: translate(100%, 0);
  transition: transform cubic-bezier(0.215, 0.61, 0.355, 1) 1.5s;
  animation-delay: 2s;
}

.text-animation.visible, .text-animation-reverse.visible {
  transform: translate(0, 0);
}

.tv-broadcast-list {
  display: flex;
  flex-flow: column;
  gap: 8px;
}

.tv-broadcast-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tv-broadcast-list .broadcast-date {
  font-size: 10px;
  color: #929292;
}

.tv-broadcast-list .tv-title {
  font-size: 14px;
}

.cooling-shelter-data {
    margin-top: 16px;
}

.cooling-shelter-data ul a {
    font-size: 12px;
}

/* TV放映実績の年ごとアコーディオンスタイル */
.tv-year-section {
  border: 1px #929292 solid;
  border-radius: 8px;
  margin: 8px 0;
}

.tv-year-header {
  font-family: "Zen Maru Gothic", serif;
  font-weight: 700;
  font-size: 16px;
  color: #1a1a1a;
  padding: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.3s ease;
}

.tv-year-header:hover {
  color: #00cc56;
}

.tv-year-header .accordion-icon {
  display: block;
  transition: transform 0.3s ease;
  font-size: 20px;
  padding: 0;
}

.tv-year-header.active .accordion-icon {
  transform: rotate(180deg);
}

.tv-year-section .tv-broadcast-list {
  padding: 0 16px 16px 16px;
}

/* 既存のtv-broadcast-listスタイル */

@keyframes move-left {
  0% {
    left: -300px; /* 画面左外からスタート */
  }
  45% {
    left: 100%; /* 画面右外に移動 */
  }
  100% {
    left: 100%; /* 画面右外に移動 */
  }
}

@keyframes move-right {
  0% {
    left: -300px;
  }
  50% {
    left: -300px; /* 画面左外からスタート */
  }
  95% {
    left: 100%; /* 画面右外に移動 */
  }
  100% {
    left: 100%; /* 画面右外に移動 */
  }
}

@media (min-width: 481px) {
  main {
    padding: 0 36px;
  }

  footer,
  #sp-menu,
  #splash {
    display: none;
    /* PC版では非表示 */
  }

  .story-inner img {
    width: 100%;
    padding: 0 36px;
  }

  .sp-header {
    display: none;
  }

  .center {
    margin: 0 calc((100% - 480px) / 2);
    box-shadow: 0px 0px 30px 0px rgba(100, 107, 133, 0.30);
  }

  .fab {
    right: calc((100% - 480px) / 2 + 20px);
  }

  .area-name:hover {
    color: var(--black-link-hover);
  }
}

@media (max-width: 480px) {
  .left,
  .right {
    display: none;
    /* スマートフォンでは左右を隠す */
  }

  .menu-list {
    color: #00615D;
  }

  .top-area {
    position: relative;
    margin-top: 76px;
  }

  .major-function {
    margin: 1rem 1rem;
    gap: 1rem 0.5rem;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  .center {
    width: 100%;
    /* 中央部分を100%に */
  }

  .copyright {
    padding: 1rem 1rem 6rem;
  }

  .top-area {
    overflow: hidden;
    /* はみ出る部分を隠す */
  }
}

/** QRが見えにくくなるのでブレイクポイント */
@media (max-width: 840px) {
  .left,
  .right {
    display: none; /* スマートフォンでは左右を隠す */
  }

  .center {
    width: 100%; /* 中央部分を100%に */
    max-width: 840px;
    margin: 0;
  }

  .fab {
    right: 20px;
  }

  #splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: white;
    z-index: 9999;
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 64px 128px;
    transition: opacity 2s ease;
  }

  #splash div {
    display: flex;
    justify-content: center;
  }

  #splash img {
    display: block;
  }

  .splash-logo {
    margin-bottom: 48px;
    width: 75%;
  }

  .splash-gif {
    width: 33%;
  }

  #splash.fade-out {
    opacity: 0;
    pointer-events: none;
  }

  .inner-button-content {
    padding: 0 24px;
  }

  .download-button {
    width: calc(100% - 128px);
  }
}

/** ストアアイコンが見えにくくなるのでブレイクポイント */
@media (max-width: 1200px) {
  .flex-store {
    flex-flow: column;
    align-items: center;
  }

  .appstore,
  .playstore {
    max-height: none;
  }
}
