/* ログイン時だけ表示されるWordPress管理バーとの重なりを防ぐ。 */
body.admin-bar #site-header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar #site-header {
    top: 46px;
  }
}

@media (max-width: 600px) {
  body.admin-bar #wpadminbar {
    position: fixed;
  }
}

.nara-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.nara-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}

.reading-section img {
  max-width: 100%;
  height: auto;
}

.nara-news-featured {
  margin: 24px 0;
}

.nara-news-featured img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* 2026-10-08：文字の可読性と入学・資料導線の調整。 */
.about-editorial .about-first-view .campus-photo--message::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background: linear-gradient(180deg, rgb(255 253 248 / 88%) 0%, rgb(255 253 248 / 0%) 34%, rgb(14 35 25 / 0%) 56%, rgb(14 35 25 / 76%) 100%);
  pointer-events: none;
}
.about-editorial .about-first-view .campus-heading,
.about-editorial .about-first-view .campus-catch {
  z-index: 2;
}
.nara-document-link {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-decoration: none;
}
.nara-document-label {
  min-width: 0;
  line-height: 1.7;
}
.nara-document-type {
  flex: 0 0 auto;
  padding: 3px 8px;
  border: 1px solid #c5b58f;
  border-radius: 4px;
  color: #5f481f;
  font-size: 12px;
  line-height: 1.5;
  white-space: nowrap;
}
.top-design-review #nr-course > .nr-grid {
  align-items: start;
}
.top-design-review #nr-course .review-course-year {
  font-size: clamp(3rem, 5vw, 4.5rem);
  padding-top: 32px;
}
.nara-course-facts {
  margin: 24px 0;
  border-top: 1px solid var(--line);
}
.nara-course-facts > div {
  display: grid;
  grid-template-columns: 5em minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.nara-course-facts dt {
  color: var(--brand-deep, #245b46);
  font-weight: 700;
}
.nara-course-facts dd {
  margin: 0;
  line-height: 1.8;
}
.nara-course-note {
  font-size: 14px;
  line-height: 1.8;
}
.nara-course-consult {
  margin: 16px 0 24px;
}
.nara-news-index > .reading-section {
  width: 80%;
  max-width: none;
  min-height: 0;
  padding: 12px 0 56px;
}
.nara-news-index .news-list {
  margin-top: 0;
}
.nara-news-index > .page-title h1 {
  margin-bottom: 24px;
}
@media (min-width: 1100px) {
  .top-design-review .photo-hero .fv-circle--white {
    width: 33.5%;
    left: 1%;
  }
  .top-design-review .photo-hero .fv-circle--green {
    width: 28%;
    left: 9%;
  }
  .top-design-review .photo-hero .hero-copy {
    padding-left: 5.5vw;
    transform: translate(0, 8px);
  }
}
@media (max-width: 768px) {
  .about-editorial .about-first-view .campus-photo--message {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
    overflow: visible;
    background: transparent;
    border-radius: 0;
  }
  .about-editorial .about-first-view .campus-photo--message::after {
    display: none;
  }
  .about-editorial .about-first-view .campus-photo--message > img {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    height: clamp(280px, 82vw, 430px);
    object-fit: cover;
    object-position: 58% center;
    border-radius: 18px;
  }
  .about-editorial .about-first-view .campus-heading {
    position: static;
    grid-column: 1;
    grid-row: 1;
    margin: 0 0 20px;
    color: #245b46;
  }
  .about-editorial .about-first-view .campus-heading > span {
    color: #245b46;
    font-size: 12px;
  }
  .about-editorial .about-first-view .campus-heading h1 {
    margin: 6px 0 0;
    font-size: 28px;
    color: #245b46;
  }
  .about-editorial .about-first-view .campus-catch {
    position: static;
    grid-column: 1;
    grid-row: 3;
    margin: 20px 0 0;
    color: #245b46;
    font-size: 19px;
    line-height: 1.8;
    text-shadow: none;
  }
  .about-editorial .about-first-view .campus-catch > span {
    color: inherit;
  }
  .top-design-review .photo-hero .hero-copy .hero-eyebrow {
    font-size: 13px;
    line-height: 1.6;
  }
  .top-design-review .photo-hero .hero-copy > p:not(.hero-eyebrow) {
    font-size: 14px;
    line-height: 1.8;
  }
  .top-design-review .photo-hero .hero-copy .nr-button {
    min-height: 48px;
    padding: 12px 16px;
    font-size: 14px;
  }
  .top-design-review .photo-hero .photo-toolbar button {
    font-size: 13px;
  }
  .top-design-review #nr-news .nr-row > .nr-button {
    font-size: 14px;
  }
  .top-design-review #nr-course .nr-document a,
  .top-design-review #nr-disclosure .nr-document a {
    min-height: 64px;
    padding-block: 16px;
    font-size: 15px;
  }
  .nara-course-facts > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
}

/* 写真外へ移したSP見出しには、写真上用の光彩と文字の影を残さない。 */
@media (max-width: 768px) {
  .about-editorial .about-first-view .campus-heading::before {
    display: none;
  }
  .about-editorial .about-first-view .campus-heading,
  .about-editorial .about-first-view .campus-catch > span {
    text-shadow: none;
  }
}

/* 2026-10-08：承認済みのPC・SPメインビジュアルとメニュー。 */

/* 承認済み：PCの白い円は背景のみ不透明度90%。 */
@media (min-width: 1100px) {
  .top-design-review .photo-hero .fv-circle--white {
    background: linear-gradient(135deg, rgb(250 251 248 / 90%) 0%, rgb(247 250 245 / 90%) 100%);
  }
}

/* スマホだけ写真を画面端まで広げる。本文と操作ボタンの余白は維持。 */
@media (max-width: 768px) {
  .top-design-review main > section.photo-hero {
    row-gap: 0;
    background: transparent;
  }
  .top-design-review .photo-hero .photo-carousel {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
  }
  .top-design-review .photo-hero .photo-stage {
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 4 / 3;
    border-radius: 0;
  }
  .top-design-review .photo-hero .photo-slide img {
    object-fit: cover;
    object-position: center;
  }
  .top-design-review .photo-hero .photo-toolbar {
    position: static;
    inset: auto;
    width: 100%;
    margin: 0;
    padding: 10px 8%;
    background: transparent;
  }
  .top-design-review .photo-hero .hero-copy {
    margin: 0;
    padding: 4px 6% 32px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .top-design-review .photo-hero .hero-copy .hero-eyebrow {
    margin: 0 0 12px;
  }
  .top-design-review .photo-hero .hero-copy h1 {
    margin: 0 0 20px;
    line-height: 1.5;
  }
  .top-design-review .photo-hero .hero-copy h1::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    margin-top: 16px;
    background: var(--brand-yellow);
  }
  .top-design-review .photo-hero .hero-copy > p:not(.hero-eyebrow) {
    margin: 0 0 20px;
  }
  .top-design-review .photo-hero .hero-copy .nr-button {
    margin: 0;
  }
}

/* 比較用ページでも非表示のメニューを確実に閉じる。 */
html {
  scrollbar-gutter: stable;
}

header#site-header > #primary-navigation[hidden],
header#site-header .menu-toggle[hidden] {
  display: none !important;
}

/* 開閉中も学院名・MENUの行を同じ位置に保つ。 */
@media (max-width: 1120px) {
  header#site-header {
    grid-template-rows: 48px;
    align-items: center;
    align-content: start;
    row-gap: 0;
  }
  header#site-header.menu-open {
    border-bottom-width: 1px;
    background: #fffdf8;
  }
  header#site-header .menu-toggle:not([hidden]) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 104px;
    min-width: 104px;
    max-width: 104px;
    height: 48px;
    min-height: 48px;
    padding: 10px 12px;
    box-sizing: border-box;
    white-space: nowrap;
  }
  header#site-header > #primary-navigation,
  header#site-header.menu-open > #primary-navigation {
    /* 通常の配置から外し、開閉してもヘッダーとMVの高さを変えない。 */
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 40;
    width: 100%;
    max-height: calc(100vh - 88px);
    max-height: calc(100dvh - 88px);
    margin: 0;
    padding: 12px 20px 20px;
    grid-column: auto;
    grid-row: auto;
    align-self: start;
    min-height: 0;
    box-sizing: border-box;
    border: 0;
    border-bottom: 1px solid #c5b58f;
    border-radius: 0;
    background: #fffdf8;
  }
}

/* SPは写真下の操作列で案内し、右側のSCROLL装飾は表示しない。 */
@media (max-width: 768px) {
  .top-design-review .photo-hero .scroll-cue {
    display: none;
  }
  .top-design-review .photo-hero .photo-stage {
    max-width: none;
  }
}
