@charset "utf-8";
/* ------------------------------------
    cont_header visual
------------------------------------ */
#pg_index .cont_header.visual{
    margin:0 0 90px;
}

.cont_header.visual .wrap{
    margin-left:13rem;
    display: inline-flex;
    flex-direction: column;
    align-items: baseline;
    justify-content: center;
}

#pg_index .cont_header.visual{
  background:
    url(../img/header_bg_pc_right.png) right center / auto 290px no-repeat,
    url(../img/header_bg_pc_left.png)  left  center / auto 290px no-repeat;
}






/* 1366px 以上でズーム開始。上ずらしは 1606px から段階的に */
@media (min-width: 1366px){
  #pg_index .cont_header.visual{
    /* ズーム量（高さ）— 1366→大画面で連続的に拡大 */
    --headerBgH: clamp(290px, 21.25vw, 360px);

    /* 右レイヤーだけ上にずらす量
       1606pxを起点に 0 → 最大28px まで滑らかに増加
       係数 0.0892 は 28px / (1920 - 1606) の近似  */
    --headerBgShift: clamp(0px, calc((100vw - 1606px) * 0.0892), 28px);

    /* 高さは両レイヤー共通で可変（ズーム） */
    background-size:
      auto var(--headerBgH),
      auto var(--headerBgH);

    /* 右(1枚目)のみ上へ。左(2枚目)は中央のまま */
    background-position:
      right calc(50% - var(--headerBgShift)),
      left  50%;
  }
}

@media (max-width: 1124px) {
#pg_index .cont_header.visual{
  background:
    url(../img/header_bg_pc_right-1.png) right center / auto 290px no-repeat,
    url(../img/header_bg_pc_left-1.png)  left  center / auto 290px no-repeat;
}

.cont_header.visual .wrap{
    margin-left:20px;
    display: inline-flex;
    flex-direction: column;
    align-items: baseline;
    justify-content: center;
}
}

@media (max-width: 768px) {
#pg_index .cont_header.visual{
  background:
    url(../img/header_bg_sp_right.png) right center / auto 290px no-repeat,
    url(../img/header_bg_pc_left-1.png)  left  center / auto 290px no-repeat;
}

.cont_header.visual h1 {
    text-align: left;
    font-size: 4rem;
}
}

@media (max-width: 460px) {
#pg_index .cont_header.visual{
  background:
    url(../img/header_bg_sp_right.png) right center / auto 290px no-repeat,
    url(../img/header_bg_pc_left-1.png)  left  center / auto 290px no-repeat;
}
}


.cont_header.visual p span{
    display: inline-block;
	border-style: solid;
	border-width: 8px 0 8px 13px;
	border-color: transparent transparent transparent #fff;
	margin: 0 15px;
}

/* min-1281px */
@media only screen and (min-width: 1281px) {
    .cont_header.visual h1 .br-middle{
        display: none;
    }
}

/* 768px */
@media only screen and (max-width: 768px) {
    #pg_index .cont_header.visual{
        margin:0 0 30px;
    }
    #pg_index .cont_header.visual::before{
        background:url(../img/header_bg_mb_right.png) no-repeat right;
        width:100%;
    }
    #pg_index .cont_header.visual::after{
        width:50%;
    }
    .cont_header.visual h1 {
        font-size: 4rem;
        line-height:1.2;
    }
    .cont_header.visual p{
        width:auto;
    }
    .cont_header.visual p span{
        border-width: 6px 0 6px 11px;
    }
}
/* min-641px */
@media only screen and (min-width: 641px) {
    .cont_header.visual p br.sp{
        display: none;
    }
}
/* 640px */
@media only screen and (max-width: 640px) {
    #pg_index .cont_header.visual::before{
        width:50%;
        z-index: -2;
        background-position:center;
    }
    .cont_header.visual p span{
        margin-left: 0;
    }
}
/* 400px */
@media only screen and (max-width: 400px) {
    #pg_index .cont_header.visual::before{
        background:url(../img/header_bg_sp_right.png) no-repeat center;
    }
}

.base_wrap {
	width: 94%;
	max-width: 800px;
	margin: 0 auto;
	position: relative;
	max-width: 1100px;
}

@media only screen and (max-width: 1277px) {
    .cont_header.visual h1 {
        text-shadow: 2px 3px 6px var(--main-color);
    }
}

@media only screen and (max-width: 768px) {
    .cont_header.visual h1 {
        text-shadow: none;
    }
}

/* ------------------------------------
    cont_index
------------------------------------ */
.cont_index {
    display:grid;
    gap:20px;
    grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
    overflow: hidden;
}
.cont_index li {
    position: relative;
    text-align: center;
    font-weight: bold;
    padding-top: 100%;
    overflow: hidden;
}
.cont_index li a {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    justify-content:end;
    color: #fff;
    line-height: 1.2;
    text-align: left;
}
.cont_index li img{
    height:100%;
}

.cont_index li p{
    align-items:flex-end;
    color: #fff;
    display: flex;
    justify-content:space-between;
    margin:0;
    font-size: 2rem;
    padding:15px 20px;
    position: absolute;
    width: 100%;
}

.cont_index li p::after{
    content:"";
    position: absolute;
    border-color: transparent transparent transparent #fff;
    border-width: 8px 0 8px 13px;
    border-style: solid;
    bottom:18px;
    right:20px;
    transition: 0.5s;
}
 
/*.cont_index li a:hover p::after{
    right:10px;
}*/

.cont_index li .img_block{
    margin-top: 0;
    display: block;
    top: 0;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    position: relative;
    display: inline-block;
    }
.img_block picture img{
    width: 100%;
    height: auto;
    	-webkit-transition: all .3s ease-out;
	-moz-transition: all .3s ease-out;
	-ms-transition: all .3s ease-out;
	transition: all .3s ease-out;
    }
.cont_index li a:hover .img_block picture img{
	-moz-transform: scale(1.1);
	-webkit-transform: scale(1.1);
	-ms-transform: scale(1.1);
	transform: scale(1.1);
}



.cont_index li .txt_block {
    background-color: rgba(0, 0, 0, 0.3);
    width: 100%;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding: 0 0.5rem;
    box-sizing: border-box;
    position: absolute;
    bottom: 0; 
    left: 0;
    text-align: center; 
    } 
    @media (min-width: 779px) and (max-width: 990px) {
        .cont_index li .txt_block {
          height: 54px;
        }
      }
    @media (max-width: 600px){
        .cont_index li .txt_block {
            height: 48px;
        }
    }
/* min-1081px */
@media (min-width: 1081px){
    .cont_index br.br-middle{
        display:none;
    }
}
/* 768px */
@media only screen and (max-width: 768px) {
    .cont_index{
        display: block;
    }
    .cont_index li{
        width: 100%;
        margin: 0 0 10px;
        padding-top:50%;
    }
    .cont_index li img{
        display: none;
    }
    .cont_index li:first-child {
        background: transparent url(../img/n01_sp.png) center center / cover no-repeat;
    }
    .cont_index li:nth-child(2) {
        background: transparent url(../img/n02_sp.png) center center / cover no-repeat;
        background-size: 110% auto; 
        background-position-y: 90%;
    }
    .cont_index li:nth-child(3) {
        background: transparent url(../img/n03_sp.png) center center / cover no-repeat;
        background-size: 120% auto; 
        background-position-y: 85%;
        background-position-x: 70%;
    }
    .cont_index li:nth-child(4) {
        margin-right: 0;
        background: transparent url(../img/n04_sp.png) center center / cover no-repeat;
        background-size: 135% auto; 
        background-position-y: 15%;
        background-position-x: 35%;
    }
    .cont_index li::before{
        padding-top: 45%;
    }
    .cont_index li p{
        position: relative;
        font-size: 2rem;
    }
    .cont_index br.br-middle{
        display:none;
    }
}
@media (max-width: 1080px) and (min-width: 769px) {
    .center-arrow p::after {
    bottom: auto; 
    transform: translate(-50%, -73%); 
}}

/* ------------------------------------
    btn_area
------------------------------------ */
#pg_index .btn_area {
    justify-content: space-between;
    display: flex;
}

#pg_index .btn_area a{
  /* 右の矢印ゾーンの幅（pxで固定） */
  --arrow-w: 54px;

  display: grid;
  align-items: center;
  grid-template-columns: 1fr var(--arrow-w); /* ← 右カラムを固定 */

  padding: 0 0 0 20px;
  margin: 0;
  border-radius: 0;
  max-width: 350px;
  width: 100%;
  height: 50px;
  color: #fff;
  text-align: left;
  border: none;
  position: relative;

  /* 背景：画像は残り幅に、ベース色は全面 */
  background:
    url(../img/btn_bg.png) left center / calc(100% - var(--arrow-w)) 100% no-repeat,
    var(--main-color);
}

/* 右カラム（矢印の緑ブロック）を作る：マークアップが無いなら疑似要素で */
#pg_index .btn_area a::after{
  content: "";
  grid-column: 2 / 3;           /* 右カラムに配置 */
  height: 100%;
  background: #63b314;          /* 矢印背景の緑（必要色に） */
}

#pg_index .btn_area a::after{
    content:none;
}
#pg_index .btn_area a::before {
    content: "";
    opacity: 0.5;
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    z-index: 2; 
    pointer-events: none; 
    transition: background-color 0.4s ease, opacity 0.65s ease-out;
}
#pg_index .btn_area a:hover::before {
    background: #e2e2e2;
    opacity: 0.65;
}
#pg_index .btn_area a span{
    display: inline-block;
    width:100%;
    height: 100%;
    position: relative;
    transition: background-position ease 0.4s;
    background-repeat: no-repeat;
	background-position: 100% 0;
    background-size: 100% 100%;
}

#pg_index .btn_area a:hover span{
    background-position: 100% 0;
  }

/* 矢印の箱（位置の基準＆サイズ） */
#pg_index .btn_area a span{
  position: relative;           /* ← これがないと ::before がズレる */
  display: inline-block;
  inline-size: 1.1em;           /* 矢印の大きさ（お好みで） */
  block-size: 1.1em;
  line-height: 0;               /* 余白の影響を消す */
}

/* 右カラム（矢印用） */
#pg_index .btn_area a{
  --arrow-w: 54px;                    /* ← 右カラムの幅を固定（任意） */
  display: grid;
  grid-template-columns: 1fr var(--arrow-w);
  margin-right: 5px;
}

/* 矢印を乗せる箱を右カラムに */
#pg_index .btn_area a > span{
  grid-column: 2;
  position: relative;                  /* ← 擬似要素の基準にする */
}

/* 白い矢印（位置調整版） */
#pg_index .btn_area a > span::before{
  content: "";
  position: absolute;
  top: 50%;                             /* 縦中央 */
  left: 17px;                       
  width: 12px;
  height: 12px;
  border-top: 3px solid #fff;
  border-right: 3px solid #fff;
  transform: translateY(-50%) rotate(45deg);  /* 縦中央補正＋45°回転 */
}

/* 1080px */
@media only screen and (max-width: 1080px) {
    #pg_index .btn_area{
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
}
/* 768px */
@media only screen and (max-width: 768px) {
    #pg_index .btn_area{
        gap:10px;
        margin: 30px auto 20px;
		flex-direction: column;
    }
    #pg_index .btn_area a {
        width: 100%;
        max-width: 100%;
    }
}
/* ------------------------------------
    btn_area end
------------------------------------ */


/* ------------------------------------
    print
------------------------------------ */
@media print{
    #pg_index .cont_header.visual::before{
        width:65%;
    }
    #pg_index .cont_header.visual::after{
        width:35%;
    }
    #pg_index .cont_header.visual h1 {
        font-size: 4rem;
    }
    #pg_index .btn_area{
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

}
