@charset "UTF-8";

/* --- 0. カラー変数の定義 --- */
:root {
    --theme-color: #00d2ff;
    --theme-glow: rgba(0, 210, 255, 0.8);
    --theme-bg: rgba(0, 210, 255, 0.1);
    
    /* 指定カラー */
    --neon-green: #00ff00;
    --neon-red: #ff0000;

    /* 【サイズ設定】丸の直径 */
    --circle-size: 360px;
}

/* --- 1. 全体レイアウト --- */
* {
    box-sizing: border-box; 
}

body, 
html {
    margin: 0;
    padding: 0;
    height: 100%;
    background-color: #1a1c23;
    color: #fff;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    overflow-x: hidden;
}

.site-wrapper {
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

/* --- サイドエリア --- */
.side-area {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
}

.side-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.deco-line {
    width: 1px;
    height: 120px;
    background: linear-gradient(to bottom, transparent, var(--theme-color), transparent);
    box-shadow: 0 0 10px var(--theme-color);
}

.side-text {
    writing-mode: vertical-rl;
    font-size: 0.75rem;
    letter-spacing: 0.5em;
    color: var(--theme-color);
    opacity: 0.7;
}

/* --- ヘッダー --- */
.site-title {
    font-family: 'Dancing Script', cursive;
    font-size: 5rem;
    text-align: center;
    margin: 20px 0 5px 0;
    text-shadow: 0 0 15px var(--theme-glow);
}

.menu-list {
    display: flex;
    justify-content: center;
    gap: 12px;
    list-style: none;
    padding: 0;
}

.menu-item {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    min-width: 120px;
    padding: 0 25px;
    border: 1px solid var(--theme-color);
    border-radius: 25px;
    background: rgba(0, 0, 0, 0.7);
    transition: 0.3s;
}

.menu-item:hover {
    background: var(--theme-bg);
    box-shadow: 0 0 15px var(--theme-color);
}

/* --- ドロップダウン --- */
.dropdown { 
    position: relative; 
}

.dropdown-content {
    display: none;
    position: absolute;
    background: rgba(15, 15, 20, 0.98);
    border: 1px solid var(--theme-color);
    min-width: 100px;
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 9999;
    border-radius: 8px;
    overflow: hidden;
}

.dropdown-content li a {
    display: block;
    padding: 12px 20px;
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-content li a:hover {
    background: var(--theme-color);
    color: #000;
}

.dropdown:hover > .dropdown-content { 
    display: block; 
}

/* --- 丸形ナビゲーションセクション --- */
.content-area {
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10;
}

.hex-group {
    position: relative;
    width: var(--circle-size);
    height: var(--circle-size);
}

/* .hex-box という名前のまま、形状を丸に変更 */
.hex-box {
    position: absolute;
    width: var(--circle-size);
    height: var(--circle-size);
    
    /* 【変更】丸に変更 */
    border-radius: 50%;
    clip-path: none; 
    
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;

    /* 初期状態：塗りつぶしなし、縁のみ、ぼかし(box-shadow) */
    background: transparent;
    transform: scale(0.9); 
    opacity: 0.8;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    backdrop-filter: blur(2px);
}

/* 丸いボタン（hex-box）の中にある「準備中」だけを特別に大きくする */
.hex-box.is-pending::after {
    padding: 10px 20px;    /* 余白を広く */
    font-size: 1.5rem;     /* 文字を大きく */
    background: rgba(255, 0, 0, 0.9); /* 目立つ赤 */
    border-radius: 8px;
}

/* --- 初期配置：左右に並べる --- */
.hex-left-bottom {
    top: 0;
    left: -140px;
    border: 8px solid var(--neon-green);
    box-shadow: 0 0 20px var(--neon-green), inset 0 0 15px var(--neon-green);
    z-index: 5;
}

.hex-right-top {
    top: 0;
    left: 140px;
    border: 8px solid var(--neon-red);
    box-shadow: 0 0 20px var(--neon-red), inset 0 0 15px var(--neon-red);
    z-index: 4;
}

/* --- ホバー時：中心へ集まる ＆ 発光強化 --- */
.hex-box:hover {
    top: 0;
    left: 0;
    transform: scale(1.4);
    opacity: 1;
    z-index: 10;
    background: rgba(255, 255, 255, 0.05); /* ほんの少しだけ内側に色を付ける */
}

.hex-left-bottom:hover {
    box-shadow: 0 0 40px var(--neon-green), inset 0 0 25px var(--neon-green);
}

.hex-right-top:hover {
    box-shadow: 0 0 40px var(--neon-red), inset 0 0 25px var(--neon-red);
}

.hex-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    pointer-events: none;
}

.hex-inner i {
    font-size: 4.5rem;
    margin-bottom: 10px;
    transition: 0.3s;
}

.hex-left-bottom .hex-inner i { color: var(--neon-green); }
.hex-right-top .hex-inner i { color: var(--neon-red); }

.hex-inner span {
    font-size: 2.2rem;
    font-weight: bold;
    letter-spacing: 2px;
}

/* ホバー時のアイコンと文字の発光 */
.hex-box:hover .hex-inner {
    text-shadow: 0 0 15px white;
}

/* ホバーしていない方は背景になじませる */
.hex-group:hover .hex-box:not(:hover) {
    opacity: 0.05;
    filter: blur(8px);
}

/* --- 背景固定・フッター --- */
.bg-fixed-rasp {
    width: 1000px;
    min-height: 100vh;
    background-image: url('./img/esp32_back.png');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    flex-shrink: 0;
    z-index: 1;
}

.bg-fixed-rasp::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

.site-footer { 
    text-align: center; 
    margin-top: -60px; 
    position: relative;
    z-index: 10;
}

.since-text {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    color: var(--theme-color);
    opacity: 0.5;
    border-top: 1px solid var(--theme-bg);
    display: inline-block;
    padding-top: 10px;
}

/* --- 準備中ボタン --- */
.is-pending {
    position: relative;
    cursor: not-allowed;
}

.is-pending::after {
    content: attr(data-tips);
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 0, 0, 0.9); /* 赤を少し濃く */
    color: #fff;
    padding: 10px 20px;            /* 余白を広げてボタンらしく */
    font-size: 0.7rem;             /* 文字を大きく */
    font-weight: bold;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 20;                   /* 最前面に */
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

@media (hover: hover) {
    .is-pending:hover::after { opacity: 1; }
    .is-pending:hover { color: rgba(255, 255, 255, 0.3) !important; }
}

@media (max-width: 1250px) {
    .side-area { display: none; }
}