:root {
    --blue: #1f5d97;
    --blue2: #2f77b9;
    --bg: #eef4f9;
    --text: #13263b;
    --border: #d6e1eb;
    --white: #fff
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
    background: var(--bg);
    color: var(--text)
}

.hero {
    position: relative;
    overflow: hidden;

    padding: 42px 20px 54px;
    text-align: center;
    color: #fff;

    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.12), transparent 38%),
        linear-gradient(120deg, var(--blue), var(--blue2));
}

.mic {
    position: relative;
    z-index: 2;

    width: 46px;
    height: 46px;
    margin: 0 auto 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 15px;

    background: rgba(255, 255, 255, 0.12);

    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);

    backdrop-filter: blur(8px);
}

.mic svg {
    width: 25px;
    height: 25px;

    fill: none;
    stroke: rgba(255, 255, 255, 0.96);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero-label {
    position: relative;
    z-index: 2;

    margin-bottom: 4px;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;

    color: rgba(255, 255, 255, 0.72);
}

.hero h1 {
    position: relative;
    z-index: 2;

    margin: 4px 0 8px;

    font-size: clamp(34px, 6vw, 54px);
    letter-spacing: 0.02em;
}

.hero p {
    position: relative;
    z-index: 2;

    margin: 0;

    font-size: 14px;
    opacity: 0.9;
}

.hero-character {
    position: absolute;
    right: 18px;
    bottom: 0;
    width: 260px;
    height: auto;
    z-index: 1;
    pointer-events: none;
}

@media (max-width: 640px) {
    .hero-character {
        right: -8px;
        bottom: 0;
        width: 112px;
        /* 大きさはそのまま */
    }

    .hero p {
        padding-right: 58px;
    }
}

.hero-wave {
    position: absolute;
    left: 50%;
    bottom: 18px;

    display: flex;
    align-items: center;
    gap: 6px;

    transform: translateX(-50%);

    opacity: 0.14;
}

.hero-wave span {
    display: block;

    width: 3px;
    border-radius: 999px;

    background: #fff;
}

.hero-wave span:nth-child(1) {
    height: 7px;
}

.hero-wave span:nth-child(2) {
    height: 12px;
}

.hero-wave span:nth-child(3) {
    height: 19px;
}

.hero-wave span:nth-child(4) {
    height: 11px;
}

.hero-wave span:nth-child(5) {
    height: 23px;
}

.hero-wave span:nth-child(6) {
    height: 15px;
}

.hero-wave span:nth-child(7) {
    height: 20px;
}

.hero-wave span:nth-child(8) {
    height: 12px;
}

.hero-wave span:nth-child(9) {
    height: 8px;
}

.container {
    width: min(960px, calc(100% - 32px));
    margin: -24px auto 56px
}

.theme-card,
.content-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: 0 8px 24px rgba(19, 38, 59, .08)
}

.theme-card {
    margin: 27px 12px 0;
    padding: 22px 24px 26px;

    background: #fff;
    border-radius: 20px;

    text-align: center;

    position: relative;
    overflow: hidden;
}

/* 今回のテーマ：上部グラデーションライン */
.theme-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg,
            #1f6fd1 0%,
            #168fc5 50%,
            #18c5b5 100%);
}

.theme-card span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 0;

    background: transparent;
    color: var(--blue);

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.theme-card span::before,
.theme-card span::after {
    content: "";

    width: 28px;
    height: 2px;

    border-radius: 999px;
}

.theme-card span::before {
    background: linear-gradient(90deg,
            #1f6fd1,
            #168fc5);
}

.theme-card span::after {
    background: linear-gradient(90deg,
            #168fc5,
            #18c5b5);
}

.theme-card h2 {
    margin: 16px auto 0;

    max-width: 16em;

    font-size: clamp(25px, 4vw, 38px);
    line-height: 1.45;
    text-align: center;

    word-break: normal;
    line-break: strict;
}

.tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;

    padding: 6px;

    margin-top: 12px;
    margin-bottom: 16px;

    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(214, 225, 235, 0.9);
    border-radius: 16px;

    backdrop-filter: blur(8px);
}

.tab-button {
    position: relative;

    border: 0;
    border-radius: 12px;

    padding: 13px 8px;

    background: transparent;
    color: #6c7d8f;

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.15s ease,
        box-shadow 0.2s ease;
}

.tab-button.active {
    background: linear-gradient(180deg,
            #ffffff 0%,
            #f7fbff 100%);

    color: var(--blue);

    box-shadow:
        0 5px 14px rgba(19, 38, 59, 0.10),
        inset 0 0 0 1px rgba(47, 119, 185, 0.10);

    transform: translateY(-1px);
}

.tab-button.active::after {
    content: "";

    position: absolute;
    left: 50%;
    bottom: 5px;

    width: 22px;
    height: 2px;

    border-radius: 999px;
    background: var(--blue2);

    transform: translateX(-50%);
}

.content-card {

    position: relative;
    overflow: hidden;

    padding: 28px
}

.content-card::before {
    content: "";

    position: absolute;
    top: 0;
    left: 28px;
    right: 28px;

    height: 3px;

    background: linear-gradient(90deg,
            transparent,
            var(--blue2),
            transparent);

    border-radius: 999px;

    opacity: 0.55;
}

.tab-panel h3 {
    position: relative;

    margin: 0 0 30px;
    padding-left: 14px;

    color: var(--text);

    font-size: 24px;
    font-weight: 800;
    line-height: 1.25;

    letter-spacing: 0.02em;
}

.tab-panel h3::before {
    content: "";

    position: absolute;
    left: 0;
    top: 50%;

    width: 4px;
    height: 26px;

    border-radius: 999px;
    background: var(--blue2);

    transform: translateY(-50%);
}

.section-block+.section-block {
    margin-top: 26px
}

.section-block h4 {
    margin: 0 0 12px;
    color: #50657a;
    line-height: 1.4;
}

.script-box {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #f8fbfd;
    line-height: 1.9;
    white-space: normal
}

.script-box h4 {
    margin: 24px 0 10px;
    font-size: 22px;
    color: var(--blue)
}

.script-box h5 {
    margin: 20px 0 8px;
    font-size: 18px
}

.script-box p {
    margin: 0 0 14px
}

.script-box ul {
    margin: 0 0 14px;
    padding-left: 1.4em
}

.script-box blockquote {
    margin: 14px 0;
    padding: 12px 14px;
    border-left: 4px solid var(--blue2);
    background: #edf6ff
}

audio {
    width: 100%
}

@media (max-width:640px) {

    .container {
        width: min(100% - 20px, 960px);
    }

    .tabs {
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
        padding: 6px;
    }

    .tab-button {
        padding: 14px 4px;
        font-size: 13px;
        white-space: nowrap;
    }

    .content-card {
        padding: 22px;
    }

    .hero {
        padding-top: 34px;
    }
}

details {
    margin-top: 10px;
}

summary {
    display: flex;
    align-items: center;
    gap: 10px;

    cursor: pointer;

    padding: 14px 14px 14px 16px;

    background: #f7faff;
    border: 1px solid #dce8f3;
    border-radius: 12px;

    color: var(--text);

    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;

    list-style: none;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.15s ease;
}

summary:hover {
    background: #ddeafb;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: "⌄";

    display: flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    margin-left: auto;

    border-radius: 50%;

    background: #e7f0f8;
    color: var(--blue);

    font-size: 18px;
    line-height: 1;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

summary:hover {
    background: #f2f7fc;
    border-color: #cbddec;
}

details[open] summary {
    background: #eef5fb;
    border-color: #c6dceb;
}

details[open] summary::after {
    transform: rotate(180deg);
    background: #dcebf7;
}

.label-icon {
    width: 18px;
    height: 18px;
    margin-right: 6px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;

    vertical-align: -3px;
}

details[open] summary::after {
    transform: rotate(180deg);
}

details .script-box {
    margin-top: 12px;
}

.audio-card {
    background: #eef4fb;
    border-radius: 16px;
    padding: 18px;
    margin-top: 12px;
}

.audio-card audio {
    width: 100%;
    display: block;
}

.custom-player {
    margin-top: 28px;
    padding: 20px 18px;
    background: #f7faff;
    border: 1px solid #dbe7f5;
    border-radius: 16px;
}

.player-heading {
    display: flex;
    align-items: center;
    gap: 8px;

    margin: 0;
    padding: 0;

    background: transparent;
    border: 0;
    border-radius: 0;

    color: var(--text);

    font-size: 15px;
    font-weight: 800;

    box-shadow: none;
}

.player-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 16px;
}

.player-time {
    margin-bottom: 10px;
    text-align: center;
    font-size: 13px;
    color: #5f6f82;
}

.seek-bar {
    position: relative;
    height: 8px;
    margin: 0 2px 24px;
    background: #dbe5f0;
    border-radius: 999px;
    cursor: pointer;
    touch-action: manipulation;
}

.seek-progress {
    width: 32%;
    height: 100%;
    background: #2f6fb3;
    border-radius: 999px;
}

.seek-knob {
    position: absolute;
    top: 50%;
    left: 32%;
    width: 20px;
    height: 20px;
    background: #2f6fb3;
    border: 4px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 7px rgba(0, 0, 0, .2);
    transform: translate(-50%, -50%);
}

.player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    margin-bottom: 22px;
}

.player-controls button {
    border: none;
    cursor: pointer;
}

.skip-button {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 4px;

    min-width: 70px;
    padding: 10px 6px;
    border: none;
    background: transparent;
    color: #2f6fb3;
    cursor: pointer;

    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    transition: transform .15s;
}

.skip-icon {
    width: 30px;
    height: 30px;
    fill: currentColor;
    flex-shrink: 0;
    pointer-events: none;
}

.skip-button span {
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.skip-button:active {
    transform: scale(.94);
}

.play-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    padding: 0;
    background: #2f6fb3;
    color: #fff;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;

    box-shadow: 0 6px 14px rgba(47, 111, 179, .35);
    transition: .2s;
}

.play-button svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
    pointer-events: none;
}

.pause-icon {
    display: none;
}

.play-button.is-playing .play-icon {
    display: none;
}

.play-button.is-playing .pause-icon {
    display: block;
}

.play-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(47, 111, 179, .45);
}

.play-button:active {
    transform: scale(.95);
}

/* ===== 再生速度セグメント ===== */

.speed-area p {
    margin: 0 0 10px;
    font-size: 13px;
    color: #5f6f82;
}

.speed-buttons {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 4px;
    overflow: hidden;

    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(47, 119, 185, 0.18);
    border-radius: 16px;

    box-shadow:
        0 3px 9px rgba(19, 38, 59, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

/* 動く選択ボタン */
.speed-buttons::before {
    content: "";
    position: absolute;
    top: 4px;

    width: calc((100% - 8px) / 4);
    height: calc(100% - 8px);
    left: calc(4px + var(--speed-position, 0) * ((100% - 8px) / 4));

    background: linear-gradient(180deg,
            rgba(91, 158, 218, 0.24) 0%,
            rgba(47, 119, 185, 0.15) 100%);
    border: 1.5px solid rgba(47, 119, 185, 0.58);
    border-radius: 12px;

    box-shadow:
        0 3px 7px rgba(47, 119, 185, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);

    transition: left 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.speed-buttons button {
    position: relative;
    z-index: 1;

    padding: 11px 4px;
    border: 0;
    background: transparent;

    color: #5c7187;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;

    transition:
        color 0.2s ease,
        transform 0.12s ease;
}

/* 区切り線 */
.speed-buttons button:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 22%;
    right: 0;
    width: 1px;
    height: 56%;
    background: rgba(95, 111, 130, 0.13);
}

.speed-buttons button.active {
    color: #2169aa;
    font-weight: 650;
}

.speed-buttons button.active::after {
    opacity: 0;
}

.speed-buttons button:active {
    transform: scale(0.96);
}

.play-status {
    display: inline-flex;
    align-items: center;
    margin-top: 2px;
    margin-bottom: 10px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.play-status[data-status="unplayed"] {
    background: #eef2f6;
    color: #5f6f82;
}

.play-status[data-status="playing"] {
    background: #fff3cd;
    color: #8a6700;
}

.play-status[data-status="completed"] {
    background: #dff4e5;
    color: #236b3d;
}

.seek-bar {
    position: relative;
    height: 8px;
    margin: 0 2px 24px;
    background: #dbe5f0;
    border-radius: 999px;
    cursor: pointer;
    touch-action: none;
}

.seek-progress {
    width: 0%;
    height: 100%;
    background: #2f6fb3;
    border-radius: 999px;
}

.seek-knob {
    position: absolute;
    top: 50%;
    left: 0%;
    width: 20px;
    height: 20px;
    background: #2f6fb3;
    border: 4px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 7px rgba(0, 0, 0, .2);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.seek-knob {
    transition: width .15s, height .15s, transform .15s;
}

.seek-bar.dragging .seek-knob {
    width: 24px;
    height: 24px;
}

.script-box {
    padding: 22px 20px;

    border: 1px solid #dce8f3;
    border-radius: 14px;

    background:
        linear-gradient(180deg,
            #ffffff 0%,
            #fbfdff 100%);

    line-height: 1.9;
    white-space: normal;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 4px 14px rgba(19, 38, 59, 0.04);
}

.script-box {
    position: relative;
}

.script-box::before {
    content: "";

    position: absolute;
    left: 0;
    top: 18px;
    bottom: 18px;

    width: 3px;

    border-radius: 999px;
    background: linear-gradient(180deg,
            var(--blue2),
            rgba(47, 119, 185, 0.15));
}

/* スクロールバーの見た目 */
.script-box::-webkit-scrollbar {
    width: 8px;
}

.script-box::-webkit-scrollbar-track {
    background: #e6eef7;
    border-radius: 999px;
}

.script-box::-webkit-scrollbar-thumb {
    background: #8fb3d9;
    border-radius: 999px;
}

.script-box::-webkit-scrollbar-thumb:hover {
    background: #6f9bc8;
}

@media (max-width:640px) {
    .script-box {
        max-height: none;
        overflow-y: visible;
        padding-right: 0;
    }
}

/* ===== 安定版ミニプレーヤー ===== */

body {
    padding-bottom: 90px;
}

.mini-player {
    position: fixed;
    right: 0;
    bottom: calc(30px + env(safe-area-inset-bottom));
    z-index: 9999;

    width: 48px;
    height: 72px;
}

.mini-player[hidden] {
    display: none;
}

/* 右端の開閉ボタン */
.mini-player-toggle {
    position: absolute;
    right: 0;
    bottom: 0;

    width: 32px;
    height: 74px;

    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-right: 0;
    border-radius: 14px 0 0 14px;

    background: linear-gradient(180deg,
            #3b78ae 0%,
            #245f96 100%);

    color: rgba(255, 255, 255, 0.92);

    font-size: 30px;
    font-weight: 600;
    line-height: 1;

    cursor: pointer;

    box-shadow:
        -3px 4px 12px rgba(19, 38, 59, 0.20),
        inset 1px 0 0 rgba(255, 255, 255, 0.15);

    z-index: 2;
}

/* 左側に出るプレーヤー本体 */
.mini-player-panel {
    position: absolute;
    right: 25px;
    bottom: 0;

    width: 350px;
    height: 72px;

    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    grid-template-rows: 30px 34px;
    column-gap: 10px;
    align-items: center;

    padding: 6px 12px;

    background: #fff;
    border: 1px solid var(--border);
    border-right: 0;
    border-radius: 14px 0 0 14px;

    box-shadow: 0 5px 16px rgba(19, 38, 59, 0.18);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateX(20px);
    transition:
        opacity 0.2s ease,
        transform 0.25s ease,
        visibility 0.2s;
}

.mini-player.open .mini-player-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
}

/* 言語と時間 */
.mini-player-info {
    grid-column: 1;
    grid-row: 1;

    display: flex;
    flex-direction: column;
    justify-content: center;

    min-width: 0;
}

.mini-language {
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-time {
    margin-top: 2px;
    color: #6d7f92;
    font-size: 10px;
    line-height: 1;
    white-space: nowrap;
}

/* シークバー */
.mini-seek-bar {
    grid-column: 2;
    grid-row: 1;

    position: relative;
    width: 100%;
    height: 20px;

    background: transparent;
    border-radius: 999px;

    cursor: pointer;
    touch-action: none;

    transform: translateY(-4px);
}

/* 灰色のバー */
.mini-seek-bar::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;

    top: 50%;
    height: 5px;

    background: #dbe5f0;
    border-radius: 999px;

    transform: translateY(-50%);
}

/* 青い再生済み部分 */
.mini-seek-progress {
    position: absolute;
    left: 0;

    top: 50%;
    width: 0%;
    height: 5px;

    background: var(--blue2);
    border-radius: 999px;

    transform: translateY(-50%);
    z-index: 1;
}

.mini-seek-knob {
    position: absolute;
    top: 50%;
    left: 0%;

    width: 13px;
    height: 13px;

    background: var(--blue2);
    border: 3px solid #fff;
    border-radius: 50%;

    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.18);

    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* 操作ボタン */
.mini-player-controls {
    grid-column: 1 / -1;
    grid-row: 2;

    display: grid;
    grid-template-columns: 44px 40px 44px;
    justify-content: center;
    align-items: center;
    justify-items: center;

    width: 100%;

    gap: 15px;

    margin-top: -8px;

    transform: translateX(35px);
}

.mini-player-controls button {
    border: 0;
    background: transparent;
    color: var(--blue);
    cursor: pointer;
}

.mini-rewind,
.mini-forward {
    min-width: 36px;
    padding: 3px;
    font-size: 15px;
    font-weight: 700;

    transform: translateY(-4px);

}

.mini-play {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    padding: 0;

    color: #fff !important;
    background: var(--blue2) !important;
    border-radius: 50%;

    box-shadow: 0 3px 9px rgba(19, 38, 59, 0.2);

    transform: translateY(-3px);

}

.mini-play svg {
    width: 19px;
    height: 19px;

    fill: currentColor;
    pointer-events: none;
}

.mini-pause-icon {
    display: none;
}

.mini-play.is-playing .mini-play-icon {
    display: none;
}

.mini-play.is-playing .mini-pause-icon {
    display: block;
}

.mini-player-controls button:active,
.mini-player-toggle:active {
    transform: scale(0.95);
}

/* ミニプレーヤーはスマホだけ表示 */
@media (min-width: 641px) {
    .mini-player {
        display: none !important;
    }

    body {
        padding-bottom: 0;
    }
}

.audio-message {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.5;
}

.audio-message[hidden] {
    display: none;
}

.audio-message[data-type="loading"] {
    background: #eef4fb;
    color: #35536f;
}

.audio-message[data-type="error"] {
    background: #fff0f0;
    color: #9a2f2f;
    border: 1px solid #f0caca;
}

.airplay-icon {
    animation: rotate-icon 3s linear infinite;
}

@keyframes rotate-icon {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ===== ミニプレーヤー 実機スマホ表示の微調整 ===== */

/* シークバーの線を下、丸を上に固定 */
.mini-seek-bar::before {
    z-index: 0;
}

.mini-seek-progress {
    z-index: 1;
}

.mini-seek-knob {
    z-index: 2;
}


/* −10 / +10 の実機ズレ対策 */
.mini-rewind,
.mini-forward {
    display: flex;
    align-items: center;
    justify-content: center;

    height: 32px;
    padding: 0;

    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;

    transform: none;
}


/* 再生ボタンも同じ高さ基準に戻す */
.mini-play {
    transform: none;
}


/* ===== ミニシークバー 重なり順をSafari向けに固定 ===== */

.mini-seek-bar {
    isolation: isolate;
}

.mini-seek-bar::before {
    z-index: 0;
}

.mini-seek-progress {
    z-index: 1;
}

.mini-seek-knob {
    z-index: 3;
}

/* ===== ミニシークバー ノブ表示修正 ===== */

.mini-seek-knob {
    width: 16px;
    height: 16px;

    background: var(--blue2);
    border: 3px solid #fff;

    box-shadow:
        0 2px 6px rgba(19, 38, 59, 0.22);

    z-index: 10;
}

/* ========================================
   キャラクター版ヘッダー
======================================== */

.hero {
    position: relative;
    overflow: hidden;

    min-height: 360px;
    padding: 0;

    color: #fff;
    text-align: left;

    background:
        radial-gradient(circle at 92% 8%,
            rgba(45, 225, 212, 0.48) 0%,
            rgba(45, 225, 212, 0.18) 23%,
            transparent 48%),
        linear-gradient(115deg,
            #165a9d 0%,
            #1766ad 54%,
            #10aeb2 100%);
}

/* 全体 */
.hero-inner {
    position: relative;
    z-index: 3;

    width: min(1000px, calc(100% - 70px));
    min-height: 360px;

    margin: 0 auto;
}

/* 左側の文字 */
.hero-copy {
    position: absolute;
    left: 35px;
    top: 54px;

    z-index: 5;

    width: 58%;
}

/* マイク＋RADIO TALK */
.hero-brand {
    display: flex;
    align-items: center;
    gap: 18px;

    margin-bottom: 26px;
}

.hero .mic {
    position: static;

    width: 56px;
    height: 56px;

    margin: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, .30);
    border-radius: 16px;

    background: rgba(255, 255, 255, .10);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .18),
        0 8px 20px rgba(0, 0, 0, .07);
}

.hero .mic svg {
    width: 28px;
    height: 28px;
}

.hero .hero-label {
    position: static;

    margin: 0;

    color: rgba(255, 255, 255, .92);

    font-size: 16px;
    font-weight: 800;
    letter-spacing: .20em;
}

/* タイトル */
.hero h1 {
    position: static;

    margin: 0;

    color: #fff;

    font-size: clamp(52px, 6vw, 78px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: .01em;
}

/* 水色の短い線 */
.hero-accent {
    width: 54px;
    height: 4px;

    margin: 28px 0 22px;

    border-radius: 999px;

    background: #2de0d0;
}

/* 説明文 */
.hero p {
    position: static;

    margin: 0;

    color: rgba(255, 255, 255, .95);

    font-size: 17px;
    font-weight: 600;
    line-height: 1.7;
}

/* キャラクター */
.hero-character {
    position: absolute;

    right: 12px;
    bottom: -8px;

    width: 330px;
    height: auto;

    z-index: 4;

    pointer-events: none;
    user-select: none;

    animation: character-float 4s ease-in-out infinite;
}

@keyframes character-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* =========================
   背景のうにょうにょ
========================= */

.hero::before {
    content: "";
    position: absolute;

    width: 760px;
    height: 220px;

    left: -120px;
    bottom: -110px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.055);

    transform: rotate(-8deg);

    z-index: 1;
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;

    width: 900px;
    height: 260px;

    left: 80px;
    bottom: -150px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.035);

    transform: rotate(6deg);

    z-index: 1;
    pointer-events: none;
}

/* =========================
   波形
========================= */

.hero-wave {
    position: absolute;

    left: max(70px, calc((100% - 1000px) / 2 + 140px));
    bottom: 26px;

    display: flex;
    align-items: center;
    gap: 7px;

    opacity: 0.15;
    z-index: 2;
}

.hero-wave span {
    width: 4px;
    border-radius: 999px;
    background: #fff;
}

/* 波形を少し横長に */
.hero-wave span:nth-child(1) {
    height: 8px;
}

.hero-wave span:nth-child(2) {
    height: 14px;
}

.hero-wave span:nth-child(3) {
    height: 22px;
}

.hero-wave span:nth-child(4) {
    height: 30px;
}

.hero-wave span:nth-child(5) {
    height: 18px;
}

.hero-wave span:nth-child(6) {
    height: 25px;
}

.hero-wave span:nth-child(7) {
    height: 34px;
}

.hero-wave span:nth-child(8) {
    height: 22px;
}

.hero-wave span:nth-child(9) {
    height: 14px;
}

.hero-wave span:nth-child(10) {
    height: 9px;
}

.hero-wave span:nth-child(11) {
    height: 13px;
}

.hero-wave span:nth-child(12) {
    height: 20px;
}

.hero-wave span:nth-child(13) {
    height: 28px;
}

.hero-wave span:nth-child(14) {
    height: 18px;
}

.hero-wave span:nth-child(15) {
    height: 32px;
}

.hero-wave span:nth-child(16) {
    height: 24px;
}

.hero-wave span:nth-child(17) {
    height: 17px;
}

.hero-wave span:nth-child(18) {
    height: 25px;
}

.hero-wave span:nth-child(19) {
    height: 15px;
}

.hero-wave span:nth-child(20) {
    height: 8px;
}

/* 右上のドット装飾 */
.hero-inner::after {
    content: "";

    position: absolute;

    top: 22px;
    right: 0;

    width: 100px;
    height: 70px;

    opacity: .16;

    background-image:
        radial-gradient(circle, #fff 1.5px, transparent 1.7px);

    background-size: 13px 13px;

    pointer-events: none;
}

@media (max-width: 640px) {

    .hero {
        min-height: 265px;
    }

    .hero-inner {
        width: calc(100% - 34px);
        min-height: 265px;
    }

    .hero-copy {
        left: 0;
        top: 28px;

        width: 74%;
    }

    .hero-brand {
        gap: 10px;
        margin-bottom: 18px;
    }

    .hero .mic {
        width: 43px;
        height: 43px;

        border-radius: 13px;
    }

    .hero .mic svg {
        width: 22px;
        height: 22px;
    }

    .hero .hero-label {
        font-size: 11px;
        letter-spacing: .18em;
        white-space: nowrap;
    }

    .hero h1 {
        font-size: 38px;
        line-height: 1.05;
        white-space: nowrap;
    }

    .hero-accent {
        width: 40px;
        height: 3px;

        margin: 17px 0 14px;
    }

    .hero p {
        width: auto;
        max-width: 240px;

        font-size: 13px;
        line-height: 1.65;
    }

    .hero-character {
        right: -25px;
        bottom: -3px;

        width: 185px;
    }

    .hero-wave {
        left: 90px;
        right: auto;
        bottom: 18px;

        display: flex;
        align-items: center;
        gap: 5px;

        width: auto;

        opacity: 0.14;
    }

    .hero-wave span {
        width: 3px;
    }

    .hero-inner::after {
        top: 10px;
        right: -8px;

        width: 72px;
        height: 60px;

        background-size: 11px 11px;
    }

    .hero::before {
        left: -30%;
        bottom: -105px;

        width: 155%;
        height: 180px;
    }

    .hero::after {
        left: -28%;
        bottom: -120px;

        width: 150%;
        height: 195px;
    }
}

.sp-only {
    display: none;
}

@media (max-width: 640px) {
    .sp-only {
        display: block;
    }

    .pc-comma {
        display: none;
    }
}

@media (max-width: 640px) {
    .hero-character {
        animation: character-float-sp 4s ease-in-out infinite;
    }
}

@keyframes character-float-sp {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}