:root { --green: #2f5d3a; --green2: #5c7a5f; --ink: #222; --sub: #5a5a5a; --line: #d6dbd2; --bg: #f6f7f4; }
* { box-sizing: border-box; }
html { font-size: 16px; }
body { margin: 0; color: var(--ink); background: #fff; line-height: 1.8;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif; }
img { max-width: 100%; height: auto; }
a { color: #1f5f8b; }
a:hover { color: #0f3f60; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* header */
.site-header { border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 10px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--green); }
.logo .mark { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--green); position: relative; }
.logo .mark::after { content: ""; position: absolute; left: 9px; top: 7px; width: 16px; height: 20px; border-radius: 0 60% 0 60%; background: #fff; }
.logo .name { font-size: 1.3rem; font-weight: bold; line-height: 1.3; }
.logo small { display: block; font-size: .72rem; font-weight: normal; color: var(--sub); letter-spacing: .02em; }
.head-links { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.head-links a { font-size: .88rem; color: var(--sub); text-decoration: none; white-space: nowrap; }
.head-links a:hover { text-decoration: underline; }
.gnav { background: var(--green); }
.gnav ul { display: flex; list-style: none; margin: 0 auto; padding-top: 0; padding-bottom: 0; }
.gnav li { flex: 1 1 auto; }
.gnav li a { display: block; padding: 11px 12px; color: #fff; text-decoration: none; font-size: .95rem; text-align: center; white-space: nowrap; }
.gnav li a:hover, .gnav li a[aria-current] { background: rgba(255,255,255,.16); }
.gnav li a[aria-current] { box-shadow: inset 0 -3px 0 #d9e6c9; }

/* page layout */
main { padding-bottom: 56px; min-height: 60vh; }
.crumb { font-size: .82rem; color: var(--sub); margin: 14px 0 4px; }
.crumb a { color: var(--sub); }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 40px; align-items: start; }
.content { min-width: 0; }
.content-single { max-width: 860px; }
.localnav { margin-top: 26px; border-top: 3px solid var(--green); background: var(--bg); }
.localnav-title { margin: 0; padding: 10px 16px; font-weight: bold; color: var(--green); border-bottom: 1px solid var(--line); }
.localnav ul { list-style: none; margin: 0; padding: 0; }
.localnav li a { display: block; padding: 9px 16px; border-bottom: 1px solid var(--line); text-decoration: none; font-size: .92rem; line-height: 1.5; }
.localnav li a:hover { background: #eef2ea; }
.localnav li a[aria-current] { font-weight: bold; color: var(--ink); background: #fff; border-left: 4px solid var(--green2); padding-left: 12px; }
h1 { font-size: 1.7rem; color: var(--green); margin: 18px 0 18px; padding-bottom: 8px; border-bottom: 2px solid var(--green); line-height: 1.4; }
h2 { font-size: 1.2rem; margin: 32px 0 10px; padding-left: 10px; border-left: 4px solid var(--green2); line-height: 1.5; }
h2.sec { margin-top: 28px; }
.lead { font-size: 1.15rem; }
.lead-sm { font-size: 1.05rem; margin-top: 0; }
.note { font-size: .9rem; color: var(--sub); }
.more a { margin-right: 16px; }
.link-list { padding-left: 1.2em; }
ul.plain { padding-left: 1.2em; }
ul.inline-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
ul.inline-list li { padding: 2px 12px; background: var(--bg); border: 1px solid var(--line); font-size: .92rem; }
ol.steps { padding-left: 1.6em; }
.val { display: inline-block; margin-right: 12px; font-weight: bold; color: var(--green); }
section[id] { scroll-margin-top: 12px; }

/* tables */
.table-wrap { overflow-x: auto; margin: 8px 0 16px; }
table.dl { border-collapse: collapse; width: 100%; }
table.dl th, table.dl td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
table.dl th { width: 12em; background: var(--bg); font-weight: normal; color: var(--sub); }
table.grid { border-collapse: collapse; width: 100%; font-size: .95rem; }
table.grid th, table.grid td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
table.grid thead th { background: var(--bg); }
table.program { min-width: 620px; }
table.compare { min-width: 640px; }
table.money td:last-child { text-align: right; white-space: nowrap; }

/* photos */
.photo { margin: 16px 0 20px; }
.photo img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; -webkit-user-drag: none; }
.photo-wide img { aspect-ratio: 16 / 7; }
.photo figcaption { font-size: .82rem; color: var(--sub); margin-top: 4px; }
.media-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px; align-items: start; margin: 8px 0 12px; }
.media-row .photo { margin: 0; }
.media-row .media-text > :first-child { margin-top: 0; }

/* cards */
.cards { list-style: none; margin: 16px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.card a { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--line); text-decoration: none; color: var(--ink); background: #fff; }
.card a:hover { border-color: var(--green2); }
.card a:hover .card-title { text-decoration: underline; }
.card-img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; -webkit-user-drag: none; }
.card-body { display: block; padding: 10px 14px 12px; }
.card-title { display: block; font-weight: bold; color: #1f5f8b; }
.card-text { display: block; font-size: .88rem; color: var(--sub); line-height: 1.6; }

/* related */
.related { margin-top: 40px; padding: 14px 18px; background: var(--bg); border-top: 2px solid var(--green2); }
.related-title { margin: 0 0 6px; padding: 0; border: 0; font-size: 1rem; color: var(--green); }
.related ul { margin: 0; padding-left: 1.2em; }

/* home */
.hero { margin: 0 0 8px; padding: 56px 0; background: linear-gradient(120deg, #e6ede3, #f5f3e8); position: relative; }
.hero-copy { font-size: 1.9rem; font-weight: bold; color: var(--green); margin: 0 0 8px; line-height: 1.4; }
.hero-sub { margin: 0; color: var(--sub); }
.hero-photo { padding: 0; background: #dfe6da; }
.hero-photo .hero-img { display: block; width: 100%; height: clamp(260px, 42vw, 480px); object-fit: cover; -webkit-user-drag: none; }
.hero-photo .hero-inner { position: absolute; left: 0; right: 0; bottom: 28px; }
.hero-photo .hero-box { display: inline-block; max-width: 560px; padding: 18px 24px; background: rgba(255,255,255,.9); }
.hero-photo .hero-copy { font-size: 1.7rem; }
.oc-banner { margin: 18px 0 0; }
.oc-banner a { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding: 12px 18px; background: #f3efe0; border-left: 6px solid #b08a2e; text-decoration: none; color: var(--ink); }
.oc-banner a:hover .oc-banner-text { text-decoration: underline; }
.oc-banner-label { font-size: .82rem; font-weight: bold; color: #7a5c14; }
.oc-banner-text { font-weight: bold; }
.home-cols { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 36px; }
.home-side { padding-top: 28px; display: grid; gap: 14px; align-content: start; }
.side-box { background: var(--bg); padding: 14px 18px; }
.side-title { margin: 0 0 6px; font-weight: bold; color: var(--green); }
.side-box ul { margin: 0; padding-left: 1.1em; }
.home-main .cards { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

/* news */
.news { list-style: none; padding: 0; margin: 0; }
.news li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.news time { font-size: .88rem; color: var(--sub); min-width: 6.2em; }
.tag { display: inline-block; min-width: 5.5em; padding: 0 8px; font-size: .78rem; text-align: center; color: var(--green); border: 1px solid var(--green2); }

/* access map */
.map { margin: 18px 0; max-width: 600px; }
.map svg { width: 100%; height: auto; display: block; }
.cap { font-size: .8rem; color: var(--sub); margin: 4px 0 0; }

/* footer */
.site-footer { background: #33413a; color: #e8ece6; padding: 24px 0 14px; font-size: .88rem; }
.site-footer a { color: #e8ece6; }
.foot-row { display: flex; justify-content: space-between; gap: 24px; }
.foot-row p { margin: 0 0 4px; }
.foot-name { font-weight: bold; }
.foot-links { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; max-width: 520px; justify-content: flex-end; }
.fiction { margin-top: 14px; font-size: .75rem; color: #b9c3b5; }

/* tablet */
@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .localnav { margin-top: 32px; }
  .home-cols { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .home-side { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .gnav ul { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-left: 0; padding-right: 0; }
  .gnav li { flex: 0 0 auto; }
  .foot-row { flex-direction: column; }
  .foot-links { justify-content: flex-start; }
}
/* phone */
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .head-row { flex-wrap: wrap; }
  .logo .name { font-size: 1.1rem; }
  .head-links { gap: 14px; }
  .gnav li a { padding: 10px 12px; font-size: .9rem; }
  h1 { font-size: 1.4rem; }
  .media-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  table.dl th, table.dl td { display: block; width: auto; border-bottom: 0; }
  table.dl th { padding: 8px 10px 2px; }
  table.dl td { padding: 2px 10px 10px; border-bottom: 1px solid var(--line); }
  .hero { padding: 36px 0; }
  .hero-copy { font-size: 1.45rem; }
  .hero-photo { padding: 0; }
  .hero-photo .hero-img { height: 300px; }
  .hero-photo .hero-inner { position: static; }
  .hero-photo .hero-box { display: block; max-width: none; padding: 14px 0 0; background: none; }
  .hero-photo .hero-copy { font-size: 1.35rem; }
}
table.program td:first-child { white-space: nowrap; }
.photo-portrait img { aspect-ratio: 4 / 5; max-height: 560px; }
.photo-43 img { aspect-ratio: 4 / 3; }

/* ---- 再設計で追加 ---- */
.head-menus { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.head-visitors a { color: var(--green); font-weight: bold; }
.localnav li a.is-parent { font-weight: bold; }
h3 { font-size: 1.05rem; margin: 22px 0 6px; color: var(--green); }
.guide-list { list-style: none; margin: 8px 0 16px; padding: 0; border-top: 1px solid var(--line); }
.guide-list li { display: flex; flex-wrap: wrap; gap: 2px 16px; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.guide-list li > a { min-width: 13em; font-weight: bold; }
.guide-text { color: var(--sub); font-size: .92rem; }
dl.faq { margin: 8px 0 16px; }
dl.faq dt { font-weight: bold; margin-top: 14px; padding-left: 1.6em; text-indent: -1.6em; }
dl.faq dt::before { content: "Q. "; color: var(--green); }
dl.faq dd { margin: 4px 0 0; padding-left: 1.6em; text-indent: -1.6em; }
dl.faq dd::before { content: "A. "; color: #7a5c14; font-weight: bold; }
.kana { margin: -10px 0 8px; color: var(--sub); font-size: .9rem; }
.news-meta { display: flex; gap: 12px; align-items: baseline; color: var(--sub); font-size: .9rem; }
ol.plan { padding-left: 2.4em; }
ol.plan li::marker { color: var(--sub); }
table.courses td:first-child, table.syllabus td:nth-child(3) { white-space: nowrap; }
table.syllabus { min-width: 760px; font-size: .9rem; }
table.cmap { min-width: 640px; font-size: .9rem; }
table.cmap td:first-child { white-space: nowrap; background: var(--bg); }
.syl-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; margin: 14px 0 6px; padding: 14px 16px; background: var(--bg); border-top: 2px solid var(--green2); }
.syl-filter label { display: flex; flex-direction: column; font-size: .85rem; color: var(--sub); gap: 2px; }
.syl-filter select, .syl-filter input, .syl-filter button { font: inherit; font-size: .92rem; padding: 4px 6px; min-height: 34px; }
.syl-filter .syl-q { flex: 1 1 14em; }
.syl-filter .syl-q input { width: 100%; }
.syl-count { margin: 0 0 0 auto; font-size: .9rem; }
.sitemap h2 { margin-top: 24px; }
.map.campus { max-width: 640px; }
@media (max-width: 640px) {
  .head-menus { align-items: flex-start; width: 100%; }
  .head-links { flex-wrap: wrap; gap: 4px 14px; }
  .guide-list li > a { min-width: 0; }
  .syl-filter label { flex: 1 1 45%; }
  .syl-count { margin-left: 0; }
}
table.syllabus td:nth-child(1), table.syllabus td:nth-child(3), table.syllabus td:nth-child(4), table.syllabus td:nth-child(7),
table.syllabus th { white-space: nowrap; }
table.cmap td { min-width: 9em; }

/* 参加申込フォーム */
.apply [hidden], .apply[hidden] { display: none !important; }
.apply-steps { display: flex; gap: 4px; list-style: none; margin: 12px 0 18px; padding: 0; }
.apply-steps li { flex: 1 1 0; text-align: center; padding: 6px 4px; background: var(--bg); border-bottom: 3px solid var(--line); color: var(--sub); font-size: .9rem; }
.apply-steps li[aria-current] { border-bottom-color: var(--green); background: #eef2ea; color: var(--green); font-weight: bold; }
.apply-form fieldset { min-width: 0; margin: 0 0 18px; padding: 6px 16px 10px; border: 1px solid var(--line); }
.apply-form legend { padding: 0 6px; font-weight: bold; color: var(--green); }
.field { margin: 12px 0; }
.field > label { display: block; font-weight: bold; font-size: .95rem; }
.hint { margin: 0 0 4px; font-size: .85rem; color: var(--sub); }
.req, .opt { display: inline-block; margin-left: 8px; padding: 0 6px; font-size: .75rem; font-weight: bold; line-height: 1.6; color: #fff; background: #a33b2b; border-radius: 2px; vertical-align: 1px; }
.opt { background: #767676; }
.apply-form input[type="text"], .apply-form input[type="tel"], .apply-form input[type="email"], .apply-form select, .apply-form textarea {
  display: block; width: 100%; max-width: 28em; min-height: 42px; margin-top: 2px; padding: 6px 8px; font: inherit; color: var(--ink); background: #fff; border: 1px solid #8c948a; border-radius: 3px; }
.apply-form textarea { max-width: 100%; min-height: 6.5em; }
.choices { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.choice { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-weight: normal; cursor: pointer; }
.choice input { width: 20px; height: 20px; margin: 0; accent-color: var(--green); }
.agree { padding: 12px 16px; background: var(--bg); }
.agree p { margin: 0 0 4px; font-size: .92rem; }
.apply-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 8px; }
.btn { min-height: 46px; padding: 10px 24px; font: inherit; font-weight: bold; color: #fff; background: var(--green); border: 2px solid var(--green); border-radius: 3px; cursor: pointer; }
.btn:hover { background: #244a2d; }
.btn-sub { color: var(--green); background: #fff; }
.btn-sub:hover { background: #eef2ea; }
.apply-form input:focus-visible, .apply-form select:focus-visible, .apply-form textarea:focus-visible, .btn:focus-visible { outline: 3px solid #d08b1a; outline-offset: 2px; }
.apply-panel h3:focus { outline: none; }
.apply-panel h3 { margin-top: 8px; font-size: 1.1rem; color: var(--green); }
@media (max-width: 640px) {
  .apply-form fieldset { padding: 4px 10px 8px; }
  .btn { flex: 1 1 100%; }
}
.grid.exam th:first-child, .grid.exam td:first-child, .grid.exam td:last-child { white-space: nowrap; }
