@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 1.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/
    
    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/

/* ==================================================
 * Layout Fixes (コンテナのはみ出し・左余白のズレ防止)
 * ================================================== */
.l-container {
    max-width: 100% !important;
}

/* ==================================================
 * Design Tokens (DESIGN.md)
 * ================================================== */
:root {
    /* Colors */
    --color-primary: #6344B5;
    --color-primary-dark: #32206B;
    --color-primary-light: #8E6CEB;
    --color-accent: #C5A059;
    --color-bg-base: #FDFBF7;
    --color-bg-soft: #F4ECD8;
    --color-bg-deep: #EFE8D0;
    --color-text-main: #2D2D35;
    --color-text-muted: #6B6B7B;

    /* Typography */
    --font-heading: 'Cinzel', 'Noto Sans JP', sans-serif;
    --font-body: 'Noto Sans JP', sans-serif;
    --font-english: 'Inter', sans-serif;

    /* Components */
    --radius-btn: 12px;
    --radius-card: 16px;
    --shadow-soft: 0 4px 15px rgba(99, 68, 181, 0.08);
}

/* ==================================================
 * Header Site Logo/Title Customization
 * ================================================== */
/* Center alignment for header logo/title */
.l-header__logo,
.l-header .c-siteLogo,
.l-header,
.l-header__inner,
.l-header__body,
.l-fixHeader,
header {
    background-color: transparent !important;
    background: transparent !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    border-bottom: none !important;
    justify-content: center !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    padding: 10px 0 !important;
}

/* Site title styling - Custom Typography */
.c-siteLogo__txt,
.p-headerLogo a,
.l-header .siteLogo a,
.custom-logo-link,
.c-headLogo__link {
    font-family: var(--font-heading) !important;
    font-weight: 700 !important;
    color: var(--color-primary-dark) !important;
    letter-spacing: 0.1em !important;
    text-decoration: none !important;
}

/* Ensure logo image is centered and sized correctly if exists */
.custom-logo,
.c-siteLogo__img,
.c-headLogo__img,
.c-headLogo__link img {
    display: block;
    margin: 0 auto;
    width: auto !important;
}

/* PC表示のロゴ設定 */
@media screen and (min-width: 769px) {

    .c-headLogo__img,
    .c-headLogo__link img {
        height: calc(var(--logo_size_pc) * 1.2) !important;
        max-height: none !important;
        max-width: none !important;
    }

    .l-header__inner {
        padding-bottom: calc(24px + 1em) !important;
        /* PC: ヘッダー領域拡大 */
    }
}

/* Mobile adjustments */
@media screen and (max-width: 768px) {

    .c-headLogo__img,
    .c-headLogo__link img {
        /* SWELLのスマホでの高さ上限(最大80px)を解除し、元の比率で大きく表示 */
        max-height: none !important;
        width: 100% !important;
        max-width: 220px !important;
        /* スマホでの最大幅 */
        height: auto !important;
    }

    .l-header__inner {
        padding-bottom: calc(16px + 1em) !important;
        /* スマホ: ヘッダー領域拡大 */
    }
}


/* ==================================================
 * Heading h2 Customization
 * ================================================== */
h2 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-primary-dark);
    padding: 10px 0 !important;
    margin: 40px 0 30px;
    position: relative;
    text-align: center;
    letter-spacing: 0.1em;
    font-size: 24px;
}

/* Top border line */
h2::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, rgba(166, 139, 62, 0.4) 20%, rgba(212, 175, 55, 0.6) 50%, rgba(166, 139, 62, 0.4) 80%, transparent);
    clip-path: ellipse(50% 50% at 50% 50%);
}

/* Bottom border line */
h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, rgba(166, 139, 62, 0.4) 20%, rgba(212, 175, 55, 0.6) 50%, rgba(166, 139, 62, 0.4) 80%, transparent);
    clip-path: ellipse(50% 50% at 50% 50%);
}

/* Optional: Add a decorative center element */
h2 .heading-accent {
    display: inline-block;
    position: relative;
}

h2 .heading-accent::before,
h2 .heading-accent::after {
    content: "◆";
    color: #D4AF37;
    font-size: 0.6em;
    position: relative;
    top: -0.2em;
    opacity: 0.8;
}

h2 .heading-accent::before {
    margin-right: 10px;
}

h2 .heading-accent::after {
    margin-left: 10px;
}

/* ==================================================
 * Fractal Background Adjustments
 * ================================================== */
/* Fractal Background CSS settings replaced with White & Purple default styles */
body,
#body_wrap,
#content {
    background-color: var(--color-bg-soft);
}

.single #main,
.page #main {
    background-color: var(--color-bg-base);
    border-radius: var(--radius-card);
    margin-top: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-soft);
}

/* ==================================================
 * My Page (Dashboard) Styles
 * ================================================== */
.app-mypage-container {
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.app-card {
    background: var(--color-bg-base);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
    border: 1px solid rgba(197, 160, 89, 0.1);
}

.user-greeting {
    margin-bottom: 15px;
    text-align: center;
}

.user-greeting .small-text {
    display: block;
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
}

.user-greeting .user-name {
    font-size: 18px;
    font-weight: bold;
    color: var(--color-text-main);
    margin: 0;
}

/* Coin Balance Styling */
.coin-balance-wrap {
    background: var(--color-bg-soft);
    border: 1px solid var(--color-primary-light);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.coin-balance-wrap .label {
    font-size: 11px;
    color: var(--color-accent);
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.coin-balance-wrap .amount {
    font-size: 32px;
    font-weight: bold;
    color: var(--color-text-main);
    line-height: 1.2;
}

.coin-balance-wrap .unit {
    font-size: 14px;
    font-weight: normal;
    color: #666;
}

.btn-charge {
    display: inline-block;
    margin-top: 10px;
    background: var(--color-primary);
    color: #fff;
    font-size: 12px;
    padding: 6px 16px;
    border-radius: var(--radius-btn);
    text-decoration: none;
    font-weight: bold;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s;
}

.btn-charge:active {
    transform: scale(0.95);
}

/* Menu Grid */
.app-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.app-menu-grid .menu-item {
    background: var(--color-bg-base);
    border-radius: 12px;
    padding: 20px 10px;
    text-align: center;
    text-decoration: none;
    color: var(--color-text-main);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: background 0.2s, border-color 0.2s;
    border: 1px solid rgba(197, 160, 89, 0.1);
    display: block;
}

.app-menu-grid .menu-item:hover,
.app-menu-grid .menu-item:active {
    background: #fafafa;
    border-color: #eee;
}

.app-menu-grid .menu-item .icon {
    display: block;
    font-size: 24px;
    margin-bottom: 8px;
}

.app-menu-grid .menu-item .label {
    display: block;
    font-size: 13px;
    font-weight: bold;
}

/* ==================================================
 * Home Screen (App Grid) Styles
 * ================================================== */
.app-home-container {
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
}

/* Hero Section */
.app-hero-section {
    margin-bottom: 30px;
}

.app-hero-section .section-title {
    font-size: 14px;
    color: #888;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.daily-fortune-card {
    background: linear-gradient(120deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: #fff;
    border-radius: var(--radius-card);
    padding: 20px;
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.daily-fortune-card p {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
}

.daily-fortune-card .btn-check {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 12px;
    transition: background 0.2s;
}

.daily-fortune-card .btn-check:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Base Grid Styles */
.grid-title {
    font-size: 16px;
    margin-bottom: 15px;
    margin-top: 30px;
    padding-left: 10px;
    border-left: 4px solid var(--color-accent);
    color: var(--color-text-main);
}

.app-icon-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

/* 3 columns on very small screens if needed, otherwise 4 fits most mobiles */
@media (max-width: 370px) {
    .app-icon-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.app-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    text-align: center;
}

.app-icon-item .icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 22px;
    /* Squircle */
    background: var(--color-bg-base);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.app-icon-item:active .icon-circle {
    transform: scale(0.95);
}

.app-icon-item .label {
    font-size: 11px;
    color: var(--color-text-main);
    font-weight: 500;
    line-height: 1.3;
}

/* List Menu Styles */
.app-list-menu {
    background: var(--color-bg-base);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(197, 160, 89, 0.1);
}

.app-list-menu .list-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    text-decoration: none;
    color: var(--color-text-main);
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.2s;
}

.app-list-menu .list-item:last-child {
    border-bottom: none;
}

.app-list-menu .list-item:active {
    background: #fafafa;
}

.app-list-menu .icon {
    font-size: 18px;
    margin-right: 15px;
    width: 24px;
    text-align: center;
}

.app-list-menu .arrow {
    margin-left: auto;
    color: #ccc;
    font-weight: bold;
}

/* MyCred Balance Card (Premium) */
.mycred-balance-card {
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    color: #fff;
    padding: 25px;
    border-radius: var(--radius-card);
    text-align: center;
    margin-bottom: 30px;
    box-shadow: var(--shadow-soft);
}

.mycred-balance-card .balance-amount {
    font-size: 3.5em;
    font-weight: bold;
    line-height: 1.2;
    margin: 10px 0;
}

.mycred-balance-card .buy-btn {
    display: inline-block;
    background: var(--color-bg-base);
    color: var(--color-primary);
    padding: 10px 24px;
    border-radius: var(--radius-btn);
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
    transition: transform 0.2s;
}

.mycred-balance-card .buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* ==================================================
 * Coin Shop Styles
 * ================================================== */
.coin-shop-wrapper {
    background: var(--color-bg-soft);
    min-height: 100vh;
    padding: 10px 20px 80px;
    /* Bottom padding for fixed footer */
    color: var(--color-text-main);
    text-align: center;
    font-family: var(--font-body);
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Mobile Responsive Adjustments */
@media screen and (max-width: 768px) {
    .coin-shop-wrapper {
        padding: 0 15px 90px !important;
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    .coin-shop-hero {
        margin-bottom: 50px !important;
        width: 100% !important;
    }

    .coin-products-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 30px !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 5px !important;
        margin-bottom: 40px !important;
        box-sizing: border-box !important;
    }

    .coin-product-card {
        width: 95% !important;
        max-width: 100% !important;
        padding: 25px 20px !important;
        margin: 0 auto !important;
    }

    .coin-shop-wrapper .page-title {
        font-size: 24px !important;
    }

    .coin-shop-wrapper .hero-text {
        padding: 0 10px !important;
    }
}

.coin-shop-hero {
    margin-bottom: 40px;
}

.coin-shop-wrapper .page-title {
    font-size: 28px;
    color: var(--color-accent);
    margin-bottom: 10px;
    letter-spacing: 2px;
    font-family: var(--font-heading);
    font-weight: 800;
    /* Stylish light-mode shadow/gradient text */
    background: linear-gradient(45deg, var(--color-accent), #D4AF37);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(197, 160, 89, 0.2);
}

.coin-shop-wrapper .hero-text {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 30px;
    font-weight: 500;
}

.coin-shop-wrapper .current-balance {
    display: inline-block;
    background: var(--color-bg-base);
    padding: 10px 25px;
    border-radius: 50px;
    border: 1px solid var(--color-accent);
    box-shadow: 0 4px 10px rgba(197, 160, 89, 0.15);
}

.coin-shop-wrapper .current-balance .label {
    display: block;
    font-size: 10px;
    color: var(--color-accent);
    margin-bottom: 2px;
    font-weight: bold;
}

.coin-shop-wrapper .current-balance .amount {
    font-size: 24px;
    font-weight: bold;
    color: var(--color-text-main);
    margin-right: 5px;
}

.coin-shop-wrapper .current-balance .unit {
    font-size: 12px;
    color: #888;
}

/* Product Grid - PC: Grid layout */
.coin-products-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto 50px;
}

.coin-product-card {
    background: var(--color-bg-base);
    border: 1px solid rgba(197, 160, 89, 0.2);
    border-radius: var(--radius-card);
    padding: 30px 20px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.coin-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(197, 160, 89, 0.2);
    /* Gold glow on hover */
    border-color: var(--color-accent);
}

/* Shine Effect (Subtler for light mode) */
.coin-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(215, 185, 99, 0.2) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    animation: shine 6s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    20% {
        left: 200%;
    }

    100% {
        left: 200%;
    }
}

/* Coin Image Container */
.coin-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    margin-bottom: 20px;
}

.coin-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
}

/* Removed CSS-based coin styles as they are replaced by images */

.coin-title {
    font-size: 38px;
    color: var(--color-accent);
    font-family: var(--font-heading);
    font-weight: 800;
    margin-bottom: 5px;
}

.coin-price {
    font-size: 24px;
    color: var(--color-accent);
    font-family: var(--font-heading);
    font-weight: 800;
    margin-bottom: 25px;
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.coin-price .woocommerce-Price-amount {
    color: var(--color-accent);
}

.coin-price .tax-text {
    font-size: 16px;
    font-weight: normal;
    margin-left: 8px;
    color: var(--color-accent);
    opacity: 0.8;
}

/* Button */
.btn-purchase {
    display: block;
    width: 100%;
    background: var(--color-primary);
    color: #fff;
    font-weight: bold;
    padding: 12px 0;
    border-radius: var(--radius-btn);
    text-decoration: none;
    box-shadow: var(--shadow-soft);
    transition: filter 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
    text-align: center;
}

.btn-purchase:hover {
    background: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.btn-purchase:active {
    transform: translateY(0);
}

/* Footer Notes */
.coin-shop-footer p {
    font-size: 12px;
    color: #888;
    margin-bottom: 5px;
}

.coin-shop-footer .back-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--color-primary);
    font-size: 13px;
    text-decoration: underline;
    font-weight: 500;
}

.coin-shop-footer .back-link:hover {
    color: var(--color-primary-light);
}

/* ==================================================
 * My Page Dashboard - 4 Block Layout
 * ================================================== */
.spicchae-mypage {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 15px;
}

.mypage-block {
    background: var(--color-bg-base);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(197, 160, 89, 0.1);
}

/* Block 1: User + Coin */
.user-coin-block {
    text-align: center;
    background: var(--color-bg-soft);
    border: 1px solid var(--color-primary-light);
}

.user-greeting {
    margin-bottom: 20px;
}

.user-greeting .greeting-text {
    font-size: 13px;
    color: #888;
}

.user-greeting .user-name {
    font-size: 20px;
    font-weight: bold;
    color: var(--color-text-main);
    margin: 0 4px;
}

.user-greeting .greeting-suffix {
    font-size: 13px;
    color: #888;
}

.coin-balance-card {
    background: var(--color-bg-base);
    border: 2px solid var(--color-accent);
    border-radius: 12px;
    padding: 24px 20px;
    margin-bottom: 0;
    /* Grid 内で制御するため 0 に */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
    /* 高さ一杯に広げる */
}

.coin-balance-card .coin-label {
    font-size: 14px;
    color: var(--color-accent);
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.coin-balance-card .coin-amount {
    margin-bottom: 20px;
}

.coin-balance-card .coin-amount .amount {
    font-size: 42px;
    font-weight: bold;
    color: var(--color-text-main);
    line-height: 1.1;
}

.coin-balance-card .coin-amount .unit {
    font-size: 18px;
    color: #666;
    margin-left: 4px;
}

.btn-coin-purchase {
    display: inline-block;
    background: var(--color-primary);
    color: #fff !important;
    font-size: 14px;
    font-weight: bold;
    padding: 12px 28px;
    border-radius: var(--radius-btn);
    text-decoration: none !important;
    box-shadow: var(--shadow-soft);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-coin-purchase:hover {
    background: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.btn-coin-purchase:active {
    transform: translateY(0);
}

/* 占い鑑定履歴テーブル内の「閲覧」ボタン */
.reading-history-table .btn-coin-purchase {
    color: #4b5563 !important;
    background-color: #fce7f3 !important;
    padding: 4px 8px !important;
    font-size: 11px !important;
    border-radius: 4px !important;
    box-shadow: none !important;
}

/* Block 2 & 3: History Blocks */
.history-block .block-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: bold;
    color: var(--color-text-main);
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

.history-block .block-title .icon {
    font-size: 18px;
}

.history-block .block-content {
    font-size: 14px;
}

/* MyCred history table overrides */
.history-block .myCRED-history {
    width: 100%;
    font-size: 13px;
}

.history-block .myCRED-history th,
.history-block .myCRED-history td {
    padding: 10px 8px;
    text-align: left;
    border-bottom: 1px solid #f5f5f5;
}

.history-block .myCRED-history th {
    background: #fafafa;
    font-weight: bold;
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
}

/* WooCommerce orders table overrides */
.history-block .woocommerce-orders-table {
    width: 100%;
    font-size: 13px;
}

.history-block .woocommerce-orders-table th,
.history-block .woocommerce-orders-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #f5f5f5;
}

/* Block 4: Support Links */
.support-block .block-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: bold;
    color: var(--color-text-main);
    margin: 0 0 16px 0;
}

.support-block .block-title .icon {
    font-size: 18px;
}

.support-links {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.support-link-item {
    display: flex;
    align-items: center;
    padding: 16px 12px;
    text-decoration: none !important;
    color: var(--color-text-main) !important;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.2s;
}

.support-link-item:last-child {
    border-bottom: none;
}

.support-link-item:hover,
.support-link-item:active {
    background: #fafafa;
}

.support-link-item .link-icon {
    font-size: 18px;
    margin-right: 12px;
    width: 24px;
    text-align: center;
}

.support-link-item .link-text {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.support-link-item .arrow {
    color: #ccc;
    font-size: 20px;
    font-weight: bold;
}

.support-link-item.logout {
    color: #D70035 !important;
}

.support-link-item.logout .link-text {
    color: #D70035;
}

/* Hide WooCommerce default navigation on dashboard */
.woocommerce-MyAccount-navigation {
    display: none;
}

.woocommerce-MyAccount-content {
    width: 100%;
    max-width: 100%;
}

/* Mobile adjustments */
@media screen and (max-width: 480px) {
    .spicchae-mypage {
        padding: 10px 0;
        /* 表示面に対する左右余白の縮小 */
        margin: 0 -20px;
        /* 親コンテナのパディングを相殺して画面幅を広く使う */
    }

    .mypage-block {
        padding: 15px 4px;
        border-radius: 8px;
    }

    .coin-balance-card .coin-amount .amount {
        font-size: 36px;
    }

    .history-block .myCRED-history,
    .history-block .woocommerce-orders-table {
        font-size: 10px;
        /* ご要望に合わせさらに縮小 */
    }

    .history-block .myCRED-history th,
    .history-block .myCRED-history td,
    .history-block .woocommerce-orders-table th,
    .history-block .woocommerce-orders-table td {
        padding: 6px 4px;
        /* セル内の余白を縮小 */
    }
}

/* myCred履歴テーブルのヘッダーをカスタマイズ */
.myCRED-history {
    table-layout: fixed;
    width: 100%;
}

.myCRED-history th.manage-column {
    position: relative;
    color: transparent !important;
}

.myCRED-history th.manage-column::after {
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    color: #333;
    font-size: 13px;
}

/* 日付 */
.myCRED-history th#date,
.myCRED-history th.column-date {
    width: 85px;
    /* 年月日が確実に入る幅 */
}

.myCRED-history th#date::after,
.myCRED-history th.column-date::after {
    content: '日付';
}

.myCRED-history td.column-date {
    white-space: pre-wrap;
    /* PHPの改行文字(\n)を反映する */
    line-height: 1.4;
    word-break: break-all;
}

/* コイン */
.myCRED-history th#creds,
.myCRED-history th.column-creds {
    width: 78px;
    /* 6桁が収まる幅（+3,000等） */
}

.myCRED-history th#creds::after,
.myCRED-history th.column-creds::after {
    content: 'コイン';
}

.myCRED-history td.column-creds {
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow: hidden;
    min-width: 55px;
    /* 最低幅を拡張 */
    font-weight: bold;
    text-align: center;
    font-size: 9px;
}

/* 利用 */
.myCRED-history th#entry::after,
.myCRED-history th.column-entry::after {
    content: '利用';
}

.myCRED-history td.column-entry {
    word-break: break-all;
    /* 折り返しを許可し、残りの幅をすべて使用する */
}

/* ユーザー列を非表示（自分の履歴のみなので不要） */
.myCRED-history th.column-user,
.myCRED-history td.column-user {
    display: none;
}

/* 履歴の案内文 */
.history-notice {
    font-size: 12px;
    color: #888;
    margin: 0 0 10px 0;
    text-align: right;
}

/* コイン購入履歴テーブル */
.purchase-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.purchase-history-table th {
    background: #5c4e8e;
    color: #fff;
    padding: 10px 8px;
    text-align: left;
    font-weight: bold;
}

.purchase-history-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #eee;
}

.purchase-history-table tbody tr:hover {
    background: #f9f9f9;
}

.no-history {
    color: #888;
    text-align: center;
    padding: 20px;
}

/* アカウント設定フォーム：名・姓フィールドを非表示 */
.woocommerce-EditAccountForm .woocommerce-form-row--first,
.woocommerce-EditAccountForm .woocommerce-form-row--last {
    display: none;
}

/* アカウント設定フォーム：マイページと同じスタイル */
.woocommerce-account .woocommerce-MyAccount-navigation {
    display: none;
}

.woocommerce-account .woocommerce-MyAccount-content {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    float: none;
}

/* アカウントフォームラッパー（コイン履歴と同じスタイル）*/
.account-form-wrapper {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.account-form-wrapper .block-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: 0 0 20px 0;
}

.woocommerce-MyAccount-content .woocommerce-EditAccountForm {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.woocommerce-EditAccountForm .woocommerce-form-row label {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    display: block;
}

.woocommerce-EditAccountForm .woocommerce-form-row input[type="text"],
.woocommerce-EditAccountForm .woocommerce-form-row input[type="email"],
.woocommerce-EditAccountForm .woocommerce-form-row input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

.woocommerce-EditAccountForm .woocommerce-form-row input:focus {
    border-color: #A68B3E;
    outline: 2px solid var(--color-accent, #C5A059);
    outline-offset: 2px;
    box-shadow: 0 0 0 2px rgba(166, 139, 62, 0.2);
}

.woocommerce-EditAccountForm button[type="submit"] {
    background: linear-gradient(135deg, #A68B3E, #8C7335);
    color: #fff;
    border: none;
    padding: 14px 32px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: block;
    margin: 20px auto 0;
    box-shadow: 0 4px 10px rgba(166, 139, 62, 0.3);
}

.woocommerce-EditAccountForm button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(166, 139, 62, 0.4);
}

/* ==================================================
 * Contact Form 7 Button Customization
 * ================================================== */
.spc-form-submit {
    text-align: center;
    margin-top: 30px;
    display: block;
    width: 100%;
}

/* Ensure inner paragraphs (CF7 auto-p) also center */
.spc-form-submit p {
    text-align: center;
    margin: 0;
}

.spc-form-submit input[type="submit"] {
    background: linear-gradient(135deg, #A68B3E, #8C7335);
    color: #fff;
    border: none;
    padding: 14px 40px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: block;
    /* Changed to block for reliable margins */
    margin: 0 auto;
    /* Center horizontally */
    box-shadow: 0 4px 10px rgba(166, 139, 62, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    min-width: 200px;
    -webkit-appearance: none;
    appearance: none;
}


.spc-form-submit input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(166, 139, 62, 0.4);
    opacity: 1;
}

/* ==================================================
 * Contact Form 7 Response Message Customization
 * ================================================== */
div.wpcf7-response-output {
    background-color: #fff !important;
    border: 2px solid #A68B3E !important;
    border-radius: 12px;
    padding: 20px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    color: #2D2D2D;
    font-weight: bold;
    text-align: center;
    margin: 20px auto !important;
    max-width: 600px;
    position: relative;
    z-index: 10;
}

/* ==================================================
 * Login Form Customization
 * ================================================== */
.woocommerce-form-login {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    margin: 20px auto;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.woocommerce-form-login label {
    font-weight: bold;
    color: #333;
}

.woocommerce-form-login .woocommerce-form-login__submit {
    width: 100%;
    margin-top: 25px;
    /* Increased top margin */
    background: linear-gradient(135deg, #A68B3E, #8C7335) !important;
    /* Force Gold */
    color: #fff !important;
    border: none;
    border-radius: 30px;
    font-weight: bold;
    padding: 14px;
    /* Increased padding */
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(166, 139, 62, 0.3);
    cursor: pointer;
    transition: transform 0.2s;
}

.woocommerce-form-login .woocommerce-form-login__submit:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}

/* Icons inside Input */
.input-with-icon {
    position: relative;
    display: block !important;
    /* flexからblockに変更して安定させる */
    margin-bottom: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.input-with-icon input.woocommerce-Input[type="text"],
.input-with-icon input.woocommerce-Input[type="email"],
.input-with-icon input.woocommerce-Input[type="password"] {
    padding-left: 45px !important;
    padding-right: 15px !important;
    height: 52px !important;
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    background: #f0f4f8 !important;
    border: 1px solid #e1e4e8 !important;
    font-size: 15px !important;
    box-sizing: border-box !important;
    border-radius: 4px !important;
    margin: 0 !important;
}

.input-with-icon .icon-email,
.input-with-icon .icon-lock {
    position: absolute;
    left: 15px;
    color: #6c757d;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    /* Prevent clicking on icon */
}

/* Adjust links and checkbox spacing */
.woocommerce-LostPassword {
    text-align: left;
    margin-bottom: 15px;
    font-size: 13px;
}

.woocommerce-form-login__rememberme {
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Separator "または" */
.login-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px 0;
    /* Increased margin */
    color: #888;
    font-size: 13px;
}

.login-separator .line {
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

/* Create Account Section */
.login-register-section {
    margin-top: 40px;
    text-align: center;
}

.login-register-section .separator-line {
    height: 1px;
    background: #eee;
    margin-bottom: 20px;
}

.login-register-section .register-text {
    font-size: 14px;
    margin-bottom: 10px;
    color: #333;
}

.btn-create-account {
    display: block;
    width: 100%;
    padding: 14px;
    background: #fff;
    border: 1px solid #A68B3E;
    /* Gold border */
    color: #A68B3E;
    text-align: center;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s;
}

.btn-create-account:hover {
    background: #fdfdfd;
    box-shadow: 0 2px 8px rgba(166, 139, 62, 0.15);
}

/* ==================================================
 * WooCommerce Error Message Customization
 * ================================================== */
.woocommerce-error {
    background: #fff;
    border-top: 3px solid #D70035 !important;
    border-radius: 8px;
    padding: 15px 20px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: #333;
    list-style: none !important;
    margin: 0 auto 25px !important;
    /* Center and add space */
    max-width: 400px;
    /* Match form width */
    position: relative;
    z-index: 10;
}

/* Reset default icon styles causing glitch */
.woocommerce-error::before,
.woocommerce-error::after {
    display: none !important;
    content: none !important;
}

.woocommerce-error li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 14px;
    font-weight: 500;
}

/* Custom Icon */
.woocommerce-error li::before {
    content: '⚠️';
    font-size: 16px;
    display: inline-block;
}

/* ==================================================
 * Readability Improvements (Glassmorphism) - Stronger
 * ================================================== */
/* 投稿ページ(single) と 固定ページ(page) のメインコンテンツエリア */
/* トップページ(.home)は除外 */
body.single #main,
body.page:not(.home) #main,
body.single .l-main,
body.page:not(.home) .l-main,
body.single .l-mainContent,
body.page:not(.home) .l-mainContent,
body.single main,
body.page:not(.home) main,
.-frame-on .l-mainContent {
    background-color: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    padding: 40px !important;
    border-radius: 20px !important;
    margin-top: 40px !important;
    margin-bottom: 80px !important;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
}

/* 記事コンテンツ自体の背景も白くする */
body.single .post_content,
body.page:not(.home) .post_content {
    background-color: transparent !important;
}

/* スマホ対応 */
@media screen and (max-width: 768px) {

    body.single #main,
    body.page:not(.home) #main,
    body.single .l-main,
    body.page:not(.home) .l-main,
    body.single .l-mainContent,
    body.page:not(.home) .l-mainContent,
    body.single main,
    body.page:not(.home) main {
        padding: 25px 15px !important;
        margin-top: 20px !important;
        margin-bottom: 40px !important;
        border-radius: 16px !important;
        background-color: rgba(255, 255, 255, 0.95) !important;
    }
}

/* ==================================================
 * Gem Exchange Shop (.spicchae-gem-exchange-container)
 * ================================================== */
.spicchae-gem-exchange-container {
    max-width: 1000px;
    margin: 30px auto;
}

.gem-balance-header {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
}

.gem-balance-header .coin-balance-card {
    min-width: 300px;
    /* カードが小さくなりすぎないように */
    max-width: 400px;
}

.gem-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.gem-item-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.gem-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.gem-item-card.out-of-stock {
    opacity: 0.8;
}

.item-thumbnail {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #f9f9f9;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.item-thumbnail .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eee;
    color: #999;
    font-size: 14px;
    font-weight: bold;
}

.stock-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
}

.stock-badge.out {
    background: #666;
    color: #fff;
}

.item-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.item-title {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 12px 0;
    color: #2D2D2D;
    line-height: 1.4;
}

.item-description {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f5f5f5;
}

.price-tag {
    display: flex;
    align-items: center;
    gap: 4px;
}

.price-tag .amount {
    font-size: 20px;
    font-weight: 800;
    color: #2D2D2D;
}

.gem-icon {
    font-size: 18px;
}

.gem-btn {
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none !important;
    text-align: center;
    white-space: nowrap;
}

.gem-btn.btn-exchange {
    background: linear-gradient(135deg, #A68B3E, #8C7335);
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(166, 139, 62, 0.2);
}

.gem-btn.btn-exchange:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(166, 139, 62, 0.3);
}

.gem-btn.disabled,
.gem-btn.short-balance {
    background: #eee;
    color: #aaa !important;
    cursor: not-allowed;
}

.gem-btn.login-required {
    background: #2D2D2D;
    color: #fff !important;
}

.gem-btn.processing {
    opacity: 0.7;
    pointer-events: none;
}

@media screen and (max-width: 480px) {
    .gem-items-grid {
        grid-template-columns: 1fr;
    }

    .gem-balance-header .coin-balance-card {
        width: 100%;
        max-width: none;
    }
}

/* ==================================================
 * My Page Gem Integration
 * ================================================== */
.user-coin-block {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.user-greeting {
    grid-column: 1 / -1;
}

.gem-balance-card {
    /* 共通クラス .coin-balance-card で基本デザインは定義済み */
    box-shadow: none;
    /* コイン側に合わせてシャドウ削除 */
}

/* 内部クラスは .coin-balance-card .coin-label 等で共通化されているため個別定義は不要 */



.gem-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.gem-history-table th {
    text-align: left;
    padding: 10px 8px;
    background: #f9f9f9;
    color: #666;
    font-weight: bold;
    border-bottom: 2px solid #eee;
}

.gem-history-table td {
    padding: 12px 8px;
    border-bottom: 1px solid #f0f0f0;
}

.status-badge {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: bold;
}

.status-badge.pending {
    background: #fff4e5;
    color: #663c00;
}

.status-badge.completed {
    background: #e6fffa;
    color: #234e52;
}

.status-badge.canceled {
    background: #fff5f5;
    color: #822727;
}

@media screen and (max-width: 600px) {
    .user-coin-block {
        grid-template-columns: 1fr;
    }
}

/* ==================================================
 * WooCommerce Checkout Customization
 * ================================================== */
/* 決済方法選択時の説明文（吹き出し部分）を非表示にする */
#payment .payment_methods li .payment_box {
    display: none !important;
}

/* ==================================================
 * WooCommerce Cart Customization
 * ================================================== */
/* 買い物カゴ画面の商品サムネイル（画像列）を非表示にする */
.woocommerce-cart table.cart .product-thumbnail {
    display: none !important;
}

/* PC表示: カートテーブルの幅を広げ、値の改行を防止する */
@media screen and (min-width: 769px) {

    /* カートページ・チェックアウトページのメインコンテナ幅を確保する */
    .woocommerce-cart .l-content,
    .woocommerce-checkout .l-content {
        width: 100% !important;
        max-width: 1200px !important;
    }

    /* カートページのコンテンツ幅を広げる */
    .woocommerce-cart .post_content,
    .woocommerce-cart .entry-content {
        max-width: 900px !important;
        width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* テーブル自体を広げる */
    .woocommerce-cart table.cart {
        width: 100% !important;
        table-layout: auto !important;
    }

    /* 金額・小計セルの改行を防止 */
    .woocommerce-cart table.cart .product-price,
    .woocommerce-cart table.cart .product-subtotal {
        white-space: nowrap !important;
    }

    /* 数量セルの幅を適切に */
    .woocommerce-cart table.cart .product-quantity {
        white-space: nowrap !important;
    }

    /* 商品名列に余裕を持たせる */
    .woocommerce-cart table.cart .product-name {
        min-width: 150px !important;
    }

    /* 削除列のヘッダーに「削除」テキストを表示する */
    .woocommerce-cart table.cart th.product-remove::after {
        content: "削除";
        font-size: inherit;
        font-weight: bold;
    }

    /* --- ブロック版カート (wc-block-cart) の幅修正 --- */
    /* ブロック版カートのコンテンツ幅を広げる */
    .wc-block-cart .wp-block-woocommerce-cart {
        max-width: 900px !important;
        width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .wc-block-cart .wc-block-cart__main,
    .wc-block-cart .wp-block-woocommerce-cart-items-block {
        max-width: none !important;
        width: 100% !important;
    }

    /* ブロック版カート内のテキスト折り返し防止 */
    .wc-block-cart .wc-block-components-product-price,
    .wc-block-cart .wc-block-cart-item__total-price-and-sale-badge-wrapper {
        white-space: nowrap !important;
    }
}

/* スマホ表示: 削除セルに「削除:」ラベルを追加し、×と横並びにする */
@media screen and (max-width: 768px) {
    .woocommerce-cart table.cart td.product-remove {
        display: flex !important;
        align-items: center !important;
    }

    .woocommerce-cart table.cart td.product-remove::before {
        content: "削除: " !important;
        font-weight: 700 !important;
        display: inline !important;
        visibility: visible !important;
        float: none !important;
        width: auto !important;
        height: auto !important;
        opacity: 1 !important;
    }

    .woocommerce-cart table.cart td.product-remove .remove {
        position: static !important;
        margin-left: auto !important;
    }
}

/* ==================================================
 * アプリアイコン タップ時の沈み込みエフェクト
 * ================================================== */
.spicchae-icon-tap,
.spicchae-icon-tap a {
    /* なめらかなアニメーションの設定（Apple風のイージング） */
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.15s ease !important;
    cursor: pointer !important;
    /* 変形基点を中央に */
    transform-origin: center center !important;
}

/* 親要素（figure）は中央揃えにし、リンク（a）は画像幅に合わせて変形するように設定 */
.spicchae-icon-tap {
    text-align: center !important;
    /* displayプロパティはSWELL標準に任せる（margin: 0 auto等が効くようにする） */
}

.spicchae-icon-tap a {
    display: inline-block !important;
}

/* アプリアイコン画像のデザイン（角丸と影） */
.spicchae-icon-tap img {
    border-radius: 22% !important;
    /* iOSアプリ風の自然な角丸 */
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3) !important;
    /* より濃く、ハッキリとした立体感のある影に変更 */
}

/* PCでマウスを乗せた時は、少し沈み（縮小）、透明度を下げて反応させる */
.spicchae-icon-tap:hover,
.spicchae-icon-tap a:hover {
    opacity: 0.9 !important;
    transform: scale(0.95) !important;
    /* ボタンと同じように、ホバーで少し沈むエフェクト */
}

/* タップ・クリックした瞬間（さらに沈み込む） */
.spicchae-icon-tap:active,
.spicchae-icon-tap:active a,
.spicchae-icon-tap a:active {
    transform: scale(0.90) !important;
    /* クリック時はもう一段階深く沈むように強調 */
    opacity: 0.8 !important;
}

/* ==================================================
 * トップページ インフォメーション（記事一覧）のカスタマイズ
 * ================================================== */
/* 全体を中央寄せ */
.spicchae-info-list .p-postList__item,
.spicchae-info-list .p-postList__link {
    text-align: center !important;
}

/* タイトルと日付が入っているコンテナを横並びに */
.spicchae-info-list .p-postList__body {
    display: flex !important;
    flex-direction: row !important;
    /* 横並びに変更 */
    flex-wrap: wrap !important;
    /* 画面が狭い場合は折り返す */
    align-items: center !important;
    /* 縦方向の中央揃え */
    justify-content: center !important;
    /* 横方向の中央寄せ */
    gap: 10px !important;
    /* タイトルと日付の隙間 */
}

/* 記事タイトル自体の調整（左に配置） */
.spicchae-info-list .p-postList__title {
    font-size: 14px !important;
    /* フォントを少し小さく（上品に） */
    font-weight: 600 !important;
    /* 少し太くして存在感を出す */
    order: 1 !important;
    /* 表示順を1番目（左）にする */
    margin: 0 !important;
    /* 余白リセット */
    text-align: left !important;
}

/* メタ情報（日付やカテゴリー）の調整（右に配置） */
.spicchae-info-list .p-postList__meta {
    order: 2 !important;
    /* 表示順を2番目（右）にする */
    margin: 0 !important;
    font-size: 12px !important;
    /* 日付は控えめに小さく */
}

/* ==================================================
 * カスタム見出しブロック用
 * ================================================== */
.spicchae-mystic-heading {
    font-family: 'UnifrakturMaguntia', serif !important;
    color: #C5A059 !important;
    /* Accent Gold */
    font-size: 24px !important;
    /* H2と同等のサイズ感（装飾フォントのため少し大きめに確保） */
    font-weight: normal !important;
    line-height: 1.4 !important;
    letter-spacing: 0.05em !important;
}

/* スマホ表示時のサイズ調整 */
@media screen and (max-width: 768px) {
    .spicchae-mystic-heading {
        font-size: 21px !important;
    }
}

/* ==================================================
 * Pegasus / Fool Section Heading (Merged with SWELL h2)
 * ================================================== */

/* 共通コンテナの設定 */
.spicchae-section-header {
    width: 100%;
    height: 120px;
    margin: 40px 0 30px;
    background: transparent;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* 上下線のデザイン（SWELL h2ベース） */
.spicchae-section-header::before,
.spicchae-section-header::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, rgba(166, 139, 62, 0.4) 20%, rgba(212, 175, 55, 0.6) 50%, rgba(166, 139, 62, 0.4) 80%, transparent);
    clip-path: ellipse(50% 50% at 50% 50%);
    z-index: 1;
}

.spicchae-section-header::before {
    top: 0;
}

.spicchae-section-header::after {
    bottom: 0;
}

/* テキストエリア */
.spicchae-section-header .header-content {
    padding-left: 0;
    /* 中央寄せのため削除 */
    z-index: 2;
    position: relative;
    text-align: center;
}

/* 英語見出し（グローバルh2リセット含む） */
.spicchae-section-header h2.main-title,
.spicchae-section-header .main-title {
    font-family: 'UnifrakturMaguntia', cursive, var(--font-heading) !important;
    font-size: 2rem !important;
    color: #4b3b30 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    text-align: center !important;
    background: none !important;
    border: none !important;
    letter-spacing: normal !important;
}

/* グローバルなh2の装飾線（疑似要素）を消す */
.spicchae-section-header h2.main-title::before,
.spicchae-section-header h2.main-title::after,
.spicchae-section-header .main-title::before,
.spicchae-section-header .main-title::after {
    display: none !important;
    content: none !important;
}

/* 日本語サブタイトル */
.spicchae-section-header .sub-title {
    font-size: 0.9rem;
    color: #8b5e3c;
    margin-top: 8px;
    letter-spacing: 0.2em;
    font-weight: bold;
    text-align: center;
}

/* 画像コンテナ（縦長画像に対応） */
.spicchae-section-header .pegasus-wrap {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 35%;
    max-width: 180px;
    z-index: 0;
    /* テキストや線の下に配置 */
    opacity: 0.85;
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* フール画像本体 */
.spicchae-section-header .pegasus-wrap img {
    height: 120%;
    /* 140%から120%に少し縮小 */
    width: auto;
    max-width: none;
    mix-blend-mode: multiply;
    filter: sepia(0.2) contrast(1.1);
    transform-origin: right center;
    transform: translateY(15px);
    /* 画像が小さくなった分、下方向へのズレも少し調整 */
}

/* ホバー時の演出 */
.spicchae-section-header:hover .pegasus-wrap {
    opacity: 1;
    transform: scale(1.05);
}

/* モバイル対応 */
@media screen and (max-width: 768px) {
    .spicchae-section-header {
        height: 100px;
    }

    .spicchae-section-header::before,
    .spicchae-section-header::after {
        width: 100%;
        /* スマホでは線を最大まで広くする */
    }

    .spicchae-section-header h2.main-title,
    .spicchae-section-header .main-title {
        font-size: 2.2rem !important;
    }

    .spicchae-section-header .pegasus-wrap img {
        height: 130%;
    }
}