/* ==========================================================================
   下層ページ共通スタイル
   ========================================================================== */

/* 下層ページMV
   ========================================================================== */
.p-subpage-mv {
  position: relative;
  height: 30vh;
  min-height: 30rem;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: -8rem;
  background-color: var(--color-primary);
}

/* 3階層目ページMV（白背景バージョン） */
.p-subpage-mv--white {
  background-color: var(--color-white);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.p-subpage-mv--white .p-subpage-mv__content {
  color: var(--color-primary);
}

.p-subpage-mv--white .p-subpage-mv__title {
  text-shadow: none;
  padding-left: 0;
  border-left: 5px solid var(--color-accent);
  padding-left: 2rem;
}

.p-subpage-mv--white .p-subpage-mv__title::before {
  display: none;
}

.p-subpage-mv__subtitle {
  font-size: 1.8rem;
  opacity: 0.8;
  margin-top: 0.5rem;
  font-weight: 500;
}

.p-subpage-mv--white .p-subpage-mv__subtitle {
  color: var(--color-gray);
}

@media screen and (max-width: 767px) {
  .p-subpage-mv {
    height: 20vh;
    min-height: 20rem;
    margin-top: 0;
  }

  .p-subpage-mv__subtitle {
    font-size: 1.5rem;
  }
}

.p-subpage-mv__content {
  position: relative;
  z-index: 1;
  color: var(--color-white);
  padding: 8rem 0 4rem;
  animation: fadeIn 1s ease-out forwards;
}

@media screen and (max-width: 767px) {
  .p-subpage-mv__content {
    padding-top: 5rem;
  }
}

.p-subpage-mv__title {
  font-size: 4.2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 2rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  position: relative;
  padding-left: 2rem;
}

.p-subpage-mv__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 0.6rem;
  background-color: var(--color-secondary);
  border-radius: 0.3rem;
}

@media screen and (max-width: 767px) {
  .p-subpage-mv__title {
    font-size: 3rem;
    padding-left: 1.5rem;
  }
}

/* パンくずリスト
   ========================================================================== */
.c-breadcrumb {
  padding: 1.5rem 0;
  background-color: #f5f5f5;
}

.c-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  font-size: 1.3rem;
}

.c-breadcrumb__item {
  position: relative;
  padding-right: 2rem;
  margin-right: 1rem;
}

.c-breadcrumb__item:not(:last-child)::after {
  content: "›";
  position: absolute;
  right: 0;
  color: var(--color-gray);
}

.c-breadcrumb__link {
  color: var(--color-primary);
  transition: opacity 0.3s;
}

.c-breadcrumb__link:hover {
  opacity: 0.7;
}

.c-breadcrumb__text {
  color: var(--color-gray);
}

/* 下層ページコンテンツエリア
   ========================================================================== */
.p-subpage-content {
  padding: 5rem 0 8rem;
}

@media screen and (max-width: 767px) {
  .p-subpage-content {
    padding: 3rem 0 6rem;
  }
}

@media screen and (max-width: 767px) {
  .p-subpage-content .l-container {
    width: 100%;
  }
}

.p-subpage-content__inner {
  background-color: var(--color-white);
  border-radius: 1rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  padding: 4rem;
}

@media screen and (max-width: 767px) {
  .p-subpage-content__inner {
    padding: 1rem;
  }
}

/* ボランティア募集ページ
   ========================================================================== */
.p-subpage__intro {
  margin-bottom: 4rem;
  font-size: 1.6rem;
  line-height: 1.8;
}

.p-subpage__section {
  margin-bottom: 5rem;
}

.p-subpage__heading {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(0, 104, 183, 0.2);
}

.p-subpage__heading::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 8rem;
  height: 2px;
  background-color: var(--color-primary);
}

.p-subpage__content-box {
  background-color: #f9f9f9;
  border-radius: 1rem;
  padding: 2.5rem;
  margin-top: 2rem;
}

@media screen and (max-width: 767px) {
  .p-subpage__content-box {
    padding: 1.5rem;
  }
}

.p-subpage__content-box p {
  margin-bottom: 3rem;
}

.p-subpage__subheading {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.p-subpage__subheading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 0.4rem;
  background-color: var(--color-accent);
  border-radius: 0.2rem;
}

.p-subpage__list {
  list-style-type: disc;
  padding-left: 2rem;
  margin-bottom: 2rem;
}

.p-subpage__list li {
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

.p-subpage__list li:last-child {
  margin-bottom: 0;
}

.p-subpage__note {
  font-size: 1.4rem;
  color: var(--color-gray);
  margin-top: 1rem;
  padding-left: 1.5rem;
  position: relative;
}

.p-subpage__note::before {
  content: "※";
  position: absolute;
  left: 0;
}

.p-subpage__schedule-list {
  margin-bottom: 2rem;
}

.p-subpage__schedule-list li {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.p-subpage__schedule-title {
  font-weight: 600;
  margin-right: 2rem;
  min-width: 28rem;
}

.p-subpage__schedule-title a {
  color: var(--color-primary);
  text-decoration: underline;
  transition: opacity 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.p-subpage__schedule-title a:hover {
  text-decoration: none;
}

.p-subpage__pdf-icon {
  display: flex;
  align-items: center;
  color: var(--color-primary);
}

.p-subpage__pdf-icon svg {
  width: 1.6rem;
  height: 1.6rem;
}

@media screen and (max-width: 767px) {
  .p-subpage__schedule-title {
    min-width: 100%;
    margin-bottom: 0.5rem;
  }
}

.p-subpage__schedule-detail {
  color: var(--color-gray);
}

.p-subpage__detail-list {
  margin-bottom: 2rem;
}

.p-subpage__detail-item {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 1.5rem 0;
}

.p-subpage__detail-item:first-child {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.p-subpage__detail-term {
  font-weight: 600;
  width: 20rem;
}

@media screen and (max-width: 767px) {
  .p-subpage__detail-term {
    width: 100%;
    margin-bottom: 0.5rem;
  }
}

.p-subpage__detail-desc {
  flex: 1;
}

.p-subpage__info {
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--color-gray);
}

.p-subpage__caution-list {
  list-style-type: decimal;
  padding-left: 2.5rem;
}

.p-subpage__caution-list li {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.p-subpage__caution-list li:last-child {
  margin-bottom: 0;
}

.p-subpage__btn-container {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.c-btn--sm {
  min-width: 160px;
  font-size: 1.4rem;
  padding: 0.8rem 1.5rem;
}

/* 文字サイズ変更対応 */
.font-size-small .p-subpage-mv__title {
  font-size: 3.6rem;
}

.font-size-small .p-subpage__intro,
.font-size-small .p-subpage p {
  font-size: 1.4rem;
}

.font-size-small .p-subpage__heading {
  font-size: 2.1rem;
}

.font-size-small .p-subpage__subheading {
  font-size: 1.6rem;
}

.font-size-small .p-subpage__note {
  font-size: 1.2rem;
}

.font-size-large .p-subpage-mv__title {
  font-size: 4.8rem;
}

.font-size-large .p-subpage__intro,
.font-size-large .p-subpage p {
  font-size: 1.8rem;
}

.font-size-large .p-subpage__heading {
  font-size: 2.7rem;
}

.font-size-large .p-subpage__subheading {
  font-size: 2rem;
}

.font-size-large .p-subpage__note {
  font-size: 1.6rem;
}

/* レスポンシブ調整 */
@media screen and (max-width: 767px) {
  .p-subpage__heading {
    font-size: 2rem;
  }

  .p-subpage__intro,
  .p-subpage p {
    font-size: 1.5rem;
  }

  .p-subpage__btn-container .c-btn {
    width: 100%;
  }
}

/* ニュース詳細ページ用のスタイル */

.p-news-detail__mv {
  background-color: var(--color-light-gray);
  height: 40vh;
  min-height: 35rem;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.p-news-detail__mv::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 104, 183, 0.05) 0%,
    rgba(0, 183, 168, 0.05) 100%
  );
  opacity: 0.8;
  z-index: 1;
}

.p-news-detail__mv .p-subpage-mv__content {
  position: relative;
  z-index: 2;
  margin: 0 auto;
}

.p-news-detail__mv .p-subpage-mv__title {
  font-size: 3.6rem;
  line-height: 1.4;
  color: var(--color-primary);
  position: relative;
  display: inline-block;
  text-shadow: none;
}

.p-news-detail__mv .p-subpage-mv__title::before {
  background: linear-gradient(0deg, var(--color-primary), var(--color-accent));
}

.p-news-detail__meta {
  justify-content: center;
  margin-bottom: 2rem;
}

.p-news-detail__date {
  color: var(--color-gray);
  font-family: "Montserrat", sans-serif;
  font-size: 1.6rem;
}

.p-news-detail__category {
  background-color: var(--color-secondary);
}

/* レスポンシブ対応 */
@media screen and (max-width: 767px) {
  .p-news-detail__mv {
    height: 30vh;
    min-height: 25rem;
  }

  .p-news-detail__mv .p-subpage-mv__title {
    font-size: 2.6rem;
  }

  .p-news-detail__meta {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
}

.p-news-detail__date {
  font-size: 1.4rem;
  color: var(--color-gray);
}

.p-news-detail__category {
  display: inline-block;
  padding: 0.3rem 1rem;
  background-color: var(--color-primary);
  color: var(--color-white);
  border-radius: 2rem;
  font-size: 1.2rem;
}

.p-news-detail__content {
  margin-bottom: 4rem;
}

.p-news-detail__section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(0, 104, 183, 0.2);
}

.p-news-detail__list {
  list-style-type: disc;
  padding-left: 2rem;
  margin-bottom: 2rem;
}

.p-news-detail__list li {
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

.p-news-detail__navigation {
  margin-top: 4rem;
}

.p-news-detail__prev-next {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.p-news-detail__link {
  display: block;
  min-width: 28rem;
  padding: 1.5rem;
  background-color: #f9f9f9;
  border-radius: 0.5rem;
  transition: background-color 0.3s;
}

.p-news-detail__link:hover {
  background-color: rgba(0, 104, 183, 0.05);
}

.p-news-detail__link-label {
  display: block;
  font-size: 1.2rem;
  color: var(--color-gray);
  margin-bottom: 0.5rem;
}

.p-news-detail__link-title {
  font-size: 1.4rem;
  color: var(--color-primary);
}

.p-news-detail__back-list {
  display: flex;
  justify-content: center;
}

@media screen and (max-width: 767px) {
  .p-news-detail__prev-next {
    gap: 0.8rem;
  }

  .p-news-detail__link {
    flex: 1;
  }
}

/* 3階層目ページ固有スタイル
   ========================================================================== */
.p-third-level .p-subpage__heading {
  font-size: 2.2rem;
  border-left: 5px solid var(--color-accent);
  border-bottom: none;
  padding-left: 1.5rem;
  padding-bottom: 0;
  background-color: #f9f9f9;
  padding: 1rem 1.5rem;
  border-radius: 5px;
}

.p-third-level .p-subpage__heading::after {
  display: none;
}

.p-third-level .p-subpage__content-box {
  background-color: #ffffff;
  border: 1px solid #f0f0f0;
}

.p-third-level .p-subpage__subheading {
  color: var(--color-accent);
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 0.8rem;
  padding-left: 0;
}

.p-third-level .p-subpage__subheading::before {
  display: none;
}

.p-third-level .p-subpage__address {
  font-size: 1.5rem;
  color: var(--color-gray);
  margin-bottom: 2rem;
}

.p-third-level .p-subpage__access-heading {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 2rem 0 0.5rem;
  position: relative;
  padding-left: 1.8rem;
}

.p-third-level .p-subpage__access-heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 1rem;
  height: 1rem;
  background-color: var(--color-accent);
  border-radius: 50%;
}

.p-third-level .p-subpage__map {
  margin-top: 3rem;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 3rem;
  position: relative;
}

.p-third-level .p-subpage__map-link {
  position: relative;
  display: block;
}

.p-third-level .p-subpage__map-image {
  display: block;
  margin: 0 auto;
}

.p-third-level .p-subpage__map-zoom {
  position: absolute;
  right: 12%;
  bottom: 10px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

@media screen and (max-width: 767px) {
  .p-third-level .p-subpage__map-image {
    width: 100% !important;
  }

  .p-third-level .p-subpage__map-zoom {
    display: flex;
    right: 10px;
  }
}

.p-third-level .p-subpage__map-btn {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
}

.p-third-level .mt-5 + .p-subpage__map {
  margin-top: 1.5rem;
}

.p-third-level .p-subpage__back-btn {
  margin-top: 5rem;
  display: flex;
  justify-content: center;
}

@media screen and (max-width: 767px) {
  .p-third-level .p-subpage__heading {
    font-size: 1.8rem;
    padding: 0.8rem 1.2rem;
  }
}

/* レスポンシブ調整 */
@media screen and (max-width: 767px) {
  .p-subpage__heading {
    font-size: 2rem;
  }

  .p-subpage__intro,
  .p-subpage p {
    font-size: 1.5rem;
  }

  .p-subpage__btn-container .c-btn {
    width: 100%;
  }
}

/* ユーティリティクラス */
.mt-4 {
  margin-top: 4rem !important;
}

.mt-3 {
  margin-top: 3rem !important;
}

.mt-2 {
  margin-top: 2rem !important;
}

.mt-1 {
  margin-top: 1rem !important;
}

.mb-2 {
  margin-bottom: 2rem !important;
}

.mb-1 {
  margin-bottom: 1rem !important;
}

@media screen and (max-width: 767px) {
  .mt-4 {
    margin-top: 3rem;
  }

  .mt-3 {
    margin-top: 2rem;
  }
}

/* PDFリンクスタイル */
.p-subpage__pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-primary);
  text-decoration: underline;
  transition: opacity 0.3s;
}

.p-subpage__pdf-link:hover {
  opacity: 0.7;
  text-decoration: none;
}

.p-subpage__pdf-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.p-subpage__pdf-icon svg {
  width: 1.6rem;
  height: 1.6rem;
}

/* ボランティア申込フォーム
   ========================================================================== */
.p-volunteer-form__container {
  background-color: var(--color-white);
  padding: 3rem;
  border-radius: 1rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  margin-top: 3rem;
}

.mw_wp_form .horizontal-item + .horizontal-item {
  margin-left: 0;
}

@media screen and (max-width: 767px) {
  .p-volunteer-form__container {
    padding: 2rem;
  }
}

.p-volunteer-form__notice {
  background-color: #fff8e1;
  border-left: 5px solid var(--color-accent);
  padding: 2rem;
  margin-bottom: 3rem;
  border-radius: 0.5rem;
}

.p-volunteer-form__notice-heading {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.p-volunteer-form__notice-list {
  list-style-type: disc;
  padding-left: 2rem;
}

.p-volunteer-form__notice-list li {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.p-volunteer-form__notice-list li:last-child {
  margin-bottom: 0;
}

.p-volunteer-form__form {
  margin-top: 3rem;
}

.p-volunteer-form__group {
  margin-bottom: 2.5rem;
}

.p-volunteer-form__label {
  display: block;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 0.8rem;
}

.p-volunteer-form__required {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--color-white);
  background-color: #e53935;
  padding: 0.2rem 0.8rem;
  border-radius: 3rem;
  vertical-align: middle;
}

.p-volunteer-form__help {
  font-size: 1.4rem;
  color: var(--color-gray);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.p-volunteer-form__input,
.p-volunteer-form__select,
.p-volunteer-form__textarea {
  width: 100%;
  padding: 1.2rem 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  font-size: 1.5rem;
  color: var(--color-dark);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.p-volunteer-form__input:focus,
.p-volunteer-form__select:focus,
.p-volunteer-form__textarea:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 104, 183, 0.2);
}

.p-volunteer-form__radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1rem;
}

.p-volunteer-form__radio-group label {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.p-volunteer-form__radio-group label input {
  margin-right: 0.8rem;
  width: 1.8rem;
  height: 1.8rem;
}

.p-volunteer-form__radio-group label span {
  font-size: 1.5rem;
}

.p-volunteer-form__checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.p-volunteer-form__checkbox-group label {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.p-volunteer-form__checkbox-group.age-check label {
  margin-top: 0.5rem;
  padding: 1rem;
  background-color: #f5f5f5;
  border-radius: 0.5rem;
}

.p-volunteer-form__checkbox-group label input {
  margin-right: 1rem;
  width: 1.8rem;
  height: 1.8rem;
}

.p-volunteer-form__checkbox-group label span {
  font-size: 1.5rem;
}

.p-volunteer-form__submit {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-top: 4rem;
}

.p-volunteer-form__submit input {
  min-width: 20rem;
  text-align: center;
}

@media screen and (max-width: 767px) {
  .p-volunteer-form__radio-group {
    flex-direction: column;
    gap: 1rem;
  }

  .p-volunteer-form__submit {
    text-align: center;
  }

  .p-volunteer-form__submit .c-btn {
    width: 100%;
  }
}

.p-volunteer-form__input-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.p-volunteer-form__input-group-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.p-volunteer-form__input-group span {
  display: inline-block;
  min-width: 3rem;
  text-align: center;
}

.p-volunteer-form__input-group input {
  max-width: 24rem;
}

.mw_wp_form .p-volunteer-form__input-group-item .error {
  display: inline-block;
  position: absolute;
  top: 100%;
  left: 4rem;
  width: auto;
}

@media screen and (max-width: 767px) {
  .p-volunteer-form__input-group {
    flex-wrap: wrap;
  }
  .p-volunteer-form__input-group input {
    max-width: none;
    width: calc(100% - 5rem);
  }
}

/* エラー */
.mw_wp_form .error {
  font-size: 100%;
  font-weight: bold;
  width: 100%;
}

/* 確認画面 */
.mw_wp_form.mw_wp_form_confirm .confirm-hidden {
  display: none !important;
}

.mw_wp_form.mw_wp_form_confirm .p-volunteer-form__notice {
  display: none;
}

.mw_wp_form.mw_wp_form_confirm .p-volunteer-form__required,
.mw_wp_form.mw_wp_form_confirm .p-contact__required {
  display: none;
}

.mw_wp_form.mw_wp_form_confirm .p-volunteer-form__label,
.mw_wp_form.mw_wp_form_confirm .p-contact__form-label {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.8rem;
  position: relative;
  padding-left: 1.5rem;
}

.mw_wp_form.mw_wp_form_confirm .p-volunteer-form__label::before,
.mw_wp_form.mw_wp_form_confirm .p-contact__form-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 0.4rem;
  background-color: var(--color-accent);
  border-radius: 0.2rem;
}

.mw_wp_form.mw_wp_form_confirm .p-volunteer-form__help {
  display: none;
}

.mw_wp_form.mw_wp_form_confirm .p-contact__form-policy {
  display: none;
}

/* 完了画面 */
.mw_wp_form.mw_wp_form_complete .p-volunteer-form__notice {
  display: none;
}

/* 文字サイズ変更対応 */
.font-size-small .p-volunteer-form__label {
  font-size: 1.4rem;
}

.font-size-small .p-volunteer-form__help {
  font-size: 1.2rem;
}

.font-size-small .p-volunteer-form__radio-text,
.font-size-small .p-volunteer-form__checkbox-text {
  font-size: 1.3rem;
}

.font-size-large .p-volunteer-form__label {
  font-size: 1.8rem;
}

.font-size-large .p-volunteer-form__help {
  font-size: 1.6rem;
}

.font-size-large .p-volunteer-form__radio-text,
.font-size-large .p-volunteer-form__checkbox-text {
  font-size: 1.7rem;
}

/* 外部リンクスタイル
   ========================================================================== */
.p-subpage__external-link {
  display: inline-flex;
  align-items: center;
  color: var(--color-primary);
  text-decoration: underline;
  transition: opacity 0.3s;
  position: relative;
  padding-right: 2.2rem;
}

.p-subpage__external-link:hover {
  opacity: 0.7;
  text-decoration: none;
}

.p-subpage__external-link::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1.6rem;
  height: 1.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230068b7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'%3E%3C/path%3E%3Cpolyline points='15 3 21 3 21 9'%3E%3C/polyline%3E%3Cline x1='10' y1='14' x2='21' y2='3'%3E%3C/line%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

@media screen and (max-width: 767px) {
  .p-subpage__external-link {
    padding-right: 2rem;
  }

  .p-subpage__external-link::after {
    width: 1.4rem;
    height: 1.4rem;
  }
}

/* 活動日程表画像
   ========================================================================== */
.p-subpage__schedule-images {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.p-subpage__schedule-figure {
  width: calc(50% - 1rem);
  margin-bottom: 0;
}

.p-subpage__schedule-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
}

.p-subpage__schedule-caption {
  margin-top: 1rem;
  text-align: center;
  font-size: 1.4rem;
  color: var(--color-gray);
}

@media screen and (max-width: 767px) {
  .p-subpage__schedule-images {
    margin-top: 2rem;
    flex-direction: column;
    gap: 2rem;
  }

  .p-subpage__schedule-figure {
    width: 100%;
    margin-bottom: 0;
  }

  .p-subpage__schedule-caption {
    font-size: 1.2rem;
  }
}

/* ページネーション
   ========================================================================== */
.p-pagination .page-numbers {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 4rem;
  gap: 0.8rem;
}

.p-pagination .page-numbers li .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  color: var(--color-primary);
  font-size: 1.6rem;
  transition: all 0.3s;
  text-decoration: none;
  background-color: #f5f5f5;
}

.p-pagination .page-numbers li .page-numbers:hover {
  background-color: rgba(0, 104, 183, 0.1);
}

.p-pagination .page-numbers li .page-numbers.current {
  background-color: var(--color-primary);
  color: var(--color-white);
  font-weight: 700;
  pointer-events: none;
}

@media screen and (max-width: 767px) {
  .p-pagination {
    margin-top: 3rem;
    gap: 0.5rem;
  }

  .p-pagination .page-numbers li .page-numbers {
    width: 3.5rem;
    height: 3.5rem;
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 1rem;
  }
}

/* 戻るボタンスタイル
   ========================================================================== */
.p-subpage__back-btn {
  display: flex;
  justify-content: center;
  margin-top: 5rem;
}

.p-subpage__back-btn .c-btn {
  min-width: 25rem;
  background-color: var(--color-white);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  transition: all 0.3s ease;
}

.p-subpage__back-btn .c-btn:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.p-subpage__back-btn .c-btn__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.p-subpage__back-btn .c-btn__inner::before {
  content: "";
  display: inline-block;
  width: 0.8rem;
  height: 0.8rem;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(-45deg);
}

@media screen and (max-width: 767px) {
  .p-subpage__back-btn {
    margin-top: 4rem;
  }

  .p-subpage__back-btn .c-btn {
    width: 100%;
    min-width: auto;
  }
}

/* 競技日程表スタイル
     ========================================================================== */
.table-wrapper {
  margin-bottom: 3rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-wrapper:last-child {
  margin-bottom: 0;
}

.table-wrapper table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.4rem;
  table-layout: fixed;
}

.table-wrapper caption {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--color-primary);
  text-align: left;
  padding: 0 0 1rem 0;
  margin-bottom: 0.5rem;
}

.table-wrapper th,
.table-wrapper td {
  border: 1px solid #ddd;
  padding: 0.8rem;
  text-align: center;
  vertical-align: middle;
  word-break: break-word;
}

.table-wrapper th {
  background-color: #f5f5f5;
  font-weight: 600;
}

.table-wrapper tr:nth-child(even) {
  background-color: #fafafa;
}

.table-wrapper tr:hover {
  background-color: #f0f8ff;
}

.table-wrapper .text2_,
.table-wrapper .text_ {
  font-weight: 700;
}

/* 日程表の曜日と日付の色分け */
/* 土曜日を青色に表示 - 各テーブルの列選択を細かく指定 */
.table-wrapper tr:nth-child(3) td:nth-child(1) strong,
.table-wrapper tr:nth-child(3) td:nth-child(8) strong,
.table-wrapper tr:nth-child(2) td:nth-child(1) strong,
.table-wrapper tr:nth-child(2) td:nth-child(8) strong {
  color: #0068b7;
  /* 青色 */
}

/* 日曜日を赤色に表示 - 各テーブルの列選択を細かく指定 */
.table-wrapper tr:nth-child(3) td:nth-child(2) strong,
.table-wrapper tr:nth-child(3) td:nth-child(9) strong,
.table-wrapper tr:nth-child(2) td:nth-child(2) strong,
.table-wrapper tr:nth-child(2) td:nth-child(9) strong {
  color: #e60012;
  /* 赤色 */
}

/* 国スポ本大会の表の列が多いため個別に指定 */
.table-wrapper table[cellpadding="0"] tr:nth-child(3) td:nth-child(1) strong,
.table-wrapper table[cellpadding="0"] tr:nth-child(3) td:nth-child(8) strong,
.table-wrapper table[cellpadding="0"] tr:nth-child(2) td:nth-child(1) strong,
.table-wrapper table[cellpadding="0"] tr:nth-child(2) td:nth-child(8) strong {
  color: #0068b7;
  /* 青色 */
}

.table-wrapper table[cellpadding="0"] tr:nth-child(3) td:nth-child(2) strong,
.table-wrapper table[cellpadding="0"] tr:nth-child(3) td:nth-child(9) strong,
.table-wrapper table[cellpadding="0"] tr:nth-child(2) td:nth-child(2) strong,
.table-wrapper table[cellpadding="0"] tr:nth-child(2) td:nth-child(9) strong {
  color: #e60012;
  /* 赤色 */
}

/* 以前の.text2_と.text_クラスのフォントウェイト設定のみ維持 */
.table-wrapper .text2_,
.table-wrapper .text_ {
  font-weight: 700;
}

/* スマホでの表示調整 */
@media screen and (max-width: 767px) {
  .table-wrapper {
    margin-bottom: 2rem;
    width: 100%;
  }

  .table-wrapper table {
    font-size: 1.2rem;
    min-width: 600px;
    /* 横スクロールのため最小幅を設定 */
    table-layout: auto;
  }

  .table-wrapper caption {
    font-size: 1.4rem;
  }

  .table-wrapper th,
  .table-wrapper td {
    padding: 0.6rem 0.4rem;
    font-size: 1.1rem;
    min-width: 2.5rem;
    /* 最小幅を設定して均一に */
    width: auto !important;
    /* インライン幅指定を上書き */
  }

  .table-wrapper td[style*="width"] {
    width: auto !important;
    /* インラインのwidth指定を上書き */
  }

  /* SPでのセル幅を均一にする - さらに詳細なセレクタ */
  .table-wrapper tr:nth-child(2) td,
  .table-wrapper tr:nth-child(3) td {
    width: 2.5rem !important;
    min-width: 2.5rem !important;
    max-width: 3rem !important;
    padding: 0.4rem 0.2rem !important;
    font-size: 1.1rem !important;
  }

  /* 国スポ本大会の表はより細かい調整 */
  .table-wrapper table[cellpadding="0"] tr:nth-child(2) td,
  .table-wrapper table[cellpadding="0"] tr:nth-child(3) td {
    width: 2rem !important;
    min-width: 2rem !important;
    max-width: 2.5rem !important;
    padding: 0.3rem 0.1rem !important;
    font-size: 1rem !important;
  }

  /* 競技名と会場名のセルは幅を確保 */
  .table-wrapper td:first-child,
  .table-wrapper td:nth-child(2),
  .table-wrapper td:nth-child(3) {
    min-width: auto !important;
    width: auto !important;
  }
}

/* テーブル内の競技名列を調整 */
.table-wrapper td:first-child {
  min-width: 8rem;
  text-align: left;
}

/* テーブル内の競技会場列を調整 */
.table-wrapper td:nth-child(2),
.table-wrapper td:nth-child(3) {
  min-width: 10rem;
  text-align: left;
}

/* 日程表の日付部分を調整 */
.table-wrapper tr:nth-child(2) td,
.table-wrapper tr:nth-child(3) td {
  min-width: 2.5rem;
  width: 2.5rem;
  padding: 0.4rem;
  font-size: 1.3rem;
}

.table-wrapper td[rowspan] {
  vertical-align: middle;
}

/* 確認画面用スタイル */
.p-volunteer-form__confirm-heading {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.8rem;
  position: relative;
  padding-left: 1.5rem;
}

.p-volunteer-form__confirm-heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 0.4rem;
  background-color: var(--color-accent);
  border-radius: 0.2rem;
}

.p-volunteer-form__confirm-text {
  font-size: 1.6rem;
  padding: 0.8rem 1.2rem;
  background-color: #f9f9f9;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.p-volunteer-form__submit-group {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 4rem;
}

.p-volunteer-form__submit-group .c-btn:not(.c-btn--primary) {
  background-color: var(--color-white);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  transition: all 0.3s ease;
}

.p-volunteer-form__submit-group .c-btn:not(.c-btn--primary):hover {
  background-color: #f0f7fc;
  border-color: #0056a4;
}

@media screen and (max-width: 767px) {
  .p-volunteer-form__confirm-text {
    font-size: 1.4rem;
    padding: 0.6rem 1rem;
  }

  .p-volunteer-form__submit-group {
    flex-direction: column-reverse;
    gap: 1rem;
  }

  .p-volunteer-form__submit-group .c-btn {
    width: 100%;
  }
}

/* 完了画面用スタイル */
.p-volunteer-complete__container {
  text-align: center;
  padding: 3rem;
  background-color: #f9f9f9;
  border-radius: 1rem;
}

.p-volunteer-complete__icon {
  margin: 0 auto 2rem;
  width: 8rem;
  height: 8rem;
  background-color: rgba(0, 104, 183, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.p-volunteer-complete__title {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 2rem;
}

.p-volunteer-complete__message {
  font-size: 1.6rem;
  line-height: 1.8;
  margin-bottom: 3rem;
}

.p-volunteer-complete__info {
  max-width: 72rem;
  margin: 0 auto 3rem;
  text-align: left;
  background-color: #fff;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.p-volunteer-complete__info-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid #eee;
}

.p-volunteer-complete__info-list {
  list-style-type: decimal;
  padding-left: 2.5rem;
}

.p-volunteer-complete__info-list li {
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

.p-volunteer-complete__contact {
  max-width: 72rem;
  margin: 0 auto 3rem;
  text-align: left;
  background-color: #fff;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.p-volunteer-complete__contact-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid #eee;
}

.p-volunteer-complete__contact-text {
  font-size: 1.5rem;
  line-height: 1.8;
}

.p-volunteer-complete__btn {
  margin-top: 4rem;
}

@media screen and (max-width: 767px) {
  .p-volunteer-complete__container {
    padding: 2rem 1.5rem;
  }

  .p-volunteer-complete__title {
    font-size: 2rem;
  }

  .p-volunteer-complete__message {
    font-size: 1.4rem;
  }

  .p-volunteer-complete__info,
  .p-volunteer-complete__contact {
    padding: 1.5rem;
  }

  .p-volunteer-complete__info-title,
  .p-volunteer-complete__contact-title {
    font-size: 1.6rem;
  }

  .p-volunteer-complete__contact-text {
    font-size: 1.4rem;
  }

  .p-volunteer-complete__btn .c-btn {
    width: 100%;
  }
}

/* ドキュメントリンク */
.p-subpage__doc-link {
  display: inline-flex;
  align-items: center;
  color: var(--color-primary);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s;
  margin-top: 0.8rem;
  position: relative;
  padding-left: 2.2rem;
}

.p-subpage__doc-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1.8rem;
  height: 1.8rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%230068b7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'%3E%3C/path%3E%3Cpolyline points='14 2 14 8 20 8'%3E%3C/polyline%3E%3Cline x1='16' y1='13' x2='8' y2='13'%3E%3C/line%3E%3Cline x1='16' y1='17' x2='8' y2='17'%3E%3C/line%3E%3Cpolyline points='10 9 9 9 8 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.p-subpage__doc-link:hover {
  color: var(--color-secondary);
  text-decoration: underline;
}

.p-subpage__doc-link:hover::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2300a0e9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'%3E%3C/path%3E%3Cpolyline points='14 2 14 8 20 8'%3E%3C/polyline%3E%3Cline x1='16' y1='13' x2='8' y2='13'%3E%3C/line%3E%3Cline x1='16' y1='17' x2='8' y2='17'%3E%3C/line%3E%3Cpolyline points='10 9 9 9 8 9'%3E%3C/polyline%3E%3C/svg%3E");
}

@media screen and (max-width: 767px) {
  .p-subpage__doc-link {
    font-size: 1.4rem;
  }
}

/* プライバシーポリシーページ用スタイル
     ========================================================================== */
.p-privacy__section {
  margin-bottom: 4rem;
}

.p-privacy__heading {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(0, 104, 183, 0.2);
  position: relative;
}

.p-privacy__heading::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 6rem;
  height: 2px;
  background-color: var(--color-primary);
}

.p-privacy__subheading {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 2.5rem 0 1rem;
  position: relative;
  padding-left: 1.5rem;
}

.p-privacy__subheading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 0.4rem;
  background-color: var(--color-accent);
  border-radius: 0.2rem;
}

.p-privacy__text {
  font-size: 1.5rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.p-privacy__list {
  margin-bottom: 2rem;
  padding-left: 2rem;
}

.p-privacy__list li {
  margin-bottom: 0.8rem;
  line-height: 1.7;
  position: relative;
}

.p-privacy__list--decimal {
  list-style-type: decimal;
}

.p-privacy__list--disc {
  list-style-type: disc;
}

.p-privacy__note {
  font-size: 1.4rem;
  color: var(--color-gray);
  line-height: 1.6;
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 1.5rem;
}

.p-privacy__note::before {
  content: "※";
  position: absolute;
  left: 0;
}

.p-privacy__contact {
  background-color: #f5f5f5;
  padding: 2rem;
  border-radius: 0.5rem;
  margin-top: 3rem;
}

.p-privacy__contact-title {
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

.p-privacy__contact-info {
  font-size: 1.5rem;
  line-height: 1.8;
  text-align: center;
}

/* 文字サイズ変更対応 */
.font-size-small .p-privacy__heading {
  font-size: 1.9rem;
}

.font-size-small .p-privacy__subheading {
  font-size: 1.6rem;
}

.font-size-small .p-privacy__text {
  font-size: 1.3rem;
}

.font-size-large .p-privacy__heading {
  font-size: 2.4rem;
}

.font-size-large .p-privacy__subheading {
  font-size: 2rem;
}

.font-size-large .p-privacy__text {
  font-size: 1.7rem;
}

/* レスポンシブ対応 */
@media screen and (max-width: 767px) {
  .p-privacy__heading {
    font-size: 1.8rem;
  }

  .p-privacy__subheading {
    font-size: 1.6rem;
  }

  .p-privacy__text {
    font-size: 1.4rem;
  }

  .p-privacy__contact {
    padding: 1.5rem;
  }
}

.p-sponsors__list--large {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.p-sponsors__list--large .p-sponsors__item {
  width: calc(33.333% - 1.5rem);
}

.p-sponsors__list--large .p-sponsors__item.-small {
  width: calc(25% - 1.5rem);
}

@media (max-width: 767px) {
  .p-sponsors__list--large .p-sponsors__item,
  .p-sponsors__list--large .p-sponsors__item.-small {
    width: 100%;
  }
}

.p-sponsors__list--medium {
  justify-content: center;
  gap: 4rem;
}

.p-sponsors__list--small {
  justify-content: center;
  gap: 2rem;
}

.p-sponsors__item {
  transition: transform 0.3s;
}

@media (min-width: 768px) {
  .p-sponsors__item:hover {
    transform: translateY(-5px);
  }
}

.p-sponsors__btn-container {
  text-align: center;
  margin: 2rem 0;
}

@media (max-width: 767px) {
  .p-sponsors__intro {
    margin-bottom: 3rem;
  }

  .p-sponsors__text {
    text-align: left;
    font-size: 1.4rem;
  }

  .p-sponsors__btn-container {
    margin: 1.5rem 0;
  }
}

.p-sponsors__link {
  display: block;
  /* border: 1px solid rgba(0, 0, 0, 0.05); */
  border-radius: 0.5rem;
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.p-sponsors__link.no-link {
  pointer-events: none;
}

@media (min-width: 768px) {
  .p-sponsors__link:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }
}

.p-sponsors__link img {
  width: 100%;
}

.p-sponsors__text-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: left;
}

.p-sponsors__text-item {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background-color: #f9f9f9;
  border-radius: 5rem;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--color-gray);
  transition: all 0.3s;
}

@media (min-width: 768px) {
  .p-sponsors__text-item:hover {
    background-color: rgba(0, 104, 183, 0.1);
    color: var(--color-primary);
  }
}

.p-subpage__image {
  width: 50%;
}
@media (max-width: 768px) {
  .p-subpage__image {
    width: 100%;
  }
}
.p-subpage__image img {
  width: 100%;
}

.p-subpage__image__flex {
  display: flex;
  justify-content: center;
  column-gap: 2rem;
}

.p-subpage__image__flex img {
  width: 46%;
}
@media (max-width: 768px) {
  .p-subpage__image__flex {
    flex-direction: column;
    row-gap: 2rem;
  }
  .p-subpage__image__flex img {
    width: 100%;
  }
}
