/* ================================================
 * GW Expert Interview — Front-end CSS
 * Design based on gw-success-stories (ei- prefix)
 * ================================================ */

:root {
    --ei-theme:       var(--theme-palette-color-1, #076951);
    --ei-theme-soft:  #e8f2ee;
    --ei-gold:        #c89640;
    --ei-gold-soft:   #faf2e0;
    --ei-ink:         #1f2937;
    --ei-slate:       #4b5563;
    --ei-line:        #e5e7eb;
    --ei-bg:          #fafafa;
    --ei-radius:      14px;
    --ei-radius-sm:   10px;
    --ei-shadow:      0 6px 20px rgba(15,23,42,.08);
    --ei-shadow-hover:0 10px 28px rgba(15,23,42,.12);
}

/* ---- Layout ---- */

.ei-single,
.ei-archive {
    background: var(--ei-bg);
}

.ei-article-inner,
.ei-archive-inner {
    max-width: 980px;
    margin: 0 auto;
    padding: clamp(16px, 4vw, 40px) clamp(16px, 3vw, 24px);
}

/* ---- Breadcrumbs ---- */

.ei-breadcrumbs {
    font-size: 13px;
    color: var(--ei-slate);
    margin-bottom: 16px;
}
.ei-breadcrumbs a {
    color: var(--ei-theme);
    text-decoration: none;
}
.ei-breadcrumbs a:hover {
    text-decoration: underline;
}
.ei-bc-sep {
    margin: 0 6px;
    color: var(--ei-line);
}

/* ---- Article Title ---- */

.ei-article-title {
    font-size: clamp(22px, 4vw, 32px);
    font-weight: 800;
    line-height: 1.35;
    color: var(--ei-ink);
    margin: 0 0 24px;
}

/* ---- アイキャッチ画像 ---- */
.ei-eyecatch {
    margin: 0 0 28px;
    border-radius: var(--ei-radius);
    overflow: hidden;
    box-shadow: var(--ei-shadow);
}
.ei-eyecatch-img {
    display: block;
    width: 100%;
    height: auto;
}

/* ---- YouTube Lite Embed ---- */

.ei-lite-youtube {
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: var(--ei-radius);
    overflow: hidden;
    margin-bottom: 24px;
}
.ei-lite-youtube__btn {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
}
.ei-lite-youtube__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s, filter .3s;
}
.ei-lite-youtube__btn:hover .ei-lite-youtube__thumb {
    transform: scale(1.03);
    filter: brightness(.85);
}
.ei-lite-youtube__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.ei-yt-bg {
    fill: #212121;
    fill-opacity: .8;
}
.ei-lite-youtube__btn:hover .ei-yt-bg {
    fill: #ff0000;
    fill-opacity: 1;
}
.ei-lite-youtube iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ---- Meta Grid ---- */

.ei-meta-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
    padding: 16px;
    background: #fff;
    border-radius: var(--ei-radius-sm);
    border: 1px solid var(--ei-line);
}
.ei-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
}
.ei-meta-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}
.ei-meta-label {
    display: block;
    font-size: 11px;
    color: var(--ei-slate);
    letter-spacing: .04em;
}
.ei-meta-value {
    font-weight: 700;
    font-size: 15px;
    color: var(--ei-ink);
}
a.ei-meta-value {
    color: var(--ei-theme);
    text-decoration: none;
}
a.ei-meta-value:hover {
    text-decoration: underline;
}

/* ---- Article Body ---- */

.ei-article-body {
    margin-bottom: 40px;
}

/* ---- Q Heading ---- */

.ei-qblock {
    margin: 40px 0 24px;
}
.ei-qblock:first-child {
    margin-top: 0;
}

.ei-q-rule {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 12px;
}
.ei-q-rule::before,
.ei-q-rule::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--ei-theme), transparent);
}
.ei-q-label {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    padding: 4px 14px;
    border: 1.5px solid var(--ei-theme);
    border-radius: 999px;
    white-space: nowrap;
}
.ei-q-kicker {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ei-theme);
}
.ei-q-number {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 16px;
    font-weight: 800;
    color: var(--ei-theme);
}

.ei-qtext {
    font-size: clamp(16px, 2.5vw, 20px);
    font-weight: 700;
    line-height: 1.5;
    color: var(--ei-ink);
    text-align: center;
    margin: 0;
}

/* ---- Speaker Bubble ---- */

.ei-speaker {
    display: flex;
    gap: 12px;
    margin: 16px 0;
}

.ei-speaker-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    overflow: hidden;
}
.ei-speaker-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.ei-speaker-bubble {
    flex: 1;
    min-width: 0;
    position: relative;
    background: #fff;
    border: 1px solid var(--ei-line);
    border-radius: var(--ei-radius-sm);
    padding: 14px 16px;
}
.ei-speaker-bubble::before {
    content: '';
    position: absolute;
    top: 16px;
    left: -6px;
    width: 10px;
    height: 10px;
    background: inherit;
    border: inherit;
    border-right: none;
    border-top: none;
    transform: rotate(45deg);
}

.ei-speaker-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.ei-speaker-name {
    font-weight: 700;
    font-size: 14px;
    color: var(--ei-ink);
}
.ei-speaker-role {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}
.ei-speaker-body {
    font-size: 15px;
    line-height: 1.85;
    color: var(--ei-ink);
}
.ei-speaker-body p {
    margin: 0 0 .8em;
}
.ei-speaker-body p:last-child {
    margin-bottom: 0;
}

/* Role: host (interviewer) */
.ei-role-host .ei-speaker-avatar {
    background: linear-gradient(135deg, #0f8d6d, var(--ei-theme));
}
.ei-role-host .ei-speaker-role {
    background: var(--ei-theme-soft);
    color: var(--ei-theme);
}

/* Role: adviser */
.ei-role-adviser .ei-speaker-avatar {
    background: linear-gradient(135deg, #e0b14e, var(--ei-gold));
}
.ei-role-adviser .ei-speaker-bubble {
    background: #fffbf2;
    border-color: #f0dfbd;
}
.ei-role-adviser .ei-speaker-bubble::before {
    background: #fffbf2;
    border-color: #f0dfbd;
}
.ei-role-adviser .ei-speaker-role {
    background: var(--ei-gold-soft);
    color: #8a6213;
}

/* ---- Narration ---- */

.ei-narration {
    border-left: 4px solid var(--ei-theme);
    background: var(--ei-theme-soft);
    border-radius: 0 var(--ei-radius-sm) var(--ei-radius-sm) 0;
    padding: 16px 20px;
    margin: 0 0 24px;
    font-size: 15px;
    line-height: 1.85;
    color: var(--ei-ink);
}
.ei-narration p {
    margin: 0;
}

/* ---- CTA ---- */

.ei-cta-adviser {
    background: linear-gradient(135deg, #f0fdf4, #fff);
    border: 2px solid var(--ei-theme);
    border-radius: var(--ei-radius);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 32px 0;
}
.ei-cta-badge {
    font-size: 12px;
    font-weight: 700;
    color: var(--ei-theme);
    letter-spacing: .04em;
}
.ei-cta-name {
    font-size: 20px;
    font-weight: 800;
    margin: 4px 0;
    color: var(--ei-ink);
}
.ei-cta-desc {
    font-size: 14px;
    color: var(--ei-slate);
    margin: 0;
}
.ei-cta-btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    transition: all .2s;
}
.ei-cta-btn--primary {
    background: var(--ei-theme);
    color: #fff;
}
.ei-cta-btn--primary:hover {
    background: #054f3d;
    color: #fff;
    box-shadow: var(--ei-shadow);
}

@media (max-width: 600px) {
    .ei-cta-adviser {
        flex-direction: column;
        text-align: center;
    }
}

/* ---- Article Nav ---- */

.ei-article-nav {
    text-align: center;
    margin: 24px 0;
}
.ei-article-nav-back {
    color: var(--ei-theme);
    text-decoration: none;
    font-weight: 600;
}
.ei-article-nav-back:hover {
    text-decoration: underline;
}

/* ---- Related ---- */

.ei-related {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 24px) 40px;
}
.ei-related-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--ei-ink);
    margin: 0 0 16px;
}
.ei-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}
.ei-related-card {
    display: block;
    background: #fff;
    border-radius: var(--ei-radius-sm);
    overflow: hidden;
    border: 1px solid var(--ei-line);
    text-decoration: none;
    color: inherit;
    transition: box-shadow .2s, transform .2s;
}
.ei-related-card:hover {
    box-shadow: var(--ei-shadow-hover);
    transform: translateY(-2px);
}
.ei-related-thumb img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}
.ei-related-body {
    padding: 12px 16px;
}
.ei-related-theme {
    font-size: 11px;
    font-weight: 700;
    color: var(--ei-theme);
    letter-spacing: .04em;
}
.ei-related-card-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    margin: 4px 0 0;
    color: var(--ei-ink);
}

/* ---- Archive ---- */

.ei-archive-title {
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 800;
    color: var(--ei-ink);
    margin: 0 0 8px;
}
.ei-archive-desc {
    color: var(--ei-slate);
    font-size: 15px;
    margin: 0 0 32px;
}
.ei-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.ei-archive-card {
    display: block;
    background: #fff;
    border-radius: var(--ei-radius);
    overflow: hidden;
    border: 1px solid var(--ei-line);
    text-decoration: none;
    color: inherit;
    transition: box-shadow .2s, transform .2s;
}
.ei-archive-card:hover {
    box-shadow: var(--ei-shadow-hover);
    transform: translateY(-2px);
}
.ei-archive-card-thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.ei-archive-card-body {
    padding: 16px;
}
.ei-archive-card-theme {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: var(--ei-theme);
    background: var(--ei-theme-soft);
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 6px;
}
.ei-archive-card-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 8px;
    color: var(--ei-ink);
}
.ei-archive-card-meta {
    font-size: 12px;
    color: var(--ei-slate);
    display: flex;
    gap: 12px;
}

/* ---- Adviser Page Injection ---- */

.ei-adviser-section {
    margin: 32px 0;
}
.ei-adviser-section-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 12px;
}
.ei-adviser-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ei-adviser-card-link {
    display: block;
    background: #fff;
    border: 1px solid var(--ei-line);
    border-radius: 8px;
    padding: 12px 16px;
    text-decoration: none;
    color: inherit;
    transition: border-color .2s;
}
.ei-adviser-card-link:hover {
    border-color: var(--ei-theme);
}
.ei-adviser-card-theme {
    font-size: 11px;
    font-weight: 700;
    color: var(--ei-theme);
}
.ei-adviser-card-title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--ei-ink);
    margin-top: 2px;
}

/* ---- Mobile ---- */

@media (max-width: 600px) {
    .ei-speaker {
        gap: 8px;
    }
    .ei-speaker-avatar {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    .ei-speaker-avatar img {
        width: 36px;
        height: 36px;
    }
    .ei-speaker-bubble {
        padding: 10px 12px;
    }
    .ei-speaker-body {
        font-size: 14px;
    }
    .ei-qtext {
        text-align: left;
    }
}
