@charset "UTF-8";
/* CSS Document */

@media screen and (min-width:769px){
  .pc{display: block;}
  .sp{display: none;}
  .pc_1060{display: block;}
  .sp_1060{display: none;}
}
@media screen and (max-width:1060px){
  .pc_1060{display: none;}
  .sp_1060{display: block;}
}
@media screen and (max-width:768px){
  .pc{display: none;}
  .sp{display: block;}
}

#series_heritage3 .visual1 {
    background-size: cover;
    background-position: 30% center;
    min-height: 800px;
    width: 100%;
}

#series_heritage3 .visual1 {
    background-image: url(https://www.bermas.co.jp/wp-content/themes/bermas/images_series/heritage3_2.jpg);
}

@media (max-width: 768px) {
    #series_heritage3 .visual1 {
		min-height: 400px;
    }
}


#series_heritage3 .tit-box .about-id p a {
    color: #007BFF;
    text-decoration: underline;
}

#series_heritage3 .tit-box .about-id p a:hover {
    color: #0056b3;
    text-decoration: underline;
}


#series_heritage3 .sec2 {
    background: url(https://www.bermas.co.jp/wp-content/themes/bermas/images_series/heritage3_3.jpg) no-repeat;
    background-size: cover;
	background-position: center top;
    min-height: 800px;
    position: relative;
}
#series_heritage3 .visual3 {
    background: url(https://www.bermas.co.jp/wp-content/themes/bermas/images_series/heritage3_9.jpg) no-repeat;
    background-size: cover;
	background-position: center center;
    min-height: 800px;
	text-shadow: 2px 2px 7px rgba(0, 0, 0, 0.2);
}

/* ▼ 画像と円の重なり制御：重なり率を維持する仕組み */
#series_heritage3 .item-img-wrap{
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 0;

    /* 画像幅と円サイズを変数化（画像幅＝min(70%, 630px)） */
    --img-w: min(70%, 630px);
    --circle-size: clamp(185px, 24vw, 300px);
    --overlap-x: 50%;  /* 円を画像側へ食い込ませる率（横） */
    --overlap-y: 10%;  /* 円を画像側へ食い込ませる率（縦） */
}
#series_heritage3 .item-img-wrap img{
    width: var(--img-w);
    height: auto;
    display: block;
    position: relative;
    z-index: 2;
    margin: 10px auto 30px;
}
#series_heritage3 .circle{
    position: absolute;
    width: var(--circle-size);
    height: var(--circle-size);
    z-index: 1;
    pointer-events: none;
}

/* 円の基準を “画像の左端／右端” に取る。
   画像の左右端 = (100% - var(--img-w)) / 2 */
#series_heritage3 .circle_l{
    left: calc((100% - var(--img-w)) / 2);
    top: 6%;
    /* 自身の幅に対する%で食い込み量を一定化 */
    transform: translate(calc(-1 * var(--overlap-x)), calc(-1 * var(--overlap-y)));
}
#series_heritage3 .circle_r{
    right: calc((100% - var(--img-w)) / 2);
    bottom: 12%;
    transform: translate(var(--overlap-x), var(--overlap-y));
}
/* ▲ ここまで */

#series_heritage3 .sec1 p {
    margin-bottom: 55px;
}

#series_heritage3 .cooperation{
  padding: 10px 20px;
  font-size: .625rem;
  text-align: right;
}

#series_heritage3 .flex-wrap.fl {
    align-items: center;
    gap: 50px;
    max-width: 1310px;
    margin: 0 auto;
	padding: 0 50px;
}
#series_heritage3 .inner-block, .detail-img {
    max-width: 1540px;
	width: 90%;
}
#series_heritage3 .sec2 .tit-box {
    position: static;
    transform: none; 
}

#series_heritage3 .sec2 .tit-box span {
    display: block;
    font-size: 13px;
    margin-top: 15px;
}

#series_heritage3 .sec2 .tit-box p.note {
    margin-top: 10px;
}

#series_heritage3 .detail-img {
    padding-top: 0;
}

#series_heritage3 .zipper-info .detail-img {
    max-width: 600px;
	margin: 0;
}

#series_heritage3 .flex-wrap.fl.zipper-info {
    justify-content: space-between;
	margin: 90px auto 0;
}

#series_heritage3 .flex-wrap.fl.zipper-info .detail-txt{
    max-width: 525px;
}

#series_heritage3 .detail-img img{
    margin-left: 0;
}

@media screen and (min-width:769px){
#series_heritage3 .tit-wrap{
	align-items: center;
}
#series_heritage3 .tit-wrap img{
	width: 50%;
}
#series_heritage3 .tit-cont {
    padding: 5px 20px 20px;
}
#series_heritage3 .tit-cont p {
    width: 90%;
    margin: 0 auto;
}
#series_heritage3 .sec2 .tit-box {
	max-width: 580px;
}
#series_heritage3 .sec3 .flex-wrap{
	width: 90%;
	max-width: 1340px;
	margin: 0 auto;
	justify-content: space-between;
	align-items: center;
}
#series_heritage3 .sec3 .flex-wrap .detail-img {
  width: 48%;
  margin: unset;
}
}

#series_heritage3 .sec2 .inner-block {
  position: relative;
  min-height: 800px;
  display: flex;
  align-items: center;
}

#series_heritage3 .block.sec4 {
    margin: 0 0 110px;
}

#series_heritage3 .sec4 .tit-box {
    width: 100%;
    padding: 70px 0 60px;
	text-align: center;
	
}

#series_heritage3 .zipper-info .detail-txt h3 {
    font-size: 24px;
    margin-bottom: 20px;
    line-height: 1.8;
	letter-spacing: 0.1em;
}

#series_heritage3 .zipper-info .detail-txt p {
  font-size: 14px;
  line-height: 2;
  letter-spacing: 0.13em;
}


@media screen and (max-width:1150px){
#series_heritage3 .item-img-wrap{
    padding-top: 50px;
    /* スマホ寄りで画像幅を少し絞る → 円の基準も追従 */
    --img-w: min(60%, 630px);
    --circle-size: clamp(165px, 32vw, 260px);
}
}

/* ▼SPでも“少し重ねたまま”で良い想定。
   重なりを解除したい場合は position: static に戻す処理を入れてください。 */
@media screen and (max-width:768px){
#series_heritage3 .visual2 {
    background-position: center right 75%;
}
#series_heritage3 .sec2 {
    height: auto;
    min-height: unset;
    background-position: 60% top;
    padding: 40px 0;
}
#series_heritage3 .item-img-wrap{
    --img-w: min(80%, 560px);           /* 先に宣言があれば上書き */
    --circle-size: clamp(120px, 35vw, 240px);
    --overlap-x: 20%;
    --overlap-y: 25%;
}
#series_heritage3 .item-img-wrap img {
    width: var(--img-w) !important;
    margin: 0 auto !important;
}
#series_heritage3 .block.sec1 {
        padding: 30px 10px 40px;
    }
#series_heritage3 .flex-wrap.fl {
    gap: 0;
    padding: 20px 0 0;
}
#series_heritage3 .sec2 .tit-box {
    width: 100%;
    padding: 24px;
}
#series_heritage3 .inner-block .detail-img {
	width: 100%;
}
#series_heritage3 .sec2 .inner-block {
    display: block;
    min-height: auto;
}
#series_heritage3 .circle_r {
    bottom: 4%;
}
#series_heritage3 .inner-block, .detail-img {
    width: 100%;
}
#series_heritage3 .sec4 {
    padding: 60px 10px !important;
    min-height: auto !important;
}
#series_heritage3 .sec4 .tit-box {
    padding: 0 0 15px;
}
#series_heritage3 .sec4 .flex-wrap.fl {
    flex-direction: column;
	gap: 15px;
	width: 95%;
}
#series_heritage3 .sec4 .flex-wrap.fl.zipper-info {
	gap: 25px;
}
#series_heritage3 .sec4 .flex-wrap.fl.zipper-info {
	width: 100%;
}

#series_heritage3 .zipper-info .detail-txt h3 {
    font-size: 20px;
	letter-spacing: 0.05em;
	line-height: 1.5;
}
	
#series_heritage3 .zipper-info .detail-txt p {
    font-size: 14px;
    line-height: 1.8;
    letter-spacing: 0;
}
#series_heritage3 .block.sec4 {
    margin: 0;
}
#series_heritage3 .flex-wrap.fl.zipper-info {
    margin: 30px auto 0;
}
}

@media screen and (max-width:500px){
#series_heritage3 .tit-wrap h2 {
    padding: 10px;
    font-size: 30px !important;
}
#series_heritage3 .sec1 p {
    margin-bottom: 30px;
}
#series_heritage3 .circle {
    /* 500px以下では円をさらにコンパクトに */
    --circle-size: clamp(140px, 44vw, 200px);
}
/* 必要に応じて画像幅も少し広げる／狭める */
#series_heritage3 .item-img-wrap{
    --img-w: min(95%, 520px);
    --overlap-x: 5%;
    --overlap-y: 15%;
}
#series_heritage3 .visual3 {
    font-size: 28px;
}
#series_heritage3 .item-img-wrap img {
    width: var(--img-w) !important;
}
#series_heritage3 .visual3 {
        background-image: url(https://www.bermas.co.jp/wp-content/themes/bermas/images_series/heritage3_9_sp.jpg);
        background-position: center top;
    }
}