@charset "utf-8";
/*===============================================
 ブログ 共通
===============================================*/
body {font-family: initial; margin: 0; padding: 0; font-size: 16px;}
ib {display: inline-block;}
img {width: 100%; height: auto; vertical-align: middle;}
a {text-decoration: none;}
a:hover {text-decoration: none;}
a:hover img {opacity: 0.8; transition: opacity 0.3s;}

.container {width: 100%; max-width: 980px; margin: 0 auto;}

.bread-crumb ul {list-style-type: none;}

.desktop {display: block;}
.smartphone {display: none;}

html {scroll-behavior: auto;}
main h2, main h3 {scroll-margin-top: 80px;}

.row-ar {display: flex; flex-wrap: wrap;}
.col-12 {-ms-flex: 0 0 100%; flex: 0 0 100%; max-width: 100%;}
.col-6 {-ms-flex: 0 0 50%; flex: 0 0 50%; max-width: 50%;}
.col-4 {-ms-flex: 0 0 33.333333%; flex: 0 0 33.333333%; max-width: 33.333333%;}
.col-3 {-ms-flex: 0 0 25%; flex: 0 0 25%; max-width: 25%;}


@media screen and (max-width: 768px) {
	.desktop {display: none;}
	.smartphone {display: block;}
	.col-6 {-ms-flex: 0 0 100%; flex: 0 0 100%; max-width: 100%;}
	.col-4, .col-3 {-ms-flex: 0 0 50%; flex: 0 0 50%; max-width: 50%;}
}

/*===============================================
 グローバルナビゲーション
===============================================*/
#site-header {position: relative; width: 100%; height: 70px; background-color: rgba(255, 255, 255, 1.0); box-shadow: none; z-index: 999; transition: all 0.4s ease;}

/* スクロール後の固定ヘッダー */
#site-header.fixed-header {position: fixed; top: 0; left: 0; background-color: rgba(255, 255, 255, 0.9); box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px; animation: fadeInHeader 0.5s ease forwards;}

/* フェードインアニメーション */
@keyframes fadeInHeader {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-inner {position: relative; width: 100%; height: 70px; max-width: 1280px; margin: 0 auto;}
.site-logo {position: absolute; top: 50%; left: 15px; transform: translateY(-50%); -webkit-transform: translateY(-50%); -ms-transform: translateY(-50%);}
.site-logo a img {max-width: 200px;}
.global-nav {float: right;}

/* --- PC用 --- */
.pc-nav {display: block;}
.sp-menu-btn, .sp-nav {display: none;}
.pc-nav .global-menu {display: flex; gap: 30px; list-style: none; margin: 0; padding: 0;}
.pc-nav .global-menu li a {display: block; font-size: 16px; font-weight: 500; color: #333; padding: 0 15px; transition: color 0.3s ease; position: relative; line-height: 70px;}
.pc-nav .global-menu li ul li a {line-height: normal; padding: 8px 15px; display: block; color: #333; font-size: 14px; text-decoration: none;}
.pc-nav .global-menu li ul li a:hover {background-color: rgba(123, 127, 129, 0.95);}
.pc-nav .global-menu li ul li a span {font-size: 12px;}
#site-header.scrolled .pc-nav .global-menu li a {color: #333;}
.pc-nav li ul {right: auto;}
.pc-nav li:last-child > ul {left: auto; right: 0;}

/* サブメニュー初期状態は非表示 */
.pc-nav ul ul {display: none; position: absolute; top: 100%; left: 0; background-color: rgba(255, 255, 255, 0.95); padding: 0; min-width: 200px; border-radius: 0 0 6px 6px; z-index: 9999; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25), 0 8px 10px rgba(0, 0, 0, 0.15); animation: fadeInSubMenu 0.25s ease forwards;}

/* ホバー時にサブメニュー表示 */
.pc-nav li:hover > ul {display: block;}

/* 親メニューのデザイン */
.pc-nav > ul > li {position: relative; display: inline-block;}

/* サブメニューアイテム */
.pc-nav ul ul li {display: block; padding: 0;}
.pc-nav ul ul li a {display: block; padding: 10px 15px; font-size: 14px; color: #333; text-decoration: none; line-height: normal; transition: all 0.3s ease;}
.pc-nav ul ul li a:hover {background-color: rgba(51, 51, 51, 0.08); padding-left: 20px; color: #fff;}

/* フェードイン＋下からスライドイン */
@keyframes fadeInSubMenu {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================
   孫メニュー（第3階層）
   =========================== */
.pc-nav ul ul ul {
    display: none;
    position: absolute;
    top: 0; /* 子メニューの上端を基準にする */
    left: 100%; /* デフォルトは右側展開 */
    background-color: rgba(51, 51, 51, 0.95);
    padding: 0;
    min-width: 200px;
    border-radius: 0 6px 6px 0;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25),
                0 6px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    animation: fadeInSubMenu 0.25s ease forwards;
}

.pc-nav > ul > li:nth-last-child(-n+2) ul ul ul {
    left: auto;
    right: 100%;
    border-radius: 6px 0 0 6px;
}

@media screen and (max-width: 1000px) {
    .pc-nav ul ul ul {
        left: auto !important;
        right: 100% !important;
        border-radius: 6px 0 0 6px;
    }
}

/* =====================================
   孫メニューの位置を子メニューの中央揃えにする
   ===================================== */
.pc-nav ul ul li {position: relative;}
.pc-nav ul ul ul {top: 0; transform: translateY(0);}
.pc-nav ul ul li:hover > ul {display: block;}

/* --- SP用 --- */
#sp-nav {position: fixed; top: 0; right: 0; width: 70%; height: 100vh; background-color: rgba(255, 255, 255, 0.95); padding-top: 50px; box-shadow: -2px 0 8px rgba(0, 0, 0, 0.2); z-index: 1020; display: none; opacity: 0; transform: translateX(100%); pointer-events: none; transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.77, 0, 0.175, 1);}
#sp-nav.active {display: block; transform: translateX(0); opacity: 1; pointer-events: auto;}

/* 背景のぼかし用オーバーレイ */
#menu-overlay {position: fixed; top: 0; left: 0; width: 100%; height: 100%; backdrop-filter: blur(5px); background-color: rgba(0, 0, 0, 0.3); opacity: 0; visibility: hidden; transition: opacity 0.55s ease, visibility 0.55s ease; z-index: 998; /* メニューより下、コンテンツより上 */}

/* メニューが開いたときにオーバーレイを表示 */
#menu-overlay.active {opacity: 1; visibility: visible;}

.sp-menu {list-style: none; margin: 0; padding: 20px;}
.sp-menu li {text-align: left;}
.sp-menu li a {display: block; padding: 5px 0; font-size: 14px; font-weight: 500; color: #333; text-decoration: none;}

#sp-nav .sub-menu {display: none; list-style-type: none; padding-left: 15px; background-color: rgba(51, 51, 51, 0.05);}

/* 矢印アイコン（開閉用） */
#sp-nav li.menu-item-has-children {position: relative;}
#sp-nav li.menu-item-has-children > .submenu-toggle {position: absolute; right: 15px; top: 5px; width: 8px; height: 8px; display: inline-block; cursor: pointer; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); transition: transform 0.3s ease;}

/* 開いた時は矢印を下向きに */
#sp-nav li.open > .submenu-toggle {transform: rotate(-135deg);}

/* サブメニュー＆孫メニューの初期非表示 */
#sp-nav ul ul {
    display: none;
    padding-left: 15px;
    background-color: #f9f9f9;
}

/* 孫メニューも同じ見た目で統一 */
#sp-nav ul ul ul {
    background-color: #f0f0f0;
}

/* --- ハンバーガーボタン --- */
.sp-menu-btn {display: none; flex-direction: column; justify-content: space-between; width: 28px; height: 22px; cursor: pointer; position: absolute; right: 20px; top: 25px; z-index: 1001;}
.sp-menu-btn span {display: block; height: 2px; background: #000; border-radius: 3px; transition: all 0.3s ease;}

/* 開閉時の全体フェード */
body.sp-menu-open {overflow: hidden;}
.sp-menu-btn {transition: transform 0.3s ease;}
.sp-menu-btn.active {transform: rotate(90deg); top: 26px; right: 16px;}


/* 開閉時のバツアイコン */
.sp-menu-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.sp-menu-btn.active span:nth-child(2) {
    opacity: 0;
}
.sp-menu-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* SP時に表示 */
@media screen and (max-width: 768px) {
    .pc-nav { display: none; }
    .sp-menu-btn { display: flex; }
	#sp-nav ul ul {
        display: none; /* 初期は非表示 */
        padding-left: 15px; /* 子メニューのインデント */
        background-color: #f9f9f9;
    }

    #sp-nav li.open > ul {
        display: block; /* openクラスが付与されたときだけ表示 */
    }

    /* 孫メニュー */
    #sp-nav ul ul ul {
        padding-left: 15px;
        background-color: #f0f0f0;
    }
    .pc-nav {display: none;}
	.sp-menu-btn {display: block; position: absolute; right: 20px; top: 20px; width: 30px; height: 22px; cursor: pointer; z-index: 1021;}
    .sp-menu-btn span {margin: 7px 0; transition: 0.3s;}
    /*.sp-nav {display: none; position: fixed; top: 0; right: 0; width: 70%; height: 100%; background: #fff; box-shadow: -2px 0 5px rgba(0,0,0,0.2); padding: 20px; z-index: 1000;}*/
    .sp-nav.open {display: block;}
}


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


/*===============================================
 single-blog.php ブログ記事コンテンツ
===============================================*/
.blog-header {margin: 30px 0; padding: 0 15px;}
.blog-header h1.blog-title {font-size: 28px; margin: 0; height: auto; line-height: 1.2;}
.blog-header p.blog-subtitle {font-size: 20px; margin: 5px 0 30px;}

.blog-content h2 {position: relative; z-index: 1; font-family: initial; font-size: 24px; margin: 30px 0 20px; line-height: 1.4; background-color: #0ba29a; color: #fff; padding: 0.5em 1em; overflow: hidden;}
.blog-content h2::after {content: ''; position: absolute; bottom: -30px; right: -120px; background-color: #103937; opacity: 0.3; transform: rotate(-65deg); width: 200px; height: 100px; z-index: 0;}
.blog-content h3 {font-size: 20px; font-weight: 600; margin: 20px 0; line-height: 1.4; position: relative; padding-bottom: 0.25em; border-bottom: 3px solid #aaa;}
.blog-content h3::after {content: ''; background-color: #0ba29a; width: 3em; height: 3px; position: absolute; bottom: -3px; left: 0; z-index: 1;}
.blog-content p {margin: 0 0 10px; line-height: 1.8; letter-spacing: 0.06em;}
.blog-content a {color: #0088cc; transition: color 0.3s;}
.blog-content a:hover {color: #ff6e00;}

.blog-content .wp-block-list {list-style-type: none; padding: 20px 20px 20px 46px; border-top: 1px solid #d2d2d7; border-bottom: 1px solid #d2d2d7;}
.blog-content .wp-block-list li {position: relative; line-height: 1.8; letter-spacing: 0.06em; margin-bottom: 10px;}
.blog-content .wp-block-list li:last-child {margin-bottom: 0;}
.blog-content .wp-block-list li:before {content: ''; position: absolute; top: 2px; left: -24px; width: 18px; height: 18px; background: url('https://minamiterrace-dc.net/blog/wp-content/themes/original/images/blog/li-dot.webp') no-repeat center center; background-size: contain;}
.blog-content img.size-medium {width: 50%;}


@media screen and (max-width: 768px) {
	.blog-header {margin: 15px 0;}
	.blog-header h1.blog-title {font-size: 22px;}
	.blog-header p.blog-subtitle {font-size: 13px; margin: 5px 0 15px;}
	.blog-content h2 {font-size: 18px;}
	.blog-content h2::after {bottom: -34vw; right: -34vw; width: 30vw; height: 50vw;}
	.blog-content h3 {font-size: 16px;}
	.blog-content .wp-block-list {padding: 15px 15px 15px 36px;}
}

@media screen and (max-width: 460px) {
	.blog-content h2::after {bottom: -24vw; right: -33vw;}
	.blog-content p {font-size: 15px;}
	.blog-content .wp-block-list li {font-size: 15px;}
	.blog-content img.size-medium {width: 75%;}
}

/* =========================
   パンくず
========================= */
.breadcrumb-wrap {padding: 15px;}
.breadcrumb {list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; font-size: 14px;}
ul.breadcrumb {padding: 0 15px;}
.breadcrumb li {display: flex; align-items: center; text-align: left; position: relative; padding-right: 16px;}
.breadcrumb li a {text-decoration: none; color: #333; transition: color 0.2s;}
.breadcrumb li a:hover {
    color: #005177;
}
.breadcrumb li:not(:last-child)::after {content: ">"; position: absolute; top: 50%; right: 0; color: #999; transform: translateY(-50%); -webkit-transform: translateY(-50%); -ms-transform: translateY(-50%);}
.breadcrumb li i {font-size: 16px; color: #333;}

@media screen and (max-width: 768px) {
	.breadcrumb {flex-wrap: wrap;}
	.breadcrumb li {font-size: 10px; flex-wrap: wrap; gap: 2px; line-height: 1.2;}
	.breadcrumb li i {font-size: 12px;}
}

/* =========================
   ベースレイアウト
========================= */
.ar-container {width: 100%; max-width: 1280px; margin: 0 auto;}
.blog-body {display: flex; gap: 20px; margin-top: 30px; width: 100%;}


@media screen and (max-width: 768px) {
	.blog-body {margin-top: 15px;}
}

/* ============================
   左カラム
============================ */
#main-content {flex: 1; min-width: 0; padding: 0 15px;}
.featured-image {width: 100%; height: 440px; margin: 0 auto; overflow: hidden; position: relative; display: flex; align-items: center; justify-content: center; background-color: #cacaca;}
.featured-image img {width: auto; max-width: 100%; height: 100%; display: block; position: relative; object-fit: cover;}
.blog-content {margin: 30px 0 80px; text-align: left;}

@media screen and (max-width: 768px) {
	.featured-image {height: 260px;}
	.blog-content {margin: 30px 0 40px;}
}

/* ============================
   関連記事（8件グリッド）
============================ */
.related-posts {margin-top: 40px;}
.related-posts .section-title {font-family: initial; font-size: 15px; font-weight: 500; background-color: #d9d9d9; margin: 0; padding: 10px; text-align: left;}
.related-grid {display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin: 25px 0; padding: 0 15px;}
.related-item {text-align: center; transition: transform 0.3s ease;}
.related-item:hover {transform: translateY(-4px);}

.related-thumb {width: 100%; max-width: 180px; height: 120px; margin: 0 auto; overflow: hidden; position: relative; display: flex; align-items: center; justify-content: center; background-color: #f8f8f8;}
.related-item.connection-list .related-thumb {max-width: 220px; height: 160px;}

/* サムネイル画像を中央に配置・縦横比維持 */
.related-thumb img {max-width: 100%; width: auto; height: 100%; display: block; position: relative; object-fit: cover; transition: transform 0.3s ease;}

/* ホバー時の拡大エフェクト */
.related-item:hover .related-thumb img {transform: scale(1.05);}
.related-title {margin-top: 8px; font-size: 13px; line-height: 1.4; text-align: left; color: #333; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis;}

/* サムネイルがない場合 */
.related-thumb img[src$="no-image.webp"] {object-fit: contain; background-color: #f5f5f5;}

@media screen and (max-width: 768px) {
    .related-grid {grid-template-columns: 1fr;}
	.related-thumb {max-width: 300px; height: 168px;}
	.related-item.connection-list .related-thumb {max-width: 300px; height: 168px;}
	.related-title {width: 100%; max-width: 300px; margin: 8px auto 10px;}
	.related-item a {text-decoration: none;}
}

@media screen and (max-width: 460px) {
	.related-thumb {height: 32.6087vw;}
	.related-item.connection-list .related-thumb {height: 32.6087vw;}
}

/* ============================
   右カラム
============================ */
#sidebar {
    width: 100%; max-width: 360px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 25px;
	padding: 0 15px 0 40px;
}

@media (max-width: 1148px) {
	#sidebar {width: 31.3588vw; padding: 0 15px 0 3.4843vw;}
}

@media (max-width: 768px) {
    .blog-body {flex-direction: column;}
    #sidebar {width: 100%; max-width: initial; order: 2; padding: 0;}
    #main-content {order: 1;}
    .related-grid {grid-template-columns: repeat(2, 1fr);}
}

/* ============================
   ピックアップ記事（画像＋タイトル重ね）
============================ */
.highlight-post {border: solid 1px #ddd;
	box-sizing: border-box;
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
}

.highlight-post a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.highlight-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.highlight-post:hover img {
    transform: scale(1.05);
}

.highlight-post .title-overlay {display: none;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 6px 10px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
    color: #fff;
    font-size: 13px;
    line-height: 1.4;
    text-align: left;
}

@media (max-width: 768px) {
	.highlight-post {padding: 0 15px;}
}

/* ============================
   新着記事
============================ */
.new-posts {display: flex; flex-direction: column; gap: 12px;}
.new-posts h3 {font-size: 15px; font-weight: 500; background-color: #d9d9d9; margin: 0; padding: 10px; text-align: left;}
.new-posts ul {list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px;}
.new-posts li {display: flex; align-items: center;}
.new-posts li a {display: block; text-decoration: none; overflow: hidden; text-overflow: ellipsis; text-align: left;}
.new-posts li a img {width: 45px; height: 45px; object-fit: cover; flex-shrink: 0; padding: 0 12px 0 0; float: left; opacity: 1; transition: opacity 0.3s ease;}
.new-posts li a h4 {margin: 0; font-size: 12px; color: #333; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; line-height: 1.4; max-height: 1.4em; word-break: break-word; transition: color 0.3s;}
.new-posts li a p {margin: 0; font-size: 10px; color: #333; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; line-height: 1.4; max-height: calc(1.4em * 2); word-break: break-word; transition: color 0.3s;}
.new-posts li a:hover img {opacity: 0.8;}
.new-posts li a:hover h4 {color: #0088cc; text-decoration: underline;}
.new-posts li a:hover p {color: #0088cc;}

@media (max-width: 768px) {
	.new-posts ul {padding: 0 15px;}
	.new-posts li a {width: 100%; max-width: 100%;}
}

/* ============================
   おすすめ記事（固定表示）
============================ */
.recommended-posts {}
.recommended-posts h3 {font-size: 15px; font-weight: 500; background-color: #d9d9d9; margin: 0; padding: 10px; text-align: left;}
.recommended-posts ul {display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0; list-style-type: none;}
.recommended-posts ul li {position: relative; display: block; width: 48%; z-index: 0;}
.recommended-posts ul li a {display: block; text-decoration: none;}
.img-expansion {overflow: hidden; width: 100%; height: auto; display: flex; position: relative; z-index: 2; background: #fff; border: 1px solid #ddd;}
.img-expansion img {transition: transform 0.4s ease; backface-visibility: hidden;}
.know-item-sorting {position: absolute; z-index: 2; top: 5px; right: 5px; padding: 2px 10px; border-radius: 8px;}
.know-item-sorting p {color: #fff; font-size: 8px; font-weight: 400; margin: 0;}
.know-item-hover {background: linear-gradient(rgba(0,0,0,0),rgba(0,0,0,1)); position: absolute; z-index: 3; bottom: 0; left: 0; width: 100%; height: 50%; overflow: hidden;}
.know-item-hover .title-area {position: absolute; bottom: 0; left: 50%; text-align: center; width: 100%; transform: translateX(-50%); -webkit-transform: translateX(-50%); -ms-transform: translateX(-50%);}
.know-item-hover .title-area h4 {font-size: 10px; font-weight: 400; color: #fff; margin: 0; padding: 0 3px 3px; line-height: 1.2;}

.light-blue {background-color: #005497;}
.tangerine {background-color: #ff4500;}
.pale-green {background-color: #006400;}

.recommended-posts li a:hover .img-expansion img {transform: scale(1.2, 1.2);}

@media (max-width: 768px) {
	.recommended-posts ul {padding: 0 15px;}
}

/*===============================================
 404.php
===============================================*/
#none-content {margin: 3em 0;}


/* ============================
   オールライトのサービス
============================ */
.service-banners {}
.service-banners h3 {font-size: 15px; font-weight: 500; background-color: #d9d9d9; margin: 0; padding: 10px; text-align: left;}
.service-banners-wrap {}
.service-banners-wrap ul {list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;}
.service-banners-wrap ul li {}
.service-banners-wrap ul li a {display: block; background-color: #cdcdcd;}
.service-banners-wrap ul li a img {max-width: 150px; transition: transform 0.3s ease;}
.service-banners-wrap ul li a img:hover {transform: rotate(-4deg);}

@media (max-width: 768px) {
	.service-banners-wrap {padding: 0 15px;}
}

@media (max-width: 460px) {
	.service-banners-wrap ul li a img {max-width: 20.5vw;}
}

/* ============================
   目次
============================ */
#floating-toc {position: sticky; top: 90px;}

@media screen and (max-width: 768px) {
	#floating-toc {display: none;}
}

/* ============================
   PC版：目次（初期は通常表示）
============================ */
.table-of-contents {
	width: 100%;
    background-color: #f6f6f6;
    padding: 15px;
    box-sizing: border-box;
    border: 1px solid #ddd;
	border-radius: 8px;
    margin-bottom: 25px;
}

.table-of-contents h3 {
    margin: 0 0 10px;
    font-size: 15px;
	 font-weight: 500;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 5px;
}

/* UL本体 */
.toc-list {list-style: none; padding-left: 0; margin: 0; text-align: left; box-sizing: border-box;}
.toc-list li {margin: 5px 0; text-indent: -1em; padding-left: 1em;}
.toc-list li a {color: #333; text-decoration: none; transition: color 0.2s ease;}
.toc-list li a:hover {color: #0073aa;}

/* h3項目はインデント＋装飾なし */
.toc-list .h3-item {list-style: none; padding-left: 18px; margin-top: 3px; font-size: 13px; text-indent: inherit;}

/* aタグ共通 */
.table-of-contents .toc-list li a {color: #333; text-decoration: none;}
.table-of-contents .toc-list li a:hover {color: #0078d7; text-decoration: underline;}

/* ============================
   PC版：スクロール時のフローティング固定
============================ */
.table-of-contents.fixed {
    position: fixed;
    top: 80px;
    right: calc((100% - 950px) / 2 - 220px);
    width: 208px;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ============================
   SP専用：目次ポップアップ
============================ */
#toc-popup {
	display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

/* 表示時のみflexに切り替え */
#toc-popup.execution {
    display: flex;
}

.toc-popup-content {
    background: #f6f6f6;
    padding: 24px 20px;
    width: 92%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    position: relative;
	box-sizing: border-box;
    animation: popup-fade 0.25s ease;
}

/* フェードインアニメーション */
@keyframes popup-fade {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.toc-popup-content h3 {
    margin: 0 0 12px;
    font-size: 18px;
	color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

#toc-close {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 28px;
    background: none;
    border: none;
    color: #555;
    cursor: pointer;
    transition: color 0.2s;
}

#toc-close:hover {
    color: #000;
}

/* 目次リスト */
.toc-popup-list {list-style: none; padding-left: 0; margin: 0; text-align: left;}
.toc-popup-list li {margin-bottom: 10px; line-height: 1.6;font-size: 15px;}

/* h3用インデント */
.toc-popup-list li.h3-item {padding-left: 20px; font-size: 14px; color: #666;}

/* 番号スタイル */
.toc-popup-list .toc-num {margin-right: 6px;}

/* リンク */
.toc-popup-list li a {
    text-decoration: none;
    color: #333;
    display: inline-block;
    word-break: break-word;
    transition: color 0.2s ease;
}
.toc-popup-list li a:hover {
    color: #23438a;
}


/* ===========================
   SP用 右下固定ボタン
=========================== */
#toc-icon {position: fixed; bottom: 150px; right: 15px; border: solid 1px #bbb; border-radius: 8px; box-shadow: 0 4px 8px rgba(0,0,0,0.2); cursor: pointer; display: none; /* PCは非表示 */ z-index: 990;}
#toc-icon img {width: 52px; height: 52px; border-radius: 8px;}

@media screen and (max-width: 768px) {
    #toc-icon {
        display: block;
    }
}


/*===============================================
 ARブログ一覧・カテゴリ一覧共通 ================
===============================================*/
.blog-archive-container, .blog-category-container {max-width: 980px; margin: 0 auto; padding: 20px;}



/* ===== ページヘッダー ===== */
.page-header {text-align: center; margin: 50px 0 20px;}
.page-header h1 {font-size: 28px; margin: 0; height: auto;}
.page-header .sub-title {font-size: 14px; color: #777; margin: 1em 0;}

/* ===== メイン画像 ===== */
.blog-main-image {max-width: 1680px; margin: 0 auto; overflow: hidden;}
.blog-main-image img {display: block; height: 500px; object-fit: cover;}

/* ===== 固定テキスト ===== */
.blog-description {text-align: center; margin: 40px 0 80px;}
.blog-description h3 {text-align: center; font-size: 20px; font-weight: 600; color: #333;}
.blog-description h3 span {position: relative; display: inline-block;}
.blog-description h3 span:before {content: ''; position: absolute; top: 50%; left: -40px; width: 20px; height: 2px; background-color: #333; transform: translateY(-50%); -webkit-transform: translateY(-50%); -ms-transform: translateY(-50%);}
.blog-description h3 span:after {content: ''; position: absolute; top: 50%; right: -40px; width: 20px; height: 2px; background-color: #333; transform: translateY(-50%); -webkit-transform: translateY(-50%); -ms-transform: translateY(-50%);}
.blog-description h4 {font-size: 16px; font-weight: 400; color: #333;}

@media screen and (max-width: 768px){
	.blog-description h3 {font-size: 18px;}
}

@media screen and (max-width: 480px){
	.blog-description h3 {font-size: 4.4vw;}
}

/* ===== ブログカード一覧 ===== */
.blog-archive-list {display: flex; flex-wrap: wrap; justify-content: center;}

/* ===== 各記事カード ===== */
.blog-card {-ms-flex: 0 0 50%; flex: 0 0 50%; max-width: 50%;}
.blog-card a {text-decoration: none; color: #333; display: block;}

/* ===== サムネイル ===== */
.blog-card .thumb {width: 100%; max-width: 100%; aspect-ratio: 3 / 2; overflow: hidden; display: flex; justify-content: center; align-items: center;}
.blog-card .thumb img {width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 0.3s ease;}
.blog-card .thumb:hover img {transform: scale(1.15);}

/* ===== コンテンツ部分 ===== */
.card-content {display: flex; align-items: center; margin: 20px 0 30px; min-width: 0; gap: 6px; text-align: left;}

/* カテゴリボタン */
.blog-card .category-btn {display: inline-block; color: #fff; font-size: 12px; padding: 3px 15px; border-radius: 24px; white-space: nowrap; flex-shrink: 0;}
.blogcate-cms .category-btn {background-color: #2e75b6;}
.blogcate-seo .category-btn {background-color: #b6612e;}
.blogcate-webpage .category-btn {background-color: #128029;}
.blogcate-landingpage .category-btn {background-color: #80980e;}
.blogcate-casestudy .category-btn {background-color: #820e8c;}

.blogcate-kgk .category-btn {background-color: #174b92;}
.blogcate-denture .category-btn {background-color: #e56c00;}
.blogcate-uncategorized .category-btn {background-color: #606060;}

/* タイトル1行制限 */
.blog-card .title {font-size: 14px; font-weight: 500; color: #333; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; flex: 1 1 auto; min-width: 0; font-family: initial; padding: 0 5px;}

/* 関連記事 */



@media screen and (max-width: 768px){
	.blog-description {margin: 20px 0 40px;}
	.blog-description h4 {font-size: 14px;}
	.card-content {flex-direction: column; align-items: flex-start; margin: 12px 0 20px; padding: 0 10px;}
    .card-content .category-btn {flex-shrink: 0; display: inline-block; margin-bottom: 2px;}
    .card-content .title {display: block; width: 100%; margin: 0; padding: 0;}
}

@media screen and (max-width: 480px){
	.blog-description h4 {font-size: 3.2vw;}
	.card-content {gap: 2px; padding: 0 10px 0 0;}
	.card-content .category-btn {font-size: 9px;}
	.card-content .title {font-size: 12px;}
}

/*===============================================
 ARブログ グローバル
===============================================*/
#gro_box.arblog-footer {background-size: cover;}
.arblog-footer .pc .w1000 {width: 100%; max-width: 1000px;}
.arblog-footer .pc .w1000 .footer_title span {font-size: 12px; margin-left: 5px;}
.blogfooter-space {}


@media screen and (max-width: 1000px){
	.arblog-footer .gro_left {width: 33vw; margin: 7vw 0 0 4vw;}
	.arblog-footer .pc a .footer_title {padding: 1.5vw 0;}
	.arblog-footer .gro_logo {width: 16vw; height: 20vw; margin: 0 4vw;}
	.arblog-footer .gro_right {width: 33vw; margin: 7vw 4vw 0 0;}
	.arblog-footer .pc .w1000 .footer_title span {font-size: 1.2vw; margin-left: 0.5vw;}
}

@media screen and (max-width: 768px){
	.arblog-footer .sp .gro_logo {width: 100%; margin: 0;}
	.arblog-footer .sp .gro_logo a img {max-width: 110px;}
	.blogfooter-space {margin-bottom: 140px;}
}

@media screen and (max-width: 528px){
	.blogfooter-space {margin-bottom: 26.5vw;}
}

@media screen and (max-width: 480px){
	.arblog-footer .sp.footer_gro a {font-size: 3vw;}
	.arblog-footer .sp a .footer_company {margin: 0 auto 2.08vw;}
	.arblog-footer .sp a .footer_toiawase {margin: 0 auto 2.08vw;}
}

/*===============================================
 ブログ フッター
===============================================*/
/****** #footer_box フッターメイン ******/
.ar-blog-footerbox {background-color: #f1fdfc; padding: 40px 0 0;}
.ar-blog-footerbox .footer_inbox {width: 100%; max-width: 980px; margin: 0 auto 40px;}
.ft-dc-info {padding: 0 10px; text-align: center; max-width: 340px;}
.ft-dc-info img {max-width: 298px;}
.ft-dc-contact {}
.ft-dc-contact p {font-size: 18px; text-align: center;}
.ft-dc-contact p span {background-color: #0ba29a; border-radius: 6px; color: #fff; font-size: 14px; padding: 2px 8px; margin: 0 0.5em 0 0;}
.ft-dc-contact p span.closeday {margin: 0 5px 0 20px;}
.ft-dc-contact-inner {display: flex; gap: 10px; justify-content: center;}
.ft-dc-contact-inner a {border-radius: 6px; padding: 4px 10px; display: block; text-align: center; width: 140px; font-size: 15px; color: #fff; background-image: linear-gradient(-180deg, #1ad5cb, #0ba29a);}
.ft-dc-contact-inner a:hover {background-image: linear-gradient(-180deg, #ffb165, #e26f00);}
.ft-dc-contact-inner a.ft-dc-tel {letter-spacing: 1px;}
.ft-dc-contact-inner a::before {font-family: "Font Awesome 5 Free"; font-weight: 900; margin: 0 0.5em 0 0; color: #fff;}
.ft-dc-contact-inner a.ft-dc-mail::before {content: '\f0e0';}
.ft-dc-contact-inner a.ft-dc-tel::before {content: '\f095';}
.ft-dc-menu {padding: 0 10px;}
.ft-dc-menu h3 {color: #333; margin: 0 0 5px; border-bottom: solid 1px #333; font-weight: 400;}
.ft-dc-menu ul {padding: 0; margin: 0; list-style-type: none;}
.ft-dc-menu ul li {padding: 0 0 0 12px; position: relative;}
.ft-dc-menu ul li::before {position: absolute; top: 50%; left: 0; content: '･'; color: #333; transform: translateY(-50%); -webkit-transform: translateY(-50%); -ms-transform: translateY(-50%);}
.ft-dc-menu ul li a {font-size: 14px; color: #333; transition: 0.3s;}
.ft-dc-menu ul li a:hover {color: #f97a00; text-decoration: underline;}


@media screen and (max-width: 768px) {
	.ar-blog-footerbox .footer_inbox {margin: 0 auto 20px;}
	.ft-dc-info {margin: 0 auto;}
	.ft-dc-info img {max-width: 220px;}
	.ft-dc-contact p {margin: 15px 0; font-size: 15px;}
	.ft-dc-contact p span {font-size: 12px;}
	.ft-dc-contact-inner a {font-size: 14px;}
	.ft-dc-contact {margin-bottom: 15px;}
}

@media screen and (max-width: 480px) {
	.footer_inbox .col-3 {-ms-flex: 0 0 100%; flex: 0 0 100%; max-width: 100%;}
	.ft-dc-menu h3 {font-size: 16px;}
	.ft-dc-menu {margin: 15px 0;}
	.ft-dc-menu ul li a {font-size: 13px;}
}

/****** #footer-blog-fixed 固定フッター ******/
#footer-blog-fixed {position: relative; height: 60px;}
.footer-blog-fixed-container {position: fixed; bottom: 0; left: 0; width: 100%; height: 60px; background-color: #8c9c0f; text-align: center; z-index: 12;}
.footer-blog-fixed-container ul {display: flex; width: 100%; list-style-type: none; margin: 0; padding: 0;}
.footer-blog-fixed-container ul li {flex: 1; height: 60px; color: #fff; font-size: 12px; font-weight: 600; border-right: solid 1px #758406;}
.footer-blog-fixed-container ul li:last-child {border: none;}
.footer-blog-fixed-container ul li a {color: #fff; text-decoration: none; display: flex; justify-content: center; align-items: center; width: 100%; height: 100%;}
.fbf-menu-left {background-color: #045926; display: flex; justify-content: center; align-items: center;}

#footer-slide-panel {position: fixed; bottom: 60px; left: 0; width: 100%; background: #fff; border-top: 1px solid #ccc; box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1); z-index: 9; transition: transform 0.2s ease, opacity 0.2s ease; transform: translateY(100%); opacity: 0; pointer-events: none;}
#footer-slide-panel.active {transform: translateY(0); opacity: 1; pointer-events: auto;}
#footer-slide-panel .panel-inner {padding: 20px;}
#footer-slide-panel .panel-close {font-size: 20px; cursor: pointer; position: absolute; top: 0; right: 0; color: #fff; width: 100%; text-align: right; padding: 5px 10px;}
#footer-slide-panel .panel-content {font-size: 13px;}
#panel-title {margin: 0; background-color: #141414; font-weight: 600; color: #fff; padding: 10px;}
.category-list, .recommend-list {margin: 0; padding: 0; list-style-type: none;}
.category-list li, .recommend-list li {text-align: left; border-bottom: dotted 1px #d7d7d7;}
.category-list li:last-child, .recommend-list li:last-child {border: none;}
.category-list li a, .recommend-list li a {color: #333; text-decoration: none;}

.category-list li {padding: 10px 0;}

.recommend-list li {padding: 5px 0;}
.recommend-list li a {display: flex; gap: 10px; align-items: center;}
.recommend-list li a img {max-width: 80px;}
.recommend-list li a p {}
.recommend-list li a p span {display: inline-block;}


/****** トップへ戻る ******/
#page-top {position: fixed; bottom: 40px; right: 20px; opacity: 0; pointer-events: none; transform: translateY(20px); transition: bottom 0.4s ease, opacity 0.4s ease, transform 0.6s ease; z-index: 90;}
#page-top a {display: inline-block; background: url('https://minamiterrace-dc.net/blog/wp-content/themes/original/images/totop.webp') no-repeat; background-size: cover; width: 60px; height: 60px;}
#page-top.active {bottom: 80px; opacity: 1; pointer-events: auto; transform: translateY(0);}

@media screen and (max-width: 768px){
	#page-top {right: 17px;}
	#page-top a {width: 50px; height: 50px;}
}

/****** リキャプチャ位置 ******/
@media screen and (max-width: 768px){
	.grecaptcha-badge {bottom: 74px!important;}
}


/****** #footer 著作権 ******/
.ar-blog-copyright {}
.ar-blog-copyright-inner {padding: 20px 0; background-color: #0ba29a;}
.ft-copyright {color: #fff; text-align: center; margin: 0;}


