/* ============= ベースカラーと幅の変数作成 ============= */

/* z-indexの関係
  header:999
  hamburger:9999
  bus-banner p :100
  aside ul li a :10
  main : -5

*/
:root{
    --mbwidth:768px; /* モバイル横幅上限 */
    --tabwidth:1280px; /* タブレット横幅上限 */
    --pcwidth:1960px; /* PC横幅上限 */

    --height-mbheader:46px;
    --height-Tbheader:65px;
    --height-PCheader:80px;
    

    --bgcolor:rgba(255, 255, 255, 1); /* 基本のbackground-color */
    --bg-header:rgba(7, 69, 88, 1); /* headerとメニューのbackground-color */
    --bg-PCheader:rgba(7, 69, 88, 0.85); /* headerとメニューのbackground-color */
    --bg-submenu:rgba(55, 87, 97, 1); /* ハンバーガーメニューのサブメニュー部分 */
    --bg-submenu095:rgba(55, 87, 97, 0.95); /* ハンバーガーメニューのサブメニュー部分 */
    --bg-titleRec:rgba(219, 91, 15, 0.6); /* メインサブタイトル */
    --bg-header-015:rgba(7, 69, 88, 0.15); /* 半透明ヘッダー 0.15*/
    --bg-header-060:rgba(7, 69, 88, 0.60); /* 半透明ヘッダー 0.60*/
    --bg-orgTitle:rgba(7, 69, 88, 0.05); /* 組織概要タイトル */

    --border-menu:rgba(211, 218, 220, 1); /* メニュー内区切り */
    --border-gaiyou-title: rgba(7, 69, 88, 1); /* 組織概要　文字＆左ライン */
    --border-header: rgba(7, 69, 88, 0.4); /* 組織概要　パンくず下ライン */
    --border-footer: rgba(7, 69, 88, 0.15); /* フッターライン */


    --color-txt:rgba(0, 0, 0, 1); /* 文字デフォルト */
    --color-menu:rgba(255, 255, 255, 1); /* メニュー、ヘッダー */ 
    --color-opacity:rgba(133, 196, 159, 1);/* 半透明backgroundの文字*/
    --color-breadcrum:rgba(7, 69, 88, 0.4); /* パンくずリスト下線 */
    --color-pic:rgba(187, 101, 50, 1); /* 写真説明 */
    --color-biztitle:rgba(219, 91, 15, 0.6); /* メインページサブタイトル区切り */
    --color-orgtitle:rgba(7, 69, 88, 1); /* 組織概要サブタイトル区切り */
    --color-Sidemenu:rgba(7, 69, 88, 0.7); /* PC用サイドメニュー文字カラー */


    --font-size-default:1rem; /* 文字サイズデフォルト  16px*/
    --font-size-breadcrum-mb:0.8125rem; /*パンくずリストモバイル　13px */
    --font-size-breadcrum-Tab:1rem; /*パンくずリストモバイル　16px */
    --font-size-Orgtitle-mb:1.0625rem; /* 組織概要タイトル 17px*/
    --font-size-Orgtitle-Tab:1.5rem; /* 組織概要タイトル タブレット 24px*/
    --font-size-Orgtxt-Tab:1.25rem; /* 組織概要本文 タブレット 20px*/
    --font-size-biztitle:1.625rem; /* 業務概要タイトル 26px*/ 
    --font-size-bizTxt-Tab:1.0625rem; /*業務概要本文 PC用 17px*/
    --font-siza-bizCaption:0.8125rem; /*業務概要 写真説明 タブレット用 13px*/
    --font-size-bizTxt-PC:1.25rem; /*業務概要本文 PC用 20px*/

    --font-style-default:"Zen Kaku Gothic New", sans-serif;
}


@media screen and (min-width:1280px) {
    :root{
      --font-size-default:1rem;
    }
}

/* ============= 基本設定 ============= */
html{
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scroll-behavior: smooth;
}
@media screen and (min-width:1280px) {
  html{
  scrollbar-gutter: stable;
  }
}


body{
  width: 100%;
  min-width: 350px;
  max-width: var(--mbwidth);
  background-color: var(--bgcolor);
  font-family: var(--font-style-default);
  font-size: var(--font-size-default);
  color: var(--color-txt);
}

@media screen and (min-width:768px) {
  body{
    max-width: var(--tabwidth);
  }
}

@media screen and (min-width:1280px) {
  body{
    max-width: var(--pcwidth);
    margin: 0 auto;
  }

}

/* #region ヘッダー */
/* ===========ヘッダー================ */

header{
  position: fixed;
  /* display: flex;
  flex-direction: column; */
  width: 100%;
  max-width: var(--mbwidth);
  height: var(--height-mbheader);
  top: 0;
  transition: all 0.3s ease-in-out;
  z-index: 999;

}
@media screen and (min-width:768px) {
  header{
    height: var(--height-Tbheader);
    max-width: var(--tabwidth);
  }
}
@media screen and (min-width:1280px) {
  header{
    height: var(--height-PCheader);
    max-width: var(--pcwidth);
  }

  header.scrolled{
    display: none;
  }
}


/* ヘッダー部分 */
.header-wrapper{
  width: 100%;
  height: 100%;
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  align-items: center;
  line-height: var(--height-mbheader);
  background-color: var(--bg-header);
  /* background-color: transparent; */
}

/* PC用 */
@media screen and (min-width:1280px) {
  .header-wrapper{
    background-color: var(--bg-PCheader);
    /* background-color: transparent; */
  }

  /* PCの時に消す。組織概要対応 */
  .header-wrapper.pc-none{
    display: none;
  }
}


/* ヘッダータイトル */
.header-title{
  margin-left: 3%;
}

.header-title img{
  width: 258px;
  height: auto;
}
/* タブレット・PC共通サイズ */
@media screen and (min-width:768px) {
  .header-title img{
    width: 387px;
    height: auto;
  }
}


/* タイトル画像 スクロールで出たり消えたりする用 */
.default-img{
  display: block;
}

/* 隠れタイトル デフォルトは消えた状態*/
.scrolled-text{
  display: none;
  font-family: "Zen Old Mincho", serif;
  font-weight: 400;
  font-style: normal;
  font-size: 0.8125rem;
  font-weight: 400;
}

/* 隠れタイトルの太字部分 */
.scrolled-text > span{
  font-weight: 600;
}

@media screen and (min-width:768px) {
  .scrolled-text{
    font-size: 1.5rem;
  }
}


/* スクロール後 まとめてここ*/
/* ヘッダー・文字色の変更 */
.header-wrapper.scrolled{
  height: 100%; 
  background-color: var(--bg-header-015); /* 半透明に変更 */
  color: var(--bg-header); /* テキスト色変更 */
}


/* 初期ヘッダータイトルを消す*/
.header-wrapper.scrolled .default-img{
  display: none;
}

/* 隠れタイトルを出す */
.header-wrapper.scrolled .scrolled-text{
  display: inline;
}

/* 隠れタイトルを中央に header-title全体で再調整*/
.header-wrapper.scrolled .header-title{
  width: calc(100% - 50px);
  text-align: center;
  /* background-color: aqua; */
}
/* タブレット版 */
@media screen and (min-width:768px) {
  .header-wrapper.scrolled .header-title{
    width: calc(100% - 65px);
  }

}

/* PC版では使わないので隠れテキストを消す */
@media screen and (min-width:1280px) {
  .scrolled-text{
    display: none;
  }
}
/* #endregion */

/* #region ヘッダーメニュー回り */
/* メニュー用のカバー JS用にIDで*/
#overlay-js{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  display: none;
}

#overlay-js.active{
  display: block;
}

/* メニューの下地 右から出てくる部分*/
.header-nav {
  position: absolute;
  top: 0;
  width: 300px;
  height: 100vh;
  right: -100%; 
  background-color: var(--bg-header); 
  /*ハンバーガーメニュークリック時のナビゲーションメニュー背景色*/
  transition: ease .4s; /*ハンバーガーメニュークリック時のナビゲーションメニュー出現を遅延*/
}



/* ハンバーガーメニュークリック後のスタイル */
.header-nav.active {
  right: 0;
}


/* PC用 */
@media screen and (min-width:1280px) {
  .header-nav {
    position: static;
    transform: initial;
    background-color: inherit;
    height: inherit;
    display: flex;
    justify-content: end;
    width: 100%;
  }
}

/* ハンバーガーメニュー */
.header-hamburger{
  width: var(--height-mbheader);
  height: 100%;
}
@media screen and (min-width:768px) {
  .header-hamburger{
    width: var(--height-Tbheader);
    height: 100%;
  }
}


.hamburger {
    background-color: transparent; /*buttonタグデフォルトスタイルを打ち消し*/
    border-color: transparent; /*buttonタグデフォルトスタイルを打ち消し*/
    z-index: 9999;
}
@media screen and (min-width: 1280px) {
  /*PC時非表示にする*/
  .hamburger {
    display: none;
  }
}

/* ヘッダー半透明時の背景用 */
.hamburger::before{
  position: absolute;
  display: block;
  width: var(--height-mbheader);
  height: var(--height-mbheader);
  top: 0;
  right: 10px;
  content: "";
  background-color: var(--bg-header);
}
@media screen and (min-width:768px) {
  .hamburger::before{
    width: var(--height-Tbheader);
    height: var(--height-Tbheader);
    top: 0;
    right: 15px;
  }
}

/* ハンバーガーの☰←これ */
.hamburger span {
  display: block;
  position: relative;
  width: 50%;
  height: 1px;
  background-color: white;
  border-radius: 0.5px;
  transition: ease .4s; /*ハンバーガーメニュークリック時の三本線の動きを遅延*/
  }
  
  /* 謎の調整用 本来は0でいけるはず・・・*/
  .hamburger span:nth-child(1) {
    margin-top: -10%;
  }
  
  .hamburger span:nth-child(2) {
    margin: 8px 0;
  }
  
  .hamburger span:nth-child(3) {
    top: 0;
  }

  /* タブレット版ハンバーガー デフォルトの変更部分 */
  @media screen and (min-width:768px) {
  .hamburger span {
    height: 2px;
    border-radius: 1px;
  }
    .hamburger span:nth-child(2) {
    margin: 12px 0;
  }
}
  
/* ☰　から　×　の挙動 */
  .hamburger.active span:nth-child(1) {
    top: 5px;
    transform: rotate(45deg);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    top: -13px;
    transform: rotate(-45deg);
  }
@media screen and (min-width:768px) {
  .hamburger.active span:nth-child(1) {
    top: 15px;
    transform: rotate(45deg);
  }
}


/* ホームアイコン */
.icon-home{
  display: block;
  position: absolute;
  width: 23px;
  height: 23px;
  top: 10px;
  left: 14px;
}
@media screen and (min-width:768px) {
.icon-home{
    width: 35px;
    height: 35px;
    top: 15px;
    left: 14px;
}

}

@media screen and (min-width:1280px) {
  .icon-home{
    display: none;
  }
}

/* メニュー　リストアイテムの設定 */
.nav-items {
  width: 100%;
  padding-top: 46px;
  padding-bottom: 200px;
  background-color: var(--bg-header);
}
@media screen and (min-width:768px) {
.nav-items {
  padding-top: 65px;
  padding-bottom: 200px;
}

}


/*PC時のナビゲーションメニュー、横並びにする*/
@media screen and (min-width:1280px) {
  .nav-items {
    width: 100%;
    display: flex;
    align-items: center;
    height: 45px;
    justify-content: space-between;
    background-color: transparent;
    padding-top: inherit;
    padding-bottom: inherit;
    margin-right: 200px;
  }
}

/* メニュー　リスト部分 */
.nav-items li{
  display: block;
  width: 300px;
  height: 45px;
  margin: 0 0 0 auto;
  border-bottom: solid 1px var(--border-menu);
  background-color: inherit;
}
@media screen and (min-width:1280px) {
  .nav-items li{
    border: none;
    width: 160px;
    height: var(--height-PCheader);
    line-height: var(--height-PCheader);
  }
}

/* リスト一番上の線 */
.nav-items > li:first-child{
  height: 45px;
  border-top: solid 1px var(--border-menu);
}
@media screen and (min-width:1280px) {
  .nav-items > li:first-child{
  height: var(--height-PCheader);
  border: none;
  }

/* 下層のドロップダウンをここで */
  .dropmenu{
    display: none;
    width: 290px;
  }

  .nav-items > li:hover .dropmenu{
    display: block;
  }
}


/* メニュー下位層 */
.dropmenu li{
  background-color: var(--bg-submenu);
}
@media screen and (min-width:1280px) {
  .dropmenu li{
    width: 290px;
    height: 45px;
    line-height: 45px;
    border-top: solid 1px var(--border-menu);
    background-color: var(--bg-submenu095);

}
    .dropmenu > li:first-child{
    border-top: none;
    }
}


/* ナビのリンク */
.nav-items li a {
  display: block;
  color: var(--color-menu);
  width: 100%;
  height: inherit;
  padding-left: 14px;
  text-align: left;
  font-size: 18px;
  margin-bottom: 24px;
}
@media screen and (min-width: 1280px) {
  .nav-items_item a {
    margin-bottom: 0;
    }

.nav-items li:hover{
  background-color: rgba(95, 158, 160, 0.8);
}
  }


.nav-items li li a{
  margin-left: 1em;
}

.nav-items_item:last-child a {
  margin-bottom: 0;
}
/* #endregion */

/* #region headerの下の農林水産大臣指定調査機関" */
.under-header{
  display: block;
  width: inherit;
  height: 26px;
  background-color:var(--bg-header-060) ;
  transition: all 0.3s ease-in-out;
}
@media screen and (min-width:768px) {
  .under-header{
    height: 30px;
 }
}

/* PC版はヘッダーの下ではなく、ヘッダー内の中央左に移動 */
@media screen and (min-width:1280px) {
  .under-header{
    position: absolute;
    width: 300px;
    top: 50%;
    transform: translateY(-50%);
    left: calc(3% + 420px);
    background-color: transparent;
    transition: none;

  }
}

/* スクロールしたら消す */
.under-header.scrolled{
  opacity: 0;
  display: none;
}

/* header下 フォント設定*/
.under-header p{
  font-family: "Zen Maru Gothic", serif;
  font-weight: 500;
  font-style: normal;  color: var(--color-opacity);
  font-size: 0.8125rem;
  line-height: 26px;
  text-align: center;
}
@media screen and (min-width:768px) {
  .under-header p{
    font-size: 1.25rem;
    letter-spacing: 0.1em;
  }
}

@media screen and (min-width:1280px) {
  .under-header p{
    text-align: left;
    font-size: 1rem;
    letter-spacing: 0.1em;
  }
}
/* #endregion header下 */

/* #region header下　パンくずリスト */
.breadcrumbs{
  display: block;
  width: 100%;
  height: 26px;
  padding: 0 3%;
  background-color:var(--bgcolor);
  border-bottom: solid 1.5px var(--color-breadcrum) ;
}
@media screen and (min-width:768px) {
  .breadcrumbs{
    height: 51.5px;
  }
}
@media screen and (min-width:1280px) {
  .breadcrumbs{
    width: calc(100% - 230px);
    height: 68.5px;
    margin-left: 230px;
  }
}

.breadcrumbs.scrolled{
  display: none;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: auto 0;
  padding: 0;
  height:90%;
  align-items: center;
}

.breadcums ol li{
  display: block;
  margin: 2% 0;
  /* font-size: var(--font-size-breadcrum-mb); */

}
@media screen and (min-width:768px) {
  .breadcums ol li{
    height: 30px;
    /* font-size: var(--font-size-breadcrum-Tab); */

  }
}

.breadcrumbs ol li span{
  font-size: var(--font-size-breadcrum-mb);
}
@media screen and (min-width:768px) {
  .breadcrumbs ol li span{
    font-size: var(--font-size-breadcrum-Tab);
  }
}


.breadcrumbs li:not(:last-child)::after {
  display: inline-block;
  margin: 0.05em 1em;
  content: ">";
}

.breadcrumbs ol li img{
  display: inline-block;
  width: 15px;
  height: 15px;
  vertical-align: middle;
}
@media screen and (min-width:768px) {
  .breadcrumbs ol li img{
    width: 25px;
    height: 25px;
  }
}

/* #endregion パンくずリスト */


/* #region メイン　大枠 */
.main-wrapper{
  /* position: relative; */
  width: 100%;
  max-width: var(--mbwidth);
  /* margin-top: 46px; */
}
@media screen and (min-width:768px) {
  .main-wrapper{
    max-width: var(--tabwidth);
  }
}
@media screen and (min-width:1280px) {
  .main-wrapper{
    width: 100%;
    max-width: var(--pcwidth);
    margin-top: 0;
  }
}
/* #endregion */

/* #region メイン イメージビジュアル */

/* 背景画像 */
.main-visual{
  position: relative;
  width: 100%;
  min-width: 350px;
  max-width: var(--mbwidth);
  height: calc(100vh - 46px);
  max-height: 812px;
  margin: 0 auto;
  /* background-color: aqua; */
}
/* 高さによるレイアウト変更 */
@media (max-width: 768px) and (max-height: 750px) {
  .main-visual{
    height: 812px;
  }
}

/* タブレット版 */
@media screen and (min-width:768px) {
  .main-visual{
    height: 825px;
    max-width: var(--tabwidth);
  }
}
@media screen and (min-width:1280px) {
  .main-visual{
    max-width: var(--pcwidth);
    height: calc(100vh - 46px);
    min-height: 832px;
    max-height: 1470px;
    /* background-size: 1960px 1257px; */
    z-index: 50;
  }
}

.main-visual img{
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* 背景画像の明度下げる */
.main-visual-shade,.main-visual-dark{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.main-visual-shade{
  background:linear-gradient(white, rgba(0, 0, 0, 0.925));
  mix-blend-mode: multiply;
}

.main-visual-dark{
  background:rgba(0,0,0, 0.15);
  mix-blend-mode: darken;
}

/* トップ斜め線 領域確認*/
.diagonalLine{
  position: relative;
  width: 100%;
  height: 100vh;
  /* background-color: coral; */
}
@media screen and (max-width:768px) and (min-height: 812px){
  .diagonalLine{
    height: 812px;
  }
}
@media screen and (max-width:768px) and (max-height: 812px){
  .diagonalLine{
    height: 812px;
  }
}


@media screen and (min-width:768px) {
  .diagonalLine{
    height: 825px;
    /* background-color: coral; */
}
}


/* 一度、2つのdivで可変の対応 */
.diagonalLine div{
  position: relative;
  width: calc(50% + 30px);
  height: calc(50% + 15px);
  /* background-color: aquamarine; */
}

/* 左下 */
.diagonalLine div:nth-child(1) {
  position: absolute;
  bottom: 0;
  left: 0;
  /* background-color: blue; */
}

/* 右上 */
.diagonalLine div:nth-child(2) {
  position: absolute;
  top: 0;
  right: 0;
  /* background-color: greenyellow; */
}

/* ライン共通項の設定*/
.diagonalLine div:nth-child(1)::before,
.diagonalLine div:nth-child(2)::before{
  content: "";
  position: absolute;
  height: 1px;
  width: calc(95% * 1.414);
  /* background-color: rgb(255, 255, 255); */
  background:linear-gradient(45deg, white, rgba(170, 170, 170, 0.39));

}

/* PCは線の長さをvh基準に変更 */
@media screen and (min-width:1280px) {
.diagonalLine div:nth-child(1)::before,
.diagonalLine div:nth-child(2)::before{
    width: calc(calc(100vh * 0.525) * 1.414);
}
}


/* 左下ライン */
.diagonalLine div:nth-child(1)::before{
  top: 0;
  right: 0;
  transform: rotate(-45deg);
  transform-origin: top right;
  background:linear-gradient(45deg,  rgba(255, 255, 255, 0.342),white);
}

/* 右上ライン */
.diagonalLine div:nth-child(2)::before{
  bottom: 0;
  left: 0;
  transform: rotate(-45deg);
  transform-origin: bottom left;
  background:linear-gradient(45deg, white, rgba(255, 255, 255, 0.342));
}

/* トップのグリッド設定 */
.main-grid{
  position: absolute;
  display: grid;
  /* gridの全体サイズ これを中央配置でどうにかしたい */
  width: 322px;
  height: 700px;
  grid-template-areas: 
  ". catchphrase"
  "banner01 banner02"
  "banner03 banner04";
  grid-template-columns: repeat(2,143px);
  grid-template-rows: 350px repeat(2,143px);
  column-gap: 36px;
  row-gap: 29px;
  top: calc(calc(100% + 40px) / 2);
  left: 50%;
  transform: translate(-50%,-50%);
  /* background-color: khaki; */
}

@media screen and (min-width:768px) {
  .main-grid{
    /* gridの全体サイズ これを中央配置でどうにかしたい */
    width: 730px;
    height: 712px;
    grid-template-areas: 
    ". . catchphrase catchphrase"
    "banner01 banner02 banner03 banner04";
    grid-template-columns: 154px 154px 154px 154px ;
    grid-template-rows: 500px 140px ;
    column-gap: 35px;
    row-gap: 15px;
    bottom:0;
  top: calc(calc(100% + 100px) / 2);
  }
}

@media screen and (min-width:1280px) {
  .main-grid{
    position: absolute;
    display: grid;
    /* gridの全体サイズ これを中央配置でどうにかしたい */
    width: 860px;
    height: 712px;
    grid-template-areas: 
    ". . . catchphrase"
    ". . . catchphrase"
    ". . . catchphrase"
    "banner01 banner02 banner03 banner04";
    grid-template-columns: 182px 182px 182px 182px ;
    grid-template-rows: repeat(4,177.5px) ;
    column-gap: 50px;
    row-gap: 0;
    top: calc(calc(100% + 70px) / 2);
  }
}


/* タイトル文字 */
.titleTxt{
  position: absolute;
    grid-column: 1 / 2;
  grid-row: 1 / 2;
  grid-area:catchphrase ;
  width: 100px;
  height: 320px;
  top: 20px;
  right: 25%;
  /* background-color: blue; */
}
@media screen and (min-width:768px) {
  .titleTxt{
    width: 100px;
    height: 390px;
    top: 55px;
    left: 50%;
    transform: translateX(-50%);
  }
}
@media screen and (min-width:1280px) {
  .titleTxt{
    width: 123px;
    height: 500px;
    top: 0;
    left: 0;
  }
}

.titleTxt p{
  display: block;
  font-family: "Shippori Mincho", serif;
  font-weight: 600;
  font-style: normal;
  font-size: 32px;
  color: white;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  line-height: 50px;
}
@media screen and (min-width:768px) {
  .titleTxt p{
    font-size: 40px;
    letter-spacing: 2px;
    line-height: 42px;
  }
}
@media screen and (min-width:1280px) {
  .titleTxt p{
    font-size: 48px;
    letter-spacing: 2.4px;
    line-height: 70px;
  }
}

/* 2行目の字下げ 縦書きなのでこんなやり方 */
.second-line {
  display: block;
  margin-top: 87px;
}
@media screen and (min-width:768px) {
  .second-line {
    margin-top: 2em;
  }
}
@media screen and (min-width:1280px) {
  .second-line {
    margin-top: 102px;
  }
}

.main-grid a{
  display: block;
}

/* トップ 業務概要バナー */
.bus-banner{
  position: relative;
  width: 143px;
  height: 143px;
  border: solid 6px var(--border-gaiyou-title);
  place-self: end;
  background-color: darkgrey;
}
@media screen and (min-width:1280px) {
  .bus-banner{
    width: 178px;
    height: 182px;
    place-self: end;
    /* background-color: darkgrey; */
  }
}

.bus-banner img{
  width: 100%;
  height: 100%;
}

.bus-banner p{
  position: absolute;
  top: 0;
  left: -15px;
  z-index: 100;
  font-family: "M PLUS 2", sans-serif;
  font-weight: 300;
  font-size: 1.5625rem;
  line-height: 2rem;
  letter-spacing: 0.05em;
  color: white;
  text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.8);
}

/* バナーの配置 */
  .main-grid div:nth-child(2){
    grid-area: banner01;
  }

  .main-grid div:nth-child(3){
    grid-area: banner02;
  }

    .main-grid div:nth-child(4){
    grid-area: banner03;
  }

    .main-grid div:nth-child(5){
    grid-area: banner04;
  }

/* #endregion */

/* #region PC版サイドメニュー */

/* PC以外は消しておく */
aside{
  display: none;
}

/* 1280px以上で表示 */
@media screen and (min-width:1280px) {
  /* ベース部分 */
  aside {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 230px;
    height: 455px;
    padding: 10px;
    border-right: solid 1px var(--bg-header);
    color: var(--color-Sidemenu);
    /* background-color: lightgreen; */
  }

  /* 社名svg */
  .aside-comName{
    position: relative;
    margin: 20px auto 40px;
    /* background-color: burlywood; */
  }
  /* 画像が左右非対称なのでここで調整 */
  .aside-comName img{
    margin-left: 10px;
  }

  .aside-comName a{
    position: relative;
    pointer-events: auto;
  }

  /* リストの共通設定 */
  aside ul li{
    width: 180px;
    height: 45px;
    margin: 0;
    padding: 0;
    line-height: 45px;
  }

  /* リストの上層と下層の変化のあるところ */
  aside ul > li{
  position: relative;
  list-style-type: none;
  list-style-position: inside;
  font-weight: 500;
  /* padding-left: 0.5em; */
  /* background-color: cadetblue; */
  }
  aside ul li::before{
  content: "〉";
  position: absolute;
  left: 10%;
  top: 0;
  }


  aside ul li ul li{
  list-style: none;
  font-weight: 400;
  padding-left: 1em;
  }

    aside ul li ul li::before{
    content: "";
  }

  /* リンクの設定 ヘッダーとの兼ね合いで色々やってる。なくても大丈夫になったら消す */
  aside ul li a{
    z-index: 10;
    display: block;
    width: 100%;
    padding-left: 2em;
    /* background-color: aqua; */
    cursor: pointer;
  }

  aside li a:hover{
    display: inline-block;
    width: 100%;
    background-color: var(--bg-header-015);
    color: var(--bg-header);
  }
}

/* ウィンドウ幅1960px以上の時のサイドメニューの位置指定 */
@media screen and (min-width:1960px) {
  aside {
    left: calc(calc(100vw - 1960px)/2);
  }

}


/* #endregion */


/* #region メイン共通 */
main{
  position: relative;
  width: inherit;
  padding: 40px 0;
  z-index: -5;
}
/* PC版は左サイドメニューがあるので、それを除いた中央寄せ */
@media screen and (min-width:1280px) {
  main{
    display: flex;
    justify-content: center;
    /* width: calc(100% - 230px); */
    /* margin-left: 230px; */
    /* background-color: coral; */
  }
}
/* #endregion */

/* #region 業務内容 */
/* 項目のボックス */
.biz-overflow{
  width: 95%;
  max-width: 680px;
  margin: 0 auto;
}
@media screen and (min-width:768px) {
  .biz-overflow{
    /* width: 90%; */
    max-width: 768px;
    max-width: none;
  }
}
@media screen and (min-width:1280px) {
  .biz-overflow{
    width: 880px;
    /* background-color: darkseagreen; */
  }
}


/* 業務概要本文 */
/* モバイル版はデフォルト文字のまま */
.biz-overflow p{
  margin: 1em 0;
  line-height: 1.5em;
}
/* タブレット版 */
@media screen and (min-width:768px) {
  .biz-overflow p{
    font-size: var(--font-size-bizTxt-PC);
    line-height: 1.25em;
  }
}
@media screen and (min-width:1280px) {
  .biz-overflow p{
    font-size: var(--font-size-bizTxt-PC);
  }
}

/* 業務概要タイトル */
.biz-overflow-title{
  height: 40px;
  /* margin: 40px auto 40px; */
  border-bottom: solid 5px var(--color-biztitle);
}

/* 業務概要タイトル文字 */
.biz-overflow-title span{
  font-size: var(--font-size-biztitle);
  letter-spacing: 0.05em;
}


/* タブレットサイズ以上のグリッド設定とか */
/* 画像の設定は、ずーっと下にあります */
  /* グリッドの共通仕様 */
  #HarvestSurvey,#TimberInventory,#ForestSurvey,#VariosSurvey{
    display: grid;
    grid-auto-rows: auto;
    row-gap: 33px;
    padding-top: 40px ;
    margin: 0 auto;
  }

@media screen and (min-width:768px) {
  #HarvestSurvey,#TimberInventory,#ForestSurvey,#VariosSurvey{
    display: grid;
    width: 95%;
    max-width: 768px;
    padding: 80px 0px 40px;
    grid-template-columns: repeat(7,1fr) ;
    column-gap: 30px ;
    row-gap: 10px;
  }
}
@media screen and (min-width:1280px) {
  #HarvestSurvey,#TimberInventory,#ForestSurvey,#VariosSurvey{
    width: 880px;
    padding: 80px 0px 60px;
    column-gap: 30px ;
    row-gap: 10px;
  }
}


/* 収穫調査 */
@media screen and (min-width:768px) {
  #HarvestSurvey{
    height: 1120px;
    grid-template-rows:90px repeat(7,1fr);
    /* background-color: cornflowerblue; */
  }
}
@media screen and (min-width:1280px) {
  #HarvestSurvey{
    height: 1278px; 
  }

  /* 小さくしたフォントを元に */
  #HarvestSurvey div:nth-child(2) p,#HarvestSurvey div:nth-child(4) p{
    margin-top: 0;
    font-size: var(--font-size-bizTxt-Tab);
  }

}

/* 収穫調査 要素の配置 */
/* タイトル */
@media screen and (min-width:768px) {
  #HarvestSurvey div:nth-child(1){
  grid-column: 1 / 8;
  grid-row: 1 / 2;
  width: 100%;
}
/* 本文1 */
  #HarvestSurvey div:nth-child(2){
    /* grid-area: MainTxt01; */
    grid-column: 1 / 4;
    grid-row: 2 / 4;
  }

  /* ここのフォントだけ小さく */
  #HarvestSurvey div:nth-child(2) p,#HarvestSurvey div:nth-child(4) p{
    margin-top: 0;
    font-size: var(--font-size-bizTxt-Tab);
  }


  /* 木材に並ぶ原木 */
  #HarvestSurvey div:nth-child(3){
    margin: 0 auto;
    grid-column: 4 / 8;
    grid-row: 2 / 4;
  }

  /* 本文02 */
  #HarvestSurvey div:nth-child(4){
    /* grid-area: MainTxt02; */
    grid-column: 1 / 4;
    grid-row: 4 / 6;
    margin-top: 1em;
  }


  /* 適切に間伐されていない森林 右下で小さくなる*/
  #HarvestSurvey div:nth-child(5){
    /* grid-area: pic02-noThinning; */
    grid-column: 6 / 8;
    grid-row:6 / 9;
  }

  /* 適切に間伐されている森林 */
    #HarvestSurvey div:nth-child(6){
    /* grid-area: pic03-Thinning; */
    grid-column: 4 / 8;
    grid-row: 4 / 6;
  }

  /* 健全に育った収穫期の立木 */
  #HarvestSurvey div:nth-child(7){
    /* grid-area: pic04-harvest; */
    grid-column: 1 / 6;
    grid-row: 6 / 9;
  }
}
@media screen and (min-width:1280px) {
  /* 小さくしたフォントを元に */
  #HarvestSurvey div:nth-child(2) p,#HarvestSurvey div:nth-child(4) p{
    margin-top: 0;
    font-size: var(--font-size-bizTxt-PC);
  }

}


/* ======= 伐採対象立木調査　グリッド設定 ======== */
@media screen and (min-width:768px) {
  #TimberInventory{
    height: 780px;
    grid-template-rows:90px repeat(4,1fr);
    /* background-color: cornflowerblue; */
  }
}
@media screen and (min-width:1280px) {
  #TimberInventory{
    height: 868px;
  }

}

/* 伐採対象立木調査　要素 */
/* タイトル */
@media screen and (min-width:768px) {
  #TimberInventory div:nth-child(1){
  grid-column: 1 / 8;
  grid-row: 1 / 2;
  width: 100%;
}

/* 本文 */
  #TimberInventory div:nth-child(2){
    /* grid-area: MainTxt01; */
    grid-column: 1 / 4;
    grid-row: 2 / 4;
  }

    #TimberInventory div:nth-child(2) p{
    margin-top: 0;
  }


  /* レーザー距離計を用いた樹高測定 */
  #TimberInventory div:nth-child(3){
    grid-column: 4 / 8;
    grid-row: 2 / 4;
  }

  /* 胸高直径測定・材質調査 */
  #TimberInventory div:nth-child(4){
    grid-column: 1 / 4;
    grid-row: 4 / 6;
    margin: 0 auto;
  }

  /* レーザー距離計を用いた樹高測定 */
  #TimberInventory div:nth-child(5){
    grid-column: 4 / 8;
    grid-row: 4 / 6;
  }
}



/* ====== 皆伐等の周囲測量　グリッド設定 ===== */
@media screen and (min-width:768px) {
  #ForestSurvey{
    height: 776px;
    grid-template-rows:90px repeat(4,1fr);
  }
}
@media screen and (min-width:1280px) {
  #ForestSurvey{
    height: 878px;
  }
}


/* 皆伐等の周囲測量　要素 */ 
/* タイトル */
@media screen and (min-width:768px) {
  #ForestSurvey div:nth-child(1){
  grid-column: 1 / 8;
  grid-row: 1 / 2;
  width: 100%;
}

/* 本文 */
  #ForestSurvey div:nth-child(2){
    /* grid-area: MainTxt01; */
    grid-column: 1 / 4;
    grid-row: 2 / 4;
  }

    #ForestSurvey div:nth-child(2) p{
    margin-top: 0;
  }


  /* 皆伐等の周囲測量 */
  #ForestSurvey div:nth-child(3){
    grid-column: 4 / 8;
    grid-row: 2 / 4;
  }

  /* 簡易レーザー距離測定 */
  #ForestSurvey div:nth-child(5){
    grid-column: 1 / 5;
    grid-row: 4 / 6;
    margin: 0 auto;
  }

  /* 対象地林小班界をマーキング */
  #ForestSurvey div:nth-child(4){
    grid-column: 5 / 8;
    grid-row: 4 / 6;
  }
}

/* 各種森林調査　グリッド設定 */
@media screen and (min-width:768px) {
  #VariosSurvey{
    height: 1231px;
    grid-template-rows:90px 80px repeat(4,1fr) 50px repeat(2,1fr);
    padding: 80px 20px 100px;
  }
}
@media screen and (min-width:1280px) {
  #VariosSurvey{
    height: 1360px;
  }
}


/* 各種森林調査　要素 */
@media screen and (min-width:768px) {
  /* タイトル */
  #VariosSurvey div:nth-child(1){
    grid-column: 1 / 8;
    grid-row: 1 / 2;
    /* height: 100%; */
  }

  /* 本文 */
  #VariosSurvey div:nth-child(2){
    grid-column: 1 / 8;
    grid-row: 2 / 3;
  }

  /* 道路工事の支障木調査 キャプション */
  #VariosSurvey div:nth-child(3){
    grid-column: 1 / 4;
    grid-row: 3 / 7;
   /* background-color: aquamarine; */
  }

/* 道路工事の支障木調査写真　その1 */
  #VariosSurvey div:nth-child(4){
    grid-column: 4 / 8;
    grid-row: 3 / 5;
  }
/* 道路工事の支障木調査写真　その2 */
  #VariosSurvey div:nth-child(5){
    grid-column: 4 / 8;
    grid-row: 5 / 7;
  }
  /* 送電線の支障木調査　キャプション */
    #VariosSurvey div:nth-child(6){
    grid-column: 1 / 4;
    grid-row: 8 / 10;
  }

  /* 送電線の支障木調査写真 */
    #VariosSurvey div:nth-child(7){
    grid-column: 4 / 8;
    grid-row: 8 / 10;
  }
}


/* 写真の設定 共通*/
.biz-img-L,.biz-img-M,.biz-img-S{
  position: relative;
  margin: 0 auto;
  /* background-color: coral; */
}

/* 大きめの指定 */
/* Mは、モバイルで大サイズ、タブレット以上で小サイズになるもの */
.biz-img-L,.biz-img-M{
  width: 343px;
  height: 230px;
  /* background-color: aqua; */
}
@media screen and (min-width:768px) {
  .biz-img-L{
    width: 100%;
    height: 100%;
    margin: 0;
  } 
}

/* 小さめの指定 */
.biz-img-S{
  width: 260px;
  height: 190px;
}
@media screen and (min-width:768px) {
  .biz-img-M{
    width: 100%;
    height:75%;
    margin: 0;
  }

  .biz-img-S{
    width: 100%;
    height: 53.7%;
    margin: 0;
  }
}


/* 画像の指定 */
.biz-img-L img,.biz-img-M img,.biz-img-S img{
  /* position: absolute; */
  width: 100%;
  height: auto;
  top: 0;
  left: 0;
  object-fit: cover;
}
@media screen and (min-width:768px) {
  .biz-img-L img,.biz-img-M img,.biz-img-S img{
    height: calc(100% - 19.46px);
  }

}


/* 文字の指定 */
.biz-img-L span,.biz-img-M span,.biz-img-S span{
  display: inline-block;
  width: inherit;
  height: 23px;
  color: var(--color-pic);
  letter-spacing: 0;
  text-align: center;
  line-height: 23px;
}
@media screen and (min-width:768px) {
  .biz-img-L span,.biz-img-M span,.biz-img-S span{
    text-align: left;
    font-size:var(--font-siza-bizCaption);
    line-height: 1.5em;
  }
}

/* 各種森林調査の文字の部分 */
.biz-captionBlack{
  width: 343px;
  height: 36px;
  margin: 0 auto;
  background-color: rgba(7, 69, 88, 0.05);
}
@media screen and (min-width:768px) {
  .biz-captionBlack{
    width: 100%;
    height: 100%;
  }
}

.biz-captionBlack span{
  font-size: 1.125rem;
  line-height: 36px;
}
@media screen and (min-width:768px) {
  .biz-captionBlack span{
    font-size: 1.25rem;
    line-height: 70px;
    margin-left: 1em;
  }

}


/* ここの画像は上下マージンが他と違うので調整 */
#VariosSurvey .biz-img-L{
  margin: -25px auto;
}
@media screen and (min-width:768px) {
  #VariosSurvey .biz-img-L{
    overflow: hidden;
    margin: auto;
  }

    #VariosSurvey .biz-img-L img{
    width: auto;
    height: 100%;
    
  }
}

/* #endregion */

/* region 組織概要 */
/* 全体のギャップをつけたりとか */
/* テキストカード設定 */

.org-flame{
  width: 90%;
  min-width: 335px ;
  margin: 60px auto;
  display: flex;
  flex-direction: column;
  row-gap: 30px;
}
@media screen and (min-width:768px) {
  .org-flame{
    width: 728px;
    margin: 160px auto 30px;
    row-gap: 80px;
  }
}
@media screen and (min-width:1280px) {
  .org-flame{
    width: 728px;
    margin: 80px auto 30px;
    /* background-color: cornflowerblue; */
  }

}


/* テキストカード　タイトル */
.orgTitle{
  width: inherit;
  height: 46px;
  padding-left: 1em;
  background-color: var(--bg-orgTitle);
  border-left: solid 3px var(--bg-header);
  font-size: var(--font-size-title);
  color: var(--color-orgtitle);
  letter-spacing: 0.07em;
  line-height: 46px;
}
@media screen and (min-width:768px) {
  .orgTitle{
    width: inherit;
    height: 60px;
    padding-left: 1em;
    letter-spacing: 0.07em;
    line-height: 60px;
    font-size: var(--font-size-Orgtitle-Tab);
  }
}

/* テキストカード　テキスト部分 */
/* モバイル版のフォントサイズはデフォルトなので、指定はタブレット版から */
@media screen and (min-width:768px) {
  .orgTxt{
    font-size: var(--font-size-Orgtxt-Tab);
  }

}

.orgTxt p{
  padding-top: 20px;
  line-height: 1.5em;
  letter-spacing: 0.03em;
}

.orgTxt span{
  display: block;
  line-height: 1.5em;

}

.orgTxt ul{
  padding-top: 20px;
}
.orgTxt li{
  /* margin-left: 1em; */
  line-height: 1.5em;
}
.orgTxt li::before{
  content: "・";
  /* width: 1em; */
  margin-right: 0.4em;
}

.address div:nth-of-type(odd){
  margin-top: 10px;
}

.address div:first-child{
  margin-top: 30px;
}

@media screen and (min-width:768px) {
  .address{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    row-gap: 0.4em;
    align-items: flex-start;
    margin-top: 40px;
  }

.address div{
  height: auto;
}

.address div:nth-of-type(odd){
  width: 170px;
  margin:0 ;
  align-self: flex-start;

    }

.address div:nth-of-type(even){
  width: calc(98% - 170px);

}

}




/* #endregion */

/* ========== フッター ============ */
footer{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 90px;
  /* background-color: blanchedalmond; */
  border-top:solid 2px var(--border-footer)  ;
}
@media screen and (min-width:768px) {
  footer{
    height: 147px;
  }
}

.footer-logo{
  width: 112px;
  height: 64.62px;
}

