/* ============================================================
 * TOP ページ専用 CSS
 * Figma: weMbv5Gyjtk9YIJKwOcv1Q / node 1152:2564
 * ============================================================ */

/* ページタイトル非表示・パディング除去 */
.aoi-page-top .c-pageTitle {
  display: none;
}
#body_wrap.aoi-page-top #content.l-content {
  padding-top: 0;
}
.aoi-page-top .l-mainContent__inner {
  padding-top: 0;
}

/* ============================================================
 * front-page コンテンツラッパー
 * .post_content を使うことで style.css の en-title::before が発火する
 * ============================================================ */
.aoi-front-page-content {
  /* post_content 既定の上下パディングを除去 */
  padding-top: 0 !important;
}

/* FV 直後の空 wp-block-group マージンをゼロに */
.aoi-front-page-content > .aoi-fv-sp + * {
  margin-top: 0 !important;
}

/* ============================================================
 * 旧テーマ由来 h2 / h3 ティール背景・border 装飾を除去
 * ============================================================ */
.aoi-page-top .aoi-front-page-content h2.simple-h2 {
  background: none;
  padding-left: 0;
  padding-right: 0;
  margin-top: 50px;
  margin-bottom: 60px;
  font-size: 26px;
}
.aoi-page-top .aoi-front-page-content h2.simple-h2::before {
  border-top: none;
  border-bottom: none;
  height: auto;
}
.aoi-page-top .aoi-front-page-content h3 {
  padding: 0;
}
.aoi-page-top .aoi-front-page-content h3::before {
  display: none;
}
.aoi-page-top .aoi-front-page-content h4 {
  padding: 0;
  border-left: none;
}

/* ============================================================
 * Intro セクション (.aoi-top-intro)
 * Figma: 1152:2602
 * ============================================================ */
.aoi-top-intro {
  margin: 60px 0 80px;
}

/* ============================================================
 * Feature セクション (.aoi-top-feature)
 * ============================================================ */
.aoi-top-feature {
  margin-bottom: 0;
}

/* ============================================================
 * Lesson タブセクション (.aoi-top-lesson-section)
 * Figma: 1152:2644
 * タブバー: bg #e5e5e5 rounded-top-12px / アクティブタブ: bg white h 76px
 * パネル: border 1px #e5e5e5 / padding 40px 50px / image + text
 * ============================================================ */
.aoi-top-lesson-section {
  margin-bottom: 0;
}

.aoi-top-lesson-tab {
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  overflow: hidden;
}

.aoi-top-lesson-tab__bar {
  display: flex;
  align-items: center;
  background: #e5e5e5;
  padding: 12px;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.aoi-top-lesson-tab__bar::-webkit-scrollbar {
  display: none;
}

.aoi-top-lesson-tab__btn {
  flex: 1;
  min-width: 160px;
  min-height: 76px;
  height: auto;
  -webkit-appearance: none;
  appearance: none;
  border: none;
  background: #e5e5e5;
  border-radius: 12px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 500;
  color: #1c4660;
  font-family: inherit;
  transition: background 0.2s;
  padding: 12px 16px;
  white-space: normal;
  box-sizing: border-box;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.4;
}

/* タブ間のセパレーター線 */
.aoi-top-lesson-tab__btn + .aoi-top-lesson-tab__btn::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 65px;
  background: rgba(28, 70, 96, 0.25);
  pointer-events: none;
}

.aoi-top-lesson-tab__btn.is-active {
  background: #fff;
  font-weight: 700;
}

.aoi-top-lesson-tab__body {
  background: #fff;
}

.aoi-top-lesson-tab__panel {
  display: none;
}

.aoi-top-lesson-tab__panel.is-active {
  display: block;
}

.aoi-top-lesson-tab__panel-inner {
  display: flex;
  gap: 40px;
  padding: 50px 50px 50px 40px;
  align-items: center;
}

.aoi-top-lesson-tab__img {
  flex: 1 0 0;
  min-width: 0;
  height: 440px;
  margin: 0;
}

.aoi-top-lesson-tab__img img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  display: block;
  object-fit: cover;
}

.aoi-top-lesson-tab__text {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.aoi-top-lesson-tab__text h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1c4660;
  margin: 0 !important;
  padding: 0 !important;
  letter-spacing: 0.1em;
  line-height: 1.8;
}

.aoi-top-lesson-tab__text h3::before {
  display: none !important;
}

.aoi-top-lesson-tab__text p {
  font-size: 16px;
  line-height: 1.76;
  letter-spacing: 0.1em;
  color: #1c4660;
  margin: 0;
}

/* ============================================================
 * セクション間スペーサー
 * ============================================================ */
.aoi-spacer-pc {
  height: 80px;
}

/* ============================================================
 * Teachers / Voice セクション
 * ============================================================ */
.aoi-top-teachers-section,
.aoi-top-voice-section {
  margin-bottom: 0;
}

/* ============================================================
 * News セクション
 * ============================================================ */
.aoi-top-news-section {
  position: relative;
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
  padding: 80px;
  background-size: cover;
  background-position: center;
  box-sizing: border-box;
}

.aoi-top-news-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(245, 245, 245, 0.6);
  pointer-events: none;
}

.aoi-top-news-inner {
  background: #f1f8fa;
  border-radius: 24px;
  padding: 50px;
  position: relative;
  z-index: 1;
}

.aoi-top-news-layout {
  display: flex;
  gap: 106px;
  align-items: flex-start;
}

.aoi-top-news-left {
  flex: 0 0 263px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 33px;
}

.aoi-top-news-right {
  flex: 1;
  min-width: 0;
}

.aoi-top-news-item {
  background: #fff;
  border-radius: 16px;
  margin-bottom: 12px;
}

.aoi-top-news-item:last-child {
  margin-bottom: 0;
}

.aoi-top-news-link {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 30px;
  text-decoration: none;
  color: #1c4660;
}

.aoi-top-news-date {
  font-size: 12px;
  color: #888;
  white-space: nowrap;
  flex-shrink: 0;
}

.aoi-top-news-cat {
  background: #1c4660;
  color: #fff;
  border-radius: 24px;
  padding: 8px 15px;
  font-size: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

.aoi-top-news-title {
  font-size: 15px;
  font-weight: 500;
  flex: 1 0 0;
  min-width: 0;
}

.aoi-top-news-arrow {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 14px;
  color: #1c4660;
}

/* ============================================================
 * SP レスポンシブ (max-width: 599px)
 * ============================================================ */
@media (max-width: 599px) {
  .aoi-top-lesson-tab__panel-inner {
    flex-direction: column;
    padding: 24px 20px;
    gap: 20px;
  }

  .aoi-top-lesson-tab__img {
    flex: none;
    width: 100%;
    height: 240px;
  }

  .aoi-top-lesson-tab__bar {
    padding: 8px;
    gap: 6px;
  }

  .aoi-top-lesson-tab__btn {
    min-width: 100px;
    height: 52px;
    font-size: 12px;
    padding: 0 10px;
    border-radius: 8px;
  }

  .aoi-top-lesson-tab__btn + .aoi-top-lesson-tab__btn::before {
    left: -4px;
    height: 40px;
  }

  .aoi-spacer-pc {
    display: none;
  }

  .aoi-top-news-section {
    padding: 40px 20px;
  }

  .aoi-top-news-inner {
    padding: 20px;
  }

  .aoi-top-news-layout {
    flex-direction: column;
    gap: 24px;
  }

  .aoi-top-news-left {
    flex: none;
    width: 100%;
    gap: 16px;
  }

  .aoi-top-news-link {
    flex-wrap: wrap;
    padding: 16px 20px;
    gap: 8px;
  }

  .aoi-top-news-arrow {
    display: none;
  }
}
/* ============================================================
 * About ページ専用 CSS
 * Figma: weMbv5Gyjtk9YIJKwOcv1Q / node 1741:12893
 * ============================================================ */

/* ページタイトル非表示・パディング除去 */
.aoi-page-about .c-pageTitle {
  display: none;
}
/* l-content の padding-top を除去してFVをヘッダー直下に配置 */
#body_wrap.aoi-page-about #content.l-content {
  padding-top: 0;
}
.aoi-page-about .l-mainContent__inner {
  padding-top: 0;
}

/* ============================================================
 * About FV (.aoi-about-fv) — Figma node 1741:12902
 * ============================================================ */

.aoi-about-fv {
  position: relative;
  width: calc(100vw - 30px);
  max-width: calc(100vw - 30px);
  margin-left: calc(50% - 50vw + 15px);
  margin-right: calc(50% - 50vw + 15px);
  aspect-ratio: 1472 / 380;
  overflow: hidden;
}

@media (max-width: 959px) {
  .aoi-about-fv {
    margin-left: calc(50% - 50vw + 15px) !important;
    margin-right: calc(50% - 50vw + 15px) !important;
  }
}

@media (max-width: 599px) {
  .aoi-about-fv {
    margin-left: calc(50% - 50vw + 15px) !important;
    margin-right: calc(50% - 50vw + 15px) !important;
    aspect-ratio: 350 / 263;
  }
}

.aoi-about-fv__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.aoi-about-fv picture {
  display: block;
  height: 100%;
  width: 100%;
}

.aoi-about-fv__deco {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: none;
  display: block;
}

.aoi-about-fv__deco--h1 { width: 8.13%; left: 21.3%; top: 31.7%; }
.aoi-about-fv__deco--h2 { width: 4.43%; left: 72.1%; top: 23.4%; }
.aoi-about-fv__deco--h3 { width: 4.43%; left: 25.3%; top: 69.3%; }
.aoi-about-fv__deco--h4 { width: 8.07%; left: 80.2%; top: 50.1%; }

.aoi-about-fv__deco--r1 { width: 7.08%; left: 89.6%; top: 20.2%; }
.aoi-about-fv__deco--r2 { width: 9.85%; left: 10.75%; top: 68.5%; }
.aoi-about-fv__deco--r3 { width: 4.10%; left: 86.1%; top: 76.4%; }
.aoi-about-fv__deco--r4 { width: 4.10%; left: 12.8%; top: 16.8%; }

.aoi-about-fv__en,
.aoi-about-fv__ja {
  position: absolute;
  margin: 0;
  line-height: 1;
  white-space: nowrap;
}

.aoi-about-fv__en {
  left: 28%;
  top: 30%;
  font-family: 'Oooh Baby', cursive;
  font-size: 6.35vw;
  color: #e7f4b3;
  letter-spacing: -0.05em;
  transform: rotate(-9.26deg);
}

.aoi-about-fv__ja {
  left: 38%;
  top: 48%;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 1.72vw;
  color: #ffffff;
  letter-spacing: 0.1em;
}

@media (max-width: 599px) {
  .aoi-about-fv__en {
    font-size: 48px;
    left: 20%;
    top: 32%;
    transform: rotate(-13.37deg) skewX(-6.99deg) scaleY(0.99);
  }
  .aoi-about-fv__ja {
    font-size: 24px;
    letter-spacing: 2.4px;
    line-height: 1.4;
    left: 0;
    right: 0;
    top: 40%;
    margin-left: auto;
    margin-right: auto;
    width: 253px;
    transform: none;
    white-space: normal;
    text-align: center;
  }

  .aoi-about-fv__deco--h1 { width: 22.3%; left: 21.7%; top: 76.8%; }
  .aoi-about-fv__deco--h2 { width: 19.1%; left: 57.9%; top: 41.3%; }
  .aoi-about-fv__deco--h3 { width: 14.3%; left: 85.1%; top: 20.2%; }
  .aoi-about-fv__deco--h4 { display: none; }
  .aoi-about-fv__deco--r1 { width: 26.9%; left: 80.9%; top: 73.4%; }
  .aoi-about-fv__deco--r2 { width: 17.7%; left: 15.7%; top: 17.9%; }
  .aoi-about-fv__deco--r3 { display: none; }
  .aoi-about-fv__deco--r4 { display: none; }
}

/* ============================================================
 * About コンテンツレイアウト
 * ============================================================ */

/* ===== コンテンツ背景：グラジェント（全幅） + 装飾円 ===== */
/* グラジェントは全幅コンテナに適用 */
#body_wrap.aoi-page-about #content {
  background: linear-gradient(204deg, #f1f8fa 38.41%, #ffffff 91.05%);
}

/* 装飾円の絶対配置基点 */
.aoi-page-about .aoi-about-content {
  position: relative;
}

/* セクション別背景装飾リング — Figma節点から位置情報取得 */
.aoi-section-deco-wrap {
  position: relative;
}

.aoi-section-deco {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: -1;
  opacity: 0.8;
}

/* プロフィールセクション: Figma 1741:12962 / x=-420, y=190, size=988 */
.aoi-section-deco--profile {
  width: 988px;
  height: 988px;
  left: -420px;
  top: 190px;
}

/* サービスセクション: Figma 1741:12982 / x=835+224=1059, y=164, size=1115 (右側) */
.aoi-section-deco--service {
  width: 1115px;
  height: 1115px;
  left: 1059px;
  top: 164px;
}

/* サービスセクション: Figma 1741:12981 / x=-271+224=-47, y=1258, size=761, rot=-14.69° (左下・白) */
.aoi-section-deco--service-white {
  width: 761px;
  height: 761px;
  left: -47px;
  top: 1258px;
  transform: rotate(-14.69deg);
  opacity: 0.9;
}

/* 料金セクション: Figma 1741:13031 / x=996, y=725, size=840 (右側) */
.aoi-section-deco--price {
  width: 840px;
  height: 840px;
  left: 996px;
  top: 725px;
}

@media (max-width: 599px) {
  .aoi-section-deco {
    display: none;
  }
}

/* ===== セクションタイトル 2行構成 (日本語 h2 + 英語 p) ===== */
/* Figma: flex-col / gap 13px / center — node 1741:12917 */
.aoi-section-title-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  text-align: center;
  margin: 70px 0;
}

/* 旧テーマ由来 h2 ティール背景・白文字・padding を打ち消す */
.aoi-page-about .aoi-section-title {
  margin: 0;
  padding: 0;
  background: none;
  color: #1c4660;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-align: center;
}
.aoi-page-about .aoi-section-title::before {
  border-top: none;
  border-bottom: none;
  height: auto;
}

/* 英語サブタイトル (Oooh Baby / #17bfbd) */
.aoi-section-en {
  font-family: 'Oooh Baby', cursive;
  font-size: 24px;
  color: #17bfbd;
  line-height: 1;
  margin: 0;
  font-style: italic;
}

/* 旧テーマ由来 h3 グラジェント下線・h4 左ボーダーを除去 */
.aoi-page-about .aoi-about-content h3::before {
  display: none;
}
.aoi-page-about .aoi-about-content h3 {
  padding: 0;
}
.aoi-page-about .aoi-about-content h4 {
  padding: 0;
  border-left: none;
}

/* PCスペーサー */
.aoi-spacer-pc {
  height: 100px;
}
@media (max-width: 599px) {
  .aoi-spacer-pc {
    display: none;
  }
}

/* 共通カラムレイアウト */
.aoi-cols {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

@media (max-width: 599px) {
  .aoi-cols {
    flex-direction: column;
    gap: 24px;
  }
}

/* ===== 想いセクション (concept) ===== */
.aoi-cols--concept {
  align-items: center;
  margin-bottom: 0;
}

.aoi-col--concept-text {
  flex: 0 0 60%;
  max-width: 60%;
}

.aoi-col--concept-portrait {
  flex: 0 0 calc(40% - 40px);
  max-width: calc(40% - 40px);
}

.aoi-col--concept-portrait .aoi-image-round img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
}

/* SP: portrait を非表示（テキストカラム内のSP用画像を表示） */
.aoi-about-portrait-sp {
  display: none;
}

@media (max-width: 599px) {
  .aoi-col--concept-text {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .aoi-col--concept-portrait {
    display: none;
  }
  .aoi-about-portrait-sp {
    display: block;
    margin-bottom: 16px;
  }
  .aoi-about-portrait-sp img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
  }
}

/* ===== 選ばれる理由（3カラム）===== */
.aoi-cols--3 {
  align-items: stretch;
  gap: 24px;
}

.aoi-cols--3 > .aoi-col {
  flex: 1 1 0;
}

.aoi-cols--3 .aoi-white-box {
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  padding: 0;
}

.aoi-cols--3 .aoi-white-box .aoi-image-round {
  margin: 0;
}

.aoi-cols--3 .aoi-white-box .aoi-image-round img {
  width: 100%;
  display: block;
  border-radius: 0;
}

.aoi-white-box__body {
  padding: 24px;
  flex: 1;
}

.aoi-num {
  font-size: 40px;
  line-height: 1;
}

@media (max-width: 599px) {
  .aoi-cols--3 {
    gap: 16px;
  }
}

/* ===== 代表プロフィール ===== */
.aoi-cols--profile {
  align-items: flex-start;
  gap: 48px;
}

.aoi-col--profile-img {
  flex: 0 0 35%;
  max-width: 35%;
}

.aoi-col--profile-img img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
}

.aoi-col--profile-text {
  flex: 1;
}

.aoi-about-role {
  margin-bottom: 4px;
}

.aoi-about-name strong {
  font-size: 1.5em;
}

.aoi-about-career {
  margin-top: 24px;
}

@media (max-width: 599px) {
  .aoi-col--profile-img {
    flex: 1 1 100%;
    max-width: 60%;
    margin: 0 auto;
  }
  .aoi-col--profile-text {
    flex: 1 1 100%;
  }
  .aoi-about-name {
    text-align: center;
  }
  .aoi-about-role {
    text-align: center;
  }
}

/* ===== サービス ===== */
.aoi-cols--service {
  gap: 40px;
  align-items: center;
  margin-bottom: 24px;
  border-radius: 16px;
  padding: 32px;
}

.aoi-col--service-img {
  flex: 0 0 30%;
  max-width: 30%;
}

.aoi-col--service-img img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.aoi-col--service-body {
  flex: 1;
}

/* SP: rev レイアウト（画像を後ろに）も縦積みで同じ順に */
@media (max-width: 599px) {
  .aoi-cols--service {
    flex-direction: column;
    padding: 20px;
  }
  .aoi-cols--service-rev {
    flex-direction: column;
  }
  .aoi-col--service-img {
    flex: 1 1 100%;
    max-width: 100%;
    order: -1;
  }
  .aoi-col--service-body {
    flex: 1 1 100%;
  }
}

/* ===== 料金案内 ===== */
.aoi-about-price-img {
  margin: 0 0 16px;
}

.aoi-about-price-img img {
  width: 100%;
  height: auto;
  display: block;
}

.aoi-about-price-img--sp {
  display: none;
}

@media (max-width: 599px) {
  .aoi-about-price-img--pc {
    display: none;
  }
  .aoi-about-price-img--sp {
    display: block;
  }
}
/* ============================================================
 * Teachers ページ専用 CSS
 * Figma: weMbv5Gyjtk9YIJKwOcv1Q / node 1567:11119
 * ============================================================ */

/* ページ背景グラジェント */
#body_wrap.aoi-page-teachers #content {
  background: linear-gradient(204deg, #f1f8fa 38.41%, #ffffff 91.05%);
}

/* ============================================================
 * セクションタイトル (.aoi-section-title-wrap)
 * ============================================================ */
.aoi-page-teachers .aoi-section-title-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  text-align: center;
  margin: 50px 0 40px;
}

.aoi-page-teachers .aoi-section-title {
  margin: 0;
  padding: 0;
  background: none;
  color: #1c4660;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-align: center;
}

.aoi-page-teachers .aoi-section-title::before {
  border-top: none;
  border-bottom: none;
  height: auto;
}

.aoi-page-teachers .aoi-section-en {
  font-family: 'Oooh Baby', cursive;
  font-size: 24px;
  color: #17bfbd;
  line-height: 1;
  margin: 0;
  font-style: italic;
}

/* ============================================================
 * フィルター (.aoi-instructor-filter)
 * ============================================================ */
.aoi-instructor-filter.aoi-white-box {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 20px 24px;
  margin-bottom: 40px;
  border-radius: 16px;
}

.aoi-instructor-filter select,
.aoi-instructor-filter input[type="text"] {
  flex: 1;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #d0e8f0;
  border-radius: 8px;
  font-size: 14px;
  color: #1c4660;
  background: #fff;
  font-family: inherit;
}
.aoi-instructor-filter select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 32px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%231c4660' stroke-width='1.5' d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px 8px;
}

.aoi-instructor-filter__submit button {
  height: 44px;
  padding: 0 24px;
  background: #1c4660;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  -webkit-appearance: none;
  appearance: none;
}

/* ============================================================
 * 講師カードグリッド
 * Figma: 3列 / gap 36px / card width 380px
 * ============================================================ */
.instructor-list {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 36px !important;
  flex-direction: unset !important;
  flex-wrap: unset !important;
}

.instructor-item {
  width: auto !important;
  margin-bottom: 0 !important;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(28, 70, 96, 0.08);
  overflow: hidden;
  display: flex !important;
  flex-direction: column;
  text-align: center;
  padding: 32px 24px 24px;
}

.instructor-item .instructor-thumb {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.instructor-item .instructor-thumb img,
.instructor-item .instructor-thumb .aoi-photo-cover {
  width: 200px !important;
  height: 200px !important;
  object-fit: cover;
  border-radius: 50%;
}
.instructor-item .instructor-thumb .aoi-photo-cover {
  --cont-ratio: 1 !important;
}

.instructor-item .instructor-name {
  font-size: 18px;
  font-weight: 700;
  color: #1c4660;
  margin-bottom: 6px;
}

.instructor-item .instructor-university {
  font-size: 13px;
  color: #17bfbd;
  line-height: 1.5;
  margin-bottom: 12px;
}

.instructor-item .instructor-description {
  font-size: 13px;
  color: #555;
  line-height: 1.75;
  text-align: left;
  flex: 1;
  margin-bottom: 12px;
}

.instructor-item .course-list {
  display: flex !important;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin: 0 0 20px !important;
  font-size: unset !important;
  color: unset !important;
}

.instructor-item .course-list .course {
  background: #e5e5e5 !important;
  color: #1c4660 !important;
  border-radius: 12px !important;
  padding: 3px 10px !important;
  font-size: 12px !important;
  display: inline-block !important;
  margin: 0 !important;
}

.instructor-item .aoi_outline_and_arrow_button {
  margin-top: auto;
}

.instructor-item--hidden {
  display: none !important;
}

/* ============================================================
 * SP (max-width: 599px)
 * ============================================================ */
@media (max-width: 599px) {
  .aoi-instructor-filter.aoi-white-box {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }
  .aoi-instructor-filter select,
  .aoi-instructor-filter input[type="text"] {
    width: 100%;
  }
  .aoi-instructor-filter__submit button {
    width: 100%;
  }
  .instructor-list {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
}
/* ============================================================
 * Voice (合格者の声) ページ専用 CSS
 * ============================================================ */

/* ページ背景グラジェント */
#body_wrap.aoi-page-voice #content {
  background: linear-gradient(204deg, #f1f8fa 38.41%, #ffffff 91.05%);
}

/* ============================================================
 * セクションタイトル (.aoi-section-title-wrap)
 * ============================================================ */
.aoi-page-voice .aoi-section-title-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  text-align: center;
  margin: 50px 0 40px;
}

.aoi-page-voice .aoi-section-title {
  margin: 0;
  padding: 0;
  background: none;
  color: #1c4660;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-align: center;
}

.aoi-page-voice .aoi-section-title::before {
  border-top: none;
  border-bottom: none;
  height: auto;
}

.aoi-page-voice .aoi-section-en {
  font-family: 'Oooh Baby', cursive;
  font-size: 24px;
  color: #17bfbd;
  line-height: 1;
  margin: 0;
  font-style: italic;
}

/* ============================================================
 * フィルター (.aoi-voice-filter)
 * ============================================================ */
.aoi-voice-filter.aoi-white-box {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 20px 24px;
  margin-bottom: 40px;
  border-radius: 16px;
}

.aoi-voice-filter select {
  flex: 1;
  min-height: 44px;
  padding: 4px 32px 4px 12px;
  border: 1px solid #d0e8f0;
  border-radius: 8px;
  font-size: 14px;
  color: #1c4660;
  background-color: #fff;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%231c4660' stroke-width='1.5' d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px 8px;
  font-family: inherit;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.aoi-voice-filter__submit button {
  height: 44px;
  padding: 0 24px;
  background: #1c4660;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  -webkit-appearance: none;
  appearance: none;
}

/* ============================================================
 * 合格者カードグリッド
 * ============================================================ */
.voice-list {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px !important;
  flex-direction: unset !important;
  flex-wrap: unset !important;
}

.voice-item {
  width: auto !important;
  margin-bottom: 0 !important;
  border: 1px solid #b8e8ed;
  border-top: 3px solid #17bfbd;
  border-radius: 16px;
  background: #fff;
  padding: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  background-image: none !important; /* 背景画像はbeforeで実装 */
}

.voice-item::before {
  content: '';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 72px;
  height: 72px;
  background-image: url(/aoi-stage/wp-content/uploads/2026/04/sakura2.png);
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.35;
  pointer-events: none;
}

.voice-item__inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.voice-item__badge-wrap {
  margin-bottom: 4px;
}

.voice-item .voice-graduate-year-and-text {
  display: inline-block !important;
  font-size: 12px;
  background: #e5f5f9;
  border-radius: 10px;
  padding: 4px 10px;
  color: #1c4660;
  margin: 0 !important;
}

.voice-item__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.voice-item .voice-university {
  font-size: 16px !important;
  font-weight: 700;
  color: #1c4660;
  line-height: 1.4;
  margin: 0;
}

.voice-item .voice-faculty {
  font-size: 12px;
  color: #797979;
  margin: 0;
  text-align: left !important;
}

.voice-item .voice-name {
  font-size: 13px;
  font-weight: 500;
  color: #1c4660;
  margin: 0;
  font-size: 14px !important;
}

.voice-item__quote {
  margin: 8px 0;
  border-left: 3px solid #d0e8f0;
  padding-left: 12px;
}

/* staging style.css の .voice-message を上書き */
.voice-item .voice-message {
  font-size: 13px !important;
  color: #555;
  line-height: 1.75 !important;
  text-align: left !important;
  margin: 0 !important;
  border-left: none !important;
  padding: 0 !important;
}

.voice-item .aoi_outline_and_arrow_button {
  margin-top: 16px;
}

.js-voice-item.is-hidden {
  display: none !important;
}

/* ============================================================
 * SP (max-width: 599px)
 * ============================================================ */
@media (max-width: 599px) {
  .aoi-voice-filter.aoi-white-box {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }
  .aoi-voice-filter select,
  .aoi-voice-filter__submit button {
    width: 100%;
  }
  .voice-list {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
}
html {
  scroll-behavior: smooth;
}

/* ============================================================
 * 下層ページ タイトル画像 (.post_content 直下の最初の figure)
 * 対象:
 *   A) pc_only クラスなし (例: about) — figure.wp-block-image:not(.pc_only):first-child
 *   B) pc_only/sp_only ペア (他の下層ページ) — figure.pc_only:first-child + figure.sp_only
 * 全サイズ: 左右15pxインセットつき全幅ブレイクアウト
 *   calc(50% - 50vw) はコンテナ左右パディング (PC:32px / SP:4vw) を自動補正するため
 *   メディアクエリでリセット不要。pc_only / sp_only の表示切替は style.css が担う。
 * ============================================================ */

/* --- 全サイズ共通 breakout -------------------------------- */
.post_content > figure.wp-block-image:not(.pc_only):first-child,
.post_content > figure.wp-block-image.pc_only:first-child,
.post_content > figure.wp-block-image.pc_only:first-child + figure.wp-block-image.sp_only,
.post_content > .page-introduction:first-child > figure.wp-block-image:not(.pc_only):first-child,
.post_content > .page-introduction:first-child > figure.wp-block-image.pc_only:first-child,
.post_content > .page-introduction:first-child > figure.wp-block-image.pc_only:first-child + figure.wp-block-image.sp_only {
  width: calc(100vw - 30px);
  max-width: calc(100vw - 30px);
  margin-left: calc(50% - 50vw + 15px) !important;
  margin-right: calc(50% - 50vw + 15px) !important;
  padding: 0;
  box-sizing: border-box;
  /* WP editor の inline style border-radius を無効化 */
  border-radius: 40px !important;
  position: relative;
  left: 0;
  overflow: hidden;
}

/* PC FV (横長バナー): アップロード画像多数派 1024×292 に合わせる */
.post_content > figure.wp-block-image:not(.pc_only):first-child,
.post_content > figure.wp-block-image.pc_only:first-child,
.post_content > .page-introduction:first-child > figure.wp-block-image:not(.pc_only):first-child,
.post_content > .page-introduction:first-child > figure.wp-block-image.pc_only:first-child {
  aspect-ratio: 1024 / 292;
}

/* SP FV (縦長): SP/タブレットで表示される。アップロード画像 350×263 に合わせる */
.post_content > figure.wp-block-image.pc_only:first-child + figure.wp-block-image.sp_only,
.post_content > .page-introduction:first-child > figure.wp-block-image.pc_only:first-child + figure.wp-block-image.sp_only {
  aspect-ratio: 350 / 263;
}

/* --- 画像共通 ---------------------------------------------- */
.post_content > figure.wp-block-image:not(.pc_only):first-child > img,
.post_content > figure.wp-block-image.pc_only:first-child > img,
.post_content > figure.wp-block-image.pc_only:first-child + figure.wp-block-image.sp_only > img,
.post_content > .page-introduction:first-child > figure.wp-block-image:not(.pc_only):first-child > img,
.post_content > .page-introduction:first-child > figure.wp-block-image.pc_only:first-child > img,
.post_content > .page-introduction:first-child > figure.wp-block-image.pc_only:first-child + figure.wp-block-image.sp_only > img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
  display: block;
  /* WP block-library: .wp-block-image[style*=border-radius] img { border-radius: inherit } を打ち消す */
  border-radius: inherit !important;
}

/* ============================================================
 * 下層ページ共通: FV figure がある場合 旧テーマのページタイトルを非表示
 * pc_only figure が post_content 先頭にあるページにのみ自動適用。
 * privacy / terms 等の FV なしページは :has() が不一致のため影響なし。
 * ============================================================ */
body:has(.post_content > figure.wp-block-image.pc_only:first-child) .c-pageTitle,
body:has(.post_content > .page-introduction:first-child > figure.wp-block-image.pc_only:first-child) .c-pageTitle {
  display: none;
}
body:has(.post_content > figure.wp-block-image.pc_only:first-child) .l-mainContent__inner,
body:has(.post_content > .page-introduction:first-child > figure.wp-block-image.pc_only:first-child) .l-mainContent__inner {
  padding-top: 0;
}


/* ============================================================
 * サービスページ FV (.aoi-service-fv)
 * Figma: 1840:16471 (private-lesson) / 1840:21099 (essay-correction)
 * 背景写真 + デコ円 + テキストオーバーレイ
 * コンテナ基準: 1512×440px (写真エリア 1472×420)
 * ============================================================ */

/* ページタイトル非表示 */
.aoi-page-private-lesson .c-pageTitle,
.aoi-page-essay-correction .c-pageTitle,
.aoi-page-service-new .c-pageTitle {
  display: none;
}
.aoi-page-private-lesson .l-mainContent__inner,
.aoi-page-essay-correction .l-mainContent__inner,
.aoi-page-service-new .l-mainContent__inner {
  padding-top: 0;
}

/* --- PC (≥ 960px) ----------------------------------------- */
.aoi-service-fv {
  position: relative;
  width: calc(100vw - 30px);
  max-width: calc(100vw - 30px);
  margin-left: calc(50% - 50vw + 15px);
  margin-right: calc(50% - 50vw + 15px);
  /* Figma 写真エリア 1472×420 のアスペクト比 */
  aspect-ratio: 1472 / 420;
  overflow: hidden;
}

/* --- タブレット (600px – 959px) ----------------------------- */
@media (max-width: 959px) {
  .aoi-service-fv {
    width: calc(100vw - 30px);
    max-width: calc(100vw - 30px);
    margin-left: calc(50% - 50vw + 15px) !important;
    margin-right: calc(50% - 50vw + 15px) !important;
  }
}

/* --- SP (< 600px) ------------------------------------------ */
@media (max-width: 599px) {
  .aoi-service-fv {
    width: calc(100vw - 30px);
    max-width: calc(100vw - 30px);
    margin-left: calc(50% - 50vw + 15px) !important;
    margin-right: calc(50% - 50vw + 15px) !important;
    aspect-ratio: 350 / 263;
  }
}

/* --- 背景写真 ---------------------------------------------- */
.aoi-service-fv__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* --- デコ円 ------------------------------------------------ */
.aoi-service-fv__deco {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: none;
  display: block;
}

/* Hatch circles (Figma 1512×440 基準 % 換算) */
.aoi-service-fv__deco--h1 { width: 8.1%; left: 17.7%; top: 20.9%; }
.aoi-service-fv__deco--h2 { width: 4.4%; left: 70.3%; top: 19.8%; }
.aoi-service-fv__deco--h3 { width: 4.4%; left: 23.5%; top: 61.4%; }
.aoi-service-fv__deco--h4 { width: 8.1%; left: 76.6%; top: 37.7%; }

/* Ring circles */
.aoi-service-fv__deco--r1 { width: 7.1%; left: 86.6%; top: 12.3%; }
.aoi-service-fv__deco--r2 { width: 9.9%; left:  6.3%; top: 51.4%; }
.aoi-service-fv__deco--r3 { width: 4.1%; left: 84.5%; top: 68.4%; }
.aoi-service-fv__deco--r4 { width: 4.1%; left: 11.2%; top: 14.3%; }

/* --- テキストオーバーレイ ---------------------------------- */
.aoi-service-fv__en,
.aoi-service-fv__ja,
.aoi-service-fv__sub {
  position: absolute;
  margin: 0;
  line-height: 1;
}

/* "Lesson" 英語 (Figma: left:521/1512=34.5%, top:85/440=19.3%) */
.aoi-service-fv__en {
  left: 34.5%;
  top: 19.3%;
  font-family: 'Oooh Baby', cursive;
  /* 96px / 1512px = 6.35vw */
  font-size: 6.35vw;
  color: #e7f4b3;
  letter-spacing: -0.05em;
  white-space: nowrap;
  transform: rotate(-9.26deg);
}

/* 日本語タイトル (Figma: center:761/1512≈50%, top:178/440=40.5%) */
.aoi-service-fv__ja {
  left: 50%;
  top: 40.5%;
  transform: translateX(-50%);
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  /* 26px / 1512px = 1.72vw */
  font-size: 1.72vw;
  color: #ffffff;
  letter-spacing: 0.1em;
  line-height: 1.4;
  white-space: nowrap;
  text-align: center;
}

/* サブタイトル (Figma: top:240/440=54.5%) */
.aoi-service-fv__sub {
  left: 50%;
  top: 54.5%;
  transform: translateX(-50%);
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  /* 14px / 1512px = 0.93vw */
  font-size: max(12px, 0.93vw);
  color: #ffffff;
  letter-spacing: 0.09em;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
}

/* --- SP テキスト上書き ------------------------------------- */
@media (max-width: 599px) {
  .aoi-service-fv__en {
    font-size: 36px;
    left: 15%;
    top: 22%;
    transform: rotate(-9.26deg);
  }
  .aoi-service-fv__ja {
    font-size: 16px;
    letter-spacing: 1.6px;
    top: 42%;
    white-space: normal;
    width: 80%;
  }
  .aoi-service-fv__sub {
    display: none;
  }
}

/* ============================================================
 * 講師詳細ページ: 旧テーマ由来の「関連記事」セクションを非表示
 * 「関連する入試情報」「関連する合格者の声」で代替しているため不要
 * ============================================================ */
.single-instructor .l-articleBottom__section.-related {
  display: none;
}

/* ============================================================
 * 下層ページ共通 FV (.aoi-lower-fv)
 * Figma: mypage 1620:9378 / teachers 1567:11124
 * ============================================================ */

/* ページタイトルを非表示 */
.page-id-119 .c-pageTitle,
.page-id-28  .c-pageTitle,
.page-id-31  .c-pageTitle,
.page-id-33  .c-pageTitle,
.page-id-610 .c-pageTitle,
.page-id-733 .c-pageTitle,
.page-id-785 .c-pageTitle,
.page-id-12  .c-pageTitle,
.home.blog   .c-pageTitle          { display: none; }
.page-id-119 .l-mainContent__inner,
.page-id-28  .l-mainContent__inner,
.page-id-31  .l-mainContent__inner,
.page-id-33  .l-mainContent__inner,
.page-id-610 .l-mainContent__inner,
.page-id-733 .l-mainContent__inner,
.page-id-785 .l-mainContent__inner,
.page-id-12  .l-mainContent__inner,
.home.blog   .l-mainContent__inner { padding-top: 0; }

/* FV コンテナ */
.aoi-lower-fv {
  position: relative;
  width: calc(100vw - 30px);
  max-width: calc(100vw - 30px);
  margin-left:  calc(50% - 50vw + 15px) !important;
  margin-right: calc(50% - 50vw + 15px) !important;
  margin-bottom: 2em;
  aspect-ratio: 1472 / 420;
  border-radius: 40px;
  overflow: hidden;
  /* iOS: border-radius + overflow:hidden + absolute children の描画バグ回避 */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* SP (600px 未満): アスペクト比を portrait に */
@media (max-width: 599px) {
  .aoi-lower-fv {
    aspect-ratio: 350 / 263;
  }
}

/* 背景画像 */
.aoi-lower-fv__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* デコ円 共通 */
.aoi-lower-fv__deco {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: none;
  display: block;
}

/* Hatch circles (about-fv-hatch.svg) — Figma teachers 1567:11124 基準 1472×420 */
.aoi-lower-fv__deco--h1 { width: 8.4%;  left: 18.1%; top: 21.9%; }
.aoi-lower-fv__deco--h2 { width: 4.6%;  left: 72.2%; top: 20.7%; }
.aoi-lower-fv__deco--h3 { width: 4.6%;  left: 24.2%; top: 64.3%; }
.aoi-lower-fv__deco--h4 { width: 8.3%;  left: 78.7%; top: 39.5%; }

/* Ring circles (about-fv-ring.svg) */
.aoi-lower-fv__deco--r1 { width: 7.3%;  left: 88.9%; top: 12.9%; }
.aoi-lower-fv__deco--r2 { width: 10.1%; left:  6.5%; top: 53.8%; }
.aoi-lower-fv__deco--r3 { width: 4.2%;  left: 86.8%; top: 71.7%; }
.aoi-lower-fv__deco--r4 { width: 4.2%;  left: 11.6%; top: 15.0%; }

/* テキストオーバーレイ */
.aoi-lower-fv__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* 英語タイトル (Oooh Baby, 斜め) */
.aoi-lower-fv__en {
  display: block;
  font-family: 'Oooh Baby', cursive;
  font-size: clamp(40px, 6.35vw, 96px);
  color: #e7f4b4;
  letter-spacing: -0.05em;
  transform: rotate(-9.26deg);
  line-height: 1;
}

/* 日本語タイトル */
.aoi-lower-fv__ja {
  font-size: clamp(24px, 1.72vw, 26px);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.1em;
  text-align: center;
  line-height: 1.4;
  margin: 0;
}

/* 説明文 (オプション) */
.aoi-lower-fv__desc {
  font-size: clamp(12px, 0.93vw, 14px);
  font-weight: 400;
  color: #fff;
  text-align: center;
  line-height: 1.8;
  margin: 4px 0 0;
}

/* SP テキスト上書き: flex廃止 → position:absolute 直接配置 (iOS flex+aspect-ratio 描画対策) */
@media (max-width: 599px) {
  .aoi-lower-fv__overlay {
    display: block; /* flex を解除して absolute 配置コンテナに */
  }
  .aoi-lower-fv__en {
    position: absolute;
    left: 18%;
    top: 26%;
    font-size: 40px;
    -webkit-transform: rotate(-9.26deg);
    transform: rotate(-9.26deg);
    transform-origin: left center;
    white-space: nowrap;
  }
  .aoi-lower-fv__ja {
    position: absolute;
    left: 50%;
    top: 54%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    font-size: 24px;
    white-space: normal;
    width: 75%;
    text-align: center;
  }
  .aoi-lower-fv__desc { display: none; }
}
/* ============================================================
 * 共通 CTA (.aoi-cta)
 * template-parts/cta.php と対応
 * ============================================================ */
.aoi-cta {
  position: relative;
  width: calc(100vw - 30px);
  max-width: calc(100vw - 30px);
  margin-left: calc(50% - 50vw + 15px);
  margin-right: calc(50% - 50vw + 15px);
  margin-top: 60px;
  border-radius: 20px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  padding: 80px 40px;
  text-align: center;
  color: #fff;
}

.aoi-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
}

.aoi-cta__inner {
  position: relative;
  z-index: 1;
}

/* 旧テーマ由来 h2 ティール背景・border 装飾を打ち消す */
.aoi-cta .aoi-cta__heading {
  background: none;
  padding: 0;
}
.aoi-cta .aoi-cta__heading::before {
  border-top: none;
  border-bottom: none;
  height: auto;
}

.aoi-cta__heading {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 16px;
}

.aoi-cta__text {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 32px;
}

.aoi-cta__btn {
  display: inline-block;
  background: linear-gradient(135deg, rgb(6, 147, 227) 24%, rgb(155, 81, 224) 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  width: 50%;
  line-height: 3.5;
  text-align: center;
}

.aoi-cta__btn:hover {
  opacity: 0.85;
  color: #fff;
}

.aoi-cta__btn--sp {
  display: none;
}

@media (max-width: 959px) {
  .aoi-cta {
    margin-left: calc(50% - 50vw + 15px) !important;
    margin-right: calc(50% - 50vw + 15px) !important;
  }
}

@media (max-width: 599px) {
  .aoi-cta {
    padding: 48px 24px;
    margin-left: calc(50% - 50vw + 15px) !important;
    margin-right: calc(50% - 50vw + 15px) !important;
  }
  .aoi-cta__heading {
    font-size: 1.5rem;
  }
  .aoi-cta__btn--pc {
    display: none;
  }
  .aoi-cta .aoi-cta__btn--sp {
    display: inline-block;
    width: 75%;
    line-height: 1.7;
    padding: 16px 0;
    margin: 40px 0;
  }
}
/* ─── mypage: FV border-radius を 0 に（Figma 1620:9378） ── */
.aoi-page-mypage .aoi-lower-fv {
  border-radius: 0;
}
