@charset "UTF-8";
/*
Theme Name: shigenoya2026
Description: オリジナルテーマの初期セットアップ
Version: 1.0
Author: shuto
*/

/* ==========================================================================
   1. Variables (PSD計測値の集約)
   ========================================================================== */
:root {
    --wrapper-width: 1100px;
    --text-main: #493d37;
    --bg-main: #e4dfd6;
    --footer-bg: #3c3936;
    --footer-text: #c2c2c2;
    --accent-brown: #8c6846;
    --white: #ffffff;
    --font-base: "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Yu Mincho", "serif";
    --base-size: 18px;
    --base-ls: 0.05em;
    --base-lh: 35px;
}

/* ==========================================================================
   2. Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.8;
}

body {
    font-family: var(--font-base);
    font-size: var(--base-size);
    line-height: var(--base-lh);
    letter-spacing: var(--base-ls);
    color: var(--text-main);
    background-color: var(--bg-main);
    -webkit-font-smoothing: antialiased;
}

.l-wrapper {
    max-width: var(--wrapper-width);
    margin: 0 auto;
    padding: 0 40px;
}

/* ============================================
   Main Visual (Video)
   ============================================ */
.main-visual {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: #000;
}

.main-visual video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    z-index: 1;
}

.main-visual::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 2;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    left: 60px;
    bottom: 0;
    z-index: 10;
    color: #ffffff;
    font-family: "Yu Mincho", serif;
    writing-mode: vertical-rl;
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 40px;
}

.scroll-indicator .text {
    font-size: 14px;
    letter-spacing: 0.15em;
    text-transform: lowercase;
    margin-bottom: 10px;
}

.scroll-indicator .line {
    width: 1px;
    height: 80px;
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
}

.scroll-indicator .line::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    animation: scrollAnim 2.5s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}

@keyframes scrollAnim {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100%);
    }
}

/* ============================================
   Header
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    z-index: 1000;
}

.header-logo {
    position: absolute;
    top: 50px;
    left: 60px;
    margin: 0;
    line-height: 1;
}

.header-logo a {
    display: block;
    transition: opacity 0.3s;
}

.header-logo a:hover {
    opacity: 0.8;
}

.header-actions {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
}

.btn-header-reserve {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100px;
    height: 60px;
    background-color: #ffffff;
    color: #000000;
    text-decoration: none;
    font-family: "Hiragino Mincho ProN", serif;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0;
    transition: opacity 0.3s;
}

.btn-header-reserve:hover {
    opacity: 0.8;
}

.btn-menu-trigger {
    position: relative;
    display: block;
    width: 60px;
    height: 60px;
    background-color: #000000;
    border: none;
    cursor: pointer;
    padding: 0;
    appearance: none;
}

.btn-menu-trigger .bar {
    position: absolute;
    left: 15px;
    width: 30px;
    height: 2px;
    background-color: #ffffff;
    transition: all 0.3s;
}

.btn-menu-trigger .bar:nth-of-type(1) {
    top: 20px;
}

.btn-menu-trigger .bar:nth-of-type(2) {
    top: 29px;
}

.btn-menu-trigger .bar:nth-of-type(3) {
    bottom: 20px;
}

.btn-menu-trigger:hover .bar {
    opacity: 0.7;
}

/* ============================================
   Global Menu (Overlay)
   ============================================ */
.global-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #ffffff;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    overflow-y: auto;
}

.global-menu.is-active {
    opacity: 1;
    visibility: visible;
}

.btn-menu-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 2001;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-menu-close svg {
    display: block;
}

.btn-menu-close:hover {
    opacity: 0.7;
}

.global-menu__inner {
    width: 940px;
    margin: 0 auto;
    position: relative;
    padding-top: 100px;
    padding-bottom: 100px;
    box-sizing: border-box;
    font-family: "Yu Mincho Medium", serif;
}

.global-menu a {
    text-decoration: none;
    color: #000000;
    transition: opacity 0.3s;
}

.global-menu a:hover {
    opacity: 0.6;
}

.menu-links-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 80px;
}

.menu-col-left,
.menu-col-center,
.menu-col-right {
    width: 30%;
}

.menu-nav-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.menu-head {
    font-size: 22px;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-right: 15px;
    white-space: nowrap;
    position: relative;
    padding-right: 60px;
    line-height: 1.2;
}

.menu-head::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    width: 50px;
    height: 1px;
    background-color: #ccc;
}

.menu-list-vertical,
.menu-main-nav,
.menu-sub-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-list-vertical li a {
    font-size: 17px;
    letter-spacing: 0.1em;
    line-height: 40px;
    display: block;
    font-weight: normal;
}

.menu-main-nav li a,
.menu-sub-nav li a {
    font-size: 22px;
    letter-spacing: 0.1em;
    line-height: 1.4;
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
}

.u-bold {
    font-weight: bold;
    font-family: "Hiragino Mincho ProN", serif;
}

.menu-divider {
    border: none;
    border-top: 1px solid #ccc;
    margin: 30px 0;
    width: 100%;
}

.menu-reserve-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.btn-menu-brown {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 300px;
    height: 90px;
    background-color: var(--accent-brown, #8c6846);
    color: #ffffff !important;
    font-size: 16px;
    letter-spacing: 0.05em;
}

.menu-contact-row {
    margin-bottom: 50px;
}

.btn-menu-black {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 80px;
    background-color: #3c3936;
    color: #ffffff !important;
    font-size: 16px;
    letter-spacing: 0.05em;
}

/* Menu Trigger Animation */
.btn-menu-trigger.is-active .bar:nth-of-type(1) {
    top: 29px;
    transform: rotate(45deg);
}

.btn-menu-trigger.is-active .bar:nth-of-type(2) {
    opacity: 0;
}

.btn-menu-trigger.is-active .bar:nth-of-type(3) {
    top: 29px;
    transform: rotate(-45deg);
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    width: 100%;
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding-top: 70px;
    padding-bottom: 140px;
    font-family: "Yu Mincho Medium", serif;
    position: relative;
}

.site-footer a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

.site-footer a:hover {
    opacity: 0.7;
}

.footer-inner {
    position: relative;
    box-sizing: border-box;
    width: 1100px;
    padding: 0 50px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
}

.footer-left {
    width: 241px;
    flex-shrink: 0;
    margin-right: 60px;
}

.footer-right {
    width: 570px;
    flex-shrink: 0;
}

.footer-btns {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 50px;
}

.btn-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 285px;
    height: 55px;
    font-size: 18px;
    letter-spacing: 0.05em;
    cursor: pointer;
}

.btn-reserve {
    background-color: var(--accent-brown);
    color: var(--white) !important;
}

.btn-contact {
    background-color: var(--white);
    color: #5b5b5b !important;
}

.footer-content-row {
    display: flex;
}

.footer-nav {
    width: 285px;
    box-sizing: border-box;
}

.footer-nav li {
    font-size: 17px;
    line-height: 40px;
    letter-spacing: 0.05em;
    color: #ffffff;
}

.footer-address {
    width: 285px;
    box-sizing: border-box;
    padding-left: 5px;
}

.address-text {
    font-size: 16px;
    line-height: 27px;
    letter-spacing: 0.1em;
    margin-bottom: 30px;
}

.googlemap-link {
    display: inline-block;
    margin-top: 5px;
    text-decoration: none;
}

.tel-number {
    font-size: 25px;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    font-family: "Yu Mincho", serif;
}

.footer-sns {
    display: flex;
    gap: 12px;
    padding: 0;
    margin: 0;
}

.footer-sns li {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-sns svg {
    display: block;
    width: 100%;
    height: 100%;
    transition: opacity 0.3s;
}

.footer-privacy {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.6;
    letter-spacing: 0.08em;
}

.footer-privacy a {
    text-decoration: none;
}

.page-top {
    position: absolute;
    top: 0;
    right: 0;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-family: "Yu Mincho", serif;
    font-weight: 600;
    font-size: 20px;
    letter-spacing: 0.1em;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 15px;
    padding-left: 10px;
}

.page-top .arrow-svg {
    display: block;
    stroke: currentColor;
    overflow: visible;
}

.page-top .text {
    display: block;
    transform: translateY(2px);
}

.copyright {
    position: absolute;
    bottom: 0;
    right: 0;
    font-size: 12px;
    letter-spacing: 0.1em;
    margin: 0;
    font-family: "Yu Mincho Medium", serif;
}

/* ============================================
   Mobile Responsive (SP) - 768px以下
   ============================================ */
@media screen and (max-width: 768px) {

    /* Header (SP) */
    .header-logo {
        top: 3.125vw;
        left: 3.125vw;
        width: 24.68vw;
        margin: 0;
        line-height: 1;
    }

    .header-logo img {
        width: 100%;
        height: auto;
        vertical-align: bottom;
    }

    .header-actions {
        top: 0;
        right: 0;
    }

    .btn-header-reserve {
        width: 20.78vw;
        height: 12.5vw;
        font-size: 4.18vw;
        padding: 0;
    }

    .btn-menu-trigger {
        width: 12.5vw;
        height: 12.5vw;
    }

    .btn-menu-trigger .bar {
        left: 25%;
        width: 50%;
    }

    .btn-menu-trigger .bar:nth-of-type(1) {
        top: 30%;
    }

    .btn-menu-trigger .bar:nth-of-type(2) {
        top: 50%;
        margin-top: -1px;
    }

    .btn-menu-trigger .bar:nth-of-type(3) {
        bottom: 30%;
    }

    .btn-menu-trigger.is-active .bar:nth-of-type(1) {
        top: 50%;
        margin-top: -1px;
        transform: rotate(45deg);
    }

    .btn-menu-trigger.is-active .bar:nth-of-type(3) {
        top: 50%;
        bottom: auto;
        margin-top: -1px;
        transform: rotate(-45deg);
    }

    /* Menu (SP) */
    .global-menu__inner {
        width: 90%;
        padding-top: 80px;
    }

    .btn-menu-close {
        width: 12.5vw;
        height: 12.5vw;
    }

    .menu-links-row {
        flex-direction: column;
        gap: 0;
        margin-bottom: 11.71875vw;
        padding-left: 6.25vw;
        box-sizing: border-box;
    }

    .menu-col-left,
    .menu-col-center,
    .menu-col-right {
        width: 100%;
    }

    .menu-col-left {
        margin-bottom: 0;
    }

    .menu-col-center {
        margin-bottom: 3.125vw;
    }

    .menu-head {
        font-size: 3.90625vw;
        margin-right: 1.5625vw;
        padding-right: 12.5vw;
    }

    .menu-head::after {
        width: 12.5vw;
        background-color: #838383;
    }

    .menu-nav-group {
        margin-bottom: 11.71875vw;
    }

    .menu-col-center .menu-nav-group {
        margin-bottom: 3.125vw;
    }

    .menu-list-vertical li a {
        font-size: 3.4375vw;
        line-height: 1.2;
    }

    .menu-list-vertical li {
        margin-bottom: 4.6875vw;
    }

    .menu-col-left .menu-list-vertical {
        display: grid;
        grid-template-rows: repeat(4, auto);
        grid-auto-flow: column;
        column-gap: 26.5625vw;
        row-gap: 4.6875vw;
    }

    .menu-col-left .menu-list-vertical li {
        margin-bottom: 0;
    }

    .menu-col-center .menu-list-vertical li:last-child {
        margin-bottom: 0;
    }

    .menu-main-nav li a,
    .menu-sub-nav li a {
        font-size: 3.4375vw;
        line-height: 1.2;
        margin-bottom: 0;
    }

    .menu-main-nav li,
    .menu-sub-nav li {
        margin-bottom: 4.6875vw;
    }

    .menu-reserve-row {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
        width: 82.8125vw;
        margin: 0 auto;
    }

    .btn-menu-brown {
        width: 40.625vw;
        height: 14.0625vw;
        font-size: 3.125vw;
    }

    .menu-contact-row {
        width: 82.8125vw;
        margin: calc(-14.0625vw - 10px) auto 0;
        display: flex;
        justify-content: flex-end;
    }

    .btn-menu-black {
        width: 40.625vw;
        height: 14.0625vw;
        font-size: 3.125vw;
    }

    /* Main Visual (SP) */
    .scroll-indicator {
        left: 3.125vw;
        padding-bottom: 20px;
    }

    /* Footer (SP Layout) */
    .site-footer {
        padding-top: 0;
        padding-bottom: 10vw;
        height: auto;
        position: relative;
    }

    .page-top {
        top: 6.25vw;
        right: 5vw;
        font-size: 3.5vw;
        gap: 2vw;
    }

    .page-top .arrow-svg {
        width: 2.5vw;
        height: 12vw;
    }

    .site-footer .footer-inner {
        width: 70.3125vw;
        margin: 0 auto;
        padding: 0;
        display: block;
        position: static;
    }

    .footer-left {
        width: 100%;
        margin-right: 0;
        padding-top: 14.06vw;
        margin-bottom: 10vw;
        text-align: center;
    }

    .footer-left img {
        width: 35vw;
        height: auto;
    }

    .footer-right {
        width: 100%;
    }

    .footer-btns {
        flex-direction: column;
        align-items: center;
        gap: 0;
        margin-bottom: 12vw;
    }

    .btn-footer {
        width: 100%;
        height: 14vw;
        font-size: 4.5vw;
    }

    .btn-contact {
        margin-top: -1px;
    }

    .footer-content-row {
        display: block;
    }

    .footer-nav {
        width: 100%;
        margin-bottom: 12vw;
        text-align: left;
    }

    .footer-nav ul {
        column-count: 2;
        column-gap: 5vw;
    }

    .footer-nav li {
        text-align: left;
        font-size: 3.8vw;
        line-height: 2;
        margin-bottom: 2vw;
    }

    .footer-address {
        width: 100%;
        padding-left: 0;
        text-align: left;
    }

    .address-text {
        text-align: left;
        font-size: 3.5vw;
        line-height: 2;
        margin-bottom: 8vw;
    }

    .tel-area {
        text-align: left;
    }

    .tel-number {
        font-size: 6.875vw;
        margin-bottom: 8vw;
        display: block;
        text-align: left;
        line-height: 1.2;
        white-space: nowrap;
    }

    .site-footer .footer-sns {
        display: flex !important;
        justify-content: flex-start !important;
        align-items: center !important;
        gap: 0 !important;
        margin: 0 0 6vw 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }

    .site-footer .footer-sns li {
        width: 6.25vw !important;
        height: 6.25vw !important;
        margin: 0 2.35vw 0 0 !important;
        padding: 0 !important;
        flex-shrink: 0 !important;
        display: block !important;
    }

    .site-footer .footer-sns svg {
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        max-height: none !important;
        display: block !important;
    }

    .footer-privacy {
        margin-top: 2vw;
        font-size: 3.2vw;
        line-height: 1.5;
    }

    .copyright {
        position: static;
        text-align: right;
        display: block;
        font-size: 3vw;
        margin-top: 5vw;
    }
}

/* ==========================================================================
   個別記事（宵待ちバータイム デザイン） - タイトル周り
   ========================================================================== */

/* ページ全体の背景色とフォント設定 */
.yoimachi-main {
    background-color: #e4dfd6;
    /* 指定のベージュ色 */
    font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "HGSMinchoE", serif;
    /* 游明朝を優先 */
    color: #493d37;
    /* 指定の茶色 */
}

/* 記事ヘッダーエリア全体の余白 */
.yoimachi-article-header {
    text-align: center;
    /* 中央揃え */
    padding-top: 210px;
    /* ロゴの下からタイトルまで */
    margin-bottom: 60px;
    /* 本文との間隔（仮で60pxにしています） */
}

/* 記事タイトル（一夜の語らい） */
.yoimachi-title {
    font-size: 28px;
    font-weight: 500;
    /* Medium */
    letter-spacing: 0.05em;
    /* 文字間50 */
    line-height: 1.6;
    margin: 0;
    /* 余計な余白をリセット */
}

/* カテゴリ（白い四角：過ごし方） */
.yoimachi-meta-top {
    margin-top: 50px;
    /* タイトルから「過ごし方」まで */
}

.yoimachi-cat-label {
    display: inline-block;
    background-color: #fff;
    /* 背景白 */
    color: #493d37;
    font-size: 16px;
    font-weight: 500;
    /* Medium */
    letter-spacing: 0.05em;
    /* 文字間50 */
    padding: 10px 30px;
    /* 白い箱のサイズ感（画像を見て調整しました） */
    text-decoration: none;
    /* リンクの下線を消す */
}

/* タグ（#通年） */
.yoimachi-meta-bottom {
    margin-top: 20px;
    /* 「過ごし方」からタグまで */
    font-size: 16px;
    font-weight: 500;
    /* Medium */
    letter-spacing: 0.05em;
    /* 文字間50 */
}

/* -------------------------------------------------------
   記事内の罫線（区切り線）のデフォルト設定
   ------------------------------------------------------- */
.yoimachi-article-content hr,
.yoimachi-article-content .wp-block-separator {
    border: none;
    border-top: 1px solid #ccc3b4;
    /* 線の太さ・種類・色 */
    margin: 40px auto;
    /* ★上下40px、左右中央揃えに修正 */
    width: 100%;
    /* 線の長さ */
}

/* ==========================================================================
   レイアウト幅の共通設定（ここを追加・修正）
   ========================================================================== */

/* 記事全体を1000px幅にして中央に配置 */
.yoimachi-article {
    max-width: 1000px;
    margin: 0 auto;
    /* 左右自動で中央寄せ */
    padding: 0 20px;
    /* スマホで見ても端が切れないように左右に余白を確保 */
    box-sizing: border-box;
    /* paddingを含めた幅で計算 */
}

/* 以前のコードで .yoimachi-content に max-width: 1000px を書きましたが、
   親要素（.yoimachi-article）で制限したので、こちらは width: 100%; でOKです */
.yoimachi-content {
    width: 100%;
    /* max-width: 1000px; ←これは削除、またはそのままでも機能します */
}

/* 画像が1000pxより大きくならないようにする */
.yoimachi-content img {
    width: 100%;
    /* 横幅いっぱい */
    height: auto;
    /* 高さは自動 */
    display: block;
    /* 下の隙間を消す */
    margin: 0 auto;
    /* 中央揃え */
}

/* ==========================================================================
   個別記事 - 本文エリア（宵待ちバータイム デザイン）修正・完全版
   ========================================================================== */

/* 本文エリア全体の共通設定 */
.yoimachi-article-content {
    /* ★ここを .yoimachi-content から修正しました */
    max-width: 1000px;
    /* メイン画像の最大幅に合わせる */
    margin: 0 auto;
    /* コンテンツ全体を画面中央に配置 */
    text-align: center;
    /* ★記事内のテキスト・画像をすべて中央揃え */
    color: #493d37;
    /* 文字色 */
}

.yoimachi-article-content p a,
.yoimachi-article-content li a {
    text-decoration: underline;
}

/* 記事内の画像（アイコン・メイン画像共通） */
.yoimachi-article-content img {
    max-width: 100%;
    /* スマホでは画面幅に収まるように */
    height: auto;
    vertical-align: bottom;
    /* 画像下の微妙な隙間を消すおまじない */
    margin: 0 auto;
    /* 画像自体も中央配置 */
}

/* 画像ブロック（WordPressが自動でつける箱） */
.yoimachi-article-content figure {
    margin: 0 auto 36px;
    /* ★画像の下の余白：36px */
    text-align: center;
    /* 箱の中身も中央揃え */
}

/* 見出し H2（宵待ちバータイム） */
.yoimachi-article-content h2 {
    font-family: "Yu Mincho", "YuMincho", serif;
    /* 游明朝 */
    font-size: 30px;
    /* ★フォントサイズ：30px */
    font-weight: 500;
    letter-spacing: 0.05em;
    line-height: 1.4;

    /* 余白の設定 */
    margin-top: 30px;
    /* ★文字と「上のアイコン」との距離：30px */
    margin-bottom: 36px;
    /* ★文字と「下の画像」との距離：36px */

    /* ボーダーなどを消す（テーマの標準スタイルをリセット） */
    border: none;
    padding: 0;
    background: none;
    text-align: center;
    /* 見出しも中央揃え */
}

/* 見出し H3（もし使う場合用・H2に準拠） */
.yoimachi-article-content h3 {
    font-family: "Yu Mincho", "YuMincho", serif;
    font-size: 24px;
    margin-top: 40px;
    margin-bottom: 30px;
    text-align: center;
}

/* 本文テキスト (pタグ) */
.yoimachi-article-content p {
    font-size: 16px;
    /* ★フォントサイズ：16px */
    line-height: 1.875;
    /* ★行間30px（30÷16=1.875） */
    margin-bottom: 46px;
    /* ★段落ごとの余白：46px */
    text-align: center;
    /* ★念のためここにも指定 */
}

/* -----------------------------------------------------------
   【調整用】アイコン画像の余白を消す設定
   アイコン画像の直後にH2が来る場合、アイコン側の余白(36px)と
   H2側の余白(30px)が足されて広くなりすぎることがあります。
----------------------------------------------------------- */
.yoimachi-article-content figure:has(+ h2),
/* モダンブラウザ用 */
.yoimachi-article-content img+h2 {
    /* 旧来の書き方 */
    margin-top: 30px;
}

/* アイコン画像のブロック自体の下余白を0にする（H2が直後に来る場合） */

/* ==========================================================================
   個別記事 - ページ下部ナビゲーション
   ========================================================================== */

/* ナビゲーション全体の外枠 */
.yoimachi-post-nav {
    display: flex;
    /* 横並びにする */
    justify-content: center;
    /* 中央揃え */
    align-items: center;
    /* 垂直方向も中央へ */
    flex-wrap: wrap;
    /* スマホで幅が足りないときは折り返す */
    gap: 1em;
    /* 項目ごとの間隔 */

    margin-top: 120px;
    /* ★本文エリアとの距離：40px */
    margin-bottom: 400px;
    /* ★フッターとの距離：400px */

    /* フォント設定 */
    font-family: "Yu Mincho", "YuMincho", serif;
    font-size: 16px;
    /* ★サイズ：16px */
    font-weight: 500;
    /* ★太さ：Medium */
    color: #493d37;
    /* 茶色 */
}

/* リンク（aタグ）の共通設定 */
.yoimachi-post-nav a {
    color: #493d37;
    text-decoration: none;
    /* 下線を消す */
    transition: opacity 0.3s;
}

/* ホバー時の動き */
.yoimachi-post-nav a:hover {
    opacity: 0.7;
    /* 薄くする */
}

/* 区切り線（ | ）のデザイン */
.nav-divider {
    margin: 0 1.5em;
    /* 線と文字の間の余白（左右） */
    font-weight: normal;
    /* 線は細めにする */
}

/* スマホ対応（画面幅が狭いとき） */
@media screen and (max-width: 768px) {
    .yoimachi-post-nav {
        flex-direction: column;
        /* 縦並びにする */
        gap: 15px;
        /* 間隔を少し広げる */
    }

    .nav-divider {
        display: none;
        /* スマホでは縦棒（|）を消す */
    }
}

/* ==========================================================================
   自動生成目次（TOC）のデザイン - 幅100%版
   ========================================================================== */

/* 目次全体を囲むボックス */
.yoimachi-toc {
    background-color: #ccc3b4;
    /* 背景色 */
    width: 100%;
    /* ★幅をコンテンツ幅いっぱい（1000px）にする */
    max-width: 1000px;
    /* 念のため最大幅制限 */

    padding: 50px 120px;
    /* 内側の余白：上下50px 左右120px（変更なし） */
    margin: 0 auto 120px;
    /* ★画面中央配置 & 下の余白を120pxに変更 */

    box-sizing: border-box;
    /* paddingを含めて1000pxに収める設定 */
    text-align: left;
    /* ★中身の文字を左揃えにする */
    display: block;
    /* ブロック要素として広げる */
}

/* 目次タイトル（「目次」の文字） */
.yoimachi-toc-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: left;
    /* ★タイトルも左揃え */
    color: #493d37;
}

/* リスト部分（ul） */
.yoimachi-toc ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* 各項目（li） */
.yoimachi-toc li {
    position: relative;
    margin-bottom: 15px;
    /* 行間 */
    line-height: 1.8;
    padding-left: 1.5em;
    /* 点と文字の間隔 */
    font-size: 16px;
}

/* リンクのデザイン */
.yoimachi-toc a {
    color: #493d37;
    text-decoration: none;
    transition: opacity 0.3s;
}

.yoimachi-toc a:hover {
    opacity: 0.7;
}

/* 独自の点「・」のデザイン */
.yoimachi-toc li::before {
    content: "・";
    position: absolute;
    left: 0;
    top: 0;
    color: #493d37;
    font-weight: bold;
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
    .yoimachi-toc {
        padding: 40px 20px;
        /* スマホでは余白を調整 */
    }
}

/* ==========================================================================
   アイキャッチ画像の設定
   ========================================================================== */
.yoimachi-eyecatch {
    width: 100%;
    /* 横幅100% */
    margin: 0 0 60px 0;
    /* 下に60pxの余白（目次との距離） */
    text-align: center;
}

.yoimachi-eyecatch img {
    width: 100%;
    /* 画像を横幅いっぱいに */
    height: auto;
    /* 高さは自動 */
    vertical-align: bottom;
    /* 下の隙間消し */
    object-fit: cover;
    /* トリミング調整 */
}

/* 目次の余白調整（念のため） */
.yoimachi-toc {
    /* 以前 margin: 0 auto 60px; と設定したので、下余白は60px確保されています */
    /* 上余白はアイキャッチの margin-bottom が効きます */
    margin-bottom: 60px;
}

/* ==========================================================================
   スマートフォン・タブレット向け調整（最大幅 768px以下で適用）
   カンプ幅：650px を基準に vw でスケーリング
   ========================================================================== */

@media screen and (max-width: 768px) {

    /* -------------------------------------------------------
       1. 全体の余白設定（左右30px → 4.6vw）
       ------------------------------------------------------- */
    .yoimachi-article-header,
    .yoimachi-article-content,
    .yoimachi-post-nav,
    .yoimachi-eyecatch {
        padding-left: 4.6vw;
        /* 30px相当 */
        padding-right: 4.6vw;
        /* 30px相当 */
        box-sizing: border-box;
    }

    /* -------------------------------------------------------
       2. タイトル周り
       ------------------------------------------------------- */
    .yoimachi-article-header {
        padding-top: 24.6vw;
        /* 160px相当 */
    }

    /* 1. タイトル本体 */
    .yoimachi-title {
        font-size: 6.15vw;
        /* 40px相当 */
        line-height: 1.3;
        margin-bottom: 6.15vw;
        /* ★タイトルとカテゴリーの間：40px相当 */
    }

    /* 2. カテゴリー（.yoimachi-meta-top） */
    .yoimachi-meta-top {
        margin-bottom: 3.08vw;
        /* ★カテゴリーとタグの間：20px相当 */
        line-height: 1;
        /* パディングが綺麗に出るように行間を締める */
    }

    /* 3. タグ（.yoimachi-meta-bottom） */
    .yoimachi-meta-bottom {
        margin-bottom: 4.62vw;
        /* ★タグとアイキャッチの間：30px相当 */
        margin-top: 0;
        /* 上の余白はなし */
        display: block;
        /* 念のためブロック要素にして余白を確保 */
    }

    /* -------------------------------------------------------
   アイキャッチ画像
   ------------------------------------------------------- */
    .yoimachi-eyecatch {
        margin-top: 0;
        /* 上の余白を確実に消す */
        margin-bottom: 6.15vw;
        /* 画像の下（目次との距離）は適宜調整 */
    }

    /* カテゴリ */
    .yoimachi-cat-label {
        font-size: 3.08vw;
        /* 20px相当 */

        /* ★SP用のタイトなパディングを追加 */
        padding: 1.54vw 4.62vw;
        /* 上下10px相当 / 左右30px相当 */

        display: inline-block;
        /* パディングを正しく効かせるために必要 */
        background-color: #fff;
        /* 背景白 */
        line-height: 1;
        /* 文字が上下中央にくるように調整 */
    }

    /* タグ */
    .yoimachi-tag {
        font-size: 2.77vw;
        /* 18px相当 */
        margin-top: 1em;
    }

    /* -------------------------------------------------------
       3. 目次（TOC）
       ------------------------------------------------------- */
    .yoimachi-toc {
        /* 幅100%だと飛び出すので、左右にマージンを入れてコンテンツ幅に合わせる */
        width: auto;
        margin-left: 4.62vw;
        /* ★左の外側余白（30px相当） */
        margin-right: 4.62vw;
        /* ★右の外側余白（30px相当） */
        margin-bottom: 15.38vw;
        /* 下の余白（100px相当） */

        padding: 7.7vw 6.15vw;
        /* 内側の余白（上下50px 左右40px相当） */
    }

    .yoimachi-toc-title {
        font-size: 3.38vw;
        /* 本文と同じ22px相当に合わせる */
    }

    .yoimachi-toc li {
        font-size: 2.77vw;
        /* 中身は少し小さく（18px相当）など微調整 */
    }

    /* -------------------------------------------------------
       4. 本文エリア
       ------------------------------------------------------- */
    .yoimachi-article-content p {
        font-size: 3.38vw;
        /* ★本文：22px相当 */
        line-height: 1.8;
        margin-bottom: 6.15vw;
        /* 余白40px相当 */
    }

    .yoimachi-article-content h2 {
        font-size: 4.62vw;
        /* ★見出し：30px相当 */
        margin-top: 9.23vw;
        /* 60px相当 */
        margin-bottom: 4.62vw;
        /* 30px相当 */
    }

    /* -------------------------------------------------------
       5. ページネーション（横並び維持・サイズ調整）
       ------------------------------------------------------- */


    /* -------------------------------------------------------
   ページャー（前後記事）の設定：タイトル消去ですっきり横並び
   ------------------------------------------------------- */
    .yoimachi-post-nav {
        flex-direction: row;
        /* ★横並びに戻す */
        flex-wrap: nowrap;
        /* 折り返さない */
        gap: 10px;
        /* 隙間は狭めに */

        font-size: 2.77vw;
        /* 文字サイズ（18px相当） */
        margin-top: 9.23vw;
        /* 本文との間（60px相当） */
        margin-bottom: 18.46vw;
        /* フッターまでの余白（120px相当） */
    }

    /* ★スマホではタイトル部分（.nav-hidden-sp）を消す */
    .nav-hidden-sp {
        display: none;
    }

    /* 縦棒「|」は表示させる */
    .nav-divider {
        display: inline;
        margin: 0 5px;
    }

    /* リンクのデザイン（シンプルに） */
    .nav-prev,
    .nav-next,
    .nav-index {
        width: auto;
        /* 幅は文字なりに */
        text-align: center;
        white-space: nowrap;
        /* 改行させない */
    }
}

/* ==========================================================================
   一覧ページ (archive.php) ヘッダー＆リストデザイン
   ========================================================================== */

/* コンテンツエリア全体 */
.yoimachi-wrapper {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* -------------------------------------------------------
   ヘッダーエリア
   ------------------------------------------------------- */
.yoimachi-archive-header {
    text-align: center;
    padding-top: 240px;
    /* トップからタイトルまでの余白 */
    padding-bottom: 60px;
    /* タグから本文までの余白 */
}

/* タイトル */
.yoimachi-archive-title {
    font-family: "Hiragino Mincho ProN", "HiraMinProN-W6", "Yu Mincho", serif;
    font-size: 24px;
    font-weight: 600;
    color: #493d37;
    letter-spacing: 0.05em;
    margin-bottom: 50px;
}

/* カテゴリーナビ（4列固定レイアウト） */
.yoimachi-cat-nav {
    display: flex;
    flex-wrap: wrap;
    /* 折り返し許可 */
    justify-content: flex-start;
    /* 左詰め（隙間計算済みなのでキレイに並ぶ） */
    gap: 10px;
    /* ★ボタン同士の隙間：縦横10px */

    margin: 0 auto 25px;
    /* 中央配置 & 下の余白 */
    padding: 0;
    list-style: none;
    width: 100%;
    /* 親要素いっぱい */
}

/* リストアイテム（計算で幅を決める） */
.yoimachi-cat-nav li {
    /* (100% - 隙間10pxが3つ分) ÷ 4列 */
    width: calc((100% - 30px) / 4);
    box-sizing: border-box;
}

.yoimachi-cat-nav-index li {
    width: calc((100% - 20px) / 3);
}

/* リンクボタンのデザイン */
.yoimachi-cat-nav a {
    display: flex;
    justify-content: center;
    align-items: center;
    /* 文字を上下左右中央に */

    background-color: #fff;
    /* 背景白 */
    width: 100%;
    /* liの幅いっぱい */
    height: auto;
    /* 高さはパディングで決める（または固定） */
    min-height: 50px;
    /* 最低限の高さ確保 */

    /* ★文字に対する余白：上下10px 左右は成り行き */
    padding: 15px 10px;

    font-family: "Hiragino Mincho ProN", "HiraMinProN-W3", "Yu Mincho", serif;
    font-size: 16px;
    font-weight: 500;
    color: #7b7b7b;
    text-decoration: none;
    transition: opacity 0.3s;
    line-height: 1.2;
    /* 2行になっても大丈夫なように */
    box-sizing: border-box;
}

.yoimachi-cat-nav a:hover {
    opacity: 0.7;
}

/* --- スマホ対応（2列にする） --- */
@media screen and (max-width: 768px) {
    .yoimachi-cat-nav li {
        /* スマホでは (100% - 隙間10pxが1つ分) ÷ 2列 */
        width: calc((100% - 10px) / 2);
    }
}

/* タグナビ */
.yoimachi-tag-nav {
    display: flex;
    justify-content: center;
    gap: 1.5em;

    font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
    font-size: 16px;
    /* ★タグフォントサイズ 16px */
    font-weight: 500;
    /* Medium */
    color: #7b7b7b;
}

.yoimachi-tag-nav a {
    color: inherit;
    text-decoration: none;
}


/* ==========================================================================
   記事リスト（3列カード）PC版デザイン
   ========================================================================== */

/* リスト全体のグリッド設定 */
.yoimachi-post-list {
    display: grid;
    /* 300pxのカードを3枚並べる */
    grid-template-columns: repeat(3, 300px);
    /* ★カード間の余白：縦横50px */
    gap: 50px;

    /* コンテンツ幅1000pxに対して中央揃え（計算上ピッタリですが念のため） */
    justify-content: center;
    margin-bottom: 120px;
}

/* ==========================================================================
   ページャー（paginate_links / type=list）
   ========================================================================== */
ul.page-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 50px;
    list-style: none;
    padding: 0;
    margin: 0 0 160px;
}

ul.page-numbers::before,
ul.page-numbers::after {
    content: "-";
    display: inline-block;
    line-height: 1;
}

ul.page-numbers li {
    margin: 0;
    padding: 0;
}

ul.page-numbers a,
ul.page-numbers span {
    display: inline-block;
}

@media screen and (max-width: 768px) {
    ul.page-numbers {
        column-gap: 4.62vw;
        margin-bottom: 27.69vw;
        font-size: 3.08vw;
    }

    ul.page-numbers a,
    ul.page-numbers span {
        padding-top: 1.54vw;
        padding-bottom: 1.54vw;
    }
}

/* カード全体 */
.yoimachi-card {
    display: flex;
    flex-direction: column;
    width: 300px;
    /* ★画像の幅に合わせる */
}

.yoimachi-card-link {
    text-decoration: none;
    color: #493d37;
    display: block;
}

/* -------------------------------------------------------
   ① アイキャッチ画像エリア
   ------------------------------------------------------- */
.yoimachi-card-thumb {
    position: relative;
    width: 300px;
    /* ★幅300px */
    height: 200px;
    /* ★高さ200px */
    overflow: hidden;

    /* ★画像とタイトルの余白：20px */
    margin-bottom: 20px;
}

.yoimachi-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* トリミングして埋める */
    vertical-align: bottom;
    transition: transform 0.5s;
}

.yoimachi-card-link:hover .yoimachi-card-thumb img {
    transform: scale(1.05);
    /* ホバー時の演出 */
}

/* 画像上のカテゴリーラベル */
.yoimachi-card-cat {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #fff;

    /* ★フォント：游明朝 13px Medium */
    font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
    font-size: 13px;
    font-weight: 500;
    color: #493d37;

    /* ★余白：上下7px 左右10px */
    padding: 7px 10px;
    line-height: 1;
}

/* -------------------------------------------------------
   ② タイトル
   ------------------------------------------------------- */
.yoimachi-card-title {
    /* ★フォント：游明朝 18px */
    font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
    font-size: 18px;
    font-weight: 600;
    /* 太さはバランスを見て調整（W6相当） */
    line-height: 1.5;

    /* ★タイトルとテキストの余白：30px */
    margin-bottom: 30px;
    margin-top: 0;
}

/* -------------------------------------------------------
   ③ テキスト（抜粋文）
   ------------------------------------------------------- */
.yoimachi-card-excerpt {
    /* ★フォント：游明朝 15px */
    font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
    font-size: 15px;
    line-height: 1.8;
    color: #493d37;

    /* ★テキストとタグの余白：30px */
    margin-bottom: 30px;
}

/* -------------------------------------------------------
   ④ タグ
   ------------------------------------------------------- */
.yoimachi-card-tag {
    /* ★フォント：游明朝 14px */
    font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
    font-size: 14px;
    color: #999;
    /* 色指定がなければ薄いグレーで */
}

.yoimachi-card-tag a {
    color: inherit;
    text-decoration: none;
}

/* ==========================================================================
   一覧ページ スマホ版（カンプ650px基準 / コンテンツ570px）
   ========================================================================== */
@media screen and (max-width: 768px) {

    /* -------------------------------------------------------
       全体レイアウト
       ------------------------------------------------------- */
    /* コンテンツ幅570px確保 (左右余白 40px = 6.15vw) */
    .yoimachi-wrapper {
        padding-left: 6.15vw;
        padding-right: 6.15vw;
    }

    /* -------------------------------------------------------
       ヘッダーエリア
       ------------------------------------------------------- */
    .yoimachi-archive-header {
        padding-top: 36.92vw;
        /* ★トップ〜タイトル：240px */
        padding-bottom: 0;
        /* 下余白はタグ側で制御 */
    }

    /* タイトル */
    .yoimachi-archive-title {
        font-size: 5.23vw;
        /* ★34px */
        margin-bottom: 10.77vw;
        /* ★タイトル〜カテゴリ：70px */
    }

    /* カテゴリーナビ（3列に変更） */
    .yoimachi-cat-nav {
        gap: 1.54vw;
        /* 隙間10px */
        margin-bottom: 6.15vw;
        /* ★カテゴリ〜タグ：40px */
        justify-content: center;
        /* 最後の行を中央寄せ */
    }

    .yoimachi-cat-nav li {
        /* 3列並び： (100% - 隙間2つ分) ÷ 3 */
        width: calc((100% - 3.08vw) / 3);
    }

    .yoimachi-cat-nav a {
        font-size: 3.08vw;
        /* ★20px */
        padding: 2.3vw 0;
        /* 上下パディング調整 */
        min-height: auto;
        /* 高さ制限解除 */
    }

    /* タグリスト */
    .yoimachi-tag-nav {
        font-size: 3.08vw;
        /* ★20px */
        margin-bottom: 13.08vw;
        /* ★タグ〜画像（カード）：85px */
        flex-wrap: wrap;
        /* 折り返し許可 */
    }

    /* -------------------------------------------------------
       記事リスト（2列カード）
       ------------------------------------------------------- */
    .yoimachi-post-list {
        /* 2列グリッドに変更 */
        grid-template-columns: repeat(2, 1fr);

        /* ★カード間の左右余白：10px */
        gap: 9.23vw 1.54vw;
        /* 上下60px(仮)  左右10px */

        margin-bottom: 18.46vw;
        /* ページ下部の余白 */
    }

    /* カード幅設定（1frで自動計算されるが念のため） */
    .yoimachi-card {
        width: 100%;
    }

    /* ① アイキャッチ画像 */
    .yoimachi-card-thumb {
        width: 100%;
        height: auto;

        /* ★画像サイズ：w280 h185 (比率 280:185) */
        aspect-ratio: 280 / 185;

        margin-bottom: 4.62vw;
        /* ★画像〜タイトル：30px */
    }

    /* カテゴリーラベル（画像上） */
    .yoimachi-card-cat {
        font-size: 11px;
        /* 少し小さく調整 */
        padding: 1.2vw 2vw;
        /* ★上下左右8px相当 */
    }

    /* ② カードタイトル */
    .yoimachi-card-title {
        font-size: 3.38vw;
        /* ★22px */
        margin-bottom: 4.62vw;
        /* ★タイトル〜抜粋：30px */
    }

    /* ③ 抜粋文 */
    .yoimachi-card-excerpt {
        font-size: 3.08vw;
        /* ★20px */
        line-height: 1.6;
        margin-bottom: 4.62vw;
        /* ★抜粋〜タグ：30px */
    }

    /* ④ カード下タグ */
    .yoimachi-card-tag {
        font-size: 2.77vw;
        /* ★18px */
    }
}

/* =======================================================
   GridレイアウトでWordPressの標準設定を完全無効化
   ======================================================= */

/* ① ギャラリー全体枠：幅730px固定・中央寄せ・強制2列 */
.yoimachi-article-content .wp-block-gallery {
    display: grid !important;
    /* ★Flexboxを無効化してGridを使う */
    grid-template-columns: 1fr 1fr !important;
    /* ★強制的に同じ幅の2列にする */
    gap: 10px !important;
    /* 画像と画像の隙間 */
    width: 100% !important;
    max-width: 730px !important;
    /* ★PCでの幅を絶対に730pxで止める */
    margin: 0 auto 60px auto !important;
    /* 左右autoで中央配置 ＆ 下の余白 */
    padding: 0 !important;
}

/* ② ギャラリー内の各画像枠：WPの勝手な余白を消す */
.yoimachi-article-content .wp-block-gallery .wp-block-image {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    display: flex !important;
    /* 画像同士の高さを揃える保険 */
}

/* ③ 画像そのもの：枠いっぱいに広げる */
.yoimachi-article-content .wp-block-gallery .wp-block-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    /* 比率を保って綺麗に埋める */
}

/* ④ スマホ対応：1列にして100%幅にする */
@media screen and (max-width: 768px) {
    .yoimachi-article-content .wp-block-gallery {
        grid-template-columns: 1fr !important;
        /* ★スマホは強制1列 */
        max-width: 100% !important;
        /* 幅いっぱい */
        gap: 5vw !important;
        margin-bottom: 10vw !important;
    }
}

/* =======================================================
   記事内の「グリッド」要素の上下の隙間を詰める
   ======================================================= */

/* グリッドレイアウトの隙間（gap）を上書き */
.yoimachi-article-content .is-layout-grid {
    row-gap: 10px !important;
    /* ★上下の隙間（カンプに合わせて 10px や 20px に調整してください） */
    column-gap: 10px !important;
    /* 左右の隙間（先ほどのギャラリーと揃えるなら40px） */
}

/* もし「カラム」ブロックを縦に並べている場合の保険 */
.yoimachi-article-content .wp-block-columns {
    margin-bottom: 10px !important;
    /* ★カラムブロック同士の上下の隙間 */
}

/* グリッドの中に入っている各要素の「勝手につく下余白」を強制リセット */
.yoimachi-article-content .is-layout-grid>*,
.yoimachi-article-content .wp-block-columns>.wp-block-column {
    margin-bottom: 0 !important;
}

/* スマホ対応（スマホで1列になった時の上下の隙間） */
@media screen and (max-width: 768px) {
    .yoimachi-article-content .is-layout-grid {
        grid-template-columns: 1fr !important;
        /* ★ここを追加！スマホは強制1列にします */
        row-gap: 2vw !important;
        /* スマホ時の上下の隙間 */
    }

    .yoimachi-article-content .wp-block-columns {
        margin-bottom: 5vw !important;
    }
}