/*
 Theme Name: arimeda-new-theme
 Description: EC向けテーマ
 Author: Aze
 Version: 1.1
*/

/* --- Variables & Base --- */
:root {
    --primary-teal: #4db1b3;
    --light-teal: #e0f2f1;
    --accent-gold: #e9c35d;
    --white: #ffffff;
    --text-brown: #622d18;
    --bg-light-yellow: #fff9e6;
    --header-height: 100px;
    --footer-height: 200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* paddingやborderを含めて幅を計算 */
}

body {
    background-color: var(--primary-teal);
    color: var(--text-dark);
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    margin: 0;
    padding: 0 !important;
    line-height: 1.6;
    min-height: 100vh;
}

img {
    display: block;
    margin: 0 auto;
}

/* --- Layout --- */
.site-main {
    width: 100%;
    position: relative;
    overflow-x: hidden;
    /* 装飾のはみ出し防止 */
}

/* 背景装飾画像 */
.site-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background-image:
        url('img/Treat04.svg'), url('img/Treat06.svg'),
        url('img/Treat03.svg'), url('img/Treat05.svg'),
        url('img/Treat04.svg'), url('img/Treat06.svg');
    background-position:
        left -5% top 20%, left 0% top 15%,
        right -5% top 50%, right -5% top 60%,
        left 0% bottom 3%, left 0% bottom 5%;
    background-repeat: no-repeat;
    background-size: 800px, 800px, 800px, 800px, 800px, 800px;
}

.main__inner {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 20px;
}

/* 二重背景コンテンツエリア */
.sub__inner {
    position: relative;
    padding: 40px;
    border-radius: 40px;
}

.sub__inner::before {
    /* 水色の装飾（最下層） */
    content: '';
    position: absolute;
    top: 6%;
    left: -10%;
    width: 120%;
    height: 88%;
    background-color: var(--light-teal);
    border-radius: 40px;
    z-index: 1;
}

.sub__inner::after {
    /* 黄色のメイン背景（中間層） */
    content: '';
    position: absolute;
    inset: 0;
    background-color: var(--bg-light-yellow);
    border-radius: 40px;
    z-index: 2;
}

.sub__inner>* {
    position: relative;
    z-index: 3;
}

/* --- Header --- */
.site-header {
    width: 100%;
    background-color: var(--primary-teal);
    color: var(--white);
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    border-bottom: var(--accent-gold) solid 5px;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4%;
    display: flex;
    flex-direction: row; /* ← column から row に変更 */
    justify-content: space-between; /* 左端と右端に振り分ける */
    align-items: center;
}

.site-logo img {
    max-height: 50px; /* 横並びにするので、少し高さを抑えてスマートに */
    width: auto;
    display: block;
	    /* ↓【追加】画像をCSSで完全に白一色に変換する魔法のコード */
    filter: brightness(0) invert(1); 
    opacity: 0.9; /* ほんの少しだけ透けさせるとさらに馴染みます */
	transition: all 0.3s !important;
}

.site-logo img:hover{
	transform:translatey(-3px);
}


/* --- Navigation (PC) --- */
.main-navigation {
    width: auto;
}

.main-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.main-menu-list li {
    position: relative;
    transition: all 0.3s;
}

.main-menu-list li a {
    color: var(--nav-text);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    padding: 5px 0;
    display: block;
}

.main-menu-list li:hover {
    transform: translateY(-5px);
}

.main-menu-list li:hover>a {
    color: var(--accent-gold);
}

/* ドロップダウンメニュー */
.main-menu-list .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 100;
    background-color: #fff;
    min-width: 200px;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.main-menu-list li:hover>.sub-menu {
    opacity: 1;
    visibility: visible;
}

.main-menu-list .sub-menu li a {
    padding: 10px 20px;
    font-size: 0.85rem;
    color: var(--text-brown);
    white-space: nowrap;
}

.main-menu-list .sub-menu li:hover>a {
    color: var(--primary-teal);
}

/* --- Hamburger Menu (Mobile Toggle) --- */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 2000;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #fff;
    position: absolute;
    left: 0;
    transition: all 0.3s;
}

.menu-toggle span:nth-child(1) {
    top: 0;
}

.menu-toggle span:nth-child(2) {
    top: 11px;
}

.menu-toggle span:nth-child(3) {
    top: 22px;
}

.menu-toggle.is-active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* --- Hero Section --- */
.hero {
    width: 100%;
    height: 70vh;
    margin-top: calc(var(--header-height) - 10px);
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero__content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__content img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.hero__text-overlay {
    position: absolute;
    top: 50%;
    left: 52%;
    transform: translate(-50%, -50%);
    width: 80%;
    text-align: center;
    z-index: 2;
}

.hero__text-overlay p {
    margin: 0;
    line-height: 1.8;
    color: var(--text-brown);
    font-weight: bold;
    font-size: clamp(0.5rem, 2.5vw, 1.3rem);
    padding: 0 10px;
    word-break: auto-phrase;
}

/* --- Common Section Styles --- */
.notice,
.items,
.instagram-section {
    padding: 40px;
    border-radius: 50px;
    margin-bottom: 60px;
}

/* 共通の見出しH2スタイル */
.notice h2,
.items h2,
.instagram-section h2 {
    text-align: center;
    position: relative;
    color: var(--text-brown);
    margin: 0 0 30px 0;
    font-size: 1.8rem;
    letter-spacing: 0.1em;
    padding: 10px;
}

.notice h2::before,
.items h2::before,
.instagram-section h2::before,
.notice h2::after,
.items h2::after,
.instagram-section h2::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 3px;
    background-color: var(--accent-gold);
    z-index: -1;
}

.notice h2::before,
.items h2::before,
.instagram-section h2::before {
    left: 0%;
}

.notice h2::after,
.items h2::after,
.instagram-section h2::after {
    right: 0%;
}

/* --- About Section --- */
.section-about {
    text-align: center;
    background: var(--white);
    color: var(--text-brown);
    margin: 20px auto 40px;
    padding: 40px 20px;
    border-radius: 60px;
    max-width: 800px;
    line-height: 1.8;
    font-size: 1.1rem;
    position: relative;
}

/* --- Notice (お知らせ) --- */
.arimeda-notice-list {
    color: var(--text-brown);
    list-style: none;
    padding: 0;
}

.arimeda-notice-list li {
    border-bottom: 1px dotted var(--primary-teal);
}

.arimeda-notice-list li:last-child {
    border-bottom: none;
}

.notice-card {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    padding: 10px;
    transition: all 0.3s;
    border-radius: 10px;
    background-color: var(--white);
    margin: 5px 0;
}

.notice-card:hover {
    transform: translateY(-5px);
    background-color: var(--light-teal);
}

.notice-thumb {
    width: 80px;
    height: 60px;
    margin-right: 20px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 8px;
}

.notice-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.notice-thumb.placeholder {
    background: var(--primary-teal);
    opacity: 0.5;
}

.notice-info {
    display: flex;
    flex-direction: column;
}

.notice-date {
    font-size: 0.85rem;
    margin-bottom: 3px;
    color: var(--primary-teal);
}

.notice-title {
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Items Section (Ranking & Recommend) --- */
.items__list {
    max-width: 1000px;
    margin: 0 auto;
}

.items h3 {
    font-size: 1.4rem;
    color: var(--text-brown);
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 30px;
}

/* リスト共通設定 */
.ranking__list,
.recommend__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

/* アイテムカード共通設定 */
.ranking__item,
.recommend__item {
    border-radius: 20px;
    background: #fff;
    transition: transform 0.3s;
    border: var(--primary-teal) 3px solid;
    overflow: hidden;
}

.ranking__item:hover,
.recommend__item:hover {
    transform: translateY(-5px);
}

.ranking__item img,
.recommend__item img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.ranking__item dl,
.recommend__item dl {
    margin: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ranking__item dt,
.recommend__item dt {
    color: var(--text-brown);
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ranking__item dd,
.recommend__item dd {
    margin: 0;
    color: var(--primary-teal);
    font-size: 1.2rem;
    font-weight: bold;
}

/* ボタン共通 */
.button {
    width: 100%;
    display: flex;
    justify-content: center;
}

.btn.button--primary,
#sb_instagram .sbi_follow_btn a {
    display: inline-block;
    background-color: var(--accent-gold) !important;
    color: white;
    padding: 15px 50px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    margin-top: 20px;
}

.btn.button--primary:hover,
#sb_instagram .sbi_follow_btn a:hover {
    background-color: var(--primary-teal) !important;
    box-shadow: none !important;
}

/* --- Instagram --- */

#sb_instagram .sb_instagram_header,
.sb_instagram_header {
    background-color: var(--white);
    border-radius: 10px;
    padding: 10px;
}

#sb_instagram .sb_instagram_header h3,
.sb_instagram_header h3 {
    color: var(--primary-teal);
    font-weight: bold;
    font-size: 1.7rem;
}

#sb_instagram .sb_instagram_header p,
.sb_instagram_header p {
    color: var(--text-brown);
    font-size: 1rem;
}

#sb_instagram .sb_instagram_header .sbi_header_img,
.sb_instagram_header .sbi_header_img {
    border: var(--accent-gold) 2px solid;
}

#sb_instagram #sbi_images {
    gap: 15px !important;
}

#sb_instagram #sbi_images .sbi_item {
    border-radius: 20px;
    border: var(--primary-teal) 2px solid;
    transition: all 0.3s;
}

#sb_instagram #sbi_images .sbi_item:hover {
    transform: translateY(-5px);
}

/* --- Back to Top Button --- */
#back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 150px;
    height: auto;
    text-decoration: none;
    z-index: 99;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s;
    filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.15));
}

.btn-svg {
    width: 100%;
    height: auto;
}

.btn-svg .st0 {
    fill: var(--primary-teal);
    stroke: var(--accent-gold);
    stroke-width: 4px;
    transition: all 0.3s;
}

.btn-text {
    position: absolute;
    color: var(--accent-gold);
    font-weight: bold;
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    pointer-events: none;
    transition: color 0.3s;
}

#back-to-top:hover {
    transform: translateY(-5px);
}

#back-to-top:hover .btn-svg .st0 {
    fill: var(--accent-gold);
    stroke: var(--primary-teal);
}

#back-to-top:hover .btn-text {
    color: var(--primary-teal);
}

/* --- Footer --- */
.site-footer {
    background-color: #f9f9f9;
    padding: 60px 0 20px;
    border-top: 1px solid #eee;
    color: var(--text-brown);
}

.footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer__layout {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.footer-logo img {
    max-width: 150px;
    height: auto;
	transition:all 0.3s;
}

.footer-logo img:hover{
	transform:translatey(-5px);
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 12px;
}

.footer-menu li .sub-menu li {
    list-style: none;
    margin-left: 15px;
}

.footer-menu li a {
    text-decoration: none;
    color: var(--primary-teal);
    font-weight: bold;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-menu li a:hover {
    color: var(--accent-gold);
}

.footer-menu li .sub-menu li a {
    font-weight: normal;
    color: var(--text-brown);
    transition: color 0.3s;
}

.footer-menu li .sub-menu li a:hover {
    color: var(--accent-gold);
}


.footer-info h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--primary-teal);
}

.footer-info p {
    font-size: 0.85rem;
    line-height: 1.8;
    margin-bottom: 8px;
}

.footer-copy {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 0.8rem;
    color: #999;
}

/* --- Animations --- */
.is-fadein {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   Responsive Layout (Tablet & Mobile)
   ============================================================ */

@media (max-width: 992px) {
    :root {
        --header-height: 50px;
        --footer-height: 200px;
    }

    /* --- レイアウト・共通インナー --- */
    .sub__inner {
        margin: 0 auto !important;
        max-width: 80% !important;
        padding: 0 !important;
        position: relative;
    }

    .sub__inner::before {
        content: '';
        position: absolute;
        top: 2.5%;
        left: -5%;
        height: 95%;
        width: 110%;
        border-radius: 20px;
        z-index: -1;
    }

    .sub__inner::after {
        border-radius: 20px;
    }

    .section-about {
        max-width: 95%;
        margin: 50px auto 50px !important;
    }

    /* --- ヘッダー・ナビゲーション --- */
    .site-header {
        padding: 10px 0;
    }

    .site-logo img {
        max-height: 50px;
    }

    .menu-toggle {
        display: block;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        right: -150%;
        width: 100vw;
        height: 100vh;
        background-color: var(--primary-teal);
        display: flex;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        z-index: 1100;
    }

    .main-navigation.is-open {
        right: 0;
    }

    .main-menu-list {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .main-menu-list li a {
        font-size: 1.2rem;
    }

    .header-inner {
        flex-direction: row;
        justify-content: space-between;
    }

    /* --- 背景装飾 --- */
    .site-main::before {
        content: '';
        position: absolute;
        inset: 0;
        z-index: -1;
        pointer-events: none;
        background-image:
            url('img/Treat04.svg'), url('img/Treat06.svg'),
            url('img/Treat03.svg'), url('img/Treat05.svg'),
            url('img/Treat04.svg'), url('img/Treat06.svg');
        background-size: 50%;
        background-position:
            left -5% top 17%, left 0% top 15%,
            right -10% top 50%, right -10% top 48%,
            left -5% bottom -1%, left 0% bottom -2%;
        background-repeat: no-repeat;
    }

    /* --- お知らせ・商品リスト (992px以下共通) --- */


    .arimeda-notice-list .notice-info {
        min-width: 0;
    }

    .notice-date {
        font-size: 0.7rem;
    }

    .notice-title {
        font-size: 0.8rem;
        display: inline-block;
        width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .ranking__list,
    .recommend__list {
        display: grid;
        grid-template-columns: 1fr;
        /* タブレット以下は1列 */
        gap: 10px;
    }

    .ranking__item dl,
    .recommend__item dl {
        padding: 5px;
        align-items: start;
        min-width: 0;
    }

    .ranking__item dt,
    .recommend__item dt {
        display: inline-block;
        width: 100%;
        font-size: 0.85rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .ranking__item dd,
    .recommend__item dd {
        font-size: 1rem;
    }

    .btn.button--primary {
        margin-top: 0;
        padding: 10px 30px;
        border-radius: 20px;
    }

    #sb_instagram .sb_instagram_header,
    .sb_instagram_header {}

    #sb_instagram .sb_instagram_header h3,
    .sb_instagram_header h3 {
        font-size: 1rem;
    }

    #sb_instagram .sb_instagram_header p,
    .sb_instagram_header p {
        font-size: 0.6rem;
    }

    #sb_instagram .sb_instagram_header .sbi_header_text,
    .sb_instagram_header .sbi_header_text {
        flex-direction: column;
        align-items: center;
    }

    #sb_instagram .sb_instagram_header p,
    .sb_instagram_header p {
        text-align: start;
    }
}

/* --- Mobile Specific (under 768px) --- */
@media (max-width: 768px) {
    .main__inner {
        padding: 0;
    }

    section {
        padding: 10px !important;
        margin-bottom: 15px !important;
    }

    .instagram-section {
        text-align: center;
        padding-bottom: 20px !important;
    }

    .hero {
        height: 30vh;
    }

    /* --- 商品アイテムを横並び形式に (Mobile) --- */
    .ranking__list .ranking__item,
    .recommend__list .recommend__item {
        display: flex;
        align-items: center;
        gap: 5px;
        background-color: var(--white);
        width: 100%;
        box-sizing: border-box;
        border-radius: 12px;
        border: var(--primary-teal) 1px solid;
        padding: 5px;
        margin-bottom: 0 !important;
    }

    .ranking__list .ranking__item img,
    .recommend__list .recommend__item img {
        width: 60px;
        height: 60px;
        flex-shrink: 0;
        border-radius: 8px;
        object-fit: cover;
    }

    .ranking__list .ranking__item dl,
    .recommend__list .recommend__item dl {
        margin: 0;
        text-align: left;
        overflow: hidden;
        color: var(--text-brown);
    }

    .ranking__item dt,
    .recommend__item dt {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .ranking__item dd,
    .recommend__item dd {
        color: var(--primary-teal);
        font-weight: bold;
        margin: 0;
    }

    /* --- セクションタイトル装飾 --- */
    .notice h2,
    .items h2,
    .instagram-section h2 {
        font-size: 1.5rem;
        margin-bottom: 15px;
        position: relative;
    }

    .notice h2::before,
    .items h2::before,
    .instagram-section h2::before,
    .notice h2::after,
    .items h2::after,
    .instagram-section h2::after {
        width: 15%;
    }

    .notice h2::before,
    .items h2::before,
    .instagram-section h2::before {
        left: 15px;
    }

    .notice h2::after,
    .items h2::after,
    .instagram-section h2::after {
        right: 15px;
    }

    .items__list h3 {
        font-size: 1.2rem !important;
        margin-bottom: 5px;
        padding-bottom: 0;
    }

    .section-about {
        font-size: 0.5rem;
        padding: 10px 18px;
        border-radius: 15px;
    }

    /* --- フッター --- */
    .footer__layout {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .footer-logo,
    .footer-nav,
    .footer-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-menu li .sub-menu {
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 100;
        background-color: #fff;
        min-width: 200px;
        padding: 10px 0;
        border-radius: 8px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        opacity: 0;
        visibility: hidden;
        transition: 0.3s;
    }

    .footer-menu li:hover>.sub-menu {
        opacity: 1;
        visibility: visible;
    }

    #back-to-top {
        right: 15px;
        bottom: 15px;
        width: 100px;
    }

    .btn-text {
        font-size: 0.9rem;
    }
}

/* ------------------------------
            下層ページ
--------------------------------- */

/* --- Shop Archive Layout --- */
.free-banner {
    position: fixed;
    top: 15%;
    right: 50px;
    z-index: 1000;
    background-color: var(--bg-light-yellow);
    border-radius: 10px;
    color: var(--text-brown);
    padding: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.free-banner:hover {
    transform: translateY(-5px);
}

.free-banner p {
    margin: 0 0 10px 0;
}

.free-banner span {
    font-weight: bold;
}

.free-banner a {
    color: var(--white);
    background-color: var(--accent-gold);
    padding: 5px;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s;
}

.free-banner a:hover {
    background-color: var(--primary-teal);
}

.shop-container {
    max-width: 1200px;
    margin: calc(var(--header-height) + 20px) auto 0;
    padding: 0 20px;
    display: flex;
    align-items: stretch !important;
    gap: 30px;
}

/* タイトルエリア（トップの見出しデザインを継承） */
.shop-header {
    text-align: center;
    margin: 40px 0;
}

.shop-title {
    font-size: 2rem;
    color: var(--text-brown);
    position: relative;
    display: inline-block;
    padding: 0 60px;
}

.shop-title::before,
.shop-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 3px;
    background-color: var(--accent-gold);
}

.shop-title::before {
    left: 0;
}

.shop-title::after {
    right: 0;
}

.shop-description {
    margin: 20px 0 0 0;
    font-size: 0.95rem;
    color: var(--text-brown);
    line-height: 1.8;
}

.shop-description p {
    background-color: var(--bg-light-yellow);
    border-radius: 20px;
    padding: 10px;
}

/* PC時のサイドバー外枠 */
.shop-sidebar {
    width: 300px;
    background: var(--bg-light-yellow);
    /* ここで背景を塗ることで、中身が少なくても下まで色がつく */
    flex-shrink: 0;
}

/* PC時の固定コンテンツ */
.sidebar-sticky-content {
    position: sticky;
    top: calc(var(--header-height) + 20px);
    padding: 30px 20px;
}

/* --- Mobile Toggle & Buttons --- */
.sidebar-toggle {
    display: none;
    /* デフォルト非表示 */
}

.sidebar-close {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--primary-teal);
    padding: 10px;
    cursor: pointer;
    margin-left: auto;
}

.sidebar-sticky-content h3 {
    font-size: 1.1rem;
    color: var(--primary-teal);
    border-bottom: 2px solid var(--accent-gold);
    padding: 0 5px;
    margin-bottom: 20px;
}

.sidebar-sticky-content h3:first-child {
    margin-top: 0;
}

.sidebar-categories li {
    list-style: none;
    margin-bottom: 10px;
}

.sidebar-categories li a {
    color: var(--text-brown);
    text-decoration: none;
    transition: all 0.3s;
}

.sidebar-categories li:hover a {
    color: var(--accent-gold);
}

/* おすすめ商品のリスト（縦に並べるか、2カラムにするか） */
.sidebar-recommend {
    display: flex;
    flex-direction: column;
    margin: 0;
}

.sidebar-recommend .recommend-item {
    display: flex;
    /* 画像とテキストを横に並べる形式に変更 */
    align-items: center;
    background-color: var(--white);
    width: 100%;
    box-sizing: border-box;
    border-radius: 12px;
    border: var(--primary-teal) 1px solid;
    padding: 5px;
    transition: all 0.3s;
    gap: 10px;
    margin-bottom: 10px;
}

.sidebar-recommend .recommend-item:hover {
    transform: translateY(-5px);
}

.sidebar-recommend .recommend-item img {
    width: 60px;
    /* 小さめのサムネイル */
    height: 60px;
    flex-shrink: 0;
    border-radius: 8px;
}

.sidebar-recommend .recommend-item dl {
    margin: 0;
    text-align: left;
    overflow: hidden;
    color: var(--text-brown);
}

.sidebar-recommend .recommend-item dt {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-recommend .recommend-item dd {
    color: var(--primary-teal);
    font-weight: bold;
    margin: 0;
}

.sidebar-sticky-content .woocommerce-product-search {
    display: flex;
    /* セットで角丸にする設定 */
    border: 2px solid var(--primary-teal);
    border-radius: 10px;
    /* ここで全体の角丸を決める */
    overflow: hidden;
    /* 中の入力欄とボタンの角を親の角丸に合わせる */
    background-color: #fff;
    width: 100%;
    box-sizing: border-box;
}

.sidebar-sticky-content .woocommerce-product-search .search-field {
    /* デフォルトのスタイルをリセット */
    border: none;
    outline: none;
    height: 40px;
    /* 少し高さを出すと今風になります */
    padding: 0 10px;
    flex: 1;
    /* 入力欄を可能な限り広げる */
    width: 100%;
    /* 幅を確保 */
    margin: 0;
    /* 余計なマージンを消す */
    background: transparent;
}

.sidebar-sticky-content .woocommerce-product-search button {
    /* .search-submit よりも button 指定の方が確実な場合があります */
    background-color: var(--primary-teal);
    border: none;
    color: var(--white);
    padding: 0 10px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
    /* ★重要：文字を絶対に折り返さない（縦書き防止） */
    transition: background-color 0.3s;
    height: 40px;
    /* 入力欄と高さを合わせる */
}

.sidebar-sticky-content .woocommerce-product-search button:hover {
    background-color: var(--accent-gold);
}

/* --- Shop Sort --- */
.shop-sort .woocommerce-ordering .orderby {
    height: 40px;
    padding: 0 30px 0 15px;
    /* 右側に矢印用の余白を空ける */
    border-radius: 20px;
    background-color: var(--white);
    border: var(--accent-gold) 2px solid;
    color: var(--text-brown);
    cursor: pointer;

    /* --- デフォルトの矢印を消して、自作する（モダンブラウザ用） --- */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="%23e9c35d" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M6 9l6 6 6-6"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
}

/* --- Product Grid --- */
/* WooCommerceの標準クラスを上書き */
.shop-main {
    padding-bottom: 60px !important;
}

.shop-main .products {
    flex: 1;
    padding: 40px;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    /* 基本3列 */
    gap: 30px !important;
    margin: 30px 0 !important;
}

.shop-main .products::before,
.shop-main .products::after {
    display: none !important;
}

/* clearfix削除 */

/* 商品カード（トップのアイテムデザインを継承） */
.shop-main .product {
    background: #fff;
    border: 5px solid var(--light-teal);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s;
    text-align: center;
    width: 100% !important;
    /* WCの%指定を解除 */
    margin: 0 !important;
}

.shop-main .product:hover {
    transform: translateY(-5px);
    border: 5px solid var(--accent-gold);
}

.shop-main .product img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    margin: 0 !important;
}

/* 商品タイトルと価格 */
.woocommerce-loop-product__title {
    font-size: 1rem !important;
    color: var(--text-brown) !important;
    padding: 15px 10px 5px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.price {
    color: var(--primary-teal) !important;
    font-weight: bold !important;
    font-size: 1.1rem !important;
    margin-bottom: 15px !important;
    display: block;
}

/* カートへ入れるボタン */
.add_to_cart_button {
    display: block;
    width: 80% !important;
    background-color: var(--accent-gold) !important;
    color: #fff !important;
    border-radius: 30px !important;
    padding: 10px 20px !important;
    font-size: 0.85rem !important;
    margin-bottom: 20px !important;
    transition: all 0.3s !important;
}

.add_to_cart_button:hover {
    background-color: var(--primary-teal) !important;
}

.added_to_cart.wc-forward {
    text-decoration: none;
    background-color: var(--primary-teal);
    color: var(--white);
    font-weight: bold;
    padding: 5px;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: all 0.3s;
}

.added_to_cart.wc-forward:hover {
    background-color: var(--accent-gold);
}


/* --- Pagination --- */
.shop-pagination {
    margin-top: 50px;
    text-align: center;
}

.woocommerce-pagination ul {
    border: none !important;
}

.woocommerce-pagination ul li {
    border: none !important;
    margin: 0 5px !important;
    transition: all 0.3s !important;
}

.woocommerce-pagination ul li:hover {
    transform: translateY(-3px) !important;
}

.woocommerce-pagination ul li span.current {
    background: var(--accent-gold) !important;
    color: #fff !important;
    border-radius: 5px;
}

.woocommerce-pagination ul li a {
    background: var(--light-teal) !important;
    color: var(--primary-teal) !important;
    border-radius: 5px;
}

.mini-features {
    margin: 20px auto;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.mini-feature {
    width: 70%;
    background-color: var(--white);
    border: var(--accent-gold) 2px solid;
    border-radius: 15px;
    display: flex;
    padding: 10px;
    justify-content: flex-start;
    gap: 10px;
    align-items: center;
}


.mini-feature img {
    aspect-ratio: 1 / 1 !important;
    min-width: 120px !important;
    width: 120px !important;
    height: auto !important;
    object-fit: cover !important;
    border-radius: 10px;
    margin: 0;
}

.mini-feature-info {
    flex-grow: 2;
    width: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5px;
    color: var(--text-brown);
}

.mini-feature-info h3 {
    color: var(--primary-teal);
}

.mini-feature-info p {
    overflow: hidden !important;
    height: 30px !important;
}

.mini-feature-info a {
    display: block;
    text-align: center;
    text-decoration: none;
    color: var(--white);
    background-color: var(--primary-teal);
    padding: 5px;
    border-radius: 5px;
    margin-top: 20px;
    transition: all 0.3s;
}

.mini-feature-info a:hover {
    background-color: var(--accent-gold);
    transform: translateY(-5px);
}

/* --- Responsive --- */
/* --- サイドバーの基本状態（モバイル） --- */
@media (max-width: 992px) {
    .free-banner {
        display: none;
    }

    .shop-sidebar {
        width: 0;
        /* PC用の背景を消す */
        background: none;
    }

    /* ぬるっと出てくるサイドバー本体 */
    .site-sidebar-wrapper {
        position: fixed;
        top: 0;
        left: 0;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-light-yellow);
        z-index: 9999;
        transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        /* ぬるっと動く設定 */
        overflow-y: auto;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: column;
    }

    .site-sidebar-wrapper.closed {
        transform: translateX(-105%);
        /* 完全に隠す */
    }

    .sidebar-close {
        display: block;
    }

    .sidebar-toggle {
        display: block;
        position: fixed;
        top: calc(var(--header-height) + 30px);
        left: -5px;
        z-index: 900;
        background: var(--accent-gold);
        color: #fff;
        padding: 12px 25px;
        border-radius: 0 50px 50px 0;
        border: none;
        font-weight: bold;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        transition: all 0.3s;
    }

    .sidebar-toggle:hover {
        background-color: var(--bg-light-yellow);
        color: var(--accent-gold);
        left: 0;
        transition: all 0.3s;
    }

    /* 背景オーバーレイ */
    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9998;
        opacity: 0;
        visibility: hidden;
        transition: 0.3s;
    }

    body.sidebar-open .sidebar-overlay {
        opacity: 1;
        visibility: visible;
    }

    .shop-container {
        max-width: 90%;
        gap: 0;
    }

    /* タイトルエリア（トップの見出しデザインを継承） */
    .shop-header {
        margin: 20px 0;
    }


    .shop-title::before,
    .shop-title::after {
        content: '';
        position: absolute;
        top: 50%;
        width: 30px;
        height: 3px;
        background-color: var(--accent-gold);
    }

    .shop-title::before {
        left: 0;
    }

    .shop-title::after {
        right: 0;
    }

    .shop-description {
        font-size: 0.7rem;
    }

    .shop-description p {
        border-radius: 15px;
    }

    /* --- Shop Sort --- */
    .shop-sort .woocommerce-ordering .orderby {
        height: 30px;
        padding: 0 20px 0 10px;
        border-radius: 10px;
        background-color: var(--white);
        border: var(--accent-gold) 1.5px solid;
    }

    /* --- Product Grid --- */
    /* WooCommerceの標準クラスを上書き */
    .shop-main {
        padding-bottom: 50px !important;
    }

    /* 商品カード（トップのアイテムデザインを継承） */
    .shop-main .product {
        background: #fff;
        border: 5px solid var(--light-teal);
        border-radius: 20px;
        overflow: hidden;
        transition: transform 0.3s;
        text-align: center;
        width: 100% !important;
        /* WCの%指定を解除 */
        margin: 0 !important;
    }


    .shop-main .product:hover {
        transform: translateY(-5px);
        border: 5px solid var(--accent-gold);
    }

    .shop-main .product img {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        margin: 0 !important;
    }

    /* 商品タイトルと価格 */
    .woocommerce-loop-product__title {
        font-size: 0.9rem !important;
        padding: 5px !important;
        margin: 0 !important;
    }

    .price {
        font-size: 0.8rem !important;
        margin-bottom: 5px !important;
    }

    /* カートへ入れるボタン */
    .add_to_cart_button {
        border-radius: 8px !important;
        padding: 5px !important;
        font-size: 0.6rem !important;
        margin-top: 0 !important;
        margin-bottom: 10px !important;
    }

    .mini-feature {
        width: 100%;
        flex-direction: column;
        justify-content: center;
    }

    .mini-feature-info {
        width: 100%;
    }

    .mini-feature-info p {
        height: fit-content !important;
    }

    .mini-feature-info a {
        margin-top: 5px;
    }

}


@media (max-width: 768px) {
    .shop-main .products {
        grid-template-columns: repeat(2, 1fr) !important;
        /* スマホは2列（3列だとボタンが崩れるため） */
        gap: 10px !important;
    }

    .shop-title {
        font-size: 1.5rem;
        padding: 0 40px;
    }
}

/* --- Single Product Layout --- */
.single-product {
    padding: 20px 0;
}

/* 商品タイトル */
.product-title {
    font-size: 1.8rem;
    color: var(--text-brown);
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px dotted var(--light-teal);
}

/* メインコンテンツ（画像と情報の横並び） */
.product-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 左：画像 / 右：詳細 */
    gap: 40px;
    margin-bottom: 60px;
    align-items: start;
    background-color: var(--bg-light-yellow);
    padding: 20px;
    border-radius: 20px;

}

/* メイン画像 */
.product-content>img {
    width: 100%;
    height: auto;
    border-radius: 30px;
    border: 3px solid var(--light-teal);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

/* 商品情報まとめ */
.product-summary {
    color: var(--text-brown);
    display: flex;
    flex-direction: column;
}

/* 価格 */
.product-summary .price {
    font-size: 1.8rem !important;
    color: var(--primary-teal) !important;
    font-weight: bold;
    margin-bottom: 20px !important;
    display: block;
}

/* 抜粋テキスト */
.woocommerce-product-details__short-description {
    color: var(--text-brown);
    line-height: 1.8;
    margin-bottom: 30px;
}

/* カートエリア（数量とボタン） */
.cart {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 30px;
    border-radius: 20px;
}

/* 数量入力 */
.quantity input {
    height: 45px;
    border: 2px solid var(--primary-teal);
    border-radius: 10px;
    padding: 5px;
    text-align: center;
    color: var(--text-brown);
}

/* カートボタン */
.single_add_to_cart_button {
    background-color: var(--accent-gold) !important;
    color: #fff !important;
    padding: 12px 40px !important;
    border-radius: 30px !important;
    font-size: 1.1rem !important;
    font-weight: bold !important;
    transition: all 0.3s !important;
    border: none !important;
}

.single_add_to_cart_button:hover {
    background-color: var(--primary-teal) !important;
    transform: translateY(-2px);
}

/* SKU/カテゴリー情報 */
.product_meta {
    font-size: 0.85rem;
    color: #888;
    border-top: 1px solid var(--light-teal);
    padding-top: 20px;
}

.product_meta span {
    display: block;
    margin-bottom: 5px;
}

.product_meta a {
    color: var(--primary-teal);
    text-decoration: none;
}

/* --- 下部ギャラリー画像（カルーセル風） --- */
.product-images {
    margin-bottom: 60px;
    width: 100%;
    overflow: hidden;
    /* はみ出しを隠す */
}

.woocommerce-product-gallery__wrapper {
    display: flex;
    /* gridからflexに変更 */
    flex-wrap: nowrap;
    /* ★重要：絶対に折り返さない（横一列にする） */
    gap: 15px;
    padding-bottom: 15px;
    /* スクロールバー用の余白 */

    /* ★重要：横スクロールを有効にする */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* スマホでスルスル動くように */
}

/* スクロールバーを可愛く（任意） */
.woocommerce-product-gallery__wrapper::-webkit-scrollbar {
    height: 6px;
    /* 縦スクロールバーはwidthだが、横はheight */
}

.woocommerce-product-gallery__wrapper::-webkit-scrollbar-thumb {
    background: var(--light-teal);
    border-radius: 10px;
}

/* 各画像コンテナの設定 */
.woocommerce-product-gallery__image {
    flex: 0 0 calc(33.333% - 10px);
    width: calc(33.333% - 10px);
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 15px;
    border: 3px solid var(--light-teal);
    transition: all 0.3s;
}

.woocommerce-product-gallery__image:hover {
    border: var(--accent-gold) 3px solid;
}

/* 実際の画像 */
.woocommerce-product-gallery__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: var(--light-teal);
    margin: 0 !important;
}

/* --- レスポンシブ（スマホ） --- */
@media (max-width: 768px) {
    .woocommerce-product-gallery__image {
        /* スマホでは2つ半くらい見せる（スライドできることを伝える） */
        flex: 0 0 45%;
        width: 45%;
    }
}

/* --- 詳細タブ --- */
.product-tabs {
    background: var(--white);
    padding: 40px;
    border-radius: 30px;
    border: 2px solid var(--light-teal);
}

.wc-tabs {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 20px;
    border-bottom: 2px solid var(--bg-light-yellow);
    margin-bottom: 30px;
}

.wc-tabs li a {
    text-decoration: none;
    font-weight: bold;
    color: #ccc;
    padding: 10px 20px;
    display: inline-block;
}

.wc-tabs li.active a {
    color: var(--primary-teal);
    border-bottom: 3px solid var(--primary-teal);
}

.woocommerce-Tabs-panel {
    color: var(--text-brown);
}

.woocommerce-Tabs-panel h2 {
    color: var(--primary-teal);
}

.isSelectedEnd {
    padding-bottom: 5px;
    border-bottom: dotted 1px var(--light-teal);
    margin-bottom: 5px;
}

.woocommerce-Reviews #comments {
    margin-bottom: 15px !important;
}

#review_form_wrapper .comment-reply-title {
    background-color: var(--bg-light-yellow);
    padding: 3px;
    margin: 15px !important;
}

.woocommerce-Reviews .comment-form {
    margin-top: 15px !important;
}

.stars a::before {
    color: var(--primary-teal) !important;

}

.comment-form-comment textarea {
    border: var(--primary-teal) 1px solid !important;
}

.woocommerce-Reviews .form-submit {
    text-align: center !important;
}

.woocommerce-Reviews .submit {
    background-color: var(--primary-teal) !important;
    color: var(--white) !important;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .product-content {
        grid-template-columns: 1fr;
        /* スマホは縦並び */
        gap: 20px;
        margin-bottom: 20px;
    }

    .product-images {
        margin-bottom: 10px;
    }


    .cart {
        margin: 30px 0;
        padding: 10px;
    }

    .quantity {
        display: none;
    }

    .cart button {
        border-radius: 15px !important;
        padding: 15px 10px !important;
    }

    .product-title {
        font-size: 1.5rem;
        padding-bottom: 0;
    }

    .product-summary {
        color: var(--text-brown);
        display: flex;
        flex-direction: column;
    }

    /* 価格 */
    .product-summary .price {
        font-size: 1.5rem !important;
        color: var(--primary-teal) !important;
        font-weight: bold;
        margin-bottom: 20px !important;
        display: block;
    }

    /* 抜粋テキスト */
    .woocommerce-product-details__short-description {
        color: var(--text-brown);
        font-size: 0.8rem;
        line-height: 1.8;
        margin-bottom: 15px;
    }

    .stock {
        font-size: 0.8rem;
    }

    .product_meta {
        font-size: 0.6rem;
    }

    .product-tabs {
        padding: 20px;
        border-radius: 15px;
    }

    .wc-tabs {
        margin-bottom: 20px;
    }

    .woocommerce-Tabs-panel h2 {
        font-size: 1.3rem;
    }

    .isSelectedEnd {
        font-size: 0.8rem !important;
        padding-bottom: 5px;
        border-bottom: dotted 1px var(--light-teal);
        margin-bottom: 5px;
    }


    #review_form_wrapper .comment-reply-title {
        font-size: 0.8rem !important;
    }

}

/* --- Notice Single Layout --- */
.notice-single {
    margin-top: calc(var(--header-height) + 50px) !important;
    margin-bottom: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* タイトル周り */
.notice-single h1 {
    font-size: 2rem;
    line-height: 1.4;
    color: var(--text-brown) !important;
    /* 変数に合わせて調整 */
    text-align: center;
    margin-bottom: 10px !important;
}

.notice-single>p {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    margin-bottom: 40px !important;
}

/* アイキャッチ画像  */
.notice-single #notice-thumb {
    border-radius: 15px;
    text-align: center;
    width: 40%;
    height: fit-content;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px !important;
}

.notice-single #notice-thumb img {
    width: 100% !important;
    height: auto;
    display: block;
}

/* 本文エリア */
.notice-content {
    background: #fff;
    width: 80%;
    padding: 40px;
    border-radius: 30px;
    border: 1px solid var(--light-teal);
    margin-bottom: 50px;
    font-size: 1.05rem;
}

/* 本文内の見出しなどを装飾 */
.notice-content h2 {
    color: var(--primary-teal);
    border-left: 4px solid var(--accent-gold);
    padding-left: 15px;
    margin: 40px 0 20px;
}

/* --- 特集/ショップへの誘導ボタン --- */
.notice-link-button {
    text-align: center;
    margin: 60px 0;
}

.notice-btn {
    display: inline-block;
    background: var(--accent-gold);
    color: #fff !important;
    padding: 18px 60px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.notice-btn:hover {
    background-color: var(--text-brown);
    transform: translateY(-5px);
}

/* --- カテゴリータグ --- */
.notice-single .arimeda_notice_category {
    width: 80%;
    text-align: center;
}

.notice-single a[rel="tag"] {
    display: inline-block;
    background: var(--light-teal);
    color: var(--primary-teal);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    text-decoration: none;
    margin: 0 5px;
    transition: 0.3s;
}

.notice-single a[rel="tag"]:hover {
    background: var(--primary-teal);
    color: #fff;
}

/* --- 前後記事ナビゲーション（カード形式） --- */
.notice-nav {
    width: 80%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 80px;
    border-top: 2px dotted var(--light-teal);
    padding-top: 40px;
}

.notice-nav-card {
    background: var(--bg-light-yellow);
    padding: 20px;
    border-radius: 20px;
    text-decoration: none;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.notice-nav-card.prev {
    text-align: left;
}

.notice-nav-card.next {
    text-align: right;
}

.notice-nav-card:hover {
    background: var(--light-teal);
    transform: translateY(-5px);
}

.nav-label {
    font-size: 0.75rem;
    color: var(--primary-teal);
    margin-bottom: 5px;
    font-weight: bold;
}

.nav-title {
    font-size: 0.95rem;
    color: var(--text-brown);
    font-weight: bold;
    /* 2行以上は省略 */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .notice-content {
        width: 90%;
        border-radius: 20px;
        padding: 15px;
        margin-bottom: 15px;
    }

    .notice-single #notice-thumb {
        border-radius: 10px;
        text-align: center;
        margin: 0 15px;
        width: 90%;
        height: fit-content;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    }

    .notice-nav {
        grid-template-columns: 1fr;
    }

    .notice-link-button {
        margin: 10px;
    }

    .notice-btn {
        width: 100%;
        box-sizing: border-box;
        padding: 10px 20px;
        border-radius: 20px;
    }

    .notice-single>p {
        margin-top: 10px !important;
    }

    .notice-nav {
        margin-top: 20px;
    }
}



/* ============================================================
   Privacy Policy Page Styles
   ============================================================ */

.privacy-policy-inner {
    max-width: 90%;
    /* 読みやすい横幅に制限 */
    margin: calc(var(--header-height) + 40px) auto 60px;
    padding: 0 20px;
    color: var(--text-brown);
    line-height: 1.8;
}

/* ページタイトル */
.privacy-policy-title {
    text-align: center;
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.privacy-policy-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-gold);
    border-radius: 2px;
}

/* 各セクションの塊 */
.pp-section {
    margin-bottom: 40px;
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--bg-light-yellow);
    /* 控えめな境界線 */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

/* セクション見出し（2. 個人情報の... など） */
.pp-section h2 {
    font-size: 1.25rem;
    color: var(--primary-teal);
    border-left: 5px solid var(--accent-gold);
    padding-left: 15px;
    margin-bottom: 20px;
    line-height: 1.4;
}

/* 本文テキスト */
.pp-section p {
    margin-bottom: 15px;
}

/* 箇条書きリスト */
.pp-section ul {
    margin: 0 0 15px 20px;
    list-style: none;
}

.pp-section ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
}

.pp-section ul li::before {
    content: '✦';
    /* トルコ雑貨風に星のような記号 */
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-size: 0.8rem;
}

/* お問い合わせ情報の強調 */
.pp-section strong {
    color: var(--primary-teal);
}

/* --- アニメーション効果 (is-fadein) --- */
.is-fadein {
    opacity: 0;
    transform: translateY(20px);
    animation: ppFadeIn 0.8s ease forwards;
}

/* 各セクションを少しずつ遅れて表示させる（1〜7番） */
.pp-section:nth-child(1) {
    animation-delay: 0.1s;
}

.pp-section:nth-child(2) {
    animation-delay: 0.2s;
}

.pp-section:nth-child(3) {
    animation-delay: 0.3s;
}

.pp-section:nth-child(4) {
    animation-delay: 0.4s;
}

.pp-section:nth-child(5) {
    animation-delay: 0.5s;
}

.pp-section:nth-child(6) {
    animation-delay: 0.6s;
}

.pp-section:nth-child(7) {
    animation-delay: 0.7s;
}

@keyframes ppFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- モバイル対応 --- */
@media (max-width: 768px) {
    .privacy-policy-inner {
        margin: 40px auto;
        padding: 0;
    }

    .privacy-policy-inner .sub__inner {
        padding: 5px !important;
    }

    .privacy-policy-title {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }

    .privacy-policy-title::after {
        bottom: 5px;
    }

    .pp-section {
        padding: 20px;
        margin: 5px;
    }

    .pp-section h2 {
        font-size: 0.8rem;
    }

    .pp-section>* {
        font-size: 0.7rem;
        line-height: 0.8rem;
    }

    .pp-section ul {
        margin: 0;
    }
}

/* ============================================================
   Return Policy Page Styles
   ============================================================ */

.return-policy {
    max-width: 90%;
    /* 読みやすい横幅に制限 */
    margin: calc(var(--header-height) + 40px) auto 60px;
    padding: 0 20px;
    color: var(--text-brown);
    line-height: 1.8;
}

/* ページタイトル */
.return-policy-title {
    text-align: center;
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.return-policy-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-gold);
    border-radius: 2px;
}

/* 各セクションの塊 */
.rp-section,
.rp-info-block {
    margin-bottom: 40px;
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--bg-light-yellow);
    /* 控えめな境界線 */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

/* セクション見出し（2. 個人情報の... など） */
.rp-section h2 {
    font-size: 1.25rem;
    color: var(--primary-teal);
    border-left: 5px solid var(--accent-gold);
    padding-left: 15px;
    margin-bottom: 20px;
    line-height: 1.4;
}

/* 本文テキスト */
.rp-section p {
    margin-bottom: 15px;
}

/* お問い合わせ情報の強調 */
.rp-info-block strong {
    color: var(--primary-teal);
}

/* --- アニメーション効果 (is-fadein) --- */
.is-fadein {
    opacity: 0;
    transform: translateY(20px);
    animation: ppFadeIn 0.8s ease forwards;
}

@keyframes ppFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- モバイル対応 --- */
@media (max-width: 768px) {
    .return-policy {
        margin: 40px auto;
        padding: 0;
    }

    .return-policy .sub__inner {
        padding: 5px !important;
    }

    .return-policy-title {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }

    .return-policy-title::after {
        bottom: 5px;
    }

    .rp-section {
        padding: 20px;
        margin: 5px;
    }

    .rp-section h2 {
        font-size: 0.8rem;
    }

    .rp-section>* {
        font-size: 0.7rem;
        line-height: 0.8rem;
    }

    .rp-info-block p {
        font-size: 0.7rem;
        line-height: 0.85rem;
        margin: 10px 0;
    }
}

/* ============================================================
   お問い合わせページ用スタイリング（エキゾチック・モダン）
   ============================================================ */

/* ページ全体の背景と余白のベース（ヘッダーのfixed分の高さを考慮） */
.contact-page-wrapper {
    padding: 160px 4% 100px;
    background-color: var(--primary-teal); /* ヘッダーから繋がる美しいティール */
    min-height: 100vh;
    box-sizing: border-box;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

/* ヘッダー・タイトルの装飾 */
.contact-header-box {
    text-align: center;
    color: var(--white);
    margin-bottom: 40px;
}

.oriental-deco-top {
    margin-bottom: 10px;
}
.oriental-deco-top .moon-main {
    display: inline-block;
    margin: 0 12px;
    vertical-align: middle;
    
    /* ↓【追加】SVGの大きさをここで自由に調整できます */
    width: 32px;
    height: 32px;
    
    /* ↓【追加】SVGの色をサイトのゴールド（--accent-gold）に指定 */
    color: var(--accent-gold); 
    
    /* 前回の浮遊アニメーションはそのまま引き継ぎ */
    animation: floatAnimation 3s ease-in-out infinite; 
}

/* SVGの中のパス（線や塗り）にCSSの色を連動させる記述 */
.oriental-deco-top .moon-main svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: currentColor; /* これを入れておくことで上の color: が効きます */
}
.oriental-deco-top .star-mini {
    font-size: 0.8rem;
    color: var(--accent-gold);
    opacity: 0.7;
    vertical-align: super;
}

.contact-title {
    font-family: var(--wp--preset--font-family--cardo), serif;
    font-size: 3rem;
    font-weight: 400;
    margin: 0;
    letter-spacing: 0.05em;
    color: var(--accent-gold);
}

.contact-subtitle {
    font-size: 0.9rem;
    margin: 5px 0 20px;
    letter-spacing: 0.2em;
    opacity: 0.9;
}

.contact-lead {
    font-size: 0.95rem;
    line-height: 1.8;
    opacity: 0.85;
}

/* メインフォームのコンテナ（トップページの雲形状と台座を再現） */
.contact-form-card {
    background-color: rgba(255, 255, 255, 0.98); /* ほんのり高級感のある白 */
    border: 2px solid var(--accent-gold); /* 繊細なゴールドの縁取り */
    padding: 50px 60px;
    /* トップページの滑らかな雲のような形状を再現 */
    border-radius: 40px 10px 40px 10px; 
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    position: relative;
}

/* モバイル対応でのパディング調整 */
@media screen and (max-width: 600px) {
    .contact-page-wrapper {
        padding-top: 130px;
    }
    .contact-form-card {
        padding: 35px 25px;
        border-radius: 25px 10px 25px 10px;
    }
    .contact-title {
        font-size: 2.3rem;
    }
}

/* ============================================================
   WPForms 内部要素のオーバーライド（上書き）
   ============================================================ */

/* ラベル（氏名、Email、本文などの文字） */
div.wpforms-container .wpforms-form .wpforms-field-label {
    font-weight: 600;
    color: #622d18 !important; /* 深みのあるブラウン */
    font-size: 0.95rem;
    margin-bottom: 8px;
    display: block;
}

/* 必須マーク（*） */
div.wpforms-container .wpforms-form .wpforms-required-label {
    color: #b32d2e !important;
    margin-left: 4px;
}

/* 入力フィールド全般（テキスト・メール・テキストエリア） */
div.wpforms-container .wpforms-form input[type=text],
div.wpforms-container .wpforms-form input[type=email],
div.wpforms-container .wpforms-form textarea {
    width: 100% !important;
    background-color: #fff !important;
    border: 1px solid rgba(233, 195, 93, 0.5) !important; /* 薄いゴールドの境界線 */
    border-radius: 6px !important;
    padding: 12px 16px !important;
    font-size: 1rem !important;
    color: #2c3338 !important;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.02);
    box-sizing: border-box;
}

/* 入力フィールド フォーカス時（クリックされた時） */
div.wpforms-container .wpforms-form input[type=text]:focus,
div.wpforms-container .wpforms-form input[type=email]:focus,
div.wpforms-container .wpforms-form textarea:focus {
    border-color: var(--accent-gold) !important;
    box-shadow: 0 0 0 3px rgba(233, 195, 93, 0.2) !important;
    outline: none;
}

/* テキストエリア（本文）の高さ */
div.wpforms-container .wpforms-form textarea {
    min-height: 180px !important;
    resize: vertical;
}

/* 送信ボタンのコンテナ */
div.wpforms-container .wpforms-form .wpforms-submit-container {
    text-align: center;
    margin-top: 35px;
    padding: 0;
}

/* 送信ボタン本体（エキゾチック・ラグジュアリーなボタンに変身） */
div.wpforms-container .wpforms-form button.wpforms-submit {
    background: var(--primary-teal) !important; /* ティール背景 */
    color: var(--white) !important;
    border: 2px solid var(--accent-gold) !important; /* ゴールドの二重線エフェクト風 */
    font-size: 1.1rem !important;
    font-weight: bold;
    letter-spacing: 0.2em;
    padding: 0 50px !important;
    height: 54px !important;
    line-height: 50px !important;
    border-radius: 50px !important; /* 丸型ボタン */
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease !important;
    display: inline-block;
}

/* 送信ボタン ホバー時 */
div.wpforms-container .wpforms-form button.wpforms-submit:hover {
    background: var(--white) !important;
    color: var(--primary-teal) !important;
    border-color: var(--primary-teal) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* スパム対策ハニーポットフィールド（本文 Email 氏名 の空コンテナ）の完全非表示化 */
#wpforms-276-field_4-container {
    position: absolute !important;
    overflow: hidden !important;
    display: inline !important;
    height: 1px !important;
    width: 1px !important;
    z-index: -1000 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* アニメーション用キーフレーム */
@keyframes floatAnimation {
    0% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
    100% { transform: translateY(0); }
}

/* 売り切れた商品の枠を、リボンを置くための基準位置にする */
.product-is-soldout {
    position: relative;
    overflow: hidden; /* 枠からはみ出たリボンを綺麗にカット */
}

/* 画像のトーンを少しだけ暗くして売約済み感を出す */
.product-is-soldout {
}

.product-is-soldout::after{
	content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(77, 177, 179, 0.3); /* #4db1b3 を透明度0.3で重ねる */
    z-index: 5;                               /* 画像より上で、リボン（z-index: 10）より下の位置 */
    pointer-events: none;
}

/* 左上の斜めリボン本体の装飾 */
.product-is-soldout::before {
    content: "SOLD OUT";
    position: absolute;
    top: 0px;
    left: 0px;
    background-color: var(--accent-gold);
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 0.1em;
    text-align: center;
    line-height: 24px;
    width: 100%;
    height: fit-content;
    padding: 10px 0;
    transform: rotate(0deg);
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

/* 売り切れた商品のボタンをグレーアウトして押せなくする */
a.button.product_type_simple.add_to_cart_button.added {
    background-color: #cccccc !important;
    color: #ffffff !important;
}

/* ついでに、エラーメッセージ（ul.woocommerce-error）の中のボタンを消したい場合のCSS */
/* もし右側の「お買い物カゴを表示」ボタンが不要（文字だけにしたい）なら、下のコメントアウトを解除してください */
.woocommerce-error .wc-forward {
    display: none !important;
}
