/* 現行デザインを活かした比較案。共通CSSの後に読み込む。 */
.layout-preview .section {
  padding-top: 64px;
  padding-bottom: 64px;
}

.study-paths {
  padding: 30px 0;
  border-top: 1px solid #dce7ec;
  border-bottom: 1px solid #dce7ec;
  background: #fff;
}

.study-paths > .container {
  display: grid;
  grid-template-columns: 0.8fr 2fr;
  align-items: center;
  gap: 30px;
}

.study-paths__intro > span,
.field-visit__label {
  color: #0b7fab;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.study-paths__intro h2 {
  margin: 8px 0 0;
  color: #082f49;
  font-size: 19px;
  line-height: 1.8;
}

.study-paths__links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.study-paths__links > a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  min-height: 86px;
  padding: 14px 16px;
  border-left: 2px solid #b6dae9;
  background: #f3f8fb;
}

.study-paths__links > a > span {
  color: #607783;
  font-size: 11px;
}

.study-paths__links strong {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  color: #082f49;
  font-size: 14px;
  line-height: 1.7;
}

.study-paths__links > a:hover {
  background: #e4f2f8;
  border-color: #0b7fab;
}

.field-visit {
  padding: 64px 0;
  background: #edf6fa;
}

.field-visit__layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 48px;
}

.field-visit__body h2 {
  margin: 10px 0 18px;
  color: #082f49;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.75;
}

.field-visit__body > p {
  margin: 0;
  color: #526c7d;
  font-size: 14px;
  line-height: 1.9;
}

.field-visit__body > p + p {
  margin-top: 14px;
}

.field-visit__gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.visit-photo {
  min-width: 0;
  margin: 0;
}

.visit-photo__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  background: #e3edf2;
}

.visit-photo__frame > img,
.visit-photo__pending {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.visit-photo__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
}

.visit-photo > figcaption {
  padding-top: 8px;
  color: #284f63;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.7;
}

.visit-photo__pending {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border: 1px dashed #b9cfda;
  border-radius: 6px;
  background: #f5fafc;
  color: #708995;
  text-align: center;
}

.visit-photo__pending > span {
  font-size: 10px;
  letter-spacing: 0.04em;
}

.visit-photo__pending > strong {
  color: #526f80;
  font-size: 13px;
  font-weight: 500;
}

.field-visit__link {
  margin-top: 16px;
}

.visit-school-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px 24px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.visit-school-gallery .visit-photo__frame img {
  object-fit: contain;
}

.visit-school-card__number {
  display: block;
  margin-top: 6px;
  color: #0b7fab;
  font-size: 11px;
}

.visit-school-card h3 {
  margin: 6px 0 0;
  color: #082f49;
  font-size: 15px;
  line-height: 1.7;
}

.visit-school-card__school {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  color: #086d9a;
  font-size: 12px;
}

.field-visit__link {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  min-height: 44px;
  color: #086d9a;
  font-size: 13px;
  font-weight: 700;
}

.field-visit__link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.support-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.support-summary article {
  padding: 28px 24px;
  border-top: 3px solid #9dcadd;
  background: #f3f8fb;
  border-radius: 0 0 12px 12px;
}

.support-summary article > span {
  color: #0b7fab;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.support-summary h3 {
  margin: 12px 0;
  color: #082f49;
  font-size: 18px;
  line-height: 1.8;
}

.support-summary p {
  margin: 0;
  color: #526c7d;
  font-size: 14px;
  line-height: 1.9;
}

.consultation-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.layout-preview .news-preview {
  padding: 24px 0;
}

.layout-preview .news-preview__inner {
  gap: 20px 32px;
}

.layout-preview .news-preview__items {
  min-width: 0;
}

.news-preview__items .news-preview__item + .news-preview__item {
  border-top: 1px solid #dce7ec;
}

.layout-preview .consult-bar {
  right: 100px;
  left: auto;
  width: auto;
  transform: none;
}

.layout-preview .consult-bar__inner {
  grid-template-columns: auto;
  padding: 8px 10px;
}

.layout-preview .consult-bar__copy {
  display: none;
}

.visit-page {
  padding-top: 78px;
  background: #f5f9fb;
}

.visit-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 20px 0;
  color: #607783;
  font-size: 12px;
}

.visit-article {
  width: min(1080px, calc(100% - 48px));
  margin: 16px auto 64px;
  padding: 48px 56px;
  border: 1px solid #dce7ec;
  border-radius: 8px;
  background: #fff;
}

.visit-article__header > span {
  color: #0b7fab;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.visit-article__date {
  margin: 12px 0 20px;
  color: #607783;
  font-size: 12px;
}

.visit-article h1 {
  margin: 0 0 24px;
  color: #082f49;
  font-size: 30px;
  line-height: 1.8;
}

.visit-article__header > p:last-child,
.visit-article__section > p {
  color: #526c7d;
  font-size: 15px;
  line-height: 2;
}

.visit-article__section {
  margin-top: 40px;
}

.visit-article__section h2 {
  margin: 0 0 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid #d2e7f1;
  color: #082f49;
  font-size: 21px;
  line-height: 1.8;
}

.visit-article > .field-visit__link {
  margin-top: 32px;
}

.visit-page .site-footer.site-footer--organized {
  padding-bottom: 48px;
}

@media (max-width: 900px) {
  .layout-preview .news-preview__inner {
    gap: 14px 24px;
  }

  .layout-preview .news-preview__items {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .layout-preview .news-preview__archive {
    grid-column: 2;
    grid-row: 1;
  }
  .visit-school-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .study-paths > .container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .field-visit__layout {
    gap: 30px;
  }
  .support-summary {
    gap: 16px;
  }

  .support-summary article {
    padding: 24px 18px;
  }
}

@media (max-width: 700px) {
  .field-visit__gallery {
    gap: 10px;
  }

  .field-visit__gallery .visit-photo__pending {
    gap: 6px;
    padding: 6px;
  }

  .field-visit__gallery .visit-photo__pending > span {
    font-size: 8px;
  }

  .field-visit__gallery .visit-photo__pending > strong {
    font-size: 11px;
  }

  .visit-school-gallery {
    gap: 24px 14px;
  }

  .visit-school-card h3 {
    font-size: 13px;
  }

  .layout-preview .section {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .study-paths {
    padding: 26px 0;
  }

  .study-paths__links {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .study-paths__links > a {
    min-height: 70px;
    padding: 12px 16px;
  }

  .field-visit {
    padding: 36px 0;
  }

  .field-visit__layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .field-visit__body h2 {
    font-size: 23px;
    line-height: 1.8;
  }

  .support-summary {
    grid-template-columns: 1fr;
  }

  .support-summary article {
    padding: 22px;
  }

  .support-summary h3 {
    margin: 8px 0;
    font-size: 17px;
  }

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

  .consultation-links .button {
    width: 100%;
    min-height: 48px;
    font-size: 13px;
  }

  .layout-preview .news-preview__items .news-preview__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 16px;
    padding: 16px 0;
  }

  .news-preview__items .news-preview__item time {
    grid-column: 1 / -1;
  }

  .layout-preview .consult-bar {
    right: auto;
    left: 50%;
    width: calc(100% - 20px);
    transform: translateX(-50%);
  }

  .layout-preview .consult-bar__inner {
    padding: 6px;
  }

  .visit-article {
    width: calc(100% - 28px);
    margin-top: 0;
    margin-bottom: 36px;
    padding: 28px 20px;
  }

  .visit-article h1 {
    font-size: 23px;
    line-height: 1.8;
  }

  .visit-article__section {
    margin-top: 28px;
  }

  .visit-article__section h2 {
    font-size: 19px;
  }
}
