@charset "UTF-8";

.news-detail-hero { position: relative; overflow: hidden; padding: 42px 0 82px; background: #f8f6f0; }
.news-detail-inner,.news-article__inner { width: min(920px,calc(100% - 80px)); margin: 0 auto; }
.news-detail-hero .breadcrumb { margin-bottom: 54px; }
.news-detail-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.news-detail-meta time { color: #758078; font-family: var(--font-round); font-size: 14px; font-weight: 700; }
.news-detail-hero h1 { margin: 0; color: #31483a; font-family: var(--font-round); font-size: 40px; line-height: 1.55; letter-spacing: .04em; }
.news-detail-hero__heading > p { margin: 20px 0 0; color: #526055; font-family: var(--font-round); font-size: 17px; font-weight: 700; }
.news-detail-hero__deco { position: absolute; pointer-events: none; }
.news-detail-hero__deco--bird { right: max(45px,calc(50% - 610px)); bottom: 40px; width: 76px; }
.news-detail-hero__deco--balloon { right: max(155px,calc(50% - 500px)); top: 76px; width: 48px; }

.news-article { position: relative; padding: 92px 0 120px; background: #fff; }
.news-article--preparing { padding-top: 68px; }
.news-article--preparing .news-admission-preparing { margin-top: 0; }
.news-admission-preparing .news-article-note + p { margin-top: 22px; }
.news-article::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 26px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 26' preserveAspectRatio='none'%3E%3Cpath fill='%23f8f6f0' d='M0 0h1440v20c-80 0-160-16-240-16s-160 16-240 16S800 4 720 4 560 20 480 20 320 4 240 4 80 20 0 20V0z'/%3E%3C/svg%3E") center/100% 100% no-repeat; }
.news-article__inner,.mce-content-body.ehime-news-editor { min-width: 0; overflow-wrap: anywhere; }
.news-article__inner::after,.mce-content-body.ehime-news-editor::after { content: ""; display: block; clear: both; }
.news-article__inner img,.mce-content-body.ehime-news-editor img { display: block; max-width: 100%!important; height: auto!important; }
.news-article__inner picture,.news-article__inner figure,.news-article__inner .wp-caption,.mce-content-body.ehime-news-editor picture,.mce-content-body.ehime-news-editor figure,.mce-content-body.ehime-news-editor .wp-caption { max-width: 100%!important; }
.news-article__inner .aligncenter,.mce-content-body.ehime-news-editor .aligncenter { margin-right: auto; margin-left: auto; }
.news-article__inner > p,.mce-content-body.ehime-news-editor > p { margin: 0 0 16px; color: #526055; font-size: 16px; font-weight: 500; line-height: 1.85; }
.news-article__lead { color: #31483a!important; font-family: var(--font-round); font-size: 20px!important; font-weight: 700!important; }
.news-article section { margin-top: 88px; scroll-margin-top: 180px; }
.news-article section > h2,.news-article__inner > h2,.mce-content-body.ehime-news-editor > h2 { display: flex; align-items: center; gap: 15px; margin: 0 0 34px; padding-bottom: 16px; border-bottom: 2px dotted #c7c8bb; color: #31483a; font-family: var(--font-round); font-size: 29px; }
.news-article__inner > h2 { margin: 36px 0 24px; padding-bottom: 14px; }
.news-article section > h2::before,.news-article__inner > h2::before,.mce-content-body.ehime-news-editor > h2::before { content: ""; flex: 0 0 7px; width: 7px; height: 38px; border-radius: 5px; background: linear-gradient(#64c66e 0 50%,#aade89 50%); }
.news-article section > p { margin: 0 0 20px; color: #526055; font-size: 15.5px; font-weight: 500; line-height: 2; }
.news-article-toc { margin: 50px 0 0; padding: 28px 32px; border-radius: 20px; background: #eef6dd; }
.news-article-toc > p { margin: 0 0 15px; color: #31483a; font-family: var(--font-round); font-size: 18px; font-weight: 700; }
.news-article-toc ol { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px 28px; margin: 0; padding-left: 22px; }
.news-article-toc a { color: #526055; font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

.news-event-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px; }
.news-event-card { overflow: hidden; border: 1px solid #e2e3da; border-radius: 24px; background: #fff; box-shadow: 8px 10px 0 rgba(216,207,188,.35); }
.news-event-card__head { display: flex; align-items: center; gap: 14px; padding: 22px 26px; background: #f1f7e7; }
.news-event-card--sanbancho .news-event-card__head { background: #fff5d8; }
.news-event-card__head img { width: 45px; height: 45px; object-fit: contain; }
.news-event-card h3 { margin: 0; color: #31483a; font-family: var(--font-round); font-size: 20px; }
.news-event-card dl { margin: 0; padding: 10px 26px 24px; }
.news-event-card dl > div { display: grid; grid-template-columns: 70px 1fr; gap: 16px; padding: 15px 0; border-bottom: 1px dashed #d1d0c5; }
.news-event-card dt,.news-event-card dd { margin: 0; color: #526055; font-size: 14px; font-weight: 700; line-height: 1.75; }
.news-event-card dt { color: #58ad42; }
.news-event-card small { font-size: 12px; font-weight: 500; }
.news-article-note { margin-top: 30px; padding: 20px 24px; border-radius: 14px; background: #fff9e3; color: #526055; font-size: 14px; font-weight: 700; line-height: 1.8; }

.news-program-list { display: grid; gap: 16px; margin-top: 28px; }
.news-program-list article { display: flex; align-items: flex-start; gap: 22px; width: 100%; padding: 26px 30px; border-radius: 18px; background: #f8f6f0; }
.news-program-list article > span { display: grid; flex: 0 0 54px; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: #75c96e; color: #fff; font-family: var(--font-round); font-size: 14px; font-weight: 900; }
.news-program-list article > div { flex: 1 1 auto; min-width: 0; width: auto; }
.news-program-list h3 { margin: 0 0 8px; color: #31483a; font-family: var(--font-round); font-size: 19px; }
.news-program-list p { margin: 0; color: #526055; font-size: 14.5px; font-weight: 500; line-height: 1.9; }

.news-guide-list { margin: 0; border-top: 1px solid #dfe3da; }
.news-guide-list > div { display: grid; grid-template-columns: 190px 1fr; gap: 28px; padding: 22px 20px; border-bottom: 1px solid #dfe3da; }
.news-guide-list dt,.news-guide-list dd { margin: 0; color: #526055; font-size: 15px; font-weight: 700; line-height: 1.8; }
.news-guide-list dt { color: #31483a; }
.news-guide-list small { color: #758078; font-size: 12.5px; }
.news-article-subheading { margin: 42px 0 20px; color: #31483a; font-family: var(--font-round); font-size: 21px; }
.news-parking { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.news-parking article { padding: 24px 26px; border-radius: 16px; background: #eef6dd; }
.news-parking article:last-child { background: #fff5d8; }
.news-parking h4 { margin: 0 0 10px; color: #31483a; font-family: var(--font-round); font-size: 17px; }
.news-parking p { margin: 0; color: #526055; font-size: 14px; font-weight: 500; line-height: 1.9; }

.news-apply { padding: 38px 42px 42px; border-radius: 26px; background: #eef6dd; }
.news-apply > h2 { margin-top: 0!important; }
.news-apply__primary { display: flex; align-items: center; justify-content: center; gap: 20px; width: min(420px,100%); min-height: 64px; margin: 30px auto; border-radius: 999px; background: #71c171; box-shadow: 0 8px 20px rgba(66,137,67,.2); color: #fff; font-family: var(--font-round); font-size: 16px; font-weight: 700; transition: .25s ease; }
.news-apply__primary:hover { transform: translateY(-3px); box-shadow: 0 11px 24px rgba(66,137,67,.26); }
.news-phone-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.news-phone-grid a { padding: 18px; border-radius: 15px; background: #fff; text-align: center; }
.news-phone-grid small { display: block; margin-bottom: 4px; color: #526055; font-size: 12px; font-weight: 700; }
.news-phone-grid strong { color: #58ad42; font-family: var(--font-round); font-size: 21px; }
.news-apply__deadline { margin-top: 25px!important; text-align: center; }
.news-related-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 30px; }
.news-related-links a { display: flex; justify-content: space-between; gap: 20px; padding: 17px 20px; border: 1px solid #d8dfd1; border-radius: 12px; color: #526055; font-family: var(--font-round); font-size: 14px; font-weight: 700; }
.news-related-links a:hover { border-color: #71c171; background: #f3f8eb; color: #58ad42; }
.news-article-guide { margin-top: 42px!important; padding: 20px 24px; border-radius: 14px; background: #f3f8eb; color: #526055; font-size: 14px; font-weight: 600; line-height: 1.9; }
.news-article-guide a { color: #459b42; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.news-pdf-link,.news-article__inner a[href$=".pdf"],.mce-content-body.ehime-news-editor a[href$=".pdf"] { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 58px; margin-top: 6px; padding: 14px 28px; border: 2px solid #58ad42; border-radius: 999px; background: #64c66e; box-shadow: 0 7px 18px rgba(66,137,67,.22); color: #fff!important; font-family: var(--font-round); font-size: 16px; font-weight: 700; line-height: 1.55; text-decoration: none!important; transition: transform .25s ease,box-shadow .25s ease,background .25s ease; }
.news-pdf-link::after,.news-article__inner a[href$=".pdf"]::after,.mce-content-body.ehime-news-editor a[href$=".pdf"]::after { content: "↗"; font-size: 18px; line-height: 1; }
.news-pdf-link:hover,.news-article__inner a[href$=".pdf"]:hover,.mce-content-body.ehime-news-editor a[href$=".pdf"]:hover { transform: translateY(-3px); background: #58ad42; box-shadow: 0 10px 22px rgba(66,137,67,.28); }
.news-pdf-link:focus-visible,.news-article__inner a[href$=".pdf"]:focus-visible,.mce-content-body.ehime-news-editor a[href$=".pdf"]:focus-visible { outline: 3px solid rgba(88,173,66,.35); outline-offset: 4px; }
.news-article-back { margin-top: 72px; padding-top: 32px; border-top: 1px solid #dfe3da; text-align: center; }
.news-article-back a { display: inline-flex; padding: 12px 25px; border: 1px solid #71c171; border-radius: 999px; color: #58ad42; font-family: var(--font-round); font-size: 14px; font-weight: 700; }

/* Classic Editor: keep the preview compact while preserving the front-end design. */
.mce-content-body.ehime-news-editor { box-sizing: border-box; padding: 28px 32px!important; }
.mce-content-body.ehime-news-editor > p { margin-bottom: 10px; line-height: 1.65; }
.mce-content-body.ehime-news-editor > h2 { margin: 18px 0 16px; padding-bottom: 11px; font-size: 26px; }

@media (max-width:900px) {
  .news-detail-inner,.news-article__inner { width: min(100% - 48px,760px); }
  .news-detail-hero h1 { font-size: 34px; }
  .news-detail-hero__deco { display: none; }
}
@media (max-width:600px) {
  .news-detail-hero { padding: 18px 0 36px; }
  .news-detail-inner,.news-article__inner { width: calc(100% - 40px); }
  .news-detail-hero .breadcrumb { display: none; }
  .news-detail-hero h1 { font-size: 22px; line-height: 1.6; }
  .news-detail-hero__heading > p { font-size: 14px; }
  .news-article { padding: 70px 0 85px; }
  .news-article--preparing { padding-top: 52px; }
  .news-article__lead { font-size: 17px!important; }
  .news-article section { margin-top: 65px; }
  .news-article section > h2,.news-article__inner > h2 { font-size: 20px; }
  .news-article__inner > h2 { margin: 28px 0 20px; padding-bottom: 12px; }
  .news-article__inner > p { margin-bottom: 14px; line-height: 1.8; }
  .news-article-toc { padding: 24px 22px; }
  .news-article-toc ol,.news-event-grid,.news-parking,.news-phone-grid,.news-related-links { grid-template-columns: 1fr; }
  .news-event-grid { gap: 24px; }
  .news-program-list article { gap: 15px; padding: 22px 18px; }
  .news-program-list article > span { flex-basis: 42px; width: 42px; height: 42px; font-size: 11px; }
  .news-guide-list > div { grid-template-columns: 1fr; gap: 7px; padding-inline: 5px; }
  .news-apply { padding: 30px 20px 34px; }
  .news-phone-grid strong { font-size: 19px; }
  .news-pdf-link,.news-article__inner a[href$=".pdf"] { width: 100%; min-height: 56px; padding: 13px 20px; font-size: 14px; text-align: center; }
  .news-article__inner .alignleft,.news-article__inner .alignright { float: none; margin-right: auto; margin-left: auto; }
}
