@charset "utf-8";
* {
	padding: 0;
	margin: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

header, .container {
	font-family: "BIZ UDGothic", "Noto Sans JP", sans-serif;
}

h1 {
	color: #4d4b4b;
	font-size: 24px;
	font-weight: bold;
}

header {
	width: 100%;
	height: 90px;
	display: flex;
	justify-content: center;
	position: relative;
}

.logo {
	text-align: center;
	position: absolute;
	top: 20px;
	left: 21%;
	user-select: none;
}

nav ul {
	display: flex;
	list-style: none;
	position: absolute;
	top: 45px;
	right: 21%;
}

nav li {
	margin: 0 55px;
	font-size: 18px;
}

nav li a {
	text-decoration: none;
	color: #4d4b4b;
}

a:hover {
	text-decoration: underline;
}

footer {
	font-family: "Noto Sans JP", sans-serif;
	background-image: url(../img/footer.png);
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
}
.foottext {
	padding-top: 70px;
	padding-bottom: 70px;

}

footer p {
	text-align: center;
	line-height: 1.7em;
}


img {
	vertical-align: top;
}

.container {
	width: 1200px;
	margin: 0 auto;
}

.mainimage {
	position: relative;
	margin-top: 0;
	margin-right: auto;
	margin-left: auto;
	display: table;
	margin-bottom: 100px;
}
.mainimage img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
}

.btn-group {
	position: absolute;
	left: 13.5%;
	display: flex;
	bottom: auto;
	top: 68%;
}

button a {
	text-decoration: none;
}

.list-btn {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 265px;
	margin: 0 80px 0 0;
	padding: 15px 20px;
	border: 1px solid #f98383;
	border-radius: 25px;
	background-color: #f98383;
	color: #fff;
	font-size: 30px;
	font-family: "BIZ UDGothic", "Noto Sans JP", sans-serif;
	font-weight: bold;
}

.list-btn:hover {
    border: 1px solid #fff;
    background-color: #fff;
    color: #f98383;
    font-weight: 600;
}

 .list-btn a {
	color: #fff;

}
.list-btn:hover a {
	color: #f98383;
	text-decoration: none;
}

.howto-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 265px;
    margin: 0 auto;
    padding: 15px auto;
    border: 1px solid #f98383;
    border-radius: 25px;
    background-color: #fff;
    color: #f98383;
    font-size: 30px;
	font-family: "BIZ UDGothic", "Noto Sans JP", sans-serif;
	font-weight: bold;
}

.howto-btn:hover {
    border: none;
    background-color: #f98383;
    color: #fff;
    font-weight: 600;
}

.howto-btn a {
	color: #f98383;
}

.howto-btn:hover a {
	color: #fff;
	text-decoration: none;
}

h2 {
	text-align: center;
	font-size: 36px;
	font-weight: normal;
	margin-bottom: 50px;	/* margin: 90px 0; */
}


.flex-box {
	display: flex;
	justify-content: space-between;
	margin: 0 50px;
}

.box p {
	max-width: 100%;
	height: auto;
	margin-top: 0;
	margin-right: 48px;
	margin-left: 50px;
	margin-bottom: 20px
}

.box p img {
	max-width: 100%;
	height: auto;
	position: relative;
	top: 0px;
	box-shadow: none;
    transition: top 0.3s ease, box-shadow 0.3s ease;
}
.box p img:hover {
	top: -10px;
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.dl-btn {
	display: block;
	text-align: center;
	/* vertical-align: middle; */
	text-decoration: none;
	position: relative;
	width: 120px;
	margin-top: 50px;
	margin-right: auto;
	margin-left: auto;
	margin-bottom: 100px;
	padding: 1rem 0rem;
	font-weight: bold;
	border-radius: 10px;
	color: #27acd9;
	border: 3px solid #27acd9;
	box-shadow: 5px 5px #27acd9;
	transition: 0.3s ease-in-out;
	background-color: #fff;
}
.dl-btn:hover {
	box-shadow: none;
	transform: translate(5px, 5px);
	color: #27acd9;
}

.sec1 {
	background-color: #ffffcc;
	padding-top: 50px;
	margin-bottom: 100px;
}

.sec2 {
	background-color: #c6ffff;
	padding-top: 50px;
	padding-bottom: 100px;
	position: relative;
	margin-bottom: 100px;
}

.sec2 p {
	margin-left: 200px;
	line-height: 2.5em;

}
.text {
	width: 880px;
	position: relative;
}
.text0 {
	width: 880px;
	position: relative;
	margin-bottom: 50px;
}
.photo img {
	position: absolute;
	right: 0;
	max-width: 60%;
	height: auto;
	bottom: 0px;
}
.gotop {
	width: 69px;
	height: auto;
	position: fixed;
	right: 15px;
	bottom: 15px;
}
.gotop img {
	width: 100%;
	height: auto;
}

/* 1200px未満での中間調整 - デスクトップ表示の維持 */
@media (max-width: 1199px) and (min-width: 801px) {
    /* コンテナサイズの調整 */
    .container {
        width: 95%;
        max-width: 1000px;
    }
    
    /* ヘッダーの調整 - 重複防止 */
    .logo {
        left: 5%;
        font-size: 0.9em;
    }
    
    nav ul {
        right: 5%;
    }
    
    nav li {
        margin: 0 30px;
        font-size: 16px;
    }
    
    /* メイン画像の高さ調整とボタン配置 */
    .mainimage {
        margin-bottom: 80px;
    }
    
    .btn-group {
        left: 50%;
        top: 65%; /* タイトル文字の下に配置 */
        transform: translateX(-50%);
        flex-direction: row; /* 横並び */
        gap: 15px;
        justify-content: center;
    }
    
    .list-btn, .howto-btn {
        width: 180px;
        font-size: 16px;
        margin: 0;
        padding: 8px 15px;
        white-space: nowrap;
    }
    
    /* sec1の画像見切れ防止 */
    .flex-box {
        margin: 0 20px;
    }
    
    .box p {
        margin-right: 20px;
        margin-left: 20px;
    }
    
    /* sec2の調整 */
    .sec2 p {
        margin-left: 100px;
    }
    
    .text, .text0 {
        width: 80%;
    }
	.photo img {
	position: absolute;
	right: 0;
	max-width: 27%;
	height: auto;
	bottom: 0px;
	}
}

/* レスポンシブ対応 - 800px以下 */
@media (max-width:800px){    
    /* 1) ヘッダーレイアウトの修正 - 縦並びにして重複防止 */	
    header {
        height: auto;
        flex-direction: column;
        padding: 1rem;
        align-items: center;
    }
    
    .logo {
        position: static;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .logo h1 {
        font-size: 18px;
        line-height: 1.3;
    }
    
    /* 2) ナビゲーションのサイズ調整と中央配置 */
    nav ul {
        position: static;
        justify-content: center;
        gap: 2rem;
        margin: 0;
    }
    
    nav li {
        margin: 0;
        font-size: 16px;
    }
    
    nav li a {
        font-size: 16px;
    }
    
    /* コンテナの調整 */
    .container {
        width: 100%;
        padding: 0 1rem;
    }
    
    /* メイン画像の調整 - 全表示対応 */
    .mainimage {
        margin-bottom: 50px;
        width: 100%;
        overflow: hidden;
    }
    
    /* 6) トップ画像を小さく - 全表示維持 */
    .mainimage img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
    
    /* ボタンをメイン画像内に適切に配置 - PCサイズを参考 */
    .btn-group {
        position: absolute;
        left: 10%; /* PCの13.5%より少し内側に */
        top: 68%; /* PCと同じ位置 */
        display: flex;
        flex-direction: row; /* 横並び維持 */
        gap: 10px; /* ボタン間の間隔を狭く */
        width: 80%; /* 画像幅の80%に制限 */
        align-items: center;
        justify-content: flex-start; /* 左寄せ */
    }
    
    .list-btn, .howto-btn {
        width: 45%; /* 各ボタンを親の45%に */
        max-width: 160px; /* 最大幅を制限 */
        font-size: 14px; /* フォントサイズを小さく */
        margin: 0;
        padding: 8px 5px;
        border-radius: 15px; /* 角丸を小さく */
        white-space: nowrap; /* テキストの折り返し防止 */
        flex-shrink: 1; /* 必要に応じて縮小 */
    }
    
    /* 特にhowto-btnのマージン調整 */
    .howto-btn {
        margin: 0; /* autoを削除して0に */
    }
    
    /* 3) sec1のデザイン一覧も中央で表示 */
    .sec1 {
        padding: 30px 1rem 50px;
    }
    
    .sec1 h2 {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    /* 4) class="box"の画像を横3枚表示から各1枚で表示し、中央で表示 */
    .flex-box {
        flex-direction: column;
        align-items: center;
        margin: 0;
    }
    
    .box {
        width: 100%;
        max-width: 300px;
        margin-bottom: 50px;
    }
    
    .box p {
        margin: 0 auto 20px;
        text-align: center;
    }
    
    .box p img {
        max-width: 250px;
        width: 100%;
    }
    
    .dl-btn {
        width: 100px;
        margin: 20px auto 0;
        font-size: 14px;
        padding: 0.8rem 0;
    }
    
    /* 5) sec2のサイズを800PX以下に合うよう変更し、中央位置で表示 */
    .sec2 {
        padding: 30px 1rem 50px;
    }
    
    .sec2 h2 {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .sec2 p {
        margin-left: 0;
        text-align: left;
        line-height: 2em;
        font-size: 14px;
    }
    
    .text0, .text {
        width: 100%;
        margin-bottom: 30px;
    }
    
    .photo {
        text-align: center;
        margin-top: 20px;
    }
    
    .photo img {
        position: relative;
        max-width: 250px;
        width: 100%;
        /* 中央配置の上で少し右にオフセット */
        margin: 0 auto;
        transform: translateX(20px); /* 中央から20px右にずらす */
        display: block;
    }
    
    /* gotopボタンの調整 */
    .gotop {
        width: 50px;
        right: 10px;
        bottom: 10px;
    }
    
    /* フッターの調整 - background-image全表示対応 */
    footer {
        background-size: cover;
        background-position: center;
        min-height: 200px;
    }
    
    .foottext {
        padding: 40px 1rem;
    }
    
    footer p {
        font-size: 12px;
        line-height: 1.5em;
    }
}

/* さらに小さい画面（600px以下）用の追加調整 */
@media (max-width: 600px) { 
    .logo h1 {
        font-size: 1.3rem;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* メイン画像の全表示維持 */
    .mainimage img {
        width: 100%;
        min-width: 350px;
        object-fit: contain;
    }
    
    /* 600px以下でのボタン調整 */
    .btn-group {
        left: 5%;
        width: 90%;
        gap: 8px;
    }
    
    .list-btn, .howto-btn {
        width: 48%;
        max-width: 140px;
        font-size: 12px;
        padding: 6px 3px;
    }
    
    .sec1 h2 {
        font-size: 1.5rem;
    }
    
    .box {
        max-width: 250px;
    }
    
    .box img {
        max-width: 200px;
    }
    
    .sec2 h2 {
        font-size: 1.4rem;
    }
    
    .text0, .text {
        font-size: 0.85rem;
        padding: 0 0.5rem;
    }
    .photo img {
        max-width: 200px;
        transform: translateX(15px); /* 小画面では15px右にずらす */
    }
    
    /* フッターbackground-image全表示対応 */
    footer {
        background-size: cover;
        background-position: center;
        min-height: 180px;
    }
}