/* スマホのみロゴ幅調整 */
@media (max-width: 639px) {
	.header-logo-01 {
		width: 100px;
	}

	.header-logo-02 {
		width: 130px;
	}
}

@media (min-width: 960px) {
	body:has(.home-sec-01) #header .header-logo-01,
	body:has(.home-sec-01) #header .header-logo-02 {
		opacity: 0;
		transition: opacity 0.3s ease-in-out;
		pointer-events: none;
	}

	body:has(.home-sec-01) #header.js-actived .header-logo-01,
	body:has(.home-sec-01) #header.js-actived .header-logo-02 {
		opacity: 1;
		pointer-events: auto;
	}
}

/* サブページは白背景・ロゴ表示の固定ヘッダーを初期状態にする。
   position:fixed によるスクロール追従は維持する。 */
body:not(:has(.home-sec-01)) #header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	background-color: #fff;
	z-index: 10;
}

body:not(:has(.home-sec-01)) #header .header-panel,
body:not(:has(.home-sec-01)) #header .header-logo-01,
body:not(:has(.home-sec-01)) #header .header-logo-02 {
	opacity: 1;
	pointer-events: auto;
}

/* 固定ヘッダー分、本文が上に潜らないよう同じ高さを確保する
   （上下padding 10px + メニューボタン 46px。PCはロゴ2の方が高い） */
body:not(:has(.home-sec-01)) {
	padding-top: calc(10px + 46px + 10px);
}

@media (min-width: 960px) {
	body:not(:has(.home-sec-01)) {
		padding-top: calc(10px + 240px * 268 / 1326 + 10px);
	}
}


@media only screen and (width >= 960px) {
    .home-panel-01 .panel-logo {
        display: block;
        margin-top: -50px!important;
    }
}

/* スマホ：フッター会社リンクを1列表示 */
@media (max-width: 959px) {
	.gapota-card-01 img {
		top: 20px !important;
	}
	.gapota-about-catch-01{
		margin-top: 0px!important;
	}
	.home-img-03{
		/* margin-top: -20px; */
	}
	.footer-links {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 0.75em;
		margin-top: 20px;
		margin-left: 0;
		font-size: 0.875rem;
		line-height: 1.5;
	}

	.footer-links > * {
		padding-left: 0;
	}

	.footer-links > :not(:first-child):before {
		content: none;
	}
	.footer-copyright {
		margin-top: 24px;
	}
	
}

/* Safari(SP): home-tit-03 の高さが潰れて下要素が詰まる問題を回避 */
.home-tit-03 picture {
	display: block;
	width: 100%;
	max-width: 366px;
	margin-inline: auto;
	aspect-ratio: auto;
}
.home-tit-03 picture img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 366 / 134;
	object-fit: contain;
}
@media (min-width: 960px) {
	.home-tit-03 picture {
		max-width: 879px;
	}
	.home-tit-03 picture img {
		aspect-ratio: 879 / 103;
	}
}
.home-img-01{
	z-index: 0!important;
    right: 0px;
}
/* スマホでは arrow_02_s を使用 */
@media (max-width: 959px) {
	.home-panel-05 .tit .wrapper:after {
		background-image: url(../images/common/arrow_02_s.svg);
		aspect-ratio: 123 / 187;
		width: 30vw;
		transform: rotate(340deg);
		display: none;
	}
	.home-panel-05 .tit .wrapper{
		font-size: 30px!important;
	}
}
@media (max-width: 439px) {
	.home-panel-05 .tit .wrapper:after {
		right: -10vw;
	}
}
@media (min-width: 440px) and (max-width: 499px) {
	.home-panel-05 .tit .wrapper:after {
		right: -17vw;
	}
}
@media (min-width: 500px) and (max-width: 569px) {
	.home-panel-05 .tit .wrapper:after {
		right: -22vw;
	}
}
@media (min-width: 570px) and (max-width: 640px) {
	.home-panel-05 .tit .wrapper:after {
		right: -25vw;
	}
}
@media (min-width: 641px) and (max-width: 680px) {
	.home-panel-05 .tit .wrapper:after {
		right: -10vw;
	}
}
@media (min-width: 681px) and (max-width: 750px) {
	.home-panel-05 .tit .wrapper:after {
		right: -13vw;
	}
}
@media (min-width: 751px) and (max-width: 820px) {
	.home-panel-05 .tit .wrapper:after {
		right: -16vw;
	}
}
@media (min-width: 821px) and (max-width: 890px) {
	.home-panel-05 .tit .wrapper:after {
		right: -19vw;
	}
}
@media (min-width: 891px) and (max-width: 960px) {
	.home-panel-05 .tit .wrapper:after {
		right: -22vw;
	}
}
@media (min-width: 960px) {
	.home-panel-05 .tit .wrapper:after {
		background-image: url(../images/common/arrow_02.svg);
		aspect-ratio: 50 / 55;
	}
}

.home-panel-05:before{
	top: 1%!important;
}

/* ページ内リンク時、上にはみ出す装飾（:after等）が見切れないよう余白を確保 */
#registration {
	scroll-margin-top: 60px;
}


span.chirashi-pink {
	background: red;
	border-radius: 50px;
	padding: 0px 10px 2px 10px;
}span.y100 {
	color: yellow;
}.home-panel-05{
    padding: 30px 15px 35px;
}.home-panel-05 .tit .wrapper {
    line-height: 1.5;
}span.chirashi-pink {
    margin-top: 10px;
    display: inline-block;
    font-size: 38px;
}
@media (min-width: 960px) {
	.home-panel-05 .catch{
		margin-top: -30px;
	}
	.home-text-01{
		font-size: 1.2rem;
	}
	.home-panel-04 .tit:after{
		left: 220px!important;
	}
	span.chirashi-pink {
		background: red;
		border-radius: 50px;
		padding: 0px 10px 2px 10px;
		margin-top: 0px;
		display: inline-block;
		font-size: 2.4375rem;
	}span.y100 {
		color: yellow;
	}
}
.bosai-sec-01.bosai-04 .bosai-tit-01,
.bosai-sec-01.bosai-05 .bosai-tit-01,
.bosai-sec-01.bosai-06 .bosai-tit-01,
.bosai-sec-01.bosai-07 .bosai-tit-01{
	font-size: 5rem!important;
}
@media (min-width: 960px) {

    .b02-places img {
        width: 190px!important;
        max-width: 190px!important;
	}.gapota-panel-03 .banner>.lottery-step-03 img{
		width: 230px!important;
	}.kantakun-panel-03:nth-of-type(2) {
		padding: 20px!important;
	}
	
	.kantakun-panel-03:nth-of-type(2) .cont {
		max-width: 100%!important;
	}
	
	.kantakun-panel-03:nth-of-type(2) span.marker.com-marker-01 strong {
		font-size: 3rem!important;
        font-weight: 900;
	}
	
	.kantakun-panel-03:nth-of-type(2) .lead {
		font-size: 1.85rem!important;
        line-height: 2.7rem;
	}
	
	.kantakun-panel-03:nth-of-type(2) p.head-notice {
		margin-bottom: 13px!important;
	}
	.kantakun-panel-03:nth-of-type(2) .lead .marker + sup:first-of-type {
        margin-left: 0.25em;
        line-height: 2.5rem !important;
		vertical-align: top;
	}
	
	.kantakun-panel-03:nth-of-type(2) .head {
		gap: 17px;
	}.home-panel-07 .cont {
		max-width: 720px!important;
		margin-bottom: 20px!important;
	}
}
@media (max-width: 959px) {
	.com-panel-04 .tit .wrapper:after{
		display: none!important;
	}
	.b03 .bosai-tit-03{
		text-align: left!important;
	}
	.bosai-panel-01.bosai-03:before{
		width: 72px!important;
		bottom: -50px!important;
	}.bosai-sec-01.bosai-03 .sec-body:before{
		width: 112px!important;
	    max-width: 20%!important;
		bottom: -24px!important;
	}.bosai-panel-01.bosai-03:after{
		width: 110px!important;
		bottom: -55px!important;
	}.b03-diff-cards img{
		width: 85px!important;
	}
	.b02-badge{
		width: 100%;
		max-width: 60%;
		text-align: center;
	}.b02-pair li span{
		font-size: 11px!important;
	}
	.bosai-sec-01.bosai-01 .sec-body:before{
		right: 0px;
		left: initial!important;
	}
	.com-list-01 a.com-btn-01 {
		font-size: 17px !important;
	}.b06 .com-list-01 .com-btn-01 .btn-point, .b07 .com-list-01 .com-btn-01 .btn-point{
		font-size: 17px!important;
	}.b06 .com-list-01 .com-btn-01 .btn-label, .b07 .com-list-01 .com-btn-01 .btn-label{
		font-size: 17px!important;
	}.bosai-sec-01.bosai-06 .bosai-tit-01, .bosai-sec-01.bosai-06 .bosai-catch-02 {
        font-size: 1.7rem!important;
    }.bosai-sec-01.bosai-07 .bosai-tit-01
	{
		font-size: 2rem!important;
	}.bosai-sec-01.bosai-04 .bosai-tit-01,
	.bosai-sec-01.bosai-05 .bosai-tit-01,
	.bosai-sec-01.bosai-06 .bosai-tit-01,
	.bosai-sec-01.bosai-07 .bosai-tit-01{
		font-size: 2.2rem!important;
	}#point-03 .head .tit,
	.b06 #point-04 .head .tit{
		font-size: 1.5rem!important;
	}.bosai-sec-01.bosai-06 .bosai-catch-02{
		font-size: 1.5rem!important;
	}.bosai-sec-01.bosai-06 .bosai-tit-01{
		margin-top: 20px;
	}.b06 .bosai-panel-02 .label:has(br),
	.b07 .bosai-panel-02 .label:has(br){
        margin-inline: initial!important;
        margin-left: 20px!important;
		text-align: left!important;
	}.b06-use-badge,.b07-methods-badge{
		max-width: 80%!important;
		width: 100%!important;
		text-align: center!important;
	}
	.gapota-register-sec-03 .wrapper>.obj.circle-03{
		display: none!important;
	}.kantakun-panel-03.cost dl.grid {
		flex-flow: nowrap;
	}
	.home-panel-01 .desc img{
		width: 110%;
        max-width: 700px;
        margin: 0px 0% auto -40px;
	}.kantakun-panel-03:nth-of-type(2) .lead{
		font-size: 0.9rem!important;
	}.kantakun-panel-03:nth-of-type(2) .lead .marker strong{
		font-size: 1.25rem!important;
	}
	.kantakun-panel-03:nth-of-type(1) span.marker.com-marker-01 {
		font-size: 0.9rem!important;
	}
	.kantakun-sec-06[data-result] > .wrapper > .obj.result-deco.r70.person{
		width:25%!important;
		max-width: 200px!important;
	}
	.kantakun-sec-06[data-result] > .wrapper > .obj.result-deco.r55.person{
		width:21%!important;
		max-width: 200px!important;
	}.b02-point05-chara{
		display: none!important;
	}

}
.home-panel-07 .cont img {
    aspect-ratio: initial!important;
}
@media (max-width: 420px) {
	.bosai-panel-02 .label{
		font-size: 17px!important;
	}
}
.home-panel-01 .panel-logo{
	margin-bottom: 45px!important;
}
.gapota-panel-03 .banner>.lottery-step-02:before,
.gapota-panel-03 .banner>.lottery-step-03:before{
	display: none!important;
}

.gapota-register-sec-03 .wrapper>.obj.circle-03{
    width: 246px!important;
}
.gapota-panel-03 .obj.coupon-01 {
	top: 20%!important;
}
.gapota-benefit-tit-05 .main{
	margin-bottom: 30px;
}
@media only screen and (width >= 1200px) {
    .gapota-benefit-panel-05 .unit {
        font-size: 2.0375rem!important;
    }
}
.kantakun-panel-03 .chart{
	aspect-ratio: initial!important;
}

.gapota-use-sec-01 ul.gapota-list-02 li:nth-of-type(5) .tit {
    margin-top: 30px;
}
img.b02-enefarm-photo {
    margin-right: 40px;
}
.kantakun-panel-03 .chart-03 {
    max-width: 780px;
    margin: 0 auto;
}
.home-bnr-02{
	margin-top: 10px;
}