@charset "utf-8";
@import url("side-left.css");

h1,h2,h3,h4,h5,h6 {
  margin: 0;
  padding: 0;
}

/*サイドメニューの番号*/
ul.sidenumber li {
  word-break: break-all;
  list-style-type: none;
  counter-increment: cnt;
}
ul.sidenumber li a::before {
  content: "[" counter(cnt) "]";
  display:inline-block;
  width: 1.5em;
}
.side-area .side-menu:first-child {
    border-width: 0;
}

/*見出し*/
.headline {
  border-bottom: 1px solid var(--limegreen);
  margin-bottom: 30px;
}
.headline h1 {
  /*18-24*/
  font-size: clamp(1.125rem, 1.05rem + 0.38vw, 1.5rem);
  border: 1px solid var(--limegreen);
  border-left-width: 5px;
  padding: 10px;
  margin-bottom: 30px;
  color: var(--limegreen);
}

h2 {
  /*18-22*/
  font-size: clamp(1.125rem, 1.075rem + 0.25vw, 1.375rem);
  color: var(--limegreen);
  margin-bottom: 30px;
}
h2~h2 {
  margin-top: 80px;
}

/*リード文*/
.read {
  margin-bottom: 50px;
}
.read h2 {
  line-height: 160%;
}


/*理事長メッセージ*/
.headline-message {
  margin-bottom: 30px;
  color: #7f7f7f;
}
.headline-message h1 {
  /*16-20*/
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.25rem);
  margin-bottom: 20px;
}
.headline-message h2 {
  /*18-28*/
  font-size: clamp(1.125rem, 1rem + 0.63vw, 1.75rem);
  color: #7f7f7f;
  margin: 0;
}

/*写真*/
.photo {
  max-width: 300px;
  margin: 0 0 30px 30px;
  float: right;
}
.photo figcaption {
  text-align: right;
}
.photo figcaption:lang(en) {
  letter-spacing: -0.15px;
}

/*署名*/
.sign {
    margin-top: 30px;
    text-align: right;
}


/*沿革*/
.theme-2 {
  border-top-width: 0;
  margin-bottom: 70px;
  background-color: transparent;
}

.history {
  background: url("../../images/road_rev.jpg") no-repeat center top;
  background-size: cover;
  background-color: #292929;
  padding-bottom: 100px;
  margin-bottom: 80px;
}
.timeline {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  list-style-type: none;
  position: relative;  
}

/* 中央の縦線 */
.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 3px;
  height: 100%;
  background: #fff;
  transform: translateX(-50%);
}
.timeline li {
  position: relative;
  width: 50%;
  padding: 10px 50px;
  box-sizing: border-box;
  color: #fff;
}
.timeline li div {
  background-color: rgba(255,255,255,0.15);
  border-radius: 4px;
  padding: 20px;
}
.timeline li h6 {
  font-weight: normal;
  font-size: clamp(1rem, 0.975rem + 0.13vw, 1.125rem);
}
.timeline li p {
  line-height: 120%;
  margin: 0;
}
.timeline p.summary {
  color: #7f7f7f;
  margin: 20px 0;
}

/* 中央の丸（節） */
.timeline li::before {
  content: "";
  position: absolute;
  top: 25px;
  width: 18px;
  height: 18px;
  background: #333;
  border: 3px #fff solid;
  border-radius: 50%;
}

/* 上下左右 */
.timeline li.left {
  left: 0;
}
.timeline li.left::before {
  right: -12px;
}
.timeline li.right {
  left: 50%;
}
.timeline li.right::before {
  left: -12px;
}
.timeline li:first-child {
  padding-top: 0;
}
.timeline li:first-child::before {
  content: "start";
  width: 50px;
  height: 50px;
  top: 0;
  left: -28px !important;
  display: flex;
  align-items: center;
  justify-content: center;
}
.timeline li:last-child::before {
  content: "now";
  width: 50px;
  height: 50px;
  top:0;
  left: -28px !important;
  display: flex;
  align-items: center;
  justify-content: center;
}


/*ホバー*/
.timeline li:hover div {
  background-color: var(--limegreen);
  color: #427300;
}
.timeline li:hover div p.summary {
  color: #427300;
}
.timeline li:hover::before {
  background: var(--limegreen);
}
.timeline li:first-child:hover::before,
.timeline li:last-child:hover::before {
  background-color: #292929;
}

.side-contents {
  padding-bottom: 50px;
}

/*英語*/
.eng {
  padding-bottom: 0 !important;
}
.eng p {
  text-align: justify;
  text-justify: inter-word;
  word-break: normal;
  overflow-wrap: break-word;
}
.eng p.sign {
  text-align: right;
}




/****************************/
/*レスポンシブ*/
/****************************/
@media screen and (max-width: 1279px) {
  .timeline li {
    width: calc(50% - 50px);
    padding: 10px 0 10px 50px;
  }
  .timeline li.left {
    left: 50px;
    padding: 10px 50px 10px 0;
  }
  .timeline li.left::before {
    right: -12px;
  }
}

@media screen and (max-width: 979px) {
}

@media screen and (max-width: 779px) {
  .photo {
    max-width: 40%;
  }
}

@media screen and (max-width: 579px) {
  .timeline::before {
    left: 10%;
  }
  .timeline li.right,
  .timeline li.left {
    left: 10%;  
  }
  .timeline li.left::before {
    left: -12px;
  }
  .timeline li.left {
    padding: 10px 0 10px 20px;
  }
  .timeline li {
    width: calc(100% - 20px - 10%);
    padding: 10px 0 10px 20px;
  }

  .eng p {
    text-align: initial;
  }
}

@media screen and (max-width: 379px) {
  .photo {
    max-width: 100%;
    float: none;
    margin: 0 auto 30px;
  }
  .photo figcaption {
    text-align: center;
  }
  .eng p {
    text-align:initial;
  }
}
