@charset "UTF-8";

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700;900&display=swap');

/* ==========================================================================
   Variables
   ========================================================================== */
html {
    scroll-behavior: smooth;
}

:root {
    --color-primary: #004098;
    /* Shinfield Blue */
    --color-accent: #D30000;
    /* Shinfield Red */
    --color-text-body: #333333;
    --color-gray-bg: #F5F5F5;
    --color-border: #E0E0E0;
    --color-tag-bg: #1A5FA8;

    --font-base: 'Noto Sans JP', sans-serif;

    --width-max: 1200px;
    --sidebar-width: 280px;

    /* Breakpoints */
    --breakpoint-sp: 768px;
}

/* ==========================================================================
   Utility Classes (Responsive)
   ========================================================================== */
.u-pc-only {
    display: block !important;
}

.u-sp-only {
    display: none !important;
}

/* SP出し分け用クラスの初期値 */
.u-sp-nav-only {
    display: none !important;
    /* PCでは原則非表示 */
}

.u-sp-content-only {
    display: block !important;
    /* PCでは通常のコンテンツとして表示 */
}

/* 汎用グリッドシステム balance */
.u-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0 20px;
}

.u-grid__item {
    width: 100%; /* SPではデフォルトで縦並び */
    margin: 0;
}

.u-grid__item p {
    font-size: 11px;
    margin-top: 8px;
    margin-bottom: 0;
    line-height: 1.4;
}

/* 中央揃え用 */
.u-grid--center {
    text-align: center;
}

/* PC（769px以上）でのカラム切り替え balance */
@media screen and (min-width: 769px) {
    .u-grid--col2 > .u-grid__item {
        width: calc((100% - 20px) / 2);
    }
    .u-grid--col3 > .u-grid__item {
        width: calc((100% - (20px * 2)) / 3);
    }
    .u-grid--col4 > .u-grid__item {
        width: calc((100% - (20px * 3)) / 4);
    }
}


/* ==========================================================================
   Base & Reset
   ========================================================================== */
body {
    font-family: var(--font-base);
    color: var(--color-text-body);
    line-height: 1.6;
    background: #fff;
    overflow-x: hidden;
    /* 横揺れ防止 */
    padding-top: 71px;
    /* 固定ヘッダー分の余白 (padding 15px * 2 + logo 40px + border 1px) */
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.main {
    padding-top: 50px;
}

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

a:hover {
    opacity: 0.7;
}

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

/* ==========================================================================
   Header
   ========================================================================== */
.header {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1005;
}

/* WordPress管理バー表示時の調整 */
.admin-bar .header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .header {
        top: 46px;
    }
}

.header__inner {
    max-width: var(--width-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 0 10px;
}

.header__logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.header__logo img {
    height: 40px;
    /* Height based on design assumption */
    width: auto;
}

.header__logo-text {
    margin-left: 15px;
    font-size: 16px;
    font-weight: 700;
    color: #000;
}

.header__logo-icon {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
}

span.header__logo-icon img {
    height: 18px;
    width: auto;
    border-radius: 2px;
}

.header__logo-icon img {
    height: 16px;
}

.header__nav {
    margin-left: auto;
    margin-right: 30px;
}

.header__list {
    display: flex;
    gap: 20px;
}

.header__list a {
    font-size: 13px;
    font-weight: 500;
    color: #333;
}

.btn-entry-header {
    background: var(--color-accent);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 4px;
}

/* Hamburger Button */
.header__hamburger {
    width: 50px;
    height: 50px;
    background: #0356A6;
    position: relative;
    z-index: 1010;
    /* メニューより前面に来るように数値を引き上げ */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: none;
    cursor: pointer;
    padding: 0;
}

.header__hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background: #fff;
    position: absolute;
    left: 12.5px;
    transition: all 0.3s;
}

.header__hamburger span:nth-child(1) {
    top: 16px;
}

.header__hamburger span:nth-child(2) {
    top: 24px;
}

.header__hamburger span:nth-child(3) {
    top: 32px;
}

.header__hamburger.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.header__hamburger.is-active span:nth-child(2) {
    opacity: 0;
}

.header__hamburger.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   Mega Menu
   ========================================================================== */
.has-mega-menu {
    position: static;
    /* To allow mega-menu to span full width of the header container if needed, 
       but here we'll align it to the header inner or full width */
}

.header__nav {
    position: static;
}

.header__inner {
    position: relative;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 1000;
    padding: 40px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 10px 10px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateY(10px);
}

/* .mega-menu::before は JS での遅延処理（0.2s）に置き換えたため削除（マウスイベント干渉防止） */

.mega-menu.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu__inner {
    max-width: var(--width-max);
    margin: 0 auto;
    padding: 0 20px;
}

.mega-menu__title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #333;
    padding-left: 10px;
    border-left: 4px solid var(--color-primary);
    line-height: 1;
}

.mega-menu__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.mega-menu__grid--5 {
    grid-template-columns: repeat(5, 1fr);
}

.mega-menu__card {
    text-align: center;
}

.mega-menu__card-img {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
    aspect-ratio: 840 / 561;
}

.mega-menu__card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.mega-menu__card:hover .mega-menu__card-img img {
    transform: scale(1.05);
}

.mega-menu__card-text {
    font-size: 13px;
    font-weight: 700;
    color: #333;
}

/* Overlay */
.mega-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mega-menu-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   Hero (Front Page)
   ========================================================================== */
.p-hero {
    width: 100%;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
    height: 600px;
    /* 初期高さ */
    min-height: 450px;
    /* 最小高さガード */
}

/* PC Background */
.p-hero__bg-pc {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
}

.p-hero__bg-pc img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    /* 人物を右側に固定 */
    display: block;
}

/* SP Structure Adjustments for PC */
.p-hero__sp-body,
.p-hero__main-area {
    display: contents;
}

.p-hero__bg-sp-top,
.p-hero__bg-sp-bottom {
    display: none;
}

/* Base Content Styling (Shared) */
.p-hero__content {
    position: absolute;
    top: 50%;
    left: 5vw;
    /* 左端からの相対位置 */
    transform: translateY(-50%);
    width: 45vw;
    /* 画面幅に応じたサイズ */
    max-width: 600px;
    /* 大きすぎ防止 */
    z-index: 10;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

@media screen and (min-width: 1281px) {
    .p-hero__content {
        left: max(30px, calc(50% - 570px));
    }

}


@media screen and (min-width: 1001px) and (max-width: 1400px) {
    .p-hero__content {
        left: 5vw;
    }
}

/* Tablet / Notebook adjustment (Heavy collision avoidance) */
@media screen and (max-width: 1000px) and (min-width: 768px) {
    .p-hero__bg-pc img {
        object-position: center;
        /* テキスト側を優先 */
    }

    .p-hero__content {
        left: 40px;
        /* 左側に寄せる */
        width: 55vw;
        /* 重なり回避のため少し広めに確保 */
    }
}

/* SP Specific Adjustments */

/* Animations */
@keyframes revealLeftToRight {
    0% {
        opacity: 0;
        clip-path: inset(0 100% 0 0);
    }

    1% {
        opacity: 1;
        clip-path: inset(0 100% 0 0);
    }

    100% {
        opacity: 1;
        clip-path: inset(0 0 0 0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glowInitial {
    0% {
        filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0));
    }

    50% {
        /* 初回出現時は元々の強い発光でインパクトを出す */
        filter: drop-shadow(0 0 15px #fff) drop-shadow(0 0 20px #fff);
    }

    100% {
        /* 最終的に 8px のグローがかかった状態で止める */
        filter: drop-shadow(0 0 12px #fff);
    }
}

.p-hero__read-01,
.p-hero__read-02,
.p-hero__read-03,
.p-hero__read-04,
.p-hero__read-05 {
    opacity: 1;
    /* 最初から表示 */
    animation: none;
    /* 出現アニメーション削除 */
}

.p-hero__read-01 {
    width: 100%;
    max-width: 500px;
    margin-bottom: 2vw;
}

/* Step 2: 順に文章を読めるように sequential に設定 */
.p-hero__read-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2vw;
    margin-bottom: 2vw;
    width: 100%;
}

.p-hero__read-02 {
    width: 100%;
    max-width: 500px;
}

.p-hero__read-03 {
    width: 100%;
    max-width: 500px;
    position: relative;
}

/* Great Glow Action (初回強発光の後、8pxで常時発光して静止) */
.p-hero__read-03 img {
    animation: glowInitial 1.2s ease-out 1s 1 forwards;
}

.p-hero__read-04 {
    width: 100%;
    max-width: 500px;
}

.p-hero__read-05 {
    width: 100%;
    max-width: 500px;
    margin-bottom: 1vw;
}

.p-hero__content img {
    width: 100%;
    height: auto;
    display: block;
}

/* SP Specific Adjustments */
@media (max-width: 767px) {
    .p-hero {
        height: auto;
        margin-bottom: 0px;
    }

    .p-hero__bg-pc {
        display: none;
    }

    .p-hero__sp-body {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .p-hero__bg-sp-top,
    .p-hero__bg-sp-bottom {
        display: block;
        /* PC版の表示制限を解除 */
    }

    .p-hero__bg-sp-top img,
    .p-hero__bg-sp-bottom img {
        width: 100%;
        height: auto;
        display: block;
    }

    .p-hero__main-area {
        display: block;
        /* PC版の contents 指定を解除 */
        position: relative;
        width: 100%;
    }

    .p-hero__content {
        position: absolute;
        top: 0;
        left: 0;
        transform: none;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        /* 縦方向中央揃え */
        align-items: center;
        /* 横方向中央揃え */
        padding: 40px 18px 25px;
        /* 上部を詰め、下部にあきを作る */
    }

    .p-hero__read-01,
    .p-hero__read-02,
    .p-hero__read-03,
    .p-hero__read-04,
    .p-hero__read-05 {
        width: 100% !important;
        max-width: 310px;
        /* ここは変更しない */
        /* テキストが横に広がりすぎないよう制限 */
        margin-bottom: 12px !important;
    }

    .p-hero__read-main {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
        /* ここは変更しない */
        margin-bottom: 5px !important;
    }

    /* GreatをSPでも際立たせる */
    .p-hero__read-03 {
        max-width: 340px;
        /* ここは変更しない */
    }

    .p-hero__read-03 img {
        width: 100%;
        padding: 0 12px;
    }
}

/* ==========================================================================
   Layout (2 Columns)
   ========================================================================== */
.l-container {
    max-width: var(--width-max);
    margin: 20px auto 60px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    gap: 40px;
}

.l-sidebar.u-pc-only {
    display: block !important;
    /* JSで操作するためにSPでも要素自体は維持し、CSSで配置 */
}

.sidebar-logo {
    margin-bottom: 15px;
}

.sidebar-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.sidebar-logo img {
    height: 30px;
    /* Adjusted to fit sidebar width better */
    width: auto;
}

.sidebar-logo-text {
    margin-left: 15px;
    font-size: 10px;
    font-weight: 700;
    color: #000;
    line-height: 1.4;
}

.sidebar-desc {
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #555;
}

.sidebar-desc-title {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
}

.sidebar-desc-item {
    display: block;
    padding-left: 1em;
    text-indent: -1em;
    line-height: 1.6;
}

/* ==========================================================================
   Banners
   ========================================================================== */
.p-banner-oiwai {
    margin-bottom: 20px;
}

.p-banner-oiwai img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.p-sidebar-banner-oiwai {
    margin-bottom: 30px;
}

.p-sidebar-banner-oiwai img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

@media (max-width: 767px) {
    .p-sidebar-banner-oiwai {
        margin-top: 15px;
        margin-bottom: 25px;
    }
}

/* Navigation Sections */
.sidebar-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 10px;
    margin-top: 30px;
}

.sidebar-title:first-of-type {
    margin-top: 0;
}

/* Menu Blocks (Bordered) */
.sidebar-menu {
    border: 1px solid var(--color-primary);
    /* Default blue border */
    background: #fff;
    margin-bottom: 20px;
    border-radius: 6px;
    overflow: hidden;
}

/* Accordion Header */
.sidebar-nav-header {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    cursor: pointer;
    position: relative;
}

.sidebar-menu .sidebar-nav-header:last-child {
    border-bottom: none;
}

/* If content is open, keep border */
.sidebar-nav-header.is-active {
    border-bottom: none;
}

/* Icon Placeholder */
.sidebar-icon {
    display: inline-block;
    width: 20px;
    height: auto;
    margin-right: 10px;
}

.icon-link {
    width: 12px;
    height: auto;
    margin-right: 5px;
    vertical-align: middle;
}

.sidebar-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-primary);
    flex: 1;
}

.toggle-icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-image: url('../images/common/icon-plus.svg');
    transition: transform 0.3s ease;
}

.is-active .toggle-icon {
    background-image: url('../images/common/icon-minus.svg');
}

/* Sub Menu */
.sidebar-nav-sub {
    background: #fff;
    display: none;
}

.sidebar-nav-sub.is-open {
    display: block;
}

.sidebar-nav-sub li:last-child {
    padding-bottom: 5px;
}

.banner-caption {
    font-size: 13px;
    display: flex;
    align-items: center;
    line-height: 1.4;
}

.privacy-link {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #333;
    text-decoration: none;
    margin-top: 10px;
}

.sidebar-nav-sub li a {
    display: flex;
    align-items: center;
    padding: 10px 40px 10px 30px;
    font-size: 12px;
    color: #333;
    position: relative;
}

.sidebar-nav-sub__info {
    display: block;
    flex: 1;
}

.sidebar-nav-sub li a::before {
    content: "";
    position: absolute;
    top: 0;
    left: 25px;
    right: 20px;
    height: 1px;
    background: #89a3bd;
}

.sidebar-nav-sub li:first-child a {
    padding-right: 40px;
    padding-left: 30px;
}

.sidebar-nav-sub li:first-child a::before {
    /*background: #0356A6;*/
    right: 20px;
    left: 20px;
}

.sidebar-nav-sub li a:hover {
    color: var(--color-primary);
    background: #f9f9f9;
}

/* Arrow for sub-items */
/* Arrow for sub-items */
.sidebar-nav-sub li a::after {
    content: "";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: url('../images/common/icon-arrow.svg') no-repeat center center / contain;
}

.sidebar-nav-sub li a:hover::after {
    color: var(--color-primary);
}

.btn-entry-sidebar {
    display: block;
    background: var(--color-accent);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 12px;
    font-weight: bold;
    text-decoration: none;
    margin-bottom: 30px;
    font-size: 13px;
}

.sidebar-banners .banner-item {
    display: block;
    margin-bottom: 10px;
}

.banner-thumb {
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 5px;
}

/* ==========================================================================
   Main Content
   ========================================================================== */
.main-nav {
    background: #fff;
    margin-bottom: 30px;
}

.main-nav__list {
    display: flex;
    border-bottom: 1px solid #0356A6;
}

.main-nav__list li {
    /*flex: 1;*/
    text-align: center;
}

.main-nav__list a {
    display: block;
    color: #8E8E8E;
    font-size: 13px;
    padding: 8px 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px 6px 0px 0px;
}

.main-nav__list a.is-active {
    color: #fff;

}

.main-nav__list a:hover {
    background: #e6e8eb;
}

.main-nav__list a.is-active {
    background: #0356A6;
}

/* Cards Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background: #fff;
}

.card--featured {
    grid-column: span 1;
}

.card__img {
    position: relative;
    margin-bottom: 10px;
    border-radius: 6px;
    overflow: hidden;
}


.card__img img {
    width: 100%;
    transition: transform 0.3s;
}

.card:hover .card__img img {
    transform: scale(1.05);
}

.card__label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 11px;
    text-align: center;
    padding: 5px 0;
}

.card__label--black {
    background: #000;
}

.card__label--dark {
    background: #333;
}

.card__title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 0;
}

.card__meta {
    font-size: 11px;
    color: #999;
    margin-top: 10px;
}

.card__meta .tag {
    background: var(--color-tag-bg);
    color: #fff;
    padding: 2px 6px 4px;
    border-radius: 2px;
    margin-right: 8px;
    font-size: 10px;
}

/* More Button */
.more-area {
    text-align: center;
    margin-top: 40px;
}

.btn-more {
    display: inline-block;
    border: 1px solid #ccc;
    padding: 10px 60px;
    border-radius: 30px;
    font-size: 13px;
    color: #666;
}

/* ==========================================================================
   Related Videos (Top Page)
   ========================================================================== */
.related-videos-wrapper {
    margin-bottom: 40px;
    width: 100%;
}

.related-videos-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 10px;
    display: inline-block;
}

.related-videos-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.video-card {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.video-card:hover {
    transform: translateY(-3px);
}

.video-card__img {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    /* Changed from 9:16 to 3:2 horizontal */
    background: #000;
    margin-bottom: 10px;
}

.video-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.video-card:hover .video-card__img img {
    opacity: 1;
}

/* Play Icon Overlay */
.video-card__play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.video-card__play-icon::after {
    content: "";
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 16px;
    border-color: transparent transparent transparent #fff;
    margin-left: 4px;
    /* Center adjustment */
}

.video-card:hover .video-card__play-icon {
    background: rgba(255, 0, 0, 0.8);
    /* YouTube Red hover */
}

.video-card__title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ==========================================================================
   Video Modal
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    /* Standard horizontal width */
    height: auto;
    aspect-ratio: 16 / 9;
    /* Standard video ratio */
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-overlay.is-open .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    line-height: 1;
    padding: 10px;
    z-index: 10000;
}

.modal-iframe-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.modal-iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid #eee;
    font-size: 12px;
    color: #888;
}

/* ==========================================================================
   Breadcrumb
   ========================================================================== */
.breadcrumb {
    margin-bottom: 20px;
}

.breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    font-size: 11px;
    color: #666;
}

.breadcrumb__list li {
    display: flex;
    align-items: center;
}

.breadcrumb__list li:not(:last-child)::after {
    content: ">";
    margin: 0 8px;
    font-size: 10px;
}

.breadcrumb__list a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Article (Interview Detail)
   ========================================================================== */
.p-article {
    background: #fff;
}

.p-article__header {
    margin-bottom: 30px;
}

.p-article__visual {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;

}

.p-article__visual img {
    width: 100%;
}

.p-article__visual-copy {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    color: #fff;
}

.p-article__visual-badge {
    display: inline-block;
    background: #000;
    color: #fff;
    font-size: 12px;
    padding: 2px 10px;
    margin-bottom: 10px;
}

.p-article__visual-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
}

.p-article__meta {
    border-bottom: 2px solid #0356A6;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.p-article__title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 5px;
}

.p-article__date {
    font-size: 12px;
    color: #999;
}

.p-article__introduction {
    font-size: 17px;
    line-height: 1.8;
    font-weight: 500;
    color: #444;
    margin-bottom: 35px;
    letter-spacing: 0.02em;
}

.p-article__introduction strong {
    font-weight: 900;
}

.p-article__lead {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 40px;
}

.p-article__lead p {
    margin-bottom: 1.5em;
}

/* TOC */
.p-toc {
    background: #EAF2F9;
    padding: 25px 40px;
    margin-bottom: 40px;
}

.p-toc__title {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
    cursor: pointer;
}

.p-toc__title::before,
.p-toc__title::after {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-primary);
    transition: transform 0.3s ease;
}

/* Horizontal line (―) */
.p-toc__title::before {
    width: 12px;
    height: 2px;
}

/* Vertical line to create (+) */
.p-toc__title::after {
    width: 2px;
    height: 12px;
    left: 5px;
}

/* When expanded (―) */
.p-toc__title.is-active::after {
    transform: translateY(-50%) rotate(90deg);
    opacity: 0;
}

.p-toc__content {
    font-size: 13px;
    border-top: 1px solid #C5D9EA;
    display: none;
    /* JSのクラス制御に合わせる */
}

.p-toc__content.is-open {
    display: block;
    /* 開いている時に表示 */
}

.p-toc__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.p-toc__list>li {
    border-bottom: 1px solid #C5D9EA;
}

.p-toc__list a {
    display: block;
    padding: 10px 0;
    color: #333;
    text-decoration: none;
}

.p-toc__list a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

/* H3 nested list */
.p-toc__sub {
    margin-left: 1.5em;
    font-size: 0.95em;
    border-top: none !important;
    list-style: none;
    padding: 0;
}

.p-toc__sub li {
    border-bottom: 1px dotted #C5D9EA !important;
}

.p-toc__sub a {
    padding: 6px 0;
    color: #666;
}

/* Body Content */
.p-article__body {
    font-size: 15px;
    line-height: 1.8;
}

.p-article__body h2,
.p-article__body h3 {
    scroll-margin-top: 100px;
    /* 固定ヘッダー(71px) + 余白 */
}

.p-article__body h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ccc;
}

.p-article__body h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 35px 0 7px;
}

.p-article__body h4 {
    font-size: 15px;
    font-weight: 700;
    margin: 15px 0 0;
}

.p-article__body p {
    margin-bottom: 0.75em;
}

.p-article__body .u-kenten {
    position: relative;
}

.p-article__body .u-kenten::before {
    content: "●";
    position: absolute;
    top: -0.2em;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.3em;
    line-height: 1;
    color: inherit;
}

.p-article__body a,
.p-form__agreement a {
    color: #386cef;
    /*text-decoration: underline;*/
}

.p-article__body figure {
    margin: 30px 0;
}

.p-article__body figure img {
    border-radius: 10px;
    display: block;
}

.p-article__body figcaption {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
    text-align: center;
}

/* プロフィール紹介（写真+テキストの2カラム） */
.p-article__profile {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 30px 0;
}

.p-article__profile img {
    border-radius: 10px;
}

.p-article__profile p {
    margin-bottom: 0;
}

.p-article__profile p:first-child {
    flex: 0 0 140px;
}

.p-article__profile p:last-child {
    flex: 1;
}

@media screen and (min-width: 769px) {
    .p-article__profile {
        gap: 30px;
    }

    .p-article__profile p:first-child {
        flex: 0 0 140px;
    }
}

/* 本文内テーブル（p-cta__tableベース） */
.p-article__body table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    font-size: 14px;
}

.p-article__body table tr {
    border-top: 1px solid #C3C6C8;
    border-bottom: 1px solid #C3C6C8;
}

.p-article__body table th {
    background: #f8f9fa;
    padding: 12px 15px;
    text-align: left;
    color: #0356A6;
    font-weight: 700;
    width: 20%;
}

.p-article__body table.is-wide-th th {
    width: 25%;
}

.p-article__body table td {
    padding: 12px 15px;
    line-height: 1.5;
}

.p-article__body table td:nth-of-type(2),
.p-article__body table td:nth-of-type(3) {
    text-align: center;
}



/* CTA Section */
.p-article__cta {
    margin-top: 60px;
    border-top: 1px solid #eee;
    padding-top: 40px;
}

.p-cta {
    background: #fff;
    border: 1px solid #C5D9EA;
    padding: 30px;
}

h2.p-cta__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-primary);
    text-align: left;
    margin: 0;
    margin-bottom: 15px;
    border-bottom: none;
}

.p-cta__table-wrapper {
    overflow-x: auto;
}

/* CTA Section Table - 優先順位を確保するために親要素を含める */
.p-cta__table {
    margin-top: 0 !important;
}

.p-cta .p-cta__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.p-cta .p-cta__table tr {
    border-top: 1px solid #C3C6C8;
    border-bottom: 1px solid #C3C6C8;
}

.p-cta .p-cta__table th {
    background: none;
    padding: 10px;
    text-align: left;
    color: #0356A6;
}

.p-cta .p-cta__table td {
    padding: 10px;
}

.p-cta .p-cta__table td:nth-of-type(2),
.p-cta .p-cta__table td:nth-of-type(3) {
    text-align: center;
}

.btn-entry-small {
    display: inline-block;
    background: var(--color-accent);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
}

/* ==========================================================================
   Responsive Styles (Media Queries) - Consolidated at end for overrides
   ========================================================================== */
@media screen and (max-width: 768px) {
    :root {
        --width-max: 100%;
    }

    body {
        padding-top: 50px;
        /* 固定ヘッダー分の余白 */
    }

    .u-pc-only {
        display: none !important;
    }

    .u-sp-only {
        display: block !important;
    }

    .p-article__body h2,
    .p-article__body h3 {
        scroll-margin-top: 70px;
        /* SP固定ヘッダー(50px) + 余白 */
    }

    .u-sp-flex {
        display: flex !important;
    }

    .header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1005;
        padding: 0;
        border-bottom: none;
    }

    .header__logo img {
        height: 30px;
    }

    .header__logo-text {
        font-size: 12px;
        margin-left: 10px;
    }

    /* Table Vertical Stacking - Apply to article body tables */
    .p-article__body table th,
    .p-article__body table td,
    .p-article__body table.is-wide-th th {
        display: block;
        width: 100%;
        text-align: left !important;
        box-sizing: border-box;
    }

    .p-article__body table th {
        background: #f0f4f8;
        padding: 12px 15px 5px;
        border-bottom: none;
    }

    .p-article__body table td {
        padding: 5px 15px 15px;
        border-bottom: 1px solid #C3C6C8;
    }

    .p-article__body table tr {
        border: none;
    }

    /* Revert CTA Section Table - Maintain horizontal layout and original style */
    .p-article__cta table th,
    .p-article__cta table td {
        display: table-cell;
        width: auto;
        background: none;
        padding: 10px;
        border-bottom: none;
    }

    .p-article__cta table tr {
        border-top: 1px solid #C3C6C8;
        border-bottom: 1px solid #C3C6C8;
    }

    h2.p-cta__title {
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 15px;
    }

    .hero {
        margin-bottom: 0;
    }

    .hero__inner {
        flex-direction: column;
    }

    /* Related Videos (SP adjustments) */
    .extracted-related-videos {
        padding: 0 20px;
        margin-top: 30px;
    }

    .related-videos-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* Modal (SP adjustments) */
    .modal-content {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        border-radius: 0;
    }


    .hero__inner>div {
        width: 100%;
        padding: 0;
    }

    .hero__bg,
    .hero__img-area {
        width: 100%;
    }

    .hero__bg {
        order: 2;
        /* 文字（青背景）を下へ */
        padding: 40px 20px;
    }

    .hero__img-area {
        order: 1;
        /* 人物画像を上へ */
    }

    .hero__bg img {
        width: 100%;
        height: auto;
    }

    .l-container {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0;
        margin: 0 auto 0px;
    }

    .l-main {
        padding: 0;
    }

    .sp-recruit-section {
        padding: 30px 15px 5px;
        background: #e4eef7;
    }

    .sp-footer-info {
        padding: 30px 15px;
        background: #fff;
    }

    .sp-recruit-section {
        /*background: var(--color-gray-bg);*/
    }

    .l-sidebar {
        position: fixed;
        top: 50px;
        right: -100%;
        width: 100%;
        height: calc(100% - 50px);
        background: #fff;
        z-index: 1010;
        padding: 15px 20px;
        overflow-y: auto;
        transition: all 0.3s ease;
    }

    /* メニュー内のバナーを非表示 */
    .l-sidebar .p-sidebar-banner-oiwai {
        display: none !important;
    }

    .l-sidebar.is-active {
        right: 0;
    }

    .l-sidebar.u-pc-only {
        display: block !important;
        /* JSで操作するためにSPでも要素自体は維持し、CSSで配置 */
    }

    .main {
        padding-top: 20px;
    }

    .main-nav {
        margin: 20px 0 30px;
        padding: 0 20px;
        /* 親のパディングを無視して横幅いっぱい */
        overflow: hidden;
        /* 横揺れ防止 */
    }

    .main-nav__list {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 5px;
        /* スクロールバー用の余白 */
    }

    .main-nav__list::-webkit-scrollbar {
        display: none;
        /* スクロールバーは隠す */
    }

    .main-nav__list li {
        flex: 0 0 auto;
    }

    .main-nav__list a {
        padding: 8px 10px;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px;
    }

    /* SP出し分け制御 */
    /* ハンバーガーメニュー内（l-sidebar）の制御 */
    .l-sidebar .u-sp-content-only {
        display: none !important;
        /* メニュー内では隠す */
    }

    .l-sidebar .u-sp-nav-only {
        display: block !important;
        /* メニュー内では表示 */
    }

    /* ページ内セクション（u-sp-only）の制御 */
    .u-sp-only .u-sp-nav-only {
        display: none !important;
        /* ページ内では隠す */
    }

    .u-sp-only .u-sp-content-only {
        display: block !important;
        /* ページ内では表示 */
    }

    /* Inner Page Specific Responsive */
    .p-article {
        padding: 0 20px;
    }

    .breadcrumb {
        margin-bottom: 10px;
        margin-top: 10px;
        padding-left: 10px;
    }

    .p-article__visual {
        margin: 0 auto 20px;
        width: 100%;
        /* 画像だけは左右いっぱいに見せるためのネガティブマージン（任意） */
    }

    .p-article__visual-copy {
        display: none;
        /* SPデザインでは画像内にバッジ等が含まれるため、HTML上の要素は非表示 */
    }

    .p-article__header {
        margin-bottom: 25px;
    }

    .p-article__title {
        font-size: 20px;
        line-height: 1.4;
    }

    .p-article__lead {
        font-size: 14px;
        margin-bottom: 30px;
    }

    .p-article__toc {
        padding: 20px 15px;
        margin-bottom: 30px;
    }

    .p-article__toc-title {
        font-size: 15px;
    }

    .p-article__body h2 {
        font-size: 18px;
        margin: 30px 0 15px;
    }

    .p-article__body {
        font-size: 14px;
    }

    .p-cta {
        padding: 20px 15px;
    }

    .p-cta__title {
        font-size: 15px;
        line-height: 1.5;
        margin-bottom: 20px;
    }

    .p-cta__table {
        margin-top: 0;
    }

    .p-cta .p-cta__table {
        min-width: 0;
        /* 固定幅を解除 */
        display: block;
    }

    .p-cta .p-cta__table tbody,
    .p-cta .p-cta__table tr {
        display: block;
        width: 100%;
    }

    .p-cta .p-cta__table tr {
        display: flex;
        flex-wrap: wrap;
        padding: 10px 0;
    }

    .p-cta .p-cta__table th {
        width: 100%;
        padding: 5px 0;
        font-size: 14px;
        border-bottom: none;
    }

    .p-cta .p-cta__table td {
        flex: 1;
        padding: 5px 2px;
        font-size: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-bottom: none;
        word-break: break-all;
    }

    .p-cta .p-cta__table td:nth-of-type(1) {
        justify-content: start;
    }

    .p-cta .p-cta__table td:last-child {
        flex: 0 0 auto;
        padding-left: 5px;
    }
}

/* ==========================================================================
   Entry Form (MW WP Form)
   ========================================================================== */
@media screen and (max-width: 768px) {
    .page-template-page-entry .l-main {
        padding: 0 15px;
    }
}

.p-form {
    margin-top: 30px;
}

.p-form__note {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 40px;
    color: #444;
}

.p-form__required-label {
    color: #e33;
    margin-left: 4px;
    font-weight: bold;
}

.p-form__list {
    border-top: 1px solid #eee;
}

.p-form__header {
    padding: 20px 0 10px;
    font-weight: 700;
    font-size: 15px;
    color: #333;
}

.p-form__content {
    padding: 0 0 20px;
    margin-left: 0;
}

.p-form__content input[type="text"],
.p-form__content input[type="email"],
.p-form__content textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
    background: #fbfbfb;
}

.p-form__content select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
    background: #fbfbfb;
    /* カスタム矢印の実装 */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23333%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpolyline%20points%3D%226%209%2012%2015%2018%209%22%3E%3C%2Fpolyline%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-size: 18px;
    background-position: right 12px center;
    /* 右端から16pxに配置（標準より4px内側へ） */
    padding-right: 40px;
    /* 矢印と文字の重なり防止 */
    cursor: pointer;
}

.p-form__content textarea {
    height: 150px;
}

.p-form__sub-note {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
}

.p-form__agreement {
    margin: 40px 0 30px;
    text-align: center;
    font-size: 14px;
}

.p-form__privacy-notice {
    max-height: 220px;
    overflow-y: auto;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #f7f7f7;
    font-size: 13px;
    line-height: 1.7;
    color: #444;
}

.p-form__content .mwform-checkbox-field label {
    font-weight: 700;
}

.p-form__submit {
    text-align: center;
    margin-top: 30px;
}

.btn-submit {
    display: inline-block;
    background: var(--color-accent);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    padding: 15px 80px;
    border-radius: 40px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    background: #cc2222;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(227, 51, 51, 0.3);
}

/* Validation Errors */
.mwform-error-message {
    color: #e33;
    font-size: 13px;
    font-weight: 700;
    margin-top: 5px;
    display: block;
}

@media (min-width: 768px) {
    .p-form__list {
        display: flex;
        flex-wrap: wrap;
    }

    .p-form__header {
        width: 25%;
        padding: 30px 20px;
        border-bottom: 1px solid #eee;
        background: #f8f9fa;
        display: flex;
        align-items: center;
    }

    .p-form__content {
        width: 75%;
        padding: 25px 30px;
        border-bottom: 1px solid #eee;
    }

    .p-form__content--full {
        width: 100%;
        padding-left: 0;
    }
}

/* ==========================================================================
   Page Top Button
   ========================================================================== */
.p-page-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 30px;
    height: 30px;
    background-color: #000;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.p-page-top.is-show {
    opacity: 1;
    visibility: visible;
}

.p-page-top:hover {
    opacity: 0.8;
    transform: translateY(-5px);
}

.p-page-top__arrow {
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 6px 8px 6px;
    border-color: transparent transparent #ffffff transparent;
}

@media screen and (max-width: 767px) {
    .p-page-top {
        right: 15px;
        bottom: 15px;
        width: 30px;
        height: 30px;
    }

    .p-page-top__arrow {
        border-width: 0 5px 7px 5px;
    }
}

/* ==========================================================================
   Interview Job Title Styles
   ========================================================================== */
.card__job-title {
    font-size: 12px;
    color: #666;
    margin-top: 0;
    line-height: 1.4;
}

.p-article__label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.p-article__job-title {
    font-size: 14px;
    color: #555;
    margin-top: 8px;
    font-weight: 500;
}

.sidebar-nav-sub li a {
    display: block !important;
}

.sidebar-nav-sub__title {
    display: block !important;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 2px;
}

.sidebar-nav-sub__job {
    display: block !important;
    font-size: 11px;
    color: #666;
    line-height: 1.3;
}