/* ロゴの位置調整 */
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;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    padding: 0 0 50px 0; /* 下部に50pxのパディングを追加 */
}

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

.news-archive {
    padding: 100px;
}

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

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

p {
    margin-bottom: 15px;
}

.news-item {
    display: flex;
    flex-direction: row; /* 横並びに変更 */
	align-items: center;
    width: 100%;
    max-width: 100%;
    margin: 0 auto 20px;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
}

.news-image {
    width: 30%; /* 画像の幅を調整 */
    height: auto;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-item-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 15px;
    width: 70%; /* コンテンツの幅を調整 */
	margin-right: 300px; /* 右マージンを0に設定 */
}

.news-title-archive {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
	margin: 0 0 10px 0;
	white-space: nowrap;      /* テキストを1行に */
    overflow: hidden;         /* はみ出しを隠す */
    text-overflow: ellipsis;  /* 末尾を...にする */
	text-align: center; /* 追加：テキストを中央揃えに */
}

.news-archive-title {
    display: inline-block;  /* インラインブロック要素に変更 */
    background-color: white;  /* 白い背景を追加 */
    border-radius: 50px;  /* 角を丸く */
	line-height: 1;  /* 行の高さを小さく */
}

.news-archive-header {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-bottom: 30px;
}

.news-date {
    font-size: 12px;
    color: #888;
    position: absolute;
    top: 42%;
    transform: translateY(-50%);
    text-align: right !important;
	padding-right: 180px !important;
}

/* 背景アニメーション用のスタイル */
.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 #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 screen and (max-width: 767px) {
	/* ハンバーガーメニューの表示設定 */
    .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;
    }
	
    .news-archive {
        padding: 10px;
    }

    .news-archive-grid {
        padding-top: 5px; /* モバイル版での調整 */
        padding-left: 20px; /* 左側にパディングを追加 */
    }

    .news-archive-header {
        position: relative; /* 位置を確実にする */
        padding-top: 100px;
        z-index: 1; /* 他の要素より前面に表示 */
    }

    .news-archive-title {
        font-size: 30px; /* タイトルのフォントサイズを調整 */
        margin-bottom: 5px; /* タイトルの下に余白を追加 */
    }

    .news-list {
        grid-template-columns: 1fr;
    }

    .news-item {
        display: flex;
        flex-direction: column;
        width: 105%;
        max-width: 105%;
        margin: 0 auto 5px;
        min-height: 190px; /* 最小の高さを設定 */
        margin-right: 0;
        align-items: center;
    }

    .news-image {
        width: 100%;
        max-width: none;
        margin-bottom: -40px;
        margin-left: auto; /* 左マージンを自動に設定 */
        margin-right: -35px; /* 右マージンを0に設定 */
    }

    .news-image img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    .news-content {
        display: flex;
        flex-direction: column;
    }

    .news-item-content {
        display: flex;
        flex-direction: column;
        padding-top: 5px; /* 上部のパディングを小さく設定 */
		margin-left: 200px !important;
    }

    .news-item-content .news-title {
        font-size: 11px !important;
        line-height: 1.1;
        margin-bottom: 1px;
        font-weight: 600; /* フォントの太さを調整 */
        max-height: none; /* 高さ制限を解除 */
        overflow: visible;
        text-overflow: initial;
        display: block;
        -webkit-line-clamp: unset; /* 最大2行まで表示 */
        -webkit-box-orient: unset;
        line-clamp: unset;
        order: 1;
        margin-top: 0; /* タイトルの上マージンを削除 */
    }

    .news-item-content .news-title-archive {
        font-size: 12px !important; /* この値を調整して、希望のサイズに設定 */
        line-height: 1.3;
        margin-bottom: 5px;
        font-weight: 600;
		white-space: nowrap;
		overflow: hidden;
        text-overflow: ellipsis;
        text-align: center; /* モバイル表示でも中央揃えに */
    }

    .news-item-content .news-date {
        font-size: 10px !important;
        color: #888;
        margin-top: 5px;
        order: 2; /* 日付をタイトルの後に表示 */
    }

    .news-archive .news-item {
        padding-bottom: 0 !important;
    }
	
	.news-item:not(:has(.news-image img)) .news-item-content {
        padding-bottom: 10px; /* モバイル用に調整 */
    }

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

    /* ページの上部にマージンを追加しないようにする */
    body {
        margin-top: 0 !important;
    }
	
	.news-item {
        width: 100%;
        margin: 0 auto 15px;
    }

    .news-image {
        height: 150px;
    }

    .news-title-archive {
        font-size: 16px;
    }

    .news-excerpt {
        font-size: 12px;
    }

    .news-date {
        font-size: 10px;
		top: 74%;
		padding-left: 30px;
    }
}