/*
Theme Name: Welcart Basic Child
Template: welcart_basic
Theme URI: https://www.welcart.com/
Description: Welcart Basic 用の子テーマ
Author: オレンジホールディング株式会社
Version: 1.2.1
*/

.swiper {
    width: 100%;
    height: auto;
    margin-bottom: 40px; /* スライダーと下部コンテンツの間に余白を追加 */
    /* 矢印・ページ送りの色を見出しアクセント色（カスタマイザー）に合わせる（Swiper標準は青） */
    --swiper-theme-color: var(--wcc-accent, #0066cc);
    --swiper-navigation-size: 36px;
    --swiper-pagination-bullet-inactive-color: #ffffff;
    --swiper-pagination-bullet-inactive-opacity: 0.7;
}

.swiper-slide picture,
.swiper-slide img {
    display: block; /* picture要素とimg要素の余白をなくす */
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* 矢印：写真の上でも見えるよう白い丸の背景を付ける */
.swiper .swiper-button-prev,
.swiper .swiper-button-next {
    width: 44px;
    height: 44px;
    margin-top: -22px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: background-color 0.2s ease;
}
.swiper .swiper-button-prev::after,
.swiper .swiper-button-next::after {
    font-size: 16px;
    font-weight: bold;
}
.swiper .swiper-button-prev:hover,
.swiper .swiper-button-next:hover {
    background-color: #ffffff;
}
.swiper .swiper-pagination-bullet {
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.4);
}
/* スライドが1枚だけの場合は矢印・ページ送りを出さない（functions.php / wc_item_single.php のスクリプトが付与） */
.swiper.is-single .swiper-button-prev,
.swiper.is-single .swiper-button-next,
.swiper.is-single .swiper-pagination {
    display: none;
}
@media screen and (max-width: 767px) {
    .swiper {
        margin-bottom: 24px;
    }
    .swiper .swiper-button-prev,
    .swiper .swiper-button-next {
        width: 32px;
        height: 32px;
        margin-top: -16px;
    }
    .swiper .swiper-button-prev::after,
    .swiper .swiper-button-next::after {
        font-size: 12px;
    }
}

/* ドロップダウンメニューをお洒落にするスタイル（優先度強化） */
body #masthead .main-navigation ul.sub-menu {
    box-shadow: 0 5px 20px rgba(0,0,0,0.15) !important;
    border: none !important;
    border-radius: 0 0 5px 5px !important;
    padding: 10px 0 !important;
}
body #masthead .main-navigation ul.sub-menu li a {
    padding: 12px 20px !important;
    transition: background-color 0.2s ease, opacity 0.2s ease !important;
}
/* ドロップダウン内のリンクホバー時に少しハイライト
   （以前は白の半透明で、白いドロップダウン背景では変化が見えなかったため黒の半透明に変更） */
body #masthead .main-navigation ul.sub-menu li a:hover {
    background-color: rgba(0, 0, 0, 0.06) !important;
}

/* =========================================
   ロゴ画像のレスポンシブサイズ調整（幅はカスタマイザーから出力）
   ========================================= */
.custom-logo-link img {
    max-width: 100%;
    height: auto;
}

/* =========================================
   見出し (H2, H3, H4) の基本スタイル（色はカスタマイザーから出力）
   ========================================= */
/* 記事本文や固定ページなどのメインエリア内の見出しに適用 */
#main .entry-content h2,
#main #content h2.entry-title {
    font-size: 1.5em;
    padding: 0.8em;
    border-left: 5px solid;
    margin-bottom: 1em;
    letter-spacing: 0.05em; /* 文字の重なりを解消するための文字間隔 */
    line-height: 1.5; /* 行高を整える */
    box-sizing: border-box; /* パディングによるレイアウト崩れを防止 */
}

#main .entry-content h3 {
    font-size: 1.3em;
    padding-bottom: 0.5em;
    border-bottom: 2px solid;
    margin-bottom: 1em;
}

#main .entry-content h4 {
    font-size: 1.1em;
    padding-left: 0.5em;
    border-left: 3px solid #666666; /* H4のアクセント色は固定 */
    margin-bottom: 1em;
}

/* =========================================
   Welcart 商品詳細ページ：オプション入力欄の最適化
   ========================================= */
.item_option {
    width: 100%;
    margin-bottom: 25px;
    border-collapse: collapse;
}
.item_option th {
    background-color: #f7f7f7;
    padding: 15px 12px;
    border: 1px solid #e5e5e5;
    text-align: left;
    width: 35%;
    font-weight: bold;
    font-size: 0.9em;
    vertical-align: middle;
}
.item_option td {
    padding: 12px;
    border: 1px solid #e5e5e5;
    vertical-align: middle;
}
.item_option input[type="text"],
.item_option textarea,
.item_option select {
    width: 100%;
    padding: 12px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1em;
    background-color: #ffffff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
/* 入力中のフォーカス状態を強調 */
.item_option input[type="text"]:focus,
.item_option textarea:focus,
.item_option select:focus {
    border-color: #0066cc;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 102, 204, 0.2);
}
/* スマホ表示時の調整（縦積みにする） */
@media screen and (max-width: 767px) {
    .item_option,
    .item_option tbody,
    .item_option tr {
        display: block;
        width: 100%;
    }
    .item_option th,
    .item_option td {
        display: block;
        width: 100%;
        box-sizing: border-box; /* padding・枠線を含めて100%にし、画面からはみ出さないようにする */
    }
    .item_option th {
        border-bottom: none;
    }
    .item_option tr + tr th {
        border-top: none;
    }
    /* iPhone で入力欄をタップした時に画面が拡大されないよう 16px */
    .item_option input[type="text"],
    .item_option textarea,
    .item_option select {
        font-size: 16px;
    }
}
/* =========================================
   Welcart 商品画像（詳細・ウィジェット）：サイズ統一とカット防止
   ========================================= */
/* スライダー（use_swiper: yes）時の画像枠 */
.swiper.item-swiper {
    margin-bottom: 20px;
}
.item-swiper .swiper-slide {
    aspect-ratio: 1 / 1;
    background-color: #f7f7f7;
    position: relative;
    overflow: hidden;
}
.item-swiper .swiper-slide a {
    display: block;
    width: 100%;
    height: 100%;
}
.item-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    position: absolute;
    top: 0;
    left: 0;
}

/* 詳細ページ＆ウィジェット：通常画像の枠 */
#img-box .itemimg,
.widget_welcart_itemreco .itemimg,
.widget_welcart_bestseller .itemimg {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #f7f7f7;
    position: relative;
    overflow: hidden;
    margin-bottom: 15px;
}
#img-box .itemimg a,
.widget_welcart_itemreco .itemimg a,
.widget_welcart_bestseller .itemimg a {
    display: block;
    width: 100%;
    height: 100%;
}
#img-box .itemimg img,
.widget_welcart_itemreco .itemimg img,
.widget_welcart_bestseller .itemimg img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    position: absolute;
    top: 0;
    left: 0;
}

/* 詳細ページ：サブ画像枠（サムネイルを綺麗に並べる） */
#img-box .itemsubimg {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0 0; /* 親テーマ usces_cart.css の負マージンを打ち消し */
}
#img-box .itemsubimg a {
    display: block;
    float: none;
    margin: 0;
    width: calc(33.333% - 7px);
    aspect-ratio: 1 / 1;
    background-color: #f7f7f7;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}
#img-box .itemsubimg img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    position: absolute;
    top: 0;
    left: 0;
}

/* =========================================
   Welcart 商品一覧（カテゴリー・検索結果・関連商品など）：画像サイズの統一
   ========================================= */
/* 画像要素そのものを正方形にし、中に画像を縦横比そのままで収める。
   → 縦長画像は「縦」、横長画像は「横」が枠の一辺と同じ長さになり、並べた時に大きさが揃う。
   （.itemimg やリンクの枠には手を加えないため、キャンペーン表示・お気に入りアイコン等の配置は従来どおり）
   詳細ページ・ウィジェットは上記のより詳細な指定が優先される。 */
.itemimg > a > img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

/* =========================================
   Welcart 商品画像：薄いグレーの枠線（白背景の画像が背景と同化しないように）
   ========================================= */
/* 正方形の枠ではなく、画像の外周（長方形）にぴったり線を引く。透過画像でも同じく長方形で囲む。
   画像要素は正方形のまま（上記のサイズ統一を維持）とし、
   functions.php のスクリプトが画像の縦横比を --wcc-img-ratio にセットして .wcc-img-framed を付ける。
   ・padding … 正方形の中で「画像が描画される範囲（content-box）」を画像と同じ縦横比にする（周囲は最低1px）
   ・背景   … content-box のすぐ外側 1px に4本の線を描く（画像の上には描かないので、透過部分にも線は出ない）
   padding / 背景の % はどちらも正方形の一辺を基準にしているため、画面幅が変わっても常に画像に沿う。 */
/* 枠線の色はここで変更可能 */
:root {
    --wcc-img-border: #e0e0e0;
}
img.wcc-img-framed {
    box-sizing: border-box;
    padding:
        calc((100% - min(100% - 2px, (100% - 2px) / var(--wcc-img-ratio))) / 2)
        calc((100% - min(100% - 2px, (100% - 2px) * var(--wcc-img-ratio))) / 2);
    background-image:
        linear-gradient(var(--wcc-img-border), var(--wcc-img-border)),
        linear-gradient(var(--wcc-img-border), var(--wcc-img-border)),
        linear-gradient(var(--wcc-img-border), var(--wcc-img-border)),
        linear-gradient(var(--wcc-img-border), var(--wcc-img-border));
    background-size:
        calc(100% + 2px) 1px,
        calc(100% + 2px) 1px,
        1px calc(100% + 2px),
        1px calc(100% + 2px);
    background-position:
        -1px -1px,
        -1px calc(100% + 1px),
        -1px -1px,
        calc(100% + 1px) -1px;
    background-repeat: no-repeat;
    background-origin: content-box;
    background-clip: padding-box;
}
/* =========================================
   Welcart 商品詳細ページ：価格・在庫まわりの最適化
   ========================================= */
.item-price-block {
    background-color: #fcfcfc;
    padding: 20px;
    border: 1px solid #eeeeee;
    border-radius: 5px;
    margin-bottom: 25px;
}
.item-price-block .zaikostatus {
    float: none; /* 親テーマ usces_cart.css の float を解除 */
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333333;
}
.item-price-block .zaikostatus-value {
    color: #0066cc; /* 在庫あり等の色 */
}
.item-price-block .field_price {
    float: none; /* 親テーマ usces_cart.css の float・文字サイズを解除 */
    font-size: 1em;
    font-weight: normal;
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.item-price-block .field_cprice {
    font-size: 1em;
    color: #888888;
    margin-right: 0;
    text-decoration: none; /* 取り消し線は金額（.cprice-value）のみ */
}
.item-price-block .cprice-value {
    text-decoration: line-through; /* 定価に取り消し線 */
    margin-left: 5px;
}
.item-price-block .field_sellprice {
    font-size: 2em;
    font-weight: bold;
    color: #cc0000; /* 販売価格を赤く大きく */
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.item-price-block .tax-guid {
    font-size: 0.45em;
    font-weight: normal;
    color: #666666;
}
.item-price-block .tax-guid em {
    font-size: 1em;
    font-style: normal;
}
.item-price-block .field_taxincluded {
    font-size: 0.9em;
    color: #666666;
    margin-top: 5px;
    text-align: right;
}
/* =========================================
   Welcart 商品詳細ページ：数量・カートボタン
   ========================================= */
.item-info .c-box {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 10px 16px;
}
.item-info .c-box .quantity {
    margin: 0;
}
#itempage .item-info .skubutton {
    min-width: 240px;
    padding: 14px 28px;
    font-family: inherit; /* 親テーマの font-family: FontAwesome による文字化け（□）を防止 */
    font-size: 1.05em;
    font-weight: bold;
    color: var(--wcc-btn-text, #ffffff);
    background-color: var(--wcc-btn-bg, #0066cc);
    border: none;
    border-radius: 6px;
    transition: opacity .2s ease;
}
#itempage .item-info .skubutton:hover {
    opacity: .85;
    background-color: var(--wcc-btn-bg, #0066cc);
}
@media screen and (max-width: 767px) {
    .item-info .c-box {
        justify-content: center;
    }
    #itempage .item-info .c-box .cart-button,
    #itempage .item-info .skubutton {
        width: 100%;
    }
}

/* =========================================
   Welcart 商品詳細ページ：入稿データのアップロード枠
   ========================================= */
.custom-file-upload {
    margin: 0 0 25px;
    padding: 15px;
    background: #fafafa;
    border: 2px dashed #cccccc;
    border-radius: 5px;
}
.custom-file-upload__label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #333333;
}
.custom-file-upload input[type="file"] {
    display: block;
    box-sizing: border-box;
    width: 100%;
    padding: 10px;
    background: #ffffff;
    border: 1px solid #dddddd;
}
.custom-file-upload__note {
    margin-top: 8px;
    font-size: 0.85em;
    line-height: 1.5;
    color: #d9534f;
}
.custom-file-upload__note strong {
    display: block;
    margin-top: 5px;
    color: #cc0000;
}

/* =========================================
   トップページ・一覧ページ：余白（テンプレートのインラインstyleから移設）
   ========================================= */
.home-widget-area .widget {
    margin-bottom: 30px;
}
.front-il,
.front-news {
    margin: 40px 0;
}
.front-il > .entry-title,
.front-news > .entry-title {
    margin-bottom: 20px;
}
.home-widget-area.bottom-widget-area {
    margin-top: 40px;
}
.page-header + .news-list {
    margin-top: 30px;
}

/* =========================================
   ヘッダー：サイト説明文（キャッチフレーズ）の幅調整
   ========================================= */
#masthead .site-description {
    width: 100% !important;
    display: block !important;
    float: none !important;
    clear: both !important;
    margin-bottom: 10px; /* 下のロゴとの間に少し余白を持たせる */
    text-align: left; /* 中央揃えにしたい場合は center に変更してください */
}
/* =========================================
   トップページ：最新の投稿（お知らせ）リストのスタイル
   ========================================= */
.news-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.news-list .news-item {
    width: calc(25% - 15px); /* PCでは4列に並べる */
    box-sizing: border-box;
}
.news-thumbnail {
    margin-bottom: 10px;
}
.news-thumbnail a {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3; /* 画像を4:3の横長比率で統一 */
    background-color: #f7f7f7;
    overflow: hidden;
    border-radius: 4px;
}
.news-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 枠を綺麗に埋めるようにカット */
    transition: transform 0.3s ease;
}
.news-thumbnail a:hover img {
    transform: scale(1.05); /* カーソルを乗せた時に少し拡大 */
}
.news-thumbnail .no-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    color: #999999;
    font-size: 0.9em;
    background-color: #eeeeee;
}
.news-date {
    font-size: 0.85em;
    color: #888888;
    margin-bottom: 5px;
}
.news-list .news-title {
    font-size: 1.05em !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    border: none !important;
    padding: 0 !important;
    background: none !important;
}
.news-list .news-title a {
    color: #333333;
    text-decoration: none;
}
.news-list .news-title a:hover {
    color: #0066cc;
}

/* スマホ・タブレット表示時のレスポンシブ調整 */
@media screen and (max-width: 991px) {
    .news-list .news-item {
        width: calc(50% - 10px); /* タブレットでは2列 */
    }
}
@media screen and (max-width: 767px) {
    .news-list {
        gap: 15px;
    }
    .news-list .news-item {
        width: 100%; /* スマホでは1列 */
    }
}

/* =========================================
   NEWS一覧（.wcc-news）：トップページ・NEWS一覧ページ・個別ページ共通
   1件の HTML は functions.php の welcart_basic_child_the_news_item()
   PC は「日付・カテゴリー｜タイトル」の横並び、スマホは日付の下にタイトル
   ========================================= */
.wcc-news {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid #e5e5e5;
    letter-spacing: normal; /* 親テーマの一覧用 letter-spacing: -.5em 等が継承されても文字が重ならないようにする */
    text-align: left;
}
.wcc-news .wcc-news__item {
    margin: 0;
    padding: 0;
    list-style: none;
    border-bottom: 1px solid #e5e5e5;
}
body .wcc-news .wcc-news__link {
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 8px 24px;
    padding: 18px 44px 18px 12px;
    color: var(--wcc-text, #333333);
    text-decoration: none;
    transition: background-color 0.2s ease;
}
body .wcc-news .wcc-news__link:hover {
    background-color: #fafafa;
}
/* 右端の矢印 */
.wcc-news .wcc-news__link::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 18px;
    width: 7px;
    height: 7px;
    margin-top: -4px;
    border-top: 2px solid #bbbbbb;
    border-right: 2px solid #bbbbbb;
    transform: rotate(45deg);
    transition: right 0.2s ease, border-color 0.2s ease;
}
.wcc-news .wcc-news__link:hover::after {
    right: 14px;
    border-color: var(--wcc-accent, #0066cc);
}
.wcc-news__meta {
    display: flex;
    flex-wrap: wrap;
    flex-shrink: 0;
    align-items: center;
    gap: 6px 10px;
}
.wcc-news .wcc-news__meta {
    width: 15.5em;
}
.wcc-news__date {
    font-size: 0.9em;
    letter-spacing: 0.04em;
    color: #888888;
    font-variant-numeric: tabular-nums;
}
body .wcc-news__cat {
    display: inline-block;
    max-width: 10em;
    padding: 2px 10px;
    overflow: hidden;
    font-size: 0.75em;
    line-height: 1.6;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-decoration: none;
    color: var(--wcc-accent, #0066cc);
    border: 1px solid var(--wcc-accent, #0066cc);
    border-radius: 999px;
}
a.wcc-news__cat:hover {
    opacity: 0.75;
}
.wcc-news__new {
    display: inline-block;
    padding: 1px 6px;
    font-size: 0.7em;
    font-weight: bold;
    line-height: 1.6;
    letter-spacing: 0.05em;
    color: #ffffff;
    background-color: #cc0000;
    border-radius: 3px;
}
.wcc-news__title {
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.6;
    overflow-wrap: anywhere;
}
.wcc-news .wcc-news__link:hover .wcc-news__title {
    color: var(--wcc-link, #0066cc);
}
.wcc-news__empty {
    padding: 2em 1em;
    color: #888888;
    text-align: center;
    background-color: #fafafa;
    border-radius: 6px;
}

/* 「NEWS一覧を見る」「NEWS一覧へ戻る」ボタン
   白地の枠線ボタンのため、薄い色になりやすいボタン背景色ではなく見出しアクセント色を使う */
.wcc-news__more-wrap {
    margin: 28px 0 0;
    letter-spacing: normal;
    text-align: center;
}
body a.wcc-news__more {
    display: inline-block;
    min-width: 220px;
    padding: 12px 40px;
    box-sizing: border-box;
    font-weight: bold;
    letter-spacing: 0.05em;
    text-align: center;
    text-decoration: none;
    color: var(--wcc-accent, #0066cc);
    background-color: #ffffff;
    border: 1px solid var(--wcc-accent, #0066cc);
    border-radius: 999px;
    transition: background-color 0.2s ease, color 0.2s ease;
}
body a.wcc-news__more:hover {
    color: #ffffff;
    background-color: var(--wcc-accent, #0066cc);
}

/* NEWS一覧ページ：カテゴリー絞り込み */
.wcc-news-header {
    margin-bottom: 24px;
}
.wcc-news-cats {
    margin: 0 0 24px;
}
.wcc-news-cats ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.wcc-news-cats li {
    margin: 0;
    list-style: none;
}
body .wcc-news-cats a {
    display: inline-block;
    padding: 6px 16px;
    font-size: 0.9em;
    text-decoration: none;
    color: #555555;
    background-color: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 999px;
    transition: border-color 0.2s ease, color 0.2s ease;
}
body .wcc-news-cats a:hover {
    color: var(--wcc-accent, #0066cc);
    border-color: var(--wcc-accent, #0066cc);
}
body .wcc-news-cats a.is-current {
    color: #ffffff;
    background-color: var(--wcc-accent, #0066cc);
    border-color: var(--wcc-accent, #0066cc);
}
.wcc-news--archive + .pagination_wrapper {
    margin-top: 32px;
}

/* NEWS個別ページ */
.wcc-news-single__header {
    margin: 0 0 24px;
    padding: 0 0 18px;
    border-bottom: 2px solid #eeeeee;
}
.wcc-news-single__header .wcc-news__meta {
    margin-bottom: 10px;
}
#main .wcc-news-single__title {
    margin: 0;
    padding: 0;
    font-size: 1.6em;
    font-weight: bold;
    line-height: 1.5;
    letter-spacing: 0.04em;
    border: none;
    background: none;
    overflow-wrap: anywhere;
}
.wcc-news-single__thumb {
    margin: 0 0 28px;
}
.wcc-news-single__thumb img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
}
.wcc-news-single .entry-content {
    line-height: 1.9;
    overflow-wrap: anywhere;
}
.wcc-news-single .entry-content img {
    max-width: 100%;
    height: auto;
}
.wcc-news-pager {
    display: flex;
    gap: 16px;
    margin: 48px 0 0;
    padding: 20px 0 0;
    border-top: 1px solid #e5e5e5;
}
.wcc-news-pager__prev,
.wcc-news-pager__next {
    flex: 1 1 0;
    min-width: 0;
}
.wcc-news-pager__next {
    text-align: right;
}
body .wcc-news-pager a {
    display: block;
    padding: 12px 16px;
    color: var(--wcc-text, #333333);
    text-decoration: none;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    transition: border-color 0.2s ease;
}
body .wcc-news-pager a:hover {
    border-color: var(--wcc-accent, #0066cc);
}
.wcc-news-pager__label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.8em;
    color: #888888;
}
.wcc-news-pager__prev .wcc-news-pager__label::before {
    content: "‹ ";
}
.wcc-news-pager__next .wcc-news-pager__label::after {
    content: " ›";
}
.wcc-news-pager__title {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

@media screen and (max-width: 767px) {
    body .wcc-news .wcc-news__link {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 14px 36px 14px 4px;
    }
    .wcc-news .wcc-news__link::after {
        right: 12px;
    }
    .wcc-news .wcc-news__link:hover::after {
        right: 10px;
    }
    .wcc-news .wcc-news__meta {
        width: auto;
    }
    body a.wcc-news__more {
        display: block;
        width: 100%;
        min-width: 0;
    }
    #main .wcc-news-single__title {
        font-size: 1.3em;
    }
    .wcc-news-pager {
        flex-direction: column;
        gap: 10px;
        margin-top: 36px;
    }
    .wcc-news-pager__next {
        text-align: left;
    }
}
/* =========================================
   フッターを画面幅100%（フルワイド）にする設定
   ========================================= */
body {
    overflow-x: hidden; /* 100vw指定による意図しない横スクロールを防止 */
}
body #colophon {
    width: 100vw !important;
    max-width: none !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    /* 背景は100%にしつつ、中の文字位置は元のコンテンツ幅に合わせる */
    padding-left: calc(50vw - 50%) !important;
    padding-right: calc(50vw - 50%) !important;
    box-sizing: border-box !important;
}
/* =========================================
   モバイルメニュー展開時の重なり（z-index）修正
   ========================================= */
/* ヘッダー全体をページ内容（スライダー等）より前面に。
   以前の 99999 は WordPress の管理バー（99999）や画像拡大表示より前に出てしまうため 100 に変更 */
#masthead {
    position: relative;
    z-index: 100 !important;
}
#site-navigation {
    z-index: 100 !important; /* ボタンの配置基準を変えずに優先度を上げる */
}
.swiper {
    position: relative;
    z-index: 1 !important; /* スライダーの階層を確実に下げる */
}
/* =========================================
   フッターメニューのレイアウト調整（PC3列、タブレット2列、スマホ1列）
   ========================================= */
/* 全体の左右に余白を持たせる */
.site-info .footer-nav {
    margin: 0 5% !important; /* 左右に5%ずつの余白（必要に応じて数値を調整） */
}

/* 第一階層（親メニュー）のみを横並びにする */
.site-info .footer-nav > div > ul {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    align-items: flex-start; /* 各カラムを上揃えに */
}

/* 第一階層の各カラム（PC表示時は3列） */
.site-info .footer-nav > div > ul > li {
    box-sizing: border-box !important;
    width: 33.333% !important;
    padding: 0 15px 20px 0 !important;
}

/* 第一階層のリンク（親メニュー見出し）の装飾 */
.site-info .footer-nav > div > ul > li > a {
    font-weight: bold;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    display: block;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

/* 第二階層以降（サブメニュー）は縦並びにする */
.site-info .footer-nav ul.sub-menu {
    display: block !important; /* 横並びを解除 */
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
.site-info .footer-nav ul.sub-menu li {
    width: 100% !important; /* サブメニューの項目は100%幅（縦1列） */
    padding: 3px 0 !important;
}

/* タブレット表示時のレスポンシブ調整（2列） */
@media screen and (max-width: 991px) {
    .site-info .footer-nav > div > ul > li {
        width: 50% !important;
    }
}

/* スマホ表示時のレスポンシブ調整（1列） */
@media screen and (max-width: 767px) {
    .site-info .footer-nav > div > ul > li {
        width: 100% !important;
    }
}
/* =========================================
   スマホ用メニューボタンを「三本線（ハンバーガー）」に変更
   親テーマのアイコンフォントを消し、CSSで線を描画
   ========================================= */
#site-navigation label::before,
#site-navigation label::after {
    content: none !important;
    display: none !important;
}
#site-navigation label {
    right: 12px !important; /* 画面端から離して押しやすく */
    margin-top: 10px !important; /* 上端からも離す（親テーマの位置指定からさらに10px下げる） */
    box-sizing: border-box !important;
    width: 42px !important;
    height: 42px !important;
    padding: 0 10px !important; /* 線の左右の余白 */
    border: 2px solid currentColor !important; /* 四角で囲う */
    border-radius: 6px !important;
    font-size: 0 !important; /* アイコンフォント分の高さをリセット */
    line-height: 0 !important;
    cursor: pointer;
}
#site-navigation label span,
#site-navigation label span::before,
#site-navigation label span::after {
    position: absolute !important;
    left: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 3px !important;
    border-radius: 2px;
    background-color: currentColor !important;
    font-size: 0 !important;
    transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
#site-navigation label span {
    position: relative !important; /* 上下の線の配置基準 */
    top: 0 !important;
    margin: 16.5px 0 0 !important; /* 枠内（高さ38px）の中央に配置 */
}
#site-navigation label span::before,
#site-navigation label span::after {
    content: "" !important;
}
#site-navigation label span::before { top: -7px !important; }
#site-navigation label span::after  { top: 7px !important; }

/* メニューを開いている間は「×」表示 */
#site-navigation:has(#panel:checked) label span {
    background-color: transparent !important;
}
#site-navigation:has(#panel:checked) label span::before {
    top: 0 !important;
    transform: rotate(45deg);
}
#site-navigation:has(#panel:checked) label span::after {
    top: 0 !important;
    transform: rotate(-45deg);
}

/* =========================================
   スマホ用メニュー（展開パネル）のデザイン
   親テーマの切替幅（62.5em 以上が PC 表示）に合わせ、スマホ・タブレット表示にのみ適用
   カスタマイザー出力（#masthead 1つの ID + !important）より優先させるため #masthead #site-navigation で指定
   サブメニューの開閉は functions.php のスクリプトが付ける .wcc-accordion / .is-open / .wcc-submenu-toggle で行う
   （スクリプトが動かない環境ではサブメニューを常に表示）
   ========================================= */
@media screen and (max-width: 62.49em) {
    /* 展開パネル */
    body #masthead #site-navigation input#panel.on-off:checked + div.nav-menu-open {
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
        animation: wcc-nav-open 0.25s ease;
    }
    body #masthead #site-navigation ul.header-nav-container {
        padding: 6px 0 14px !important;
    }

    /* 第一階層 */
    body #masthead #site-navigation .header-nav-container > li {
        position: relative;
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }
    body #masthead #site-navigation .header-nav-container > li > a {
        position: relative;
        margin: 0;
        padding: 16px 56px 16px 20px;
        border: none;
        font-size: 15px;
        font-weight: 700;
        letter-spacing: 0.06em;
        line-height: 1.5;
    }
    /* 子メニューのない項目は右端に「›」 */
    body #masthead #site-navigation .header-nav-container > li:not(.menu-item-has-children) > a::after {
        content: "";
        position: absolute;
        top: 50%;
        right: 24px;
        width: 7px;
        height: 7px;
        margin-top: -4px;
        border-top: 2px solid #c9bfb1;
        border-right: 2px solid #c9bfb1;
        transform: rotate(45deg);
    }

    /* サブメニュー開閉ボタン（＋ / －） */
    body #masthead #site-navigation .wcc-submenu-toggle {
        position: absolute;
        top: 0;
        right: 0;
        width: 56px;
        height: 55px;
        margin: 0;
        padding: 0;
        border: none;
        border-left: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        opacity: 1;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    body #masthead #site-navigation .wcc-submenu-toggle::before,
    body #masthead #site-navigation .wcc-submenu-toggle::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 14px;
        height: 2px;
        margin: -1px 0 0 -7px;
        border-radius: 1px;
        background-color: #c9bfb1;
        transition: transform 0.25s ease;
    }
    body #masthead #site-navigation .wcc-submenu-toggle::after {
        transform: rotate(90deg);
    }
    body #masthead #site-navigation li.is-open > .wcc-submenu-toggle::after {
        transform: rotate(0deg);
    }
    body #masthead #site-navigation .wcc-submenu-toggle:focus-visible {
        outline: 2px solid #c9bfb1;
        outline-offset: -4px;
    }

    /* サブメニュー（2列のタイル表示） */
    body #masthead #site-navigation .header-nav-container ul.sub-menu {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        position: static !important;
        width: auto !important;
        margin: 0 !important;
        padding: 4px 16px 18px !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background-color: transparent !important;
    }
    body #masthead #site-navigation.wcc-accordion .header-nav-container li:not(.is-open) > ul.sub-menu {
        display: none !important;
    }
    body #masthead #site-navigation.wcc-accordion .header-nav-container li.is-open > ul.sub-menu {
        animation: wcc-nav-open 0.25s ease;
    }
    body #masthead #site-navigation .header-nav-container ul.sub-menu li {
        float: none;
        width: auto;
        margin: 0 !important;
        padding: 0;
        border: 1px solid rgba(201, 191, 177, 0.28);
        border-radius: 6px;
        background-color: rgba(255, 255, 255, 0.06) !important;
    }
    body #masthead #site-navigation .header-nav-container ul.sub-menu li a {
        display: flex;
        align-items: center;
        height: 100%;
        margin: 0;
        padding: 10px 12px !important;
        border: none;
        color: #f3ede6 !important;
        font-size: 13px;
        font-weight: 400;
        letter-spacing: 0.04em;
        line-height: 1.45;
    }
    body #masthead #site-navigation .header-nav-container ul.sub-menu li a::before {
        content: "";
        flex-shrink: 0;
        width: 5px;
        height: 5px;
        margin-right: 8px;
        border-radius: 50%;
        background-color: #c9bfb1;
    }
    body #masthead #site-navigation .header-nav-container ul.sub-menu li a:hover {
        background-color: rgba(255, 255, 255, 0.12) !important;
        opacity: 1 !important;
    }
    /* 表示中のページ */
    body #masthead #site-navigation .header-nav-container ul.sub-menu li.current-menu-item {
        border-color: #c9bfb1;
        background-color: rgba(201, 191, 177, 0.2) !important;
    }
}
@media screen and (min-width: 62.5em) {
    body #masthead #site-navigation .wcc-submenu-toggle {
        display: none;
    }
}
@keyframes wcc-nav-open {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   トップ固定ページ デザイン（.pst-top）
   固定ページの「カスタムHTML」ブロックに貼った HTML に適用
   親テーマの .entry-content の p / ul / li / h2 / h3 指定を打ち消すため .entry-content .pst-top で指定
   ========================================= */
/* デザイン内に同じ見出しがあるため、テーマ出力のページタイトルを非表示 */
.sof article:has(.pst-top) > .entry-title {
    display: none;
}

.entry-content .pst-top {
    --pst-brown: #4f3620;
    --pst-brown2: #89663f;
    --pst-deep: #2e1f12;
    --pst-beige: #c9bfb1;
    --pst-cream: #f7f3ee;
    color: #333333;
    line-height: 1.8;
    letter-spacing: 0.03em;
    font-feature-settings: "palt";
}
.entry-content .pst-top * {
    box-sizing: border-box;
}
.entry-content .pst-top p {
    margin: 0;
    line-height: 1.8; /* 親テーマの line-height: 1.42857em を上書き */
}
.entry-content .pst-top ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.entry-content .pst-top ul li {
    margin: 0;
    list-style: none;
    line-height: 1.6;
}
.entry-content .pst-top img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* 見出しリセット（子テーマ・親テーマの h2/h3 装飾を打ち消し） */
#main .entry-content .pst-top h2,
#main .entry-content .pst-top h3 {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    letter-spacing: 0.05em;
    line-height: 1.45;
}

/* ヒーロー */
.entry-content .pst-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 56px;
    padding: 56px 40px 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--pst-deep) 0%, var(--pst-brown) 55%, var(--pst-brown2) 100%);
    color: #ffffff;
    text-align: center;
}
.entry-content .pst-hero::before,
.entry-content .pst-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
}
.entry-content .pst-hero::before {
    top: -60px;
    right: -60px;
    width: 260px;
    height: 260px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.entry-content .pst-hero::after {
    bottom: -110px;
    left: -80px;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(201, 191, 177, 0.25);
}
.entry-content .pst-top .pst-hero__en {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(201, 191, 177, 0.6);
    font-size: 12px;
    letter-spacing: 0.35em;
    color: var(--pst-beige);
}
#main .entry-content .pst-top .pst-hero h2 {
    position: relative;
    color: #ffffff !important;
    font-size: clamp(22px, 3.4vw, 34px);
    font-weight: 700;
}
.entry-content .pst-hero .pst-mark {
    display: inline-block;
    margin-left: 0.15em;
    padding: 0 0.35em;
    border-radius: 4px;
    background: var(--pst-beige);
    color: var(--pst-deep);
}
.entry-content .pst-top .pst-hero__lead {
    position: relative;
    margin-top: 18px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.88);
}
.entry-content .pst-top .pst-badges {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
}
.entry-content .pst-top .pst-badges li {
    padding: 7px 16px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 13px;
}

/* セクション見出し */
.entry-content .pst-sec {
    margin-bottom: 64px;
}
.entry-content .pst-head {
    margin-bottom: 32px;
    text-align: center;
}
.entry-content .pst-head::after {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    margin: 16px auto 0;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--pst-brown), var(--pst-beige));
}
.entry-content .pst-top .pst-head__num {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    letter-spacing: 0.3em;
    color: var(--pst-brown2);
}
#main .entry-content .pst-top .pst-head h2,
#main .entry-content .pst-top .pst-head h3 {
    color: var(--pst-brown) !important;
    font-size: clamp(19px, 2.6vw, 26px);
    font-weight: 700;
}

/* 機能カード */
.entry-content .pst-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.entry-content .pst-card {
    overflow: hidden;
    border: 1px solid #e8e1d8;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(79, 54, 32, 0.08);
    transition: transform 0.25s, box-shadow 0.25s;
}
.entry-content .pst-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(79, 54, 32, 0.14);
}
.entry-content .pst-card__img {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 10;
    padding: 18px;
    background: var(--pst-cream);
}
.entry-content .pst-top .pst-card__img img {
    width: auto;
    max-height: 100%;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}
.entry-content .pst-card__body {
    padding: 22px 24px 26px;
}
.entry-content .pst-top .pst-card__tag {
    display: inline-block;
    margin-bottom: 10px;
    padding: 3px 10px;
    border-radius: 3px;
    background: var(--pst-brown);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
}
.entry-content .pst-top .pst-card__title {
    margin-bottom: 10px;
    color: var(--pst-brown);
    font-size: 18px;
    font-weight: 700;
}
.entry-content .pst-top .pst-card__text {
    font-size: 14px;
}
.entry-content .pst-top .pst-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
}
.entry-content .pst-top .pst-chips li {
    padding: 3px 12px;
    border: 1px solid var(--pst-beige);
    border-radius: 999px;
    background: var(--pst-cream);
    color: var(--pst-brown);
    font-size: 12px;
}

/* 印刷機（キャノン） */
.entry-content .pst-canon {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 36px;
    align-items: center;
    padding: 36px;
    border-radius: 14px;
    background: var(--pst-cream);
}
.entry-content .pst-canon__photo {
    padding: 16px;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(79, 54, 32, 0.08);
}
.entry-content .pst-top .pst-canon__photo img {
    margin: 0 auto;
}
.entry-content .pst-top .pst-canon__credit {
    margin-top: 8px;
    font-size: 11px;
    color: #888888;
    text-align: right;
}
.entry-content .pst-top .pst-canon__label {
    margin-bottom: 6px;
    font-size: 13px;
    letter-spacing: 0.1em;
    color: var(--pst-brown2);
}
.entry-content .pst-top .pst-canon__name {
    margin-bottom: 14px;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--pst-brown);
}
.entry-content .pst-top .pst-canon__text {
    font-size: 14px;
}
.entry-content .pst-top .pst-points {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}
.entry-content .pst-top .pst-points li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-left: 3px solid var(--pst-brown);
    border-radius: 8px;
    background: #ffffff;
    font-size: 14px;
}
.entry-content .pst-points b {
    flex-shrink: 0;
    min-width: 6.5em;
    color: var(--pst-brown);
}

@media screen and (max-width: 767px) {
    .entry-content .pst-hero {
        margin-bottom: 44px;
        padding: 40px 20px 36px;
        border-radius: 10px;
    }
    .entry-content .pst-hero .pst-mark {
        margin-top: 6px;
    }
    .entry-content .pst-top .pst-hero__lead {
        font-size: 14px;
        text-align: left;
    }
    .entry-content .pst-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .entry-content .pst-canon {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 22px 16px;
    }
    .entry-content .pst-top .pst-points li {
        flex-direction: column;
        gap: 2px;
    }
    .entry-content .pst-sec {
        margin-bottom: 48px;
    }
}
