/*
=======================================================================
onsen-main.css - 温泉ホテル詳細ページ メインスタイル
=======================================================================
*/

/* ========================
   CSS変数定義・基本設定
======================== */
:root {
    --onsen-primary: #8b4513;
    --onsen-accent: #cd853f;
    --onsen-warm: #daa520;
    --onsen-wood: #a0522d;
    --onsen-paper: #fff8dc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3', 'Meiryo', 'メイリオ', sans-serif;
    background: linear-gradient(135deg, #d2691e 0%, #8b4513 100%);
    min-height: 100vh;
    color: #333;
    
}

html {
    scroll-behavior: smooth;
}

/* ========================
   ヘッダー
======================== */
/*.header {
    background: linear-gradient(135deg, var(--onsen-primary) 0%, var(--onsen-wood) 100%);
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="sakura" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23ffb6c1" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23sakura)"/></svg>');
    padding: 20px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hotel-title {
    font-size: 2.2rem;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.3), 
        rgba(0, 0, 0, 0.15)
    );
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 15px 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
*/

.header {
    background: linear-gradient(135deg, var(--onsen-primary) 0%, var(--onsen-wood) 100%);
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="sakura" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23ffb6c1" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23sakura)"/></svg>');
    padding: 20px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.header-logo {
    position: absolute;
    left: 20px;
    height: 50px; /* ヘッダーの高さに合わせて調整 */
    width: auto;
}

.hotel-title {
    font-size: 1.8rem;
    color: white;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* スマホ対応 */
@media (max-width: 768px) {
    .header-content {
        padding: 0 15px;
    }
    
    .header-logo {
        left: 15px;
        height: 40px;
    }
    
    .hotel-title {
        font-size: 1.4rem;
        padding-left: 60px; /* ロゴとのスペース確保 */
    }
}
/********ヘッダーロゴ配置**************/


.user-status {
    display: flex;
    align-items: center;
    gap: 15px;
}

.badge-display {
    background: linear-gradient(45deg, var(--onsen-warm), #ffd700);
    color: var(--onsen-primary);
    padding: 10px 18px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 0.9em;
    box-shadow: 0 3px 10px rgba(218, 165, 32, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.back-button {
    background: rgba(255, 248, 220, 0.9);
    color: var(--onsen-primary);
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: bold;
    transition: all 0.3s;
}

.back-button:hover {
    background: var(--onsen-paper);
    text-decoration: none;
    color: var(--onsen-primary);
}

/* ========================
   メインコンテナ
======================== */

.main-container {
  display: grid;
  /*grid-template-columns: 1fr 280px;*/
  grid-template-columns: 1fr 300px;
  grid-template-areas:
    "main-content"
    "left-contents" 
    "sidebar" /*　ここの修正 */
  gap: 50px;
  align-items: start;
  margin: 2px 10px; /*両サイドのマージン設定*/
}


/* PC用 
.main-container {
  grid-template-areas:
    "main-content sidebar"
    "left-contents sidebar";
}*/



/* ========================
   レフトコンテンツ
======================== */
.left-contents{
 margin:4px;

}


/* ========================
   ホテル情報サマリー
======================== */
.hotel-summary {
    background: rgba(255, 248, 220, 0.95);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    border: 2px solid var(--onsen-accent);
    grid-column: 1 / -1;
}

.hotel-basic-info {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 25px;
    align-items: center;
}

.hotel-details h2 {
    color: var(--onsen-primary);
    margin-bottom: 12px;
    font-size: 2em;
    border-bottom: 3px solid var(--onsen-warm);
    padding-bottom: 8px;
}

.hotel-meta {
    color: var(--onsen-wood);
    margin-bottom: 18px;
    font-size: 1.1em;
    font-weight: bold;
}

.quick-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.quick-link {
    background: linear-gradient(45deg, var(--onsen-accent), var(--onsen-warm));
    color: white;
    padding: 10px 18px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 3px 10px rgba(139, 69, 19, 0.3);
}

.quick-link:hover {
    transform: translateY(-2px);
    text-decoration: none;
    color: white;
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.4);
}

.hotel-image {
    width: 100%;
    height: 200px;
   /* background: url('https://naviannounce.com/inclusive/img/inclusive-hotel-base2.jpg') center/cover;*/
    background: url('https://naviannounce.com/jp/assets/image/inclusive-hotel-base2.jpg') center/cover;
    border-radius: 12px;
    border: 3px solid var(--onsen-accent);
}

/* ========================
   YouTube動画セクション
======================== */
.youtube-section {
    background: rgba(255, 248, 220, 0.95);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    border: 2px solid var(--onsen-accent);

}

.youtube-header {
    margin-bottom: 20px;
}

.youtube-title {
    color: var(--onsen-primary);
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 2px;
}

.youtube-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2px;
    border: 2px solid var(--onsen-accent);
}

.youtube-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.youtube-fallback {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    padding: 40px;
    text-align: center;
    border-radius: 12px;
    border: 3px solid var(--onsen-accent);
}

.youtube-stats {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
    justify-content: center;
}

.stat-item {
    background: linear-gradient(135deg, var(--onsen-accent), var(--onsen-warm));
    color: white;
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
    box-shadow: 0 3px 10px rgba(139, 69, 19, 0.3);
}

/* YouTube ボタン */
.youtube-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    padding: 0 10px;
}

.youtube-btn {
    background: linear-gradient(45deg, #ff0000, #cc0000);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    border: none;
    font-size: 0.9em;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 3px 10px rgba(255, 0, 0, 0.3);
    cursor: pointer;
    font-family: inherit;
    min-width: 140px;
    text-align: center;
    flex: 0 0 auto;
}

.youtube-btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
    color: white;
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.4);
}

.youtube-qa {
    background: linear-gradient(45deg, var(--onsen-primary), var(--onsen-accent)) !important;
    box-shadow: 0 3px 10px rgba(139, 69, 19, 0.3) !important;
}

.youtube-qa:hover {
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.4) !important;
}

/* チャンネル情報 */
.channel-info-section {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    border: 2px solid var(--onsen-accent);
}

.channel-info-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 15px;
    align-items: center;
}

.channel-subscribe-request{
    margin:15px 10px;    
}

.channel-avatar {
    font-size: 2em;
}

.channel-details {
    min-width: 0;
}

.channel-subscribe {
    flex-shrink: 0;
}


/**Youtubeのタイトルを小さくする */

.youtube-title-small {
    font-size: 14px;
    font-weight:bold;
    color: #5a3109;
    margin-top:30px;
    margin-bottom: 0.5rem;
    padding: 10px 10px 10px 20px;
    border:1px solid rgb(214, 138, 30);
    border-radius:10px;
    background:#fff;
}



   .youtube-lazy-container {
        position: relative;
        width: 100%;
        max-width: 560px;
        margin: 0 auto;
        cursor: pointer;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        transition: transform 0.2s, box-shadow 0.2s;
    }

    .youtube-lazy-container:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    }

    .youtube-thumbnail {
        position: relative;
        width: 100%;
        aspect-ratio: 16/9;
        background: #000;
    }

    .youtube-thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .youtube-play-button {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 70px;
        height: 50px;
        background: rgba(255, 0, 0, 0.9);
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s;
    }

    .youtube-lazy-container:hover .youtube-play-button {
        background: #ff0000;
        transform: translate(-50%, -50%) scale(1.1);
    }

    .play-icon {
        color: white;
        font-size: 20px;
        margin-left: 3px;
    }
/*
    .youtube-title {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(transparent, rgba(0,0,0,0.8));
        color: white;
        padding: 30px 15px 15px;
        font-size: 0.9rem;
        font-weight: 500;
    }
*/
    /* 動画読み込み後のスタイル */
    .youtube-lazy-container.loaded {
        aspect-ratio: 16/9;
    }

    .youtube-lazy-container.loaded iframe {
        width: 100%;
        height: 100%;
        border: none;
        border-radius: 12px;
    }

    /* レスポンシブ対応 */
    @media (max-width: 768px) {
        .youtube-lazy-container {
            max-width: 100%;
            border-radius: 10px;
                    color:#fff;
        }
        
        .youtube-play-button {
            width: 60px;
            height: 42px;
        }
        
        .play-icon {
            font-size: 18px;
        }
        
        .youtube-title {
            font-size: 1.1rem;
            border-radius: 0px 0px 0 0;
            padding: 5px 5px 5px 5px;
            /*background:rgb(229, 207, 154);*/
            color:rgb(43, 31, 2);

        }
    }


/* responsive に入れる? */

.ad-container.mobile-form {
  margin: 35px 0 20px 0;
  background: rgba(0,0,0,0.02);
  border-radius: 8px;
  display: none;
}

@media (max-width: 768px) {
  .ad-container.mobile-form {
    display: flex;
  }
}



/* ========================
   Google Maps セクション
======================== */
.maps-section {
    grid-column: 1;
    background: rgba(255, 248, 220, 0.95);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    border: 2px solid var(--onsen-accent);
}

.maps-header {
    margin-bottom: 20px;
}

.maps-title {
    color: var(--onsen-primary);
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 8px;
}

.maps-container {
    margin-bottom: 20px;
}

.map-embed-container {
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid var(--onsen-accent);
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.2);
}

.map-embed-container iframe {
    width: 100%;
    height: 400px;
    border: none;
    display: block;
}

.map-image-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid var(--onsen-accent);
    transition: all 0.3s ease;
}

.map-image-container:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.3);
}

.map-image {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.3s ease;
}

.map-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 20px;
    text-align: center;
}

.map-overlay-text {
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.map-fallback {
    background: linear-gradient(135deg, #f0f8ff, #e6f3ff);
    border: 3px solid var(--onsen-accent);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-fallback-content h3 {
    color: var(--onsen-primary);
    margin-bottom: 20px;
    font-size: 1.5em;
}

.map-fallback-content p {
    margin-bottom: 10px;
    color: #444;
}

.maps-buttons {
    /*display: flex;*/
    display:grid;
    gap: 8px; /* 12px → 8px に縮小 */
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 25px;
    /* 親要素の幅に収まるように */
    max-width: 100%;
    overflow: hidden;
    grid-row: auto;  
}

.map-btn {
    background: linear-gradient(45deg, var(--onsen-accent), var(--onsen-warm));
    color: white;
    border: none;
    margin-top:10px;
    padding: 10px 16px; /* 12px 20px → 10px 16px */
    border-radius: 25px;
    font-size: 0.85em; /* 0.9em → 0.85em */
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 3px 10px rgba(139, 69, 19, 0.3);
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    
    /* レスポンシブ対応 */
    flex: 1 1 auto; /* フレックスアイテムとして伸縮 */
    min-width: 250px; /* 140px → 100px */
    max-width: 380px; /* 最大幅を制限 */
    text-align: center;
    
    /* テキストの折り返し防止 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.map-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.4);
}


.access-info {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 20px;
    border: 2px solid var(--onsen-accent);
}

.access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.access-item {
    background: #fffef7;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--onsen-warm);
}

.access-item strong {
    color: var(--onsen-primary);
    display: block;
    margin-bottom: 8px;
}

/* ========================
   Q&Aメインエリア
======================== */
.qa-main {
    grid-column: 1;
    background: rgba(255, 248, 220, 0.95);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    overflow: hidden;
    border: 2px solid var(--onsen-accent);
}

.qa-header {
    background: linear-gradient(45deg, var(--onsen-primary), var(--onsen-accent));
    color: var(--onsen-paper);
    padding: 25px;
    position: relative;
}

.qa-header::before {
    content: '♨️';
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 2.5em;
    opacity: 0.3;
}

.qa-title {
    font-size: 1.6em;
    font-weight: bold;
    margin-bottom: 10px;
}

.qa-subtitle {
    opacity: 0.9;
    font-size: 1.05em;
}

/* メイン投稿タイプボタン */
.post-type-buttons {
    background: var(--onsen-paper, #fff8dc);
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    border-bottom: 3px solid var(--onsen-accent, #cd853f);
}

.button-row-1 {
    display: flex;
    gap: 18px;
    justify-content: center;
    width: 100%;
    max-width: 600px;
}

.button-row-2 {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 350px;
}

.post-type-btn {
    flex: 1;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 3px solid var(--onsen-accent, #cd853f);
    border-radius: 20px;
    padding: 12px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--onsen-primary, #8b4513);
    font-weight: bold;
    font-size: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-height: 60px;
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.2);
}

.post-type-btn:hover {
    background: linear-gradient(135deg, var(--onsen-accent, #cd853f), var(--onsen-warm, #daa520));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 69, 19, 0.3);
}

.post-type-btn.active {
    background: linear-gradient(135deg, var(--onsen-primary, #8b4513), var(--onsen-accent, #cd853f));
    color: white;
    border-color: var(--onsen-warm, #daa520);
    box-shadow: 0 6px 18px rgba(139, 69, 19, 0.4);
}

.btn-icon {
    font-size: 1.5rem;
}

.btn-text {
    font-size: 0.9rem;
    line-height: 1.2;
}

/* モバイル対応 */
@media (max-width: 480px) {
    .maps-buttons {
        flex-direction: column; /* 縦並びに変更 */
        align-items: center;
        gap: 10px;
    }
    
    .map-btn {
        width: 100%;
        max-width: 250px;
        min-width: auto;
    }
}

@media (max-width: 768px) and (min-width: 481px) {
    .maps-buttons {
        gap: 6px;
    }
    
    .map-btn {
        font-size: 0.8em;
        padding: 8px 12px;
        min-width: 90px;
    }
}


/* 質問・相談ボタンの特別デザイン */
.consultation-special {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52) !important;
    color: white !important;
    border-color: #ff4757 !important;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3) !important;
    font-weight: bold !important;
    position: relative !important;
}

.consultation-special:hover {
    background: linear-gradient(135deg, #ee5a52, #ff4757) !important;
    color: white !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4) !important;
}

.consultation-special.active {
    background: linear-gradient(135deg, #ff4757, #c44569) !important;
    color: white !important;
    border-color: #ffa502 !important;
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5) !important;
}

.consultation-special::after {
    content: "NEW";
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ffa502;
    color: white;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
    animation: pulse 2s infinite;
}

/***************Grid 指定要注意 *************/
/* サブカテゴリタブ */
.sub-category-tabs {
    display: flex;
    background: #f5f5dc;
    padding: 10px;
    overflow-x: auto;
    border-bottom: 2px solid var(--onsen-accent, #cd853f);
    justify-content: center;
    gap: 5px;
}

.sub-tab {
    background: white;
    border: 2px solid var(--onsen-accent, #cd853f);
    padding: 12px 18px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--onsen-primary, #8b4513);
    transition: all 0.3s;
    white-space: nowrap;
    border-radius: 15px;
    min-width: 80px;
    text-align: center;
}

.sub-tab.active {
    background: linear-gradient(135deg, var(--onsen-accent, #cd853f), var(--onsen-warm, #daa520));
    color: white;
    border-color: var(--onsen-warm, #daa520);
}

.sub-tab:hover {
    background: linear-gradient(135deg, rgba(160, 82, 45, 0.1), rgba(205, 133, 63, 0.1));
    color: var(--onsen-accent, #cd853f);
}

/* カテゴリタブ */
.category-tabs {
    display: flex;
    background: var(--onsen-paper);
    padding: 0;
    overflow-x: auto;
    border-bottom: 3px solid var(--onsen-accent);
}

.category-tab {
    background: none;
    border: none;
    padding: 18px 22px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: bold;
    color: var(--onsen-primary);
    transition: all 0.3s;
    white-space: nowrap;
    border-bottom: 4px solid transparent;
}

.category-tab.active {
    color: var(--onsen-warm);
    border-bottom-color: var(--onsen-warm);
    background: linear-gradient(to bottom, transparent, rgba(218, 165, 32, 0.1));
}

.category-tab:hover {
    background: rgba(139, 69, 19, 0.1);
    color: var(--onsen-accent);
}

/* 投稿フォーム */
.post-form {
    padding: 30px;
    background: var(--onsen-paper);
    border-bottom: 2px solid rgba(139, 69, 19, 0.2);
}

.post-form.highlight {
    background: linear-gradient(135deg, #f4e4bc, #ede0c8) !important;
    border: 3px solid var(--onsen-accent) !important;
    animation: formGlow 1s ease-in-out;
}

.suggested-questions {
    margin-bottom: 25px;
}

.suggested-questions h4 {
    color: var(--onsen-primary);
    margin-bottom: 18px;
    font-size: 1.2em;
    border-bottom: 2px solid var(--onsen-accent);
    padding-bottom: 8px;
}

.question-suggestion {
    background: linear-gradient(to right, #f5f5dc, #fff8dc);
    border: 2px solid var(--onsen-accent);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--onsen-primary);
    font-size: 0.95em;
    position: relative;
    overflow: hidden;
}

.question-suggestion:hover {
    background: linear-gradient(to right, var(--onsen-warm), #ffd700);
    color: white;
    transform: translateX(8px);
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.3);
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: var(--onsen-primary);
    font-size: 1.1em;
}

.form-textarea {
    width: 100%;
    min-height: 140px;
    padding: 18px;
    border: 3px solid var(--onsen-accent);
    border-radius: 12px;
    font-size: 1em;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s;
    background: #fffef7;
}

.form-textarea:focus {
    outline: none;
    border-color: var(--onsen-warm);
    box-shadow: 0 0 10px rgba(218, 165, 32, 0.3);
}

.submit-button {
    background: linear-gradient(45deg, var(--onsen-primary), var(--onsen-accent));
    color: white;
    border: none;
    padding: 15px 35px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.1em;
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.4);
}

/* PC専用調整 */
@media (min-width: 768px) {
    .submit-button {
        display: block;
        margin: 20px auto;
        min-width: 300px;
        max-width: 400px;
        width: 80%;
    }
}

.submit-button:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(139, 69, 19, 0.5);
}

.submit-button:disabled {
    background: #999;
    cursor: not-allowed;
    transform: none;
}

/* Q&A表示 */
.qa-list {
    padding: 25px;
    background: var(--onsen-paper);
    /*grid-row: 3;*/
}

.qa-item {
    border-radius: 12px;
    margin: 10px 6px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.qa-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.qa-question {
    background: linear-gradient(135deg, #8b4513, #cd853f);
    color: white;
    padding: 18px 25px;
    font-weight: bold;
    font-size: 1.05em;
    margin: 0 ;
    border-radius: 12px 12px 0 0;
}

/* ホバー効果 */
.qa-item:hover .qa-question {
    opacity: 0.9 !important;
    transform: translateY(-1px) !important;
}

.qa-answer {
    background: white;
    padding: 20px;
    color: #4a5568;
    line-height: 1.6;
}

.qa-content {
    background: white;
    padding: 20px;
    color: #4a5568;
    line-height: 1.6;
}

.qa-meta {
    background: #f8f6f0;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #718096;
}

.button-row {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center; /*参考になったボタン配置*/
}

/* カテゴリ別ヘッダー色分け */
.qa-item.onsen .qa-header {
    background: linear-gradient(135deg, #d63031 0%, #b71c1c 100%);
}

.qa-item.food .qa-header {
    background: linear-gradient(135deg, #00b894 0%, #00695c 100%);
}

.qa-item.room .qa-header {
    background: linear-gradient(135deg, #0984e3 0%, #1565c0 100%);
}

.qa-item.sightseeing .qa-header {
    background: linear-gradient(135deg, #e17055 0%, #bf360c 100%);
}

.qa-item.video .qa-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.qa-item.experience .qa-header {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.category-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    background: rgba(255,255,255,0.2);
    margin-right: 8px;
}

/* 質問・相談専用カードスタイル */
.qa-item.consultation-card .qa-header {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%) !important;
    position: relative;
}

.qa-item.consultation-card::before {
    content: "📢 質問・相談";
    position: absolute;
    top: -12px;
    left: 20px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    padding: 4px 15px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    z-index: 10;
}

.qa-item.consultation-card .qa-content {
    background: #fffcfc;
    border-left: 4px solid #ff6b6b;
}

.qa-item.consultation-card .qa-meta {
    background: linear-gradient(135deg, #ffe8e8, #ffd6d6);
    border-top: 2px solid #ff6b6b;
}

.answer-btn {
    background: linear-gradient(90deg, #a22904, #f59577);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    margin:10px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    min-width: 180px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.answer-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.helpful-btn {
    /*background: none;*/
    background: var(--onsen-accent);
    color:rgb(255, 253, 240);
    font-weight: bold;
    border: 1px solid #cbd5e0;
    border-radius: 20px;
    margin: 10px 0; /* 上下10px */
    padding: 5px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.helpful-btn:hover:not(:disabled) {
    background: #f7fafc;
    border-color: #a0aec0;
}

/* ========================
   サイドバー
======================== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
    grid-row: 2 / 4;
    grid-column: 2;
   /* margin:0px 10px 5px 10px; /*PC sidebarのマージン*/
    margin:0px 5px 5px 5px; /*PC sidebarのマージン*/
}
/*
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
    grid-row: 2 / 4;
    grid-column: 2;
}
*/
.sidebar-card {
    background: rgba(255, 248, 220, 0.95);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    border: 2px solid var(--onsen-accent);
    grid-column: 2;
}

.card-title {
    font-size: 1.3em;
    font-weight: bold;
    color: var(--onsen-primary);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--onsen-warm);
    padding-bottom: 10px;
}

/* バッジ進行状況 */
.badge-progress {
    text-align: center;
}

.current-badge {
    font-size: 3.5em;
    margin-bottom: 15px;
    filter: drop-shadow(0 3px 6px rgba(139, 69, 19, 0.3));
}

.progress-bar {
    background: rgba(139, 69, 19, 0.2);
    height: 12px;
    border-radius: 6px;
    margin: 20px 0;
    overflow: hidden;
    border: 1px solid var(--onsen-accent);
}

.progress-fill {
    background: linear-gradient(90deg, var(--onsen-accent), var(--onsen-warm));
    height: 100%;
    transition: width 0.8s ease;
    box-shadow: 0 0 10px rgba(218, 165, 32, 0.5);
}

/* 統計情報 */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.stat-item-sidebar {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #f5f5dc, white);
    border-radius: 12px;
    border: 2px solid var(--onsen-accent);
}

.stat-number {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--onsen-warm);
    text-shadow: 1px 1px 2px rgba(139, 69, 19, 0.3);
}

.stat-label {
    font-size: 0.9em;
    color: var(--onsen-primary);
    margin-top: 8px;
    font-weight: bold;
}

/* ========================
   詳細情報セクション
======================== */
.detail-info {
    background: rgba(255, 248, 220, 0.95);
    border-radius: 15px;
    padding: 25px;
    margin-top: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    border: 2px solid var(--onsen-accent);
    grid-column: 1 / -1;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.detail-section {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid var(--onsen-accent);
}

.section-title {
    color: var(--onsen-primary);
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--onsen-warm);
    padding-bottom: 8px;
}

/* ========================
   成功メッセージ
======================== */
.success-popup {
    position: fixed;
    top: 100px;
    right: 20px;
    background: linear-gradient(45deg, var(--onsen-warm), #ffd700);
    color: var(--onsen-primary);
    padding: 20px 30px;
    border-radius: 15px;
    font-weight: bold;
    transform: translateX(350px);
    transition: all 0.5s ease;
    z-index: 1001;
    box-shadow: 0 8px 25px rgba(218, 165, 32, 0.4);
    border: 2px solid white;
}

.success-popup.show {
    transform: translateX(0);
}

/* ========================
   アニメーション
======================== */
@keyframes onsenBubble {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes slideIn {
    0% { 
        opacity: 0; 
        transform: translateX(-20px); 
    }
    100% { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes formGlow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(160, 82, 45, 0.3);
    }
    50% {
        box-shadow: 0 0 25px rgba(160, 82, 45, 0.6);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.badge-earned {
    animation: onsenBubble 1s ease-in-out;
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(139, 69, 19, 0.3);
    border-top: 3px solid var(--onsen-warm);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ==============================================
   SNS風回答レイアウト追加
============================================== */

/* 自分の投稿は右寄せ */
.answer-item.my-post {
    margin-left: 40px;
    margin-right: 10px;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-left: none;
    border-right: 4px solid var(--onsen-accent);
    position: relative;
}

.answer-item.my-post::before {
    content: "📝";
    position: absolute;
    right: -15px;
    top: 10px;
    background: var(--onsen-accent);
    color: white;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* 他の人の投稿は左寄せ */
.answer-item.other-post {
    margin-right: 40px;
    margin-left: 10px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-left: 4px solid #28a745;
}

/* ハイライトアニメーション */
@keyframes highlight {
    0% { background: #fff3cd; transform: scale(1.02); }
    100% { background: inherit; transform: scale(1); }
}


/* 回答表示セクション */
.answers-section {
    margin: 10px 10px 10px 30px;
    padding: 15px 15px 20px 15px;
    background-color:rgb(249, 247, 226);
    border-radius: 8px;
}

.answers-section h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
}


/* 基本の answer-item スタイル */
.answer-item {
    padding: 15px;
    margin: 10px 0;
    border: 1px solid #4a5568;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.answer-item:hover {
    transform: translateY(-2px);
}

.answer-content {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #333;
}

.answer-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
    color: #666;
}



/* カテゴリ別自動テーマ適用 */
body[data-category="art_hotel"] {
    --onsen-primary: #8e44ad !important;
    --onsen-accent: #e74c3c !important;
    --onsen-warm: #f39c12 !important;
    --onsen-wood: #9b59b6 !important;
    --onsen-paper: #ecf0f1 !important;
}

body[data-category="fisher"] {
    --onsen-primary: #3498db !important;
    --onsen-accent: #2980b9 !important;
    --onsen-warm: #f39c12 !important;
    --onsen-wood: #16a085 !important;
    --onsen-paper: #ecf0f1 !important;
}

/* 追加：jp_modern */
body[data-category="jp_modern"] {
    --onsen-primary: #2C2C2C !important;
    --onsen-accent: #808080 !important;
    --onsen-warm: #4A4A4A !important;
    --onsen-wood: #333333 !important;
    --onsen-paper: #F5F5F5 !important;
}


/* jp_modernテーマのYouTubeセクション */
body[data-category="jp_modern"] .youtube-section {
    background: #000000 !important;
    color: #ffffff !important;
    border: 2px solid #ffeb3b !important; /* 黄色ボーダー */
    box-shadow: 0 8px 25px rgba(255, 235, 59, 0.3) !important; /* 黄色の影 */
}

/* YouTubeセクション内のテキストを白に */
body[data-category="jp_modern"] .youtube-section h3,
body[data-category="jp_modern"] .youtube-section h4,
body[data-category="jp_modern"] .youtube-section p,
body[data-category="jp_modern"] .youtube-section span,
body[data-category="jp_modern"] .youtube-section div {
    color: #b0b0b0!important; /*Youtubeセクション内部のテキスト色指定*/
}

/* アクセント要素（リンク、ボタンなど）を黄色に */
body[data-category="jp_modern"] .youtube-section a,
body[data-category="jp_modern"] .youtube-section button {
    color: #ffeb3b !important;
    border-color: #ffeb3b !important;
}

/* YouTubeタイトルを特に目立たせる */
body[data-category="jp_modern"] .youtube-section .video-title {
    color: #ffeb3b !important;
    font-weight: bold;
}

/* jp_modernテーマのYouTube関連要素（クリーン版） */

/* YouTubeタイトル部分 */
body[data-category="jp_modern"] .youtube-title-small {
    background: #1a1a1a;
    color: #939393;
    margin-top:30px;
    border: 1px solid #488ec5;
}

/* YouTuber情報セクション */
body[data-category="jp_modern"] .youtuber-info,
body[data-category="jp_modern"] .youtuber-section {
    background: #000000;
    color: #ffffff;
}

/* YouTuber名 */
body[data-category="jp_modern"] .youtuber-name {
    color: #ffeb3b;
    font-weight: bold;
}

/* YouTuber説明文 */
body[data-category="jp_modern"] .youtuber-description,
body[data-category="jp_modern"] .youtuber-intro {
    color: #cccccc;
}

/* YouTubeチャンネル情報全体 */
body[data-category="jp_modern"] .channel-info,
body[data-category="jp_modern"] .youtube-channel-section {
    background: #1a1a1a;
    color: #ffffff;
    border: 1px solid #333333;
}

/* アイコン・アバター */
body[data-category="jp_modern"] .youtuber-avatar,
body[data-category="jp_modern"] .channel-icon {
    border: 2px solid #ffeb3b;
}

/* YouTube section内の一般的な要素 */
body[data-category="jp_modern"] .youtube-section h3,
body[data-category="jp_modern"] .youtube-section h4,
body[data-category="jp_modern"] .youtube-section p,
body[data-category="jp_modern"] .youtube-section span {
    color: #ffffff;
}

/* リンクとボタン */
body[data-category="jp_modern"] .youtube-section a {
    color: #ffeb3b;
}

body[data-category="jp_modern"] .youtube-section button {
    background: #333333;
    color: #ffffff;
    border: 1px solid #ffeb3b;
}

/* YouTuberチャンネル情報セクション */
body[data-category="jp_modern"] .channel-info-section {
    background: #212121;
    color: #434343;
    border: 2px solid #ffeb3b;
}

/* jp_modernテーマのyoutube-containerのボーダーを消す */
body[data-category="jp_modern"] .youtube-container {
    border: none;
}

/* チャンネル情報内のテキスト要素 */
body[data-category="jp_modern"] .channel-info-section h3,
body[data-category="jp_modern"] .channel-info-section h4,
body[data-category="jp_modern"] .channel-info-section p,
body[data-category="jp_modern"] .channel-info-section span {
    color: #ffffff;
}

/* YouTuber名を黄色に */
body[data-category="jp_modern"] .channel-info-section .youtuber-name,
body[data-category="jp_modern"] .channel-info-section .channel-name {
    color: #ffeb3b;
}

/* 説明文をライトグレーに */
body[data-category="jp_modern"] .channel-info-section .description,
body[data-category="jp_modern"] .channel-info-section .channel-description {
    color: #cccccc;
}

/* アバターにボーダー */
body[data-category="jp_modern"] .channel-info-section .avatar,
body[data-category="jp_modern"] .channel-info-section .youtuber-avatar {
    border: 2px solid #ffeb3b;
}

