@charset "UTF-8";

/* ==========================================================================
   特設ページ用スタイル
   ========================================================================== */

/* 詳細ページ
   ========================================================================== */
.p-special-detail {
  padding: 6rem 0 8rem;
}
@media screen and (max-width: 767px) {
  .p-special-detail {
    padding: 6rem 0 6rem;
  }
}

.p-special-detail-inner {
  margin-inline: auto;
}

.p-special-detail-header h1 {
  padding: 1rem 0;
  font-size: 2.4rem;
  font-weight: 500;
  line-height: 1.5;
  border-bottom: 1px solid var(--color-gray);
}
@media screen and (min-width: 768px) {
  .p-special-detail-header h1 {
    padding: 2rem 0 1rem;
    font-size: 3.6rem;
  }
}

/* コンテンツエリア（Gutenbergブロック対応）
   ========================================================================== */
.p-special-detail-contents {
  margin: 2rem 0 0;
  font-weight: 400;
}
@media screen and (min-width: 768px) {
  .p-special-detail-contents {
    margin: 4rem 0 0;
  }
}

/* ブロック間の余白 */
.p-special-detail-contents > * + * {
  margin-top: 2rem;
}
@media screen and (min-width: 768px) {
  .p-special-detail-contents > * + * {
    margin-top: 4rem;
  }
}

/* 見出しブロック */
.p-special-detail-contents h2 {
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.5;
  padding: 0 0 0.5rem;
  border-bottom: 2px solid var(--color-green);
}
@media screen and (min-width: 768px) {
  .p-special-detail-contents h2 {
    font-size: 2.8rem;
  }
}

.p-special-detail-contents h3 {
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1.5;
  padding-left: 1rem;
  border-left: 3px solid var(--color-green);
}
@media screen and (min-width: 768px) {
  .p-special-detail-contents h3 {
    font-size: 2.2rem;
  }
}

.p-special-detail-contents h4 {
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.5;
}
@media screen and (min-width: 768px) {
  .p-special-detail-contents h4 {
    font-size: 1.8rem;
  }
}

/* 段落ブロック */
.p-special-detail-contents p {
  font-size: 1.4rem;
  line-height: 1.75;
}
@media screen and (min-width: 768px) {
  .p-special-detail-contents p {
    font-size: 1.6rem;
  }
}

/* リストブロック */
.p-special-detail-contents ul,
.p-special-detail-contents ol {
  padding-left: 2rem;
}

.p-special-detail-contents ul {
  list-style: disc;
}

.p-special-detail-contents ol {
  list-style: decimal;
}

.p-special-detail-contents li {
  font-size: 1.4rem;
  line-height: 1.75;
}
@media screen and (min-width: 768px) {
  .p-special-detail-contents li {
    font-size: 1.6rem;
  }
}

.p-special-detail-contents li + li {
  margin-top: 0.5rem;
}

/* 画像ブロック */
.p-special-detail-contents figure {
  width: 100%;
}

.p-special-detail-contents figure img {
  width: 100%;
  height: auto;
}

.p-special-detail-contents figure figcaption {
  margin-top: 0.5rem;
  font-size: 1.2rem;
  color: var(--color-gray2);
}
@media screen and (min-width: 768px) {
  .p-special-detail-contents figure figcaption {
    font-size: 1.4rem;
  }
}

/* カラムブロック */
.p-special-detail-contents .wp-block-columns {
  display: grid;
  gap: 2rem;
}
@media screen and (min-width: 768px) {
  .p-special-detail-contents .wp-block-columns {
    display: flex;
    gap: 3rem;
  }
}

.p-special-detail-contents .wp-block-column {
  flex: 1;
}

/* テーブルブロック */
.p-special-detail-contents table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.4rem;
}
@media screen and (min-width: 768px) {
  .p-special-detail-contents table {
    font-size: 1.6rem;
  }
}

.p-special-detail-contents th,
.p-special-detail-contents td {
  padding: 1rem 1.5rem;
  border: 1px solid var(--color-gray);
  line-height: 1.5;
}

.p-special-detail-contents th {
  background-color: var(--color-green);
  color: var(--color-white);
  font-weight: 500;
  text-align: left;
}

.p-special-detail-contents tbody tr:nth-child(even) td {
  background-color: var(--color-gray-light);
}

.p-special-detail-contents tbody tr:nth-child(odd) td {
  background-color: var(--color-white);
}

/* 引用ブロック */
.p-special-detail-contents blockquote {
  padding: 2rem;
  border-left: 4px solid var(--color-green);
  background-color: var(--color-gray-light);
}

.p-special-detail-contents blockquote p {
  font-size: 1.4rem;
}
@media screen and (min-width: 768px) {
  .p-special-detail-contents blockquote p {
    font-size: 1.6rem;
  }
}

/* 区切りブロック */
.p-special-detail-contents hr {
  border: none;
  border-top: 1px solid var(--color-gray);
  margin: 3rem 0;
}
@media screen and (min-width: 768px) {
  .p-special-detail-contents hr {
    margin: 4rem 0;
  }
}

/* ボタンブロック */
.p-special-detail-contents .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 3rem;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--color-white);
  background-color: var(--color-green);
  border: 1px solid var(--color-green);
  border-radius: 0.4rem;
  transition: opacity 0.3s;
}
@media screen and (min-width: 768px) {
  .p-special-detail-contents .wp-block-button__link {
    font-size: 1.6rem;
  }
}
@media (any-hover: hover) {
  .p-special-detail-contents .wp-block-button__link:hover {
    opacity: 0.8;
  }
}

/* グループブロック */
.p-special-detail-contents .wp-block-group {
  padding: 2rem;
}
@media screen and (min-width: 768px) {
  .p-special-detail-contents .wp-block-group {
    padding: 3rem;
  }
}

/* 動画ブロック */
.p-special-detail-contents .wp-block-embed {
  position: relative;
  width: 100%;
  /* padding-bottom: 56.25%;
  height: 0; */
  aspect-ratio:16/9;
  overflow: hidden;
}

.p-special-detail-contents .wp-block-embed__wrapper {
  width:100%;
  height:100%;
}

.p-special-detail-contents .wp-block-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
