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

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

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 130px 0; /* 下部に50pxのパディングを追加 */
}

.news-single {
	padding-top: 0; /* この値は必要に応じて調整してください */
	max-width: 1100px;  /* 最大幅を設定 */
    margin: 0 auto;    /* 中央寄せ */
    border-radius: 10px !important; /* 角を丸く */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* 影を追加 */
}

.news {
    position: relative;
    padding: 50px 30px;
    background-color: white;
    text-align: center;
    clip-path: none; /* clip-pathを無効にする */
    padding-top: calc(60px + 15vw);
    padding-bottom: calc(160px + 1vw);
    z-index: 3;
	margin-bottom: -5vw;
	margin-top: 180px;
}

.news::before {
    background-color: white;
}

.entry-title {
    margin-top: 0;
    padding-top: 10px;
    padding-bottom: 15px;
    display: inline-block;
    border-bottom: none!important; /* 既存の下線を削除 */
    position: relative; /* 疑似要素のための相対位置指定 */
	width: 100%; /* タイトルの幅を100%に設定 */
}

.entry-title::after {
    content: '';
    display: block;
    width: 800px; /* ナビゲーションの幅と同じにする */
    max-width: calc(100% - 40px); /* 画面幅が狭い場合に対応 */
    height: 1px;
    background-color: #ccc;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.entry-header {
    position: relative;
    z-index: 10;
    background-color: white;
    padding: 0 0;
    margin-top: -170px;
    text-align: center; /* タイトルを中央揃えにする */
}

.entry-content {
    text-align: left; /* 本文を左寄せにする */
    max-width: 800px; /* コンテンツの最大幅を設定 */
    margin: 0 auto; /* 中央に配置 */
    padding: 0 20px; /* 左右にパディングを追加 */
	margin-bottom: 30px; /* コンテンツの下部にマージンを追加 */
}

.entry-content img {
    display: block; /* ブロック要素として扱う */
    margin-left: auto; /* 左右のマージンを自動に設定 */
    margin-right: auto; /* 左右のマージンを自動に設定 */
    max-width: 100%; /* 画像が親要素からはみ出ないようにする */
    height: auto; /* アスペクト比を保持 */
}

.entry-date {
    font-size: 14px;
	color: #000;
	font-weight: bold; /* 太字に設定 */
	margin-top: -300px;
}

.entry-title {
    margin-top: 0;
    padding-top: 10px;
    padding-bottom: 15px;
    display: inline-block; /* インラインブロック要素に変更 */
    border-bottom: 1px solid #ccc;
}

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

h1 {
    margin: 0;
    padding-top: 20px; /* h1 要素に上部パディングを追加 */
	text-align: center;
	font-size: 26px !important;
}

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

p {
    margin-bottom: 15px;
}

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

.post-navigation {
    max-width: 800px;
    margin: 80px auto 0;
    padding: 0 20px;
}

.navigation-line {
    border: none;
    border-top: 1px solid #ccc;
    margin: 0 0 20px 0;
	width: 800px !important; /* タイトルの下線と同じ幅に設定 */
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.nav-button {
    padding: 10px 20px;
    border: 1px solid #000;
    text-decoration: none;
    color: #000;
    font-size: 14px;
    transition: background-color 0.3s, color 0.3s;
    width: 110px;
    text-align: center;
    flex: 0 0 auto;
}

.nav-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.nav-button:hover {
    background-color: #000;
    color: #fff;
}

/* 前の記事へ・次の記事へボタンのスタイル */
.prev-post, .next-post {
    background-color: #000;
    color: #fff;
}

.prev-post:hover, .next-post:hover {
    background-color: #fff;
    color: #000;
}

/* 記事一覧ボタンのスタイル */
.post-list {
    background-color: #fff;
    color: #000;
}

.post-list:hover {
    background-color: #000;
    color: #fff;
}

/* 背景アニメーション用のスタイル */
.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) {
	/* ハンバーガーメニューの表示設定 */
    .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;
    }
	
    .container {
        text-align: center;
    }

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

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

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

	h1 {
	font-size: 26px !important;
    }

    /* ページの上部にマージンを追加しないようにする */
    body {
        margin-top: 0 !important;
    }
	
	.news-single article {
        margin-top: 50px; /* 負の値で上に移動 */
		margin-bottom: 0; /* 下部の余白を減らす */
		padding-bottom: 50px; /* 下部のパディングを削除 */
    }
	
	.entry-header {
		margin-top: 220px; /* -170pxから-120pxに変更して下に移動 */
        margin-bottom: 0; /* 下部のマージンを削除 */
		width: 100%; /* 横幅を100%に設定 */
    }

    .entry-content {
        margin-top: 0; /* 上部のマージンを削除 */
        padding-top: 0; /* 上部のパディングを削除 */
    }
	
	.entry-title::after {
        width: calc(100% - 40px); /* モバイル表示時は画面幅に合わせる */
    }
	
	.navigation-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .nav-button {
        width: 100%;
    }
	
	.navigation-line {
        width: calc(100% - 40px);
    }
}