/* ========================================
   coolrash.com - About Page Styles
   トーキョースノードームとは ページ専用CSS
   ======================================== */

/* リセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    height: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    color: #FFFFFF;
    background-color: #FF4500; /* オレンジ背景（トップページと同じ） */
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ========================================
   ヘッダー（index_accurateと同じ）
   ======================================== */

header {
    position: relative;
    width: 100%;
    background-color: #3aa5ff;
    z-index: 1000;
    padding: 0.75rem 0;
}

.header-container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.logo img {
    height: 45px;
    width: auto;
}

.header-container nav {
    width: 100%;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 0;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
}

nav li {
    display: inline-block;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    display: block;
    white-space: nowrap;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 6px;
    transition: background-color 0.15s ease;
}

nav a:hover {
    background-color: #0b49a6;
}

nav a.active {
    background-color: #0b1a6a;
}

/* ドロップダウンメニュー（PC時） */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #0b49a6;
    min-width: 250px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 1001;
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    display: block;
}

.dropdown-menu a {
    padding: 0.8rem 1.2rem;
    border-radius: 0;
    display: block;
    color: #ffffff;
    text-decoration: none;
}

.dropdown-menu li:first-child a {
    border-radius: 4px 4px 0 0;
}

.dropdown-menu li:last-child a {
    border-radius: 0 0 4px 4px;
}

.dropdown-menu a:hover {
    background-color: #0b1a6a;
}

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

/* style_accurate.cssのmain設定を上書き */
main {
    min-height: auto !important; /* style_accurate.cssのmin-height: 6000pxを上書き - コンテンツに応じた高さ */
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
    padding: 3rem 1rem !important;
    background-color: #FF4500 !important; /* オレンジ背景（トップページと同じ） */
    position: relative !important;
    max-width: 100% !important;
    width: 100% !important;
    overflow: visible !important;
    margin: 0 !important; /* 全幅にするためmargin: 0 */
    flex: 1; /* フッターを最下部に配置するために追加 */
}

.content-wrapper {
    max-width: 800px;
    width: 100% !important; /* style_accurate.cssのwidth: 980pxを上書き - 全幅に */
    text-align: center;
    /* style_accurate.cssの絶対配置をリセット */
    min-height: auto !important;
    position: relative !important; /* style_accurate.cssのposition: relativeを上書き */
    transform: none !important; /* style_accurate.cssのscaleを無効化 */
    transform-origin: unset !important; /* transform-originをリセット */
    height: auto !important; /* heightをリセット */
}

/* style_accurate.cssの絶対配置を上書き - 超強力なセレクタ */
main .content-wrapper * {
    position: static !important;
    left: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
}

body main .content-wrapper img {
    position: static !important;
    left: auto !important;
    top: auto !important;
}

body main .content-wrapper .collection-image {
    position: static !important;
    left: auto !important;
    top: auto !important;
}

body main .content-wrapper .collection-image-wrapper {
    position: static !important;
    left: auto !important;
    top: auto !important;
    display: flex !important;
}

body main .content-wrapper .description {
    position: static !important;
    left: auto !important;
    top: auto !important;
    display: block !important;
}

/* ページタイトル */
.page-title {
    font-size: 32px;
    font-weight: 400;
    color: #FFD700; /* 黄色 */
    margin-bottom: 2rem;
    text-align: left;
}

/* コレクション画像 */
.collection-image-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    margin-top: 1rem;
    clear: both; /* 前の要素の下に配置 */
}

.collection-image {
    width: 350px;
    height: 291px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block; /* ブロック要素として確実に配置 */
}

.collection-image:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

/* 説明テキスト */
.description {
    text-align: left;
    line-height: 1.8;
    margin-top: 2rem;
    clear: both; /* 画像の下に確実に配置 */
}

.description p {
    margin-bottom: 1.5rem;
    font-size: 16px;
    color: #FFFFFF;
}

/* ========================================
   フッター
   ======================================== */

/* フッターはstyle_accurate.cssの設定を使用（他のページと同じ） */
footer {
    margin-top: auto; /* フッターを最下部に配置 */
}

/* ========================================
   ハンバーガーメニュー
   ======================================== */

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
}

.mobile-menu-open .hamburger span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-open .hamburger span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-open .hamburger span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

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

@media (max-width: 768px) {
    /* ヘッダーをモバイル対応 */
    .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .logo {
        margin-bottom: 0;
    }

    .logo img {
        height: 35px;
    }

    .hamburger {
        display: flex;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #3aa5ff;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .mobile-menu-open nav {
        max-height: 700px;
    }

    nav ul {
        flex-direction: column;
        padding: 1rem 0;
    }

    nav li {
        width: 100%;
        text-align: center;
    }

    nav a {
        padding: 12.8px !important;
        border-radius: 0;
        display: block;
        /* font-sizeはstyle_accurate.cssのデフォルト（0.95rem）を使用 */
        /* line-heightもstyle_accurate.cssと同じ（ブラウザのデフォルト）を使用 */
    }

    /* Hide the "その他MENU→" toggle link on mobile */
    .dropdown-toggle {
        display: none;
    }

    /* Show dropdown menu as regular menu items on mobile */
    .dropdown-menu {
        display: block !important;
        position: static;
        background-color: transparent;
        box-shadow: none;
        min-width: auto;
    }

    .dropdown-menu li {
        width: 100%;
        text-align: center;
    }

    .dropdown-menu a {
        padding: 12.8px;
        border-radius: 0;
        display: block;
        font-size: 0.85rem;
    }

    /* メインコンテンツ: モバイル */
    main {
        min-height: auto !important; /* style_accurate.cssのmin-height: 6000pxを上書き */
        padding: 2rem 1rem !important;
        position: relative !important; /* 絶対配置をリセット */
        max-width: 100% !important;
        width: 100% !important;
        overflow: visible !important;
        margin: 0 !important; /* 全幅にするためmargin: 0 */
        display: block !important; /* flexを解除して全幅表示 */
        justify-content: unset !important;
        align-items: unset !important;
    }

    .content-wrapper {
        min-height: auto !important; /* style_accurate.cssのmin-height: 6000pxを上書き */
        width: 100% !important; /* style_accurate.cssのwidth: 980pxを上書き - 全幅に */
        max-width: 100% !important; /* max-width: 800pxを上書き - 全幅に */
        position: relative !important;
        margin: 0 auto !important; /* 中央配置 */
        transform: none !important; /* style_accurate.cssのscaleを無効化 */
        transform-origin: unset !important; /* transform-originをリセット */
        height: auto !important; /* heightをリセット */
    }

    .page-title {
        font-size: 24px;
    }

    .collection-image {
        width: 100%;
        max-width: 350px;
        height: auto;
    }

    /* フッターはstyle_accurate.cssの設定を使用（他のページと同じ） */
}

@media (max-width: 480px) {
    .page-title {
        font-size: 20px;
    }

    .description p {
        font-size: 14px;
    }

    nav a {
        padding: 12.8px !important;
        /* font-sizeはstyle_accurate.cssのデフォルトを使用 */
    }
}

@media (max-width: 375px) {
    .page-title {
        font-size: 18px;
    }

    .description p {
        font-size: 13px;
    }

    main {
        padding: 1.5rem 0.5rem !important;
        min-height: auto !important; /* style_accurate.cssのmin-height: 6000pxを上書き */
        max-width: 100% !important;
        width: 100% !important;
        overflow: visible !important;
        margin: 0 !important; /* 全幅にするためmargin: 0 */
        display: block !important; /* flexを解除して全幅表示 */
        justify-content: unset !important;
        align-items: unset !important;
    }

    .content-wrapper {
        width: 100% !important; /* style_accurate.cssのwidth: 980pxを上書き - 全幅に */
        max-width: 100% !important; /* max-width: 800pxを上書き - 全幅に */
        position: relative !important;
        margin: 0 auto !important; /* 中央配置 */
        transform: none !important; /* style_accurate.cssのscaleを無効化 */
        transform-origin: unset !important; /* transform-originをリセット */
        height: auto !important; /* heightをリセット */
    }

}
