:root {
  --ink: #263d45;
  --muted: #63777e;
  --blue: #eaf6f9;
  --orange: #e89151;
  --line: #dce6e8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body { margin: 0; color: var(--ink); background: #fff; font: 14px/1.75 'Yu Gothic', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.container { width: min(960px, calc(100% - 32px)); margin-inline: auto; }
.skip-link { position: absolute; top: -100px; left: 12px; z-index: 100; padding: 8px 14px; background: white; }
.skip-link:focus { top: 12px; }

/* Logo and menu */
.header-top { min-height: 69px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 7px; }
.brand-mark { width: 42px; height: 42px; overflow: hidden; border-radius: 50%; }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-logo { width: 225px; height: 65px; object-fit: contain; }
.site-nav { display: grid; grid-template-columns: repeat(6, 1fr); border-bottom: 3px solid #37464a; }
.site-nav a { display: grid; place-items: center; min-height: 42px; padding: 7px 4px; text-align: center; font-size: 12px; font-weight: 700; }
.site-nav a:hover, .site-nav a:focus-visible { background: var(--blue); }
.site-nav .nav-current { background: #fff1e7; color: #d67642; }
.menu-toggle { display: none; }

/* Short introduction */
.intro { padding-block: 17px 20px; text-align: center; }
.intro h1 { font-size: 15px; line-height: 1.7; font-weight: 700; }
.intro p { max-width: 800px; margin: 3px auto 0; font-size: 13px; color: #586b72; }

/* Articles */
.news { padding-block: 4px 18px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 9px; }
.section-heading h2 { font-size: 16px; }
.section-heading a { color: #557887; font-size: 11px; font-weight: 700; }
.section-heading a:hover { color: var(--orange); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.news-card { display: flex; flex-direction: column; min-width: 0; min-height: 191px; border: 1px solid #dbe4e7; background: white; transition: border-color .2s; }
.news-card:hover { border-color: var(--orange); }
.news-image { display: grid; place-items: center; height: 126px; overflow: hidden; }
.news-card:nth-child(3n + 1) .news-image { background: #fff4e8; }
.news-card:nth-child(3n + 2) .news-image { background: #e9f5f9; }
.news-card:nth-child(3n) .news-image { background: #edf7f0; }
.news-image img { width: 112px; height: 112px; object-fit: contain; }
.news-image-warm { background: #fff4e8; }
.news-image-blue { background: #e9f5f9; }
.news-image-green { background: #edf7f0; }
.news-title { padding: 9px 12px 0; font-size: 13px; font-weight: 700; line-height: 1.5; }
.news-category { margin-top: auto; padding: 2px 12px 9px; color: #71848a; font-size: 10px; }

/* Four photographs in one row */
.photos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; padding-block: 0 12px; }
.photos figure { min-width: 0; }
.photos img { width: 100%; height: 150px; object-fit: cover; background: #f8f8f6; }
.photos figure:first-child img { object-position: center 40%; }
.photos figure:last-child img { object-position: center 28%; }
.photos figcaption { padding-top: 3px; color: var(--muted); font-size: 10px; text-align: center; }

/* Interior pages */
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 115px; padding-block: 25px 18px; border-bottom: 1px solid var(--line); }
.page-heading h1 { font-size: 24px; line-height: 1.4; }
.page-heading p { margin-top: 5px; color: var(--muted); font-size: 13px; }
.page-heading img { width: 88px; height: 72px; flex: none; object-fit: contain; }
.subpage-content { padding-block: 20px 38px; }
.subpage-content h2 { margin-bottom: 5px; font-size: 17px; line-height: 1.5; }
.subpage-content p { color: #4e646c; }
.feature-section { display: grid; grid-template-columns: 1fr 120px; align-items: center; gap: 18px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.feature-section:nth-child(odd) { background: #f7fbfc; }
.feature-section p + p { margin-top: 7px; }
.feature-section > img { width: 105px; height: 90px; justify-self: center; object-fit: contain; }
.skill-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 5px; }
.skill-list span { padding: 5px 7px; border-radius: 3px; background: #e8f5f8; color: #426673; text-align: center; font-size: 12px; font-weight: 700; }
.next-step { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 22px; padding: 14px 18px; background: #eaf8f3; border-left: 4px solid #a7d8c8; }
.next-step p { font-size: 13px; }
.next-step a { flex: none; padding: 7px 15px; border-radius: 3px; background: var(--orange); color: white; font-size: 12px; font-weight: 700; }
.next-step a:hover { background: #d57b3e; }
.admission-steps { margin: 0; padding: 0; list-style: none; }
.admission-steps li { display: grid; grid-template-columns: 42px 1fr; gap: 15px; padding: 17px 14px; border-bottom: 1px solid var(--line); }
.admission-steps li:nth-child(odd) { background: #f7fbfc; }
.step-number { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #fff0e5; color: #d3763f; font-size: 18px; font-weight: 700; }
.faq-page details { border-bottom: 1px solid var(--line); }
.faq-page details:first-child { border-top: 1px solid var(--line); }
.faq-page summary { position: relative; padding: 13px 35px 13px 12px; cursor: pointer; font-weight: 700; list-style: none; }
.faq-page summary::-webkit-details-marker { display: none; }
.faq-page summary::after { content: '+'; position: absolute; right: 13px; color: #da8248; font-size: 19px; font-weight: 400; line-height: 1; }
.faq-page details[open] summary::after { content: '−'; }
.faq-page details > p { padding: 0 12px 15px; }
.faq-page details a, .contact-note a, .access a, .article-body a { color: #397487; text-decoration: underline; text-underline-offset: 2px; }
.contact-methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.contact-methods section { min-width: 0; padding: 18px; background: #f2f9fa; }
.contact-large { color: #397487; font-size: 18px; font-weight: 700; overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: 3px; }
.contact-methods section p + p { margin-top: 6px; font-size: 12px; }
.contact-note { margin-top: 17px; padding: 16px 18px; background: #fff7ef; }
.contact-note p { font-size: 13px; }
.contact-note a { display: inline-block; margin-top: 7px; font-size: 12px; }
.access { display: grid; grid-template-columns: 1fr 160px; align-items: center; gap: 20px; margin-top: 22px; padding: 16px 18px; border: 1px solid var(--line); }
.access img { width: 160px; height: 100px; object-fit: cover; }
.access a { display: inline-block; margin-top: 5px; font-size: 12px; }
.news-page-grid { padding-top: 4px; }
.article-page { max-width: 790px; padding-block: 17px 35px; }
.breadcrumb { color: var(--muted); font-size: 11px; }
.breadcrumb a:hover, .article-back a:hover { color: #d3763f; }
.article-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.article-heading h1 { margin: 3px 0 7px; font-size: 24px; line-height: 1.45; }
.article-heading time, .article-category { color: var(--muted); font-size: 11px; }
.article-heading img { width: 88px; height: 88px; flex: none; object-fit: contain; }
.article-body { padding: 18px 2px 8px; }
.article-body h2 { margin: 20px 0 5px; font-size: 17px; }
.article-body p + p { margin-top: 12px; }
.article-body ul { margin: 8px 0 16px; padding-left: 25px; }
.article-back { margin-top: 14px; color: #397487; font-size: 12px; }

/* Contact */
.contact { display: flex; align-items: center; justify-content: center; gap: 12px; padding-bottom: 22px; }
.contact > img { width: 80px; height: 73px; object-fit: contain; }
.contact-box { flex: 1; max-width: 700px; padding: 12px 18px; border: 2px solid #a7d8c8; background: #eaf8f3; }
.contact-box h2 { margin-bottom: 3px; font-size: 14px; }
.contact-box p { font-size: 12px; }
.contact-box p a { color: #387789; text-decoration: underline; text-underline-offset: 2px; }
.contact-box p a:hover { color: #ce7640; }
.contact-box small { color: #648078; font-size: 10px; }

/* Footer */
.site-footer { background: #7c8388; color: white; }
.footer-inner { display: flex; align-items: center; gap: 12px; min-height: 57px; padding-block: 9px; }
.footer-mark { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.footer-inner p { font-size: 11px; }
.footer-inner small { font-size: 10px; }
.back-top { margin-left: auto; align-self: center; white-space: nowrap; font-size: 10px; }
.back-top:hover { text-decoration: underline; }

@media (max-width: 760px) {
  html { scroll-padding-top: 70px; }
  .header-top { min-height: 62px; }
  .brand-mark { width: 35px; height: 35px; }
  .brand-logo { width: 166px; height: 52px; }
  .menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; padding: 8px; border: 0; background: transparent; }
  .menu-toggle span { width: 24px; height: 2px; background: var(--ink); }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }
  .site-header { position: relative; }
  .site-nav { display: none; position: absolute; z-index: 10; top: 62px; left: 0; right: 0; width: 100%; padding: 8px 16px 16px; grid-template-columns: 1fr; border: 0; background: white; box-shadow: 0 14px 25px #263d4526; }
  .site-nav.is-open { display: grid; }
  .site-nav a { justify-content: start; min-height: 40px; padding: 8px 13px; border-bottom: 1px solid var(--line); text-align: left; }
  .intro { padding-block: 19px; text-align: left; }
  .intro h1 { font-size: 14px; }
  .intro p { font-size: 12px; }
  .news-grid { grid-auto-columns: minmax(190px, 70%); grid-auto-flow: column; grid-template-columns: none; overflow-x: auto; padding-bottom: 7px; scroll-snap-type: x mandatory; }
  .news-card { scroll-snap-align: start; }
  .photos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .photos img { height: 150px; }
  .page-heading { min-height: 94px; padding-block: 18px 13px; }
  .page-heading h1, .article-heading h1 { font-size: 20px; }
  .page-heading img { width: 65px; height: 65px; }
  .subpage-content { padding-block: 13px 27px; }
  .feature-section { grid-template-columns: 1fr 70px; gap: 8px; padding: 13px 9px; }
  .feature-section > img { width: 70px; height: 70px; }
  .feature-section:has(.skill-list) { grid-template-columns: 1fr; }
  .skill-list { grid-template-columns: repeat(4, 1fr); }
  .contact-methods { grid-template-columns: 1fr; gap: 10px; }
  .news-page-grid { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow-x: visible; }
  .contact { gap: 5px; }
  .contact > img { width: 55px; height: 60px; }
  .contact-box { padding: 10px 12px; }
  .footer-inner { align-items: flex-start; }
}

@media (max-width: 430px) {
  .photos img { height: 120px; }
  .news-page-grid { grid-template-columns: 1fr; }
  .next-step { align-items: flex-start; flex-direction: column; }
  .access { grid-template-columns: 1fr 95px; gap: 8px; padding: 12px; }
  .access img { width: 95px; height: 95px; }
  .contact-large { font-size: 16px; }
  .footer-mark { width: 26px; height: 26px; }
  .back-top { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .news-card { transition: none; }
}
