/* ------------------------------
  0. リセット
------------------------------ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ------------------------------
  1. 基本設定
------------------------------ */
body {
    font-family: 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Noto Sans JP', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ------------------------------
  2. レイアウト
------------------------------ */
.container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
}

/* ------------------------------
  3. ヘッダー
------------------------------ */
.site-header {
    background: #fff;
    border-bottom: 1px solid #C4C4C4;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header {
    transition: transform 0.3s ease;
}

.site-header.hide-header {
    transform: translateY(-100%);
}

.site-header.transparent {
    background-color: transparent;
}

.site-header.scrolled,
.site-header.solid {
    background-color: #fff;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: none;
    padding: 1rem 30px;
}

.site-logo img {
    height: 40px;
}

.global-nav .nav-list {
    list-style: none;
    display: flex;
    gap: 2rem;
    font-weight: 700;
}

.global-nav .nav-list li a {
    font-size: 18px;
}

.global-nav .nav-list .current-menu-item a {
    border-bottom: 1px solid #333;
    padding-bottom: 8px;
}

/* --- 共通ボタンスタイル --- */
.header-cta a {
    display: inline-block;
    font-size: 18px;
    padding: 8px 40px;
    border-radius: 9999px;
    font-weight: bold;
    text-decoration: none;
    border: 1px solid;
    transition: all 0.3s ease;
    margin-left: 20px;
}

/* --- 未ログイン時 --- */
.header-cta a.register {
    color: #788A9B;
    background-color: #ffffff;
    border-color: #788A9B;
}

.header-cta a.login {
    color: #ffffff;
    background-color: #788A9B;
    border-color: #788A9B;
}

/* --- ログイン時 --- */
.header-cta a.logout {
    color: #FA665A;
    background-color: #ffffff;
    border-color: #FA665A;
}

.header-cta a.mypage {
    color: #ffffff;
    background-color: #FA665A;
    border-color: #FA665A;
}

/* ------------------------------
  4. フッター
------------------------------ */
.breadcrumb-area {
    background-color: #fff;
    border-top: 1px solid #E6E6E6;
}

.breadcrumb {
    font-size: 14px;
    padding: 6px 15px;
    color: #666;
}

.breadcrumb a {
    color: #0000EE;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.footer-top-bg {
    background-color: #fff;
    width: 100%;
    border-top: 1px solid #E6E6E6;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    padding: 3rem 1rem;
    flex-wrap: wrap;
    /* SP対応 */
}

.footer-center,
.footer-right {
    flex: 1;
}

.footer-left {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    flex: 0 0 440px;
}

.footer-left .footer-logo {
    height: auto;
    /* 比率維持のまま高さ調整したいときはこっち */
    max-height: 40px;
    margin-bottom: 1rem;
}

.footer-left .footer-description {
    font-size: 16px;
    color: #333333;
    line-height: 1.6;
    max-width: 310px;
}

.footer-center,
.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* 見出しスタイル */
.footer-heading {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    /* 見出しとメニューの間 */
    color: #333;
}

/* メニューリスト */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 各メニューリンク */
.footer-menu li {
    margin-bottom: 4px;
}

.footer-menu li a {
    font-size: 18px;
    color: #333;
    text-decoration: none;
}

.footer-menu li a:hover {
    text-decoration: underline;
}

.footer-bottom-bg {
    background-color: #FAFAFA;
    padding: 1.5rem 1rem;
    border-top: 1px solid #E6E6E6;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    /* SP対応 */
}


.footer-bottom-left {
    display: flex;
    flex-direction: column;
    order: 1;
}

.footer-bottom-left .copyright {
    font-size: 18px;
    color: #333;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-bottom-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-bottom-menu li a {
    font-size: 18px;
    color: #0000EE;
    text-decoration: underline;
}

.footer-bottom-menu li a:hover {
    text-decoration: underline;
}

.footer-bottom-right {
    display: flex;
    gap: 1rem;
    align-items: center;
    order: 2;
}

.sns-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #fff;
    border: 1px solid #E6E6E6;
    transition: background-color 0.3s ease;
}

.sns-icon:hover {
    background-color: #F0F0F0;
}

.sns-icon img {
    width: 34px;
    height: 34px;
    display: block;
}

/* ------------------------------
  5. SPメニュー
------------------------------ */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 1101;
    position: relative;
}

.menu-toggle .bar {
    width: 28px;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
    margin: 4px 0;
}

.menu-toggle.active .bar {
    margin: -2px 0px;
    width: 34px;
    height: 4px;
}

/* ✕の変形（中央交差） */
.menu-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg);
}

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

.menu-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg);
}

.sp-nav-list {
    list-style: none;
    margin-bottom: 1rem;
}

.sp-nav-list li a {
    display: block;
    font-size: 18px;
    color: #333;
    padding: 1rem 0;
    border-bottom: 1px solid #C4C4C4;
    text-align: left;
    font-weight: 700;
}

.sp-cta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 2rem;
}

.sp-cta a {
    flex: 1;
    text-align: center;
    font-weight: bold;
    padding: 12px;
    border-radius: 9999px;
    font-size: 16px;
    text-decoration: none;
    border: 1px solid;
    transition: background 0.3s ease;
}

/* --- ログイン（紺系） --- */
.sp-cta a[href*="my-account"].login {
    color: #ffffff;
    background-color: #788A9B;
    border-color: #788A9B;
}

/* --- 会員登録（白地＋紺枠） --- */
.sp-cta a[href*="register"] {
    color: #788A9B;
    background-color: #fff;
    border-color: #788A9B;
}

/* --- マイページ（白地＋赤枠） --- */
.sp-cta a[href*="my-account"] {
    color: #fff;
    background-color: #FA665A;
    border-color: #FA665A;
}

/* --- ログアウト（赤地＋白文字） --- */
.sp-cta a[href*="logout"] {
    color: #FA665A;
    background-color: #fff;
    border-color: #FA665A;
}

/* ------------------------------
  6. 広告表示枠
------------------------------ */

.ad-block {
    background: #fff;
    text-align: center;
    margin: 0px auto 60px;
    max-width: 1080px;
}

.character-ad a img {
  display: inline-block;
}

/* ------------------------------
  7. 決済フォームのページ調整
------------------------------ */

body.woocommerce-checkout .static-page__content h2 {
    background-color: transparent;
}

body.woocommerce-checkout .static-page__content p {
    font-size: 16px;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout-contact-information-block {
    margin-bottom: 10px;
}

body.woocommerce-checkout .wc-block-components-button.wc-block-components-checkout-place-order-button.contained {
    background-color: #788A9B;
    border: 1px solid #788A9B;
    border-radius: 4px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    /* boldでもOKだが数値で指定するのが確実 */
    padding: 0.75em 1.5em;
    transition: background-color 0.2s ease;
}

body.woocommerce-checkout .wc-block-components-button.wc-block-components-checkout-place-order-button.contained:hover {
    background-color: #5f7080;
    border-color: #5f7080;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block,
body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-totals-block,
body.woocommerce-checkout .wc-block-components-totals-wrapper {
    border-color: #788A9B;
}

body.woocommerce-checkout .wc-block-components-product-metadata__description p {
    font-size: 14px;
}

/* ------------------------------
  8. レスポンシブ
------------------------------ */
@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }

    .sp-center-auth {
        display: none;
    }

    .sp-menu {
        display: none;
    }

    .sp-none {
        display: none;
    }
}

@media (max-width: 768px) {
    .global-nav {
        display: none;
    }

    .menu-toggle {
        display: flex !important;
    }

    .header-inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 15px;
    }

    .site-logo img {
        height: 26px;
    }

    .global-nav,
    .header-cta {
        display: none;
    }

    .admin-bar .sp-menu {
        top: 32px;
        /* WP管理バーの高さ */
        height: calc(100vh - 32px);
    }

    .sp-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(224, 248, 255, 0.95);
        /* ← 薄めの水色＋透け感 */
        z-index: 1000;
        padding: 4rem 2rem;
        display: none;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        backdrop-filter: blur(4px);
        /* 背景を少しぼかして柔らかさUP（任意） */
    }

    .sp-menu.active {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }

    .sp-center-auth {
        position: absolute;
        right: 60px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 16px;
        font-weight: bold;
    }

    .sp-center-auth a {
        display: inline-block;
        padding: 6px 26px;
        border-radius: 20px;
        font-size: 16px;
        text-align: center;
        text-decoration: none;
        font-weight: bold;
        border: 1px solid;
        margin-left: 10px;
    }

    .sp-center-auth a[href*="my-account"] {
        color: #fff;
        background-color: #FA665A;
        border-color: #FA665A;
    }

    .sp-center-auth a.login[href*="my-account"] {
        color: #fff;
        background-color: #788A9B;
        border-color: #788A9B;
    }

    .footer-top {
        flex-direction: column;
    }

    .footer-left {
        flex: 1;
    }

    .footer-bottom-left .copyright {
        font-size: 14px;
    }

    .footer-bottom-menu {
        gap: 0.8rem;
        margin-bottom: 20px;
    }

    .footer-bottom-menu li a {
        font-size: 15px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .ad-block {
        margin: 0px 15px 40px;
    }
      .checkout-grid {
    grid-template-columns: 1fr;
  }
  .checkout-sidebar {
    order: -1;
    margin-bottom: 32px;
  }
  #order_review_sticky {
    position: relative;
    top: unset;
  }
}