@charset "UTF-8";
/* ==========================================================================
   h2online Theme - front.css
   front-page.php 専用スタイル（is_front_page() 時のみ読み込まれる）
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Hero - レイアウト
   -------------------------------------------------------------------------- */
.h2-hero {
    position: relative;
    background-color: var(--h2-color-black);
    color: var(--h2-color-white);
    overflow: hidden;
    isolation: isolate;
}

/* 背景の薄い斜めライン（左側コンテンツ部に2本） */
.h2-hero::before,
.h2-hero::after {
    content: "";
    position: absolute;
    top: -10%;
    bottom: -10%;
    width: 2px;
    background: var(--h2-color-white);
    opacity: .06;
    transform: skewX(-20deg);
    pointer-events: none;
    z-index: 0;
}
.h2-hero::before { left: 12%; }
.h2-hero::after  { left: 16%; }

.h2-hero__inner {
    position: relative;
    z-index: 1;
    max-width: var(--h2-container);
    margin: 0 auto;
    padding: clamp(40px, 5vw, 72px) var(--h2-container-pad) clamp(48px, 6vw, 88px);
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    gap: clamp(24px, 4vw, 56px);
    min-height: clamp(420px, 55vw, 620px);
}

/* --------------------------------------------------------------------------
   2. Hero - 左：テキストブロック
   -------------------------------------------------------------------------- */
.h2-hero__content {
    position: relative;
    z-index: 2;
}

.h2-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 22px 8px 14px;
    background: var(--h2-color-red-deep);
    color: var(--h2-color-white);
    font-family: var(--h2-font-en);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .25em;
    clip-path: polygon(6% 0, 100% 0, 94% 100%, 0% 100%);
    margin-bottom: clamp(20px, 3vw, 32px);
}
.h2-hero__eyebrow-bar {
    display: inline-block;
    width: 24px;
    height: 2px;
    background: var(--h2-color-white);
}

.h2-hero__title {
    margin: 0 0 clamp(20px, 3vw, 32px);
    font-size: clamp(28px, 5.2vw, 58px);
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: .01em;
    color: var(--h2-color-white);
}
.h2-hero__title-line { display: block; }

.h2-hero__lead {
    margin: 0 0 clamp(28px, 4vw, 44px);
    max-width: 36em;
    color: var(--h2-color-white);
    line-height: 1.9;
    font-size: clamp(13px, 1vw, 15px);
}

/* --------------------------------------------------------------------------
   3. Hero - CTAボタン
   -------------------------------------------------------------------------- */
.h2-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0; /* 添付デザインに寄せて隣接させる */
}

.h2-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    min-width: 240px;
    padding: 18px 24px;
    border: 1px solid transparent;
    font-family: var(--h2-font-jp);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .1em;
    text-decoration: none;
    transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.h2-btn__label { display: inline-block; }
.h2-btn__arrow {
    margin-left: 24px;
    display: inline-flex;
    align-items: center;
    font-family: var(--h2-font-en);
    font-size: 20px;
    line-height: 1;
    transition: transform .25s ease;
}
.h2-btn:hover .h2-btn__arrow { transform: translateX(6px); }

.h2-btn--ghost {
    background: var(--h2-color-white);
    color: var(--h2-color-black);
    border-color: var(--h2-color-white);
}
.h2-btn--ghost:hover {
    background: var(--h2-color-black);
    color: var(--h2-color-white);
    border-color: var(--h2-color-white);
}

.h2-btn--primary {
    background: var(--h2-color-red);
    color: var(--h2-color-white);
    border-color: var(--h2-color-red);
}
.h2-btn--primary:hover {
    background: var(--h2-color-red-deep);
    border-color: var(--h2-color-red-deep);
    color: var(--h2-color-white);
}

/* --------------------------------------------------------------------------
   4. Hero - 右：仮画像エリア
   -------------------------------------------------------------------------- */
.h2-hero__visual {
    position: relative;
    z-index: 1;
    align-self: stretch;
    display: flex;
}

/* 画像枠：完成イラストはここに <img class="h2-hero__media-image"> として入る */
.h2-hero__media {
    position: relative;
    margin: 0;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid var(--h2-color-gray-line);
    background: var(--h2-color-black);
}
.h2-hero__media-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* 仮画像中は実画像クラスがあっても表示しない（万一両方残った場合の保険） */
.h2-hero__media[data-h2-placeholder="true"] .h2-hero__media-image {
    display: none;
}

/* --------------------------------------------------------------------------
   5. CSSのみで構成する仮画像
   -------------------------------------------------------------------------- */
.h2-hero__placeholder {
    position: absolute;
    inset: 0;
    overflow: hidden;
    /* 背景：太い斜めの赤・黒パネル + 細い白い斜めライン */
    background:
        repeating-linear-gradient(
            -22deg,
            transparent 0 38px,
            rgba(255, 255, 255, .05) 38px 40px
        ),
        linear-gradient(
            115deg,
            var(--h2-color-red-deep) 0 18%,
            var(--h2-color-black)    18% 36%,
            var(--h2-color-red)      36% 54%,
            var(--h2-color-black)    54% 76%,
            var(--h2-color-red-deep) 76% 100%
        );
}

/* 月（CSSの円） */
.h2-hero__placeholder-moon {
    position: absolute;
    top: 12%;
    right: 12%;
    width: clamp(80px, 14vw, 150px);
    height: clamp(80px, 14vw, 150px);
    border-radius: 50%;
    background: var(--h2-color-white);
    box-shadow:
        inset -10px -8px 0 0 rgba(0, 0, 0, .06);
    z-index: 3;
}
/* 月のクレーター */
.h2-hero__placeholder-moon::before,
.h2-hero__placeholder-moon::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 0, 0, .07);
}
.h2-hero__placeholder-moon::before {
    width: 18%;
    height: 18%;
    top: 28%;
    left: 22%;
    box-shadow:
        110% 60% 0 -2px rgba(0, 0, 0, .07),
        50% 130% 0 -1px rgba(0, 0, 0, .06);
}
.h2-hero__placeholder-moon::after {
    width: 12%;
    height: 12%;
    bottom: 22%;
    left: 38%;
}

/* 星（小さな点） */
.h2-hero__placeholder-stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    background-image:
        radial-gradient(1px 1px at 14% 22%, var(--h2-color-white) 99%, transparent 100%),
        radial-gradient(1px 1px at 8% 48%, var(--h2-color-white) 99%, transparent 100%),
        radial-gradient(1px 1px at 24% 66%, var(--h2-color-white) 99%, transparent 100%),
        radial-gradient(1px 1px at 6% 80%, var(--h2-color-white) 99%, transparent 100%),
        radial-gradient(1px 1px at 60% 14%, var(--h2-color-white) 99%, transparent 100%),
        radial-gradient(1px 1px at 88% 70%, var(--h2-color-white) 99%, transparent 100%),
        radial-gradient(1px 1px at 50% 88%, var(--h2-color-white) 99%, transparent 100%);
    opacity: .6;
}

/* CSSロケット */
.h2-hero__rocket {
    position: absolute;
    bottom: 18%;
    left: 30%;
    width: clamp(46px, 6.5vw, 72px);
    height: clamp(150px, 22vw, 230px);
    z-index: 4;
    transform: rotate(-6deg);
    transform-origin: 50% 100%;
}
.h2-hero__rocket-body {
    position: absolute;
    inset: 0;
    background: var(--h2-color-white);
    clip-path: polygon(50% 0, 100% 22%, 100% 78%, 86% 100%, 14% 100%, 0 78%, 0 22%);
}
.h2-hero__rocket-window {
    position: absolute;
    top: 38%;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(12px, 1.6vw, 18px);
    height: clamp(12px, 1.6vw, 18px);
    border-radius: 50%;
    background: var(--h2-color-red);
    box-shadow:
        0 0 0 3px var(--h2-color-white),
        0 0 0 4px var(--h2-color-black);
}
.h2-hero__rocket-stripe {
    position: absolute;
    left: 8%;
    right: 8%;
    height: 6%;
    background: var(--h2-color-red);
    bottom: 22%;
}
.h2-hero__rocket-fin-left,
.h2-hero__rocket-fin-right {
    position: absolute;
    bottom: 0;
    width: 38%;
    height: 28%;
    background: var(--h2-color-red);
}
.h2-hero__rocket-fin-left {
    left: -32%;
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
}
.h2-hero__rocket-fin-right {
    right: -32%;
    clip-path: polygon(0 0, 100% 100%, 0 100%);
}
.h2-hero__rocket-flame {
    position: absolute;
    bottom: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 28%;
    background: var(--h2-color-red);
    clip-path: polygon(50% 100%, 0 0, 100% 0);
}

/* PLACEHOLDER バッジ */
.h2-hero__placeholder-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    background: var(--h2-color-white);
    color: var(--h2-color-black);
    font-family: var(--h2-font-en);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .25em;
    z-index: 5;
}

/* テキストラベル */
.h2-hero__placeholder-text {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    padding: 12px 16px;
    background: rgba(5, 5, 5, .8);
    border-left: 4px solid var(--h2-color-red);
    color: var(--h2-color-white);
    font-family: var(--h2-font-en);
    font-size: 14px;
    letter-spacing: .15em;
    line-height: 1.4;
    z-index: 5;
}
.h2-hero__placeholder-text small {
    display: block;
    margin-top: 4px;
    font-family: var(--h2-font-jp);
    font-size: 11px;
    letter-spacing: .1em;
    color: var(--h2-color-gray-text);
}

/* --------------------------------------------------------------------------
   6. SERVICE セクション
   -------------------------------------------------------------------------- */
.h2-service {
    position: relative;
    background-color: var(--h2-color-black);
    color: var(--h2-color-white);
    padding: clamp(48px, 6vw, 88px) 0 clamp(56px, 7vw, 100px);
    overflow: hidden;
    isolation: isolate;
    border-top: 1px solid var(--h2-color-gray-line);
}

/* 背景の斜めライン装飾（赤） */
.h2-service::before,
.h2-service::after {
    content: "";
    position: absolute;
    right: -8%;
    width: 36%;
    height: 8px;
    pointer-events: none;
    z-index: 0;
    background:
        linear-gradient(
            to bottom,
            var(--h2-color-red) 0 2px,
            transparent 2px 4px,
            var(--h2-color-red) 4px 6px,
            transparent 6px 8px
        );
    transform: rotate(-26deg);
    transform-origin: right center;
}
.h2-service::before { top: 14%; }
.h2-service::after  { bottom: 12%; }

.h2-service__inner {
    position: relative;
    z-index: 1;
    max-width: var(--h2-container);
    margin: 0 auto;
    padding: 0 var(--h2-container-pad);
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: clamp(16px, 2.4vw, 32px);
    align-items: start;
}

/* 左の見出し */
.h2-service__heading {
    padding-top: 4px;
    color: var(--h2-color-white);
}

.h2-service__heading-tag {
    display: inline-block;
    padding: 6px 26px 6px 14px;
    background: var(--h2-color-red);
    color: var(--h2-color-white);
    font-family: var(--h2-font-en);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .28em;
    clip-path: polygon(0 0, 100% 0, 86% 100%, 0% 100%);
    margin-bottom: 12px;
}

.h2-service__heading-text {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .22em;
    color: var(--h2-color-white);
}

/* カード並び（PCでは必ず4列キープ） */
.h2-service__list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

/* 個別カード（<a>として全体クリック可） */
.h2-service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--h2-color-white);
    color: var(--h2-color-black);
    padding: 22px 18px 20px;
    text-decoration: none;
    overflow: hidden;
    transition: transform .25s ease;
}

/* 左の赤い縦バー */
.h2-service-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    bottom: 18px;
    width: 5px;
    background: var(--h2-color-red);
    transition: width .25s ease;
}

.h2-service-card:hover {
    transform: translateY(-4px);
}
.h2-service-card:hover::before {
    width: 8px;
}

/* アイコン枠（黒丸）— サイズを控えめに */
.h2-service-card__icon {
    width: 60px;
    height: 60px;
    margin: 2px auto 14px;
    border-radius: 50%;
    background: var(--h2-color-black);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.h2-service-card__icon svg {
    width: 58%;
    height: 58%;
    display: block;
}
/* 後で <img> に差し替えるとき用 */
.h2-service-card__icon img {
    width: 58%;
    height: 58%;
    object-fit: contain;
    display: block;
}

/* タイトル */
.h2-service-card__title {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 700;
    color: var(--h2-color-black);
    text-align: center;
    letter-spacing: .04em;
    line-height: 1.4;
}

/* 説明文 */
.h2-service-card__desc {
    margin: 0 0 16px;
    font-size: 12px;
    line-height: 1.75;
    color: var(--h2-color-black);
    flex-grow: 1;
}

/* 「詳しく見る →」 */
.h2-service-card__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 4px;
    color: var(--h2-color-red);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .15em;
}
.h2-service-card__link::after {
    content: "→";
    font-family: var(--h2-font-en);
    font-size: 16px;
    line-height: 1;
    transition: transform .25s ease;
}
.h2-service-card:hover .h2-service-card__link::after {
    transform: translateX(6px);
}

/* レスポンシブ
   - 〜1024px : 見出しを上に移動して、カードは横一列のままフル幅で並べる
   - 〜640px  : カードを1列にスタック
   ----------------------------------------------------- */
@media (max-width: 1024px) {
    .h2-service__inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .h2-service__heading {
        display: flex;
        align-items: center;
        gap: 16px;
        padding-top: 0;
    }
    .h2-service__heading-tag {
        margin-bottom: 0;
    }
    /* カードはここでも 4 列を維持 */
    .h2-service__list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .h2-service__heading-text {
        font-size: 16px;
    }
    .h2-service__list {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .h2-service-card {
        padding: 22px 22px 20px;
    }
    .h2-service-card__icon {
        width: 64px;
        height: 64px;
    }
}

/* --------------------------------------------------------------------------
   7. レスポンシブ（HERO）
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
    .h2-hero__inner {
        grid-template-columns: 1fr;
        min-height: 0;
    }
    .h2-hero__visual { order: -1; }
    .h2-hero__media { aspect-ratio: 16 / 10; }
}

@media (max-width: 768px) {
    .h2-hero__inner {
        gap: 28px;
        padding-top: clamp(24px, 4vw, 32px);
    }
    .h2-hero__title { font-size: clamp(24px, 7.5vw, 36px); }
    .h2-hero__lead  { font-size: 14px; }
    .h2-hero__actions {
        flex-direction: column;
        align-items: stretch;
    }
    .h2-btn {
        min-width: 0;
        width: 100%;
    }
    .h2-hero__media { aspect-ratio: 4 / 3; }
}
