/* ロゴの位置調整 */
body > header .logo {
	margin-top: 6px !important;  /* 上に移動（負の値） */
}

/* ナビゲーションの位置調整 */
body > header .header-nav {
    margin-right: 20px !important;
    margin-top: 1px !important;  /* 上に移動（負の値） */
}

main {
    padding-top: 100px; /* この値を調整して、セクションの位置を下に移動させます */
}

body {
    font-family: 'Noto Sans JP', 'M PLUS 1p', 'Zen Kaku Gothic New', 'Kosugi Maru', 'Sawarabi Gothic', sans-serif;
    background-color: white;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    padding: 0 0 50px 0; /* 下部に50pxのパディングを追加 */
}

h1 {
    margin: 0;
    text-align: center;
    font-size: 28px;
}

.tokushoho-content {
    max-width: 800px;
    margin: 80px auto; /* 上下の余白を50pxに設定 */
    padding: 0 40px; /* 内側の余白を設定 */
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* 影をつける（オプション） */
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

h2 {
    color: #333;
    margin-top: 30px;
    margin-bottom: 15px;
}

p {
    margin-bottom: 15px;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* 背景アニメーション用のスタイル */
.hero-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    perspective: 1000px;
}

.cube-wrapper {
    position: absolute;
    transform-style: preserve-3d;
    will-change: transform;
    /* アニメーションをここでは定義しない */
}

.cube {
    position: relative;
    transform-style: preserve-3d;
    /* アニメーションをここでは定義しない */
    width: 100%;
    height: 100%;
}

.cube-face {
    position: absolute;
    width: 100%;
    height: 100%;
    background: transparent;
    border: 2px solid;
    border-color: #09163a;
    backface-visibility: visible;
}

/* 立方体の各面の位置を正確に調整 */
.cube-face:nth-child(1) { /* 前面 */
    transform: translateZ(calc(50% - 1px));
}
.cube-face:nth-child(2) { /* 背面 */
    transform: translateZ(calc(-50% + 1px)) rotateY(180deg);
}
.cube-face:nth-child(3) { /* 右面 */
    transform: translateX(calc(50% - 1px)) rotateY(90deg);
}
.cube-face:nth-child(4) { /* 左面 */
    transform: translateX(calc(-50% + 1px)) rotateY(-90deg);
}
.cube-face:nth-child(5) { /* 上面 */
    transform: translateY(calc(-50% + 1px)) rotateX(90deg);
}
.cube-face:nth-child(6) { /* 下面 */
    transform: translateY(calc(50% - 1px)) rotateX(-90deg);
}

@keyframes rotate {
    from {
        transform: rotateX(0) rotateY(0) rotateZ(0);
    }
    to {
        transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg);
    }
}

@keyframes float {
    0%, 100% {
        transform: translate3d(0, 0, 0);
    }
    25% {
        transform: translate3d(50px, -30px, 20px);
    }
    50% {
        transform: translate3d(-20px, -50px, -30px);
    }
    75% {
        transform: translate3d(-40px, 30px, 40px);
    }
}

@media (max-width: 768px) {
    .tokushoho-content {
        margin: 50px 20px;
        padding: 30px 20px;
    }
	
	/* ハンバーガーメニューの表示設定 */
    .menu-toggle {
        display: block;
        position: fixed;
        right: 20px;
        top: 16px;
        width: 30px;
        height: 24px;
        cursor: pointer;
        z-index: 1001;
    }

    /* ハンバーガーメニューの線 */
    .menu-toggle span {
        display: block;
        position: absolute;
        width: 100%;
        height: 2px;
        background-color: #09163a;
        transition: all 0.4s ease;
    }

    .menu-toggle span:nth-child(1) { top: 0; }
    .menu-toggle span:nth-child(2) { top: 11px; }
    .menu-toggle span:nth-child(3) { bottom: 0; }

    /* メニューオープン時のハンバーガーボタン */
    .menu-toggle.active span {
        background-color: #ffffff;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(11px) rotate(-45deg);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-11px) rotate(45deg);
    }

    /* PCナビゲーションを非表示 */
    .header-nav ul {
        display: none;
    }

    /* モバイルナビゲーション */
    .mobile-nav {
        display: flex; /* blockからflexに変更 */
		justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: #09163a;
        transition: all 0.5s cubic-bezier(0.8, 0, 0.2, 1);
        z-index: 1000;
    }
	
	.mobile-nav a {
		display: block;
		padding: 20px;
		color: #968242; /* 立方体と同じ金色 */
		font-size: 24px;
		text-decoration: none;
		transition: color 0.3s ease;
	}
	
	/* ホバー時の色も同じ金色を維持 */
	.mobile-nav a:hover {
		color: #968242;
	}

    .mobile-nav.active {
        right: 0;
    }
	
	.mobile-nav ul {
        list-style: none;
        padding: 0;
        margin: 0;
        text-align: center;
    }

    .mobile-nav li {
        margin: 20px 0;
    }
	
	/* PCナビゲーションを非表示 */
    .header-nav {
        display: none;
    }

    h1 {
        text-align: center;
		white-space: nowrap; /* 改行を防ぐ */
		font-size: 26px;
    }
	
	h2 {
		font-size: 20px;
		margin-top: 10px;
    }

    .container {
        padding: 0 15px;
        text-align: center;
    }

    .tokushoho-content p,
    .tokushoho-content h2 {
        text-align: left;
    }

    .small-heading {
        font-size: 16px; /* この値は必要に応じて調整してください */
        text-align: left;
    }

    main {
        padding-top: 70px; /* この値を調整して、セクションの位置を下に移動させます */
    }

    /* ページの上部にマージンを追加しないようにする */
    body {
        margin-top: 0 !important;
    }
}