@charset "UTF-8";
/* ==========================================================================
   h2online Theme - common.css
   黒・赤・白のみ。構成主義／ソ連レトロフューチャー風。
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Variables
   -------------------------------------------------------------------------- */
:root {
    /* ベースカラー（黒・赤・白のみ） */
    --h2-color-black: #050505;
    --h2-color-black-2: #0d0d0d;
    --h2-color-black-3: #161616;
    --h2-color-white: #ffffff;
    --h2-color-white-soft: #f4f4f4;
    --h2-color-gray-line: #2a2a2a;     /* 黒寄りのライン */
    --h2-color-gray-text: #b8b8b8;     /* 補助テキスト（白寄り） */

    /* 赤（深め・くすませた構成主義レッド） */
    --h2-color-red: #c8102e;
    --h2-color-red-deep: #9b0d24;
    --h2-color-red-dark: #5a0814;

    /* 機能ロール */
    --h2-bg: var(--h2-color-black);
    --h2-bg-panel: var(--h2-color-black-2);
    --h2-fg: var(--h2-color-white);
    --h2-accent: var(--h2-color-red);

    /* 余白・サイズ */
    --h2-container: 1240px;
    --h2-container-pad: clamp(16px, 4vw, 40px);
    --h2-header-h: 88px;

    /* タイポグラフィ */
    --h2-font-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
    --h2-font-en: "Bebas Neue", "Oswald", "Archivo Black", "Helvetica Neue", Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   2. Reset / Base
   -------------------------------------------------------------------------- */
html { overflow-x: hidden; }
body.h2-body {
    margin: 0;
    background-color: var(--h2-bg);
    color: var(--h2-fg);
    font-family: var(--h2-font-jp);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
a {
    color: inherit;
    text-decoration: none;
    transition: color .2s ease;
}
a:hover { color: var(--h2-color-white); }

ul, ol { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; }

/* スクリーンリーダー専用 */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}
.h2-skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    background: var(--h2-color-red);
    color: var(--h2-color-white);
    padding: 8px 16px;
    z-index: 10000;
}
.h2-skip-link:focus {
    left: 8px;
    top: 8px;
    width: auto;
    height: auto;
}

/* --------------------------------------------------------------------------
   3. Header
   -------------------------------------------------------------------------- */
.h2-header {
    position: relative;
    background-color: var(--h2-color-black);
    color: var(--h2-color-white);
    border-bottom: 1px solid var(--h2-color-gray-line);
    isolation: isolate;
}

/* 背景の斜めライン装飾（CSSのみで再現） */
.h2-header::before,
.h2-header::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--h2-color-white);
    opacity: .08;
    transform: skewX(-18deg);
    pointer-events: none;
    z-index: 0;
}
.h2-header::before { left: 28%; }
.h2-header::after  { left: 32%; }

/* 上部の細い赤いライン */
.h2-header__accent {
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 38%;
    height: 4px;
    background: linear-gradient(90deg, var(--h2-color-red) 0%, var(--h2-color-red-deep) 100%);
    transform: skewX(-30deg) translateX(-4px);
    transform-origin: left bottom;
}

.h2-header__inner {
    position: relative;
    z-index: 1;
    max-width: var(--h2-container);
    margin: 0 auto;
    padding: 0 var(--h2-container-pad);
    height: var(--h2-header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* ロゴ周辺：左の赤い斜めパネル */
.h2-header__brand {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}
.h2-header__brand::before {
    content: "";
    position: absolute;
    top: 0;
    left: calc(-1 * var(--h2-container-pad) - 80px);
    bottom: 0;
    width: 220px;
    background-color: var(--h2-color-red);
    transform: skewX(-22deg);
    transform-origin: top left;
    z-index: -1;
}

/* ロゴ本体 */
.h2-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--h2-color-white);
    height: 100%;
    padding-right: 20px;
}
.h2-logo__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--h2-color-white);
    color: var(--h2-color-red-deep);
    font-family: var(--h2-font-en);
    font-weight: 900;
    font-size: 22px;
    letter-spacing: .02em;
    clip-path: polygon(15% 0, 100% 0, 85% 100%, 0% 100%);
    flex-shrink: 0;
}
.h2-logo__mark-inner {
    transform: skewX(15deg);
    display: inline-block;
}
.h2-logo__text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}
.h2-logo__image {
    max-height: 26px;
    width: auto;
    /* 既存ロゴをそのまま使うので白に反転調整できるようにする */
    filter: brightness(0) invert(1);
}
.h2-logo__tagline {
    margin-top: 6px;
    font-family: var(--h2-font-en);
    font-size: 10px;
    letter-spacing: .22em;
    color: var(--h2-color-white);
    opacity: .85;
}

/* グローバルナビ */
.h2-nav {
    display: flex;
    align-items: center;
    height: 100%;
}
.h2-nav__list {
    display: flex;
    align-items: center;
    gap: clamp(18px, 3vw, 40px);
}
.h2-nav__item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}
.h2-nav__link {
    position: relative;
    display: inline-block;
    padding: 8px 0;
    color: var(--h2-color-white);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .12em;
}
.h2-nav__label {
    position: relative;
    z-index: 1;
}
/* hover時：赤いラインが左から右へ伸びる */
.h2-nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background-color: var(--h2-color-red);
    transition: width .35s cubic-bezier(.2, .7, .2, 1);
}
.h2-nav__link:hover::after,
.h2-nav__link:focus-visible::after,
.h2-nav__item.current-menu-item > .h2-nav__link::after,
.h2-nav__item.current_page_item > .h2-nav__link::after,
.h2-nav__item.is-active > .h2-nav__link::after {
    width: 100%;
}

/* スマホメニュー開閉ボタン（PCでは非表示） */
.h2-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid var(--h2-color-white);
    color: var(--h2-color-white);
    cursor: pointer;
    position: relative;
    padding: 0;
}
.h2-menu-toggle__bar {
    position: absolute;
    left: 50%;
    width: 22px;
    height: 2px;
    background: var(--h2-color-white);
    transform: translateX(-50%);
    transition: transform .25s ease, opacity .25s ease, top .25s ease;
}
.h2-menu-toggle__bar:nth-child(1) { top: 14px; }
.h2-menu-toggle__bar:nth-child(2) { top: 21px; }
.h2-menu-toggle__bar:nth-child(3) { top: 28px; }
.h2-menu-toggle[aria-expanded="true"] .h2-menu-toggle__bar:nth-child(1) {
    top: 21px; transform: translateX(-50%) rotate(45deg);
}
.h2-menu-toggle[aria-expanded="true"] .h2-menu-toggle__bar:nth-child(2) {
    opacity: 0;
}
.h2-menu-toggle[aria-expanded="true"] .h2-menu-toggle__bar:nth-child(3) {
    top: 21px; transform: translateX(-50%) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   4. Main / フォールバック表示用の最低限スタイル
   -------------------------------------------------------------------------- */
.h2-main {
    background-color: var(--h2-color-black);
    color: var(--h2-color-white);
    min-height: 40vh;
}

.h2-page,
.h2-front {
    padding: clamp(40px, 8vw, 100px) 0;
}
.h2-page__inner,
.h2-front__inner {
    max-width: var(--h2-container);
    margin: 0 auto;
    padding: 0 var(--h2-container-pad);
}
.h2-page__eyebrow,
.h2-front__eyebrow-text {
    font-family: var(--h2-font-en);
    letter-spacing: .25em;
    color: var(--h2-color-red);
    font-size: 12px;
    font-weight: 700;
}
.h2-page__title,
.h2-front__title {
    margin: 12px 0 24px;
    font-size: clamp(28px, 4.5vw, 48px);
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: .02em;
}
.h2-front__title span { display: block; }
.h2-page__lead,
.h2-front__lead {
    max-width: 720px;
    color: var(--h2-color-gray-text);
}

.h2-front__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 6px 14px;
    background: var(--h2-color-red-deep);
    color: var(--h2-color-white);
    font-size: 12px;
    letter-spacing: .25em;
    font-weight: 700;
    clip-path: polygon(8% 0, 100% 0, 92% 100%, 0% 100%);
}
.h2-front__eyebrow-bar {
    display: inline-block;
    width: 24px;
    height: 2px;
    background: var(--h2-color-white);
}

.h2-front__notice {
    margin-top: 48px;
    padding: 18px 22px;
    border: 1px dashed var(--h2-color-red);
    color: var(--h2-color-gray-text);
    background: var(--h2-color-black-2);
}
.h2-front__notice strong {
    color: var(--h2-color-red);
    margin-right: 8px;
    letter-spacing: .15em;
}

.h2-post-list {
    border-top: 1px solid var(--h2-color-gray-line);
}
.h2-post-list__item {
    border-bottom: 1px solid var(--h2-color-gray-line);
}
.h2-post-list__link {
    display: flex;
    gap: 24px;
    padding: 18px 0;
    color: var(--h2-color-white);
}
.h2-post-list__date {
    color: var(--h2-color-red);
    font-family: var(--h2-font-en);
    letter-spacing: .1em;
    min-width: 110px;
}
.h2-post-list__link:hover .h2-post-list__title {
    text-decoration: underline;
    text-decoration-color: var(--h2-color-red);
    text-underline-offset: 4px;
}

/* --------------------------------------------------------------------------
   5. Footer
   -------------------------------------------------------------------------- */
.h2-footer {
    position: relative;
    background-color: var(--h2-color-black);
    color: var(--h2-color-white);
    border-top: 1px solid var(--h2-color-gray-line);
    overflow: hidden;
    isolation: isolate;
}

/* 上部に重ねる赤い斜めライン */
.h2-footer__accent {
    position: absolute;
    left: -10%;
    top: 0;
    width: 60%;
    height: 6px;
    background: linear-gradient(90deg, var(--h2-color-red) 0%, var(--h2-color-red-deep) 100%);
    transform: skewX(-30deg);
    transform-origin: left top;
}
/* 装飾の斜めライン */
.h2-footer::before,
.h2-footer::after {
    content: "";
    position: absolute;
    width: 2px;
    background: var(--h2-color-white);
    opacity: .05;
    transform: skewX(-22deg);
    pointer-events: none;
    z-index: 0;
}
.h2-footer::before { left: 18%; top: -10%; bottom: -10%; }
.h2-footer::after  { right: 22%; top: -10%; bottom: -10%; }

.h2-footer__inner {
    position: relative;
    z-index: 1;
    max-width: var(--h2-container);
    margin: 0 auto;
    padding: clamp(40px, 6vw, 72px) var(--h2-container-pad) 0;
}
.h2-footer__top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 56px;
    border-bottom: 1px solid var(--h2-color-gray-line);
}
.h2-footer__brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}
.h2-logo--footer {
    padding-right: 0;
    height: auto;
}
.h2-footer__desc {
    margin: 0;
    color: var(--h2-color-gray-text);
    font-size: 14px;
    line-height: 1.8;
    max-width: 32em;
}
.h2-footer__heading {
    margin: 0 0 18px;
    font-family: var(--h2-font-en);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .25em;
    color: var(--h2-color-red);
    position: relative;
    padding-left: 18px;
}
.h2-footer__heading::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 2px;
    background: var(--h2-color-red);
}

.h2-footer-nav__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 24px;
}
.h2-footer-nav__list .menu-item a,
.h2-footer-nav__link {
    display: inline-block;
    padding: 6px 0;
    color: var(--h2-color-white);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .08em;
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease, color .2s ease;
}
.h2-footer-nav__list .menu-item a:hover,
.h2-footer-nav__link:hover {
    color: var(--h2-color-red);
    border-bottom-color: var(--h2-color-red);
}

.h2-footer-social__list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.h2-footer-social__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--h2-color-black-2);
    border: 1px solid var(--h2-color-gray-line);
    color: var(--h2-color-white);
    font-size: 13px;
    letter-spacing: .08em;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.h2-footer-social__link:hover {
    background: var(--h2-color-red-dark);
    border-color: var(--h2-color-red);
    color: var(--h2-color-white);
}
.h2-footer-social__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--h2-color-red);
    color: var(--h2-color-white);
    font-family: var(--h2-font-en);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    clip-path: polygon(15% 0, 100% 0, 85% 100%, 0% 100%);
}

.h2-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 24px 0 28px;
    flex-wrap: wrap;
}
.h2-footer__copyright {
    margin: 0;
    color: var(--h2-color-gray-text);
    font-size: 12px;
    letter-spacing: .12em;
    font-family: var(--h2-font-en);
}
.h2-footer__signature {
    margin: 0;
    display: flex;
    gap: 6px;
    color: var(--h2-color-white);
    font-family: var(--h2-font-en);
    font-size: 12px;
    letter-spacing: .25em;
    opacity: .55;
}
.h2-footer__signature span:nth-child(even) { color: var(--h2-color-red); opacity: 1; }

/* --------------------------------------------------------------------------
   6. Responsive: タブレット
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
    .h2-footer__top {
        grid-template-columns: 1fr 1fr;
    }
    .h2-footer__brand {
        grid-column: 1 / -1;
    }
}

/* --------------------------------------------------------------------------
   7. Responsive: スマホ
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    :root { --h2-header-h: 72px; }

    /* ヘッダー */
    .h2-header__brand::before {
        width: 180px;
        left: calc(-1 * var(--h2-container-pad) - 60px);
    }
    .h2-logo__image { max-height: 22px; }
    .h2-logo__tagline { font-size: 9px; letter-spacing: .18em; }
    .h2-logo__mark { width: 40px; height: 40px; font-size: 18px; }

    .h2-menu-toggle { display: inline-flex; align-items: center; justify-content: center; }

    /* ナビをドロワーに */
    .h2-nav {
        position: fixed;
        top: var(--h2-header-h);
        left: 0;
        right: 0;
        bottom: 0;
        height: auto;
        background: var(--h2-color-black);
        padding: 24px var(--h2-container-pad) 32px;
        transform: translateY(-110%);
        transition: transform .3s ease;
        z-index: 50;
        border-top: 1px solid var(--h2-color-gray-line);
        overflow-y: auto;
    }
    .h2-nav::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        width: 40%;
        height: 4px;
        background: var(--h2-color-red);
        transform: skewX(-30deg) translateX(-4px);
        transform-origin: left top;
    }
    .h2-nav.is-open { transform: translateY(0); }

    .h2-nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    .h2-nav__item {
        height: auto;
        border-bottom: 1px solid var(--h2-color-gray-line);
    }
    .h2-nav__link {
        display: block;
        padding: 16px 4px;
        font-size: 16px;
    }
    .h2-nav__link::after { bottom: 12px; }

    /* メニュー開時の body スクロール抑止 */
    body.h2-menu-open { overflow: hidden; }

    /* フッター */
    .h2-footer__top {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-bottom: 32px;
    }
    .h2-footer-nav__list {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    .h2-footer__bottom {
        justify-content: flex-start;
    }
    .h2-footer__signature {
        font-size: 10px;
        letter-spacing: .18em;
    }
}

/* --------------------------------------------------------------------------
   8. アクセシビリティ
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .h2-nav__link::after,
    .h2-nav,
    .h2-menu-toggle__bar {
        transition: none !important;
    }
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--h2-color-red);
    outline-offset: 3px;
}
