/*
Theme Name: ASADA Lab Theme
Author: Gemini
Description: ASADA Lab. Custom Theme
Version: 1.5
*/

/* --- 基本設定 --- */
:root {
    --bg-color: #E6E6E6;
    --text-color: #333333;
    --accent-color: #F8C600;
    --navy-color: #1A2B50;
    --error-color: #D32F2F;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

a:hover { opacity: 0.7; }

ul { list-style: none; padding: 0; margin: 0; }

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
    min-height: 80vh;
}

/* --- タイトル共通 --- */
.page-title {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 40px;
}

/* --- フローティングナビゲーション (修正版) --- */
.side-nav {
    position: fixed;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    /* アイコン同士の間隔を広げました */
    gap: 60px; 
    z-index: 100;
}

.side-nav a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    /* デフォルトの色 (白) */
    color: #FFFFFF; 
    transition: color 0.3s;
}

/* 現在地（active）の色 (グレー) */
.side-nav a.active {
    color: #888888; 
}

/* SVGの色制御を強化 */
.side-nav svg {
    width: 24px;
    height: 24px;
    /* SVG自体と内部のパスに親の色(color)を強制適用 */
    fill: currentColor;
}
.side-nav svg path,
.side-nav svg polygon,
.side-nav svg rect,
.side-nav svg circle {
    fill: currentColor;
}

/* --- コピーライト --- */
.copyright {
    position: fixed;
    left: 40px;
    top: 50%;
    transform: translateY(-50%) rotate(180deg);
    writing-mode: vertical-rl;
    color: #fff;
    font-size: 12px;
    letter-spacing: 0.1em;
    opacity: 0.6;
}

/* --- トップページ --- */
.front-page-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    position: relative;
    width: 100%;
}

.main-logo img {
    max-width: 200px;
    height: auto;
}

/* お知らせリンクの位置修正 */
.front-news-link {
    position: absolute;
    /* 画面下端からの距離を縮めて下に配置 */
    bottom: 30px; 
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    color: var(--navy-color);
    width: 100%;
    text-align: center;
}

.front-news-link i {
    margin-right: 8px;
}

/* --- 以下、変更なしの部分 --- */
.category-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
}
.cat-btn {
    border: 1px solid #999;
    border-radius: 20px;
    padding: 5px 20px;
    font-size: 12px;
    color: #333;
}
.cat-btn.active, .cat-btn:hover {
    background: #333;
    color: #fff;
    border-color: #333;
}
.news-list { max-width: 800px; margin: 0 auto; }
.news-item {
    padding: 30px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: relative;
}
.news-title { font-size: 16px; font-weight: bold; margin-bottom: 10px; display: block; }
.news-excerpt { font-size: 14px; color: #666; margin-bottom: 15px; }
.news-meta {
    display: inline-block;
    border: 1px solid #999;
    border-radius: 15px;
    padding: 2px 12px;
    font-size: 10px;
}
.news-arrow {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #999;
}
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 60px;
}
.page-numbers {
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: #fff;
    font-size: 12px;
}
.page-numbers.current { background: #000; color: #fff; }

.single-container { max-width: 800px; margin: 0 auto; }
.single-date { font-size: 12px; margin-bottom: 10px; }
.single-title { font-size: 20px; margin-bottom: 40px; }
.single-content { font-size: 14px; line-height: 2; margin-bottom: 60px; }
.back-btn {
    display: block;
    text-align: center;
    font-size: 24px;
    margin-top: 40px;
    color: #333;
}

.form-row { margin-bottom: 30px; display: flex; align-items: flex-start; }
.form-label { width: 200px; font-weight: bold; font-size: 14px; display: flex; align-items: center; }
.required-badge { color: var(--error-color); margin-left: 5px; font-size: 12px; }
.form-input-area { flex: 1; }
.wpcf7-form-control-wrap { display: block; }
.wpcf7-text, .wpcf7-textarea {
    width: 100%; background: #fff; border: none; border-radius: 4px; padding: 10px; box-sizing: border-box;
}
.wpcf7-textarea { height: 200px; }
.wpcf7-submit {
    display: block; margin: 40px auto; background: #fff; border: none; padding: 15px 60px;
    border-radius: 30px; font-size: 16px; font-weight: bold; cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.wpcf7-not-valid-tip { color: var(--error-color); font-size: 12px; margin-top: 5px; }

@media (max-width: 768px) {
    .container { padding: 80px 20px; }
    .side-nav { right: 20px; }
    .copyright {
        position: relative; transform: none; writing-mode: horizontal-tb;
        left: 0; top: 0; text-align: center; width: 100%; margin-top: 40px; color: #999;
    }
    .form-row { flex-direction: column; }
    .form-label { width: 100%; margin-bottom: 10px; }
}