@charset "utf-8";

/* CSS Document */

body{
    background: linear-gradient(
        180deg,
        var(--g1) 0%,
        var(--g2) 10%,
        var(--g3) 25%,
        var(--g4) 40%,
        var(--g5) 100%
    );
}
:root{
    --g1: #000000; 
    --g2: #1F1D16;
    --g3: #847D5F;
    --g4: #EBEBEB;
    --g5: #FFFFFF;
}
.more1.flex-lt-2{
	display: none;
}
.txt-vertical {
    letter-spacing: 0.4em;
}
.main-wrap{
	position: relative;
	z-index: 2;
}
.main-wrap::after{
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
	opacity: 0.9;
	mix-blend-mode: overlay;
    background: linear-gradient(
        180deg,
        var(--g1) 0%,
        var(--g2) 30%,
        var(--g3) 40%,
        var(--g4) 70%,
        var(--g5) 100%
    );
}
.bg_item{
	position: fixed;
	top: 0;
	left: 0;
    width: 100%;
    height: clamp(420px, 62vw, 96svh);
    overflow: hidden;
	z-index: 1;
}
.bg_item img{
	position: absolute;
	top:-200px;
	right: -200px;
	width: 60%;
}
.main-wrap > div{
	position: relative;
	z-index: 3;
}
.fv{
    position: relative;
    width: 100%;
    height: clamp(420px, 62vw, 96svh);
    overflow: hidden;
}
.fv .main-img{
	position: absolute;
	top:-200px;
	right: -200px;
	width: 60%;
}
.fv .title_wrap{
	width: 100%;
	height: 100%;
	position: relative;
}
.fv .titlebox {
    flex-direction: column;
    z-index: 3;
    width: 100%;
	align-items: flex-start;
	margin-left: 150px;
}
.fv .titlebox img{
    width: 500px;
}
/* ---------- shadow ---------- */


/* ---------- cate1 ---------- */

.cate1 .topbox{
    gap: 60px;
	justify-content: flex-start;
	align-items: flex-start;
}
.cate1 .topbox .imgbox{
	width: calc(50% - 30px);
	margin-right: auto;
	gap:100px;
	justify-content: flex-start;
	margin-top: 80px;
	
}
.cate1 .topbox .rightbox{
	width: calc(50% - 30px);
}
.cate1 .topbox .rightbox .txtbox{
	flex-direction: row-reverse;
	gap: 100px;
}
.cate1 .topbox .rightbox .more1{
	justify-content: flex-end;
}
.cate1 .bottombox{
    gap: 60px;
	justify-content: flex-start;
	align-items: flex-start;
}
.cate1 .bottombox .imgbox{
	width: calc(50% - 30px);
	flex-direction: column;
	align-items: flex-start;
	margin-left: auto;
	margin-top: 80px;
	padding-right: 50px;
}
.cate1 .bottombox .rightbox{
	width: calc(50% - 30px);
	justify-content: flex-start;
}
.cate1 .bottombox .imgbox .more1{
	justify-content: flex-start;
}
.cate1 .bottom-img{
	width: 900px;
	max-width: 70%;
}
/* ---------- cate2 ---------- */
.cate2 .box_wrap .boxitem{
	justify-content: space-around;
	gap: 100px;
	border-bottom: 1px solid rgba(112, 94, 54, 0.5);
	padding-bottom: 20px;
	padding-top: 50px;
}
.cate2 .box_wrap .boxitem:nth-child(even) {
  display: flex;
  flex-direction: row-reverse;
}
.cate2 .box_wrap .boxitem .txtbox{
	width: calc(50% - 50px);
	justify-content: flex-start;
}
.cate2 .box_wrap .boxitem .imgbox{
	width: calc(40% - 50px);
	position: relative;
    overflow: visible;
}
.cate2 .box_wrap .boxitem .imgbox img{
    display: block;
    width: 100%;
    height: auto;
    transform: scale(1.15);  
    transform-origin: center;
	position: relative;
    top: 40px;
}
.cate2 .box_wrap .boxitem .txtbox .titlebox{
	flex-direction: column;
	align-items: flex-start;
}
.cate2 .box_wrap .boxitem .txtbox .titlebox .title-item1 img{
	width: 70px;
	margin-left: 30px;
}
/* ---------- 画像動き ---------- */
.cate2 .box_wrap .boxitem .imgbox{
    transition: transform 0.3s ease;
    will-change: transform;
}
.cate2 .box_wrap .boxitem:hover .imgbox{
    transform: scale(1.05);
}

.cate2 .box_wrap .boxitem .imgbox img{
    display: block;
    width: 100%;
    height: auto;
    transform: scale(1.00);
    position: relative;
    top: 12px;
    transition: transform 0.4s ease;
    will-change: transform;
}
.cate2 .box_wrap .boxitem:hover .imgbox img{
    transform: scale(1.0);
    animation: shake 0.8s ease-in-out;
}
@keyframes shake {
    0%   { transform: scale(1.0) translateX(0); }
    25%  { transform: scale(1.2) translateX(-4px); }
    50%  { transform: scale(1.2) translateX(4px); }
    75%  { transform: scale(1.2) translateX(-2px); }
    100% { transform: scale(1.0) translateX(0); }
}

/* ---------- cate3 ---------- *//*
.cate3{
    margin-top: 80px;
    display: grid;
    grid-template-columns: 1fr minmax(320px, 520px) 1fr;
    grid-template-areas:
        "title  title  title"
        "left   center right";
    align-items: center;
    column-gap: 48px;
    row-gap: 24px;
    position: relative;
}
.cate3 .box{
	width: 100%;
	height: auto;
}
.cate3 .centerbox .titlebox{
	flex-direction: row-reverse;
	align-items: flex-start;
}
.cate3 .leftbox{
	position: relative;
	width: 30%;
	margin-bottom: auto;
}

.cate3 .leftbox .img1{
	position: relative;
	margin-top: 100px;
	width:300px;
	z-index: 2;
}
.cate3 .leftbox .img2{
	position: absolute;
	top: -20%;
	right:10%;
	margin-bottom: 300px;
    width: 200px; 
	z-index: 1;
}
.cate3 .centerbox .titlebox{
	position: relative;
	top:250px;
	left:50%;
	transform: translateX(-50%);
}
.cate3 .centerbox .txtbox{
	position: relative;
	top:250px;
	left:50%;
	transform: translateX(-50%);
}
.cate3 .centerbox{
	position: absolute;
	width: 40%;
	margin-top: 100px;
}
.cate3 .rightbox{
	width: 30%;
	margin-left: auto;
}
.cate3 .rightbox img{
	width:300px;
	z-index: 1;
	margin-left: auto;
}
.cate3 .rightbox p{
	position: absolute;
	top: -100px;
	right:-100px;
	margin-bottom: 300px;
    width: 700px; 
	z-index: 2;
}
.cate3 > .titlebox{
	width: 100%;
	justify-content: flex-end;
}
*/
.cate3{
    display: grid;
    grid-template-columns: 1fr minmax(320px, 520px) 1fr;
    grid-template-areas:
        "title  title  title"
        "left   center right";
    align-items: center;
    column-gap: 48px;
    row-gap: 24px;
    position: relative;
}

.cate3 > .titlebox{
    grid-area: title;
    width: 100%;
    justify-content: flex-end;
}
.cate3 .box{ display: contents; }

.cate3 .leftbox  { grid-area: left; }
.cate3 .rightbox { grid-area: right; display: flex; justify-content: flex-end; }
.cate3 .centerbox{
    grid-area: center;
    justify-self: center;        /* 中央に寄せる */
    text-align: center;
    max-width: 46ch;             /* 本文幅の上限 */
}
.cate3 .centerbox{
    justify-self: stretch;  /* ← 中央トラックの幅をそのまま使う */
    max-width: 60ch;        /* 46ch → 60ch など。完全解除なら none */
    text-align: center;
}
.cate3 .centerbox .titlebox{
    flex-direction: row-reverse;
    align-items: flex-start;
    margin-bottom: 50px;
}
.cate3 .centerbox .titlebox p{
    text-align: left;
}
/* ===== 左カラムの画像重ね（前：img1 / 後：img2） ===== */
.cate3 .leftbox{
    position: relative;
    margin-bottom: auto;
}
.cate3 .leftbox .img1{
    position: relative;
    width: 300px;
    margin-top: 100px;
    z-index: 2;
    display: block;
}
.cate3 .leftbox .img2{
    position: absolute;
    top: -20%;
    right: 10%;
    width: 200px;
    z-index: 1;
    display: block;
}

.cate3 .rightbox img{
    width: 300px;
    display: block;
}
.news_wrap .webgene-blog .webgene-item .date::after {
    background-color: #847D5F;
}

.cate2 .box_wrap .boxitem .titlebox .en_title3,.cate3 .titlebox .en_title{
	color: #847D5F;
}
.cate2 .box_wrap .boxitem .titlebox h3{
	color: #433213;
}
/* ---------- page_links2 ---------- */
.page_links2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1280px;
  margin: 0 auto;
}
.more3 {

  border: #fff solid 1px;
  min-width: auto;
  width: 100%;
}
.more3 a {
      padding: 10px 20px;
    display: block;
    width: 100%;
    text-decoration: none;
}
.more3 a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px; 
    width: 100%;
}
.more3 .icon {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
    transition: transform 0.3s ease;
}
.more3 a:hover .icon { transform: translateX(5px); }
.more3 .icon img {
    width: 24px;
    height: auto;
}
/* ---------- IEのみ ---------- */
@media all and (-ms-high-contrast: none) {
}
/* ---------- 1280px ~ ---------- */
@media screen and (max-width: 1280px){
	.fv .titlebox {
		margin-left: 100px;
		z-index: 3;
	}
	.fv .titlebox img {
		width: 400px;
	}
	.fv .main-img {
		top: -80px;
		right: -100px;
      opacity: 0.9;
	}
	.cate1 .topbox {
		flex-direction: column;
	}
	.cate1 .topbox .imgbox {
		flex-direction: column;
		width: 100%;
		margin-top: 0px;
	}
	.cate1 .topbox .rightbox .more1 {
		justify-content: center;
	}
.cate1 .topbox .imgbox{
	gap:50px;
	
}
	.cate1 .topbox .imgbox img{
		width: 70%;
	}
	.cate1 .topbox .rightbox {
		width: 100%;
	}
	.cate1 .bottombox {
		flex-direction: column-reverse;
	}
	.cate1 .bottombox .imgbox{
		width: 100%;
		margin-top: 0px;
    	padding-right: 0px;
	}
	.cate1 .bottombox .rightbox {
		width: 100%;
	}
	.cate1 .bottombox .imgbox img{
		width: 70%;
		margin: 0 auto;
	}
	.cate1 .bottom-img {
		width: 70%;
		margin: 0 auto;
		padding-top: 100px;
	}
	.cate3{
        grid-template-columns: 1fr;
        grid-template-areas:
            "title"
            "box"
            "center";
        row-gap: 32px;
        column-gap: 0;
        align-items: start;
    }

    /* .box をグリッドの要素として復活（display: contents を上書き） */
    .cate3 .box{
        display: flex;          /* 左右を横並びにしたい想定。縦並びなら column に */
        gap: 24px;
        grid-area: box;
        justify-content: space-between;
    }
    /* 左右の幅バランス（お好みで） */
    .cate3 .leftbox,
    .cate3 .rightbox{
        flex: 1 1 0;
    }

    /* エリア割当を明示（保険） */
    .cate3 > .titlebox{ grid-area: title; }
    .cate3 .centerbox{  grid-area: center; justify-self: center; max-width: 60ch; }
	.cate3 .centerbox{
		justify-self: stretch;  /* グリッドの列幅いっぱいに */
		width: 100%;
		max-width: none;        /* 既存の 46ch/60ch を無効化 */
		text-align: left;       /* 任意：中央のままなら center */
	}
}



/* ---------- 1080px ~ ---------- */
@media screen and (max-width: 1080px){
	.fv .titlebox {
		margin-left: 80px;
	}
	.fv .titlebox img {
		width: 300px;
	}
	.fv .main-img {
		top: -50px;
		right: -80px;
	}
	.fv .titlebox h1{
		font-size: 18px;
	}
	.cate1 .bottombox {
		flex-direction: column-reverse;
	}
	.cate1 .bottombox .imgbox {
		width: 100%;
	}
	.cate1 .bottombox .rightbox {
		width: 100%;
		margin: 0 auto;
	}

	.more1.flex-lt-2{
		display: flex;
	}
	.cate1 .topbox .rightbox .txtbox {
		gap: 80px;
	}
	.cate1 .bottombox .imgbox {
		margin-top: 0px;
		padding-right: 0px;
		align-items: center;
	}
	.cate2 .box_wrap .boxitem{
		gap: 20px;
	}
	.cate2 .box_wrap .boxitem .txtbox{
		width: calc(50% - 10px);
		justify-content: flex-start;
	}
	.cate2 .box_wrap .boxitem .imgbox{
		width: calc(30% - 10px);
	}
	.cate2 .box_wrap .boxitem .txtbox .number {
		font-family: "EB Garamond", sans-serif;
		font-size: 26px;
		color: #847D5F;
		letter-spacing: 0.2em;
		font-weight: 500;
		padding-right: 15px;
	}
	.cate2 .box_wrap .boxitem .txtbox .titlebox .title-item1 img {
		width: 50px;
		margin-left: 10px;
	}

	.more1.flex-tb{
		display: flex;
	}
	.page_links2 {
	  grid-template-columns: repeat(2, 1fr);
	}
	.cate3 .leftbox .img1{
        width: min(260px, 80%);   /* 300px → 260px相当 */
        margin-top: 40px;         /* 余白も控えめに */
    }
    .cate3 .leftbox .img2{
        width: 160px;             /* 200px → 160px */
        top: -10%;                /* 重なり弱めに */
        right: 4%;
    }

    /* 右カラム */
    .cate3 .rightbox img{
        width: min(260px, 80%);   /* 300px → 260px相当 */
    }

}
/* ---------- 768px ~ ---------- */
@media screen and (max-width: 768px){
	.fv .titlebox {
		margin-left: 50px;
	}
	.fv .titlebox img {
		width: 200px;
	}
	.fv .main-img {
		top: -10px;
		right: -60px;
	}
	.fv .titlebox h1{
		font-size: 16px;
	}
	.cate1 .topbox .imgbox {
		gap: 30px;
	}
	.cate1 .topbox .rightbox .txtbox {
		gap: 50px;
		align-items: flex-start;
	}
  	.cate1 .topbox .imgbox img{
		width: 100%;
	}
    .cate1 .bottombox .imgbox img {
        width: 100%;
    }
    .cate1 .bottom-img {
        width: 100%;
        padding-top: 50px;
		max-width: 100%;
    }
    .cate1 .bottom-img img{
        width: 100%;
		
    }
	.cate2 .box_wrap .boxitem .txtbox{
		width: calc(70% - 10px);
		justify-content: flex-start;
	}
	.cate2 .box_wrap .boxitem .txtbox .titlebox .title-item1 img {
		width: 40px;
	}
	.page_links2 {
	  grid-template-columns: repeat(1, 1fr);
	}
    .cate3 .centerbox .txtbox p br{
        display: none;
    }
	.cate3 .centerbox .txtbox p span{
        display: inline-block;
    }
}
/* ---------- 576px ~ ---------- */
@media screen and (max-width: 576px){
	.fv .titlebox {
		margin-left: 40px;
	}
	.fv .titlebox img {
		width: 180px;
	}
	.fv .main-img {
		top: 20px;
		right: -20px;
	}
	.fv .titlebox h1{
		font-size: 14px;
	}
	.cate2 .box_wrap .boxitem .txtbox .titlebox .title-item1 img {
		width: 30px;
	}
	.cate2 .box_wrap .boxitem .txtbox h3{
		font-size: 14px;
	}
    .cate2 .box_wrap .boxitem {
        flex-direction: column-reverse;
    }
	.cate2 .box_wrap .boxitem:nth-child(even){
		flex-direction: column-reverse;
	}
    .cate2 .box_wrap .boxitem .imgbox{
        width: 45%;
		top: 0px;
    }
    .cate2 .box_wrap .boxitem .txtbox{
        width: 100%;
    }
	
}
/* ---------- 350px ~ ---------- */
@media screen and (max-width: 350px){
}

