/* Theme Name: Hashizaka IT Research Institute Theme
Theme URI: https://hashizaka.net/
Description: Custom Child Theme for Hashizaka Information Technology Research Institute based on Twenty Twenty-Four
Author: Your Name
Author URI: https://hashizaka.net/
Template: twentytwentyfour
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hashizaka-it-research
*/

/* 親テーマのスタイルを継承 */
@import url("../twentytwentyfour/style.css");

/* カスタムスタイルをここに追加 */

/* ヘッダーのスタイル調整 */
.site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    background: rgba(0, 0, 0, 0.9) !important;
    color: white !important;
    padding: 1rem 2rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    opacity: 1 !important;
    visibility: visible !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.3s ease !important;
}

.site-header.visible {
    background-color: rgba(0, 0, 0, 0.95) !important;
}

.site-branding {
    display: flex !important;
    align-items: center !important;
}

.site-title {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
}

.site-title a {
    color: white !important;
    text-decoration: none !important;
}

.site-description {
    display: none;
}

.main-navigation {
    display: flex !important;
    align-items: center !important;
}

.main-navigation ul {
    display: flex !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.main-navigation li {
    margin-left: 2rem !important;
}

.main-navigation a {
    color: white !important;
    text-decoration: none !important;
    padding: 0.5rem 0 !important;
    transition: color 0.3s ease !important;
}

.main-navigation a:hover {
    color: #ffd700 !important;
}

/* ヒーローセクションのスタイル */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 2rem;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-content {
    text-align: center;
    color: #ffffff;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* ヒーローセクション内のナビゲーション */
.hero-navigation {
    position: absolute;
    bottom: 10%;
    left: 0;
    width: 100%;
    z-index: 2;
}

.hero-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.hero-navigation li {
    margin: 0 10px;
}

.hero-navigation a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    transition: color 0.3s ease;
    padding: 8px 15px;
    display: inline-block;
}

.hero-navigation a:hover {
    color: #f0f0f0;
}

/* コンテンツセクションの共通スタイル */
.content-section {
    padding: 4rem 0;
}

/* サイトコンテンツのトップマージン */
.site-content {
    margin-top: 80px !important;
}

/* フッターのスタイル */
.site-footer {
    background-color: #333;
    color: #fff;
    padding: 2rem 0;
}

/* ハンバーガーメニューのスタイル */
.menu-toggle {
    display: none !important;
    background: none !important;
    border: none !important;
    color: white !important;
    font-size: 1.5rem !important;
    cursor: pointer !important;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    position: relative;
    transition: all 0.3s;
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    position: absolute;
}

.menu-icon::before {
    top: -8px;
}

.menu-icon::after {
    bottom: -8px;
}

.menu-toggle.active .menu-icon {
    background-color: transparent;
}

.menu-toggle.active .menu-icon::before {
    top: 0;
    transform: rotate(45deg);
}

.menu-toggle.active .menu-icon::after {
    bottom: 0;
    transform: rotate(-45deg);
}

/* レスポンシブデザインの調整 */
@media (max-width: 768px) {
    .site-header {
        padding: 1rem !important;
    }

    .site-title {
        font-size: 1.2rem !important;
    }

    .menu-toggle {
        display: block !important;
    }

    .main-navigation {
        display: none !important;
    }

    .main-navigation.toggled {
        display: flex !important;
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        width: 250px !important;
        height: 100vh !important;
        background-color: rgba(0, 0, 0, 0.9) !important;
        padding: 60px 20px 20px !important;
        overflow-y: auto !important;
        flex-direction: column !important;
    }

    .main-navigation.toggled ul {
        flex-direction: column !important;
    }

    .main-navigation.toggled li {
        margin: 0 0 15px 0 !important;
    }

    .main-navigation.toggled a {
        display: block !important;
        padding: 10px !important;
        font-size: 1.1rem !important;
        color: #ffffff !important;
    }

    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-navigation {
        display: flex;
        justify-content: center;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .hero-navigation ul {
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding: 0 15px;
    }

    .hero-navigation li {
        margin: 0 5px;
    }

    .hero-navigation a {
        font-size: 0.9rem;
        padding: 8px 15px;
        white-space: nowrap;
    }
    
    .site-content {
        margin-top: 60px !important;
    }
}