/*
 * under.css
 * 下層ページ共通スタイル（私たちについて・その他下層）
 * 読み込み順：common.css → header.css → footer.css → under.css
 */
/* ========================================
   下層ページレイアウト（フッターを画面下端に寄せる）
   ======================================== */
.under-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.under-page main {
  flex: 1;
}
/* ========================================
   ページヒーロー（メインビジュアル＋タイトル）
   ======================================== */
.under-hero {
  position: relative;
  width: 100%;
  height: 570px;
  margin-top: 0;
  margin-bottom: 50px;
  overflow: hidden;
}
.under-hero-inner {
  position: relative;
  width: 100%;
  height: 100%;
}
/* 下層ヒーロー共通：薄い黒のオーバーレイ（暗くする） */
.under-hero-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  pointer-events: none;
  z-index: 1;
}
.under-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 画角の調整: 表示したい位置を指定（例: center top=上寄せ, center 30%=やや上, 50% 50%=中央） */
  object-position: center 20%;
  display: block;
}
/* learning：画像をもう少し上側を表示 */
#learning .under-hero-img {
  object-position: center 25%;
}
#scholarship .under-hero-img {
  object-position: center 25%;
}
.under-hero-copy {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  padding-top: 88px;
}
.under-hero-eyebrow {
  margin: 0 0 8px;
  font-size: 16px;
  letter-spacing: 0.2em;
  color: #fff;
}
.under-hero-title {
  margin: 0;
  font-size: 45px;
  font-weight: normal;
  letter-spacing: 0.08em;
  color: #fff;
  text-align: center;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}
.under-breadcrumb-wrap {
  background: #f2f2e9;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.under-breadcrumb {
  margin: 0;
  font-size: 12px;
  color: #333;
}
.under-breadcrumb a {
  color: inherit;
  text-decoration: none;
}
.under-breadcrumb a:hover {
  text-decoration: underline;
}
.under-breadcrumb-sep {
  margin: 0 8px;
  color: rgba(51, 51, 51, 0.5);
}
/* ========================================
   コンテンツセクション（2カラム：見出し左・本文右）
   ======================================== */
.under-section {
  padding: 50px 0;
  background: #f2f2e9;
}
.under-section.last {
  padding: 50px 0 100px 0;
}
/* 奨学金ページ：募集告知ボックス（ヒーローと本文の間） */
.scholarship-announce {
  margin-top: 100px;
  margin-bottom: 50px;
}
.scholarship-announce-box {
  margin: 0 auto;
  padding: 28px 40px;
  border: 1px solid #333;
  text-align: center;
  box-sizing: border-box;
}
.scholarship-announce-text {
  margin: 0;
  font-size: 24px;
  line-height: 1.6;
  color: #333;
  letter-spacing: 0.02em;
}
.under-section + .under-section .inner::before {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  margin-bottom: 100px;
  background: rgba(0, 0, 0, 0.12);
}
.under-section-inner {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  column-gap: 140px;
  align-items: start;
}
.under-section-inner-overview {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  column-gap: 48px;
  align-items: start;
}
.under-section-title {
  margin: 0;
  font-size: 32px;
  font-weight: 100;
  letter-spacing: 0.08em;
  color: #333;
  line-height: 48px;
  width: 280px;
}
.under-section-title-overview {
  margin: 0;
  font-size: 42px;
  font-weight: 100;
  letter-spacing: 0.08em;
  color: #333;
  line-height: 1.3;
}
.under-section-body {
  min-width: 0;
}
.under-text {
  margin: 0 0 1.8em;
  line-height: 2;
  color: #333;
}
.under-text:last-of-type {
  margin-bottom: 0;
}
.under-subtitle {
  margin: 0 0 24px;
  font-size: 20px;
  letter-spacing: 0.06em;
  color: #333;
}
.under-images {
  margin-top: 70px;
}
.under-images--two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.under-img {
  overflow: hidden;
}
.under-img img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}
.under-timeline {
  margin: 0 0 32px;
}
.under-timeline-item {
  margin: 0;
  padding: 0;
}
.under-timeline-year {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(51, 51, 51, 0.7);
  opacity: 0.6;
}
.under-timeline-text {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 32px;
  color: #333;
}
.under-divider {
  margin: 30px 0;
  border: none;
  border-top: 1px dotted rgba(0, 0, 0, 0.5);
}
.under-divider-first {
  margin: 0 0 30px;
  border: none;
  border-top: 1px dotted rgba(0, 0, 0, 0.5);
}
.under-founder {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 35px;
  margin-top: 76px;
}
.under-founder-img {
  flex-shrink: 0;
  width: 160px;
  overflow: hidden;
}
.under-founder-img img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}
.under-founder-info {
  padding-top: 0;
}
.under-founder-label {
  margin: 0 0 4px;
  font-size: 16px;
  color: rgba(51, 51, 51, 0.7);
}
.under-founder-name {
  margin: 0;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: #333;
}
/* ========================================
   先輩たちの声スライダー（#voice）
   PC：2枚表示・左右スライド / SP：1枚表示・左右スライド
   ======================================== */
#voice .voice-slider-wrap {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
}
.voice-slider {
  position: relative;
  margin-top: 40px;
  width: 100%;
}
.voice-slider-inner {
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}
.voice-slider-inner .slick-list {
  overflow: hidden;
  margin: 0 -12px;
}
.voice-slider-inner .slick-slide {
  margin: 0px 22px;
  height: inherit;
}
.voice-slider-inner .slick-slide > div {
  height: 100%;
}
.voice-slider-card {
  position: relative;
  min-width: 0;
  height: 760px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  padding: 28px 24px 60px;
}
.voice-card-meta {
  margin: 0 0 31px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #333;
}
.voice-card-profile {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.7;
  color: #333;
}
.voice-card-profile dt {
  margin: 0px;
}
.voice-card-profile dd {
  margin: 0;
}
.voice-card-qa {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: #333;
}
.voice-card-qa dt {
  margin: 12px 0 4px;
  font-weight: 700;
  font-size: 14px;
}
.voice-card-qa dt:first-child {
  margin-top: 0;
}
.voice-card-qa dd {
  margin: 0;
  padding-left: 0;
}
.voice-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: none;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  z-index: 2;
}
.voice-slider-btn:hover:not(:disabled) {
  transform: translateY(-50%) scale(1.12);
}
.voice-slider-btn:active:not(:disabled) {
  transition-duration: 0.1s;
}
.voice-slider-btn--prev.voice-slider-btn--press {
  transform: translateY(-50%) translateX(-4px);
}
.voice-slider-btn--next.voice-slider-btn--press {
  transform: translateY(-50%) translateX(4px);
}
.voice-slider-btn:disabled, .voice-slider-btn.slick-disabled {
  display: none;
}
.voice-slider-btn:focus-visible {
  outline: 2px solid #333;
  outline-offset: 2px;
}
.voice-number {
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  width: fit-content;
  margin: 0 auto;
  font-size: 16px;
  color: #333;
  margin-bottom: 0;
}
.voice-slider-btn--prev {
  left: -47px;
}
.voice-slider-btn--next {
  right: -47px;
}
.voice-slider-btn-icon {
  width: 17px;
  height: 17px;
  border-left: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  display: inline-block;
  color: #292929;
  transform-origin: 50% 50%;
}
/* 前へ（＜） */
.voice-slider-btn--prev .voice-slider-btn-icon {
  transform: rotate(45deg);
}
/* 次へ（＞） */
.voice-slider-btn--next .voice-slider-btn-icon {
  transform: rotate(-135deg);
}
.voice-slider-inner button.slick-arrow {
  display: none;
}
#voice-slider-prev.slick-disabled, #voice-slider-next.slick-disabled {
  display: none !important;
}
/* slickの設定 */
.slick-initialized .slick-slide {
  min-height: 750px;
}
/* ========================================
   SP版（768px以下）
   ======================================== */
@media (max-width: 768px) {
  .under-hero {
    height: 330px;
    margin-bottom: 25px;
  }
  .under-hero-copy {
    padding-top: 40px;
  }
  .under-hero-title {
    font-size: 26px;
  }
  .under-subtitle {
    font-size: 16px;
  }
  .under-hero-eyebrow {
    font-size: 12px;
  }
  .under-section {
    padding: 25px 0;
  }
  .under-section + .under-section .inner::before {
    margin-bottom: 50px;
  }
  .under-section.last {
    padding: 50px 0;
  }
  .scholarship-announce {
    margin-top: 50px;
    margin-bottom: 25px;
  }
  .scholarship-announce-box {
    max-width: 100%;
    padding: 20px 24px;
  }
  .scholarship-announce-text {
    font-size: 15px;
  }
  .under-section-inner {
    grid-template-columns: 1fr;
    row-gap: 50px;
  }
  .under-section-inner-overview {
    grid-template-columns: 1fr;
    row-gap: 50px;
  }
  .under-section-title {
    font-size: 20px;
    width: 300px;
    line-height: 30px;
  }
  .under-section-title-overview {
    font-size: 25px;
  }
  .under-text {
    font-size: 14px;
  }
  .under-images--two {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 48px;
  }
  .under-images--two {
    grid-template-columns: 1fr 1fr;
  }
  .under-timeline {
    margin-bottom: 24px;
  }
  .under-timeline-text {
    margin-bottom: 16px;
    font-size: 14px;
  }
  .under-timeline-year {
    font-size: 13px;
  }
  .under-divider {
    margin: 16px 0;
  }
  .under-founder {
    margin-top: 51px;
  }
  .under-founder-img {
    width: 120px;
  }
  .under-founder-label {
    font-size: 13px;
  }
  .under-founder-name {
    font-size: 16px;
  }
  #learning #education .fs20p {
    font-size: 16px;
  }
  #scholarship #voice .mb60 {
    margin-bottom: 0 !important;
  }
  /* 先輩たちの声スライダー：SPは1枚表示・角丸表示 */
  .voice-slider {
    margin-top: 0px;
  }
  .voice-slider-inner {
    margin: 0 8px;
    padding: 0 8px;
  }
  .voice-slider-inner .slick-list {
    margin: 0 -4px;
  }
  .voice-slider-inner .slick-slide {
    margin: 0 4px;
  }
  .voice-slider-card {
    min-width: 0;
    height: 700px;
    padding: 24px 20px 28px;
    border-radius: 13px;
  }
  .voice-card-meta {
    font-size: 16px;
    margin-bottom: 17px;
  }
  .voice-card-profile {
    font-size: 13px;
    margin-bottom: 16px;
  }
  .voice-card-qa {
    font-size: 13px;
  }
  .voice-card-qa dt {
    font-size: 13px;
  }
  .voice-slider-btn {
    width: 24px;
    height: 24px;
    min-width: 24px;
  }
  .voice-number {
    position: absolute;
    bottom: 27px;
    left: 0;
    right: 0;
    width: fit-content;
    margin: 0 auto;
    font-size: 14px;
  }
  .voice-slider-btn--prev {
    left: -10px;
  }
  .voice-slider-btn--next {
    right: -10px;
  }
  .voice-slider-btn-icon {
    width: 14px;
    height: 14px;
  }
  .slick-initialized .slick-slide {
    min-height: 820px;
  }
}
/* ========================================
   お知らせ個別ページ（news_page）
   ======================================== */
#news_page.section-news .news-col-body {
  margin-top: 100px;
}
/* #news_page.section-news .news-head .section-label-ashirai {
  width: var(--section-label-ashirai-width, 200px);
} */
.section-news--detail {
  height: auto;
  padding-bottom: 80px;
  margin-top: 100px;
}
.section-news--detail .news-layout--detail {
  display: block;
}
.section-news--detail .news-col-label {
  margin-bottom: 50px;
}
.news-col-body--detail {
  margin-left: auto;
  margin-right: auto;
}
.news-article-date {
  margin: 0 0 12px;
  font-size: 16px;
  color: #333;
  letter-spacing: 0.02em;
}
.news-article-title {
  margin: 0 0 25px;
  font-size: 22px;
  font-weight: normal;
  color: #333;
  line-height: 1.5;
  letter-spacing: 0.02em;
}
.news-article-divider {
  margin: 0 0 70px;
  border: none;
  border-top: 1px solid #333;
}
.news-article-body {
  font-size: 16px;
  line-height: 1.9;
  color: #333;
  letter-spacing: 0.02em;
}
.news-article-body p {
  margin: 0 0 1.5em;
}
.news-article-body p:last-child {
  margin-bottom: 0;
}
/* 個別ページ下部ナビ */
.news-detail-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 32px 48px;
  margin-top: 100px;
}
.news-detail-nav-prev a, .news-detail-nav-next a {
  font-size: 16px;
  color: #333;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.news-detail-nav-prev a:hover, .news-detail-nav-next a:hover {
  text-decoration: underline;
}
/* 一覧へ戻る：TOPの .section-news .news-btn-wrap .btn-primary と同じサイズ・アニメーション */
.news-detail-nav-list .btn-primary {
  position: relative;
  display: block;
  width: 250px;
  height: 50px;
  padding: 0 30px 0 0;
  box-sizing: border-box;
  font-size: 13px;
  letter-spacing: 0.2em;
  background: #fff;
  color: #333;
  border: none;
  border-radius: 25px;
}
.news-detail-nav-list .btn-primary:hover {
  color: #fff;
  border-color: #333;
}
.news-detail-nav-list .btn-primary:hover > * {
  color: #fff;
}
.news-detail-nav-list .btn-primary > span:first-child {
  position: absolute;
  left: 50%;
  top: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.news-detail-nav-list .btn-primary-icon {
  position: absolute;
  right: 15px;
  top: 45%;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
  width: 15px;
  text-align: center;
}
/* お知らせ一覧：ページネーション */
.news-pagination {
  margin-top: 50px;
  text-align: center;
}
.news-pagination-list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.news-pagination-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  font-size: 15px;
  color: #333;
  text-decoration: none;
  -webkit-transition: color 0.25s ease, background-color 0.25s ease;
  transition: color 0.25s ease, background-color 0.25s ease;
}
.news-pagination-item:hover {
  color: #333;
  opacity: 0.6;
}
.page-numbers {
  -webkit-transition: color 0.25s ease, background-color 0.25s ease;
  transition: color 0.25s ease, background-color 0.25s ease;
}
.page-numbers:hover {
  color: #333;
  opacity: 0.6;
}
.news-pagination-item.is-current {
  min-width: 28px;
  width: 28px;
  height: 28px;
  padding: 0;
  font-size: 14px;
  background-color: #333;
  color: #fff;
  border-radius: 50%;
  cursor: default;
  pointer-events: none;
}
.news-pagination-item.news-pagination-prev, .news-pagination-item.news-pagination-next {
  font-size: 18px;
  line-height: 1;
}
/* 1ページ目：戻る矢印のスペースを確保しつつ非表示（位置がずれないようにする） */
.news-pagination-prev--placeholder {
  visibility: hidden;
  pointer-events: none;
}
@media (max-width: 768px) {
  /* ヘッダー（お知らせ・News）直下に幅いっぱいの区切り線 */
  .news-col-body--detail::before {
    content: "";
    display: block;
    border-top: 1px solid #333;
    margin-bottom: 24px;
  }
  .section-news--detail .news-col-label {
    margin-bottom: 0;
  }
  .news-article-title {
    font-size: 18px;
    margin-bottom: 20px;
  }
  /* SPではタイトルと本文の間の線は非表示 */
  .news-article-divider {
    display: none;
  }
  .news-article-body {
    font-size: 15px;
  }
  /* 本文直下・ナビ前に幅いっぱいの区切り線 */
  .news-detail-nav-list .btn-primary {
    width: 200px;
    font-size: 14px;
  }
  .news-detail-nav {
    display: grid; /* ← flexじゃなくgridに */
    grid-template-columns: 1fr auto 1fr; /* 左・中央・右 */
    align-items: center;
    margin-top: 48px;
    padding-top: 40px;
    gap: 12px;
    border-top: 1px solid #333;
  }
  .news-detail-nav-list {
    justify-self: center;
  }
  .news-detail-nav-prev {
    justify-self: start;
  }
  .news-detail-nav-next {
    justify-self: end;
  }
  .news-detail-nav-prev a, .news-detail-nav-next a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    font-size: 14px;
  }
  #news #news-list.section {
    margin-top: 50px !important;
  }
  #news_page.section-news .news-col-body {
    margin-top: 50px;
  }
  .section-news--detail {
    height: auto;
    margin-top: 50px !important;
  }
}
/* ========================================
   育英会概要ページ（overview）
   ======================================== */
/* PC：news.html と同じ間隔（mt100 = 100px） */
.overview-page .overview-section {
  padding-top: 100px;
}
.overview-section {
  padding-top: 76px !important;
}
.overview-page .overview-section .inner {
  max-width: 1000px;
}
/* 右カラム幅（PC版） */
.overview-section .under-section-body {
  max-width: 577px;
  margin-left: auto;
  width: 100%;
}
/* 画像・情報公開は右カラム（under-section-body）内に配置 */
.overview-image {
  width: 100%;
  margin-top: 90px;
  margin-bottom: 90px;
}
.overview-image img {
  width: 100%;
  height: auto;
  display: block;
}
/* 汎用ブロック（情報公開・周辺地図など） */
.overview-block {
  margin-bottom: 0;
}
.overview-block + .overview-block {
  margin-top: 70px;
}
.overview-block-title {
  margin: 0 0 20px;
  font-size: 32px;
  font-weight: normal;
  letter-spacing: 0.04em;
  color: #333;
}
.overview-block-body {
  margin: 0;
}
/* 行の高さ・余白・区切り線を共通化（overview-info-row と overview-block-item） */
.overview-info-row, .overview-block-item {
  height: 90px;
  min-height: 90px;
  padding: 16px 0;
  box-sizing: border-box;
  border-bottom: 1px solid #333;
  margin: 0;
  align-items: center;
}
.overview-block-item {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #333;
}
.overview-disclosure-link {
  font-size: 16px;
  color: #333;
  text-decoration: none;
}
.overview-disclosure-link:hover {
  text-decoration: underline;
}
.overview-disclosure-pdf {
  display: block;
  width: 35px;
  height: auto;
  object-fit: contain;
}
.overview-info {
  margin: 0;
}
.overview-info-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 24px;
}
.overview-info-row:first-child {
  border-top: 1px solid #333;
}
.overview-info-label {
  margin: 0;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #333;
}
.overview-info-value {
  margin: 0;
  line-height: 1.6;
  color: #333;
}
.overview-info-value a {
  color: #333;
}
.overview-info-value a:hover {
  text-decoration: none;
}
/* 周辺地図ブロック内のパーツ */
.overview-map-head {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 24px;
  margin-top: 100px;
}
.overview-map-head .overview-block-title {
  margin: 0;
}
.overview-map-head .overview-map-note {
  margin: 0;
}
.overview-map-note {
  margin: 0 0 24px;
  font-weight: normal;
  color: #666;
  letter-spacing: 0.02em;
}
.overview-map-embed {
  width: 100%;
  overflow: hidden;
  background: #fff;
}
.overview-map-embed iframe {
  display: block;
  width: 100%;
  height: 450px;
  border: 0;
}
.map-detail a {
  text-decoration: none;
}
.map-detail a:hover {
  text-decoration: underline;
  color: #666;
}
@media (max-width: 768px) {
  .overview-section .mt100 {
    margin-top: 0px !important;
  }
  .overview-page .overview-section {
    padding-top: 0px;
  }
  .overview-section {
    margin-top: 30px !important;
  }
  .overview-section .under-section-body {
    max-width: none;
    margin-left: 0;
    font-size: 12px;
  }
  .overview-image {
    margin-top: 50px;
    margin-bottom: 50px;
  }
  .overview-block-title {
    font-size: 20px;
    margin-bottom: 16px;
  }
  .overview-info-row, .overview-block-item {
    height: 60px;
    min-height: 60px;
    padding: 12px 0;
    font-size: 12px;
  }
  .overview-block-item {
    padding: 15px 0;
  }
  .overview-disclosure-link {
    font-size: 12px;
  }
  .overview-info-row {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 12px;
  }
  .overview-disclosure-pdf {
    width: 33px;
  }
  .overview-image img {
    /* height: 200px; */
    object-fit: cover;
  }
  .overview-map-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 16px;
    margin-top: 50px;
  }
  .overview-map-embed iframe {
    height: 300px;
  }
}
/* ========================================
   下層ページ共通：白コンテナ（お問い合わせ・プライバシーポリシー等）
   背景・ヘッダ/フッターとの間隔・白いコンテナを共通化
   ======================================== */
.contact-page main, .privacy-page main {
  background-color: #f8f6f2;
  padding-top: 200px;
  padding-bottom: 100px;
}
.under-content-box {
  margin: 0 auto;
  padding: 80px 100px;
  background-color: #fff;
  box-sizing: border-box;
  border-radius: 5px;
}
/* ========================================
   お問い合わせページ（contact）
   ======================================== */
.contact-container {
  /* レイアウトは .under-content-box で共通化 */
}
.contact-header {
  text-align: center;
  margin-bottom: 70px;
}
.contact-header-thanks {
  text-align: center;
  margin-bottom: 0px;
}
.contact-title {
  margin: 0 0 50px;
  font-size: 36px;
  font-weight: normal;
  color: #333;
  letter-spacing: 0.04em;
}
.contact-title-check {
  margin: 0 0 16px;
  font-size: 36px;
  font-weight: normal;
  color: #333;
  letter-spacing: 0.04em;
}
.contact-thanks-title {
  font-size: 24px;
  font-weight: normal;
  color: #333;
  letter-spacing: 0.04em;
}
.contact-subtitle {
  margin: 0 0 60px;
  font-size: 15px;
  font-weight: normal;
  color: #292929;
  letter-spacing: 0.04em;
}
.contact-lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}
.contact-form-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px;
  margin: 20px 0;
}
.contact-submit-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  margin-top: 90px;
}
.wpcf7-spinner {
  display: none;
}
.contact-form-label-wrap {
  flex: 0 0 200px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  justify-content: space-between;
}
.contact-form-label {
  font-size: 15px;
  color: #333;
  cursor: pointer;
}
.contact-required {
  display: inline-block;
  padding: 3px 10px;
  font-size: 12px;
  color: #333;
  background-color: #e0e0e0;
  border-radius: 99px;
  flex-shrink: 0;
}
.contact-form-input {
  flex: 1;
  min-width: 0;
}
.contact-form-confirm {
  color: #333;
  padding: 10px 15px;
  border-radius: 5px;
}
.contact-input, .contact-select, .contact-textarea {
  width: 100%;
  padding: 10px 15px;
  font-size: 15px;
  color: #333;
  background-color: #fff;
  border: 1px solid #dedede;
  border-radius: 0;
  box-sizing: border-box;
  font-family: inherit;
  border-radius: 5px;
}
.contact-input:focus, .contact-select:focus, .contact-textarea:focus {
  outline: none;
  border-color: #999;
}
.contact-select {
  cursor: pointer;
  appearance: auto;
}
.contact-textarea {
  min-height: 160px;
  resize: vertical;
  border-radius: 5px;
}
.contact-privacy-text {
  margin: 50px 0;
  font-size: 14px;
  color: #333;
  text-align: center;
}
.wpcf7-list-item-label a {
  text-decoration: underline;
}
.wpcf7-list-item-label a:hover {
  text-decoration: none;
  color: #666;
}
.contact-privacy-check {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 50px;
}
.contact-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
}
.contact-privacy-label {
  font-size: 15px;
  color: #333;
  cursor: pointer;
}
.contact-privacy-label a {
  color: #333;
  text-decoration: underline;
}
.contact-privacy-label a:hover {
  text-decoration: none;
}
.contact-submit-wrap {
  text-align: center;
}
/* 確認画面へ：TOPの .section-news .news-btn-wrap .btn-primary と同じサイズ・テキスト中央・矢印右端 */
.contact-submit-wrap .btn-contact {
  display: block;
  width: 250px;
  height: 50px;
  padding: 0 30px 0 0;
  box-sizing: border-box;
  font-size: 13px;
  letter-spacing: 0.2em;
  font-family: inherit;
  margin: 0 auto;
  border-radius: 99px;
  cursor: pointer;
}
.contact-prev-wrap .btn-contact {
  display: block;
  width: 250px;
  height: 50px;
  padding: 0 30px 0 0;
  box-sizing: border-box;
  font-size: 13px;
  letter-spacing: 0.2em;
  font-family: inherit;
  margin: 0 auto;
  border-radius: 99px;
  cursor: pointer;
}
.contact-submit-wrap .btn-contact > span:first-child {
  position: absolute;
  left: 50%;
  top: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.contact-prev-wrap .btn-contact > span:first-child {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.contact-submit-wrap .btn-contact .btn-primary-icon {
  position: absolute;
  right: 15px;
  top: 45%;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
  width: 15px;
  text-align: center;
  font-size: 14px;
  pointer-events: none;
}
/* 親：基準 */
.contact-submit-wrap.submit-overlay {
  display: block;
  position: relative;
}
/* 横並びのときだけ */
.contact-submit-actions .contact-submit-wrap.submit-overlay {
  width: fit-content;
  margin: 0;
}
/* 実体（CF7 submit input）を上に被せる */
.contact-submit-wrap.submit-overlay .btn-contact-real {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 2;
  cursor: pointer;
  margin: 0;
  padding: 0;
  border: 0
}
.contact-prev-wrap .btn-contact-prev-real {
  position: absolute;
  left: 0;
  top: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 2;
  cursor: pointer;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.contact-prev-wrap .btn-contact {
  background: #fff;
  border: 1px solid #ccc;
}
.contact-prev-wrap .btn-contact * {
  color: #333;
}
/* 見た目ボタンは下に置く */
.contact-prev-wrap .btn-contact {
  position: relative;
  z-index: 1;
  pointer-events: none;
}
.btn-contact-prev {
  padding: 12px 20px;
  cursor: pointer;
}
.contact-prev-wrap {
  position: relative;
  display: inline-block;
}
.contact-prev-wrap .btn-primary-icon {
  position: absolute;
  left: 15px;
  top: 45%;
  transform: translateY(-50%);
  pointer-events: none;
  width: 15px;
  text-align: center;
  font-size: 14px;
  color: #333;
}
.contact-submit-actions .contact-prev-wrap {
  width: fit-content;
}
.contact-submit-actions input.btn-contact-prev, .contact-submit-actions .btn-contact-prev {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 250px;
  height: 50px;
  padding: 0 30px 0 0;
  box-sizing: border-box;
  border-radius: 99px;
  border: none;
  cursor: pointer;
  background: #666;
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.2em;
  font-family: inherit;
  text-align: center;
  line-height: 50px;
}
.contact-submit-wrap.submit-ov.btn-contact::beforeerlay .btn-contact {
  position: relative;
  z-index: 1;
  pointer-events: none;
}
.contact-submit-wrap.submit-overlay:hover .btn-contact::before, .contact-prev-wrap:hover .btn-contact::before {
  -webkit-transform: scaleX(1);
  -ms-transform: scaleX(1);
  transform: scaleX(1);
  -webkit-transform-origin: left center;
  -ms-transform-origin: left center;
  transform-origin: left center;
}
.contact-submit-wrap.submit-overlay:hover .btn-contact, .contact-prev-wrap:hover .btn-contact {
  color: #333;
}
.contact-submit-wrap.submit-overlay:hover .btn-contact *, .contact-prev-wrap:hover .btn-contact * {
  color: #333;
}
.contact-prev-wrap .btn-contact::before {
  background: #333;
}
.contact-prev-wrap:hover .btn-contact::before {
  background: #333;
  transform: scaleX(1);
  transform-origin: left center;
}
.contact-prev-wrap:hover .btn-contact {
  color: #fff;
}
.contact-prev-wrap:hover .btn-contact * {
  color: #fff;
}
.wpcf7 form .wpcf7-response-output {
  text-align: center;
}
@media (max-width: 768px) {
  .contact-page .site-header, .privacy-page .site-header {
    background: #f2f2e9;
    border-bottom-color: rgba(0, 0, 0, 0.08);
  }
  .contact-page main, .privacy-page main {
    padding-top: 100px;
    padding-bottom: 60px;
    background-color: #f8f6f2;
  }
  .under-content-box {
    padding: 32px 20px 40px;
  }
  .contact-header {
    margin-bottom: 32px;
  }
  .contact-title {
    font-size: 1.75rem;
    margin-bottom: 12px;
  }
  .contact-lead {
    font-size: 14px;
    line-height: 1.7;
  }
  .contact-form-row {
    flex-direction: column;
    gap: 6px;
    margin-bottom: 24px;
  }
  .contact-form-label-wrap {
    flex: none;
    padding-top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2px;
  }
  .contact-form-input {
    width: 100%;
  }
  .contact-form-label {
    font-size: 15px;
  }
  .contact-required {
    padding: 2px 8px;
    font-size: 12px;
  }
  .contact-input, .contact-select, .contact-textarea {
    padding: 12px 14px;
    font-size: 16px;
    border-radius: 6px;
    border-color: #ddd;
  }
  .contact-textarea {
    min-height: 140px;
  }
  .contact-privacy-text {
    margin: 32px 0 12px;
    font-size: 14px;
    line-height: 1.7;
  }
  .contact-privacy-check {
    margin-bottom: 36px;
  }
  .contact-submit-wrap .btn-contact {
    width: 100%;
    max-width: 320px;
    height: 52px;
    font-size: 14px;
  }
  .contact-submit-wrap .btn-contact * {
    color: #fff;
  }
  .contact-submit-wrap .btn-contact::before {
    background: #fff;
  }
  .contact-submit-wrap .btn-contact:hover {
    color: #333;
  }
  .contact-submit-wrap .btn-contact:hover * {
    color: #333;
  }
  .contact-submit-wrap.is-arrow {
    position: relative;
    display: inline-block;
    overflow: visible; /* ← これが決定打 */
  }
  /* ボタン本体 */
  .contact-submit-wrap.is-arrow .btn-contact {
    position: relative;
    z-index: 1;
    padding-right: 3em; /* 矢印の分 */
  }
  /* 矢印 */
  .contact-submit-wrap.is-arrow::after {
    content: "›";
    position: absolute;
    right: 1.2em;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 2;
    font-size: 1.2em; /* 好みで */
  }
  .contact-submit-actions {
    flex-direction: column;
    gap: 14px;
    align-items: center;
    margin-top: 50px;
  }
  .contact-submit-actions .contact-submit-wrap.submit-overlay, .contact-submit-actions .contact-prev-wrap {
    width: 100%;
    max-width: 320px;
    margin: 0;
  }
  .contact-submit-actions .contact-submit-wrap .btn-contact, .contact-submit-actions .contact-prev-wrap .btn-contact {
    width: 100%;
    height: 52px;
    font-size: 14px;
    border-radius: 999px;
  }
  .contact-submit-actions .btn-primary-icon {
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
  }
  .contact-submit-wrap.submit-overlay .btn-primary-icon {
    transform: translateY(-50%) scaleX(-1);
  }
  .contact-thanks-title {
    font-size: 16px;
  }
}
/* ========================================
   プライバシーポリシーページ（privacy）
   ======================================== */
.privacy-title {
  margin: 0 0 48px;
  font-size: 36px;
  font-weight: 400;
  color: #333;
  text-align: center;
  letter-spacing: 0.04em;
}
.privacy-section {
  margin-bottom: 40px;
}
.privacy-section:last-child {
  margin-bottom: 0;
}
.privacy-heading {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: bold;
  color: #333;
  letter-spacing: 0.02em;
}
.privacy-text-main {
  line-height: 1.8;
  color: #333;
  font-size: 16px;
  margin-bottom: 73px;
}
.privacy-text {
  line-height: 1.8;
  color: #333;
  font-size: 14px;
}
.privacy-text:last-child {
  margin-bottom: 0;
}
.privacy-list {
  margin: 8px 0 0;
  padding-left: 1.2em;
  font-size: 15px;
  line-height: 1.8;
  color: #333;
}
.privacy-list li {
  list-style: decimal;
}
.privacy-list li:last-child {
  margin-bottom: 0;
}
.privacy-contact {
  margin: 16px 0 0;
  font-size: 15px;
  line-height: 1.9;
  color: #333;
}
@media (max-width: 768px) {
  .privacy-text-main {
    font-size: 14px;
    margin-bottom: 70px;
  }
  .privacy-title {
    font-size: 25px;
    margin-bottom: 32px;
  }
  .privacy-section {
    margin-bottom: 28px;
  }
  .privacy-heading {
    font-size: 14px;
  }
  .privacy-text, .privacy-list {
    font-size: 14px;
  }
}