:root {
  --color-black: #000;
  --color-black33: #333;
  --color-white: #fff;
  --color-white-alfa: #ffffff4d;
  --color-light-gray: #f7f7fb;
  --color-gray: #d9d9d9;
  --color-dark-gray: #999;
  --color-light-blue: #a8c1ed;
  --color-dot-gray: #b6b6b6;
  --color-button-background-gray: #e4e8ed;
  --color-button-text-gray: #b1b7ba;
  --color-orange: #f81;
  --color-orange-text: #ff831c;
  --color-blue-text: #0071b2;
  --color-deep-blue-text: #0062a1;
  --color-brown-text: #9c2401;
  --color-green: #2e9511;
  --color-brown: #79430030;
  --color-dark-brown: #945b0040;
}

html {
  min-width: 375px;
  max-width: 500px;
  margin: 0 auto;
}

body {
  font-family: 'Noto Sans JP', serif;
  line-height: 1.2;
  letter-spacing: 0.02em;
  background-color: var(--color-white);
}

.header {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  background-color: var(--color-light-blue);
}

.header-title {
  font-size: 18px;
  font-weight: 700;
}

.chat-section-wrapper {
  min-height: 100vh;
  padding: 0 70px 40px 12px;
  background-color: var(--color-light-blue);
}

#chat-list-start {
  padding-top: 40px;
}

.chat-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 0.75rem;
}

.chat-list-item {
  display: flex;
  gap: 8px;
}

.chat-message-container {
  flex-grow: 1;
  width: 100%;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.75;
}

.chat-message-flame {
  padding: 6px 12px;
  background-color: var(--color-white);
  border-radius: 0 20px 20px;
}

.chat-dot-flame {
  display: flex;
  gap: 4px;
  height: 100%;
  padding: 10px;
  padding: 6px 12px;
  background-color: var(--color-white);
  border-radius: 0 20px 20px;
}

.chat-dot {
  width: 4px;
  height: 4px;
  margin: auto;
  background-color: var(--color-dot-gray);
  border-radius: 50%;
  animation: chat-dot-animation 1s infinite;
}

.chat-dot:nth-child(1) {
  animation-delay: 0s;
}

.chat-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.chat-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes chat-dot-animation {
  0% {
    opacity: 0;
    transform: translate(0, 0);
  }

  25% {
    opacity: 1;
    transform: translate(0, -15px);
  }

  50%,
  75% {
    opacity: 1;
    transform: translate(0, 0);
  }

  100% {
    opacity: 0;
    transform: translate(0, 15px);
  }
}

.chat-message {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-black);
}

.chat-question-flame {
  border-radius: 12px;
}

.chat-question-header {
  padding: 8px;
  color: var(--color-white);
  text-align: center;
  background-color: var(--color-orange);
  border-radius: 12px 12px 0 0;
}

.chat-question-header-title {
  font-size: 18px;
  font-weight: 700;
}

.chat-question-body {
  padding: 12px;
  background-color: var(--color-white);
  border-radius: 0 0 12px 12px;
}

.chat-question-button-area {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 10px;
}

.chat-question-button {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-white);
  text-align: left;
  background-color: var(--color-orange);
  border: none;
  border-radius: 4px;
}

.chat-question-button:disabled {
  color: var(--color-button-text-gray);
  background-color: var(--color-button-background-gray);
}

.lead-section-container {
  position: relative;
}

.lead-image {
  position: absolute;
  z-index: 1;
  width: 100%;
  height: auto;
}

.result-section-container {
  display: grid;
  grid-template-columns: 1fr;
}

.result-section-container-item {
  grid-row: 1 / -1;
  grid-column: 1 / -1;
  width: 100%;
  height: auto;
}

.result-image-fade-container {
  position: relative;
  margin: auto auto 58%;
  box-shadow: 0 0 12px 0 var(--color-dark-brown);
}

.result-image-fade-container-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: result-fade-animation 15s infinite linear;
}

.result-image-fade-item:first-child {
  animation-delay: 0s;
}

.result-image-fade-item:nth-child(2) {
  animation-delay: 5s;
}

.result-image-fade-item:last-child {
  animation-delay: 10s;
}

@keyframes result-fade-animation {
  0% {
    opacity: 0;
  }

  6% {
    opacity: 1;
  }

  40% {
    opacity: 1;
  }

  46% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

.result-image-fade {
  width: 91%;
  height: auto;
  margin: auto;
}

.what-section-container {
  display: grid;
  grid-template-columns: 1fr;
}

.what-section-container-item {
  grid-row: 1 / -1;
  grid-column: 1 / -1;
  width: 100%;
  height: auto;
}

.what-header {
  color: var(--color-white);
  text-align: center;
}

.what-header-title {
  font-size: 26px;
  font-weight: 700;
}

.what-explanation {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 500;
}

.what-detail {
  width: 89%;
  margin: auto auto 10%;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-align: justify;
}

.what-detail-lolve {
  color: var(--color-orange-text);
}

.what-detail-pilatesk {
  color: var(--color-blue-text);
}

.what-detail-radysgym {
  color: var(--color-brown-text);
}

.what-detail-surffit {
  color: var(--color-deep-blue-text);
}

.program-section-container {
  padding-bottom: 42px;
  background-color: var(--color-white);
}

.program-arrow-container {
  position: relative;
}

.program-arrow {
  margin: clamp(9.5rem, -7.938rem + 74.4vw, 15.313rem) -1% 0;
  background: none !important; /* splide デフォルト背景なしに変更 */
  box-shadow: 0 4px 8px 0 var(--color-brown);
  opacity: 1 !important; /* splide デフォルトの透過なしに変更 */
}

.program-image {
  width: 90%;
  height: auto;
  margin: auto;
}

.program-card-list-item {
  padding: 0 5px 10px;
}

.program-card-list-item-container {
  height: 100%;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px 0 var(--color-brown);
}

.program-card-image-container {
  position: relative;
}

.program-card-image {
  display: block;
  width: 100%;
  height: auto;
  margin: auto;
}

.program-beginner-image {
  position: absolute;
  right: 4px;
  bottom: 4px;
}

.program-title {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 500;
}

.program-summary {
  margin-top: 3px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  text-align: justify;
}

.program-lesson-arrow-container {
  position: relative;
}

.program-lesson-arrow {
  margin: 22% -1%;
  background-color: transparent;
}

.program-lesson-card-title-container {
  width: 100%;
  margin-top: 32px;
  overflow: hidden;
}

.program-lesson-card-title {
  font-size: clamp(3.1rem, -0.05rem + 13.44vw, 4.15rem);
  font-weight: 400;
  color: var(--color-black33);
  text-align: center;
  white-space: nowrap;
  transform: translateX(-3%);
}

.program-lesson-card {
  margin: -4% auto auto;
}

.program-lesson-card-list {
  color: var(--color-black33);
}

.program-lesson-image {
  width: 100%;
  height: auto;
}

.program-lesson-text-wrapper {
  margin-top: 10px;
}

.program-lesson-title {
  font-size: 22px;
  font-weight: 700;
}

.program-lesson-summary {
  margin-top: 4px;
  font-size: 16px;
  font-weight: 500;
}

.program-lesson-list {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 400;
}

.detail-section-wrapper {
  position: relative;
  background: linear-gradient(180deg, #ff9239 0%, #ffe992 80%, #fff 100%);
}

.detail-image-container {
  position: relative;
  width: 100%;
  height: auto;
}

.detail-image {
  position: absolute;
  width: 100%;
  height: auto;
  margin-top: -25px;
}

.detail-image-decoration {
  position: absolute;
  top: clamp(110px, 30vw, 150px);
  right: clamp(25px, 6vw, 30px);
  width: clamp(32px, 9vw, 45px);
  height: auto;
  transform-origin: left;
  animation: rotate 2.5s infinite;
}

.detail-image-decoration-piratesk {
  top: clamp(105px, 29vw, 145px);
  right: clamp(42px, 11vw, 55px);
}

@keyframes rotate {
  0% {
    transform: rotateY(90deg);
  }

  25% {
    transform: rotateY(0deg);
  }

  100% {
    transform: rotateY(0deg);
  }
}

.detail-section-content {
  position: relative;
  padding-top: 68%;
}

.detail-rental-card {
  width: 89%;
  height: auto;
  margin: auto;
  color: var(--color-black33);
  background-color: var(--color-white);
  border-radius: 8px;
}

.detail-rental-card-container {
  padding: 20px 0;
}

.detail-rental-title {
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

.detail-rental-content {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
}

.detail-rental {
  margin-left: 16px;
  font-size: 14px;
  font-weight: 500;
}

.detail-rental-list {
  margin-left: 10px;
  font-size: 12px;
  font-weight: 500;
}

.detail-rental-list-item {
  position: relative;
  margin: 3px 0;
}

.detail-rental-list-item::before {
  position: absolute;
  top: 50%;
  left: -10px;
  font-size: 4px;
  content: '●';
  transform: translateY(-50%);
}

.detail-shop-card {
  width: 89%;
  margin: 40px auto auto;
  background-color: var(--color-light-gray);
  border-radius: 8px;
}

.detail-shop-header {
  display: flex;
  height: 56px;
  color: var(--color-white);
  background-color: var(--color-black33);
  border-radius: 8px 8px 0 0;
}

.detail-shop-name-container {
  display: grid;
  place-items: center start;
  width: calc(100% - 56px);
  margin-left: 10px;
  font-weight: 400;
}

.detail-shop-name {
  font-size: 20px;
}

.detail-shop-name-ruby {
  margin-left: 4px;
  font-size: 10px;
}

.detail-shop-category-container {
  display: grid;
  place-items: center;
  width: 56px;
  background: linear-gradient(90deg, #ff7718 0%, #ff852f 100%);
  border-radius: 0 8px 0 0;
}

.detail-shop-category {
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.detail-shop-image {
  width: 100%;
  height: auto;
}

.detail-shop-body {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-black33);
}

.detail-shop-row-first {
  display: flex;
}

.detail-shop-row {
  display: flex;
  border-top: 1px solid var(--color-gray);
}

.detail-shop-row-header {
  display: grid;
  place-items: center;
  width: 72px;
}

.detail-shop-row-data {
  width: calc(100% - 72px);
  padding: 0 10px;
  margin: 20px 0;
  border-left: 1px solid var(--color-gray);
}

.detail-shop-row-explanation {
  line-height: 1.7;
}

.detail-shop-row-small {
  font-size: 10px;
}

.detail-shop-row-small-light {
  font-size: 10px;
  font-weight: 400;
}

.detail-banner {
  width: 89%;
  height: auto;
  margin: 20px auto auto;
}

.detail-banner-image {
  width: 100%;
  height: auto;
}

.detail-button-area {
  padding-bottom: 80px;
  margin: 40px auto auto;
}

.detail-button-text-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.detail-button-text-icon {
  margin-top: 12px;
}

.detail-button-search {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-black33);
  text-align: center;
}

.detail-button-campaign {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-green);
}

.detail-button-image {
  width: 76%;
  height: auto;
  margin: auto;
}

.fixed-button-container {
  position: fixed;
  bottom: 0%;
  z-index: 99;
  width: 100%;
  max-width: 500px;
  padding: 10px 0;
  background-color: var(--color-white-alfa);
  backdrop-filter: blur(8px);
}

.hidden {
  display: none;
}

footer {
  padding-bottom: 25px;
  color: var(--color-dark-gray);
  text-align: center;
  background-color: var(--color-white);
  border-top: 1px solid var(--color-gray);
}

.link-list {
  padding: 25px 20px;
  font-size: 12px;
  font-weight: 400;
}

.link-list-item {
  position: relative;
  display: inline;
  padding: 0 25px;
}

.link-list-item:not(:first-child)::before {
  position: absolute;
  top: 50%;
  left: -5px;
  content: '|';
  transform: translateY(-50%);
}

.link {
  text-decoration: none;
}

.link:link,
.link:visited,
.link:hover,
.link:active {
  color: var(--color-dark-gray);
}

.copy-right {
  font-size: 10px;
  font-weight: 500;
}

.moreover-item{
  position: relative;
  img{
    width: 100%;
  }
  .moreover-link{
    position: absolute;
    bottom: 5.5%;
    left: 0;
    right: 0;
    img{
      width: 76%;
    }
  }
}
