/*
Theme Name: Drama Stage
Theme URI: https://drama-stage.com
Author: Harashima
Description: Original Theme
Version: 1.0
*/
/* ------------------------------
   RESET
------------------------------ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    display: block;
}

/* ------------------------------
   ▼ パーツ1：赤い幕（背景）
------------------------------ */
.stage-wrapper {
    position: relative;
    width: 100%;
    min-height: 70vh; /* ← 幕の高さそのまま */
    overflow: hidden;
}

.stage-cover {
    position: absolute;
    inset: 0;
    background-image: url("https://drama-stage.com/wp-content/uploads/2026/05/main_ImageA--scaled.jpg");
    background-size: cover;
    background-position: center top;
    z-index: 1;
}

.stage-inner {
    position: relative;
    z-index: 5;
}

/* ------------------------------
   ▼ タイトル
------------------------------ */
.site-title {
    position: absolute;
    top: 20vh;
    left: 50%;
    transform: translateX(-50%);
    font-size: 80px;
    font-family: 'Cinzel Decorative', serif;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #e8c75a;
    text-shadow:
        0 0 18px rgba(255,255,255,0.95),
        0 0 36px rgba(255,255,255,0.85),
        0 0 60px rgba(255,255,255,0.75);
    transition: color 0.4s ease, text-shadow 0.4s ease, transform 0.3s ease;
    z-index: 10;
}

.site-title:hover {
    color: #d4a300;
    text-shadow:
        0 0 30px rgba(255,255,255,1),
        0 0 70px rgba(255,255,255,0.95),
        0 0 120px rgba(255,255,255,0.9),
        0 0 180px rgba(255,255,255,0.85);
    transform: translateX(-50%) scale(1.05);
}

/* ------------------------------
   ▼ サブタイトル
------------------------------ */
.site-subtitle {
    position: absolute !important;
    top: 155px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    font-size: 20px;
    color: #fff;
    letter-spacing: 0.15em;
    z-index: 9999 !important;
    display: flex;
    gap: 4px;
}

.site-subtitle span {
    opacity: 0;
    font-size: 20px;
    animation: fadeIn 0.7s ease forwards;
}

.site-subtitle span:nth-child(1)  { animation-delay: 4.1s; }
.site-subtitle span:nth-child(2)  { animation-delay: 4.2s; }
.site-subtitle span:nth-child(3)  { animation-delay: 4.3s; }
.site-subtitle span:nth-child(4)  { animation-delay: 4.4s; }
.site-subtitle span:nth-child(5)  { animation-delay: 4.5s; }
.site-subtitle span:nth-child(6)  { animation-delay: 4.6s; }
.site-subtitle span:nth-child(7)  { animation-delay: 4.7s; }
.site-subtitle span:nth-child(8)  { animation-delay: 4.8s; }
.site-subtitle span:nth-child(9)  { animation-delay: 4.9s; }
.site-subtitle span:nth-child(10) { animation-delay: 5.0s; }
.site-subtitle span:nth-child(11) { animation-delay: 5.1s; }
.site-subtitle span:nth-child(12) { animation-delay: 5.2s; }
.site-subtitle span:nth-child(13) { animation-delay: 5.3s; }

@keyframes fadeIn {
    to { opacity: 1; }
}

/* ------------------------------
   ▼ キャラクター（修正版）
------------------------------ */
.top-hero {
    position: absolute;
    top: 210px !important;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}


.emora {
    opacity: 0;
    position: relative;
    z-index: 3;
    animation:
        emoraIn 2s ease-out 4.8s forwards,
        bowMotion 3s ease-in-out 6s infinite;
}

@keyframes bowMotion {
    0%   { left: 0; }
    25%  { left: -10px; }
    50%  { left: 0; }
    75%  { left: 10px; }
    100% { left: 0; }
}

/* ▼ キャラ後ろの光（修正版） */
.top-hero::before {
    content: "";
    position: absolute;
    top: 55%; /* ← 50% → 55% に修正済み */
    left: 50%;
    width: 550px;
    height: 550px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0) 70%);
    opacity: 0;
    animation: heroLight 4s ease-out forwards;
    z-index: 1;
}

/* ▼ 足元ライト（修正版） */
.top-hero::after {
    content: "";
    position: absolute;
    bottom: 0px; /* ← 20px → 0px に修正済み */
    left: 50%;
    width: 220px;
    height: 80px;
    transform: translate(-50%, 40px);
    background: radial-gradient(ellipse at center, rgba(255,230,150,0.8) 0%, rgba(255,230,150,0) 70%);
    opacity: 0;
    animation: footLight 1.2s ease-out forwards;
    animation-delay: 4s;
    z-index: 2;
}

.stage-inner .emora {
    width: 300px !important;
    margin-top: 15px;
}


@keyframes heroLight {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes footLight {
    0% { opacity: 0; transform: translateX(-50%) scale(0.8); }
    100% { opacity: 1; transform: translateX(-50%) scale(1); }
}

@keyframes emoraIn {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}
/* ------------------------------
   ▼ 両サイドの光（えもら登場後の花火）
------------------------------ */
.stage-wrapper::before,
.stage-wrapper::after {
    content: "";
    position: absolute;
    top: 40%; /* 画面の縦40％あたりに光を出す */
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(255,230,150,0.9) 0%,
        rgba(255,230,150,0) 70%);
    opacity: 0;
    z-index: 8;
    animation: firework 1.4s ease-out forwards;
    animation-delay: 5.2s; /* 左側の発火タイミング */
}

.stage-wrapper::before {
    left: 5%;
}

.stage-wrapper::after {
    right: 5%;
    animation-delay: 5.6s; /* 右側は少し遅らせる */
}

/* 光のアニメーション */
@keyframes firework {
    0% {
        transform: scale(0.4);
        opacity: 0;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}
/* ▼ 背景幕（stage-cover）を正しく固定する */
/* ▼ 幕が上に上がるアニメーション（必須） */
/* ▼ 幕が上に上がるアニメーション（完全版） */
@keyframes curtainOpen {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-100%);
    }
}

.stage-curtain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("https://drama-stage.com/wp-content/uploads/2026/05/up_maku-scaled.png");
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: 99999;
    animation: curtainOpen 4s ease-out forwards;
}

/* ------------------------------
   ▼ フッター
------------------------------ */
.site-footer {
    background-image: url('https://drama-stage.com/wp-content/uploads/2026/05/footer-scaled-1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 40px 0;
    color: #fff;
}

.footer-nav a,
.footer-nav a:visited {
    color: #ffffff !important;
}

.footer-nav a:hover {
    color: #ffdd55;
}

.footer-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
/* ============================================
   ▼ INFORMATION（赤幕ステージ版・完成形）
============================================ */

/* ▼ 外枠：赤幕＋ゴールド枠＋照明 */
.information-board {
    background: #8b0000; /* 深い赤＝劇場幕 */
    border: 4px solid #d4af37; /* ゴールド枠 */
    padding: 25px;
    margin: 40px 0;
    border-radius: 10px;
    box-shadow:
        0 4px 12px rgba(0,0,0,0.4),
        inset 0 0 30px rgba(0,0,0,0.35);
}

/* ▼ ヘッダー（左右アイコン＋中央タイトル） */
.information-board .info-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 18px;
}

/* ▼ アイコン（案内スタッフ） */
.information-board .info-icon {
    width: 52px;
    height: auto;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

/* ▼ タイトル（INFORMATION） */
.information-board .info-title {
    text-align: center;
}

.information-board .info-en {
    font-size: 26px;
    font-weight: bold;
    letter-spacing: 3px;
    color: #ffd700; /* 金色 */
    text-shadow:
        0 0 6px rgba(255,215,0,0.8),
        0 0 12px rgba(255,215,0,0.6);
    animation: infoTitleGlow 2.5s ease-out forwards;
}

/* ▼ タイトル下の金ライン */
.information-board .info-line {
    width: 70px;
    height: 3px;
    background: #ffd700;
    margin: 6px auto;
}

/* ▼ 日本語タイトル */
.information-board .info-jp {
    font-size: 14px;
    color: #ffe9b3;
    letter-spacing: 1px;
}

/* ▼ タイトルアニメーション */
@keyframes infoTitleGlow {
    0% {
        opacity: 0;
        transform: scale(0.8);
        text-shadow: none;
    }
    40% {
        opacity: 1;
        transform: scale(1.05);
        text-shadow:
            0 0 10px rgba(255,215,0,0.9),
            0 0 20px rgba(255,215,0,0.7);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        text-shadow:
            0 0 6px rgba(255,215,0,0.8),
            0 0 12px rgba(255,215,0,0.6);
    }
}

/* ▼ 貼り紙（白背景） */
.information-board .info-content {
    background: #ffffff;
    padding: 18px 20px;
    border-radius: 6px;
    margin-top: 15px;
    position: relative;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    border-top: 2px solid rgba(255,255,255,0.3);
}

/* ▼ ピン留め（左右上） */
.information-board .info-content::before,
.information-board .info-content::after {
    content: "";
    position: absolute;
    top: -10px;
    width: 14px;
    height: 14px;
    background: #d4af37;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}
.information-board .info-content::before { left: 20px; }
.information-board .info-content::after { right: 20px; }

/* ▼ お知らせ行（行間調整） */
.information-board .info-item {
    display: flex;
    gap: 10px;
    margin-bottom: 4px;
    padding: 3px 0;
}

/* ▼ 日付 */
.information-board .info-date {
    color: #b8860b;
    font-weight: bold;
    min-width: 90px;
}

/* ▼ タイトルリンク */
.information-board .info-title-link {
    color: #333;
    text-decoration: none;
}
.information-board .info-title-link:hover {
    text-decoration: underline;
}

/* ▼ お知らせ一覧（右寄せ） */
.information-board .info-more {
    text-align: right;
    margin-top: 10px;
}
.information-board .info-more a {
    color: #8b0000;
    font-weight: bold;
    text-decoration: none;
}
.information-board .info-more a:hover {
    text-decoration: underline;
}


/* ------------------------------
   ▼ メイン・サイド背景
------------------------------ */
.main-content {
    flex: 1;
    background: #ffffff;
    padding: 26px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.sidebar {
    width: 280px;
    background: #f5f5f5;
    padding: 22px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.content-wrapper {
    min-height: 400px;
    display: flex;
    gap: 30px;
    width: 100%;
    max-width: 1100px;
    margin: 40px auto 60px auto;
}

/* ------------------------------
   ▼ 見出しデザイン
------------------------------ */
h2 {
    background: linear-gradient(to right, #740000, #b00000);
    color: #ffffff;
    padding: 12px 18px;
    border: 2px solid #d4af37;
    border-radius: 6px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.3);
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 20px;
}

h3 {
    position: relative;
    padding-left: 20px;
    font-size: 1.3rem;
    font-weight: bold;
    color: #6b0f1a;
    margin: 25px 0 15px;
    line-height: 1.4;
}

h3::before,
h3::after {
    content: "";
    position: absolute;
    top: 0;
    width: 6px;
    height: 100%;
}

h3::before {
    left: 0;
    background: #d4af37;
}

h3::after {
    left: 6px;
    background: #e67e22;
    box-shadow: 6px 0 0 #6b0f1a;
}

h4 {
    color: #6b0f1a;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 20px 0 12px;
    padding: 4px 0;
}

h4::before { content: "【"; margin-right: 4px; }
h4::after  { content: "】"; margin-left: 4px; }
/* ============================================
   ▼ 固定ページ・投稿ページ・エントランスページのトップ画像を
      ブラウザ幅いっぱいに広げる
============================================ */

/* ▼ 親コンテナを横幅100％に */
.page-hero,
.post-hero,
.entrance-hero {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

/* ▼ 画像も100％で表示 */
.page-hero img,
.post-hero img,
.entrance-hero img {
    width: 100%;
    height: auto;
    display: block;
}


/* ------------------------------
   ▼ サイドメニュー
------------------------------ */
.sidebar-section .widget-title {
    color: #7a2c2c;
}

.upcoming-list .rp-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    overflow: hidden;
}

.upcoming-list .rp-thumb-wrap img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}

.upcoming-list .rp-title {
    flex: 1;
    min-width: 0;
}

/* ============================================
   ▼ サイドバー調整（TOPページ用）
============================================ */

/* ▼ h5（widget-title）の上下余白を広げる */
.sidebar-section h5.widget-title,
.sidebar-Portfolio h5.widget-title,
.sidebar-character h5.widget-title,
.widget_archive h5.widget-title,
.sns-box h5.widget-title {
    margin: 18px 0 10px;
    padding-bottom: 4px;
    border-bottom: 2px solid #d4af37; /* 劇場サイトに合わせた金ライン */
    font-size: 16px;
    font-weight: bold;
}
/* ▼ 検索フォームを横並びにして100%にする */
.search-box form {
    display: flex;
    width: 100%;
    gap: 6px;
}

/* ▼ 検索窓（左） */
.search-box input[type="search"] {
    flex: 1; /* ← これが最重要！ */
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

/* ▼ 検索ボタン（右） */
.search-box input[type="submit"] {
    padding: 8px 12px;
    background: #8b0000;
    color: #fff;
    border: none;
    border-radius: 4px;
    white-space: nowrap; /* ← ボタンの文字折返し防止 */
    cursor: pointer;
}


.search-box input[type="search"] {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.search-box input[type="submit"] {
    margin-top: 6px;
    padding: 8px;
    background: #8b0000;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* ▼ YouTube 埋め込みをレスポンシブ化（枠に収める） */
.youtube-frame {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 6px;
}

.youtube-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ▼ サイドバーのバナー画像を幅揃え */
.sidebar-Portfolio img,
.sidebar-character img,
.sns-icons img {
    width: 100%;
    height: auto;
    display: block;
}

/* ▼ SNSアイコンの整列 */
.sns-icons {
    display: flex;
    gap: 10px;
}
.sidebar-character .official-character-name {
    text-align: center;
    margin-top: 6px;
    font-weight: bold;
}
/* ============================================
   ▼ サイドバー：リンクボタン（金枠デザイン）
============================================ */

.sidebar-link-banner {
    display: block;
    width: 100%;
    background: #fff8e6;              /* H2の世界観に合わせた淡い背景 */
    border: 2px solid #d4af37;        /* ゴールド枠 */
    padding: 12px 0;
    margin: 12px 0;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
    color: #8b0000;                   /* 深い赤＝劇場色 */
    text-decoration: none;
    box-shadow: 0 3px 6px rgba(0,0,0,0.25);
    transition: 0.2s ease;
}

/* ▼ ホバー時：金枠が光る演出 */
.sidebar-link-banner:hover {
    background: #fff2d0;
    border-color: #ffdf7f;            /* 少し明るい金色に */
    box-shadow: 0 4px 10px rgba(0,0,0,0.35);
    transform: translateY(-2px);
}
/* ▼ サイドバーのバナー同士の間隔を広げる */
.sidebar-Portfolio {
    margin-bottom: 18px; /* ← ここで余白を調整（15〜25pxが自然） */
}
/* ▼ バナー画像の基本 */
.program-banner {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    transition: 0.25s ease;
    box-shadow: 0 3px 6px rgba(0,0,0,0.25);
}

/* ▼ ホバー時：金枠＋浮き上がり＋光 */
.sidebar-Portfolio a:hover .program-banner {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.35);
    border: 2px solid #d4af37; /* ゴールド枠 */
}


/* ============================================
   ▼ TOPに戻るボタン（最適化）
============================================ */

/* ▼ ボタンの基本位置とサイズ */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 60px;        /* ← ここで大きさ調整（40〜70pxが目安） */
    height: 60px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 9999;
}

/* ▼ 画像を枠内に収める */
.back-to-top img {
    width: 100%;
    height: auto;
    display: block;
}

/* ▼ スクロール後に表示 */
.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 1024px) {
    .back-to-top { display: none !important; }
}

/* ------------------------------
   ▼ スケジュール枠（額縁）
------------------------------ */
.schedule-frame {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.frame-top {
    background-image: url('https://drama-stage.com/wp-content/uploads/2026/05/picture_frame1-1.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    height: 169px;
}

.frame-middle {
    background-image: url('https://drama-stage.com/wp-content/uploads/2026/05/picture_frame2-1.png');
    background-repeat: repeat-y;
    background-size: 100% auto;
    padding: 20px 40px;
}

.frame-bottom {
    background-image: url('https://drama-stage.com/wp-content/uploads/2026/05/picture_frame3-1.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    height: 161px;
    position: relative;
}

.schedule-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    background: #f5f5f5;
    border-radius: 6px;
    border: 1px solid #d4af37;
}

.schedule-thumb {
    border-right: 2px solid #d4af37;
    padding-right: 12px;
    margin-right: 12px;
}

.schedule-thumb img {
    width: 60px;
    height: auto;
    border-radius: 6px;
    flex-shrink: 0;
}

.schedule-title {
    flex: 1;
    font-size: 16px;
    font-weight: 300;
}

.schedule-bottom-link {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #d4af37;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    text-shadow: 0 0 8px rgba(0,0,0,0.6);
}

/* ------------------------------
   ▼ パンくず
------------------------------ */
.breadcrumb-box-wrapper {
    max-width: 1100px;
    margin: 10px auto 0;
}

.breadcrumb-box {
    padding: 4px 0 4px 14px;
    border-left: 4px solid #d4af37;
    color: #6b0f1a;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    font-size: 14px;
}

.breadcrumb-box a {
    color: #6b0f1a;
    text-decoration: none;
}

.breadcrumb-box a:hover {
    color: #d4af37;
}

.breadcrumb-box img {
    width: 60px;
    height: auto;
    margin-right: 6px;
}

@media (max-width: 900px) {
    .breadcrumb-box-wrapper { display: none; }
}

/* ------------------------------
   ▼ 動画レスポンシブ
------------------------------ */
.video-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
/* ------------------------------
   ▼ スマホ設定
------------------------------ */
@media (max-width: 600px) {

    .stage-inner { margin-top: 20px; }
    h1.site-title { margin-top: 10px !important; }
    .site-subtitle { margin-top: 6px !important; }
    .top-hero img { margin-top: 10px; }

    /* 1カラム化 */
    .content-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .main-content {
        width: 100% !important;
    }

    .sidebar {
        width: 100% !important;
    }

    /* タイトル縮小 */
    .site-title {
        font-size: 24px !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        top: 60px !important;
    }

    /* サブタイトル縮小 */
    .site-subtitle {
        font-size: 12px !important;
        top: 110px !important;
    }

    /* キャラ縮小 */
    .stage-inner .emora {
        width: 160px !important;
        margin-top: 10px !important;
    }

    /* 光の縮小 */
    .top-hero::before {
        width: 300px !important;
        height: 300px !important;
    }

    .top-hero::after {
        width: 140px !important;
        height: 50px !important;
    }

    /* サイドバナー */
    .sidebar-Portfolio .program-banner {
        width: 100%;
        height: auto;
        display: block;
    }
}
/* ------------------------------
   ▼ 中間帯（601〜900px）レスポンシブCSS
------------------------------ */
@media (min-width: 601px) and (max-width: 900px) {

    .stage-inner { margin-top: 40px !important; text-align: center !important; }
    .site-title { font-size: 20px !important; line-height: 1.1 !important; margin-top: 0 !important; white-space: nowrap !important; }
    .site-subtitle { font-size: 14px !important; margin-top: 6px !important; }
    .top-hero img { max-width: 40% !important; margin-top: 10px !important; }

    /* 1カラム化 */
    .content-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .main-content {
        width: 100% !important;
    }

    .sidebar {
        width: 100% !important;
    }

    /* タイトル位置調整 */
    .site-title {
        top: 40px !important;
    }

    /* キャラ拡大 */
    .top-hero img {
        max-width: 60% !important;
    }

    /* キャラ位置調整 */
    .top-hero {
        left: 55% !important;
    }
}
/* ------------------------------
   ▼ タブレット設定
------------------------------ */
@media (min-width: 901px) and (max-width: 1200px) {

    .site-title { font-size: 48px !important; top: 20px !important; }
    .site-subtitle { top: 100px !important; font-size: 20px !important; }

    .top-hero img { max-width: 45% !important; margin-top: 20px; }

    /* キャラ中心点調整 */
    .top-hero {
        left: 55% !important;
        transform: translateX(-50%) !important;
    }

    .top-hero::before {
        left: 55% !important;
        transform: translate(-50%, -50%) !important;
    }

    .top-hero::after {
        left: 55% !important;
        transform: translate(-50%, 40px) !important;
    }

    /* キャラ拡大 */
    .top-hero img {
        max-width: 70% !important;
    }

    /* キャラ位置調整 */
    .top-hero {
        top: 210px !important;
    }
}
/* ------------------------------
   ▼Surface Duo（520〜560px × 高さ750px）専用
------------------------------ */
@media (min-width: 520px) and (max-width: 560px) and (max-height: 750px) {

    .site-title {
        font-size: 40px !important;
        top: 20px !important;
    }

    .site-subtitle {
        top: 90px !important;
        font-size: 16px !important;
    }

    .top-hero {
        left: 50% !important;
        transform: translateX(-50%) !important;
        top: 200px !important;
    }

    .top-hero::before {
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
    }

    .top-hero::after {
        left: 50% !important;
        transform: translate(-50%, 40px) !important;
    }

    .top-hero img {
        max-width: 80% !important;
    }

    .top-hero {
        top: 300px !important;
    }
}
/* ------------------------------
   ▼検索ページ：タイトル部分のデザイン
   ・検索結果ページの見出しを整える
   ・タイトルを大きく、説明文は控えめに
   ・上下の余白で読みやすくする
------------------------------ */
.search-header {
    margin: 40px 0 20px;
    text-align: left;
}

.search-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
}

.search-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}


/* ------------------------------
   ▼検索結果：全体レイアウト
   ・検索結果の1件1件を縦並びにする
   ・各アイテムの間に余白をつけて見やすくする
------------------------------ */
.search-results {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 40px 0;
}

/* ==========================================================
   ▼検索ページ：タイトル部分（PC & スマホ共通）
   ・検索結果ページの見出しを整える
   ・タイトルを大きく、説明文は控えめに
   ・上下の余白で読みやすくする
========================================================== */
.search-header {
    margin: 40px 0 20px;
    text-align: left;
}

.search-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
}

.search-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}


/* ==========================================================
   ▼検索結果：全体レイアウト（PC）
   ・検索結果の1件1件を縦並びにする
   ・各アイテムの間に余白をつけて見やすくする
========================================================== */
.search-results {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 40px 0;
}


/* ==========================================================
   ▼検索結果：1件のボックス（PC）
   ・サムネイルとテキストを横並びにする
   ・下に薄い線を入れて区切りを作る
   ・ホバーで浮く派手演出もここに統合
========================================================== */
.search-item {
    display: flex;
    gap: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 20px;
    transition: all 0.2s ease;
}

.search-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}


/* ==========================================================
   ▼検索結果：サムネイル画像（PC）
   ・画像サイズを統一
   ・角を少し丸めて柔らかい印象に
========================================================== */
.search-item-thumb img {
    width: 160px;
    height: auto;
    border-radius: 6px;
}


/* ==========================================================
   ▼検索結果：テキスト部分（PC）
   ・右側のテキストエリアを広く取る
========================================================== */
.search-item-content {
    flex: 1;
}


/* ==========================================================
   ▼検索結果：タイトル（PC）
   ・大きめの文字で見やすく
   ・リンク色を落ち着いた色に
========================================================== */
.search-item-title a {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}


/* ==========================================================
   ▼検索結果：抜粋テキスト（PC）
   ・説明文を少し薄い色にして読みやすく
========================================================== */
.search-item-excerpt {
    margin-top: 10px;
    color: #555;
}


/* ==========================================================
   ▼スマホ（〜600px）
   ・サムネイルとテキストを縦並びに変更
   ・画像を横幅100%にして見やすく
   ・中央寄せでスマホらしい見やすさに
========================================================== */
@media (max-width: 600px) {

    .search-header {
        text-align: center;
        margin: 30px 0 10px;
    }

    .search-title {
        font-size: 22px;
    }

    .search-subtitle {
        font-size: 13px;
    }

    .search-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-bottom: 30px;
    }

    .search-item-thumb img {
        width: 100%;
        max-width: 300px;
    }

    .search-item-content {
        width: 100%;
        text-align: left;
        margin-top: 15px;
    }

    .search-item-title a {
        font-size: 18px;
    }

    .search-item-excerpt {
        font-size: 14px;
        color: #444;
    }
}
