@charset "UTF-8";

html, body { margin:0; padding:0; }
body {
  color:#2d351f;
  background:#ffffff;
  font-family:"Yu Gothic","Hiragino Sans","Hiragino Kaku Gothic ProN",Meiryo,Arial,sans-serif;
  font-size:16px;
  line-height:1.7;
}
a { color:#2d351f; text-decoration:none; }
.inner {
  width:1180px;
  max-width:calc(100% - 40px);
  margin:0 auto;
}

/* Header */
#header { background:#fff; border-bottom:3px solid #556f0f; }
.header-inner { min-height:108px; position:relative; }
#brand { padding-top:14px; }
.brand-main {
  font-family:"Yu Mincho","Hiragino Mincho ProN","Hiragino Mincho Pro",serif;
  font-size:29px;
  font-weight:bold;
  letter-spacing:.06em;
}
.brand-sub { margin-top:1px; font-size:15px; font-weight:bold; letter-spacing:.04em; }
.brand-en { margin-top:2px; color:#5f6657; font-size:12px; line-height:1.35; letter-spacing:.02em; }
#utility { position:absolute; top:31px; right:0; font-size:14px; }
#utility a, #utility span { margin-left:12px; }
#utility .search-link {
  display:inline-block;
  margin-left:20px;
  padding:9px 14px;
  color:#fff;
  background:#556f0f;
  border-radius:5px;
}
#nav { border-top:1px solid #edf0e5; text-align:center; white-space:nowrap; overflow-x:auto; }
#nav a {
  display:inline-block;
  padding:15px 22px 14px;
  font-weight:bold;
  font-size:15px;
  border-right:1px dotted #a9b57d;
}
#nav a:first-child { border-left:1px dotted #a9b57d; }
#nav a:hover { color:#556f0f; background:#f7f9ef; }

/* Hero */
#hero {
  height:520px;
  background:#c4e9f8 url("hero_sky_olive.jpg") no-repeat center center;
  background-size:cover;
}
.hero-inner { height:520px; position:relative; }
.hero-copy {
  width:54%;
  padding-top:62px;
  margin-left:52px;
}
.hero-copy h1 {
  margin:0 0 20px;
  color:#3e4f12;
  font-family:"Yu Mincho","Hiragino Mincho ProN","Hiragino Mincho Pro",serif;
  font-size:44px;
  line-height:1.55;
  font-weight:normal;
  letter-spacing:.07em;
  text-shadow:0 1px 2px rgba(255,255,255,.9), 0 0 8px rgba(255,255,255,.55);
}
.hero-copy p {
  margin:0 0 27px;
  font-size:16px;
  line-height:1.9;
}
.hero-buttons {
  white-space:nowrap;
}
.hero-buttons a {
  display:inline-block;
  width:230px;
  margin-right:14px;
  padding:13px 14px;
  text-align:center;
  font-weight:bold;
  border-radius:6px;
  box-sizing:border-box;
  white-space:normal;
}
.btn-primary { color:#fff; background:#556f0f; border:1px solid #556f0f; }
.btn-secondary { color:#4d6610; background:rgba(255,255,255,.94); border:1px solid #556f0f; }

/* Important */
#important-area { position:relative; margin-top:-38px; z-index:10; }
#important {
  min-height:76px;
  padding:0 28px;
  background:#fff;
  border-radius:10px;
  box-shadow:0 5px 18px rgba(40,55,20,.15);
  position:relative;
}
.important-label {
  position:absolute;
  left:28px;
  top:25px;
  color:#d1483e;
  font-weight:bold;
  letter-spacing:.08em;
}
.important-text { padding:24px 190px 20px 165px; }
.important-button { position:absolute; right:25px; top:17px; }
.important-button a {
  display:block;
  padding:10px 20px;
  color:#fff;
  background:#556f0f;
  border-radius:6px;
  font-weight:bold;
}

/* Courses */
#courses { padding:70px 0 60px; }
.course-box {
  background:#fff;
  border:1px solid #e5e8dc;
  border-radius:10px;
  box-shadow:0 4px 14px rgba(40,55,20,.08);
  overflow:hidden;
}
.course {
  float:left;
  width:33.3333%;
  min-height:255px;
  padding:30px 30px;
  border-right:1px dotted #b7c294;
  box-sizing:border-box;
}
.course-last { border-right:0; }
.course-icon {
  float:left;
  width:72px;
  height:72px;
  margin:4px 20px 105px 0;
}
.course h2 {
  margin:0 0 12px;
  color:#35450f;
  font-family:"Yu Mincho","Hiragino Mincho ProN","Hiragino Mincho Pro",serif;
  font-size:22px;
  line-height:1.45;
}
.course p { margin:0 0 13px; font-size:15px; min-height:72px; }
.course a { color:#556f0f; font-weight:bold; }
.clearfix:after { content:""; display:block; clear:both; }

/* Tablet */
@media screen and (max-width:900px) {
  .inner { max-width:calc(100% - 30px); }
  .header-inner { min-height:76px; }
  #brand { padding-top:12px; }
  .brand-main { font-size:22px; }
  .brand-sub { font-size:12px; }
  #utility { display:none; }
  #nav { text-align:left; }

  #hero, .hero-inner { height:560px; }
  #hero { background-position:58% center; }
  .hero-copy { width:66%; padding-top:44px; margin-left:20px; }
  .hero-copy h1 { font-size:35px; }

  .hero-buttons {
    white-space:normal;
  }
  .hero-buttons a {
    display:block;
    width:280px;
    max-width:100%;
    margin:0 0 10px;
    box-sizing:border-box;
  }

  #important { padding:20px; }
  .important-label, .important-button { position:static; }
  .important-text { padding:5px 0 12px; }
  .important-button a { display:inline-block; }

  .course { float:none; width:100%; min-height:0; border-right:0; border-bottom:1px dotted #b7c294; }
  .course-last { border-bottom:0; }
  .course p { min-height:0; }
  .course-icon { margin-bottom:25px; }
}

/* Smartphone */
@media screen and (max-width:600px) {
  .inner { max-width:calc(100% - 24px); }
  #hero, .hero-inner { height:620px; }
  #hero { background-position:64% center; }
  .hero-copy {
    width:100%;
    padding-top:34px;
    padding-right:18%;
    margin-left:0;
    box-sizing:border-box;
  }
  .hero-copy h1 { font-size:29px; line-height:1.55; }
  .hero-copy p { font-size:14px; }
  .hero-buttons a { width:100%; }
  #important-area { margin-top:-28px; }
  #courses { padding-top:48px; }
  .course { padding:24px 22px; }
  .course-icon { width:58px; height:58px; margin-right:16px; }
}


/* Universal Design / accessibility adjustments */
a:focus,
a:hover {
  outline-offset: 3px;
}
a:focus {
  outline: 3px solid #1f5e8c;
}
#nav a,
.hero-buttons a,
.important-button a,
.course a {
  min-height: 44px;
}
.hero-buttons a,
.important-button a {
  line-height: 1.4;
}
.course p {
  line-height: 1.8;
}
.important-label {
  color: #8f2f28;
}


/* v6: course-title readability */
.course h2 {
  font-size: 21px;
  letter-spacing: 0;
  word-break: keep-all;
  overflow-wrap: normal;
}
.course-last h2 {
  font-size: 20px;
  white-space: nowrap;
}

/* v6: keep the notice action fully inside its white panel */
#important {
  box-sizing: border-box;
  padding-right: 185px;
}
.important-text {
  padding-right: 10px;
}
.important-button {
  right: 22px;
  top: 15px;
}
.important-button a {
  box-sizing: border-box;
  min-width: 140px;
  text-align: center;
}

@media screen and (max-width: 900px) {
  #important {
    padding: 20px;
  }
  .important-button {
    margin-top: 4px;
  }
  .course-last h2 {
    white-space: normal;
  }
}

@media screen and (max-width: 600px) {
  .course h2,
  .course-last h2 {
    font-size: 20px;
    white-space: normal;
  }
}


/* v7: skip link */
.skip-link {
  position:absolute;
  left:12px;
  top:-60px;
  z-index:1000;
  padding:10px 16px;
  color:#fff;
  background:#1f5e8c;
  border-radius:0 0 6px 6px;
  font-weight:bold;
}
.skip-link:focus { top:0; }

/* v7: accreditation */
#accreditation {
  padding: 0 0 72px;
}
.accreditation-box {
  box-sizing:border-box;
  min-height:190px;
  padding:28px 34px;
  background:#f7f9f2;
  border:1px solid #dfe5d4;
  border-radius:10px;
  box-shadow:0 3px 12px rgba(40,55,20,.06);
  overflow:hidden;
}
.accreditation-mark {
  float:left;
  width:150px;
  height:150px;
  margin-right:34px;
  padding-top:18px;
  box-sizing:border-box;
  text-align:center;
  color:#35450f;
  background:#fff;
  border:2px solid #708248;
  border-radius:50%;
  line-height:1.25;
}
.accreditation-mark span,
.accreditation-mark strong {
  display:block;
}
.accreditation-mark .acc-small {
  font-size:13px;
  font-weight:bold;
}
.accreditation-mark strong {
  margin:4px 0 6px;
  font-family:"Yu Mincho","Hiragino Mincho ProN","Hiragino Mincho Pro",serif;
  font-size:26px;
}
.accreditation-mark .acc-pass {
  font-size:14px;
  font-weight:bold;
}
.accreditation-mark .acc-year {
  margin-top:6px;
  font-size:12px;
}
.accreditation-content {
  padding-top:8px;
  overflow:hidden;
}
.accreditation-content h2 {
  margin:0 0 10px;
  color:#35450f;
  font-family:"Yu Mincho","Hiragino Mincho ProN","Hiragino Mincho Pro",serif;
  font-size:25px;
}
.accreditation-content p {
  margin:0 0 12px;
  line-height:1.85;
}
.accreditation-content a {
  display:inline-block;
  min-height:44px;
  padding:8px 0;
  box-sizing:border-box;
  color:#4d6610;
  font-weight:bold;
}

/* v7: clearer button/link contrast */
.btn-primary,
.important-button a {
  color:#fff;
}
#utility .search-link {
  color:#fff;
}

@media screen and (max-width:900px) {
  .header-inner { min-height:96px; }
  .brand-en { font-size:11px; }
  .accreditation-box { padding:24px; }
}

@media screen and (max-width:600px) {
  .header-inner { min-height:104px; }
  .brand-main { font-size:21px; }
  .brand-sub { font-size:12px; line-height:1.45; }
  .brand-en { max-width:94%; font-size:10.5px; line-height:1.35; }
  .accreditation-mark {
    float:none;
    width:132px;
    height:132px;
    margin:0 auto 22px;
    padding-top:14px;
  }
  .accreditation-mark strong { font-size:23px; }
  .accreditation-content { padding-top:0; }
  .accreditation-content h2 { font-size:22px; text-align:center; }
}

.accreditation-mark.accreditation-image {padding:0;background:#fff;border:0;border-radius:0;}
.accreditation-image img {display:block;width:150px;height:150px;object-fit:contain;}
@media screen and (max-width:600px){.accreditation-image img{width:132px;height:132px;}}

/* v44: current important notices on top page */
#important .important-current{flex:1;min-width:0;padding:2px 18px}
#important .important-current p{margin:0;padding:7px 0;border-bottom:1px solid #dfe5da;line-height:1.55}
#important .important-current p:last-child{border-bottom:0}
#important .important-current a{color:#24362b;text-decoration:none}
#important .important-current a:hover,#important .important-current a:focus{text-decoration:underline}
#important .important-date{display:inline-block;min-width:92px;margin-right:10px;color:#5c665f;font-size:.88em}
@media(max-width:760px){
  #important .important-current{padding:10px 0}
  #important .important-current p{padding:9px 0}
  #important .important-date{display:block;min-width:0;margin:0 0 2px}
}

/* v45: Important News layout correction */
#important{
  display:grid;
  grid-template-columns:150px minmax(0,1fr) 300px;
  column-gap:24px;
  align-items:start;
}
#important .important-label{
  padding-top:8px;
  white-space:nowrap;
  line-height:1.4;
}
#important .important-current{
  min-width:0;
  padding:0;
}
#important .important-current p{
  display:grid;
  grid-template-columns:130px minmax(0,1fr);
  gap:22px;
  align-items:start;
  margin:0;
  padding:8px 0 11px;
  border-bottom:1px solid #dfe5da;
  line-height:1.55;
}
#important .important-current p:last-child{border-bottom:0}
#important .important-date{
  display:block;
  min-width:0;
  margin:0;
  white-space:nowrap;
}
#important .important-button{
  align-self:start;
  margin:0;
}
#important .important-button a{
  display:block;
  box-sizing:border-box;
  width:100%;
  text-align:center;
}

@media(max-width:1000px){
  #important{
    grid-template-columns:135px minmax(0,1fr);
  }
  #important .important-button{
    grid-column:2;
    margin-top:12px;
    max-width:320px;
  }
}
@media(max-width:760px){
  #important{
    display:block;
  }
  #important .important-label{
    padding-top:0;
    margin-bottom:8px;
  }
  #important .important-current{
    padding:0;
  }
  #important .important-current p{
    display:block;
    padding:10px 0;
  }
  #important .important-date{
    margin:0 0 3px;
  }
  #important .important-button{
    margin-top:14px;
    max-width:none;
  }
}


/* v46: approved top-page composition */

/* Hero: keep the full paper airplane visible */
#hero{
  background-size: cover;
  background-position: center top;
}
#hero .hero-inner{
  min-height: 440px;
}

/* Important News: card overlapping the lower edge of the hero */
#important-area{
  position: relative;
  z-index: 5;
  margin-top: -34px;
  padding: 0 0 34px;
}
#important-area .inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
#important{
  display: block;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(42,58,47,.10);
  padding: 18px 30px 20px;
}
#important .important-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 6px;
}
#important .important-head h2{
  position: relative;
  margin: 0;
  padding-left: 24px;
  font-size: 1.3rem;
  line-height: 1.4;
  color: #2a332c;
  font-family: "Yu Mincho","Hiragino Mincho ProN","Hiragino Mincho Pro",serif;
}
#important .important-head h2::before{
  content: "";
  position: absolute;
  left: 0;
  top: .18em;
  width: 7px;
  height: 1.5em;
  border-radius: 4px;
  background: #567509;
}
#important .important-all{
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 44px;
  box-sizing: border-box;
  padding: 10px 22px;
  border-radius: 7px;
  background: #567509;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
#important .important-all:hover,
#important .important-all:focus{
  text-decoration: underline;
}
#important .important-list{
  border-top: 0;
}
#important .important-item{
  display: grid;
  grid-template-columns: 125px minmax(0,1fr) 24px;
  align-items: center;
  gap: 18px;
  min-height: 58px;
  padding: 0 6px;
  border-bottom: 1px solid #dfe4df;
  color: #233d66;
  text-decoration: none;
}
#important .important-item:first-child{
  border-top: 0;
}
#important .important-item:hover .important-item-title,
#important .important-item:focus .important-item-title{
  text-decoration: underline;
}
#important .important-item time{
  color: #70766f;
  white-space: nowrap;
  font-size: .94rem;
}
#important .important-item-title{
  min-width: 0;
  line-height: 1.5;
}
#important .important-arrow{
  justify-self: end;
  color: #363d38;
  font-size: 1.8rem;
  line-height: 1;
  font-family: Arial,sans-serif;
}

/* Neutralize prior v44/v45 rules */
#important .important-label,
#important .important-current,
#important .important-button{
  display: none !important;
}

@media (max-width: 900px){
  #hero .hero-inner{
    min-height: 410px;
  }
  #important{
    padding: 18px 22px;
  }
  #important .important-head{
    align-items: flex-start;
  }
  #important .important-item{
    grid-template-columns: 110px minmax(0,1fr) 20px;
    gap: 12px;
  }
}
@media (max-width: 700px){
  #hero{
    background-position: 58% top;
  }
  #hero .hero-inner{
    min-height: 390px;
  }
  #important-area{
    margin-top: -22px;
  }
  #important-area .inner{
    padding: 0 14px;
  }
  #important{
    padding: 16px 16px 14px;
    border-radius: 10px;
  }
  #important .important-head{
    display: block;
    margin-bottom: 8px;
  }
  #important .important-head h2{
    font-size: 1.16rem;
    margin-bottom: 12px;
  }
  #important .important-all{
    width: 100%;
  }
  #important .important-item{
    grid-template-columns: 1fr 18px;
    gap: 8px;
    padding: 10px 2px;
  }
  #important .important-item time{
    grid-column: 1;
    margin-bottom: 1px;
  }
  #important .important-item-title{
    grid-column: 1;
  }
  #important .important-arrow{
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
  }
}


/* =========================================================
   v52 responsive correction
   Keep the established design; repair intermediate-width layouts.
   ========================================================= */
@media screen and (max-width: 900px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  #header,
  #nav,
  #hero,
  #important,
  #main,
  #footer {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .inner,
  .header-inner,
  #nav .inner,
  #hero .inner,
  #important .inner,
  #main .inner,
  #footer .inner {
    width: auto;
    max-width: none;
    min-width: 0;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }

  #hero {
    background-size: cover;
    background-position: center top;
  }

  #important {
    box-sizing: border-box;
  }

  #important .important-card,
  #important .important-inner,
  #important .important-list {
    width: auto;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  #important a,
  #important .important-title,
  #important .important-text {
    overflow-wrap: anywhere;
    word-break: normal;
  }

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

/* Tablet / narrow desktop: use the full viewport instead of the old fixed width. */
@media screen and (min-width: 601px) and (max-width: 900px) {
  .inner,
  .header-inner,
  #nav .inner,
  #hero .inner,
  #important .inner,
  #main .inner,
  #footer .inner {
    padding-left: 24px;
    padding-right: 24px;
  }

  #hero {
    min-height: 0;
  }

  #important {
    margin-left: 0;
    margin-right: 0;
  }
}

/* Smartphone: retain the existing vertical layout, only prevent overflow. */
@media screen and (max-width: 600px) {
  .inner,
  .header-inner,
  #nav .inner,
  #hero .inner,
  #important .inner,
  #main .inner,
  #footer .inner {
    width: auto;
    max-width: none;
    min-width: 0;
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
  }
}


/* =========================================================
   v53 narrow-screen header / hero refinement
   Keep the established design; show utility + main navigation on small screens.
   ========================================================= */

/* Tablet and below: keep the utility links visible in normal flow. */
@media screen and (max-width: 900px) {
  .header-inner {
    min-height: 0;
    padding-bottom: 10px;
  }

  #utility {
    display: flex;
    position: static;
    justify-content: flex-end;
    align-items: center;
    gap: 0;
    margin-top: 8px;
    padding-bottom: 2px;
    font-size: 12px;
    line-height: 1.4;
    white-space: nowrap;
  }

  #utility a,
  #utility span {
    margin-left: 8px;
  }

  /* Main navigation remains visible; wrap instead of disappearing/cropping. */
  #nav {
    overflow-x: visible;
    white-space: normal;
    text-align: center;
  }

  #nav .inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
  }

  #nav a {
    flex: 0 0 auto;
    padding: 11px 14px 10px;
    font-size: 13px;
    line-height: 1.35;
  }
}

/* Smartphone: compact utility bar + two-column main navigation.
   Hero background is shifted so the paper airplane stays fully visible. */
@media screen and (max-width: 600px) {
  .header-inner {
    padding-bottom: 8px;
  }

  #utility {
    justify-content: center;
    width: 100%;
    margin-top: 8px;
    font-size: 11px;
  }

  #utility a,
  #utility span {
    margin-left: 5px;
  }

  #nav .inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: none;
  }

  #nav a {
    display: block;
    width: auto;
    padding: 10px 6px;
    border-right: 1px dotted #a9b57d;
    border-bottom: 1px solid #edf0e5;
    font-size: 12px;
    white-space: normal;
  }

  #nav a:nth-child(odd) {
    border-left: 1px dotted #a9b57d;
  }

  /* The source image is 2:1. At narrow widths, position the crop around
     the paper airplane instead of the image centre. */
  #hero {
    background-size: auto 100%;
    background-position: 75% center;
  }
}
