/* ===================================
   Body - 企業版ふるさと納税LP
   最大幅: 1950px
   =================================== */

/* フォント設定 */
@font-face {
    font-family: 'BestTen';
    src: url('../font/best-ten/BestTen-DOT.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'BestTen CRT';
    src: url('../font/best-ten/BestTen-CRT.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* グローバルフォント設定 */
body,
.main-content,
h1, h2, h3, h4, h5, h6,
p, span, a, div,
button, input, textarea {
    font-family: "メイリオ", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "ヒラギノ角ゴ ProN", "Hiragino Sans", "ヒラギノ角ゴシック", "ヒラギノ角ゴ", "Hiragino Kaku Gothic Pro", "Osaka", "ＭＳ Ｐゴシック", "MS PGothic", "Arial", "sans-serif";
}

/* WordPress管理バーを強制非表示 */
#wpadminbar {
    display: none !important;
}

html {
    margin-top: 0 !important;
}

body{
    margin: 0!important;
}

body.admin-bar {
    margin-top: 0 !important;
}

/* メインコンテンツ */
.main-content {
    width: 100%;
    overflow-x: hidden;
}

.section-container {
    max-width: 1950px;
    margin: 0 auto;
    padding: 0 80px;
}

/* ===================================
   トップバナー（カルーセル）
   =================================== */

.top-banner {
    width: 100%;
    position: relative;
    background-color: #f5f5f5;
}

.banner-carousel {
    position: relative;
    max-width: 1950px;
    margin: 0 auto;
    overflow: hidden;
}

.banner-slider {
    position: relative;
    width: 100%;
    height: 600px;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    pointer-events: none;
    z-index: 1;
}

.banner-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* バナー動画ラッパー */
.banner-video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.banner-video-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.banner-video-wrapper .play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 5;
    transition: all 0.3s ease;
}

.banner-video-wrapper:hover .play-button-overlay .play-icon {
    transform: scale(1.1);
}

/* クリッカブルなバナー */
.banner-slide.has-video,
.clickable-banner {
    cursor: pointer;
}

/* 再生ボタンオーバーレイ */
.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 5;
    transition: all 0.3s ease;
}

.play-icon {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.clickable-banner:hover ~ .play-button-overlay .play-icon,
.banner-slide:hover .play-button-overlay .play-icon {
    transform: scale(1.1);
}

/* カルーセルナビゲーションボタン（非表示） */
.banner-prev,
.banner-next {
    display: none !important;
}

/* インジケーター */
.banner-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.banner-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.banner-indicator.active {
    background-color: #ffffff;
    transform: scale(1.2);
}

.banner-indicator:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* ===================================
   Section 1
   =================================== */

.section-1 {
    padding: 100px 0;
    background-color: #ffffff;
}

.section-1-content {
    display: flex;
    align-items: flex-start;
    gap: 80px;
}

.section-1-left {
    flex: 2;
}

.section-1-right {
    flex: 1;
}

.section-subtitle {
    font-size: 46px;
    font-weight: 700;
    color: #1E2083;
    margin: 0;
    margin-bottom: 30px;
    line-height: 1.4;
    font-family: "メイリオ", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "ヒラギノ角ゴ ProN", "Hiragino Sans", "ヒラギノ角ゴシック", "ヒラギノ角ゴ", "Hiragino Kaku Gothic Pro", "Osaka", "ＭＳ Ｐゴシック", "MS PGothic", "Arial", "sans-serif";
}

.section-text {
    font-size: 16px;
    line-height: 1.8;
    color: #666666;
    margin-bottom: 40px;
    font-family: '"メイリオ", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "ヒラギノ角ゴ ProN", "Hiragino Sans", "ヒラギノ角ゴシック", "ヒラギノ角ゴ", "Hiragino Kaku Gothic Pro", "Osaka", "ＭＳ Ｐゴシック", "MS PGothic", "Arial", "sans-serif";
}

.section-text p {
    margin-bottom: 1em;
	font-size: 22px;
    font-family: "メイリオ", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "ヒラギノ角ゴ ProN", "Hiragino Sans", "ヒラギノ角ゴシック", "ヒラギノ角ゴ", "Hiragino Kaku Gothic Pro", "Osaka", "ＭＳ Ｐゴシック", "MS PGothic", "Arial", "sans-serif";
}

.section-1-links {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
}

.text-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.text-links li {
    position: relative;
    padding-left: 40px;
}

.text-links li::before {
    content: '👉';
    position: absolute;
    left: 0;
    font-size: 24px;
}

.text-link {
    display: inline;
    color: #667eea;
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
    transition: all 0.3s ease;
    font-family: "メイリオ", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "ヒラギノ角ゴ ProN", "Hiragino Sans", "ヒラギノ角ゴシック", "ヒラギノ角ゴ", "Hiragino Kaku Gothic Pro", "Osaka", "ＭＳ Ｐゴシック", "MS PGothic", "Arial", "sans-serif";
}

.text-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

.button-group-vertical {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.section-1-right img {
    width: 100%;
    height: auto;
    /*border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);*/
}

/* ===================================
   Section 2 (繰り返しコンテンツ)
   =================================== */

/* ===================================
   Section 2
   =================================== */

.section-2 {
    padding: 100px 0 20px 0;
    background-color: #f9f9f9;
}

.section-2-item {
    margin-bottom: 80px;
}

.section-2-item:last-child {
    margin-bottom: 0;
}

.section-2-title {
    font-size: 36px;
    font-weight: 700;
    color: #1E2083;
    margin-bottom: 30px;
    font-family: "メイリオ", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "ヒラギノ角ゴ ProN", "Hiragino Sans", "ヒラギノ角ゴシック", "ヒラギノ角ゴ", "Hiragino Kaku Gothic Pro", "Osaka", "ＭＳ Ｐゴシック", "MS PGothic", "Arial", "sans-serif";
}

.section-2-content {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.section-2-thumbnail {
    flex-shrink: 0;
    width: 300px;
    position: relative;
}

.section-2-thumbnail.has-video {
    cursor: pointer;
}

.section-2-thumbnail .play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.section-2-thumbnail .play-icon {
    width: 60px;
    height: 60px;
}

.section-2-thumbnail:hover .play-button-overlay .play-icon {
    transform: scale(1.1);
}

.section-2-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.section-2-thumbnail.has-video img:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.section-2-text {
    flex: 1;
    font-size: 22px;
    line-height: 1.8;
    color: #000000;
    font-family: "メイリオ", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "ヒラギノ角ゴ ProN", "Hiragino Sans", "ヒラギノ角ゴシック", "ヒラギノ角ゴ", "Hiragino Kaku Gothic Pro", "Osaka", "ＭＳ Ｐゴシック", "MS PGothic", "Arial", "sans-serif";
}

.section-2-text p {
    margin-bottom: 1em;
    margin-top: 0;
    font-family: "メイリオ", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "ヒラギノ角ゴ ProN", "Hiragino Sans", "ヒラギノ角ゴシック", "ヒラギノ角ゴ", "Hiragino Kaku Gothic Pro", "Osaka", "ＭＳ Ｐゴシック", "MS PGothic", "Arial", "sans-serif";
}

.section-2-text p:last-child {
    margin-bottom: 0;
}

/* ===================================
   Section 3
   =================================== */

.section-3 {
    padding: 0 0 100px 0;
    background-color: #f9f9f9;
}

.section-3-item {
    margin-bottom: 80px;
}

.section-3-item:last-child {
    margin-bottom: 0;
}

.section-3-title {
    font-size: 36px;
    font-weight: 700;
    color: #1E2083;
    margin-bottom: 30px;
    font-family: "メイリオ", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "ヒラギノ角ゴ ProN", "Hiragino Sans", "ヒラギノ角ゴシック", "ヒラギノ角ゴ", "Hiragino Kaku Gothic Pro", "Osaka", "ＭＳ Ｐゴシック", "MS PGothic", "Arial", "sans-serif";
}

.section-3-content {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.section-3-thumbnail {
    flex-shrink: 0;
    width: 300px;
    position: relative;
}

.section-3-thumbnail.has-video {
    cursor: pointer;
}

.section-3-thumbnail .play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.section-3-thumbnail .play-icon {
    width: 60px;
    height: 60px;
}

.section-3-thumbnail:hover .play-button-overlay .play-icon {
    transform: scale(1.1);
}

.section-3-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.section-3-thumbnail.has-video img:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.section-3-text {
    flex: 1;
    font-size: 22px;
    line-height: 1.8;
    color: #000000;
    font-family: "メイリオ", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "ヒラギノ角ゴ ProN", "Hiragino Sans", "ヒラギノ角ゴシック", "ヒラギノ角ゴ", "Hiragino Kaku Gothic Pro", "Osaka", "ＭＳ Ｐゴシック", "MS PGothic", "Arial", "sans-serif";
}

.section-3-text p {
    margin-bottom: 1em;
    margin-top: 0;
    font-family: "メイリオ", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "ヒラギノ角ゴ ProN", "Hiragino Sans", "ヒラギノ角ゴシック", "ヒラギノ角ゴ", "Hiragino Kaku Gothic Pro", "Osaka", "ＭＳ Ｐゴシック", "MS PGothic", "Arial", "sans-serif";
}

.section-3-text p:last-child {
    margin-bottom: 0;
}

/* 外部リンクボタン横並び */

.button-group-horizontal {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.button-group-horizontal .btn-external {
    min-width: 400px;
}

/* 外部リンクボタン（共通スタイル） */
.btn-external {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    color: #ffffff;
    text-decoration: none;
    border-radius: 0;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 32, 131, 0.3);
    white-space: nowrap;
    font-family: 'BestTen', -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
    border: 2px solid #1E2083;
}

.btn-external:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(30, 32, 131, 0.4);
}

.btn-external-1 {
    background: #1E2083;
    color: #ffffff;
}

.btn-external-2 {
    background: #ffffff;
    color: #1E2083;
}

/* Section 1のボタンも同じスタイル */
.section-1 .btn-external {
    /* 基本スタイルを継承 */
}

.section-1 .btn-external-1 {
    background: #1E2083;
    color: #ffffff;
    font-size: 22px;
    padding: 22px 40px;
}

.section-1 .btn-external-1:hover {
    background: #16185e;
}

.section-1 .btn-external-2 {
    background: #ffffff;
    color: #1E2083;
}

.section-1 .btn-external-2:hover {
    background: #f5f5f5;
}

/* Section 3のボタンも同じスタイル */
.section-3 .btn-external {
    /* 基本スタイルを継承 */
}

.section-3 .btn-external-1 {
    background: #1E2083;
    color: #ffffff;
    font-size: 24px;
    padding: 24px 40px;
}

.section-3 .btn-external-1:hover {
    background: #16185e;
}

.section-3 .btn-external-2 {
    background: #ffffff;
    color: #1E2083;
}

.section-3 .btn-external-2:hover {
    background: #f5f5f5;
}

/* ===================================
   YouTube動画ポップアップモーダル
   =================================== */

.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-modal.active {
    display: block;
    opacity: 1;
}

.video-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}

.video-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1200px;
    z-index: 10000;
}

.video-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 48px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    font-weight: 300;
    font-family: 'BestTen', -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
}

.video-modal-close:hover {
    transform: scale(1.2);
    color: #667eea;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 アスペクト比 */
    height: 0;
    overflow: hidden;
    background-color: #000;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.video-wrapper iframe,
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* video要素の場合、アスペクト比を保持 */
}

.for-pc{
    display: flex;
}

.for-sp{
    display: none;
}

/* ===================================
   レスポンシブ対応
   =================================== */

/* タブレット（1024px以下） */
@media screen and (max-width: 1024px) {
    .section-container {
        padding: 0 40px;
    }

    .banner-slider {
        height: 450px;
    }

    .section-1 {
        padding: 70px 0;
    }

    .section-1-content {
        gap: 50px;
    }

    .section-subtitle {
        font-size: 32px;
    }
    
    .section-1-links {
        flex-direction: column;
        align-items: flex-end;
        gap: 24px;
    }
    
    .text-links {
        gap: 24px;
    }
    
    .text-links li {
        padding-left: 32px;
    }
    
    .text-links li::before {
        font-size: 20px;
    }
    
    .text-link {
        font-size: 20px;
    }

    .section-2 {
        padding: 70px 0 56px 0;
    }

    .section-2-item {
        margin-bottom: 60px;
    }

    .section-2-title {
        font-size: 28px;
    }
    
    .video-modal-content {
        width: 92%;
        max-width: 900px;
    }
    
    .video-modal-close {
        top: -48px;
        font-size: 44px;
    }

    .section-2-thumbnail {
        width: 250px;
    }

    .section-3 {
        padding: 0 0 70px 0;
    }

    .section-3-item {
        margin-bottom: 60px;
    }

    .section-3-title {
        font-size: 28px;
    }

    .section-3-thumbnail {
        width: 250px;
    }

    .for-pc{
        display: none;
    }

    .for-sp{
        display: flex;
    }
	
	.section-1 .btn-external-1 {
        font-size: 15px;
        padding: 14px 30px;
    }
	
    .section-3 .btn-external-1 {
        font-size: 15px;
        padding: 14px 30px;
    }
}

/* スマホ（768px以下） */
@media screen and (max-width: 768px) {
    .section-container {
        padding: 0 5%;
    }

    .banner-slider {
        height: 350px;
    }

    .banner-indicators {
        bottom: 20px;
    }

    .section-1 {
        padding: 50px 0;
    }

    .section-1-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .section-1-left {
        display: flex;
        flex-direction: column;
    }
    
    /* レスポンシブ時の順序制御 */
    .section-1-left .section-subtitle {
        order: 1;
    }
    
    .section-1-left .section-text {
        order: 2;
    }
    
    .section-1-right {
        order: 3;
        margin: auto;
    }
    
    .section-1-left .section-1-links {
        order: 4;
    }

    .section-subtitle {
        font-size: 5vw;
        line-height: 1.5;
        margin-bottom: 20px;
    }

    .section-text {
        font-size: 15px;
        margin-bottom: 0px;
    }
	
	.section-text p {
		font-size: 15px;
	}

    .section-1-links {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .text-links {
        gap: 16px;
        align-self: flex-end;
    }
    
    .text-links li {
        padding-left: 28px;
    }
    
    .text-links li::before {
        font-size: 16px;
    }
    
    .text-link {
        font-size: 16px;
    }
    
    .button-group-vertical {
        align-self: center;
        align-items: center;
        width: 100%;
        max-width: 300px;
        gap: 16px;
    }

    .button-group-vertical .btn-external {
        width: 100%;
    }

    .section-2 {
        padding: 50px 0 40px 0;
    }

    .section-2-item {
        margin-bottom: 50px;
    }

    .section-2-title {
        font-size: 4vw;
        line-height: 1.5;
        margin-bottom: 20px;
    }

    .section-2-content {
        flex-direction: column;
        gap: 25px;
    }

    .section-2-thumbnail {
        width: 100%;
    }

    .section-2-text {
        font-size: 15px;
    }

    .section-3 {
        padding: 0 0 50px 0;
    }

    .section-3-item {
        margin-bottom: 50px;
    }

    .section-3-title {
        font-size: 4vw;
        line-height: 1.5;
        margin-bottom: 20px;
    }

    .section-3-content {
        flex-direction: column;
        gap: 25px;
    }

    .section-3-thumbnail {
        width: 100%;
    }

    .section-3-text {
        font-size: 15px;
    }

    .button-group-horizontal {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .button-group-horizontal .btn-external {
        width: 100%;
        max-width: 300px;
        min-width: 250px;
    }

    .play-icon {
        width: 60px;
        height: 60px;
    }
    
    .banner-video-wrapper .play-icon {
        width: 70px;
        height: 70px;
    }

    .section-2-thumbnail .play-icon {
        width: 50px;
        height: 50px;
    }

    .section-3-thumbnail .play-icon {
        width: 50px;
        height: 50px;
    }

    .video-modal-content {
        width: 95%;
        max-width: 95%;
    }

    .video-modal-close {
        top: -45px;
        font-size: 40px;
    }
    
    .video-wrapper {
        border-radius: 4px;
    }
	
	.section-1 .btn-external-1 {
        font-size: 15px;
        padding: 14px 30px;
    }
}

/* 小型スマホ（480px以下） */
@media screen and (max-width: 480px) {
    .section-container {
        padding: 0 15px;
    }

    .banner-slider {
        height: 250px;
    }

    .section-subtitle {
        font-size: 6vw;
        margin: 0;
        line-height: 1.5;
    }

    .section-2-title {
        font-size: 6vw;
        line-height: 1.5;
    }

    .section-3-title {
        font-size: 6vw;
        line-height: 1.5;
    }

    .btn-external {
        padding: 14px 30px;
        font-size: 15px;
    }

    .play-icon {
        width: 50px;
        height: 50px;
    }
    
    .banner-video-wrapper .play-icon {
        width: 60px;
        height: 60px;
    }

    .section-2-thumbnail .play-icon {
        width: 40px;
        height: 40px;
    }

    .section-3-thumbnail .play-icon {
        width: 40px;
        height: 40px;
    }

    .video-modal-close {
        top: -40px;
        font-size: 36px;
        width: 40px;
        height: 40px;
    }
    
    .video-modal-content {
        width: 98%;
        max-width: 98%;
    }
    
    .video-wrapper {
        border-radius: 4px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    }
}
