/* IMPORT RESET================================================== */
@import url("sanitize.css");

/* WEB FONT ====================================================== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&display=swap');
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/css/all.min.css");

/* 変数設定 ======================================================== */

/*共通のサイズや色を変数で設定変数を使う時は数値で入れる箇所を var(--small) のように記載*/
:root {
    /*文字サイズ*/
    --small: 1.2rem; /*75%*/
    --medium: 1.6rem; /*100%*/
    --large: 2rem; /*125%*/
    --spacing: 10px;
}

/* STYLES ======================================================== */

/* ルートのフォントサイズを10pxに設定（1rem=10px）*/
html {
    font-size: 62.5%;
}

body {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 1.6rem;
    color: #333;
    background: linear-gradient(to right, #e9470a, #f07b00);
    line-height: 1.6;transition: overflow0.3s ease;

    &.menu-open {
        overflow: hidden; /* メニュー開閉時、背景スクロール禁止 */
    }
}

html, body {
    max-width: 100%;
    overflow-x: clip;
}

img {
    max-width: 100%;
    height: auto;vertical-align: middle;
}

h1 {
	margin: 0 0 1em 0;
	text-align: center;

    img {
        border-radius: 6px;
			width: 80%;
    }
}

h2 {
    border-left: 10px solid #e9470a;
    color: #e9470a;
    padding-left: 0.5em;
    margin-top: 0;font-size: var(--large);
}

h3 {
    color: #e9470a;
    border-bottom: 2px dotted #e9470a;
}

.font-s {
    font-size: var(--small);
}

.red {
    color: #c00;
}

.site-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: clip; /* 横方向の絶対的な防壁 */
	padding: 0 10px;
}

a.btn {
	display: flex;
	align-items: center;
	width: 100%;
	height: 2.4em;
	margin: 0 auto;
	padding: 3px 1em;
	background: #ec6105;
	text-decoration: none;
	font-size: var(--medium);
	border-radius: 1.3em;
	
	.btn-text {
		display: block;
		color: #fff;
		font-weight: bold;
		text-align: center;
		position: relative;
		margin: 0 auto;
		padding-left: 1.3em;
		
		&::before {
			position: absolute;
			left: 0;
			margin: 1px auto 0;
			vertical-align: middle;
			font-family: "Font Awesome 6 Free";
			content: "\f015";
			font-weight: 900;
		}
	}
	
	/*マウスオーバーした時*/
	@media (hover: hover) {
		/* hover指定できるPCを想定したスタイル */
		&:hover {
			background-color: #e9470a;
			color: #fff;
		}
	}
	@media (hover: none) {
		/* hoverが使えないタッチ端末 */
		&:active {
			background-color: #e9470a;
			color: #fff;
		}
	}
}

.image-scroll-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
	
	img {
		max-width: none; 
		display: block;
		height: auto;
	}
}

/* ==========================================================================
   Layout (PC基準: 980px)
   ========================================================================== */
.lp-container {
    display: grid;
    grid-template-columns: 450px 1fr;
    gap: 40px;
    width: 100%;
    max-width: 980px;
    margin: 10px auto;
    padding: 0 20px 40px;
    align-items: start;
    background-color: #fff;
    border-radius: 6px;
}

/*★左側（header）：ここをそのまま追従させます */
.left-content {
    position: -webkit-sticky; /* Safari対応 */
    position: sticky;
    top: 40px; /* 画面上部から40pxの位置でロック */
    height: calc(100vh - 40px); /* 画面の高さぴったり（topの40px分を引く）に固定 */
    margin-top: 0;
}

/* ナビゲーション（PC） */
.left-content__nav{
	margin-top: 20px;
}
.nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0;
    margin: 0;
}

.nav-link {
    display: block;
    padding: 5px;
    background-color: #ebded9;
    color: #222;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.3s ease;

    &:hover {
        background-color: #817570;
        color: #fff;
    }
}

/* 右側：コンテンツエリア（main） */
.right-content {
    display: flex;
    flex-direction: column;
    gap: 2em;
    min-width: 0;
    padding-top: 40px;
}

.copyright {
    text-align: center;
    font-size: var(--small);
}

/* ハンバーガーボタン（PC時は非表示） */
.hamburger {
    display: none;
}

/* ==========================================================================
   Responsive (Responsive: ~ 979px)
   ========================================================================== */
@media (max-width: 979px) {
    .lp-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 20px;
    }

    /* スマホ時は固定を解除 */
    .left-content {
        position: static;
        height: auto;
    }

    /*ナビをハンバーガーメニュー化 */
    .left-content__nav {
        position: fixed;
        top: 0;
        right: -100%; /* 初期状態は隠す */
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: rgba(242, 235, 232, 0.95);
        padding: 100px 30px 40px;
			margin-top: 0;
        transition: right 0.4s ease;
        z-index: 998;
        overflow-y: auto; /* ナビ内でスクロール可能に */

        &.is-open {
            right: 0 !important; /* !important で確実に最優先 */
        }
    }

    .nav-link {
        background-color: rgba(255, 255, 255, 0.5);
        color: #222;
        margin-bottom: 10px;
    }

    /*ハンバーガーボタン出現*/
    .hamburger {
        display: block;
        position: fixed;
        top: 10px;
        right: 10px;
        width: 48px;
        height: 48px;
        background-color: #1e0d06;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        z-index: 999;
        padding: 0;

        span {
            display: block;
            position: absolute;
            left: 14px;
            width: 20px;
            height: 2px;
            background-color: #fff;
            transition: all 0.3s ease;
        }

        span:nth-child(1) {
            top: 16px;
        }

        span:nth-child(2) {
            top: 23px;
        }

        span:nth-child(3) {
            top: 30px;
        }

        &.is-open span:nth-child(1) {
            transform: translateY(7px) rotate(-45deg);
        }

        &.is-open span:nth-child(2) {
            opacity: 0;
        }

        &.is-open span:nth-child(3) {
            transform: translateY(-7px) rotate(45deg);
        }
    }

    .right-content {
        padding-top: 0;
    }
}

/*YouTube*/
.youtube iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
}


/*ページトップスクロール ──────────────────────────────────────────────────*/
#page-top {
    position: fixed;
    right: 10px;
    bottom: 10px;
    z-index: 10;
    margin: 0;
}

.topbtn {
    display: block;
    background: #000;
    color: #fff;
    width: 48px;
    height: 48px;
    text-align: center;
    box-shadow: 0 0 0 3px #000; /*ボタンの背景色に合わせる*/
    border:1px solid #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 6px;
    padding: 0;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;

    /*マウスオーバーした時*/
    @media (hover: hover) {
        /* hover指定できるPCを想定したスタイル */
        &:hover {
            background: #666;
            box-shadow: 0 0 0 3px #666; /*ボタンの背景色に合わせる*/
        }
    }

    @media (hover: none) {
        /* hoverが使えないタッチ端末を想定した装飾 */
        &:active {
            background: #666;
            box-shadow: 0 0 0 3px #666; /*ボタンの背景色に合わせる*/
        }
    }

    i {
      padding-top: 5px;
      font-size: var(--medium);
      display: block;
    }

    span {
      display: block;
      font-size: var(--medium);
			margin-top: -2px;
    }
}