@charset "UTF-8";

/* ----------------------------------------------------
   Base Reset & Variables
------------------------------------------------------- */
html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, address, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
    box-sizing: border-box;
}

/* ★横スクロールを確実に防ぐ保護策 */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    background-color: #fff;
    margin: 0;
    padding-top: 40px; 
    font-size: 100%;
    color: #111;

    /* フォントスタック */
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        "Helvetica Neue",
        Arial,
        "Hiragino Sans",
        "Hiragino Kaku Gothic ProN",
        "Yu Gothic Medium",
        "Yu Gothic",
        YuGothic,
        Meiryo,
        sans-serif,
        "Apple Color Emoji",
        "Segoe UI Emoji",
        "Segoe UI Symbol";

    /* 日本語カーニング最適化 */
    -webkit-font-feature-settings: "palt";
    font-feature-settings: "palt";

    /* 滑らか表示 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;

    /* 可読性改善 */
    line-height: 1.7;
    letter-spacing: 0.02em;

    /* 折り返し改善 */
    overflow-wrap: break-word;
    word-break: normal;
}

a:link {
    color: #b39ddb;
    text-decoration: none;
}

a:visited {
    color: #7150A8;
    text-decoration: none;
}

a:hover {
    color: #6495ed;
    text-decoration: underline;
}

/* ----------------------------------------------------
   HEADER
------------------------------------------------------- */
#header-logo {
    background-color: rgba(255, 255, 255, 0.8);
    margin: 0 auto;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;

    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.logo-global {
    margin: 0 auto;
    height: 37px;
    width: auto;
    display: block;
}

/* ----------------------------------------------------
   Navigation PC
------------------------------------------------------- */
.container-wrap {
    width: 100%;
    margin: 0;
    padding: 0;
}

.main-navigation-wrap {
    background-color: #FFF;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    display: block;
    text-align: center;
}

#main-navigation {
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
    padding: 0;
    border: 0;
    font-size: 11px;
    clear: both;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#menu-globalmenu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    border: 0;
}

#main-navigation .sf-menu li {
    margin: 0;
    position: relative;
    border: 0;
}

#main-navigation .sf-menu a {
    margin: 0;
    padding: 0 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    text-transform: capitalize;
    font-weight: 800;
    color: #000;
    text-decoration: none;
    border-right: 1px solid #EEE;
}

#main-navigation .sf-menu a:hover {
    background-color: #b39ddb;
    color: #FFF;
}

#menu-search {
    padding: 0;
}

#menu-searchform {
    margin: 0;
    display: flex;
    align-items: center;
}

#menu-searchform input[type='text'] {
    background: #FFF;
    color: #000;
    width: 120px;
    border: 1px solid #333;
    height: 25px;
    padding: 0 5px;
}

#menu-searchform input[type='text']:focus {
    width: 180px;
    border-color: #333;
    outline: none;
}

#menu-searchform input.menu-search-submit {
    overflow: hidden;
    text-indent: 100%;
    white-space: nowrap;
    cursor: pointer;
    display: block;
    width: 25px;
    height: 25px;
    background: url(/wp-content/themes/mesocolumn/images/search-button.png) no-repeat 0 0;
    border: 0;
    margin-left: 4px;
}

#menu-searchform label {
    display: none;
}

/* SPナビゲーション */
@media screen and (max-width: 767px) {
    #main-navigation {
        width: 100%;
        margin: 0 auto;
        padding: 0;
        border: 0;
        font-size: 11px;
        clear: both;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box; /* 枠線等によるはみ出し防止 */
    }

    #main-navigation::-webkit-scrollbar {
        height: 3px;
    }
    #main-navigation::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 3px;
    }

    .sf-menu {
        margin: 0;
        padding: 0;
        list-style: none;
        line-height: 1.0;
        border: 0;
        display: inline-flex;
    }

    .sf-menu li {
        margin: 0 2px 0 0;
        position: relative;
        border: 0;
        flex-shrink: 0;
    }
}

/* ----------------------------------------------------
   Article Typography & Colors (MusicVoice Style)
------------------------------------------------------- */
.entry-header {
    max-width: 600px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 0.5em !important;
    margin-bottom: 1em !important;
}

.header-cat {
    margin: 0.5em 0 1em 0 !important;
    color: #555 !important;
    font-size: 1.0rem !important;
    text-align: center;
}

h1.archive-title {
    font-size: 1.55rem !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    color: #333 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 0.5em !important;
    margin-bottom: 0.5em !important;
    letter-spacing: -0.01em;
    text-align: center;
}

h1.search-title {
    font-size: 1.55rem !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    color: #333 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 0.5em !important;
    margin-bottom: 0.5em !important;
    letter-spacing: -0.01em;
    text-align: center;
}


h1.entry-title {
    font-size: 1.65rem !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    color: #111 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 0.5em !important;
    margin-bottom: 0.5em !important;
    letter-spacing: -0.01em;
    text-align: left;
}

h2.post-subtitle {
    font-size: 0.9rem;
    font-weight: 300;
    color: #777;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 0.5em;
    margin-bottom: 1em;
    line-height: 1.4;
}

.entry-content h3 {
    max-width: 600px !important;
    font-size: 1.15rem;
    font-weight: 700;
    color: #222222;
    border-bottom: 1px solid #9370db;
    padding-bottom: 0.3em;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
}

.entry-content,
.post-inner,
.single-post .entry,
.post-single .post-entry {
    clear: both;
    font-size: 1rem !important;
    line-height: 1.85 !important;
    color: #333333 !important;
    letter-spacing: 0.02em;
}

.entry-content iframe {
    display: block;
    margin: 0 auto; 
    width: 100%;
    max-width: 560px;
    aspect-ratio: 16 / 9;
}



/* sp */
@media screen and (max-width: 767px) {
    .entry-content iframe {
        width: 100% !important; /* 幅指定オーバーフローを解消 */
        max-width: 100% !important;
        aspect-ratio: 16 / 9;
    }
    
h1.archive-title {
    font-size: 1.1rem !important;
    line-height: 1.3 !important;
    }
    
h1.search-title {
    font-size: 1.1rem !important;
    line-height: 1.3 !important;
    }

h1.entry-title {
    font-size: 1.3rem !important;
    line-height: 1.3 !important;
    }

h2.post-subtitle {
    font-size: 0.9rem;
    line-height: 1.2 !important;
    }

}

.entry-content p {
    margin-bottom: 1.8em !important;
}

.entry-content a,
.entry-content p a {
    color: #1d63b8 !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.entry-content a:hover {
    color: #0f3d73 !important;
    text-decoration: none !important;
}

/* ====================================================
   Twenty Twenty-One専用レイアウト（PC用 / min-width: 768px）
   ==================================================== */
@media screen and (min-width: 768px) {
    .single-post .site-main {
        max-width: 1040px !important;
        margin: 0 auto !important;
        padding: 0 20px;
    }

    .single-post .entry-content,
    .single-post .entry-content > *:not(.wp-block-image):not(figure) {
        max-width: 700px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: left !important;
    }

.single-post .post-thumbnail {
        float: none !important;
        width: 100% !important;
        max-width: 850px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        margin-bottom: 20px !important;
        display: block !important;
        text-align: center !important;
    }

    .single-post .post-thumbnail img {
        width: auto !important;             /* ★幅の100%強制を解除 */
        max-width: 100% !important;        /* ★親枠を超えないように制限 */
        height: auto !important;
        display: inline-block !important;   /* ★中央寄せ（text-align: center）を効かせる */
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .single-post .entry-header {
        overflow: visible !important;
        display: block !important;
    }

    .single-post article::after,
    .single-post .site-main::after {
        content: "";
        display: block;
        clear: both;
    }

    .wp-caption {
        width: 100% !important;
        max-width: 550px !important;
        height: auto !important;
        margin-left: auto !important;
        margin-right: auto !important;
        display: block !important;
        float: none !important;
    }

    .single-post .entry-content img.size-full,
    .single-post .entry-content .wp-block-image img.size-full,
    .single-post .entry-content img {
        width: 100% !important;
        max-width: 550px !important;
        height: auto !important;
        margin-left: auto !important;
        margin-right: auto !important;
        display: block !important;
        float: none !important;
    }

    .single-post .entry-content .wp-block-image figcaption {
        width: 100% !important;
        max-width: 550px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center !important;
        font-size: 13px !important;
        display: block !important;
    }
}

/* ====================================================
   Twenty Twenty-One専用レイアウト（スマホ用 / max-width: 768px）
   ==================================================== */
@media screen and (max-width: 768px) {
    .single-post .site-main,
    .single-post .entry-content {
        width: auto !important;
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
    }

    .single-post .entry-content .wp-block-image,
    .single-post .entry-content figure.wp-block-image,
    .single-post .entry-content div.wp-block-image {
        width: auto !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        float: none !important;
        box-sizing: border-box !important;
    }

    .wp-caption {
        width: auto !important;
        max-width: 90% !important;
        height: auto !important;
        margin-left: auto !important;
        margin-right: auto !important;
        display: block !important;
        float: none !important;
        font-size: 0.75em; 
    }

    .single-post .entry-content img,
    .single-post .entry-content .wp-block-image img,
    .single-post .entry-content img.size-full {
        width: auto !important;
        max-width: 90% !important;
        height: auto !important;
        margin-left: auto !important;
        margin-right: auto !important;
        display: block !important;
        float: none !important;
        box-sizing: border-box !important;
    }

    .single-post .entry-content .wp-block-image figcaption {
        width: auto !important;
        max-width: 90% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        text-align: left !important;
        box-sizing: border-box !important;
    }
}

/* ====================================================
   アイキャッチページ
==================================================== */

.attachment .entry-content .attachment a,
.attachment .entry-content img,
.attachment .post-thumbnail img,
.attachment .entry-content {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
}


/* ====================================================
   動画ニュース枠
==================================================== */
#post-movie-news {
    margin: 0 auto;
    padding: 0 0 15px 0;
    text-align: center;
}

#post-movie-news iframe {
    margin: 0 auto;
    padding: 0;
    width: 750px;
    height: 420px;
}

/* 動画ニュース広告 */
.movienews-responsive {
    width: 100%;
    height: 210px;
    margin: 0 auto;
}

/* sp */
@media screen and (max-width: 767px) {
    #post-movie-news iframe {
        margin: 0 auto;
        padding: 0;
        width: 100% !important; /* 固定幅を解除 */
        max-width: 100% !important;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

/* ====================================================
   編集者 更新日
==================================================== */
#custom-entry-meta {
    clear: both;
    width: 650px;
    margin: 0 auto;
    padding: 10px 0 10px 0;
    font-size: 0.8em;
    text-align: center;
}

/* sp */
@media screen and (max-width: 767px) {
    #custom-entry-meta {
        width: 90%;
    }
}

/* ====================================================
   記事関連写真
==================================================== */
#post-relation-media {
    clear: both;
    width: 650px;
    margin: 0 auto;
    padding: 10px 0 20px 0;
    text-align: center;
}

#post-relation-media ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

#post-relation-media li {
    margin: 3px;
    padding: 0;
    display: inline-block;
}

#post-relation-media img {
    width: 70px;
    height: 70px;
    border: 1px solid #7150A8;
    object-fit: cover;
}

/* sp */
@media screen and (max-width: 767px) {
    #post-relation-media {
        width: 90%;
    }
}

/* ====================================================
   記事分割
==================================================== */
#wp_page_numbers {
    margin: 0 auto;
    padding: 0;
    width: 100%;
    text-align: center;
    font-size: 1.0em;
}

#wp_page_numbers ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

#wp_page_numbers a {
    text-decoration: none;
}

#wp_page_numbers li {
    display: inline-block;
    margin: 5px;
    padding: 10px 15px;
    border: 1px solid #ddd; 
    color: #bbb; 
    font-weight: 400;
}

#wp_page_numbers a li {
    border-color: #9370db;
    color: #9370db;
}

#wp_page_numbers a:hover li {
    background-color: #aaccff;
    border-color: #6495ed;
    color: #6495ed;
    text-decoration: underline;
}

/* sp */
@media screen and (max-width: 767px) {
    #wp_page_numbers li {
        padding: 5px;
        font-size: 0.8em; 
    }
}

/* ====================================================
   タグ
==================================================== */
#post-tag-wrap {
    width: 650px;
    margin: 0 auto; 
    padding: 10px 0 0 0;
    text-align: center;
}

#post-tag-wrap .post-tags a {
    display: inline-block;
    border: 1px solid #555;
    border-radius: 4px;  
    padding: 3px 10px; 
    margin: 2px 4px; 
    color: #555; 
    text-decoration: none; 
    font-size: 0.65em; 
}

#post-tag-wrap .post-tags a:hover {
    background-color: rgba(255, 255, 255, 0.2); 
    text-decoration: underline;
}

#post-tag-wrap .post-tags a::before {
    content: "#";
    margin-right: 2px;
}

/* sp */
@media screen and (max-width: 767px) {
    #post-tag-wrap {
        width: 90%;
    }
}

/* ====================================================
   関連記事
==================================================== */
#related-posts {
    width: 750px;
    margin: 0 auto;
    padding: 0;
    text-align: center;
}
    
#related-posts h3 {
    font-size: 1.1rem;
    line-height: 1.5em;
    margin: 10px 0 0 0;
    padding: 15px 0 10px 0;
}

#related-posts ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

#related-posts li {
    width: 130px;
    display: inline-block;
    vertical-align: top; 
    margin: 5px;
}

#related-posts li a {
    margin: 0 auto;
    padding: 10px;
    letter-spacing: 0;
    font-size: 0.9rem;
    line-height: 1.2em;
    text-decoration: none;
    font-weight: 400;
    display: block;
    text-align: left;
}

#related-posts li a:link {
    border-color: #9370db;
    color: #9370db;
}

#related-posts li a:visited {
    border-color: #513380;
    color: #513380;
}

#related-posts li a:hover {
    border-color: #6495ed;
    color: #6495ed;
    text-decoration: underline;
}

#related-posts img {
    width: 110px;
    height: 110px;
    object-fit: cover;
}

/* sp */
@media screen and (max-width: 767px) {
    #related-posts {
        width: 90%;
        margin: 0 auto;
        padding: 0;
        text-align: center;
    }
}

/* ====================================================
   前後の記事
==================================================== */
.nav-links {
    width: 750px;
    margin: 0 auto;
    padding: 0 0 30px 0;
    text-align: center;
}

.meta-nav {
    width: 650px;
    margin: 0 auto;
    padding: 0;
    text-align: left;
}

/* sp */
@media screen and (max-width: 767px) {
    .nav-links {
        width: 90%;
    }

    .meta-nav {
        width: 90%;
    }
}

/* ------------ footer --------------- */
#colophon {
    width: 100%;
    height:100px;
    margin: 0 auto;
    padding: 20px;
    background-color: #b39ddb;
}

#colophon a,
#colophon a:visited {
    color: #ffffff;
}

#colophon a:hover {
    color: #ffffff;
    opacity: 0.8; 
    text-decoration: underline;
}

#colophon ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

#colophon li {
    margin: 0;
    padding: 10px;
    font-size: 0.9rem;
    line-height: 1.2em;
    float: left;
}

/* ====================================================
   記事一覧 アーカイブ
==================================================== */
#archive-posts {
    width: auto;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
    text-align: center;
}

#archive-posts ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

#archive-posts li {
    width: 210px;
    display: inline-block;
    vertical-align: top; 
    margin: 5px;
    padding: 0;
    text-align: left;
}

#archive-posts img {
    width: 208px !important;
    height: 130px !important;
    object-fit: cover !important;
    object-position: center top !important; 
    display: block;
    border: 1px solid #CCC;
    margin: 0 0 8px 0; /* 画像下に少しだけ余白を追加 */
    padding: 0;
}

#archive-posts a {
    display: block;
    text-decoration: none;
    color: inherit;
    line-height: 1.1 !important;
}

#archive-posts strong {
    display: inline !important;
    font-size: 1.0rem;
    font-weight: 400;
    margin: 0;
    padding: 0;
}

#archive-posts li a:link {
    color: #513380;
}

#archive-posts li a:visited {
    color: #917bb9;
}

#archive-posts li a:hover {
    color: #6495ed;
    text-decoration: underline;
}

#archive-posts span.archive-posts-category {
    display: inline !important;
    font-size: 0.9rem;
    color: #333;
    margin-right: 5px;
}

#archive-posts span.archive-posts-time {
    display: block !important;
    font-size: 0.7rem;
    line-height: 1.0em;
    color: #888;
    margin-top: 5px;
}
/* sp */
@media screen and (max-width: 767px) {
    #archive-posts {
        width: 90%;
        margin: 0 auto;
        padding: 0;
        text-align: left;
    }

    #archive-posts li {
        width: 100%;
        list-style: none;
        margin-bottom: 15px;
    }

    #archive-posts a {
        display: block;
        text-decoration: none;
        color: inherit;
        line-height: 1.0 !important; 
    }

    #archive-posts li::after {
        content: "";
        display: block;
        clear: both;
    }

    #archive-posts img {
        width: 80px !important;
        height: 80px !important;
        float: left;
        margin-right: 15px; 
        margin-bottom: 5px;
    }

    #archive-posts strong {
        display: inline !important;
        font-size: 1.0rem;
        font-weight: 400;
        padding: 0;
        margin: 0;
    }
}


/* ====================================================
   固定ページ
   ==================================================== */
    .content-page-wrap {
        max-width: 1040px !important;
        margin: 0 auto !important;
        padding: 0 20px;
    }

    .content-page-wrap > *:not(.wp-block-image):not(figure) {
        max-width: 700px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: left !important;
    }
    
    .content-page-wrap p {
    margin-bottom: 1.8em !important;
    }


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

    .content-page-wrap 
        width: auto !important;
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
    }


}

/* ====================================================
  トップページお知らせ
   ==================================================== */
   
.top-info-box {
    display: block !important;
    width: 90% !important;
    max-width: 600px !important;
    margin: 24px auto !important;
    padding: 0 !important;
    text-align: center !important;
    box-sizing: border-box !important;
    border-top: 1px solid #ddd !important;
    border-bottom: 1px solid #ddd !important;
    float: none !important;
}

/* リンクテキスト */
.top-info-box a {
    display: block !important;
    width: 100% !important;
    padding: 12px 0 !important;
    color: #555 !important;
    font-size: 0.85em !important;
    line-height: 1.6 !important;
    text-align: center !important;
    text-decoration: none !important;
    word-break: break-all !important;
    box-sizing: border-box !important;
}


/* ====================================================
  写真ニュース
   ==================================================== */
   
#photo-archive-grid {
    width: auto;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
    text-align: center;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

#photo-archive-grid .photo-item {
    overflow: hidden;
    border-radius: 8px; /* 角丸（不要なら削除可） */
    background-color: #f5f5f5;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* ホバー時のちょっとした演出（PC向け） */
#photo-archive-grid .photo-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 画像リンクブロック */
#photo-archive-grid .photo-item a {
    display: block;
    width: 100%;
    height: 100%;
}

/* 画像自体のトリミング設定 */
#photo-archive-grid .photo-item img {
    width: 100%;
    height: 150px; /* 画像の高さ */
    object-fit: cover; /* 縦横比を崩さず枠いっぱいに収める */
    object-position: center;
    display: block;
}


/* sp */
@media screen and (max-width: 767px) {
#photo-archive-grid {
        width: 90%;
        margin: 0 auto;
        padding: 0;
}

#photo-archive-grid .photo-item img {
    width: 100px;
    height: 100px; /* 画像の高さ */
    object-fit: cover; /* 縦横比を崩さず枠いっぱいに収める */
    object-position: center;
    display: block;
}

}


/* ====================================================
  写真個別ページ
   ==================================================== */
   
   .type-attachment .entry-content figure.wp-block-image img {
    height: auto !important;
}


h1.photo-title {
    font-size: 1.65rem !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    color: #111 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 0.5em !important;
    margin-bottom: 0.5em !important;
    letter-spacing: -0.01em;
    text-align: left;
}
   
 .photo-content {
        max-width: 700px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: left !important;
    }

 .photo-content .post-thumbnail {
        float: none !important;
        width: 100% !important;
        max-width: 700px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        margin-bottom: 20px !important;
        display: block !important;
        text-align: center !important;
    }

 .photo-content .post-thumbnail img {
        width: auto !important;
        max-width: 100% !important;
        height: auto !important;
        display: inline-block !important;*/
        margin-left: auto !important;
        margin-right: auto !important;
    }

 .photo-content {
    overflow: visible !important;
        display: block !important;
    }

 .photo-header {
    max-width: 600px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 0.5em !important;
    margin-bottom: 1em !important;
    }
    
    .wp-caption {
        width: 100% !important;
        max-width: 700px !important;
        height: auto !important;
        margin-left: auto !important;
        margin-right: auto !important;
        display: block !important;
        float: none !important;
    }

    .photo-content img.size-full,
    .photo-content .wp-block-image img.size-full,
    .photo-content img {
        width: 100% !important;
        max-width: 700px !important;
        height: auto !important;
        margin-left: auto !important;
        margin-right: auto !important;
        display: block !important;
        float: none !important;
    }

    .photo-content .wp-block-image figcaption {
        width: 100% !important;
        max-width: 700px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center !important;
        font-size: 13px !important;
        display: block !important;
    }

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

h1.photo-title {
    font-size: 1.3rem !important;
    line-height: 1.3 !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
}
   


    .photo-content {
        width: auto !important;
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
    }

    .photo-content .wp-block-image,
    .photo-content figure.wp-block-image,
    .photo-content div.wp-block-image {
        width: auto !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        float: none !important;
        box-sizing: border-box !important;
    }

    .wp-caption {
        width: auto !important;
        max-width: 90% !important;
        height: auto !important;
        margin-left: auto !important;
        margin-right: auto !important;
        display: block !important;
        float: none !important;
        font-size: 0.75em; 
    }

    .photo-content img,
    .photo-content .wp-block-image img,
    .photo-content img.size-full {
        width: auto !important;
        max-width: 90% !important;
        height: auto !important;
        margin-left: auto !important;
        margin-right: auto !important;
        display: block !important;
        float: none !important;
        box-sizing: border-box !important;
    }

    .photo-content .wp-block-image figcaption {
        width: auto !important;
        max-width: 90% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        text-align: left !important;
        box-sizing: border-box !important;
    }
}



/* ====================================================
  ページネーション
   ==================================================== */


/* ページネーション（数字ナビ）の共通スタイル */
.common-pagination {
    text-align: center;
    margin: 40px 0;
}

.common-pagination ul.page-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.common-pagination .page-numbers li a,
.common-pagination .page-numbers li span {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 4px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    background-color: #fff;
}

/* ホバー時（PC向け） */
.common-pagination .page-numbers li a:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
}

/* 現在地（アクティブページ） */
.common-pagination .page-numbers li span.current {
    background-color: #b39ddb;
    color: #fff;
    border-color: #937dab;
}