/* Noah Content Update: 既存TCD/Elementorデザインの補助スタイル */

html,
body {
  overflow-x: hidden;
}

#noah-class-grid,
.noah-admission-wrap,
#noah-home-life,
#noah-social-feeds,
.elementor-page-1461 .elementor-widget-text-editor,
.elementor-page-62 .elementor-widget-text-editor {
  font-family: inherit;
}

.noah-class-intro {
  padding-bottom: 20px;
}

.noah-class-hours {
  align-items: center;
  background: #f6fbff;
  border-radius: 10px;
  display: inline-flex;
  gap: 18px;
  margin-top: 24px;
  padding: 14px 22px;
}

.noah-class-hours strong {
  color: #1167aa;
}

#noah-class-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 auto 90px;
  max-width: 1100px;
  padding: 0 30px;
}

.noah-class-card {
  background: #fff;
  border: 1px solid #e5edf3;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(17, 103, 170, 0.08);
  overflow: hidden;
  padding: 36px;
}

.noah-class-photo {
  display: block;
  height: 250px;
  margin: -36px -36px 28px;
  object-fit: cover;
  width: calc(100% + 72px);
}

.noah-class-hero {
  background-position: center 48% !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
}

.noah-class-card:nth-child(1) { border-top: 6px solid #a6d8f0; }
.noah-class-card:nth-child(2) { border-top: 6px solid #79bce0; }
.noah-class-card:nth-child(3) { border-top: 6px solid #f5ca63; }
.noah-class-card:nth-child(4) { border-top: 6px solid #eaa7bd; }

.noah-class-label,
.noah-section-en {
  color: #1167aa;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  margin: 0 0 8px;
}

.noah-class-card h3 {
  color: #1167aa;
  font-size: 30px;
  margin: 0 0 24px;
}

.noah-class-card h3 span {
  color: #666;
  font-size: 16px;
  font-weight: 500;
}

.noah-class-card dl {
  border-bottom: 1px solid #e5edf3;
  margin: 0 0 24px;
}

.noah-class-card dl div {
  border-top: 1px solid #e5edf3;
  display: grid;
  grid-template-columns: 100px 1fr;
  padding: 13px 0;
}

.noah-class-card dt {
  color: #1167aa;
  font-weight: 700;
}

.noah-class-card dd {
  margin: 0;
}

.noah-class-card h4 {
  font-size: 17px;
  margin: 0 0 12px;
}

.noah-class-card ul {
  margin: 0;
  padding-left: 1.4em;
}

.noah-class-card li {
  line-height: 1.8;
  margin-bottom: 4px;
}

.noah-admission-wrap {
  margin: 70px auto 100px;
  max-width: 1040px;
  padding: 0 30px;
}

.noah-admission-section {
  margin-bottom: 70px;
}

.noah-admission-visual {
  margin: 0 0 70px;
}

.noah-admission-visual img {
  border-radius: 16px;
  display: block;
  height: min(48vw, 520px);
  object-fit: cover;
  width: 100%;
}

.noah-admission-visual figcaption {
  color: #555;
  font-size: 14px;
  line-height: 1.8;
  margin-top: 12px;
  text-align: center;
}

.noah-admission-section h2,
#noah-social-feeds h2 {
  color: #1167aa;
  font-size: 32px;
  line-height: 1.45;
  margin: 0 0 30px;
}

.noah-apply-steps {
  counter-reset: none;
  display: grid;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.noah-apply-steps li {
  align-items: flex-start;
  background: #f7fbfe;
  border-radius: 12px;
  display: grid;
  gap: 20px;
  grid-template-columns: 54px 1fr;
  padding: 24px 28px;
}

.noah-apply-steps li > span {
  color: #e7a9bc;
  font-size: 25px;
  font-weight: 700;
}

.noah-apply-steps strong {
  display: block;
  font-size: 18px;
  margin-bottom: 5px;
}

.noah-apply-steps p {
  line-height: 1.8;
  margin: 0;
}

.noah-application-box {
  background: #fff7fa;
  border-radius: 16px;
  padding: 44px;
  text-align: center;
}

.noah-application-box p {
  line-height: 1.9;
  margin: 0 auto 28px;
  max-width: 720px;
}

.noah-primary-button,
.noah-secondary-button,
.noah-inline-link {
  background: #1167aa;
  border-radius: 999px;
  color: #fff !important;
  display: inline-block;
  font-weight: 700;
  padding: 14px 28px;
  text-decoration: none;
}

.noah-primary-button:hover,
.noah-secondary-button:hover,
.noah-inline-link:hover {
  background: #d71518;
  color: #fff !important;
}

.noah-secondary-button {
  background: #fff;
  border: 2px solid #1167aa;
  color: #1167aa !important;
}

.noah-secondary-button:hover {
  background: #d71518;
  border-color: #d71518;
  color: #fff !important;
}

#noah-home-life {
  background: #fffaf6;
  margin-top: 80px;
  padding: 90px 30px;
}

.noah-life-inner {
  margin: 0 auto;
  max-width: 1160px;
  text-align: center;
}

.noah-life-inner > h2 {
  color: #1167aa;
  font-size: 34px;
  line-height: 1.45;
  margin: 0 0 18px;
}

.noah-life-lead {
  line-height: 2;
  margin: 0 auto 42px;
  max-width: 760px;
}

.noah-life-grid {
  display: grid;
  gap: 16px;
  grid-auto-rows: 220px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.noah-life-item {
  border-radius: 14px;
  grid-column: span 4;
  margin: 0;
  overflow: hidden;
  position: relative;
}

.noah-life-item-1 {
  grid-column: span 8;
  grid-row: span 2;
}

.noah-life-item img {
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
  width: 100%;
}

.noah-life-item:hover img {
  transform: scale(1.025);
}

.noah-life-item figcaption {
  align-items: flex-start;
  background: linear-gradient(transparent, rgba(0, 0, 0, .72));
  bottom: 0;
  color: #fff;
  display: flex;
  flex-direction: column;
  left: 0;
  line-height: 1.5;
  padding: 45px 18px 16px;
  position: absolute;
  right: 0;
  text-align: left;
}

.noah-life-item figcaption strong {
  font-size: 18px;
}

.noah-life-item figcaption span {
  font-size: 12px;
  margin-top: 2px;
}

.noah-life-links {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 38px;
}

.noah-editorial-photo {
  border-radius: 16px;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.noah-method-photo,
.noah-home-about-photo {
  box-shadow: 0 14px 32px rgba(17, 103, 170, .12);
}

.noah-teachers-photo {
  aspect-ratio: 3 / 2;
  object-position: center center;
}

#noah-social-feeds {
  background: #f7fbfe;
  margin-top: 80px;
  padding: 80px 30px;
}

.noah-social-inner {
  margin: 0 auto;
  max-width: 1160px;
  text-align: center;
}

.noah-social-grid {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  text-align: left;
}

.noah-social-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(17, 103, 170, 0.08);
  overflow: hidden;
  padding: 30px;
}

.noah-social-card h3 {
  color: #1167aa;
  font-size: 24px;
  margin: 0 0 20px;
}

.noah-social-card > a {
  color: #1167aa;
  display: inline-block;
  font-weight: 700;
  margin-top: 20px;
}

.noah-feed-content {
  max-height: 520px;
  overflow: auto;
}

#noah-social-feeds #sbi_mod_error {
  display: none !important;
}

.elementor-page-1461 .elementor-widget-text-editor p,
.elementor-page-62 .elementor-widget-text-editor p,
.elementor-page-1461 .elementor-widget-text-editor li,
.elementor-page-62 .elementor-widget-text-editor li {
  line-height: 2 !important;
}

#footer_content_inner .item:only-child {
  float: none !important;
  margin: 0 auto !important;
  max-width: 720px;
  width: 100% !important;
}

#footer_menu,
#footer_menu a,
#footer_contact_area,
#footer_contact_area a {
  pointer-events: auto !important;
  position: relative;
  z-index: 5;
}

@media (max-width: 767px) {
  #noah-class-grid,
  .noah-social-grid {
    grid-template-columns: 1fr;
  }

  #noah-class-grid,
  .noah-admission-wrap {
    padding-left: 20px;
    padding-right: 20px;
  }

  .noah-class-card,
  .noah-application-box,
  .noah-social-card {
    padding: 26px 22px;
  }

  .noah-class-photo {
    height: 220px;
    margin: -26px -22px 24px;
    width: calc(100% + 44px);
  }

  .noah-class-hours {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .noah-admission-section h2,
  #noah-social-feeds h2 {
    font-size: 25px;
  }

  .noah-apply-steps li {
    grid-template-columns: 44px 1fr;
    padding: 20px;
  }

  #noah-social-feeds {
    padding: 60px 20px;
  }

  #noah-home-life {
    margin-top: 60px;
    padding: 65px 20px;
  }

  .noah-life-inner > h2 {
    font-size: 25px;
  }

  .noah-life-grid {
    display: grid;
    grid-auto-rows: 245px;
    grid-template-columns: 1fr;
  }

  .noah-life-item,
  .noah-life-item-1 {
    grid-column: auto;
    grid-row: auto;
  }

  .noah-life-links {
    align-items: stretch;
    flex-direction: column;
  }

  .noah-life-links a {
    text-align: center;
  }

  .noah-admission-visual {
    margin-bottom: 50px;
  }

  .noah-admission-visual img {
    height: 64vw;
  }
}

/* ---- アクセスページ ---- */
.noah-access-wrap {
  margin: 0 auto 90px;
  max-width: 1000px;
  padding: 50px 30px 0;
}

.noah-access-section {
  background: #fff;
  border: 1px solid #f0e6dc;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(17, 103, 170, 0.08);
  margin-bottom: 34px;
  padding: 44px;
}

.noah-access-section h2 {
  color: #1167aa;
  font-size: 32px;
  line-height: 1.45;
  margin: 0 0 24px;
}

.noah-access-section p {
  font-size: 17px;
  line-height: 1.9;
  margin: 0 0 20px;
}

.noah-access-lead {
  margin-bottom: 30px !important;
}

.noah-access-info {
  border-top: 1px solid #eef2f5;
  margin: 0;
}

.noah-access-info > div {
  border-bottom: 1px solid #eef2f5;
  display: grid;
  gap: 16px;
  grid-template-columns: 140px 1fr;
  padding: 18px 4px;
}

.noah-access-info dt {
  color: #1167aa;
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}

.noah-access-info dd {
  font-size: 17px;
  line-height: 1.8;
  margin: 0;
}

.noah-access-tel {
  color: #1167aa !important;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}

.noah-access-map {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.noah-access-map::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}

.noah-access-map iframe {
  border: 0;
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

.noah-access-map-note {
  color: #555;
  font-size: 16px !important;
  margin: 18px 0 24px !important;
}

.noah-access-visit {
  background: #fffaf6;
}

.noah-access-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}

@media (max-width: 767px) {
  .noah-access-wrap {
    margin-bottom: 60px;
    padding: 30px 20px 0;
  }

  .noah-access-section {
    margin-bottom: 24px;
    padding: 26px 22px;
  }

  .noah-access-section h2 {
    font-size: 25px;
  }

  .noah-access-info > div {
    gap: 4px;
    grid-template-columns: 1fr;
    padding: 16px 2px;
  }

  .noah-access-map::before {
    padding-top: 75%;
  }

  .noah-access-buttons {
    flex-direction: column;
  }

  .noah-access-buttons a {
    text-align: center;
  }
}

/* ---- 代表挨拶ページ（page ID 62）の可読性改善 ----
   実測課題: 本文色#7A7A7A=白背景とのコントラスト約4.3:1（WCAG AA 4.5:1未満）／
   1行65文字（日本語適正の約1.5倍）／段落間マージン0px。
   Elementorの元データは変更せず、表示スタイルのみ補正する。 */
.elementor-page-62 .elementor-widget-text-editor,
.elementor-page-62 .elementor-widget-text-editor p {
  color: #4a4a4a;
}

.elementor-page-62 .elementor-widget-text-editor p {
  font-size: 17px;
  line-height: 2;
  margin-bottom: 0.85em;
  max-width: 720px;
}

@media (max-width: 767px) {
  .elementor-page-62 .elementor-widget-text-editor p {
    font-size: 16px;
    line-height: 1.9;
    max-width: 100%;
  }
}

/* ---- オンライン願書（Tayori） ---- */
.noah-application-notes {
  display: block;
  list-style: none;
  margin: 0 auto 32px;
  max-width: 640px;
  padding: 0;
  text-align: left;
  width: -moz-fit-content;
  width: fit-content;
}

.noah-application-notes li {
  font-size: 16px;
  line-height: 1.85;
  margin-bottom: 8px;
  padding-left: 1.4em;
  position: relative;
}

.noah-application-notes li::before {
  color: #1167aa;
  content: "・";
  left: 0;
  position: absolute;
}

.noah-application-form {
  background: #fff;
  border-radius: 14px;
  margin: 0 auto;
  max-width: 860px;
  overflow: hidden;
}

.noah-application-form iframe {
  border: 0;
  display: block;
  height: 1600px;
  width: 100%;
}

.noah-application-fallback {
  font-size: 15px !important;
  margin-top: 18px !important;
}

@media (max-width: 767px) {
  .noah-application-notes li {
    font-size: 15px;
  }

  .noah-application-form iframe {
    height: 1900px;
  }
}

/* ---- SNSセクション見出しを他セクション（■お知らせ / INFORMATION）と揃える ---- */
.noah-section-label {
  align-items: center;
  color: #333;
  display: flex;
  font-size: 15px;
  font-weight: 700;
  gap: 10px;
  justify-content: center;
  margin: 0 0 10px;
}

.noah-section-mark {
  background: #E571A6;
  display: inline-block;
  flex: none;
  height: 14px;
  width: 14px;
}

.noah-social-lead {
  font-size: 17px;
  line-height: 1.9;
  margin: 0 0 30px;
}

/* 追加した「動くピンクの星」はElementorの既存星と同じ見え方に揃える */
.noah-star-divider {
  margin: 0 auto;
  max-width: 90px;
  text-align: center;
  width: 100%;
}

.noah-star-divider img {
  height: auto;
  max-width: 100%;
}

.noah-method-reference {
  font-size: 15px;
  line-height: 1.9;
  margin-top: 24px;
}

@media (max-width: 767px) {
  .noah-star-divider {
    max-width: 64px;
  }

  .noah-social-lead {
    font-size: 16px;
  }
}
