@charset "UTF-8";

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

.theme-red {
    --theme-color: #ff4d4d;
    --theme-glow: rgba(255, 77, 77, 0.8);
    --theme-bg: rgba(255, 77, 77, 0.1);
}

.theme-red-dark {
    --theme-color: #b32d2d;             /* 深みのある赤 */
    --theme-glow: rgba(179, 45, 45, 0.6);
    --theme-bg: rgba(179, 45, 45, 0.15);
}

.theme-red-muted {
    --theme-color: #f07a7a;             /* 彩度を落としたピンクに近い赤 */
    --theme-glow: rgba(240, 122, 122, 0.6);
    --theme-bg: rgba(240, 122, 122, 0.1);
}

.theme-white {
    --theme-color: #fff;             /* メインは真っ白 */
    --theme-glow: rgba(255, 255, 255, 0.5); /* 柔らかな白い光 */
    --theme-bg: rgba(255, 255, 255, 0.1);   /* ほのかな白の背景 */
}

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

/* --- 背景固定の共通設定 --- */
.bg-fixed-back {
    width: 1000px;
    margin: 0 auto;
    background-image: url('./images/parag-back.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;

    min-height: 100vh;
    position: relative;
    z-index: 1;
    padding: 5px; 

    display: flex; 
    flex-direction: column; 
    align-items: center;

    flex-shrink: 0;
}

.side-area {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
    background-color: #1a1c23;
}

.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;
    color: var(--theme-color);
    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;
}

.nav-container{
    display: flex;
    justify-content: center; /* ボタン2つを画面の中央に寄せる */
    gap: 20px;               /* ボタンとボタンの間の隙間 */
    margin: 20px;
    font-size: 1.2em;
}

.nav-container a {
    text-decoration: none;
}

.nav-container a:hover {
    text-decoration: none;
}

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

.nav-btn:hover {
    text-decoration: none;
}

.nav-btn.disabled {
    opacity: 0.5;            /* 半透明にして無効感を出す */
    pointer-events: none;    /* クリックを物理的に無効化する */
    cursor: default;         /* カーソルをポインタにしない */
    filter: grayscale(1);    /* 必要であれば白黒にする */
}

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

.site-footer { 
    text-align: center; 
    margin: 10px; /* マイナスの値を入れると上に上がります */
    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;
}

.info-card {
    width: 100%; 
    max-width: 900px;
    padding: 10px 30px;
    border-radius: 20px;
    transition: 0.3s;
    background: rgba(0, 0, 0, 0.6); /* 背景を少し暗く */
    border: 1px solid var(--theme-bg);
}

.info-card p {
    font-size: 1.1rem; /* 16pxより一回り大きく */
    line-height: 1.4;   /* 行間を広げて読みやすく */
/*   margin-bottom: 1.0rem; */
}

.info-card h1 {
    font-size: 3rem;
    margin-top: 0;
    padding: 10px 0; /* 必要最低限の余白だけ残す */
}

.info-card h2 {
    border-left: 5px solid var(--theme-color);
    padding-left: 15px;
    margin-top: 50px;
    margin-bottom: 25px;
    color: #fff;
    background: rgba(255, 255, 255, 0.03);
    padding-top: 10px;
    padding-bottom: 10px;
}

.info-card h2:first-of-type { 
    margin-top: 0; 
}

.info-card.glass-card {
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1) saturate(180%);
    -webkit-backdrop-filter: blur(8px) saturate(180%);
    padding: 20px 40px;
    border-radius: 20px;
}

.info-card.wide { 
    grid-column: span 2; 
}

.info-card a:link {
    color: #00d4ff; /* 現在の水色 */
    text-decoration: none;
    border-bottom: 1px dashed #00d4ff;
}

.info-card a:visited {
    color: #d1c98a; /* 少し落ち着いたパープルなど（お好みの色で） */
    border-bottom-color: #d1c98a;
}

.info-card a:hover {
    color: #fff; /* 白く光らせる */
    border-bottom-style: solid;
    text-shadow: 0 0 10px var(--theme-glow);
}

/*------------　図付きパーツリスト　--------------------------*/
.part-card {
    display: flex;
    align-items: flex-start; /* ← これを追加！ */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s ease;
    padding: 10px 20px;
    margin: 5px 10px;
}

.part-card:hover {
    border-color: var(--theme-color);
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px); /* 少し右に動くホバー演出 */
}

/* 左側の画像枠：ここを 100x100 で絶対固定 */
.part-image {
    width: 100px;
    height: 60px;
   
    background: #000;
    overflow: hidden;
    border-radius: 8px;
    flex-shrink: 0;
    
    align-self: center; 
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 40px;

}

/* 中の画像の設定 */
.part-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 100x100を隙間なく埋める */
}

/* 右側のテキスト：余白の微調整 */
.part-details {
    flex: 1; /* 残りの幅をすべて使う */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* 上揃えにする */
}

.part-details h3 {
    margin: 0 0 10px 0;
    color: var(--theme-color);
    font-size: 1.2rem;
}

.part-details p {
    margin: 0;
    font-size: 1rem;
    color: #ccc;
    line-height: 1.5;
}

.part-details .quantity {
    margin-top: 10px;
    font-weight: bold;
    font-size: 0.85rem;
    color: #fff;
}

/* レスポンシブ：画面が狭いときは縦並びにする */
@media (max-width: 600px) {
    .part-card {
        flex-direction: column;
    }
    .part-image {
        width: 100%;
        height: 150px;
    }
}

/*--------------------------------------------------- 
                  本文Format 1 
--------------------------------------------------- */
.section-content p{
    text-indent: 1em;
}

.section-content h2{
    color: var(--theme-color);
}

.section-content h3 {
    margin-top: 20px;    /* 上の間隔（適宜調整） */
    margin-bottom: 5px;  /* 下の間隔を小さく設定[cite: 2] */
    padding: 0;          /* パディングをリセット[cite: 2] */
}

.section-content h3 + p {
    margin-top: 0;       /* h3の直後のpタグのみ、上の余白をゼロにする */
}

.section-content h3 + ul {
    margin-top: 0;       /* h3の直後のpタグのみ、上の余白をゼロにする */
}

strong {
    color: var(--theme-color);
}

.fig-disp {
    width: auto; 
    height: 500px;
    object-fit: contain; 
    object-position: center;
    display: block;
    opacity: 1;
    transition: opacity 0.8s ease;
}

#slideshow-image {
    height: 450px;
    width: auto;
    max-width: 100%;
    object-fit: contain; 
    
    /* 既存の装飾を維持 */
    display: block;
    padding: 10px;
    border-radius: 5px;
    transition: opacity 0.8s ease-in-out;
}

.code-block {
    background: #000;
    padding: 15px;
    border-radius: 5px;
    font-family: monospace;
    font-size: 1.5em;
    border: 1px solid #333;
    margin: 15px 0;
    overflow-x: auto;
    white-space: nowrap;
}

.parag-all{
    display: flex; 
    flex-direction: column; 
    gap: 30px; 
    padding: 5px; 
    align-items: center;
    margin-bottom: 20px;
}

/* ぼかし効果の追加（グラスモーフィズム） */
.glass-card {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- フェードイン（開発の背景用） --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 1.0s ease-out forwards;
}

.img-container {
    width: 100%;
    display: flex;
    justify-content: center; /* 画像を中央に寄せる */
    margin: 20px 0;          /* 上下の余白 */
}

.img-container img {
    max-width: 300px; /* お好みのサイズに調整してください */
    height: auto;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    display: block;
}

/* 画像枠の共通設定 */
.img-frame-left, .img-frame-center, .img-frame-right {
    width: 100%;
    max-width: 850px;
    padding: 20px;
    display: flex;
}

/* 中のコンテナをそれぞれの方向に寄せる */
.img-frame-left   { 
    justify-content: flex-start; 
}

.img-frame-center { 
    justify-content: center;     
}

.img-frame-right  { 
    justify-content: flex-end;   
}

.visual-parts-container {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: auto;
    margin: 1em 2em;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/*----------------------------------------------------------*/
.nav-container{
    display: flex;
    justify-content: center; /* ボタン2つを画面の中央に寄せる */
    gap: 20px;               /* ボタンとボタンの間の隙間 */
    margin: 20px;
    font-size: 1.2em;
}

.nav-container a:active {
    color: #ff4d4d; /* クリックした瞬間に赤くするなど */
}

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

.nav-btn:hover {
    background: var(--theme-bg) !important;
    border-color: var(--theme-color) !important;
    box-shadow: 0 0 15px var(--theme-glow) !important;
    color: var(--theme-color);
    text-shadow: 0 0 10px var(--theme-glow);
    transform: translateY(-2px);
    text-decoration: none !important; /* 下線が出ないように念押し */
}

.nav-btn.disabled {
    opacity: 0.5;            /* 半透明にして無効感を出す */
    pointer-events: none;    /* クリックを物理的に無効化する */
    cursor: default;         /* カーソルをポインタにしない */
    filter: grayscale(1);    /* 必要であれば白黒にする */
}

/*-----------------------------------------------------------
            工事中エリアのスタイル
-------------------------------------------------------------*/
.under-construction {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50vh; /* 画面の高さの半分以上を確保 */
    text-align: center;
    padding: 40px 20px;
}

.uc-icon {
    font-size: 4rem;
    color: var(--theme-color); /* 既存の水色など */
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px var(--theme-color));
    animation: pulse 2s infinite; /* 鼓動するように光らせる */
}

.uc-title {
    font-size: 2.5rem;
    letter-spacing: 0.2em;
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.uc-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    max-width: 400px;
    line-height: 1.6;
}

.uc-loader {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin-top: 30px;
    position: relative;
    overflow: hidden;
}

.uc-loader::after {
    content: '';
    position: absolute;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--theme-color);
    animation: loading 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/*----------------------------------------------------------
         hover   マウスがあるPC等に限定
------------------------------------------------------------*/
/* @media (hover: hover) で囲むと、マウスがあるPC等に限定できます */
@media (hover: hover) {
    .is-pending:hover::after {
        opacity: 1;
    }
    .is-pending:hover {
        color: rgba(255, 255, 255, 0.3) !important;
    }
}