/* ========================================
   coolrash.com - Accurate Production Replica
   本番環境を正確に再現したスタイルシート
   ======================================== */

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

html {
    overflow-x: hidden;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    color: #000000;
    background-color: #FF4500; /* オレンジ背景 */
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* ========================================
   ヘッダー
   ======================================== */

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;
}

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

main {
    position: relative;
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    background-color: #FF4500; /* オレンジ背景 */
    min-height: 6000px; /* 本番環境のmain高さ */
    overflow: hidden;
}

.content-wrapper {
    position: relative;
    width: 980px;
    min-height: 6000px;
}

/* ========================================
   画像配置（本番環境の座標を使用）
   ======================================== */

/* 絶対配置の基本スタイル */
.content-wrapper img,
.content-wrapper p,
.content-wrapper h2,
.content-wrapper .video-wrapper {
    position: absolute;
}

/* すべての画像をレスポンシブに */
.content-wrapper img {
    max-width: 100%;
    height: auto;
}

/* 黄色矢印の余白 */
.yellow-arrow {
    margin-top: 30px;
    margin-bottom: 30px;
}

/* メインタイトル */
.main-title {
    font-size: 12px;
    font-weight: bold;
    color: #FFFFFF;
    text-align: center;
    width: 100%;
    left: 0 !important;
}

/* 動画ラッパー */
.video-wrapper {
    width: 367px;
    height: 466px;
    overflow: hidden;
}

.main-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 画像サイズ（本番環境の実測値） */
.img-bosyuu {
    width: 236.59px;
    height: 236.59px;
}

.img-top2 {
    width: 495px;
    height: 344px;
}

.img-muryou {
    width: 213px;
    height: 169px;
}

.img-hasen {
    width: 218px;
    height: 218px;
}

.img-shinsaku {
    width: 234px;
    height: 108px;
}

.img-doron {
    width: 333.53px;
    height: 356.98px;
}

.img-bungen {
    width: 206px;
    height: 440px;
}

.img-welcome {
    width: 750px;
    height: 200px;
}

.img-small-left,
.img-small-right {
    width: 130px;
    height: 197px;
}

.img-daikouhyou {
    width: 218.17px;
    height: 88.15px;
}

.img-fun {
    width: 472.42px;
    height: 213.66px;
}

.img-ga3 {
    width: 291px;
    height: 367px;
}

.img-hp1,
.img-hp2 {
    width: 179px;
    height: 262px;
}

.img-hide {
    width: 190px;
    height: 485px;
}

.img-sa {
    width: 266px;
    height: 233px;
}

.img-sumo-dome {
    width: 301px;
    height: 465px;
}

.img-renewal {
    width: 779px;
    height: 27px;
}

.img-kitto1 {
    width: 317px;
    height: 149px;
}

.img-kit1 {
    width: 273px;
    height: 364px;
}

.img-kitto2 {
    width: 204px;
    height: 30px;
}

.img-kit2 {
    width: 258px;
    height: 277px;
}

.img-rough {
    width: 317px;
    height: 206px;
}

.img-photo4 {
    width: 259px;
    height: 289px;
}

.img-doron-night {
    width: 549px;
    height: 297px;
}

.img-nemoto {
    width: 338px;
    height: 211px;
}

.img-kora {
    width: 197.29px;
    height: 206.10px;
}

.img-do1 {
    width: 317px;
    height: 306px;
}

.img-rough2 {
    width: 423px;
    height: 298px;
}

.img-photo42 {
    width: 415px;
    height: 311px;
}

.yoshioka-title {
    font-size: 20px;
    color: #FFD700;
    text-align: center;
    line-height: 1.4;
}

.img-yoshioka {
    width: 345px;
    height: 228px;
}

.img-yoshioka2 {
    width: 352px;
    height: 322px;
}

.img-yoshioka3 {
    width: 411px;
    height: 308px;
}

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

footer {
    background-color: #000000;
    color: #FFD700; /* 黄色テキスト（本番環境に合わせる） */
    padding: 2rem 0;
    text-align: center;
}

.footer-container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-container p {
    margin: 0.5rem 0;
    font-size: 12px;
    line-height: 1.6;
}

.footer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-logos a {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    width: 50px;
    height: 50px;
    transition: opacity 0.3s ease;
}

.footer-arrow {
    transform: rotate(180deg); /* 上向きに回転 */
}

.footer-logos a:hover .footer-logo {
    opacity: 0.8;
}

/* ========================================
   アニメーション
   ======================================== */

/* フェードインアニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* パルスアニメーション */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* 回転アニメーション */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* グロー効果 */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 0 30px rgba(255, 215, 0, 0.6);
    }
}

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

.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;
        border-radius: 0;
        display: block;
    }

    /* 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 {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .content-wrapper {
        width: 980px;
        min-height: auto;
        transform-origin: top left;
        /* スケールはJavaScriptで動的に設定 */
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .content-wrapper {
        transform: scale(0.95);
        transform-origin: top center;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 30px;
    }
}

@media (max-width: 375px) {
    .logo img {
        height: 28px;
    }
}
