@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
*/

/* ==================================================
 * Header Site Logo/Title Customization
 * ================================================== */
/* Center alignment for header logo/title */
.l-header__logo,
.l-header .c-siteLogo,
.p-headerLogo,
.l-header__inner,
.c-headLogo,
.l-header__body {
    justify-content: center !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
}

/* Site title styling - Cloud-like glow effect */
.c-siteLogo__txt,
.p-headerLogo a,
.l-header .siteLogo a,
.custom-logo-link,
.c-headLogo__link {
    font-family: "游明朝", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", "HGS明朝E", "MS P明朝", "MS PMincho", serif !important;
    font-weight: 700 !important;
    font-size: 32px !important;
    color: #2D2D2D !important;
    text-shadow:
        0 0 10px rgba(255, 255, 255, 0.9),
        0 0 20px rgba(255, 255, 255, 0.7),
        0 0 30px rgba(255, 255, 255, 0.5),
        0 0 40px rgba(255, 255, 255, 0.4),
        0 0 50px rgba(255, 255, 255, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.2) !important;
    letter-spacing: 0.1em !important;
    position: relative;
    display: inline-block;
    padding-top: 13px !important;
}

/* Large characters in logo (す) */
.u-logo-large {
    font-size: 1.25em;
    vertical-align: -0.05em;
    display: inline-block;
}

/* Medium characters in logo (え！) */
.u-logo-medium {
    font-size: 1.12em;
    vertical-align: -0.02em;
    display: inline-block;
}

/* Additional glow animation on hover */
.c-siteLogo__txt:hover,
.p-headerLogo a:hover,
.l-header .siteLogo a:hover,
.c-headLogo__link:hover {
    text-shadow:
        0 0 15px rgba(255, 255, 255, 1),
        0 0 25px rgba(255, 255, 255, 0.9),
        0 0 35px rgba(255, 255, 255, 0.7),
        0 0 45px rgba(255, 255, 255, 0.5),
        0 0 60px rgba(255, 255, 255, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.2) !important;
    transition: text-shadow 0.3s ease;
}

/* Ensure logo image is centered if exists */
.custom-logo,
.c-siteLogo__img {
    display: block;
    margin: 0 auto !important;
}

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

    .c-siteLogo__txt,
    .p-headerLogo a,
    .l-header .siteLogo a,
    .c-headLogo__link {
        font-size: 24px !important;
        letter-spacing: 0.05em !important;
    }
}

/* ==================================================
 * Heading h2 Customization
 * ================================================== */
h2 {
    font-family: "游明朝", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", "HGS明朝E", "MS P明朝", "MS PMincho", serif;
    font-weight: 500;
    color: #2D2D2D;
    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
 * ================================================== */
#body_wrap,
/* #main removed here to allow styling on subpages */
#footer,
.l-footer {
    background-color: transparent !important;
}

/* Page/Post background transparency (85%) with Glassmorphism */
.single #main,
.page #main {
    background-color: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(12px);
    border-radius: 16px;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Home Page specific transparency */
body.home #main {
    background-color: transparent !important;
}

#content {
    background-color: transparent !important;
}

/* Header transparency: Target multiple SWELL header classes */
.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;
}

/* Remove pseudo-elements that may add backgrounds or borders */
.l-header::before,
.l-header::after,
.l-header__inner::before,
.l-header__inner::after {
    content: none !important;
    display: none !important;
}

/* Ensure no inner backgrounds block it */
.p-gnav,
.c-iconList {
    background-color: transparent !important;
}

/* Keep footer menu opaque */
.app-bottom-nav {
    background: #2D2D2D !important;
}

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

.app-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
}

.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(--app-color-text);
    margin: 0;
}

/* Coin Balance Styling */
.coin-balance-wrap {
    background: linear-gradient(135deg, #fdfbf7 0%, #fff 100%);
    border: 1px solid var(--app-color-main);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

.coin-balance-wrap .amount {
    font-size: 32px;
    font-weight: bold;
    color: var(--app-color-text);
    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(--app-color-main);
    color: #fff;
    font-size: 12px;
    padding: 6px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(215, 0, 53, 0.3);
    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: #fff;
    border-radius: 12px;
    padding: 20px 10px;
    text-align: center;
    text-decoration: none;
    color: var(--app-color-text);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: background 0.2s;
    border: 1px solid transparent;
    display: block;
    /* Ensure it behaves like a block for padding */
}

.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(--app-color-main) 0%, #ff5e62 100%);
    color: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(215, 0, 53, 0.3);
    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(--app-color-main);
    color: var(--app-color-text);
}

.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: #fff;
    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(--app-color-text);
    font-weight: 500;
    line-height: 1.3;
}

/* List Menu Styles */
.app-list-menu {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.app-list-menu .list-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    text-decoration: none;
    color: var(--app-color-text);
    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, #6e8efb, #a777e3);
    color: #fff;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.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: #fff;
    color: #a777e3;
    padding: 10px 24px;
    border-radius: 25px;
    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: #F2F0ED;
    /* Base Greige */
    min-height: 100vh;
    padding: 10px 20px 80px;
    /* Bottom padding for fixed footer */
    color: #2D2D2D;
    /* Text Charcoal */
    text-align: center;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    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: #A68B3E;
    /* Accent Gold */
    margin-bottom: 10px;
    letter-spacing: 2px;
    font-weight: 800;
    /* Stylish light-mode shadow/gradient text */
    background: linear-gradient(45deg, #A68B3E, #D4AF37);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(166, 139, 62, 0.2);
}

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

.coin-shop-wrapper .current-balance {
    display: inline-block;
    background: #fff;
    padding: 10px 25px;
    border-radius: 50px;
    border: 1px solid #A68B3E;
    box-shadow: 0 4px 10px rgba(166, 139, 62, 0.15);
}

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

.coin-shop-wrapper .current-balance .amount {
    font-size: 24px;
    font-weight: bold;
    color: #2D2D2D;
    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: #fff;
    border: 1px solid #eee;
    border-radius: 20px;
    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(166, 139, 62, 0.2);
    /* Gold glow on hover */
    border-color: #A68B3E;
}

/* 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 Icon */
.coin-icon {
    margin-bottom: 20px;
}

/* Stacked Coins Container */
.stacked-coins {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 110px;
}

.stacked-coins .css-coin {
    position: absolute;
}

/* 1 coin - centered */
.stacked-coins.coins-1 .css-coin:nth-child(1) {
    position: relative;
}

/* 2 coins - horizontal overlap */
.stacked-coins.coins-2 .css-coin:nth-child(1) {
    left: calc(50% - 40px);
    z-index: 1;
}

.stacked-coins.coins-2 .css-coin:nth-child(2) {
    left: calc(50% - 10px);
    z-index: 2;
}

/* 3 coins - horizontal overlap */
.stacked-coins.coins-3 .css-coin:nth-child(1) {
    left: calc(50% - 55px);
    z-index: 1;
}

.stacked-coins.coins-3 .css-coin:nth-child(2) {
    left: calc(50% - 25px);
    z-index: 2;
}

.stacked-coins.coins-3 .css-coin:nth-child(3) {
    left: calc(50% + 5px);
    z-index: 3;
}

/* 5 coins - horizontal line */
.stacked-coins.coins-5 {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 110px;
}

.stacked-coins.coins-5 .css-coin {
    position: relative;
    margin: 0 -12px;
    transform: scale(0.8);
    left: auto;
    z-index: 1;
}

/* Emoji Bag (1300/3000 coins) */
.emoji-bag {
    font-size: 60px;
    line-height: 1;
    display: inline-block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
    transition: transform 0.3s;
}

.emoji-bag.is-extra-large {
    font-size: 90px;
    margin-top: -10px;
}

/* Stacked Bags (3 Bags) */
.stacked-bags {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 110px;
}

.stacked-bags.bags-3 .emoji-bag {
    margin: 0 -24px;
    transform: scale(0.9);
    position: relative;
    z-index: 1;
}

.stacked-bags.bags-3 .emoji-bag:nth-child(2) {
    z-index: 2;
    margin-top: 0;
}

.stacked-bags.bags-3 .emoji-bag:nth-child(1),
.stacked-bags.bags-3 .emoji-bag:nth-child(3) {
    z-index: 1;
}

.css-coin {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FFD700, #FDB931);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 4px #FDB931, 0 4px 10px rgba(166, 139, 62, 0.4);
    border: 2px solid #fff;
}

.css-coin span {
    font-size: 32px;
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(184, 134, 11, 0.5);
}

.coin-title {
    font-size: 18px;
    color: #2D2D2D;
    font-weight: bold;
    margin-bottom: 15px;
}

.coin-price {
    font-size: 24px;
    color: #A68B3E;
    /* Gold */
    font-weight: bold;
    margin-bottom: 25px;
}

.coin-price .woocommerce-Price-amount {
    color: #A68B3E;
}

/* Button */
.coin-action .btn-purchase {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #A68B3E, #8C7335);
    color: #fff;
    font-weight: bold;
    padding: 12px 0;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(166, 139, 62, 0.3);
    transition: filter 0.2s, transform 0.2s, box-shadow 0.2s;
}

.coin-action .btn-purchase:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(166, 139, 62, 0.4);
}

.coin-action .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: #A68B3E;
    font-size: 13px;
    text-decoration: underline;
    font-weight: 500;
}

.coin-shop-footer .back-link:hover {
    color: #8C7335;
}

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

.mypage-block {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Block 1: User + Coin */
.user-coin-block {
    text-align: center;
    background: linear-gradient(135deg, #fdfbf7 0%, #fff 100%);
    border: 1px solid rgba(166, 139, 62, 0.2);
}

.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: #2D2D2D;
    margin: 0 4px;
}

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

.coin-balance-card {
    background: #fff;
    border: 2px solid #A68B3E;
    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: #A68B3E;
    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: #2D2D2D;
    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: linear-gradient(135deg, #A68B3E, #8C7335);
    color: #fff !important;
    font-size: 14px;
    font-weight: bold;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none !important;
    box-shadow: 0 4px 10px rgba(166, 139, 62, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

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

/* Block 2 & 3: History Blocks */
.history-block .block-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: bold;
    color: #2D2D2D;
    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: #2D2D2D;
    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: #2D2D2D !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: none;
    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: 16 / 9;
    background: #f9f9f9;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.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;
}