:root {
  --content-gutter: 24px;
  --max-width: calc(1920px + calc(var(--content-gutter) * 2));
  --content-max-width: calc(1280px + calc(var(--content-gutter) * 2));
  --single-max-width: calc(680px + calc(var(--content-gutter) * 2));

  --font-section-headline: 'Roboto', sans-serif;
  --font-header: 'Roboto', sans-serif;
  --font-schedule-date: 'Roboto', sans-serif;
  --font-default: 'Roboto', sans-serif;

  --color-link: #7eb0ff;

  color-scheme: light;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-default);
}

main {
  /* background-color: #000;
  color: #fff; */
  overflow-wrap: anywhere;
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 비율 */
  overflow: hidden;
}

.video-wrapper video,
.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* or contain */
}

.rich-text {
  a {
    color: #7eb0ff;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: currentColor;
  }
}

.rich-text p,
.rich-text h1,
.rich-text h2,
.rich-text h3,
.rich-text h4,
.rich-text h5,
.rich-text h6,
.rich-text ul,
.rich-text ol,
.rich-text blockquote {
  margin-bottom: 1.5em;
  line-height: 1.6em;
}

.rich-text p:last-child {
  margin-bottom: 0;
}

/* 리스트 복구 */
.rich-text ul {
  list-style: disc;
  padding-left: 1.5em;
}

.rich-text ol {
  list-style: decimal;
  padding-left: 1.5em;
}

.rich-text li {
  margin-bottom: 0.5em;
}

.rich-text blockquote {
  padding-left: 1em;
  border-left: 4px solid #ccc;
  font-style: italic;
  color: #666;
}

.rich-text .wp-block-separator {
  margin: 20px auto;
  border-bottom: 0;
  height: 1px;
  background-color: #fff;
}

.accordion {
  border: 1px solid #4c4c4c;
  border-radius: 4px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.accordion summary {
  list-style: none;
  position: relative;
  padding: 1rem 3rem 1rem 2rem;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

/* 아이콘 위치 */
.accordion .icon {
  position: absolute;
  top: 50%;
  right: 2rem;
  width: 1em;
  height: 1em;
  transform: translateY(-50%);
}

.accordion .line {
  position: absolute;
  /* leechaemin は #fff で白背景に埋もれて見えなかったため、＋/－ が見えるよう黒に */
  background-color: #000;
  transition: all 0.3s ease;
}

/* 가로선 */
.accordion .horizontal {
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  transform: translateY(-50%);
}

/* 세로선 (기본 +일 때 보임) */
.accordion .vertical {
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
}

/* 열렸을 때 세로선 숨김 → – 로 보임 */
.accordion[open] .vertical {
  opacity: 0;
  transform: scaleY(0);
}

/* PC / SP 出し分け（theme01 の style.css と同じ。theme01 から移植したテンプレートで使用） */
.pc-none {
  display: none !important;
}

.sp-none {
  display: block !important;
}

@media screen and (max-width: 1220px) {
  .pc-none {
    display: block !important;
  }

  .sp-none {
    display: none !important;
  }
}

/*
 * ブロックエディタで書いた本文（GOODS・NEWS 詳細）。
 * 行間・余白をエディタ（editor-style.css）と同じにして、入力したとおりに見えるようにする。
 */
.editor-content {
  p {
    line-height: 1.7;
    margin-bottom: 1.5em;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-weight: bold;
    line-height: 1.6em;
    margin-top: 2em;
    margin-bottom: 1em;
  }

  ul,
  ol {
    padding-left: 1.5em;
    margin-bottom: 1.5em;
    line-height: 1.6em;
  }

  ul {
    list-style: disc;
  }

  ol {
    list-style: decimal;
  }

  li {
    margin-bottom: 0.5em;
  }

  blockquote {
    padding-left: 1em;
    border-left: 4px solid #ccc;
    font-style: italic;
    color: #666;
    margin-bottom: 1.5em;
  }

  .wp-block-image {
    margin: 1.5em 0;
    text-align: center;
  }

  .wp-block-buttons {
    margin-bottom: 1.5em;
  }

  /* .rich-text のリンク色がボタンに付かないように */
  .wp-block-button__link {
    color: #fff;
    text-decoration: none;
  }

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

  > *:first-child {
    margin-top: 0;
  }

  > *:last-child {
    margin-bottom: 0;
  }
}
