/*
Theme Name: SOA Theme
Theme URI: https://dc-soa.net/
Author: SOA
Description: Server Owners Alliance - Discord サーバー管理者コミュニティのテーマ
Version: 1.2.0
License: GNU General Public License v2 or later
Text Domain: soa-theme
*/

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; }

/* WordPress global-styles が残った場合のガードリセット */
figure { margin: 0; }
p.has-background { padding: 0; }
:root :where(.wp-element-button) { all: revert; }

:root {
    /* ---- Google ライク カラーパレット ---- */
    --blue:    #1a73e8;
    --blue-2:  #4285f4;
    --cyan:    #1a73e8;
    --blight:  #e8f0fe;
    --red:     #ea4335;
    --yellow:  #fbbc04;
    --green:   #34a853;

    /* サーフェス（背景層）*/
    --bg-0:    #ffffff;
    --bg:      #f8f9fa;
    --white:   #ffffff;
    --card:    #ffffff;
    --card-2:  #f1f3f4;
    --elev:    #ffffff;

    /* テキスト */
    --text:    #202124;
    --sub:     #5f6368;
    --muted:   #80868b;

    /* 境界 */
    --border:  #dadce0;
    --border-strong: #c4c7cc;
    --glow-blue: none;
    --glow-cyan: none;

    /* 半径 */
    --radius:    16px;
    --radius-sm: 8px;
    --radius-lg: 20px;

    /* シャドウ（控えめ） */
    --shadow-sm: 0 1px 2px rgba(60,64,67,.12), 0 1px 3px rgba(60,64,67,.08);
    --shadow-md: 0 2px 8px rgba(60,64,67,.15), 0 1px 3px rgba(60,64,67,.1);
    --shadow-lg: 0 8px 28px rgba(60,64,67,.18), 0 2px 6px rgba(60,64,67,.1);

    /* アクセント（単色。グラデは使わない） */
    --grad-primary: var(--blue);
    --grad-primary-hover: #1557b0;
    --grad-text: var(--blue);
    --grad-hero: linear-gradient(-45deg, #dbeafe, #e8f0fe, #eef2ff, #f0f7ff);
}

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg-0);
    color: var(--text);
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Yu Gothic', 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: #1557b0; }
::selection { background: var(--blight); color: var(--text); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
h1,h2,h3,h4,h5,h6 { margin: 0; font-weight: 700; line-height: 1.3; }

/* =============================================
   ANIMATIONS & MOTION
   ============================================= */

/* ---- Keyframes ---- */
@keyframes fadeUp    { from { opacity:0; transform:translateY(28px); }  to { opacity:1; transform:none; } }
@keyframes fadeDown  { from { opacity:0; transform:translateY(-18px); } to { opacity:1; transform:none; } }
@keyframes fadeIn    { from { opacity:0; }                               to { opacity:1; } }
@keyframes scaleIn   { from { opacity:0; transform:scale(.88); }         to { opacity:1; transform:scale(1); } }
@keyframes slideLeft { from { opacity:0; transform:translateX(-32px); }  to { opacity:1; transform:none; } }
@keyframes slideRight{ from { opacity:0; transform:translateX(32px); }   to { opacity:1; transform:none; } }
@keyframes floatY    { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-12px);} }
@keyframes gradientShift { 0%{background-position:0% 50%;} 50%{background-position:100% 50%;} 100%{background-position:0% 50%;} }
@keyframes shimmer   { from{background-position:-200% center;} to{background-position:200% center;} }
@keyframes progressFill { from{transform:scaleX(0);} }
@keyframes badgePing { 0%{transform:scale(1);opacity:.8;} 70%{transform:scale(2.2);opacity:0;} 100%{opacity:0;} }
@keyframes gradientBorder { 0%{background-position:0%;} 100%{background-position:200%;} }
@keyframes marquee   { from{transform:translateX(0);} to{transform:translateX(-50%);} }
@keyframes countUp   { from{opacity:0;transform:translateY(8px);} to{opacity:1;transform:none;} }
@keyframes pageLoad  { from{opacity:0;} to{opacity:1;} }

/* ---- Page fade-in ---- */
body { animation: pageLoad .35s ease; }

/* ---- Page reading progress bar ---- */
#page-progress {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue), #818cf8, #4f46e5);
    transform-origin: left center;
    transform: scaleX(0);
    z-index: 9999;
    pointer-events: none;
    transition: transform .08s linear;
}

/* ---- Scroll reveal system ---- */
.anim {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity   .65s cubic-bezier(.22,1,.36,1),
        transform .65s cubic-bezier(.22,1,.36,1);
    transition-delay: calc(var(--anim-i, 0) * 75ms);
}
.anim.anim-left  { transform: translateX(-28px); }
.anim.anim-right { transform: translateX(28px); }
.anim.anim-scale { transform: scale(.94); }
.anim.in-view    { opacity: 1; transform: none; }

/* ---- prefers-reduced-motion ---- */
@media (prefers-reduced-motion: reduce) {
    body { animation: none; }
    .anim { opacity:1; transform:none; transition:none; }
    .dash-card .card,
    .prog-fill { animation:none !important; }
}

/* =============================================
   WORDPRESS ADMIN BAR OFFSET

   WordPress admin-bar の挙動:
   - 783px 以上：position:fixed 高さ32px
   - 601〜782px：position:fixed 高さ46px
   - 600px 以下：position:absolute（スクロールで画面外に消える）

   600px以下では admin-bar がスクロールとともに消えるため、
   navbar を fixed のまま top:46px にしておくと、admin-bar が
   スクロールアウトした後に上部に空白（消えた admin-bar の跡）が
   残ってしまう。600px以下では navbar の top を 0 に戻して
   常に画面上端に張り付く形にする。
   ============================================= */
body.admin-bar #navbar { top: 32px; }
@media (max-width: 782px) {
    body.admin-bar #navbar { top: 46px; }
}
@media (max-width: 600px) {
    body.admin-bar #navbar { top: 0; }
}

/* =============================================
   SCROLLBAR
   ============================================= */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #bdc1c6; }

/* =============================================
   UTILITIES
   ============================================= */
.container {
    max-width: 1152px;
    margin: 0 auto;
    padding: 0 24px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    border-radius: 100px;
    background: var(--blight);
    color: var(--blue);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 28px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background .2s, box-shadow .2s, transform .15s;
    line-height: 1;
}
.btn-primary {
    background: var(--blue);
    color: #fff;
}
.btn-primary:hover {
    background: #1557b0;
    box-shadow: 0 4px 14px rgba(26,115,232,.35);
    color: #fff;
}
.btn-secondary {
    background: transparent;
    color: var(--blue);
    border: 1.5px solid var(--border);
}
.btn-secondary:hover {
    background: var(--blight);
    border-color: var(--blue);
    color: var(--blue);
}
.btn-sm { padding: 7px 18px; font-size: 13px; }

/* =============================================
   NAVBAR
   ============================================= */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s, box-shadow .2s;
}
#navbar.scrolled {
    border-bottom-color: var(--border);
    box-shadow: 0 1px 8px rgba(32,33,36,.08);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    max-width: 1152px;
    margin: 0 auto;
    padding: 0 24px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}
.nav-logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.nav-logo-icon img { width: 22px; height: 22px; object-fit: contain; }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1; }
.nav-logo-text .l-main { font-size: 15px; font-weight: 700; color: var(--text); }
.nav-logo-text .l-sub  { font-size: 10px; color: var(--sub); letter-spacing: .05em; margin-top: 2px; }

/* wp_nav_menu() が出力する ul.nav-links */
ul.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}
ul.nav-links > li {
    position: relative;
}
ul.nav-links > li > a {
    display: block;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--sub);
    text-decoration: none;
    transition: background .15s, color .15s;
}
ul.nav-links > li > a:hover,
ul.nav-links > li.current-menu-item > a,
ul.nav-links > li.current-menu-ancestor > a,
ul.nav-links > li.current-page-ancestor > a {
    background: var(--bg);
    color: var(--text);
}

/* 第2階層ドロップダウン */
ul.nav-links > li > ul.sub-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 180px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    list-style: none;
    padding: 6px 0;
    margin: 0;
    z-index: 100;
}
ul.nav-links > li:hover > ul.sub-menu,
ul.nav-links > li:focus-within > ul.sub-menu { display: block; }
ul.nav-links > li > ul.sub-menu > li > a {
    display: block;
    padding: 9px 16px;
    font-size: 13px;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s;
}
ul.nav-links > li > ul.sub-menu > li > a:hover { background: var(--bg); }

.nav-join {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: none;
    border: none;
    min-width: 44px;
    height: 44px;
    padding: 4px 6px;
    border-radius: 8px;
    cursor: pointer;
    color: var(--sub);
    font-size: 16px;
    transition: background .15s;
    line-height: 1;
}
.nav-hamburger:hover { background: var(--bg); }
.nav-hamburger-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .05em;
}

/* モバイルドロワー */
.nav-drawer {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    z-index: 999;
    padding: 12px 0 16px;
    overflow-y: auto;
    max-height: calc(100vh - 64px);
}
.nav-drawer.open { display: block; }

/* wp_nav_menu() が出力する ul.nav-drawer-menu */
ul.nav-drawer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}
ul.nav-drawer-menu li a {
    display: block;
    padding: 12px 24px;
    font-size: 15px;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: background .15s;
}
ul.nav-drawer-menu li a:hover { background: var(--bg); }
ul.nav-drawer-menu li.current-menu-item > a { color: var(--blue); }

/* ドロワー内サブメニュー */
ul.nav-drawer-menu .sub-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: var(--bg);
}
ul.nav-drawer-menu .sub-menu a {
    padding-left: 40px;
    font-size: 14px;
    color: var(--sub);
}

.nav-drawer-discord {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 15px;
    color: var(--blue) !important;
    font-weight: 600;
    text-decoration: none;
    border-top: 1px solid var(--border);
    margin-top: 4px;
}

body.admin-bar .nav-drawer { top: calc(64px + 32px); }
@media (max-width: 782px) {
    body.admin-bar .nav-drawer { top: calc(64px + 46px); }
}
@media (max-width: 600px) {
    /* 600px以下では admin-bar が absolute になり navbar は top:0 に張り付くため
       ドロワーも navbar 直下 (64px) に配置する。*/
    body.admin-bar .nav-drawer { top: 64px; }
}

@media (max-width: 768px) {
    ul.nav-links, .nav-join { display: none; }
    .nav-hamburger { display: flex; }
}

/* =============================================
   HERO
   ============================================= */
.hero {
    padding: 140px 0 96px;
    background: var(--grad-hero);
    background-size: 300% 300%;
    animation: gradientShift 14s ease infinite;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 50% at 80% 50%, rgba(26,115,232,.06) 0%, transparent 70%);
    pointer-events: none;
}
@media (min-width: 1024px) { .hero { padding: 176px 0 120px; } }

.hero-inner { max-width: 680px; position: relative; }

/* ヒーロー入場アニメーション */
.hero-badge   { animation: fadeDown .55s .05s ease both; }
.hero-title   { animation: fadeUp   .7s  .2s  ease both; }
.hero-desc    { animation: fadeUp   .65s .35s ease both; }
.hero-actions { animation: fadeUp   .65s .5s  ease both; }
.stats-row    { animation: fadeUp   .65s .65s ease both; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 16px;
    border-radius: 100px;
    background: var(--blight);
    color: var(--blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}
/* シマーエフェクト */
.hero-badge::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.6) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: shimmer 2.8s linear infinite;
}
.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    position: relative;
    flex-shrink: 0;
}
/* ソナー波 */
.badge-dot::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: var(--green);
    animation: badgePing 2s ease-out infinite;
}

.hero-title {
    font-size: clamp(32px, 5vw, 58px);
    font-weight: 700;
    color: var(--text);
    letter-spacing: -.02em;
    line-height: 1.15;
    margin-bottom: 24px;
}
.hero-title .hl { color: var(--blue); }

.hero-desc {
    font-size: clamp(16px, 1.5vw, 19px);
    color: var(--sub);
    line-height: 1.75;
    max-width: 520px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 64px;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
@media (max-width: 640px) { .stats-row { grid-template-columns: repeat(2, 1fr); } }

.stat-box {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    animation: scaleIn .5s ease both;
    transition: transform .2s, box-shadow .2s;
}
.stat-box:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stat-box:nth-child(1) { animation-delay: .68s; }
.stat-box:nth-child(2) { animation-delay: .78s; }
.stat-box:nth-child(3) { animation-delay: .88s; }
.stat-box:nth-child(4) { animation-delay: .98s; }
.stat-num {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
    margin-bottom: 6px;
}
.stat-lbl {
    font-size: 11px;
    color: var(--sub);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* =============================================
   TRUST BAND
   ============================================= */
.trust-band {
    background: var(--bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    position: relative;
}
/* 左右フェードマスク */
.trust-band::before,
.trust-band::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 80px;
    z-index: 1;
    pointer-events: none;
}
.trust-band::before { left: 0;  background: linear-gradient(to right, var(--bg), transparent); }
.trust-band::after  { right: 0; background: linear-gradient(to left,  var(--bg), transparent); }

.trust-band-inner {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 14px 0;
    width: max-content;
    animation: marquee 22s linear infinite;
    white-space: nowrap;
}
.trust-band:hover .trust-band-inner { animation-play-state: paused; }

.trust-lbl { font-size: 13px; font-weight: 600; color: var(--text); flex-shrink: 0; padding-left: 24px; }
.trust-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: var(--sub);
    flex-shrink: 0;
    padding: 0 4px;
}

/* =============================================
   SECTION BASE
   ============================================= */
.section { padding: 96px 0; }
.section-bg { background: var(--bg); }
.section-top-only { padding-top: 120px; }

.section-head { margin-bottom: 48px; }
.section-head .chip { margin-bottom: 14px; }
.section-head-center { text-align: center; }
.section-head-center .chip { margin: 0 auto 14px; }

.section-title {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 700;
    color: var(--text);
    letter-spacing: -.01em;
    margin-bottom: 12px;
}
.section-desc { font-size: 17px; color: var(--sub); line-height: 1.7; }

/* =============================================
   CARDS
   ============================================= */
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: box-shadow .2s, border-color .2s;
}
.card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--blue);
}

.icon-box {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

/* ステップ番号バッジ（参加までの流れ） */
.step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    margin: 0 auto 20px;
}

/* FAQ（よくある質問） Q/Aマーク付き */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.faq-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: border-color .15s, box-shadow .15s;
}
.faq-item[open] {
    border-color: var(--blue);
    box-shadow: var(--shadow-sm);
}
.faq-item summary {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text);
    list-style: none;
    position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 11px;
    color: var(--sub);
    margin-left: auto;
    transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-q, .faq-a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1;
}
.faq-q {
    background: var(--blue);
    color: #fff;
}
.faq-a {
    background: var(--blight);
    color: var(--blue);
    margin-top: 2px;
}
.faq-question {
    font-size: 15px;
    line-height: 1.5;
}
.faq-answer {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 0 20px 18px;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}
.faq-answer p {
    margin: 0;
    font-size: 14px;
    line-height: 1.75;
    color: var(--sub);
}

/* 3-col grid */
.grid-3 {
    display: grid;
    gap: 24px;
}
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* 2-col grid */
.grid-2 {
    display: grid;
    gap: 24px;
}
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }

/* 2-col feature layout */
.grid-feature {
    display: grid;
    gap: 56px;
    align-items: center;
}
@media (min-width: 768px) { .grid-feature { grid-template-columns: repeat(2, 1fr); } }

/* feature row */
.feat-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}
.feat-row:last-child { border-bottom: none; }
.feat-row-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.feat-row-desc  { font-size: 13px; color: var(--sub); line-height: 1.6; }

/* =============================================
   DASHBOARD CARD
   ============================================= */
.dash-card {
    position: relative;
    animation: floatY 5s ease-in-out infinite;
}

.dash-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.dash-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--blight);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--blue);
}
.dash-name { font-size: 13px; font-weight: 600; color: var(--text); }
.dash-sub  { font-size: 11px; color: var(--sub); }
.badge-online {
    margin-left: auto;
    font-size: 11px;
    font-weight: 600;
    color: #15803d;
    background: #dcfce7;
    padding: 3px 10px;
    border-radius: 100px;
}

.prog-item { margin-bottom: 14px; }
.prog-label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--sub);
    margin-bottom: 5px;
}
.prog-track {
    height: 6px;
    background: var(--bg);
    border-radius: 100px;
    overflow: hidden;
}
.prog-fill {
    height: 6px;
    border-radius: 100px;
    transform-origin: left;
    animation: progressFill 1.4s cubic-bezier(.22,1,.36,1) both;
}
.prog-item:nth-child(1) .prog-fill { animation-delay: .3s; }
.prog-item:nth-child(2) .prog-fill { animation-delay: .5s; }
.prog-item:nth-child(3) .prog-fill { animation-delay: .7s; }

.dash-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    text-align: center;
}
.dash-stat-num { font-size: 17px; font-weight: 700; color: var(--text); }
.dash-stat-lbl { font-size: 11px; color: var(--sub); }

.verified-badge {
    position: absolute;
    bottom: -14px;
    right: -14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--blue);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(26,115,232,.4);
}

/* =============================================
   CTA SECTION
   ============================================= */
.cta-section {
    padding: 96px 0;
    background: linear-gradient(-45deg, #1a73e8, #3b82f6, #4f46e5, #0ea5e9, #1a73e8);
    background-size: 300% 300%;
    animation: gradientShift 9s ease infinite;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='7' cy='7' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.cta-title { font-size: clamp(26px, 3vw, 38px); color: #fff; margin-bottom: 16px; }
.cta-desc  { font-size: 17px; color: rgba(255,255,255,.8); max-width: 480px; margin: 0 auto 40px; }
.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    color: var(--blue);
    font-weight: 700;
    font-size: 16px;
    padding: 16px 40px;
    border-radius: 100px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
    transition: box-shadow .2s, transform .15s;
}
.btn-cta:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,.2);
    transform: translateY(-2px);
    color: var(--blue);
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 56px 0 28px;
}

.footer-grid {
    display: grid;
    gap: 40px;
    margin-bottom: 40px;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }

.footer-brand a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    margin-bottom: 14px;
}
.footer-logo-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.footer-logo-icon img { width: 18px; height: 18px; object-fit: contain; }
.footer-logo-name { font-size: 16px; font-weight: 700; color: var(--text); }

.footer-desc { font-size: 13px; color: var(--sub); line-height: 1.7; max-width: 300px; margin-bottom: 18px; }

.footer-socials { display: flex; gap: 8px; }
.social-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sub);
    text-decoration: none;
    font-size: 13px;
    transition: color .15s, border-color .15s;
}
.social-btn:hover { color: var(--blue); border-color: var(--blue); }

.footer-col-title { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 14px; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 13px; color: var(--sub); text-decoration: none; transition: color .15s; }
.footer-links a:hover { color: var(--blue); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
.footer-copy   { font-size: 12px; color: var(--sub); }
.footer-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--sub); }
.status-dot    { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

/* =============================================
   NEWS SECTION (front-page)
   ============================================= */
.news-section { padding: 96px 0; background: var(--bg); }

.section-row-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

/* =============================================
   NEWS ARCHIVE (home.php / archive.php)
   ============================================= */
.archive-wrap {
    padding-top: 64px;
    min-height: 80vh;
    background: var(--white);
}

.archive-hero {
    background: linear-gradient(160deg, var(--blight) 0%, #f0f4ff 40%, var(--white) 100%);
    border-bottom: 1px solid var(--border);
    padding: 52px 0 44px;
}
.archive-hero .chip { margin-bottom: 12px; }
.archive-hero h1,
.archive-hero-title {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 700;
    color: var(--text);
    letter-spacing: -.02em;
    line-height: 1.3;
    margin: 0 0 8px;
}
.archive-hero p,
.archive-hero-desc { font-size: 15px; color: var(--sub); margin: 0 0 6px; }
.archive-hero-count { font-size: 13px; color: var(--sub); margin: 0; }

/* ニュースリスト */
.news-container {
    padding-top: 40px;
    padding-bottom: 80px;
    max-width: 800px;
}

ul.news-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--border);
}

.news-row {
    border-bottom: 1px solid var(--border);
}

.news-row-link {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 20px;
    row-gap: 6px;
    padding: 20px 8px 20px 0;
    text-decoration: none;
    transition: background .15s;
    align-items: start;
}
.news-row-link:hover { background: var(--bg); padding-left: 12px; padding-right: 4px; border-radius: var(--radius-sm); }

.news-row-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    grid-column: 1;
    grid-row: 1;
    white-space: nowrap;
    padding-top: 2px;
}
.news-row-date {
    font-size: 12px;
    color: var(--sub);
    font-variant-numeric: tabular-nums;
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Yu Gothic', 'Segoe UI', sans-serif;
    letter-spacing: .02em;
}
.news-row-cat {
    font-size: 11px;
    font-weight: 700;
    color: var(--blue);
    background: var(--blight);
    padding: 2px 9px;
    border-radius: 100px;
    white-space: nowrap;
}

.news-row-new {
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: var(--red);
    padding: 2px 8px;
    border-radius: 100px;
    white-space: nowrap;
    letter-spacing: .03em;
}

.news-row-title {
    grid-column: 2;
    grid-row: 1;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.55;
}
.news-row-link:hover .news-row-title { color: var(--blue); }

.news-row-excerpt {
    grid-column: 2;
    grid-row: 2;
    font-size: 13px;
    color: var(--sub);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 600px) {
    .news-row-link {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 5px;
    }
    .news-row-meta  { grid-column: 1; grid-row: 1; }
    .news-row-title { grid-column: 1; grid-row: 2; }
    .news-row-excerpt { grid-column: 1; grid-row: 3; }
}

/* Empty state */
.archive-empty {
    text-align: center;
    padding: 80px 24px;
    color: var(--sub);
}
.archive-empty i { font-size: 40px; margin-bottom: 16px; opacity: .3; display: block; }
.archive-empty p { font-size: 15px; }

/* Pagination */
.wp-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 48px;
    flex-wrap: wrap;
}
.wp-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--sub);
    text-decoration: none;
    border: 1px solid var(--border);
    background: var(--white);
    transition: all .15s;
}
.wp-pagination .page-numbers:hover  { background: var(--bg); color: var(--text); }
.wp-pagination .page-numbers.current { background: var(--blue); color: #fff; border-color: var(--blue); }
.wp-pagination .page-numbers.dots   { border: none; background: none; pointer-events: none; }

/* =============================================
   SINGLE POST
   ============================================= */
.single-wrap {
    padding-top: 64px; /* navbar分 */
    padding-bottom: 80px;
    background: var(--white);
}

/* ヒーローバナー */
.single-hero {
    background: linear-gradient(160deg, var(--blight) 0%, #f0f4ff 40%, var(--white) 100%);
    border-bottom: 1px solid var(--border);
    padding: 52px 0 44px;
    margin-bottom: 0;
}

/* パンくず */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--sub);
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.breadcrumb a {
    color: var(--sub);
    text-decoration: none;
    transition: color .15s;
}
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb i.fa-chevron-right { font-size: 8px; color: var(--border); }
.breadcrumb-current {
    color: var(--text);
    font-weight: 500;
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* メタバー */
.single-meta-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.single-date {
    font-size: 12px;
    color: var(--sub);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.single-cat {
    font-size: 11px;
    font-weight: 700;
    color: var(--blue);
    background: var(--blight);
    padding: 3px 10px;
    border-radius: 100px;
    text-decoration: none;
    transition: background .15s;
}
.single-cat:hover { background: #c7d7fa; color: var(--blue); }

/* 記事タイトル */
.single-title {
    font-size: clamp(22px, 3vw, 36px);
    font-weight: 700;
    color: var(--text);
    letter-spacing: -.02em;
    line-height: 1.3;
    max-width: 760px;
    margin: 0;
}

/* 本文＋サイドバー グリッド */
.single-layout {
    display: grid;
    gap: 48px;
    max-width: 1152px;
    margin: 0 auto;
    padding: 48px 24px 0;
    align-items: start;
}
@media (min-width: 1024px) {
    .single-layout {
        grid-template-columns: 1fr 272px;
    }
}

.single-main { min-width: 0; }

/* アイキャッチ画像 */
.single-feat-img {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 36px;
    box-shadow: var(--shadow-md);
}
.single-feat-img img { width: 100%; height: auto; display: block; }

/* 本文エリア */
.entry-content {
    font-size: 15px;
    line-height: 1.9;
    color: var(--text);
    max-width: 720px;
}
.entry-content > * + * { margin-top: 1.4em; }
.entry-content h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    border-left: 4px solid var(--blue);
    padding-left: 14px;
    margin-top: 2.2em;
}
.entry-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-top: 1.8em;
}
.entry-content h4 { font-size: 16px; font-weight: 700; margin-top: 1.4em; }
.entry-content p  { margin-top: 0; margin-bottom: 1.2em; }
.entry-content a  { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { opacity: .8; }
.entry-content ul, .entry-content ol { padding-left: 24px; margin-bottom: 1.2em; list-style: initial; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: .5em; }
.entry-content blockquote {
    border-left: 4px solid var(--blue);
    background: var(--blight);
    padding: 16px 20px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 1.6em 0;
    color: #3c4043;
    font-style: normal;
}
.entry-content blockquote p { margin: 0; }
.entry-content pre {
    background: #1e1e2e;
    color: #cdd6f4;
    padding: 20px 24px;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    font-size: 13px;
    line-height: 1.6;
    margin: 1.4em 0;
}
.entry-content code {
    background: var(--bg);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
    color: #c0392b;
}
.entry-content pre code { background: none; color: inherit; padding: 0; }
.entry-content img {
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    margin: .8em 0;
}
.entry-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2em 0;
}
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4em 0;
    font-size: 14px;
}
.entry-content th, .entry-content td {
    padding: 10px 14px;
    border: 1px solid var(--border);
    text-align: left;
}
.entry-content th { background: var(--bg); font-weight: 600; }

/* Post nav */
.post-nav {
    display: grid;
    gap: 12px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}
@media (min-width: 640px) { .post-nav { grid-template-columns: 1fr 1fr; } }

.post-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 18px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: border-color .15s, background .15s;
    min-width: 0;
}
.post-nav-link:hover { border-color: var(--blue); background: var(--blight); }
.post-nav-link.next  { justify-content: flex-end; text-align: right; }
.post-nav-arrow { color: var(--blue); font-size: 12px; flex-shrink: 0; }
.post-nav-label { font-size: 11px; color: var(--sub); display: block; margin-bottom: 2px; }
.post-nav-title { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.4;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Sidebar */
.single-sidebar {}
.sidebar-widget {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
}
.sidebar-widget-title { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 14px; letter-spacing: .03em; text-transform: uppercase; }
.sidebar-recent li { padding: 10px 0; border-bottom: 1px solid var(--border); }
.sidebar-recent li:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-recent a { font-size: 13px; color: var(--text); text-decoration: none; line-height: 1.5; display: block; margin-bottom: 3px; }
.sidebar-recent a:hover { color: var(--blue); }
.sidebar-recent time { font-size: 11px; color: var(--sub); }
.sidebar-cats li { margin-bottom: 6px; }
.sidebar-cats a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--sub);
    text-decoration: none;
    padding: 5px 0;
    transition: color .15s;
}
.sidebar-cats a:hover { color: var(--blue); }
.sidebar-cats .cat-count {
    font-size: 11px;
    color: var(--sub);
    background: var(--border);
    padding: 1px 7px;
    border-radius: 100px;
}
/* タグ */
.sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.sidebar-tag {
    font-size: 12px;
    color: var(--blue);
    background: var(--blight);
    padding: 4px 10px;
    border-radius: 100px;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.sidebar-tag:hover { background: #c7d7fa; }

.sidebar-cta {
    background: linear-gradient(135deg, var(--blue), #4f46e5);
    border: none;
    color: #fff;
    text-align: center;
    padding: 24px 20px;
}
.sidebar-cta .sidebar-widget-title { color: rgba(255,255,255,.7); }
.sidebar-cta p { font-size: 13px; color: rgba(255,255,255,.85); margin-bottom: 14px; }
.sidebar-cta a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #fff;
    color: var(--blue);
    font-size: 13px;
    font-weight: 700;
    padding: 9px 18px;
    border-radius: 100px;
    text-decoration: none;
    transition: opacity .15s;
}
.sidebar-cta a:hover { opacity: .9; }

/* =============================================
   COMMENTS  (WordPress デフォルトHTML構造に合わせたセレクタ)
   ============================================= */
.comments-area {
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
    max-width: 720px;
}

/* コメント数タイトル */
.comments-area > h2,
.comments-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.comments-area > h2::before,
.comments-title::before {
    content: '';
    width: 4px;
    height: 18px;
    background: var(--blue);
    border-radius: 2px;
    display: inline-block;
    flex-shrink: 0;
}

/* コメント一覧 ol.commentlist */
ol.commentlist,
ul.commentlist {
    list-style: none;
    padding: 0;
    margin: 0 0 40px;
}

ol.commentlist li.comment,
ul.commentlist li.comment {
    margin-bottom: 16px;
    position: relative;
}

/* ネストされた返信 */
ol.commentlist .children,
ul.commentlist .children {
    list-style: none;
    padding: 0;
    margin: 12px 0 0 32px;
}
@media (max-width: 600px) {
    ol.commentlist .children,
    ul.commentlist .children { margin-left: 16px; }
}

/* コメント本体 article.comment-body */
article.comment-body {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 18px 20px;
    transition: border-color .15s;
}
article.comment-body:hover { border-color: #c5cae9; }

/* コメントヘッダー（アバター＋名前） */
.comment-meta {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.comment-author.vcard {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.comment-author .avatar {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50%;
    border: 2px solid var(--border);
    flex-shrink: 0;
}

.comment-author .fn {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}
.comment-author .fn a {
    color: var(--text);
    text-decoration: none;
}
.comment-author .fn a:hover { color: var(--blue); }

.comment-author .says { display: none; }

.comment-metadata {
    font-size: 11px;
    color: var(--sub);
    margin-top: 2px;
}
.comment-metadata a {
    color: var(--sub);
    text-decoration: none;
}
.comment-metadata a:hover { color: var(--blue); }

/* 承認待ちバッジ */
.comment-awaiting-moderation {
    display: inline-block;
    font-size: 11px;
    color: #92400e;
    background: #fef3c7;
    padding: 2px 8px;
    border-radius: 100px;
    margin-bottom: 8px;
}

/* コメント本文 */
.comment-content {
    font-size: 14px;
    line-height: 1.75;
    color: var(--text);
}
.comment-content p { margin: 0 0 .6em; }
.comment-content p:last-child { margin-bottom: 0; }
.comment-content a { color: var(--blue); text-underline-offset: 2px; }

/* 返信リンク */
.reply {
    margin-top: 10px;
    text-align: right;
}
.comment-reply-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--sub);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color .15s;
}
.comment-reply-link::before {
    content: '\f3e5';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 11px;
}
.comment-reply-link:hover { color: var(--blue); }

/* ページナビ（コメントのページネーション） */
.comment-navigation,
.navigation.comment-navigation {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
    font-size: 13px;
}
.comment-navigation .nav-previous a,
.comment-navigation .nav-next a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 500;
}

/* =============================================
   COMMENT FORM  (#respond / #commentform)
   ============================================= */
#respond,
.comment-respond {
    margin-top: 40px;
    padding: 28px 32px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
@media (max-width: 600px) {
    #respond, .comment-respond { padding: 20px 16px; }
}

.comment-reply-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.comment-reply-title small { font-size: 13px; font-weight: 400; margin-left: auto; }
.comment-reply-title small a { color: var(--sub); text-decoration: none; }
.comment-reply-title small a:hover { color: var(--red); }

/* ログイン済みの場合のメッセージ */
.logged-in-as {
    font-size: 13px;
    color: var(--sub);
    margin-bottom: 16px;
}
.logged-in-as a { color: var(--blue); }

/* 必須マーク説明 */
.comment-notes {
    font-size: 12px;
    color: var(--sub);
    margin-bottom: 20px;
}
.required-field-message { display: none; }

/* フォームフィールド共通 */
#commentform p {
    margin: 0 0 14px;
}
#commentform label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--sub);
    margin-bottom: 5px;
}
#commentform .required { color: var(--red); }

#commentform input[type="text"],
#commentform input[type="email"],
#commentform input[type="url"],
#commentform textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    color: var(--text);
    background: var(--white);
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
#commentform input[type="text"]:focus,
#commentform input[type="email"]:focus,
#commentform input[type="url"]:focus,
#commentform textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(26,115,232,.1);
}
#commentform textarea {
    min-height: 130px;
    resize: vertical;
    line-height: 1.7;
}

/* 名前・メール・URLを2列グリッドに */
.comment-form-author,
.comment-form-email,
.comment-form-url {
    display: inline-block;
    width: calc(50% - 6px);
    vertical-align: top;
}
.comment-form-author { margin-right: 12px; }
.comment-form-url    { width: 100%; }
@media (max-width: 600px) {
    .comment-form-author,
    .comment-form-email { width: 100%; margin-right: 0; }
}

/* Cookie同意チェックボックス */
.comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: var(--sub);
}
.comment-form-cookies-consent input[type="checkbox"] {
    width: auto;
    margin-top: 2px;
    accent-color: var(--blue);
}
.comment-form-cookies-consent label { display: inline; font-size: 12px; color: var(--sub); font-weight: 400; }

/* 送信ボタン */
.form-submit { margin-bottom: 0; }
#submit,
.comment-form input[type="submit"] {
    background: var(--blue);
    color: #fff;
    border: none;
    padding: 11px 28px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background .15s, box-shadow .15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
#submit:hover { background: #1557b0; box-shadow: 0 4px 12px rgba(26,115,232,.3); }

/* =============================================
   OPERATOR SECTION
   ============================================= */
.org-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 40px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 44px;
    box-shadow: var(--shadow-sm);
    align-items: start;
    max-width: 860px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}
/* 右上の装飾ライン */
.org-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 220px; height: 220px;
    background: radial-gradient(circle at top right, var(--blight) 0%, transparent 70%);
    pointer-events: none;
}
@media (max-width: 640px) {
    .org-card { grid-template-columns: 1fr; padding: 28px 24px; gap: 24px; }
}

.org-logo {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--blue), #4f46e5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(26,115,232,.25);
    animation: floatY 5s ease-in-out infinite;
}

.org-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 6px;
}

.org-name {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -.02em;
    margin: 0 0 14px;
}

.org-desc {
    font-size: 14px;
    color: var(--sub);
    line-height: 1.8;
    margin: 0 0 28px;
    max-width: 600px;
}

.org-products {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 28px;
}

.org-product {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.org-product-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.org-product-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 3px;
}

.org-product-desc {
    font-size: 13px;
    color: var(--sub);
    line-height: 1.6;
}

.org-footer {
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.org-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--blue);
    text-decoration: none;
    transition: gap .2s;
}
.org-link:hover { gap: 10px; }

/* =============================================
   PAGE TEMPLATE
   ============================================= */
.page-wrap {
    padding-top: 104px;
    padding-bottom: 80px;
    background: var(--white);
    min-height: 70vh;
}
.page-content-wrap {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}
.page-title {
    font-size: clamp(24px, 3vw, 36px);
    color: var(--text);
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

/* =============================================
   404
   ============================================= */
.error-wrap {
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding-top: 104px;
    padding-bottom: 80px;
    background: var(--white);
}
.error-inner { text-align: center; max-width: 480px; margin: 0 auto; padding: 0 24px; }
.error-code  { font-size: 100px; font-weight: 700; color: var(--border); line-height: 1; margin-bottom: 12px; }
.error-title { font-size: 24px; margin-bottom: 12px; }
.error-desc  { font-size: 15px; color: var(--sub); margin-bottom: 28px; }

/* =============================================
   GUTENBERG BLOCK STYLES
   wp-block-library を dequeue しているため
   主要ブロックのレイアウト・スタイルを独自実装
   ============================================= */

/* ------ WordPress レイアウトクラス ------ */
.is-layout-flex {
    display: flex !important;
    flex-wrap: wrap;
    gap: var(--wp--style--block-gap, 1.5rem);
}
.is-layout-flex.is-vertical { flex-direction: column; flex-wrap: nowrap; }
.is-layout-flow > * + * { margin-top: var(--wp--style--block-gap, 1.5rem); }
.is-layout-constrained > * { max-width: 720px; margin-left: auto; margin-right: auto; }

/* ------ COLUMNS ------ */
.wp-block-columns {
    display: flex !important;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: normal;
    margin: 1.5em 0;
}
.wp-block-column {
    flex: 1 1 0%;
    min-width: min(12em, 100%);
    word-break: break-word;
    overflow-wrap: break-word;
}
/* モバイルでスタック（WordPress 標準動作） */
@media (max-width: 599px) {
    /* WordPress がインラインで flex-wrap:nowrap を注入するケースを強制上書き */
    .wp-block-columns:not(.is-not-stacked-on-mobile) {
        flex-wrap: wrap !important;
    }
    .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column:not([style*="flex-basis"]) {
        flex-basis: 100% !important;
        flex-grow: 0;
    }
    /* flex-basis がインラインで指定されている列（2カラム等）も縦並びに */
    .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
        flex-basis: 100% !important;
        flex-grow: 0 !important;
    }
}
@media (min-width: 600px) {
    .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column:not([style*="flex-basis"]) {
        flex-basis: 0%;
        flex-grow: 1;
    }
}

/* ------ IMAGE ------ */
.wp-block-image { margin: 1em 0; }
.wp-block-image img { height: auto; max-width: 100%; border-radius: var(--radius-sm); }
.wp-block-image figcaption {
    font-size: 12px;
    color: var(--sub);
    text-align: center;
    margin-top: 6px;
    font-style: italic;
}
.wp-block-image.alignleft  { float: left;  margin: 0 1.5em 1em 0; }
.wp-block-image.alignright { float: right; margin: 0 0 1em 1.5em; }
.wp-block-image.aligncenter { text-align: center; }
.wp-block-image.alignwide  { max-width: none; }
.wp-block-image.alignfull  { max-width: none; border-radius: 0; }

/* ------ GALLERY ------ */
.wp-block-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 1.5em 0;
}
.wp-block-gallery .blocks-gallery-item {
    flex: 1 1 auto;
    margin: 0;
    min-width: 120px;
}
.wp-block-gallery .blocks-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-sm);
}
.wp-block-gallery .blocks-gallery-item figcaption {
    font-size: 12px;
    color: var(--sub);
    text-align: center;
    margin-top: 4px;
}
.wp-block-gallery.columns-2 .blocks-gallery-item { flex-basis: calc(50% - 4px);  max-width: calc(50% - 4px); }
.wp-block-gallery.columns-3 .blocks-gallery-item { flex-basis: calc(33.333% - 6px); max-width: calc(33.333% - 6px); }
.wp-block-gallery.columns-4 .blocks-gallery-item { flex-basis: calc(25% - 6px);  max-width: calc(25% - 6px); }

/* ------ QUOTE ------ */
.wp-block-quote {
    border-left: 4px solid var(--blue);
    background: var(--blight);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 16px 20px;
    margin: 1.5em 0;
}
.wp-block-quote p { margin: 0 0 8px; font-style: italic; color: var(--text); }
.wp-block-quote p:last-of-type { margin-bottom: 0; }
.wp-block-quote cite {
    display: block;
    font-size: 13px;
    color: var(--sub);
    font-style: normal;
    margin-top: 10px;
}
/* Large スタイル */
.wp-block-quote.is-style-large {
    padding: 24px 32px;
}
.wp-block-quote.is-style-large p { font-size: 1.2em; }

/* ------ PULLQUOTE ------ */
.wp-block-pullquote {
    text-align: center;
    padding: 32px 24px;
    border-top: 3px solid var(--blue);
    border-bottom: 3px solid var(--blue);
    margin: 2em 0;
}
.wp-block-pullquote blockquote { margin: 0; }
.wp-block-pullquote p { font-size: 1.25em; font-style: italic; line-height: 1.6; margin: 0 0 10px; }
.wp-block-pullquote cite { font-size: 13px; color: var(--sub); font-style: normal; }

/* ------ CODE / PREFORMATTED ------ */
.wp-block-code,
.wp-block-preformatted {
    background: #1e1e1e;
    color: #d4d4d4;
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    margin: 1.5em 0;
    overflow-x: auto;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.7;
}
.wp-block-code code { background: none; color: inherit; padding: 0; font-size: inherit; }

/* ------ TABLE ------ */
.wp-block-table { overflow-x: auto; margin: 1.5em 0; }
.wp-block-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.wp-block-table th,
.wp-block-table td {
    padding: 10px 14px;
    border: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
    line-height: 1.6;
    color: var(--text);
}
.wp-block-table th { background: var(--bg); font-weight: 600; }
.wp-block-table.is-style-stripes tr:nth-child(even) td { background: var(--bg); }
.wp-block-table figcaption { font-size: 12px; color: var(--sub); text-align: center; margin-top: 8px; }

/* ------ BUTTONS ------ */
.wp-block-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 1.2em 0;
}
.wp-block-button { display: inline-block; }
.wp-block-button__link {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, box-shadow .15s, opacity .15s;
    background: var(--blue);
    color: #fff !important;
    border: 2px solid transparent;
}
.wp-block-button__link:hover {
    background: #1557b0;
    box-shadow: 0 4px 12px rgba(26,115,232,.3);
}
/* Outline スタイル */
.wp-block-button.is-style-outline .wp-block-button__link {
    background: transparent;
    color: var(--blue) !important;
    border-color: var(--blue);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background: var(--blight);
    box-shadow: none;
}
/* Squared スタイル */
.wp-block-button.is-style-squared .wp-block-button__link { border-radius: var(--radius-sm); }

/* ------ MEDIA & TEXT ------ */
.wp-block-media-text {
    display: grid;
    grid-template-columns: 50% 1fr;
    gap: 32px;
    align-items: center;
    margin: 1.5em 0;
}
.wp-block-media-text.has-media-on-the-right {
    grid-template-columns: 1fr 50%;
}
.wp-block-media-text.has-media-on-the-right .wp-block-media-text__media  { grid-column: 2; grid-row: 1; }
.wp-block-media-text.has-media-on-the-right .wp-block-media-text__content { grid-column: 1; grid-row: 1; }
.wp-block-media-text__media img,
.wp-block-media-text__media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-sm);
}
.wp-block-media-text__content { padding: 0 8px; }
@media (max-width: 600px) {
    .wp-block-media-text {
        grid-template-columns: 1fr !important;
    }
    .wp-block-media-text.has-media-on-the-right .wp-block-media-text__media  { grid-column: 1; grid-row: 1; }
    .wp-block-media-text.has-media-on-the-right .wp-block-media-text__content { grid-column: 1; grid-row: 2; }
}

/* ------ GROUP ------ */
.wp-block-group {
    border-radius: var(--radius);
}
.wp-block-group.has-background { padding: 28px 32px; }
@media (max-width: 600px) {
    .wp-block-group.has-background { padding: 20px 16px; }
}

/* ------ COVER ------ */
.wp-block-cover {
    position: relative;
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    overflow: hidden;
    margin: 1.5em 0;
    background: #1e1e1e;
}
.wp-block-cover__background,
.wp-block-cover__gradient-background {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.wp-block-cover img.wp-block-cover__image-background,
.wp-block-cover video.wp-block-cover__video-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.wp-block-cover__inner-container {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 32px 24px;
    color: #fff;
    max-width: 720px;
}
.wp-block-cover__inner-container p,
.wp-block-cover__inner-container h1,
.wp-block-cover__inner-container h2,
.wp-block-cover__inner-container h3 { color: #fff; }

/* ------ SEPARATOR ------ */
.wp-block-separator {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2em auto;
    max-width: 100%;
    clear: both;
}
.wp-block-separator.is-style-wide { width: 100%; }
.wp-block-separator.is-style-dots {
    border: none;
    height: auto;
    text-align: center;
    color: var(--sub);
    line-height: 1;
}
.wp-block-separator.is-style-dots::before {
    content: '···';
    font-size: 24px;
    letter-spacing: 10px;
}

/* ------ EMBED（動画・YouTube等） ------ */
.wp-block-embed { margin: 1.5em 0; }
.wp-block-embed .wp-block-embed__wrapper { position: relative; }
.wp-block-embed.is-type-video .wp-block-embed__wrapper,
.wp-block-embed-youtube .wp-block-embed__wrapper,
.wp-block-embed-vimeo .wp-block-embed__wrapper {
    aspect-ratio: 16 / 9;
}
.wp-block-embed.is-type-video iframe,
.wp-block-embed-youtube iframe,
.wp-block-embed-vimeo iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--radius-sm);
}
.wp-block-embed figcaption {
    font-size: 12px;
    color: var(--sub);
    text-align: center;
    margin-top: 8px;
}

/* ------ SPACER ------ */
.wp-block-spacer { clear: both; }

/* ------ FILE ------ */
.wp-block-file {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin: 1.2em 0;
}
.wp-block-file a {
    font-size: 14px;
    font-weight: 600;
    color: var(--blue);
    text-decoration: none;
    flex: 1;
}
.wp-block-file a:hover { text-decoration: underline; }
.wp-block-file .wp-block-file__button {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: var(--blue);
    padding: 6px 14px;
    border-radius: 100px;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s;
}
.wp-block-file .wp-block-file__button:hover { background: #1557b0; }

/* ------ NOTICE / DETAILS ------ */
.wp-block-details {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    margin: 1.2em 0;
}
.wp-block-details summary {
    font-weight: 600;
    cursor: pointer;
    color: var(--text);
    list-style: none;
    padding: 2px 0;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::before {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 10px;
    color: var(--sub);
    margin-right: 8px;
    transition: transform .2s;
    display: inline-block;
}
.wp-block-details[open] summary::before { transform: rotate(90deg); }

/* ------ alignwide / alignfull（entry-content内） ------ */
.entry-content .alignwide {
    max-width: calc(100% + 80px);
    margin-left: -40px;
    margin-right: -40px;
}
.entry-content .alignfull {
    max-width: calc(100% + 120px);
    margin-left: -60px;
    margin-right: -60px;
}
@media (max-width: 768px) {
    .entry-content .alignwide,
    .entry-content .alignfull {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

/* clearfix for floated images */
.entry-content::after { content: ''; display: table; clear: both; }

/* =============================================
   上層部挨拶 ページテンプレート
   ============================================= */

.member-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 40px;
}

.member-card {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 32px;
    align-items: flex-start;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 32px;
    transition: box-shadow .2s;
}
.member-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
}

.member-avatar {
    width: 160px;
    height: 160px;
    flex-shrink: 0;
}
.member-avatar img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    border: 3px solid var(--border);
}
.member-avatar-placeholder {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: var(--bg);
    border: 3px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    color: var(--sub);
}

.member-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 8px;
}
.member-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    line-height: 1.3;
}
.member-role {
    font-size: 13px;
    font-weight: 600;
    color: var(--blue);
    margin: 0;
    background: var(--blight);
    display: inline-block;
    padding: 3px 10px;
    border-radius: 100px;
    align-self: flex-start;
}
.member-bio {
    font-size: 14px;
    color: var(--sub);
    line-height: 1.8;
    margin: 4px 0 0;
}

.member-empty {
    color: var(--sub);
    font-size: 15px;
    text-align: center;
    padding: 48px 0;
}

@media (max-width: 599px) {
    .member-card {
        grid-template-columns: 1fr;
        padding: 20px 16px;
        gap: 16px;
    }
    .member-avatar,
    .member-avatar img,
    .member-avatar-placeholder {
        width: 100px;
        height: 100px;
        font-size: 36px;
        margin: 0 auto;
    }
    .member-info { padding-top: 0; text-align: center; align-items: center; }
    .member-name { font-size: 20px; }
    .member-role { align-self: center; }
}

/* =============================================
   GUTENBERG BLOCKS — モバイルレスポンシブ補完
   ============================================= */

@media (max-width: 599px) {

    /* alignleft / alignright をモバイルで解除 */
    .entry-content .wp-block-image.alignleft,
    .entry-content .wp-block-image.alignright {
        float: none;
        margin: 1em 0;
    }

    /* ギャラリー列数をモバイルで1列または2列に縮小 */
    .wp-block-gallery.columns-3 .blocks-gallery-item,
    .wp-block-gallery.columns-4 .blocks-gallery-item {
        flex-basis: calc(50% - 4px);
        max-width: calc(50% - 4px);
    }

    /* カバーブロック最小高さ・padding 調整 */
    .wp-block-cover { min-height: 160px; }
    .wp-block-cover__inner-container { padding: 24px 16px; }

    /* ファイルブロックをモバイルで縦並びに */
    .wp-block-file {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .wp-block-file .wp-block-file__button { align-self: flex-start; }

    /* ボタンブロックを縦並びに */
    .wp-block-buttons.is-vertical,
    .wp-block-buttons.is-content-justification-center {
        flex-direction: column;
        align-items: center;
    }

    /* コードブロック横スクロール確保 */
    .wp-block-code,
    .wp-block-preformatted {
        padding: 14px 16px;
        font-size: 12px;
        white-space: pre;
        overflow-x: auto;
    }

    /* テーブルブロック横スクロール */
    .wp-block-table { -webkit-overflow-scrolling: touch; }
    .wp-block-table table { min-width: 480px; }

    /* プルクォートパディング縮小 */
    .wp-block-pullquote { padding: 20px 16px; }
    .wp-block-pullquote p { font-size: 1.05em; }

    /* グループブロック背景つきのパディング縮小（600px で定義済みだが 599px で再定義） */
    .wp-block-group.has-background { padding: 18px 14px; }

    /* メディア＆テキスト: right-media の画像が上に来るよう確保 */
    .wp-block-media-text { gap: 20px; }
}

/* =============================================
   ミニ音楽プレイヤー（フローティング）
   ============================================= */
.soa-music-player {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px 10px 10px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 100px;
    box-shadow: var(--shadow-md);
    max-width: 320px;
    transition: transform .25s cubic-bezier(.22,1,.36,1), opacity .25s;
    animation: soaMusicIn .4s cubic-bezier(.22,1,.36,1) both;
}
@keyframes soaMusicIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: none; }
}
.soa-music-player.is-hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}
.soa-music-toggle {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--blue);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: background .15s, transform .1s;
}
.soa-music-toggle:hover { background: #1557b0; }
.soa-music-toggle:active { transform: scale(.94); }
.soa-music-toggle.is-playing i.fa-play::before { content: '\f04c'; /* fa-pause */ }

.soa-music-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    padding-right: 4px;
}
.soa-music-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}
.soa-music-artist {
    font-size: 11px;
    color: var(--sub);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}
.soa-music-close {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--sub);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.soa-music-close:hover { background: var(--bg); color: var(--text); }

/* 管理バー分ずらす（wp-admin bar 表示時） */
body.admin-bar .soa-music-player { bottom: 20px; }

/* モバイル調整 */
@media (max-width: 480px) {
    .soa-music-player {
        right: 12px;
        bottom: 12px;
        max-width: calc(100vw - 24px);
        padding: 8px 10px 8px 8px;
    }
    .soa-music-toggle { width: 36px; height: 36px; font-size: 13px; }
    .soa-music-title { font-size: 12px; max-width: 150px; }
    .soa-music-artist { font-size: 10px; max-width: 150px; }
}

/* 再生アニメーション（再生中は左のボタンから微かなパルス） */
@keyframes soaMusicPulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(26,115,232,.4); }
    50%     { box-shadow: 0 0 0 6px rgba(26,115,232,0); }
}
.soa-music-toggle.is-playing { animation: soaMusicPulse 1.6s ease-out infinite; }

/* ---- ミニ音楽プレイヤー：音量コントロール ---- */
.soa-music-volume {
    position: relative;
    flex-shrink: 0;
}
.soa-music-vol-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--sub);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.soa-music-vol-btn:hover { background: var(--bg); color: var(--text); }
.soa-music-vol-btn.is-muted { color: var(--red); }

/* 音量ポップアップ（縦スライダー） */
.soa-music-vol-popup {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 100px;
    box-shadow: var(--shadow-md);
    padding: 12px 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s, transform .15s;
}
.soa-music-volume.is-open .soa-music-vol-popup {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* 縦向き range スライダー */
.soa-music-vol-slider {
    -webkit-appearance: slider-vertical;
    appearance: slider-vertical;
    writing-mode: bt-lr;               /* Chromium 系 */
    width: 6px;
    height: 100px;
    background: transparent;
    cursor: pointer;
    padding: 0;
    margin: 0;
    accent-color: var(--blue);
}
/* WebKit のトラック・サム個別調整（縦スライダー時に見た目を整える） */
.soa-music-vol-slider::-webkit-slider-runnable-track {
    width: 6px;
    background: var(--border);
    border-radius: 3px;
}
.soa-music-vol-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--blue);
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.soa-music-vol-slider::-moz-range-track {
    width: 6px;
    background: var(--border);
    border-radius: 3px;
}
.soa-music-vol-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--blue);
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
/* Firefox は writing-mode で縦にする */
@-moz-document url-prefix() {
    .soa-music-vol-slider {
        writing-mode: vertical-lr;
        direction: rtl;
    }
}

/* モバイル：スライダー小さめ */
@media (max-width: 480px) {
    .soa-music-vol-btn { width: 28px; height: 28px; font-size: 12px; }
    .soa-music-vol-slider { height: 80px; }
}

/* ---- 音楽プレイヤーを「しまった」状態で再度開くためのミニボタン ---- */
.soa-music-reopen {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 900;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: background .15s, transform .1s, color .15s;
    animation: soaMusicIn .4s cubic-bezier(.22,1,.36,1) both;
}
.soa-music-reopen:hover { background: var(--blight); }
.soa-music-reopen:active { transform: scale(.94); }
.soa-music-reopen[hidden] { display: none !important; }

@media (max-width: 480px) {
    .soa-music-reopen { right: 12px; bottom: 12px; width: 40px; height: 40px; font-size: 14px; }
}

/* =============================================
   加盟サーバー一覧ページ
   ============================================= */
.guild-summary {
    font-size: 14px;
    color: var(--sub);
    margin: 8px 0 24px;
}
.guild-summary strong {
    font-size: 18px;
    color: var(--blue);
    margin: 0 4px;
}

.guild-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
    margin: 24px 0;
}
@media (min-width: 640px) { .guild-grid { grid-template-columns: repeat(2, 1fr); } }

.guild-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: box-shadow .2s, border-color .2s;
}
.guild-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--blue);
}
.guild-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.guild-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--bg);
    flex-shrink: 0;
    border: 1px solid var(--border);
}
.guild-icon-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--sub);
}
.guild-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    line-height: 1.4;
    /* 2行までで省略 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}
.guild-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--sub);
    min-height: 18px;
}
.guild-approved i { color: var(--green); margin-right: 4px; }

.guild-invite-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    color: #fff !important;
    background: #5865f2; /* Discord blurple */
    text-decoration: none;
    transition: background .15s, box-shadow .15s;
    margin-top: auto;
}
.guild-invite-btn:hover {
    background: #4752c4;
    box-shadow: 0 4px 12px rgba(88,101,242,.3);
}
.guild-invite-btn i { font-size: 15px; }

.guild-empty,
.guild-error {
    background: var(--bg);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    padding: 32px 20px;
    text-align: center;
    color: var(--sub);
    font-size: 14px;
}
.guild-empty i { display: block; font-size: 32px; opacity: .4; margin-bottom: 10px; }
.guild-error i { color: var(--yellow); margin-right: 6px; }

.guild-note {
    font-size: 11px;
    color: var(--muted, #80868b);
    margin-top: 24px;
    text-align: center;
}
