/* トップページ専用（ヒーロー・料金/トライアル）。index.html のインライン <style> の後に読み込む。 */

html {
    /* 他ページからの /#trial などの直接遷移でも、固定ヘッダーの下に見出しが来るようにする */
    scroll-padding-top: 88px;
}

/* ハンバーガーを <button> にしたため、ブラウザ既定のボタン装飾を外す */
button.menu-toggle {
    appearance: none;
    background: transparent;
    border: 0;
    padding: 0;
    font: inherit;
}

button.menu-toggle::before {
    /* 見た目は 30x20 のまま、タップ領域を 44px 四方に広げる */
    content: "";
    position: absolute;
    inset: -12px -7px;
}

/* ===== ヒーロー ===== */
.home-hero {
    padding: 132px 0 64px;
    background: linear-gradient(180deg, #f5f8fc 0%, #edf2f8 100%);
}

.home-hero__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
    grid-template-areas: "copy media";
    column-gap: 40px;
    align-items: center;
}

.home-hero__copy { grid-area: copy; }
.home-hero__media { grid-area: media; }

.home-hero__title {
    margin: 0 0 24px;
    color: #1a365d;
    font-weight: 700;
}

.home-hero__title-sub {
    display: block;
    margin-bottom: 8px;
    font-size: 1.375rem;
    line-height: 1.5;
    color: #2c5282;
}

.home-hero__title-main {
    display: block;
    font-size: clamp(2.25rem, 3.3vw, 3rem);
    line-height: 1.32;
    letter-spacing: -0.01em;
}

.home-hero__lead {
    max-width: 33em;
    margin: 0 0 32px;
    font-size: 1.0625rem;
    line-height: 1.9;
    color: #4a5568;
}

.home-hero__lead strong {
    color: #1a365d;
    font-weight: 700;
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.home-hero__actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 32px;
    font-size: 1rem;
    white-space: nowrap;
    border-radius: 8px;
}

.home-hero__actions .btn-primary {
    min-width: 240px;
    background: #3182ce !important;
    box-shadow: none !important;
    transform: none !important;
    border-radius: 6px;
}
.home-hero__actions .btn-primary:hover { background: #2565a3 !important; }
.home-hero__actions .btn:focus-visible { outline: 3px solid #1a365d; outline-offset: 4px; }

.home-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.875rem;
    color: #4a5568;
}

.home-hero__meta li:not(.home-hero__meta-link)::before {
    content: "✓";
    margin-right: 6px;
    color: #3182ce;
    font-weight: 700;
}

.home-hero__meta-link a {
    color: #2c5282;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(44, 82, 130, 0.35);
}

.home-hero__meta-link a:hover {
    color: #1a365d;
    border-bottom-color: #1a365d;
}

/* AIチェックページと同じ正面向きのノートPC。画面はクリエイティブ管理の一覧。 */
.home-hero__shot { margin: 0 -20px; }

.home-hero__shot img {
    display: block;
    width: 100%;
    height: auto;
}

/* AIチェックページと同じ3つの実績を、月桂冠とともに表示する */
.home-hero__proof {
    margin: 0 0 28px;
}

.home-hero__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    max-width: 580px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.home-hero__stat {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 112px;
    padding: 8px 16px;
    color: #1a365d;
    text-align: center;
    text-decoration: none;
}

.home-hero__stat::before,
.home-hero__stat::after {
    content: "";
    position: absolute;
    top: 12px;
    width: 18px;
    height: 86px;
    background: url('../images/hero/laurel.svg') center / contain no-repeat;
    pointer-events: none;
}
.home-hero__stat::before { left: 0; }
.home-hero__stat::after { right: 0; transform: scaleX(-1); }
.home-hero__stat-label { font-size: 0.6875rem; font-weight: 700; white-space: nowrap; }
.home-hero__stat-num { min-height: 42px; font-size: 2.2rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; }
.home-hero__stat-num--users { padding-top: 3px; font-size: 1.875rem; }
.home-hero__stat-num span { margin-left: 2px; font-size: 1rem; }
.home-hero__stat-detail { font-size: 0.625rem; font-weight: 700; line-height: 1.5; }
.home-hero__stat-award { display: flex; align-items: center; max-width: 120px; min-height: 42px; font-size: 1.2rem; font-weight: 800; line-height: 1.1; }
.home-hero__award:hover { color: #3182ce; }
.home-hero__award:focus-visible { outline: 3px solid #3182ce; outline-offset: 4px; border-radius: 4px; }

@media (max-width: 1100px) {
    .home-hero__inner { column-gap: 40px; }
}

/* タブレット：1カラム（コピー・実績・CTA → 製品画面） */
@media (max-width: 1023px) {
    .home-hero { padding-top: 120px; }

    .home-hero__inner {
        max-width: 760px;
        padding: 0 32px;
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "copy"
            "media";
    }

    .home-hero__media { margin-top: 48px; }
    .home-hero__shot { margin-inline: 0; }
}

@media (max-width: 768px) {
    .home-hero { padding-top: 100px; }
    .home-hero__inner { padding: 0 20px; }

    .home-hero__title { margin-bottom: 18px; }
    .home-hero__title-sub { font-size: 1.0625rem; margin-bottom: 4px; }
    .home-hero__title-main { font-size: clamp(1.75rem, 7.6vw, 2.4rem); }

    .home-hero__lead {
        margin-bottom: 24px;
        font-size: 0.9375rem;
        line-height: 1.85;
    }

    .home-hero__actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
        max-width: 480px;
        margin-bottom: 16px;
    }

    .home-hero__actions .btn {
        min-height: 52px;
        padding: 0 20px;
        font-size: 0.9375rem;
    }
    .home-hero__actions .btn-primary { min-width: 0; }

    .home-hero__meta {
        gap: 6px 16px;
        font-size: 0.8125rem;
    }

    .home-hero__media { margin-top: 36px; }

    .home-hero__proof { margin-bottom: 24px; }
    .home-hero__stats { gap: 6px; }
    .home-hero__stat { min-height: 100px; padding: 8px 12px; gap: 6px; }
    .home-hero__stat::before, .home-hero__stat::after { top: 14px; width: 14px; height: 72px; }
    .home-hero__stat-label { font-size: clamp(0.5rem, 2.1vw, 0.75rem); }
    .home-hero__stat-num { min-height: clamp(34px, 8.6vw, 45px); font-size: clamp(1.75rem, 6.5vw, 2.3rem); }
    .home-hero__stat-num span { font-size: 0.875rem; }
    .home-hero__stat-num--users { padding-top: 4px; font-size: clamp(1.125rem, 5vw, 2rem); }
    .home-hero__stat-detail { min-height: 3em; font-size: clamp(0.5rem, 2.1vw, 0.75rem); }
    .home-hero__stat-award { max-width: 120px; min-height: clamp(34px, 8.6vw, 45px); font-size: clamp(0.875rem, 3.5vw, 1.35rem); }
}

@media (max-width: 374px) {
    .home-hero__actions { grid-template-columns: minmax(0, 1fr); }
}

/* ===== ウェビナー登壇・インタビュー ===== */
.home-media { padding: 88px 0; background: #edf4fa; scroll-margin-top: 88px; }
.home-media > .container { max-width: 1280px; padding-inline: 40px; }
.home-media .section-header { margin-bottom: 40px; text-align: center; }
.home-media .section-title { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.home-media .section-description { max-width: 800px; margin-inline: auto; }
.home-media__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.home-media__card { min-width: 0; }
.home-media__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dce6f0;
    border-radius: 12px;
    color: #1a365d;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(26, 54, 93, 0.04);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.home-media__link:hover { color: #1a365d; border-color: #93b5d5; box-shadow: 0 10px 24px rgba(26, 54, 93, 0.1); }
.home-media__link:focus-visible { outline: 3px solid #3182ce; outline-offset: 5px; }
.home-media__brand { margin: 0; padding: 20px 24px; font-size: 1.1rem; font-weight: 800; letter-spacing: 0.04em; }
.home-media__image { aspect-ratio: 1200 / 682; background: #f6f9fc; }
.home-media__image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.home-media__body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.home-media__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 14px; font-size: 0.6875rem; }
.home-media__meta > span { padding: 4px 9px; border-radius: 4px; background: #edf4fa; color: #2c5282; font-weight: 700; }
.home-media__meta time { color: #64748b; }
.home-media__body h3 { margin: 0 0 12px; color: #1a365d; font-size: 1.125rem; line-height: 1.65; }
.home-media__description { margin: 0 0 24px; color: #4a5568; font-size: 0.875rem; line-height: 1.85; }
.home-media__more { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 18px; border-top: 1px solid #e5edf4; color: #2c5282; font-size: 0.8125rem; font-weight: 700; }
.home-media__link:hover .home-media__more { text-decoration: underline; text-underline-offset: 4px; }
.home-media__sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 1100px) {
    .home-media__grid { gap: 18px; }
    .home-media__brand { padding: 18px; font-size: 1rem; }
    .home-media__body { padding: 20px 18px; }
}
@media (max-width: 767px) {
    .home-media { padding: 56px 0; }
    .home-media > .container { padding-inline: 20px; }
    .home-media .section-header { margin-bottom: 28px; }
    .home-media .section-description { font-size: 0.875rem; line-height: 1.8; }
    .home-media__grid { grid-template-columns: minmax(0, 1fr); max-width: 480px; margin-inline: auto; gap: 24px; }
    .home-media__brand { padding: 18px 20px; font-size: 1.1rem; }
    .home-media__body { padding: 22px 20px; }
    .home-media__body h3 { font-size: 1.0625rem; }
    .home-media__meta { font-size: 0.6875rem; }
}

/* ===== 料金・無料トライアル ===== */
.home-plan {
    padding: 96px 0;
    background: #ffffff;
}

.home-plan .container {
    max-width: 1040px !important;
}

.home-plan__steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 48px 0 40px;
    padding: 0;
    list-style: none;
}

.home-plan__steps li {
    padding: 28px 24px;
    border-radius: 14px;
    background: #f5f8fc;
}

.home-plan__step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: #1a365d;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
}

.home-plan__steps h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a202c;
}

.home-plan__steps p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.7;
    color: #4a5568;
}

.home-plan__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.home-plan__note {
    margin: 16px 0 0;
    text-align: center;
    font-size: 0.8125rem;
    color: #718096;
}

@media (max-width: 768px) {
    .home-plan { padding: 64px 0; }

    .home-plan__steps {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        margin: 32px 0 28px;
    }

    .home-plan__steps li {
        display: grid;
        grid-template-columns: 32px minmax(0, 1fr);
        column-gap: 14px;
        padding: 20px;
    }

    .home-plan__step-num { grid-row: span 2; margin-bottom: 0; }

    .home-plan__actions .btn {
        width: 100%;
        max-width: 360px;
        white-space: normal;
    }
}

/* メニューを開いている間は追従CTAを隠す */
body.menu-open .mobile-sticky-cta { visibility: hidden; }
