/* ==================================================
   共通・PCの基本設定
   ================================================== */

/*
   900px以上：PC
   899px以下：タブレット・スマホ共通（スマホ版のレイアウト）
   699px以下：スマホだけの追加調整
   画面幅による上書きは、基本設定の後にまとめています。
*/

/* ==================================================
   01. 共通設定
   ================================================== */

/* 1920px幅で1pxとなる共通単位。2560px幅では約1.33px。 */

:root {
    --layout-unit: 0.052083333vw;
}

* {
    margin: 0;
    padding: 0;
    font-family: fot-tsukuaoldmin-pr6n, Meiryo, sans-serif, monospace;
    font-size: 16px;
}

.a_link {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

img {
    vertical-align: bottom;
}

.clear {
    clear: both;
}

.pc {
    display: inherit !important;
}

.sp {
    display: none !important;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    position: relative;
    overflow-x: clip;
}

/* ==================================================
   02. ヘッダー
   ================================================== */

.menu_box {
    position: relative;
    width: 100%;
    height: 60px;
    z-index: 10;
    pointer-events: none;
}

.wave-svg {
    display: block;
    width: 100%;
    height: 100%;
}

.drawer-menu-box a {
    font-family: "maru-maru-gothic-blr-stdn", sans-serif;
    font-weight: 400;
    font-style: normal;
}

/* ==================================================
   03. FIRST VIEW
   ================================================== */

.first_view_wrapper {
    position: relative;
    margin-top: 10px;
    z-index: 0;
    width: 100%;
    max-width: none;
    margin-left: auto;
    margin-right: auto;
}

.top_img {
    width: 80%;
    text-align: center;
    margin: 0 auto;
    padding: 1% 0 0;
}

.fv_sp_img {
    display: none;
}

.fv_logo {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 46%;
    margin: 0;
    padding: 0;
}

.fv_logo_fade {
    animation-name: fadelogo;
    animation-delay: 1s;
    animation-duration: 3s;
    animation-fill-mode: forwards;
    opacity: 0;
}

.fv_logo img {
    filter:
        drop-shadow(0px 0px 30px rgb(255, 255, 255)) drop-shadow(0px 0px 30px rgb(255, 255, 255)) drop-shadow(0px 0px 30px rgb(255, 255, 255)) drop-shadow(0px 0px 30px rgb(255, 255, 255)) drop-shadow(0px 0px 30px rgb(255, 255, 255));
}

.fv-wave-catch {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70%;
    height: auto;
    transform: translate(-50%, -50%);
    overflow: visible;
    pointer-events: none;
    z-index: 2;
}

.fv-wave-catch text {
    font-family: "maru-maru-gothic-blr-stdn", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 28pt;
    letter-spacing: 0.75em;
    fill: #3e6388;
    filter:
        drop-shadow(0 0 3px #fff) drop-shadow(0 0 3px #fff) drop-shadow(0 0 6px #fff) drop-shadow(0 0 10px #fff) drop-shadow(0 0 16px #fff) drop-shadow(0 0 22px #fff);
}

.fv-wave-catch textPath {
    font-family: inherit;
    font-weight: inherit;
    font-style: inherit;
    font-size: inherit;
}

.fv_link_bt_style1 {
    width: 20%;
    position: absolute;
    bottom: 5%;
    left: 3%;
    display: block;
}

.fv_link_bt_style1_sp {
    display: none;
}

.fv_link_bt_style2 {
    width: 14%;
    position: absolute;
    top: 5%;
    right: 1%;
    display: block;
}

.key_black_logo {
    display: block;
    position: absolute;
    top: 0px;
    left: 3%;
    width: 4.5%;
    z-index: 5;
}

.key_black_logo a {
    display: block;
}

.key_black_logo img {
    display: block;
    width: 100%;
    height: auto;
}

.fv-staff {
    position: absolute;
    left: 5%;
    bottom: 250px;
    width: 55%;
    z-index: 3;
    color: #3e5780;
}

.fv-staff-item+.fv-staff-item {
    margin-top: 12px;
}

.fv-staff dt {
    display: block;
    width: 130px;
    margin-bottom: 4px;
    border-radius: 999px;
    background: #74c7d5;
    color: #fff;
    font-family: "maru-maru-gothic-blr-stdn", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
}

.fv-staff dd {
    margin: 0;
    padding-left: 6px;
    font-family: "maru-maru-gothic-blr-stdn", sans-serif;
    font-size: clamp(12px, 1.458333vw, 24px);
    line-height: 1.7;
    text-shadow:
        0 0 4px #fff,
        0 0 4px #fff,
        0 0 4px #fff,
        0 0 8px #fff,
        0 0 8px #fff,
        0 0 8px #fff,
        0 0 8px #fff,
        0 0 12px #fff,
        0 0 12px #fff,
        0 0 12px #fff,
        0 0 12px #fff,
        0 0 18px #fff,
        0 0 18px #fff,
        0 0 26px #fff;
}

/* 発売日画像：サイズと位置の調整 */

.fv-release {
    --release-width: 400px;
    --release-right: 40px;
    --release-bottom: 32px;
    --release-stop-bottom: 182px;

    position: fixed;
    z-index: 20;
    pointer-events: none;

    width: var(--release-width);
    right: var(--release-right);
    bottom: var(--release-bottom);
}

.fv-release img {
    display: block;
    width: 100%;
    height: auto;
}

/* ファーストビュー下部で停止した後の配置 */

.fv-release.is-stopped {
    position: absolute;
    bottom: var(--release-stop-bottom);
    right: var(--release-right);
}

@keyframes fadelogo {
    from {
        opacity: 0;
        transform: translate(-50%, 0%) translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0%) translateY(0);
    }
}

/* ==================================================
   04. NEWS
   ================================================== */

.news-section {
    padding: calc(clamp(30px, 5.208vw, 100px) + 80px) 0 60px;
    scroll-margin-top: 24px;
    box-sizing: border-box;
    min-height: 550px;
    margin: -80px auto 0;
    position: relative;
    isolation: isolate;
    background: transparent;
    width: 100%;
    max-width: none;
}

.news-inner {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
    width: 78%;
    max-width: 1200px;
    margin: 0 auto;
}

.news-heading {
    margin: 0;
}

.news-heading img {
    display: block;
    width: 100%;
    height: auto;
}

.news-heading-caption {
    margin-top: 10px;
    color: #fff;
    text-align: right;
    font-family: "maru-maru-gothic-blr-stdn", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 18px;
}

.news-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#latestNewsList {
    width: 100%;
    min-width: 0;
}

/* 一覧ページ：3列分の表示範囲を中央に確保 */

.news-page-main.news-archive-main {
    width: calc(100% - 40px);
    max-width: 1116px;
}

/* 左 → 中央 → 右の順に配置 */

#allNewsList {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 356px));
    grid-auto-flow: row;
    justify-content: center;
    gap: 24px;
}

/* 画像320px＋左右余白32px＋左枠線4px */

#allNewsList .news-item {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    padding: 12px 16px;
    border-left-width: 4px;
    overflow-wrap: anywhere;
}

#allNewsList .news-thumbnail {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
    margin: 0 0 12px;
}

.news-item {
    padding: 12px 32px;
    border-left: 4px solid #ffda00;
    background: #fff;
}

.news-date {
    margin: 0 0 4px;
    color: #ffcf00;
    font-size: clamp(20px, 1.6vw, 28px);
    line-height: 1.3;
    letter-spacing: 0.05em;
    font-family: "gotham", sans-serif;
    font-weight: 500;
    font-style: normal;
}

.news-description {
    margin: 0;
    color: #3e5780;
    font-family: "maru-maru-gothic-blr-stdn", sans-serif;
    font-size: 14px;
    line-height: 1.7;
}

/* ニュース記事へのリンク */

.news-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.news-link .news-date {
    display: block;
}

.news-link:hover .news-description {
    text-decoration: none;
}

.news-link:focus-visible {
    outline: 2px solid #3e5780;
    outline-offset: 4px;
}

/* VIEW MORE・ニュース一覧のTOPへ戻る */

.news-more-button,
.news-back-links a {
    display: inline-block;
    padding: 8px 22px;
    border: 1px solid #fff;
    border-radius: 999px;
    background: transparent;
    color: #fff;
    font-family: "gotham", sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.06em;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

/* VIEW MOREの配置 */

.news-more-button {
    display: block;
    width: fit-content;
    margin: 20px 0 0 auto;
    white-space: nowrap;
}

/* マウスオーバー時 */

.news-more-button:hover,
.news-back-links a:hover {
    background: #fff;
    color: #3e5780;
}

/* ニュース一覧・個別記事のページ */

/* ニュース一覧・個別記事の共通背景 */

.news-page {
    min-height: 100vh;
    color: #3e5780;

    background-color: #8dd5dd;
    background-image: url("../image/news_page_bg.webp");
    background-position: center top;
    background-size: 100% auto;
    background-repeat: repeat-y;
}

.news-page-main {
    box-sizing: border-box;
    width: 88%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 110px 0 80px;
}

.news-page-heading {
    width: 180px;
    margin: 0 auto;
}

.news-page-heading img {
    display: block;
    width: 100%;
    height: auto;
}

.news-page-caption {
    margin: 12px 0 40px;
    color: #fff;
    font-family: "maru-maru-gothic-blr-stdn", sans-serif;
    font-size: 18px;
    text-align: center;
}

/* 個別記事 */

.news-article {
    padding: clamp(24px, 5vw, 60px);
    background: #fff;
    overflow-wrap: anywhere;
}

.news-article-date {
    display: block;
    margin-bottom: 24px;
}

.news-article-label {
    margin: 0 0 10px;
    color: #3e5780;
    font-family: "gotham", sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.news-article-title {
    margin: 0 0 36px;
    font-family: "maru-maru-gothic-blr-stdn", sans-serif;
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 400;
    line-height: 1.7;
}

.news-article-body,
.news-article-body * {
    font-family: "maru-maru-gothic-blr-stdn", sans-serif;
    font-size: 16px;
    line-height: 1.9;
}

.news-article-body p {
    margin: 0 0 1.5em;
}

.news-article-body img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 24px auto;
}

.news-article-body a {
    color: #3e5780;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* 一覧・トップへ戻るリンク */

.news-back-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px 28px;
    margin-top: 36px;
}

.news-top-curve {
    position: absolute;
    top: -1px;
    left: 0;
    display: block;
    width: 100%;
    height: clamp(30px, 5.208vw, 100px);
    pointer-events: none;
}

/* 白で覆わず、背景の上端だけを透明なカーブに切り抜きます。 */

.news-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-color: #8dd5dd;
    background-image: url("../image/news_bg.webp");
    background-position: center;
    background-size: cover;
    --curve-depth: clamp(30px, 5.208vw, 100px);
    -webkit-mask-image: radial-gradient(ellipse 70.7107% calc(var(--curve-depth) * 3.4142) at 50% calc(var(--curve-depth) * -2.4142), transparent calc(100% - 1px), #000 100%);
    mask-image: radial-gradient(ellipse 70.7107% calc(var(--curve-depth) * 3.4142) at 50% calc(var(--curve-depth) * -2.4142), transparent calc(100% - 1px), #000 100%);
}

/* ==================================================
   05. ABOUT SS
   ================================================== */

.about-section {
    position: relative;
    box-sizing: border-box;
    aspect-ratio: 1920 / 1270;
    margin: 0 auto;
    padding: 70px 0 100px;
    background-color: #fff;
    background-image: url("../image/about_bg.webp");
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
    scroll-margin-top: 24px;
    width: 100%;
    max-width: none;
}

.about-heading {
    width: clamp(220px, 30vw, 410px);
    margin: 0 auto 8px;
    scroll-margin-top: 32px;
}

.about-heading img {
    display: block;
    width: 100%;
    height: auto;
}

.about-photos {
    position: relative;
    width: 100%;
    --wire-height: calc(120 * var(--layout-unit));
}

.about-wire {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: var(--wire-height);
    pointer-events: none;
    z-index: 0;
}

.about-photo-list {
    position: relative;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: start;
    z-index: 1;
}

/* クリップの基準位置。画像の原寸は about-photo-size.js から取得します。 */

.about-photo {
    --clip-x: 50%;
    --clip-y: 8%;
    --photo-width: 92%;
    margin: 0;
    padding-top: calc(var(--wire-height) * var(--hang));
    position: relative;
    left: var(--shift-x, 0px);
}

/* 写真の拡大率と、about-swing.js が更新する回転角。 */

.about-photo img {
    display: block;
    margin-left: 50%;
    transform-origin: var(--clip-x) var(--clip-y);
    transform: translate(calc(0% - var(--clip-x)), calc(0% - var(--clip-y))) scale(0.9) rotate(var(--swing-angle, 0deg));
    width: calc(var(--photo-natural-width, 320) * var(--layout-unit));
    max-width: none;
    height: auto;
}

.about-photo:nth-child(1) {
    --hang: 0.45;
    --shift-x: calc(140 * var(--layout-unit));
}

.about-photo:nth-child(2) {
    --hang: 0.6;
    --shift-x: calc(60 * var(--layout-unit));
}

.about-photo:nth-child(3) {
    --hang: 0.67;
    --shift-x: calc(10 * var(--layout-unit));
}

.about-photo:nth-child(4) {
    --hang: 0.6;
    --shift-x: calc(5 * var(--layout-unit));
}

.about-photo:nth-child(5) {
    --hang: 0.55;
    --shift-x: calc(-10 * var(--layout-unit));
}

.about-photo:nth-child(6) {
    --hang: 0.38;
    --shift-x: calc(-50 * var(--layout-unit));
}

.about-description {
    width: fit-content;
    max-width: 88%;
    margin: 50px auto 0;
    color: #3e5780;
    text-align: left;
    --description-x: 0;
    --description-y: -20;

    position: relative;
    left: calc(var(--description-x) * var(--layout-unit));
    top: calc(var(--description-y) * var(--layout-unit));
}

.about-description h3 {
    margin-bottom: 16px;
    font-family: "maru-maru-gothic-blr-stdn", sans-serif;
    font-size: clamp(20px, 1.7vw, 30px);
    font-weight: 400;
    line-height: 1.7;
    color: #ffcf00;
    --title-x: 0;
    --title-y: -20;

    position: relative;
    left: calc(var(--title-x) * var(--layout-unit));
    top: calc(var(--title-y) * var(--layout-unit));
}

.about-description p {
    font-family: "maru-maru-gothic-blr-stdn", sans-serif;
    font-size: 20px;
    line-height: 2;
}

/* About本文：一部の文字を黄色にする */
.about-description .about-text-yellow {
    color: #ffcf00;
    font: inherit;
}

.about-heading-caption {
    margin: 0 0 24px;
    font-family: "maru-maru-gothic-blr-stdn", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 20px;
    line-height: 1.6;
    color: #79c9d3;
    text-align: center;
}

/* Aboutの内容だけを移動 */

.about-content {
    --about-content-x: 0;
    --about-content-y: 50;

    position: relative;
    left: calc(var(--about-content-x) * var(--layout-unit));
    top: calc(var(--about-content-y) * var(--layout-unit));
}

/* ==================================================
   06. EPISODE
   ================================================== */

.episode-section {
    position: relative;
    isolation: isolate;
    box-sizing: border-box;
    aspect-ratio: 1920 / 1210;
    margin: -80px auto 0;
    padding: 70px 0 120px;
    color: #3e5780;
    width: 100%;
    max-width: none;
    z-index: 1;
}

.episode-shape {
    position: absolute;
    pointer-events: none;
}

.episode-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-color: #fccf00;
    background-image: url("../image/episode_bg.webp");
    background-position: center top;
    background-size: 100% auto;
    background-repeat: no-repeat;
    clip-path: url(#episodeBackgroundClip);
}

/* Episodeの下辺に沿う水色の帯 */

.episode-section::after {
    /* 帯の太さ：1920px幅で18px */
    --border-thickness: calc(18 * var(--layout-unit));

    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;

    background: rgba(70, 186, 198, 0.5);

    /* Episode背景と同じ形で切り抜く */
    clip-path: url(#episodeBackgroundClip);

    /* 下へずらし、黄色い背景の下端から帯を出す */
    transform: translateY(var(--border-thickness));
}

.episode-heading-caption {
    display: block;
    flex-shrink: 0;
    width: 190px;
    height: 60px;
    margin: 0;
    overflow: visible;
}

/* スマホ用キャプション：PCでは非表示 */

.episode-heading-caption-sp {
    display: none;
}

.episode-heading-caption text,
.episode-heading-caption textPath {
    font-family: "maru-maru-gothic-blr-stdn", sans-serif;
    font-size: 20px;
    font-weight: 400;
    font-style: normal;
    fill: #3e5780;
}

.episode-heading-box {
    position: relative;
    left: 30px;
    top: -20px;
    display: flex;
    align-items: center;
    gap: 24px;
    width: calc(90% - 30px);
    margin: 0 auto;
}

.episode-heading {
    flex-shrink: 0;
    width: clamp(200px, 23vw, 360px);
    margin: 0;
    scroll-margin-top: 32px;
}

.episode-heading img {
    display: block;
    width: 100%;
    height: auto;
}

.episode-content {
    width: 76%;
    max-width: 1100px;
    margin: 60px auto 0;
}

.episode-item {
    display: grid;
    grid-template-columns: 64px 100px minmax(0, 1fr);
    column-gap: 20px;
    align-items: start;
    position: relative;
    padding-bottom: 0;
}

.episode-item+.episode-item {
    margin-top: 0;
}

.episode-number {
    margin: 0;
    padding-top: 12px;
    font-family: "gotham", sans-serif;
    font-size: 48px;
    font-weight: 500;
    line-height: 1.2;
    color: #3e5780;
    letter-spacing: 0.05em;
    position: relative;
    top: calc(8 * var(--layout-unit));
}

.episode-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
}

.episode-title {
    margin: 0 0 8px;
    font-family: "maru-maru-gothic-blr-stdn", sans-serif;
    font-weight: 400;
    line-height: 1.6;
    font-size: 28px;
}

.episode-character {
    font-family: inherit;
    font-size: 20px;
}

.episode-summary {
    margin: 0 0 12px;
    font-family: "maru-maru-gothic-blr-stdn", sans-serif;
    line-height: 1.8;
    font-size: 18px;
}

.episode-read-button {
    display: inline-block;
    border: 1px solid #3e5780;
    border-radius: 999px;
    background: transparent;
    color: #3e5780;
    font-family: "gotham", sans-serif;
    font-weight: 700;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    text-decoration: none;
    font-size: 16px;
    padding: 8px 22px;
}

.episode-read-button:hover {
    background: #3e5780;
    color: #fff;
}

/* リンクがないエピソードに表示するテキスト */

.episode-note {
    margin: 0;
    font-family: "maru-maru-gothic-blr-stdn", sans-serif;
    font-size: 18px;
    line-height: 1.8;
    color: #3e5780;
}

/* 各項目間の波線。位置は行間の半分に設定。 */

.episode-item:not(:last-child) .episode-details::after {
    content: "";
    position: absolute;
    left: 204px;
    right: 0;
    top: calc(100% + 36px);
    transform: translateY(-50%);
    display: block;
    height: 12px;
    margin: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='12' viewBox='0 0 32 12'%3E%3Cpath d='M0 3 C8 3 8 9 16 9 C24 9 24 3 32 3' fill='none' stroke='white' stroke-width='3'/%3E%3C/svg%3E");
    background-size: 32px 12px;
    background-repeat: round no-repeat;
    background-position: center;
}

.episode-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 30px;
}

.episode-pagination-label {
    font-family: "fractul-variable", sans-serif;
    font-weight: 550;
    font-style: normal;
    font-variation-settings: "wght" 550;
    font-size: 18px;
}

.episode-page-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.episode-page-button {
    display: grid;
    place-items: center;
    box-sizing: border-box;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #3e5780;
    border-radius: 50%;
    background: transparent;
    color: #3e5780;
    box-shadow: 2px 3px 0 #3e5780;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
    font-family: "fractul-variable", sans-serif;
    font-weight: 550;
    font-style: normal;
    font-variation-settings: "wght" 550;
}

.episode-page-button:active {
    transform: translate(2px, 3px);
    box-shadow: none;
}

/* 現在選択されているページ。 */

.episode-page-button[aria-current="page"] {
    transform: translate(1px, 2px);
    background: #3e5780;
    color: #fff;
    border-color: #3e5780;
    box-shadow: inset 1px 2px 3px rgba(20, 40, 70, 0.3), 1px 1px 0 #fff;
}

.episode-read-button[hidden] {
    display: none;
}

#episodePageStatus {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.episode-list {
    display: grid;
    row-gap: 72px;
}

/* ==================================================
   07. CHARACTER
   ================================================== */

.character-section {
    position: relative;
    isolation: isolate;
    z-index: 0;
    box-sizing: border-box;
    width: 100%;
    min-height: calc(1480 * var(--layout-unit));
    margin-top: calc(-100 * var(--layout-unit));
    padding: calc(110 * var(--layout-unit)) 0 calc(200 * var(--layout-unit));
    color: #3e5780;
    scroll-margin-top: 24px;
}

.character-shape {
    position: absolute;
    pointer-events: none;
}

.character-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-color: #8dd5dd;
    background-image: url("../image/character_bg.webp");
    background-position: center top;
    background-size: 100% auto;
    background-repeat: no-repeat;
    clip-path: none;
}

.character-layout {
    display: grid;
    grid-template-columns: minmax(0, 580fr) minmax(0, 600fr) minmax(0, 190fr) minmax(0, 130fr);
    gap: calc(24 * var(--layout-unit));
    align-items: start;
    width: 88%;
    margin: 0 auto;
    position: relative;
    top: calc(65 * var(--layout-unit));
}

/* 立ち絵と台詞の共通枠。個別の位置はそれぞれのクラスで調整。 */

.character-visual {
    min-width: 0;
    position: relative;
    left: 0;
    isolation: isolate;
}

/* 立ち絵：位置と大きさの調整 */

.character-standing {
    /* ↓ この4つの数値で調整 */
    --standing-x: 100;
    /* 横位置：プラスで右、マイナスで左 */
    --standing-y: 180;
    /* 縦位置：プラスで下、マイナスで上 */
    --standing-scale: 1;
    /* 拡大率：1が基準、1.2で120% */
    --standing-height: 1080;
    /* 画像を収める枠の高さ */

    position: relative;
    left: calc(var(--standing-x) * var(--layout-unit));
    top: calc(var(--standing-y) * var(--layout-unit));

    display: block;
    width: 100%;
    height: calc(var(--standing-height) * var(--layout-unit));
    object-fit: contain;
    object-position: center top;

    transform: scale(var(--standing-scale));
    transform-origin: center bottom;
}

/* 台詞全体の配置。2列の生成は character.js が担当。 */

.character-quote {
    position: absolute;
    margin: 0;
    text-orientation: mixed;
    font-family: "maru-maru-gothic-blr-stdn", sans-serif;
    font-size: calc(23 * var(--layout-unit));
    line-height: 1.6;
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-start;
    writing-mode: horizontal-tb;
    max-height: none;
    white-space: normal;
    padding: 0;
    background: transparent;
    border-radius: 0;
    gap: 0.5em;
    left: calc(100 * var(--layout-unit));
    top: calc(200 * var(--layout-unit));
}

.character-quote:empty {
    display: none;
}

.character-profile {
    min-width: 0;
    padding-top: calc(80 * var(--layout-unit));
    text-align: center;
    position: relative;
    left: calc(-30 * var(--layout-unit));
    top: calc(-20 * var(--layout-unit));
}

/* アーチ状のキャッチコピー */

.character-catch {
    display: block;
    width: calc(400 * var(--layout-unit));
    max-width: 100%;
    height: auto;
    margin: 0 auto calc(10 * var(--layout-unit));
    overflow: visible;
    /* キャッチコピーの位置調整 */
    --catch-x: 0;
    --catch-y: 60;

    position: relative;
    left: calc(var(--catch-x) * var(--layout-unit));
    top: calc(var(--catch-y) * var(--layout-unit));
}

/* SVG内の文字 */

.character-catch text,
.character-catch textPath {
    font-family: "maru-maru-gothic-blr-stdn", sans-serif;
    font-size: 23px;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0.15em;
    fill: #3e5780;
}

.character-name {
    margin-bottom: calc(14 * var(--layout-unit));
    font-family: "maru-maru-gothic-blr-stdn", sans-serif;
    font-size: calc(48 * var(--layout-unit));
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.12em;
    color: #fff;
    position: relative;
    top: calc(30 * var(--layout-unit));
}

.character-cv {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: calc(12 * var(--layout-unit));
    margin-bottom: calc(32 * var(--layout-unit));
    position: relative;
    top: calc(15 * var(--layout-unit));
}

.character-cv-label {
    display: grid;
    place-items: center;
    width: calc(30 * var(--layout-unit));
    height: calc(30 * var(--layout-unit));
    border-radius: 50%;
    background: #fff;
    color: #3e5780;
    font-family: "maru-maru-gothic-blr-stdn", sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: calc(14 * var(--layout-unit));
    line-height: 1;
}

#characterCv {
    font-family: "maru-maru-gothic-blr-stdn", sans-serif;
    font-size: calc(26 * var(--layout-unit));
    letter-spacing: 0.1em;
}

.character-description {
    font-family: "maru-maru-gothic-blr-stdn", sans-serif;
    font-size: calc(23 * var(--layout-unit));
    line-height: 1.7;
}

.character-description p {
    margin: 0 0 calc(3 * var(--layout-unit));
    font: inherit;
    min-height: 1em;
}

.character-description span {
    padding: 0 0.25em;
    background: #fff;
    font: inherit;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

/* 紹介文が空の行では、オビを表示しない */

.character-description span:empty {
    display: none;
}

.character-facts {
    list-style: none;
    margin: calc(42 * var(--layout-unit)) 0 0;
    padding: 0;
}

.character-facts li {
    font-family: "maru-maru-gothic-blr-stdn", sans-serif;
    font-size: calc(22 * var(--layout-unit));
    line-height: 1.9;
}

.character-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: calc(12 * var(--layout-unit));
    padding-top: calc(120 * var(--layout-unit));
}

/* 枠はPNGに含まれるため、CSSでは装飾しません。 */

.character-select-button {
    display: block;
    box-sizing: border-box;
    width: 100%;
    aspect-ratio: 1;
    cursor: pointer;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.character-select-button img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
}

.character-select-button[aria-pressed="true"] {
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.character-heading {
    scroll-margin-top: 32px;
}

.character-heading img {
    display: block;
    width: 100%;
    height: auto;
}

.character-heading-caption {
    width: fit-content;
    margin: calc(16 * var(--layout-unit)) auto 0;
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-family: "maru-maru-gothic-blr-stdn", sans-serif;
    font-size: calc(20 * var(--layout-unit));
    line-height: 1.5;
    letter-spacing: 0.1em;
    color: #fff;
    position: relative;
    left: calc(-20 * var(--layout-unit));
    top: calc(0 * var(--layout-unit));
}

.character-voices {
    display: none;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: calc(24 * var(--layout-unit));
    margin-top: calc(35 * var(--layout-unit));
}

.character-voices-label {
    font-family: "fractul-variable", sans-serif;
    font-variation-settings: "wght" 550;
    font-size: calc(20 * var(--layout-unit));
}

.character-voice-buttons {
    display: flex;
    gap: calc(12 * var(--layout-unit));
}

.character-voice-button {
    display: grid;
    place-items: center;
    box-sizing: border-box;
    width: calc(44 * var(--layout-unit));
    height: calc(44 * var(--layout-unit));
    padding: 0;
    border: 1px solid #3e5780;
    border-radius: 50%;
    background: #fccf00;
    color: #3e5780;
    box-shadow: 2px 3px 0 #3e5780;
    font-family: "fractul-variable", sans-serif;
    font-variation-settings: "wght" 550;
    font-size: calc(24 * var(--layout-unit));
    line-height: 1;
    cursor: pointer;
    transition: transform 0.15s, background-color 0.15s, box-shadow 0.15s;
}

/* サンプルボイス再生中の表示。 */

.character-voice-button[aria-pressed="true"] {
    transform: translate(1px, 2px);
    background: #3e5780;
    color: #fff;
    box-shadow: inset 1px 2px 3px rgba(20, 40, 70, 0.3), 1px 1px 0 #fff;
}

.character-select-button:focus-visible,
.character-voice-button:focus-visible {
    outline: 3px solid #3e5780;
    outline-offset: 4px;
}

.character-voice-status {
    display: none;
    margin-top: 12px;
    font-size: 14px;
}

.character-voice-status:empty {
    display: none;
}

/* 台詞1列ごとの黄色い帯。 */

.character-quote-line {
    display: block;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    white-space: nowrap;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    /* 上・右・下・左の余白 */
    padding: 0.6em 0.1em 0.6em 0;
    border-radius: 999px;
    background: #fccf00;
}

/* 縦書き内の英字。左位置と角度を調整。 */

.character-quote-alphabet {
    display: inline-block;
    writing-mode: horizontal-tb;
    width: 1em;
    height: 1em;
    font: inherit;
    line-height: 1;
    text-align: center;
    vertical-align: middle;
    transform-origin: center;
    position: relative;
    left: -0.25em;
    transform: rotate(0deg);
}

.character-heading-box_sp {
    display: none;
}

/* ==================================================
   08. GALLERY
   ================================================== */

/* 背景と波しぶきをCharacterの上に重ねる */

.gallery-section {
    position: relative;
    isolation: isolate;
    z-index: 2;
    height: auto;
    max-height: none;
    min-height: calc(1600 * var(--layout-unit));
    box-sizing: border-box;

    width: 100%;
    margin-top: calc(-320 * var(--layout-unit));
    padding:
        calc(330 * var(--layout-unit)) 0 calc(160 * var(--layout-unit));

    color: #3e5780;
    scroll-margin-top: 24px;
}

/* 透明部分を含む背景画像 */

/* 背景画像全体を表示し、下側をShop Guideに重ねる */

.gallery-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    aspect-ratio: 1920 / 1690;
    z-index: -1;
    pointer-events: none;

    background-image: url("../image/gallery_bg.webp");
    background-position: center top;
    background-size: 100% auto;
    background-repeat: no-repeat;
}

/* 見出し */

/* 見出し画像：サイズ・位置 */

.gallery-heading {
    width: calc(380 * var(--layout-unit));
    margin: 0 auto;
    scroll-margin-top: 32px;
    position: relative;
    top: calc(50 * var(--layout-unit));
    left: calc(0 * var(--layout-unit));
}

.gallery-heading img {
    display: block;
    width: 100%;
    height: auto;
}

/* キャプション：文字・位置 */

.gallery-heading-caption {
    margin: calc(8 * var(--layout-unit)) 0 0;

    font-family: "maru-maru-gothic-blr-stdn", sans-serif;
    font-size: calc(20 * var(--layout-unit));
    color: #79c9d3;
    text-align: center;
    position: relative;
    top: calc(-20 * var(--layout-unit));
    left: calc(0 * var(--layout-unit));
}

/* カルーセル全体 */

.gallery-carousel {
    width: 60%;
    margin: calc(60 * var(--layout-unit)) auto 0;
}

.gallery-thumbnails {
    overflow: hidden;
    position: relative;

    --gallery-frame-gap: calc(18 * var(--layout-unit));
    --gallery-frame-border: calc(4 * var(--layout-unit));

    /* 画像の外側に付ける枠のための余白 */
    padding: calc(var(--gallery-frame-border) + 4px);
}

/* 横に動くサムネイル列 */

.gallery-thumbnail-track {
    --gallery-visible: 6;
    --gallery-gap: calc(18 * var(--layout-unit));

    display: flex;
    gap: var(--gallery-gap);
    width: 100%;

    transition: transform 0.35s ease;
}

/* サムネイルのボタン */

.gallery-thumbnail {
    position: relative;
    display: block;
    box-sizing: border-box;

    flex: 0 0 calc((100% - (var(--gallery-visible) - 1) * var(--gallery-gap)) / var(--gallery-visible));
    min-width: 0;

    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

/* サムネイル画像 */

.gallery-thumbnail img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* 非選択：不透明度50%の白を重ねる */

.gallery-thumbnail::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(255, 255, 255, 0.5);
    pointer-events: none;
}

.gallery-thumbnail[aria-pressed="true"]::before {
    background: transparent;
}

/* 選択中のサムネイルの外側に黄色い枠を付ける */

.gallery-thumbnail[aria-pressed="true"]::after {
    content: "";
    position: absolute;
    inset: calc(-1 * var(--gallery-frame-border));
    border: var(--gallery-frame-border) solid #fccf00;
    box-sizing: border-box;
    z-index: 2;
    pointer-events: none;
}

/* プレビューと左右ボタン */

.gallery-preview-row {
    display: grid;
    grid-template-columns:
        calc(48 * var(--layout-unit)) minmax(0, 1fr) calc(48 * var(--layout-unit));
    align-items: center;
    gap: calc(20 * var(--layout-unit));

    width: 88%;
    margin: calc(40 * var(--layout-unit)) auto 0;
}

.gallery-preview-frame {
    aspect-ratio: 16 / 9;
}

.gallery-preview {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 左右の切り替えボタン */

.gallery-arrow {
    display: grid;
    place-items: center;

    width: 100%;
    aspect-ratio: 1;
    padding: 0;
    border: none;
    background: transparent;
    color: #74c7d5;
    cursor: pointer;
}

.gallery-arrow:disabled {
    opacity: 0.3;
    cursor: default;
}

.gallery-arrow:focus-visible {
    outline: 2px solid #3e5780;
    outline-offset: 3px;
}

.gallery-thumbnail:focus-visible {
    outline: 3px solid #3e5780;
    outline-offset: -3px;
}

/* 読み上げ用の表示状況 */

.gallery-status {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* 矢印画像 */

.gallery-arrow::before {
    content: none;
}

.gallery-arrow img {
    display: block;
    width: 100%;
    height: auto;
    margin: auto;
}

/* マウスオーバー時だけ矢印画像を切り替える */

@media (hover: hover) and (pointer: fine) {
    .gallery-arrow-previous:not(:disabled):hover img {
        content: url("../image/gallery_arrow_left_a.webp");
    }

    .gallery-arrow-next:not(:disabled):hover img {
        content: url("../image/gallery_arrow_right_a.webp");
    }
}

/* ========================================
   09. SHOP GUIDE・SPEC：共通背景
======================================== */

.shop-spec-background {
    /* Galleryとの重なり・カーブの深さ */
    --shop-overlap: calc(280 * var(--layout-unit));
    --shop-bottom-height: calc(1650 * var(--layout-unit));

    position: relative;
    isolation: auto;
    z-index: auto;
    box-sizing: border-box;

    width: 100%;
    min-height: max(var(--shop-bottom-height),
            var(--shop-objects-height, 0px));
    margin-top: calc(-1 * var(--shop-overlap));
    padding-bottom: 0;

    color: #3e5780;

    --shop-content-offset: -200;
}

/* Shop Guide・Specの共通背景：上辺は直線 */

/* Shop Guide・Specの長さに合わせて繰り返す背景 */

.shop-spec-background::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: var(--shop-bottom-height);
    left: 0;
    z-index: 0;
    pointer-events: none;

    background-color: #fccf00;
    background-image: url("../image/shopguide_bg.webp");
    background-position: center top;
    background-size: 100% auto;
    background-repeat: repeat-y;
}

/* 常に共通背景の最下部に配置する画像 */

.shop-spec-background::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: var(--shop-bottom-height);
    z-index: 0;
    pointer-events: none;

    background-image: url("../image/shopguide_bg_bottom.webp");
    background-position: center bottom;
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

/* ========================================
   SHOP GUIDE
======================================== */

.shop-guide-section {
    position: relative;
    padding-top: calc(100 * var(--layout-unit));
    scroll-margin-top: 32px;
}

/* 見出し一式を右側に配置 */

.shop-guide-heading-box {
    position: relative;
    z-index: 3;

    width: calc(580 * var(--layout-unit));
    margin-left: auto;
    margin-right: 9%;
}

.shop-guide-heading {
    --heading-x: 0;
    --heading-y: -30;

    position: relative;
    left: calc(var(--heading-x) * var(--layout-unit));
    top: calc(var(--heading-y) * var(--layout-unit));
}

.shop-guide-heading img {
    display: block;
    width: 100%;
    height: auto;
}

/* キャプション全体の位置・サイズ */

.shop-guide-caption {
    --caption-x: 50;
    --caption-y: -160;

    position: relative;
    left: calc(var(--caption-x) * var(--layout-unit));
    top: calc(var(--caption-y) * var(--layout-unit));

    transform: rotate(0deg);
    transform-origin: center;

    display: block;
    width: calc(260 * var(--layout-unit));
    height: auto;
    margin: calc(8 * var(--layout-unit)) 0 0 auto;
    overflow: visible;
}

/* スマホ用キャプション：PCでは非表示 */

.shop-guide-caption-sp {
    display: none;
}

/* SVG内の文字 */

.shop-guide-caption text,
.shop-guide-caption textPath {
    font-family: "maru-maru-gothic-blr-stdn", sans-serif;
    font-size: 20px;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0.12em;
    fill: #3e5780;
}

/* 店舗情報の表示範囲 */

.shop-guide-content {
    width: 80%;
    margin:
        calc((130 + var(--shop-content-offset)) * var(--layout-unit)) auto 0;
    position: relative;
    z-index: 1;
}

/* 商品ボックス全体 */
.shop-products {
    display: grid;
    gap: calc(28 * var(--layout-unit));

    width: calc(780 * var(--layout-unit));
    max-width: 100%;
    margin: 0 auto;

    position: relative;
    left: 0px;
    top: 30px;
}

/* 各商品の白い枠 */
.shop-product {
    box-sizing: border-box;
    min-width: 0;
    overflow: hidden;

    border: 2px solid #fff;
    border-radius: 16px;
    background: #fff;

    color: #3e5780;
    font-family: "maru-maru-gothic-blr-stdn", sans-serif;
    font-size: clamp(14px, 1.458333vw, 28px);
    line-height: 1.7;
    text-align: center;
}

/* 商品名と価格 */
.shop-product-header {
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr);
    align-items: stretch;
}

.shop-product-title,
.shop-product-price {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 0;
    margin: 0;
    padding: 8px 12px;

    font: inherit;
    font-family: "maru-maru-gothic-blr-stdn", sans-serif;
    font-weight: 400;
    line-height: 1.4;
}

/* 青い商品名欄 */
.shop-product-title {
    background: #3e5780;
    color: #fff;
    font-size: clamp(20px, 2.083333vw, 40px);
}

/* 黄色い価格欄 */
.shop-product-price {
    background: #ffcf00;
    font-size: clamp(12px, 1.354167vw, 26px);
    white-space: nowrap;
}

/* 内容欄 */
.shop-product-body {
    padding: 12px 5%;
    font: inherit;
}

/* 特典一覧 */
.shop-product-benefits {
    margin: 0;
    padding: 0;
    list-style: none;
    font: inherit;
}

.shop-product-benefits li {
    padding: 3px 0;
    font: inherit;
    overflow-wrap: anywhere;
}

/* 最後の行以外に点線 */
.shop-product-benefits li:not(:last-child) {
    border-bottom: 2px dotted #3e5780;
}

/* 通常版・DL版の説明 */
.shop-product-description {
    margin: 0;
    padding: 3px 0;
    font: inherit;
    overflow-wrap: anywhere;
}

/* ========================================
   SPEC
======================================== */

.spec-section {
    position: relative;
    width: 78%;
    margin: calc(140 * var(--layout-unit)) auto 0;
    padding-top: calc(90 * var(--layout-unit));
    z-index: 1;

    scroll-margin-top: 32px;
}

/* 上の白い点線 */

.spec-section::before {
    --dot-size: calc(6 * var(--layout-unit));
    --dot-spacing: calc(35 * var(--layout-unit));

    content: "";
    position: absolute;
    top: calc(-20 * var(--layout-unit));
    left: calc(0 * var(--layout-unit));

    width: 100%;
    height: calc(10 * var(--layout-unit));

    background-image: radial-gradient(circle at center,
            #fff calc(var(--dot-size) / 2),
            transparent calc(var(--dot-size) / 2 + 0.5px));

    background-size: var(--dot-spacing) 100%;
    background-repeat: space no-repeat;
    background-position: center;

    border: none;
    pointer-events: none;
}

/* Spec全体の配置基準 */

.spec-layout {
    position: relative;
    display: block;
}

/* 見出し以外の内容を中央に配置 */

.spec-content {
    width: 75%;
    min-width: 0;
    margin: 0 auto;

    /* 前回の縮小を解除 */
    transform: none;
}

.spec-heading {
    margin: 0;
}

/* 見出し画像とキャプション */

.spec-heading-box {
    --spec-heading-x: 0;
    --spec-heading-y: 0;
    --spec-heading-width: 150;

    position: absolute;
    left: calc(var(--spec-heading-x) * var(--layout-unit));
    top: calc(var(--spec-heading-y) * var(--layout-unit));

    width: calc(var(--spec-heading-width) * var(--layout-unit));
}

/* 縦向きに書き出した見出し画像を想定 */

.spec-heading img {
    display: block;
    width: 100%;
    height: auto;
}

.spec-caption {
    width: fit-content;
    margin: calc(25 * var(--layout-unit)) auto 0;

    writing-mode: vertical-rl;
    font-family: "maru-maru-gothic-blr-stdn", sans-serif;
    font-size: calc(22 * var(--layout-unit));
    font-weight: 400;
    letter-spacing: 0.15em;
}

/* 製品画像と文字情報 */

.spec-overview {
    display: grid;
    grid-template-columns:
        calc(245 * var(--layout-unit)) minmax(0, 1fr);
    gap: calc(45 * var(--layout-unit));
    align-items: start;
}

.spec-image {
    display: block;
    width: 100%;
    height: auto;
}

.spec-information {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: calc(12 * var(--layout-unit)) calc(18 * var(--layout-unit));
    margin: 0;
}

.spec-row {
    display: grid;
    grid-template-columns:
        calc(150 * var(--layout-unit)) minmax(0, 1fr);
    align-items: start;
}

.spec-row-wide {
    grid-column: 1 / -1;
}

.spec-row dt,
.spec-row dd {
    margin: 0;
    padding: 0 calc(12 * var(--layout-unit));

    font-family: "maru-maru-gothic-blr-stdn", sans-serif;
    font-size: calc(15 * var(--layout-unit));
    font-weight: 400;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.spec-row dt {
    border-left: 1px solid currentColor;
    border-right: 1px solid currentColor;
    text-align: center;
}

/* 動作環境表 */

.spec-requirements {
    margin-top: calc(75 * var(--layout-unit));
}

.spec-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: calc(4 * var(--layout-unit));
}

.spec-table th,
.spec-table td {
    padding:
        calc(5 * var(--layout-unit)) calc(10 * var(--layout-unit));

    font-family: "maru-maru-gothic-blr-stdn", sans-serif;
    font-size: calc(15 * var(--layout-unit));
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    overflow-wrap: anywhere;
}

.spec-table th {
    width: 18%;
    background: #fff;
}

.spec-table td {
    background: rgba(255, 255, 255, 0.72);
}

/* ========================================
   10. FOOTER
======================================== */

.site-footer {
    /* 画面幅1920pxで1px。フッター全体の共通倍率 */
    --footer-unit: 0.052083333333vw;

    /* Shop Guideの背景に重ねる量 */
    --footer-overlap: calc(200 * var(--layout-unit));

    position: relative;
    z-index: 2;
    box-sizing: border-box;
    width: 100%;
    aspect-ratio: 1920 / 540;
    margin-top: calc(-1 * var(--footer-overlap));

    /* 中身を上から順に中央配置 */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: flex-start;

    /* 上・左右・下の余白 */
    padding: calc(48 * var(--footer-unit)) calc(20 * var(--footer-unit)) calc(32 * var(--footer-unit));

    /* 中身が収まる最低限の高さ */
    min-height: calc(420 * var(--footer-unit));
}

/* フッター背景だけを波形に切り抜く */

.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;

    background-image: url("../image/footer_bg.webp");
    background-position: center bottom;
    background-size: 100% auto;
    background-repeat: no-repeat;

    clip-path: var(--footer-wave-clip, inset(0));
}

/* SNSボタンの並び */

.footer-sns {
    /* SNSボタン全体の位置調整 */
    --sns-x: 0px;
    --sns-y: calc(50 * var(--footer-unit));

    position: relative;
    left: var(--sns-x);
    top: var(--sns-y);
    display: flex;
    justify-content: center;
    gap: calc(24 * var(--footer-unit));
    flex-shrink: 0;
    margin: 0;
}

/* SNSボタン：72×72px */

.footer-sns-button {
    display: block;
    width: calc(72 * var(--footer-unit));
    height: calc(72 * var(--footer-unit));
    flex-shrink: 0;
    cursor: pointer;
}

.footer-sns-button img {
    display: block;
    width: 100%;
    height: 100%;
}

.footer-sns-button:focus-visible {
    outline: calc(2 * var(--footer-unit)) solid #3e5780;
    outline-offset: calc(5 * var(--footer-unit));
}

/* 押している間だけ画像を変更 */

.footer-sns-button[data-share="facebook"]:active img {
    content: url("../image/fb_bt_a.webp");
}

.footer-sns-button[data-share="line"]:active img {
    content: url("../image/line_bt_a.webp");
}

.footer-sns-button[data-share="x"]:active img {
    content: url("../image/x_bt_a.webp");
}

/* ロゴのリンク枠 */

.footer-logo-link {
    /* ロゴの位置調整 */
    --logo-x: 0px;
    --logo-y: calc(70 * var(--footer-unit));

    position: relative;
    left: var(--logo-x);
    top: var(--logo-y);
    display: block;
    width: calc(672 * var(--footer-unit));
    max-width: 80%;
    flex-shrink: 0;
    margin: calc(24 * var(--footer-unit)) auto 0;
}

.footer-logo-link:focus-visible {
    outline: calc(2 * var(--footer-unit)) solid #3e5780;
    outline-offset: calc(5 * var(--footer-unit));
}

/* ロゴ画像 */

.footer-logo {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
}

/* コピーライト */

.footer-copyright {
    /* コピーライトの位置調整 */
    --copyright-x: 0px;
    --copyright-y: calc(100 * var(--footer-unit));

    position: relative;
    left: var(--copyright-x);
    top: var(--copyright-y);

    margin: calc(24 * var(--footer-unit)) 0 0;
    flex-shrink: 0;
    color: #3e5780;
    font-family: "maru-maru-gothic-blr-stdn", sans-serif;
    font-size: calc(14 * var(--footer-unit));
    font-weight: 400;
    font-style: normal;
    line-height: 1.5;
    text-align: center;
}

/* ========================================
   11. ニュースページのフッター配置
======================================== */

/* ページ全体を縦に並べる */

body.news-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    padding: 0;
}

/* 戻るボタンの下に、フッターまでの間隔を確保 */

.news-page .news-page-main {
    --footer-gap: 80px;

    flex: 0 0 auto;
    margin: 0 auto;
    padding-bottom: var(--footer-gap);
}

/* 内容が短いときは、余った高さをフッターの上に入れる */

.news-page .site-footer {
    flex-shrink: 0;
    margin-top: auto;
    margin-bottom: 0;
}

/* ========================================
   12. 装飾オブジェクト
======================================== */

.object-host {
    position: relative;
}

/* セクション内に残す、位置の基準点 */

.object-anchor {
    position: absolute;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* 画像と影の共通設定 */

.site-object {
    position: absolute;
    width: var(--object-width);

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

/* 画像本体：メニューの下、各項目の上 */

.site-object-main {
    z-index: 901;
}

/* 影だけを乗算する */

.site-object-shadow {
    z-index: 900;
    opacity: 0.15;
    mix-blend-mode: multiply;
}

.site-object img {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;

    transform: rotate(var(--object-rotation));
}

/* 黒いシルエット。ぼかしなし */

.site-object-shadow img {
    filter: brightness(0);
}

/* すべての影を右下へずらす */

.site-object-shadow .site-object-motion {
    position: relative;
    left: calc(8 * var(--layout-unit));
    top: calc(10 * var(--layout-unit));
}

/* メニューを最前面に維持 */

.drawer-menu-box {
    z-index: 999;
}

.hamburger-btn {
    z-index: 1000;
}

/* ==================================================
   PC表示：900px以上
   ================================================== */

/* 1921px以上だけの分岐は設けず、max()でPC全体の拡大率を調整します。 */
@media screen and (min-width: 900px) {
    /* ==================================================
       03. FIRST VIEW
       ================================================== */

    .fv-staff {
        bottom: calc(250 * var(--layout-unit));
    }

    .fv-staff-item+.fv-staff-item {
        margin-top: calc(12 * var(--layout-unit));
    }

    .fv-staff dt {
        width: calc(130 * var(--layout-unit));
        font-size: max(10px, calc(16 * var(--layout-unit)));
    }

    .fv-staff dd {
        font-size: max(12px, calc(28 * var(--layout-unit)));
    }

    /* ==================================================
       04. NEWS
       ================================================== */

    #allNewsList .news-item {
        min-width: 0;
        box-sizing: border-box;
    }

    #allNewsList .news-link {
        display: block;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    #allNewsList .news-thumbnail {
        display: block;
        width: 100%;
        max-width: 320px;
        height: auto;
        aspect-ratio: 16 / 9;
        object-fit: cover;
        margin: 0 auto 12px;
    }

    .news-section {
        min-height: calc(550 * var(--layout-unit));
        margin-top: calc(-80 * var(--layout-unit));
        padding-top: calc(180 * var(--layout-unit));
        padding-bottom: calc(60 * var(--layout-unit));
    }

    .news-inner {
        width: 62.5%;
        max-width: calc(1200 * var(--layout-unit));
        /* 記事幅の倍率：1で元の幅、0.9で90% */
        --news-article-ratio: 0.8;

        /* 見出しの幅と、記事までの間隔 */
        --news-heading-width: calc(180 * var(--layout-unit));
        --news-column-gap: 40px;

        grid-template-columns:
            var(--news-heading-width) minmax(0,
                calc((100% - var(--news-heading-width) - var(--news-column-gap)) * var(--news-article-ratio)));

        gap: var(--news-column-gap);
        justify-content: center;
    }

    /* 見出し・キャプション・ボタンを右揃え */
    .news-heading-box {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }

    .news-heading {
        width: 100%;
    }

    /* VIEW MORE：画面幅に合わせてサイズを調整 */
    .news-more-button {
        width: max-content;
        margin: 20px 0 0;

        font-size: clamp(12px, 0.833333vw, 20px);
        padding:
            clamp(6px, 0.416667vw, 10px) clamp(16px, 1.145833vw, 28px);

        white-space: nowrap;
    }

    .news-item {
        padding: max(8px, calc(12 * var(--layout-unit))) max(12px, calc(32 * var(--layout-unit)));
    }

    .news-section::before {
        --curve-depth: calc(100 * var(--layout-unit));
    }

    .news-heading-caption {
        font-size: max(18px, calc(18 * var(--layout-unit)));
    }

    .news-list {
        gap: max(8px, calc(8 * var(--layout-unit)));
    }

    .news-date {
        font-size: max(clamp(20px, 1.6vw, 28px), calc(28 * var(--layout-unit)));
    }

    .news-description {
        font-size: max(14px, calc(14 * var(--layout-unit)));
    }

    /* ==================================================
       05. ABOUT SS
       ================================================== */

    .about-section {
        padding-top: calc(70 * var(--layout-unit));
        padding-bottom: calc(100 * var(--layout-unit));
    }

    .about-heading {
        width: calc(410 * var(--layout-unit));
    }

    .about-description {
        margin-top: calc(50 * var(--layout-unit));
    }

    .about-description p {
        font-size: max(16px, calc(20 * var(--layout-unit)));
    }

    .about-description h3 {
        font-size: max(clamp(20px, 1.7vw, 30px), calc(30 * var(--layout-unit)));
    }

    .about-heading-caption {
        font-size: max(20px, calc(20 * var(--layout-unit)));
    }

    /* ==================================================
       06. EPISODE
       ================================================== */

    .episode-section {
        margin-top: calc(-80 * var(--layout-unit));
        padding-top: calc(70 * var(--layout-unit));
        padding-bottom: calc(120 * var(--layout-unit));
    }

    .episode-heading-caption {
        width: max(140px, calc(190 * var(--layout-unit)));
        height: auto;
    }

    .episode-heading-box {
        left: calc(30 * var(--layout-unit));
        top: calc(-20 * var(--layout-unit));
        width: calc(90% - 30 * var(--layout-unit));
        gap: calc(24 * var(--layout-unit));
    }

    .episode-heading {
        width: calc(360 * var(--layout-unit));
    }

    .episode-content {
        margin-top: calc(60 * var(--layout-unit));
        max-width: calc(1100 * var(--layout-unit));
    }

    .episode-item {
        grid-template-columns: max(44px, calc(64 * var(--layout-unit))) max(64px, calc(100 * var(--layout-unit))) minmax(0, 1fr);
        column-gap: max(12px, calc(20 * var(--layout-unit)));
    }

    .episode-number {
        font-size: max(30px, calc(48 * var(--layout-unit)));
    }

    .episode-title {
        font-size: max(22px, calc(28 * var(--layout-unit)));
    }

    .episode-character {
        font-size: max(16px, calc(20 * var(--layout-unit)));
    }

    .episode-summary {
        font-size: max(16px, calc(18 * var(--layout-unit)));
    }

    .episode-item:not(:last-child) .episode-details::after {
        left: calc(max(44px, 64 * var(--layout-unit)) + max(64px, 100 * var(--layout-unit)) + 2 * max(12px, 20 * var(--layout-unit)));
        top: calc(100% + max(36px, 36 * var(--layout-unit)));
        height: max(12px, calc(12 * var(--layout-unit)));
        background-size: max(32px, calc(32 * var(--layout-unit))) max(12px, calc(12 * var(--layout-unit)));
    }

    .episode-read-button {
        font-size: max(16px, calc(16 * var(--layout-unit)));
        padding: max(8px, calc(8 * var(--layout-unit))) max(22px, calc(22 * var(--layout-unit)));
    }

    .episode-pagination {
        margin-top: max(30px, calc(30 * var(--layout-unit)));
        gap: max(18px, calc(18 * var(--layout-unit)));
    }

    .episode-pagination-label {
        font-size: max(18px, calc(18 * var(--layout-unit)));
    }

    .episode-page-buttons {
        gap: max(10px, calc(10 * var(--layout-unit)));
    }

    .episode-page-button {
        width: max(44px, calc(44 * var(--layout-unit)));
        height: max(44px, calc(44 * var(--layout-unit)));
        font-size: max(24px, calc(24 * var(--layout-unit)));
    }

    .episode-list {
        row-gap: max(72px, calc(72 * var(--layout-unit)));
    }

    /* ==================================================
       07. CHARACTER
       ================================================== */

    .character-buttons>.character-select-button:nth-child(-n+8) {
        grid-column: 2;
    }

    .character-buttons>.character-select-button:nth-child(n+9) {
        grid-column: 1;
    }

    /* 1段目 */

    .character-buttons>.character-select-button:nth-child(1),
    .character-buttons>.character-select-button:nth-child(9) {
        grid-row: 1;
    }

    /* 2段目 */

    .character-buttons>.character-select-button:nth-child(2),
    .character-buttons>.character-select-button:nth-child(10) {
        grid-row: 2;
    }

    /* 3段目 */

    .character-buttons>.character-select-button:nth-child(3),
    .character-buttons>.character-select-button:nth-child(11) {
        grid-row: 3;
    }

    /* 4段目 */

    .character-buttons>.character-select-button:nth-child(4),
    .character-buttons>.character-select-button:nth-child(12) {
        grid-row: 4;
    }

    /* 5段目 */

    .character-buttons>.character-select-button:nth-child(5),
    .character-buttons>.character-select-button:nth-child(13) {
        grid-row: 5;
    }

    /* 6段目 */

    .character-buttons>.character-select-button:nth-child(6),
    .character-buttons>.character-select-button:nth-child(14) {
        grid-row: 6;
    }

    /* 7・8段目は右列のみ */

    .character-buttons>.character-select-button:nth-child(7) {
        grid-row: 7;
    }

    .character-buttons>.character-select-button:nth-child(8) {
        grid-row: 8;
    }

    /* SHOP GUIDE・SPEC：フッターとの重なりに備える */
    .shop-spec-background {
        /* フッターが上へ重なる量 */
        --shop-footer-overlap: calc(200 * var(--layout-unit));

        /* Spec最下部とフッターの間に残す余白 */
        --shop-footer-gap: calc(60 * var(--layout-unit));

        padding-bottom:
            calc(var(--shop-footer-overlap) + var(--shop-footer-gap));
    }

    /* ==================================================
       11. ニュースページのフッター配置
       ================================================== */

    body.news-page {
        min-height: max(1080px, 100vh);
    }
}

/* ==================================================
   動きを抑える設定
   ================================================== */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .gallery-thumbnail-track {
        transition: none;
    }
}

/* ==================================================
   タブレット表示：899px以下（スマホにも適用）
   ================================================== */

@media screen and (max-width: 899px) {
    /* ==================================================
       01. 共通設定
       ================================================== */

    .pc {
        display: none !important;
    }

    .sp {
        display: inherit !important;
    }

    /* ==================================================
       03. FIRST VIEW
       ================================================== */

    .fv-staff {
        left: 4%;
        bottom: 50px;
        width: 57%;
    }

    .fv-staff-item+.fv-staff-item {
        margin-top: 8px;
    }

    .fv-staff dt {
        width: 90px;
        /* ラベルの横幅 */
        font-size: 14px;
        /* ラベルの文字サイズ */
    }

    .fv-staff dd {
        font-size: 16px;

        /* 文字サイズに比例する影 */
        text-shadow:
            0 0 0.167em #fff,
            0 0 0.167em #fff,
            0 0 0.167em #fff,
            0 0 0.333em #fff,
            0 0 0.333em #fff,
            0 0 0.333em #fff,
            0 0 0.333em #fff,
            0 0 0.5em #fff,
            0 0 0.5em #fff,
            0 0 0.5em #fff,
            0 0 0.5em #fff,
            0 0 0.75em #fff,
            0 0 0.75em #fff,
            0 0 1.083em #fff;
    }

    .fv-release {
        --release-bottom: 20px;
        --release-stop-bottom: 50px;
        width: 32%;
        right: 4%;
    }

    .fv-release.is-stopped {
        right: 4%;
    }

    .top_img {
        width: 128%;
        padding: 3% 0 0;
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1;
    }

    .key_black_logo {
        display: block;
        position: absolute;
        top: 0px;
        left: 5%;
        width: 10%;
        z-index: 5;
    }

    .first_view_wrapper {
        margin-bottom: 20px;
    }

    .fv-wave-catch {
        width: 90%;

        /* SVG全体に白い影を付ける */
        filter:
            drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #fff) drop-shadow(0 0 2px #fff) drop-shadow(0 0 3px #fff) drop-shadow(0 0 5px #fff) drop-shadow(0 0 7px #fff);
    }

    /* 文字側の影は解除し、二重にかけない */

    .fv-wave-catch text {
        filter: none;
    }

    .fv_logo {
        width: 60%;
        z-index: 2;
    }

    /* ロゴの大きさに合わせて白い影も縮小 */

    .fv_logo img {
        --fv-logo-shadow: 2.04vw;

        filter:
            drop-shadow(0 0 var(--fv-logo-shadow) #fff) drop-shadow(0 0 var(--fv-logo-shadow) #fff) drop-shadow(0 0 var(--fv-logo-shadow) #fff) drop-shadow(0 0 var(--fv-logo-shadow) #fff) drop-shadow(0 0 var(--fv-logo-shadow) #fff);
    }

    /* ==================================================
       04. NEWS
       ================================================== */

    .news-section {
        min-height: 0;
        margin-top: -24px;
        padding-top: 80px;
        padding-bottom: 48px;
    }

    .news-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        width: 88%;
    }

    .news-item {
        padding-right: 16px;
        padding-left: 16px;
    }

    .news-heading-box {
        display: contents;
    }

    /* 見出し */

    .news-inner .news-heading {
        grid-column: 1;
        grid-row: 1;
        width: 25%;
        margin: 0 auto;
    }

    /* キャプション */

    .news-inner .news-heading-caption {
        grid-column: 1;
        grid-row: 2;
        margin: 10px 0 24px;
        text-align: center;
    }

    /* 記事 */

    .news-inner .news-list {
        grid-column: 1;
        grid-row: 3;
        min-width: 0;
    }

    /* VIEW MOREボタン */

    .news-inner .news-more-button {
        grid-column: 1;
        grid-row: 4;
        justify-self: center;
        width: fit-content;
        margin: 24px auto 0;
        white-space: nowrap;
    }

    /* ニュース一覧ページ：スマホは縦1列 */

    #allNewsList {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        gap: 16px;
    }

    #allNewsList .news-item {
        /* 内側320px＋左右の余白32px＋左枠線4px */
        box-sizing: border-box;
        width: 356px;
        max-width: 100%;
    }

    /* Episodeのスマホ用ボタンに合わせる */

    .news-more-button,
    .news-back-links a {
        font-size: 14px;
        padding-right: 18px;
        padding-left: 18px;
    }

    /* 個別記事の戻るボタン：縦並び・中央揃え */

    .news-back-links.news-article-back-links {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    /* ==================================================
       05. ABOUT SS
       ================================================== */

    .about-section {
        padding-top: 48px;
        padding-bottom: 25%;
        aspect-ratio: auto;
    }

    /* 見出し画像のサイズ */
    .about-heading {
        width: 40%;
        max-width: 90%;
        margin: 0 auto 8px;
    }

    /* スマホ：茶色の曲線の太さ */

    .about-wire path {
        stroke-width: 2px;
    }

    .about-description {
        margin-top: 32px;
    }

    .about-description p {
        font-size: 16px;
    }

    /* ==================================================
       06. EPISODE
       ================================================== */

    .episode-section {
        aspect-ratio: auto;
        margin-top: calc(-25% + 50px);
        padding-top: 90px;
    }

    /* PC用の曲がったキャプションを隠す */

    .episode-heading-caption {
        display: none;
    }

    /* 見出し画像とキャプションを中央に縦並び */

    .episode-heading-box {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        top: 0;
        left: 0;
        width: 90%;
        margin: 0 auto;
        text-align: center;
    }

    /* 元画像の比率を保って表示 */

    .episode-heading {
        width: 35%;
        max-width: 100%;
        margin: 0;
    }

    /* スマホ用のまっすぐなキャプション */

    .episode-heading-caption-sp {
        display: block;
        margin: 0;
        color: #3e5780;
        font-family: "maru-maru-gothic-blr-stdn", sans-serif;
        font-size: 16px;
        font-weight: 400;
        line-height: 1.5;
        text-align: center;

        /* キャプションだけの位置調整 */
        position: relative;
        left: 0px;
        top: -20px;
    }

    .episode-content {
        width: 90%;
        margin-top: 40px;
    }

    .episode-item:not(:last-child) .episode-details::after {
        left: 0;
    }

    /* 上段：番号・画像・タイトル／下段：ボタン */

    .episode-item {
        display: grid;
        grid-template-columns: 38px 76px minmax(0, 1fr);
        column-gap: 12px;
        row-gap: 16px;
        align-items: center;
    }

    /* 番号 */

    .episode-number {
        grid-column: 1;
        grid-row: 1;
        margin: 0;
        padding: 0;
        top: 0;
        font-size: 32px;
        line-height: 1;
        letter-spacing: 0;
    }

    /* 丸い画像 */

    .episode-thumb {
        grid-column: 2;
        grid-row: 1;
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        border-radius: 50%;
    }

    /* 中のタイトルとボタンを別々の行へ配置できるようにする */

    .episode-details {
        display: contents;
    }

    /* タイトル全体 */

    .episode-title {
        grid-column: 3;
        grid-row: 1;
        min-width: 0;
        margin: 0;
        font-size: 20px;
        line-height: 1.5;
        overflow-wrap: anywhere;
    }

    /* ○○編 */

    .episode-character {
        display: block;
        margin-bottom: 2px;
        font-size: 16px;
    }

    /* 「タイトル」 */

    .episode-title-text {
        display: block;
        padding-left: 1em;
        text-indent: -1em;
    }

    /* 添付の構成に合わせ、スマホでは紹介文を非表示 */

    .episode-summary {
        display: none;
    }

    /* ボタンを記事の横幅いっぱいに広げる */

    .episode-read-button {
        grid-column: 1 / -1;
        grid-row: 2;
        box-sizing: border-box;
        width: 100%;
        margin: 0;
        padding: 12px 8px;
        font-size: 18px;
        line-height: 1.5;
        text-align: center;
        white-space: nowrap;
    }

    /* Episode13〜16のボタン代わりのテキスト */

    .episode-note {
        grid-column: 1 / -1;
        grid-row: 2;
        margin: 0;
        font-size: 18px;
        text-align: left;
    }

    .episode-dialog {
        padding: 60px 24px 30px;
    }

    .episode-section::before {
        background-image: url("../image/episode_bg_sp.webp");
        background-position: center top;
        background-size: 100% auto;
        background-repeat: repeat-y;
    }

    /* Other Episodesをボタンの上へ */

    .episode-pagination {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 12px;
    }

    /* ラベルを中央揃え */

    .episode-pagination-label {
        margin: 0;
        text-align: center;
    }

    /* ボタンを中央揃え */

    .episode-page-buttons {
        justify-content: center;
    }

    /* ==================================================
       07. CHARACTER
       ================================================== */

    .character-section {
        min-height: calc(var(--character-bg-top-height, 0px) + var(--character-bg-bottom-height, 0px));
        margin-top: -100px;
        padding-top: 150px;
        padding-bottom: 120px;

        /* 切り替わる内容全体の位置 */
        --character-content-x: 0px;
        --character-content-y: 80px;

        /* 背景全体を下へ移動 */
        --character-bg-offset: 30px;
    }

    .character-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .character-visual {
        touch-action: pan-y pinch-zoom;
        translate: var(--character-content-x) var(--character-content-y);
    }

    .character-standing {
        /* 立ち絵の位置 */
        --standing-sp-x: 0px;
        --standing-sp-y: 120px;

        /* 立ち絵の拡大率 */
        --standing-scale: 1.4;

        left: var(--standing-sp-x);
        top: var(--standing-sp-y);

        /* 画像を収める枠の高さ */
        height: 520px;
    }

    .character-quote {
        /* 左端からの位置 */
        left: calc(300 * var(--layout-unit));

        /* 上端からの位置 */
        top: 60px;

        /* 文字サイズ */
        font-size: 18px;
    }

    .character-profile {
        padding-top: 0;

        /* 紹介情報全体の位置 */
        left: calc(0 * var(--layout-unit));
        top: calc(200 * var(--layout-unit));

        translate: var(--character-content-x) var(--character-content-y);
    }

    .character-catch {
        font-size: 16px;
        width: 100%;
        max-width: 400px;

        /* PC用の位置ずらしを解除 */
        left: 0;
        top: 0;

        /* 最後の数値が名前との間隔 */
        margin: 0 auto -15px;
    }

    .character-name {
        font-size: 32px;
        top: 0;
        margin-top: 0;
    }

    .character-cv-label {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }

    #characterCv {
        font-size: 18px;
    }

    .character-description {
        position: relative;

        /* 紹介文だけの位置 */
        left: 0px;
        top: 0px;

        /* 文字サイズ・行間 */
        font-size: 16px;
        line-height: 1.7;
    }

    .character-facts {
        margin-top: 24px;
    }

    .character-facts li {
        font-size: 16px;
    }

    .character-buttons {
        grid-row: 2;
        display: grid;
        grid-template-columns: repeat(16, minmax(0, 1fr));
        gap: 6px;
        padding: 0;
        position: relative;
        z-index: 10;
    }

    /* 1個のアイコンに2列分を使う */

    .character-buttons .character-select-button {
        grid-column: span 2;
    }

    /* 下段の開始位置を1個分右へ寄せる */

    .character-buttons .character-select-button:nth-child(9) {
        grid-column: 3 / span 2;
    }

    .character-heading {
        width: 45%;
        margin: auto;
    }

    .character-heading-caption {
        width: 100%;
        margin: 0;
        writing-mode: inherit;
        text-align: center;
        font-size: 16px;
        line-height: 1.5;
        letter-spacing: 0.1em;
        color: #fff;
    }

    .character-voices {
        gap: 16px;
        margin-top: 24px;
    }

    .character-voices-label {
        font-size: 16px;
    }

    .character-voice-buttons {
        gap: 10px;
    }

    .character-voice-button {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }

    .character-heading-box {
        grid-row: 1;
        display: none;
        justify-content: center;
        align-items: center;
        gap: 20px;
    }

    .character-heading-box_sp {
        width: 100%;
        display: block;
    }

    /* 上段：元画像の比率で1枚だけ表示 */

    .character-section::before {
        inset: auto;
        top: var(--character-bg-offset);
        left: 0;
        width: 100%;
        height: auto;
        aspect-ratio: 800 / 1410;

        background-color: transparent;
        background-image: url("../image/character_bg_sp.webp");
        background-position: center top;
        background-size: 100% 100%;
        background-repeat: no-repeat;
        clip-path: none;
    }

    /* 下段：紹介文の最終行まで伸縮 */

    .character-section::after {
        content: "";
        position: absolute;
        top: var(--character-bg-top-height, 176.25vw);
        left: 0;
        width: 100%;
        height: var(--character-bg-bottom-height, 0px);

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

        background-image: url("../image/character_bg_bottom_sp.webp");
        background-position: center top;
        background-size: 100% auto;
        background-repeat: repeat-y;
    }

    /* ==================================================
       08. GALLERY
       ================================================== */

    .gallery-section {
        margin-top: -200px;
        padding: 120px 0 80px;
    }

    /* 横スワイプに対応しつつ、縦スクロールと拡大は維持 */

    .gallery-thumbnails,
    .gallery-preview-frame {
        touch-action: pan-y pinch-zoom;
    }

    .gallery-section::before {
        top: -60px;
        background-image: url("../image/gallery_bg_sp.webp");
        aspect-ratio: 800 / 1000;
        background-size: 100% auto;
        background-repeat: no-repeat;
    }

    /* 見出し画像 */

    .gallery-heading {
        width: 30%;
        left: 0px;
        top: 100px;
    }

    /* キャプション */

    .gallery-heading-caption {
        font-size: 14px;
        left: 0px;
        top: 70px;
    }

    .gallery-carousel {
        width: 80%;
        margin-top: 30px;

        position: relative;
        left: 0px;
        top: 70px;
    }

    /* サムネイル列だけを移動 */

    .gallery-thumbnails {
        --gallery-frame-gap: 6px;
        --gallery-frame-border: 2px;

        left: 0px;
        top: 0px;
    }

    .gallery-thumbnail-track {
        --gallery-gap: 6px;
    }

    /* 大きい画像と左右の矢印をまとめて移動 */

    .gallery-preview-row {
        width: 100%;
        grid-template-columns: 28px minmax(0, 1fr) 28px;
        gap: 6px;
        margin-top: 20px;

        position: relative;
        left: 0px;
        top: 0px;
    }

    /* ==================================================
       09. SHOP GUIDE・SPEC：共通背景
       ================================================== */

    .shop-spec-background {
        --shop-overlap: 80px;

        /* プラスで下へ、マイナスで上へ */
        --shop-position-y: -40px;

        margin-top: calc(-1 * var(--shop-overlap) + var(--shop-position-y));

        padding-bottom: var(--shop-bottom-space);

        /* 最後の動作環境ボックスから背景の下端までの余白 */
        --shop-bottom-space: 100px;

        /* PC用の装飾オブジェクト基準の最低高さを解除 */
        min-height: 0;
    }

    .shop-guide-section {
        padding-top: 45px;
    }

    /* 見出しとキャプション全体 */

    .shop-guide-heading-box {
        width: 90%;
        margin: 0 auto;
        text-align: center;

        /* 見出し・キャプション全体の位置 */
        left: 0px;
        top: 260px;
    }

    /* 見出し画像：元画像の半分の大きさ */

    .shop-guide-heading {
        left: 0;
        top: 50px;
        width: 45%;
        max-width: 100%;
        margin: 0 auto;
    }

    /* PC用の曲がったキャプションを隠す */

    .shop-guide-caption {
        display: none;
    }

    /* スマホ用のまっすぐなキャプション */

    .shop-guide-caption-sp {
        display: block;
        margin: 10px 0 0;
        font-family: "maru-maru-gothic-blr-stdn", sans-serif;
        font-size: 16px;
        font-weight: 400;
        line-height: 1.5;
        color: #3e5780;
        text-align: center;
        position: relative;
        left: 0px;
        top: 45px;
    }

    .shop-guide-content {
        width: 88%;
        margin-top: 80px;

        /* 店舗情報全体の位置 */
        left: 0px;
        top: 260px;
    }

    .shop-products {
        width: 100%;
        max-width: 100%;
        gap: 24px;

        left: 0px;
        top: -10px;
    }

    .shop-product {
        border-radius: 12px;
        font-size: 18px;
    }

    .shop-product-title {
        font-size: 28px;
    }

    .shop-product-price {
        font-size: 18px;
    }

    .spec-section {
        width: 90%;
        margin-top: 320px;
        padding-top: 40px;
    }

    .spec-section::before {
        --dot-size: 4px;
        /* 点の直径 */
        height: 6px;
        background-size: 18px 100%;
    }

    .spec-layout {
        display: block;
    }

    /* PC用の絶対配置を解除し、内容の上に置く */

    .spec-heading-box {
        position: relative;
        left: auto;
        top: auto;
        width: 100%;
        margin: 0 auto 30px;
        text-align: center;
    }

    /* 見出し画像：元画像の半分の大きさ */

    .spec-heading {
        width: 20%;
        max-width: 100%;
        margin: 0 auto;
    }

    /* キャプションを横書き・中央揃え */

    .spec-caption {
        width: auto;
        margin: 10px 0 0;
        writing-mode: horizontal-tb;
        font-size: 16px;
        font-weight: 400;
        line-height: 1.5;
        color: #3e5780;
        text-align: center;
        left: 0px;
        top: 0px;
    }

    .spec-overview {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .spec-image {
        width: 55%;
        margin: 0 auto;
    }

    .spec-information {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .spec-row {
        grid-template-columns: 90px minmax(0, 1fr);
    }

    .spec-row dt,
    .spec-row dd {
        padding: 0 8px;
        font-size: 12px;
    }

    /* 動作環境：横スクロールを解除 */

    .spec-requirements {
        margin-top: 32px;
        min-width: 0;
        overflow-x: visible;
    }

    .spec-table {
        display: block;
        width: 100%;
        min-width: 0;
        border-spacing: 0;
    }

    /* 全ボックスを1列に並べ、高さを統一 */

    .spec-table tbody {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-auto-rows: 40px;
        gap: 6px;
    }

    /* 項目名と内容を、それぞれ独立したボックスとして並べる */

    .spec-table tr {
        display: contents;
    }

    .spec-table th,
    .spec-table td {
        display: flex;
        align-items: center;
        justify-content: center;

        box-sizing: border-box;
        width: 100%;
        min-width: 0;
        min-height: 0px;
        margin: 0;
        padding: 10px 12px;

        font-size: 12px;
        line-height: 1.6;
        text-align: center;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    /* ==================================================
       10. FOOTER
       ================================================== */

    .site-footer {
        /* 画面幅400pxで1px。タブレット・スマホ共通の倍率 */
        --footer-unit: 0.25vw;

        aspect-ratio: auto;
        min-height: 0;
        padding: calc(32 * var(--footer-unit)) calc(20 * var(--footer-unit));
    }

    /* スマホ用フッター背景 */

    .site-footer::before {
        background-image: url("../image/footer_bg_sp.webp");
        background-size: cover;
        background-position: center bottom;
        background-repeat: no-repeat;
    }

    /* SNSボタン全体の位置と間隔 */

    .footer-sns {
        --sns-x: 0px;
        --sns-y: calc(30 * var(--footer-unit));
        gap: calc(16 * var(--footer-unit));
    }

    /* SNSボタン1個のサイズ */

    .footer-sns-button {
        width: calc(35 * var(--footer-unit));
        height: calc(35 * var(--footer-unit));
    }

    /* ロゴの位置とサイズ */

    .footer-logo-link {
        --logo-x: 0px;
        --logo-y: calc(20 * var(--footer-unit));

        width: calc(250 * var(--footer-unit));
        max-width: 100%;
        margin-top: calc(24 * var(--footer-unit));
    }

    /* コピーライトの位置と文字サイズ */

    .footer-copyright {
        --copyright-x: 0px;
        --copyright-y: calc(15 * var(--footer-unit));

        font-size: calc(12 * var(--footer-unit));
        margin-top: calc(24 * var(--footer-unit));
    }

    /* ==================================================
       11. ニュースページのフッター配置
       ================================================== */

    .news-page .news-page-main {
        --footer-gap: 48px;
        padding-top: 50px;
    }

    /* ==================================================
       12. 装飾オブジェクト
       ================================================== */

    .site-object,
    .object-anchor {
        display: none;
    }
}

/* ==================================================
   スマホ表示：699px以下
   ================================================== */

@media screen and (max-width: 699px) {

    /* ==================================================
   03. FIRST VIEW
   ================================================== */

    /* スマホ：ファーストビューのキャッチコピー */
    .fv-wave-catch text {
        font-size: 28pt;
    }

    .fv-staff dt {
        width: 64px;
        font-size: 10px;
    }

    .fv-staff dd {
        font-size: 11px;
    }

    /* ==================================================
   04. NEWS
   ================================================== */

    /* 見出し画像 */
    .news-inner .news-heading {
        width: 140px;
        margin: 0 auto;
    }

    /* キャプション */
    .news-inner .news-heading-caption {
        margin: 10px 0 24px;
        font-size: 18px;
        text-align: center;
    }

    /* ==================================================
   05. ABOUT SS
   ================================================== */

    /* 見出し画像 */
    .about-heading {
        width: clamp(220px, 30vw, 410px);
        margin: 0 auto 8px;
    }

    /* キャプション */
    .about-heading-caption {
        margin: 0 0 24px;
        font-size: 20px;
        line-height: 1.6;
        text-align: center;
    }

    /* ==================================================
   06. EPISODE
   ================================================== */

    /* 見出し画像とキャプション全体 */
    .episode-heading-box {
        gap: 10px;
        top: 0;
        left: 0;
        width: 90%;
        margin: 0 auto;
        text-align: center;
    }

    /* 見出し画像 */
    .episode-heading {
        width: 188px;
        max-width: 100%;
        margin: 0;
    }

    /* キャプション */
    .episode-heading-caption-sp {
        margin: 0;
        font-size: 16px;
        line-height: 1.5;
        text-align: center;
    }

    /* ==================================================
   07. CHARACTER
   ================================================== */

    .character-standing {
        --standing-sp-x: 0px;
        --standing-sp-y: 0px;
        --standing-scale: 1.2;

        height: 520px;
    }

    .character-quote {
        left: calc(100 * var(--layout-unit));
        top: 40px;
        font-size: 16px;
    }

    .character-profile {
        left: calc(0 * var(--layout-unit));
        top: calc(-20 * var(--layout-unit));
    }

    .character-description {
        left: 0px;
        top: 0px;
        font-size: 16px;
        line-height: 1.7;
    }

    .character-name {
        font-size: 32px;
        top: 0;
        margin-top: 0;
    }

    .character-facts li {
        font-size: 16px;
    }

    /* ==================================================
   08. GALLERY
   ================================================== */

    .gallery-section {
        margin-top: -120px;
    }

    .gallery-heading {
        left: 0px;
        top: -50px;
    }

    .gallery-heading-caption {
        left: 0px;
        top: -80px;
    }

    .gallery-carousel {
        left: 0px;
        top: -80px;
    }

    .gallery-thumbnails {
        left: 0px;
        top: 0px;
    }

    .gallery-preview-row {
        left: 0px;
        top: 0px;
    }

    /* ==================================================
   09. SHOP GUIDE・SPEC：共通背景
   ================================================== */

    .shop-spec-background {
        --shop-position-y: -80px;
        --shop-bottom-space: 50px;
    }

    .shop-guide-heading-box {
        left: 0px;
        top: 0px;
    }

    .shop-guide-heading {
        left: 0px;
        top: 100px;
    }

    .shop-guide-caption-sp {
        left: 0px;
        top: 95px;
    }

    .shop-guide-content {
        margin-top: 130px;
        left: 0px;
        top: 0px;
    }

    .shop-products {
        width: 100%;
        max-width: 100%;
        gap: 16px;

        left: 0px;
        top: -10px;
    }

    .shop-product {
        font-size: 14px;
    }

    .shop-product-title,
    .shop-product-price {
        padding: 10px 6px;
    }

    .shop-product-title {
        font-size: 22px;
    }

    .shop-product-price {
        font-size: 12px;
    }

    .shop-product-body {
        padding: 10px 4%;
    }

    .shop-product-benefits li {
        padding: 6px 0;
    }

    .spec-section {
        margin-top: 50px;
        padding-top: 40px;
    }

    .spec-section::before {
        left: calc(0 * var(--layout-unit));
        top: calc(-20 * var(--layout-unit));
    }

    .spec-heading-box {
        left: auto;
        top: auto;
    }

    .spec-caption {
        margin: 10px 0 0;
    }

    .spec-content {
        left: 0px;
        top: 0px;
    }

    .spec-overview {
        left: 0px;
        top: 0px;
    }

    .spec-requirements {
        margin-top: 32px;
        left: 0px;
        top: 0px;
    }

    /* Spec：スマホの見出し列の幅 */
    .spec-row {
        grid-template-columns: 106px minmax(0, 1fr);
    }

    /* 内容欄：短い最終行ができにくいように折り返す */
    .spec-row dd {
        text-wrap: pretty;
    }

    /* 動作環境：3行以上になっても文字が収まる高さにする */
    .spec-table tbody {
        grid-auto-rows: minmax(40px, auto);
    }

    /* ==================================================
   10. FOOTER
   ================================================== */

    .footer-sns-button {
        width: calc(50 * var(--footer-unit));
        height: calc(50 * var(--footer-unit));
    }

    .footer-copyright {
        font-size: calc(12 * var(--footer-unit));
    }

}