@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@200..900&display=swap");
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  font-family: "Noto Serif JP", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

/* Utility：safe padding */
.u-safe-padding {
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
.u-safe-bottom-padding {
  padding-bottom: env(safe-area-inset-bottom);
}

#wpadminbar {
  position: fixed !important;
  order: -1;
}

.layout-overlay {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 100%;
  width: auto;
  border: 1px solid #ccc;
}
.layout-overlay > .image {
  width: 100%;
  height: auto;
}
.layout-overlay > .box {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 10px;
  border: 1px solid #000;
}

.l-iconcard > div {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.l-iconcard-icon {
  flex: 0 0 96px;
}

.l-iconcard-text {
  flex: 1 1 auto;
}

.l-iconcard-text > h3 {
  text-align: left;
}

@media only screen and (min-width: 768px) {
  .l-iconcard > div {
    width: 48%;
  }
  .l-iconcard-icon {
    flex: 0 0 128px;
  }

  .l-iconcard-text {
    flex: 1 1 222px;
    max-width: 350px;
  }
}
/* Q&A トグルスタイル */
.qa {
  margin-bottom: 16px;
}

.question {
  cursor: pointer;
  padding: 16px;
  user-select: none;
  background-color: var(--color-lighttone);
  transition: background-color 0.2s ease;
}

/* ホバー効果（タッチデバイス以外） */
@media (hover: hover) {
  .question:hover {
    background-color: var(--color-white);
  }
}

.question > div {
  display: flex;
  align-items: center;
  font-weight: 500;
  color: var(--color-main);
  flex-grow: 1;
  text-align: left;
  /*padding-left: 12px;
  padding-right: 12px;*/
}

/* Q アイコン（疑問マーク） */
.question > div::before {
  content: "";
  background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg"><path fill="%23142037" d="M52.5 31.7c0-12.3-9.5-20.4-20-20.4S11.6 21.6 11.6 32.6s9 20.6 20.2 20.7c4.7 3.3 10.4 7.2 14 8.2 1.9.5 5.4.8 8.3.8l.4-1.5c-4.6-1.7-10-4.9-15.3-8.7 7.8-2.8 13.4-10 13.4-20.3zM18 31c0-11.6 6.3-17.4 13.2-17.4s15 6.9 15 19.9-4.1 15.2-9.4 16.9c-.5-.4-1-.7-1.5-1.1L31 50.8c-7.7-1.2-13.1-9.2-13.1-19.8z"/></svg>')
    no-repeat center;
  background-size: contain;
  width: 24px;
  height: 24px;
  margin-right: 12px;
  flex-shrink: 0;
}

/* トグルアイコン（プラス/マイナス） */
.question > div::after {
  content: "+";
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  color: var(--color-midtone);
  transition: transform 0.3s ease, color 0.2s ease;
  flex-shrink: 0;
  margin-left: auto;
}

/* アクティブ状態のトグルアイコン */
.qa.visible .question > div::after {
  content: "−";
  transform: rotate(180deg);
  color: var(--color-accent);
}

/* Answer部分の初期状態 */
.answer {
  height: 0;
  overflow: hidden;
  transition: height 0.3s ease-in-out;
}

.answer > div {
  display: flex;
  align-items: flex-start;
  padding: 16px;
  color: var(--color-midtone);
  line-height: 1.6;
}

/* A アイコン（チェックマーク） */
.answer > div::before {
  content: "";
  background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg"><path fill="%23dfb055" d="M45.5 44.3c-3.9-10.7-8.2-22.4-12.1-33l-2 .4-12.8 32.5c-2.2 5.6-3.2 6-7 6.5v1.7h14.3v-1.7c-5.1-.6-5.9-1.1-4.6-5.1.9-2.5 1.8-4.9 2.8-7.7h13.4c1.3 3.9 2.5 7 3.3 9.4.9 2.4.4 3-3.6 3.5v1.7h15.3v-1.7c-4.4-.5-4.9-1-6.9-6.4zM25 35.2c1.9-4.9 4-10.5 5.9-15.8l5.6 15.8H24.9z"/></svg>')
    no-repeat center;
  background-size: contain;
  width: 24px;
  height: 24px;
  margin-right: 12px;
  flex-shrink: 0;
}

/* 回答テキスト部分を最大限広げる */
.answer > div > *:not(::before) {
  flex-grow: 1;
  text-align: left;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .question > div::before,
  .answer > div::before {
    width: 20px;
    height: 20px;
    margin-right: 8px;
  }

  .question > div::after {
    width: 20px;
    height: 20px;
    font-size: 16px;
  }
}

/* アスペクト比ユーティリティ */
.aspect-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.aspect-1-1 {
  aspect-ratio: 1 / 1;
}

.aspect-4-3 {
  aspect-ratio: 4 / 3;
}

.aspect-16-9 {
  aspect-ratio: 16 / 9;
}

.aspect-3-2 {
  aspect-ratio: 3 / 2;
}

.aspect-21-9 {
  aspect-ratio: 21 / 9;
}

/* カルーセルメイン */
.l-carousel {
  width: 100%;
}

.l-carousel-main {
  position: relative;
  cursor: pointer;
  background-color: var(--color-lighttone);
}

.l-carousel-main > div {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.l-carousel-main > div.active {
  opacity: 1;
}

.l-carousel-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ナビゲーションボタン */
.l-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--color-main);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
  z-index: 2;
}

.l-gallery-nav:hover {
  background-color: var(--color-white);
  transform: translateY(-50%) scale(1.1);
}

.l-gallery-nav.prev {
  left: 10px;
}

.l-gallery-nav.next {
  right: 10px;
}

.l-gallery-nav::before {
  content: "";
  width: 0;
  height: 0;
  border: 6px solid transparent;
}

.l-carousel-nav.prev::before {
  border-right: 10px solid var(--color-main);
  margin-left: -2px;
}

.l-carousel-nav.next::before {
  border-left: 10px solid var(--color-main);
  margin-right: -2px;
}

/* サムネイル */
.l-carousel-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  padding: 4px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--color-surface) transparent;
}

.l-gallery-thumbs::-webkit-scrollbar {
  height: 4px;
}

.l-gallery-thumbs::-webkit-scrollbar-track {
  background: transparent;
}

.l-carousel-thumbs::-webkit-scrollbar-thumb {
  background: var(--color-surface);
  border-radius: 2px;
}

.l-carousel-thumb {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border: 2px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
}

.l-gallery-thumb:hover {
  border-color: var(--color-midtone);
}

.l-carousel-thumb.active {
  border-color: var(--color-accent);
}

.l-carousel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* レスポンシブサムネイル制御 */
.thumb {
  /* 常にサムネイル表示 */
}

.thumb-pc {
  /* PC時のみサムネイル表示 */
}

@media (max-width: 768px) {
  .thumb-pc {
    display: none;
  }

  .l-carousel-nav {
    width: 40px;
    height: 40px;
  }

  .l-carousel-nav.prev {
    left: 12px;
  }

  .l-carousel-nav.next {
    right: 12px;
  }

  .l-carousel-nav::before {
    border-width: 5px;
  }

  .l-carousel-nav.prev::before {
    border-right-width: 8px;
  }

  .l-carousel-nav.next::before {
    border-left-width: 8px;
  }
}

/* フルスクリーンモーダル */
.l-carousel-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.l-carousel-modal.active {
  opacity: 1;
  visibility: visible;
}

.l-carousel-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.l-carousel-modal img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.l-carousel-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--color-main);
  z-index: 1001;
}

.l-carousel-modal-close::before,
.l-carousel-modal-close::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 2px;
  background-color: var(--color-main);
}

.l-carousel-modal-close::before {
  transform: rotate(45deg);
}

.l-carousel-modal-close::after {
  transform: rotate(-45deg);
}
