/* --------------------------------------------共通全体用CSS-------------------------------------------- */
body {
    font-family: "Orbitron", "Noto Sans JP", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    background-color: #1a1a2e; /* Dark purple/blue */
    /* Cyberpunk background image example:
    background-image: url('https://placehold.co/1920x1080/0a031a/1E1E1E?text=CyberBG');
    */
    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    margin: 0;
    padding: 20px;
    overflow-x: hidden;
    color: #e0e0e0;
    text-shadow: 0 0 3px rgba(224, 224, 224, 0.3);
}

header {
    background-color: rgba(10, 3, 26, 0.75); 
    border-radius: 8px; 
    box-shadow: 0 0 18px rgba(0, 255, 255, 0.6), 0 0 7px rgba(0, 255, 255, 0.8) inset; 
    border: 1.5px solid rgba(0, 255, 255, 0.8); 
    padding: 12px 25px;
    margin-bottom: 35px;
    position: relative;
    z-index: 100;
    backdrop-filter: blur(4px);
}

ul {
    list-style: none;
    padding: 0; /* Reset default padding */
}

.header__flex {
    display: flex;
    height: 60px;
    align-items: center;
}

.header__flex nav { /* This targets .pc-navigation in your HTML */
    margin-left: auto;
}

.header__flex ul {
    display: flex;
}

.header__flex ul li {
    margin-left: 25px;
    margin-right: 15px;
    font-size: 1.1em; /* Relative font size */
    text-align: center;
    font-weight: 700;
}

.img_middle {
    display: inline-block;
    vertical-align: middle;
    padding: 12px 0px;
    filter: drop-shadow(0 0 6px #00ffff) brightness(1.1);
    max-height: 40px; /* Ensure logo doesn't get too big */
}

.header__flex h1 {
    margin: 0;
}

.pc-navigation { /* Explicitly for desktop nav */
    margin-left: auto;
}

.pc-navigation ul {
    display: flex;
}

.pc-navigation ul li {
    margin-left: 25px;
    margin-right: 15px;
    font-size: 1.1em;
    text-align: center;
    font-weight: 700;
}

/* --------------------------------------------メインコンテンツ用CSS-------------------------------------------- */
::selection {
    background-color: yellow;
    opacity: 0.5;
}

h1::selection, h2::selection, h3::selection {
    color: #ff00ff;
}


a {
    text-decoration: none;
    color: #00ffff; 
    text-shadow: 0 0 6px #00ffff, 0 0 12px #00ffff;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

a:hover, a:focus {
    color: #ff00ff; 
    text-shadow: 0 0 8px #ff00ff, 0 0 15px #ff00ff;
}

.a_hover { 
    padding-bottom: 4px;
    background-image: linear-gradient(to right, #00ffff, #00ffff); 
    background-repeat: no-repeat;
    background-position: bottom right;
    background-size: 0 2.5px; 
    transition: background-size 0.35s ease-out, color 0.3s ease, text-shadow 0.3s ease;
    text-decoration: none;
    color: #00ffff; 
    position: relative;
}
          
.a_hover:hover {
    background-position: bottom left;
    background-size: 100% 2.5px;
    color: #ff00ff; 
    text-shadow: 0 0 8px #ff00ff, 0 0 15px #ff00ff;
}

.text_center {
    text-align: center;
}

.text_back {
    background-color: rgba(10, 3, 26, 0.8); /*rgba(42, 0, 79, 0.8);*/
    border-radius: 8px; 
    box-shadow: 0 0 18px rgba(0, 255, 255, 0.5), 0 0 7px rgba(0, 255, 255, 0.7) inset; 
    border: 1.5px solid rgba(0, 255, 255, 0.7); 
    padding: 30px 35px; 
    margin-bottom: 35px;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(4px);
}

.text_back h1, .text_back h2 {
    color: #00ffff; 
    text-shadow: 0 0 6px #00ffff, 0 0 10px #00ffff;
    font-weight: 700;
    margin-top: 0; /* Remove default top margin for headings */
    margin-bottom: 0.75em; /* Space below headings */
}
 .text_back h1 {
    font-size: 1.8em;
}
.text_back h2 {
    font-size: 1.5em;
    margin-top: 1.5em; /* More space above H2 */
}


.text_back p {
    color: #c0c0c0; /* Lighter gray for better contrast */
    line-height: 1.8;
    font-size: 1.05em; 
    text-shadow: 0 0 2px rgba(192, 192, 192, 0.2);
}

footer {
    padding-top: 20px;
    padding-bottom: 20px;
    border-top: 1px dashed rgba(0, 255, 255, 0.3);
    margin-top: 40px;
}

footer p {
    color: #888; 
    text-shadow: none;
    font-size: 0.9em;
}

/* --------------------------------------------PC用CSS-------------------------------------------- */
@media only screen and (min-width:1000px) {
    body {
        /* Max width can be good for very large screens, but allow flexibility */
        /* width: 1000px; */ 
        max-width: 1200px; /* Example max-width */
        margin-left: auto;
        margin-right: auto;
    }
    .hamburger-button {
        display: none !important;
    }
    .main-navigation {
        display: none !important;
    }
    .pc-navigation {
        display: flex !important;
    }
}

/* -------------Hamburger Menu CSS--------------- */
.hamburger-button {
    display: none; 
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1002; 
    position: relative; 
    margin-left: auto; /* Push to the right */
}

.hamburger-button__line {
    display: block;
    width: 28px; 
    height: 3.5px;
    background-color: #00ffff; 
    box-shadow: 0 0 4px #00ffff;
    border-radius: 1px;
    margin: 6px 0; 
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, background-color 0.3s ease;
}

.hamburger-button.is-active .hamburger-button__line {
    background-color: #ff00ff; 
    box-shadow: 0 0 4px #ff00ff;
}

.hamburger-button.is-active .hamburger-button__line:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg); /* Adjusted for new height/margin */
}
.hamburger-button.is-active .hamburger-button__line:nth-child(2) {
    opacity: 0;
}
.hamburger-button.is-active .hamburger-button__line:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg); /* Adjusted for new height/margin */
}

.main-navigation {
    position: fixed;
    top: 0;
    right: -100%; 
    width: 100%; 
    max-width: 320px; /* Max width for mobile menu */
    height: 100vh; 
    background-color: rgba(5, 2, 15, 0.92); 
    backdrop-filter: blur(8px); 
    box-shadow: -3px 0 20px rgba(0, 255, 255, 0.55); 
    border-left: 2px solid rgba(0,255,255, 0.75);
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1001; 
    padding-top: 80px; 
    box-sizing: border-box;
    overflow-y: auto; 
    display: none; 
}

.main-navigation.is-open {
    right: 0;
}

.main-navigation ul {
    list-style: none;
    padding: 25px 0;
    margin: 0;
    text-align: center;
}

.main-navigation ul li {
    margin-bottom: 18px; 
}

.main-navigation ul li a {
    display: block;
    padding: 18px 30px; 
    color: #00ffff; 
    text-decoration: none;
    font-size: 1.25em; 
    font-weight: 700; 
    transition: background-color 0.25s ease, color 0.25s ease, text-shadow 0.25s ease;
    text-shadow: 0 0 6px #00ffff;
    border-radius: 4px;
    margin: 0 15px; /* Add horizontal margin for better touch targets */
}

.main-navigation ul li a:hover,
.main-navigation ul li a:focus {
    background-color: rgba(255, 0, 255, 0.15); 
    color: #ff00ff; 
    text-shadow: 0 0 8px #ff00ff, 0 0 15px #ff00ff;
    outline: none;
}
        
body.menu-open {
    overflow: hidden; 
}


/* --------------------------------------------タブレット・スマホ用CSS-------------------------------------------- */
@media (max-width: 999px) {
    .pc-navigation {
        display: none !important; 
    }
    .hamburger-button {
        display: block !important; 
    }
    .main-navigation {
        display: block !important; 
    }

    .header__flex {
        justify-content: space-between; /* Ensure logo is left, hamburger is right */
    }
     .header__flex h1 { /* Ensure logo doesn't take full width */
        flex-grow: 0;
    }
}


/* --------------------------------------------タブレット用CSS-------------------------------------------- */
@media (min-width: 768px) and (max-width: 999px) {
    .main-navigation {
        max-width: 80%; /* Slightly narrower for tablet */
        right: -80%; 
    }
     .main-navigation.is-open {
        right: 0;
    }
}


/* --------------------------------------------スマホ用CSS-------------------------------------------- */
@media (max-width: 767px) { /* Changed breakpoint for more distinct mobile styles */
    body {
        padding: 5px; 
        padding-top: 20px; 
    }

    header {
        padding: 10px 15px;
        margin-bottom: 25px;
    }
    .header__flex ul li { /* For PC nav, though hidden, good to adjust */
        font-size: 1em;
    }
    .img_middle {
        max-height: 35px;
    }


    .text_back {
        padding: 20px 5px;
    }
    .text_back h1 {
        font-size: 1.6em;
    }
    .text_back h2 {
        font-size: 1.3em;
    }
    .text_back p {
        font-size: 1em;
    }

    .main-navigation {
        width: 85%; /* Make it not full width for a slight overlay effect */
        max-width: 300px; /* Cap width */
        right: -300px; /* Match max-width */
        padding-top: 70px; 
    }
    .main-navigation.is-open {
        right: 0;
    }
    .main-navigation ul li a {
        font-size: 1.15em; 
        padding: 16px 25px;
    }
}