@charset "UTF-8";

/* 共通設定 */
html {
    box-sizing: border-box;
    font-size: 16px;
    background: linear-gradient(160deg, #101010 0%, #101020 50%, #202040 100%);
    background-attachment: fixed;
    height: 100%;
    min-height: 100%;
    scroll-behavior: smooth;
    }
    *, *::before, *::after {
        box-sizing: inherit;
    }

body {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 1rem;
    margin: 0;
    padding: 0;
    min-width: 360px;/* 最小幅360px */
    overflow-x: hidden;
}

    
/* ヘッダー */
.top-header {
    box-sizing: border-box;
    height: 80px;
    width: 100%;
    display:flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px clamp(10px, calc((100vw - 450px) * 0.33 + 10px), 30px) 15px 30px;
    background: linear-gradient(135deg, rgba(51, 51, 51, 0.95), rgba(68, 68, 68, 0.95));
    backdrop-filter: blur(10px);
    color: #fff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.8s ease-out;
}
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.topnav {
    font-size: 20px;
    display: flex;
    justify-content: space-between;
    padding-left: clamp(20px, calc((100vw - 1000px) * 0.33 + 20px), 300px);
    width: 100%;
    max-width: 800px;
}

.topnav a{
    color: #fff;
    text-decoration: none;
    position: relative;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

#top-nowpage{
    color: #ff0;
    text-decoration: none;
    position: relative;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.topnav a::before{
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: linear-gradient(90deg, #50ff50, #00a0ff);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
#top-nowpage::before{
    background: linear-gradient(90deg, #FF50FF, #ff5f00);
}


.topnav a:hover {
    color: #00d90d;
    transform: translateY(-2px);
}

.topnav a:hover::before {
    width: 100%;
}

.top-title {
    font-size: 40px;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(45deg, #60ffc0, #40a0c0, #2050f0);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 10s ease-in-out infinite;
}
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.top-subtitle {
    position:absolute;
    left:380px;
    font-size: 15px;
    color: #aaa;
}

@media screen and (max-width: 1300px) {
    .top-subtitle {
        display: none;
    }    
}


/* 固定ヘッダー */
.fixed-header {
    box-sizing: border-box;
    width: 100%;
    height: 60px;
    justify-content: space-between;
    align-items: center;
    padding-left: 22px;
    font-size: 22px;
    position: fixed;
    top: 0;
    background: rgba(34,34,34,0.8);
    color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    z-index: 1000;
    opacity:0;
    pointer-events: none;
    transition: all 0.3s ease;
}
.fixed-header.visible {
    opacity: 1;
    pointer-events: auto;
}
.fix-title {
    font-size: 30px;
    background: linear-gradient(45deg, #60ffc0, #40c0c0, #2070f0);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 10s ease-in-out infinite;
    text-decoration: none;
}
.fixnav {
    padding-right: 20px;
    font-size: 20px;
    display: flex;
    justify-content: space-between;
    padding-left: clamp(20px, calc((100vw - 1000px) * 0.33 + 200px), 300px);
    width: 100%;
    max-width: 800px;
}
.fixnav a{
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}
.fixnav a:hover {
    color: #00d90d;
    transform: scale(1.1);
}
#fix-nowpage{
    color:#ff0;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}
.fixed-header {
    display: flex;
}



/* ハンバーガーメニュー */
.hamburger {
    display: none;
    font-size: 24px;
    border: none;
    color: #fff;
    background: rgba(119, 119, 119, 0.8);
    backdrop-filter: blur(10px);
    cursor: pointer;
    position: fixed;
    top: 25px;
    right: 30px;
    z-index: 1001;
    border-radius: 5px;
    padding: 8px;
    transition: all 0.3s ease;
}

.hamburger:hover {
    background: rgba(119, 119, 119, 1);
    transform: scale(1.1);
}

@media screen and (max-width: 1000px) {
    .hamburger {
        display: block;
        right: clamp(5px, calc((100vw - 450px) * 0.33 + 5px), 30px);
    }
    .fixed-header {
        display: none;
    }
    .topnav{
        display: none;
    }
}

.hamburger-menu {
    position: fixed;
    top: 0;
    right: -340px; /* 最初は画面外に */
    width: 400px;
    height: 100vw;
    background: linear-gradient(135deg, rgba(51, 51, 51, 0.9), rgba(100, 100, 150, 0.5));
    backdrop-filter: blur(20px);
    color: white;
    padding-top: 60px 20px 20px;
    box-shadow: -5px 0 5px rgba(0,0,0,0.5);
    transition: right 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1002;
    visibility: hidden;
}
.hamburger-menu.open {
    right: -100px; /* メニューが開いたときに画面内に */
    visibility: visible;
}

.hamburger-menu h2 {
    position :absolute;
    font-size: 30px;
    top: 15px;
    left: 30px;
    margin: 0;
    background: linear-gradient(45deg, #50ff50, #00a0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hamburger-menu ul {
    list-style: none;
    display: flex;
    padding:0;
    margin: 60px 0 0 20px;
    flex-direction: column;
}
.hamburger-menu li {
    position: relative;
    padding: 20px;
    opacity: 0;
    transform:translateX(50px);
    animation: slideInMenu 0.5s ease forwards;
}

.hamburger-menu li:nth-child(1) { animation-delay: 0.1s; }
.hamburger-menu li:nth-child(2) { animation-delay: 0.2s; }
.hamburger-menu li:nth-child(3) { animation-delay: 0.3s; }
.hamburger-menu li:nth-child(4) { animation-delay: 0.4s; }
.hamburger-menu li:nth-child(5) { animation-delay: 0.5s; }
.hamburger-menu li:nth-child(6) { animation-delay: 0.6s; }

@keyframes slideInMenu {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hamburger-menu li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(to right, rgba(255,255,255,0.8), rgba(255,255,255,0));
}
.hamburger-menu a {
    display: block;
    color: #fff;
    font-size: 24px;
    text-decoration: none;
    transition:all 0.3s ease;
}
#hamburger-nowpage {
    display: block;
    color: #ff0;
    font-size: 24px;
    text-decoration: none;
    transition:all 0.3s ease;
    cursor: pointer;
}
#nowpage-detail {
    color:#ff0;
}

.detail {
    display: block;
    font-size: 14px;
    color: #aaa;
    margin-top: 5px;
    transition:all 0.3s ease;
}
.hamburger-menu a:hover{
    color: #00d90d;
    transform: translateX(5px);
}
.hamburger-menu a:hover + .detail{
    color: #00c900;
    transform: translateX(5px);
}

.menu-overlay 
{
    position:fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
    visibility: hidden;
}
.menu-overlay.show {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.hamburger-close {
    opacity: 0;
    pointer-events: none;
    position: fixed;
    top: 25px;
    right: 30px;
    font-size: 20px;
    color: #fff;
    background: rgba(119, 119, 119, 0.8);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1004;
    border: none;
    border-radius: 5px;
    padding: 8px;
}

.hamburger-close.show {
    opacity: 1;
    pointer-events: auto;
}

.contents{
    display: flex;
    gap:30px;
    margin:0px clamp(30px, calc((100vw - 1000px) * 0.33 + 30px), 150px);
    animation: fadeInUp 1s ease-out 0.3s both;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 5px;
    padding: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-content {
    position:relative;
    width: 100%;
    max-width: 100%;
    padding: 30px;
    background: linear-gradient(145deg, #0F172A, #1E293B);
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    border: 3px ridge rgba(16, 185, 129, 0.8);
    animation: newsSlideIn 0.8s ease-out 0.6s both;
}
.main-content .title-container {
    background: linear-gradient(90deg,rgba(16, 185, 129, 0.1),rgba(16, 185, 129, 0.1),rgba(16, 185, 129, 0.1),rgba(16,185,129,0.4));
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-left: 10px solid rgba(16, 185, 129, 0.3);
    padding: 15px 25px;
    margin-bottom: 25px;
    border-radius: 4px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
}

.main-content .title-container h1 {
    color: #A7F3D0;
    text-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
    margin: 0;
    font-size: 1.8em;
}

.main-content .body-container {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(203, 213, 225, 0.2);
    padding: 20px 25px;
    border-radius: 4px;
    color: #CBD5E1; /* やや明るいスレートグレー */
    line-height: 1.7;
}
.main-content .body-container p:not(:last-child) {
    margin-bottom: 1em; /* 複数パラグラフがある場合の間隔 */
}

@keyframes SlideIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* フッター */
footer {
    position:relative;
    background-color: #111;
    color: #fff;
    padding: 10px;
    text-align: center;
    bottom: 0;
    margin-top: 0;
}

.footer_text {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: #ccc;
}

.footer_link {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.footer_link a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    position: relative;
}

.footer_link a:hover {
    color: #4CAF50;
}

/* このサイトについてのホバー表示 */
.about-tooltip {
    position: relative;
    cursor: help;
}

.tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    margin-bottom: 8px;
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #333;
}

.about-tooltip:hover .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

/* TOPに戻るボタン - フォルダタブ風 */
.back-to-top {
    position: absolute;
    top: -25px;
    right: 20px;
    background-color: #111;
    color: #ccc;
    border: none;
    border-radius: 8px 8px 0 0;
    width: 60px;
    height: 25px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.3);
}

.back-to-top:hover {
    background-color: #222;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 -4px 8px rgba(0,0,0,0.4);
}

.back-to-top:active {
    transform: translateY(0);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .footer_link {
        gap: 20px;
    }
    
    .back-to-top {
        width: 50px;
        height: 22px;
        font-size: 10px;
        right: 15px;
    }
    
    .tooltip {
        font-size: 12px;
        padding: 10px 12px;
        max-width: 200px;
        white-space: normal;
    }
}



.spacer {
    display: block;
    height: 100px;
}
.spacer_big {
    display: block;
    height: 2000px;
}
.spacer_full
{
    flex-grow: 1;
}



/* レスポンシブ詳細設定 */
@media (max-width: 600px) {
    .top-title {
        font-size: 30px;
    }
    .contents {
        margin: 0px;
        gap:0px;
    }
    .main-content {
        padding: 5px;
    }
    .main-content .title-container {
        padding:15px 15px;
    }
    .main-content .body-container {
        padding:15px 15px;
    }
    .spacer {
        height:50px;
    }
}
