/* 基本 */

body {
  font-family: "Noto Sans JP", "Yu Gothic", sans-serif;
  color: #595757;
  font-weight: 500;
  font-size: 15px;
  line-height: 2.2;
}

/* 段落間の表示：p 要素の下マージンを追加（キャプションは除外） */
p:not(.caption) {
  margin: 0 0 1.2em;
}
.innerbox{
	max-width: 900px;
	margin-left: auto;
	margin-right: auto;
}
.innerbox-850{
	max-width: 850px;
	margin-left: auto;
	margin-right: auto;
}
.innerbox-1100{
	max-width: 1100px;
	margin-left: auto;
	margin-right: auto;
}

.topimg{
  width: 100%;
  height: auto;
  vertical-align: bottom;
}

/* タイトル */

#title .headerimage{
  max-width: 100%;
  height: 800px;
  background-color: #050B1F;
  background-position: center;
  background-size: auto;
  margin: 0;
  box-sizing: border-box;
  position: relative;
  background-image: url("background.jpg");
  overflow: hidden;
}

.lead-back{
  /* 背景の横線／ドット装飾を無効化（画像を使用しない） */
  background-image: none;
  background-repeat: no-repeat;
}

#title .ribbon,
#main .ribbon{
  width: 100%;
  height: 23px;
  background-position: center;
  background-size: auto;
  margin: 0;
  box-sizing: border-box;
  position: relative;
  background-image: url("ribbon.png");
  overflow: hidden;
}

#title .intro{
  background-color: #009944;
  padding: 30px 0 25px;
}

#title .intro p{
  width: 850px;
  margin: 0 auto;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.9;
}

/* 本文 */

#main{
  background: #ffffff;
  overflow-x: hidden;
  }

#main #main-text{
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

h1{
  width: 650px;
  font-weight: 400;
  text-align: center;
  font-size: 27px;
  line-height: 2.0;
  margin: 60px auto 60px;
  padding-bottom: 10px;
  border-bottom: 6px solid #009944;
}

.photo-box{
  display: block;
  width: 100%;
  max-width: 1100px;
  margin: auto;
  box-sizing: border-box;
  overflow: hidden;
}
/* フィールドスタディ用レイアウト（最大幅 850px、850px以下で1段組） */
.field-study-section{
  max-width: 100%;
  margin: 30px auto 0;
  padding: 0 12px;
  background: #efefef;
}
.field-study-box{
  width: 850px;
  max-width: 100%;
  margin: auto;
  padding-top: 20px;
  padding-bottom: 30px;
  box-sizing: border-box;
}
.field-study-section p{
  margin-bottom: 12px;
}
h2.field-midashi{
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  padding-top: 20px;
}
.field-study-inner{
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.field-map{
  text-align: right;
  padding-top: 30px;
}
.field-map img{
  height: auto;
  display: inline-block;
}
/* ヘッダーと地図を横並びにする（レスポンシブ対応） */
.field-study-header{
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 10px 24px;
  align-items: start;
}
.field-study-header p{
  margin: 0 30px 40px 0;
  font-size: 15px;
  line-height: 1.8;
}
.field-study-header > .field-map{
  grid-column: 2;
  grid-row: 1 / span 2;
  text-align: right;
}
.field-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 56px;
}
.field-item{
  display: grid;
  grid-template-columns: 1fr 160px;
  grid-template-rows: auto;
  align-items: start;
  padding: 10px 0 14px;
  border-top: 6px solid #64a95f;
  box-sizing: border-box;
}
.field-item .text{
  padding-right: 12px;
  min-width: 0;
  display: block;
}
.field-item .place{
  margin: 0 0 16px 0;
  font-size: 16px;
  line-height: 1.2;
  color: #64a95f;
  font-weight: 700;
}
.field-item .field-caption{
  margin: 0 20px 0 0;
  font-size: 15px;
  color: #64a95f;
  line-height: 1.5;
}
.field-item img{
  object-fit: cover;
  display: block;
  justify-self: center;
}
.relationship{
  background-color: #e6e6e6;
  padding: 20px 0;
}
.relationship p{
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.8;
}

.foot-face{
  background-color: #009944;
text-align: center;
}

@media screen and (max-width:850px){
  .field-map{ text-align:center; margin-bottom:8px; }
  .field-map img{ max-width:100%; height:auto; }
  .field-grid{ grid-template-columns: 1fr; }
  .field-item{ flex-direction: row; }
  .field-item img{ width: 120px; height: 80px; }
  /* 850px未満ではヘッダーと地図を縦2段にする */
  .field-study-header{
    display: block;
  }
  .field-study-header > .field-map{
    grid-column: 1;
    grid-row: auto;
    margin-top: 12px;
    text-align: center;
  }
}
.photo-box .photo-left{
  float: left;
  width: 385px;
  height: auto;
}

.photo-box .profile-left{
  width: 260px;
  text-align: left;
  font-size: 11px;
  line-height: 1.5;
  margin-top: 8px;
  margin-left: 125px;
}

.photo-box .profile-left p:nth-child(1){
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 0;
}

.photo-box .profile-left p:nth-child(2){
  color: #009944;
  font-size: 11px;
  margin-bottom: 6px;
}

.photo-box .text-right{
  float: right;
  width: 510px;
  margin-left: auto;
  margin-right: 125px;
}

.photo-box .text-left{
  float: left;
  width: 510px;
  margin-left: 125px;
  margin-right: auto;
}

.photo-box .photo-right{
  float: right;
  width: 385px;
  height: auto;
}
.photo-box .profile-right{
  width: 260px;
  text-align: left;
  font-size: 11px;
  line-height: 1.5;
  margin-top: 8px;
  margin-left: 0;
}

.photo-box .profile-right p:nth-child(1){
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 0;
}

.photo-box .profile-right p:nth-child(2){
  color: #009944;
  font-size: 11px;
  margin-bottom: 6px;
}

/* 19号館エリア */
.gou19-block {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  margin-top: 40px;
  background-image: linear-gradient(#000 0%, #000 260px, #d6e9c4 260px, #d6e9c4 100%);
  /* background-color: #d6e9c4; */
}

.gou19-imgs {
  display: flex;
  flex-direction: row;
  max-width: 1100px;
  margin: 0 auto;

}

.gou19-img-item {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.gou19-img-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.caption {
  font-size: 11px;
  line-height: 1.5;
  padding: 4px 8px;
  margin: 0;
  background-color: #d6e9c4;
}

.gou19-text {
  background-color: #d6e9c4;
  padding: 30px 0 15px;
}

.gou19-text h2 {
  max-width: 850px;
  margin: 0 auto 10px;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.8;
}

.gou19-text p {
  max-width: 850px;
  line-height: 1.9;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 5px;
}
.gou19-text p.annotation {
  font-size: 10px;
  line-height: 1.5;
  margin-top: 0px;
}

/* フッター */

footer{
  background-color: #595757;
  color: #fff;
  text-align: center;
  padding: 0 0 15px 0;
}

footer h3{
  font-size: 18px;
  font-weight: 700;
  line-height: 1.8;
  padding: 10px 0 0;
}

footer .logo{
  display: block;
  width: 150px;
  height: auto;
  margin: auto; /* 元の中央寄せを復元 */
}
footer .footer-text{
  font-size: 28px;
  font-weight: 400;
  line-height: 1.8;
  margin: 0;
  padding: 0;
}
/* ロゴのアンカー領域を画像サイズに限定して中央寄せ */
.footer-logo-link{
  display: inline-block;
  padding: 0;
  margin: auto; 
  line-height: 0;
}
/* ロゴ画像自体はアンカーの幅に合わせて余白を持たせない */
.footer-logo-link .logo{
  margin: 0;
  display: block;
}
footer p{
  text-align: center;
  color: #ffffff;
  font-weight: 700;
  line-height: 1.8;
}

footer .website{
  width: 100%;
  max-width: 300px;
  display: block;
  margin: 15px auto 100px;
  text-align: center;
  padding: 1.4em 0;
  font-weight: bold;
  background: #fff;
  color: #595757;
  border-radius: 3em;
  font-size: 13px;
  line-height: 0;
 }

footer a,
footer a:link,
footer a:visited,
footer a:hover,
footer a:active{
  text-decoration: none;
  color: inherit;
}

footer a:focus,
footer a:focus-visible{
  text-decoration: underline;
  text-decoration-color: #fff;
}

footer a:hover{
  text-decoration: underline;
  text-decoration-color: #fff;
}

/* ロゴにフォーカスしたときに website のリンクに下線を表示 */
/* ロゴにフォーカスまたはホバーしたときに website のリンクに下線を表示 */
footer > .footer-logo-link:focus ~ .website a,
footer > .footer-logo-link:focus-visible ~ .website a,
footer > .footer-logo-link:hover ~ .website a {
  text-decoration: underline;
  text-decoration-color: #fff;
}

/* ページトップボタン用の設定 */

.scroll-top{
  position: fixed;
  right: 36px;
  bottom: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: transparent;
  color: inherit;
  border: none;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
  z-index: 9999;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease;
  padding: 0;
}
.scroll-top.show{
  opacity: 1;
  transform: translateY(0);
}
.scroll-top img{
  display: block;
  width: 36px;
  height: 36px;
}

/* スマホ対応等 */
@media screen and (max-width: 1100px) {
  #title .headerimage{
    height: auto;
    background-size: contain;
    background-image: none;
  }

  #main-text .intro{
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: left;
  }

  #main-text .intro-left{
    justify-self: center;
  }

  #main .case-grid{
    grid-template-columns: 1fr;
  }

  #main .case-item{
    text-align: left;
  }

  #main, .innerbox, #title .lead{
    max-width: 95%;
    margin-left: auto;
    margin-right: auto;

  }
  .photo-box{
    max-width: 850px;
    margin: auto;
  }

  .photo-box .photo-left,
  .photo-box .photo-right {
    float: none;
    width: 100%;
    max-width: 385px;
    margin: 0 auto;
  }

  .photo-box .photo-left img,
  .photo-box .photo-right img {
    width: auto;
    max-width: 100%;
    height: auto;
    display: block;
  }

  .photo-box .profile-left {
    margin-left: 0;
    width: 100%;
  }

  .photo-box .profile-right {
    width: 100%;
  }

  .photo-box .text-right,
  .photo-box .text-left {
    float: none;
    width: 100%;
    margin: 20px 0 0;
  }

  .gou19-imgs {
    flex-direction: column;
    background-color: #d6e9c4;
  }

  .gou19-img-item img {
    width: auto;
    max-width: 100%;
    height: auto;
    object-fit: unset;
  }

  .gou19-block {
    display: flex;
    flex-direction: column;
    background-image: none;
    background-color: #d6e9c4;
  }

  .gou19-text {
    order: -1;
  }
}
@media screen and (max-width: 960px) {
  h1 {
    margin: 30px auto;
  }
  #title .intro p {
    width: 90%;
    margin: inherit auto;
  }
  .photo-box{
    width: 90%;
  }
  .gou19-text{
    max-width: 85%;
    margin: auto;
  }
 }
@media screen and (max-width: 768px) {
  h1 {
    width: 85%;
  }
  #title .intro p {
    font-size: 18px;
    line-height: 1.8;
  }
}
@media screen and (max-width: 548px) {
  body {
    font-size: 12px;
    line-height: 1.8;
  }

  #main, .innerbox, #title .lead{
    max-width: 85%;
  }

  h1{
    font-size: 22px;
    line-height: 1.6;
    margin: 30px auto 12px;
  }
  #title .intro p {
    font-size: 16px;
    line-height: 1.6;
  }

  .img{
    padding: 0 50px;
  }

  .scroll-top img{
    width: 24px;
    height: 24px;
  }

}
  