/*
Theme Name: WebUp BtoB Theme Revised
Author: Your Name
Description: A BtoB focused theme for WebUp with improved specificity and responsive menu.
Version: 2.6 FINAL
*/

/* ==========================================================================
   1. 基本設定（変数、リセットなど）
   ========================================================================== */
   :root {
    --primary-color: #0D3D80; /* メインカラー (信頼感のある濃い青) */
    --secondary-color: #1A73E8; /* アクセントカラー (クリック要素など) */
    --text-color: #333333; /* 基本テキストカラー */
    --light-gray: #f5f5f5; /* 薄い背景色 */
    --border-color: #dddddd; /* 境界線 */
    --base-font-size: 16px;
    --font-family-base: 'Roboto', 'Noto Sans JP', sans-serif;
}

body {
    font-family: var(--font-family-base);
    font-size: var(--base-font-size);
    color: var(--text-color);
    line-height: 1.8;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 記事ページ以外の固定ヘッダー分の高さを確保 */
body:not(.home):not(.single) {
    padding-top: 80px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

#wrapper {
    overflow-x: hidden;
}

a {
    color: var(--secondary-color);
    text-decoration: none; /* アンダーライン削除 */
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.8;
    text-decoration: none; /* ホバー時もアンダーライン削除 */
}

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

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.4;
}

.pc { display: inline !important; }
.sp { display: none !important; }


/* ==========================================================================
   2. 共通パーツのスタイル（ヘッダー, フッター）
   ========================================================================== */

/* --- ヘッダー --- */
/* 基本はヘッダーを固定表示とする */
header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* 記事ページのときだけ、ヘッダーの固定を解除する */
body.single header {
    position: static; /* staticに戻すことで、通常の要素としてページと一緒にスクロールする */
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
/* 記事ページではbodyにpadding-topは不要 */
body.single {
    padding-top: 0;
}


header .header_wrap {
    background-color: transparent;
}
body.single header .header_wrap {
    background-color: transparent;
}


header .header_box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    height: 80px;
    position: relative;
}

/* ヘッダータイトル */
.site-title a {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
}
.site-title a:hover {
    text-decoration: none;
}
.site-title .site-tagline {
  font-size: 13px;
  font-weight: 400;
  margin-bottom: 2px;
  opacity: 0.9;
}
.site-title .site-main-title {
  font-size: 26px;
  font-weight: 600;
}

/* トップページ用ヘッダー（透明背景） */
.home header .site-title .white-logo { display: flex; }
.home header .site-title .black-logo { display: none; }
.home header .menuitems-pc a { color: #ffffff; }
.home header #hamburger_icon .yum { background-color: #fff; }

.site-title .white-logo .site-tagline,
.site-title .white-logo .site-main-title {
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* スクロール時 ＆ 記事ページのヘッダー（白背景） */
header.scrolled .header_wrap,
body:not(.home):not(.single) header .header_wrap {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
header.scrolled .site-title .white-logo,
body:not(.home) .site-title .white-logo {
    display: none;
}
header.scrolled .site-title .black-logo,
body:not(.home) .site-title .black-logo {
    display: flex;
}
header.scrolled .menuitems-pc a,
body:not(.home) .menuitems-pc a {
    color: var(--text-color);
    text-shadow: none;
}
header.scrolled #hamburger_icon .yum,
body:not(.home) #hamburger_icon .yum {
    background-color: var(--primary-color);
}

.site-title .black-logo .site-tagline {
  color: var(--text-color);
  text-shadow: none;
}
.site-title .black-logo .site-main-title {
  color: var(--primary-color);
  text-shadow: none;
}

/* PCナビゲーション */
.menuitems-pc .menuitems-ul-pc {
    display: flex;
    align-items: center;
    gap: 24px;
}
.menuitems-pc a {
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    position: relative;
    padding: 5px 0;
    white-space: nowrap;
}
.menuitems-pc a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s;
}
.menuitems-pc a:hover::after {
    width: 100%;
}
#drawer_wrapper { display: none; }


/* --- フッター --- */
footer {
    background-color: #222222;
    color: #cccccc;
    padding: 50px 20px;
    font-size: 0.9rem;
}
footer .footer-box {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}
footer .footer-menu ul {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}
footer .footer-menu a {
    color: #ffffff;
}
footer small {
    display: block;
    line-height: 1.6;
}

/* ==========================================================================
   3. トップページ専用のスタイル (index.php)
   ========================================================================== */

/* ヒーローセクション */
#slide {
    height: 600px;
    position: relative;
    color: #fff;
}
#slide .slide_img > div {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: absolute;
    top: 0;
    left: 0;
}
#slide .slide_img_black {
    width: 100%;
    height: 100%;
    background-color: rgba(13, 61, 128, 0.6);
}
#slide .slide_text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
}
#slide .slide_title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
#slide .slide_title span {
    display: block;
    font-size: 1.1rem;
    font-weight: 400;
    margin-top: 15px;
}

/* トップページの各セクション */
#top_about_wrap section {
    padding: 80px 20px;
}
#top_about_wrap section:nth-of-type(even) {
    background-color: var(--light-gray);
}
#top_about_wrap .copy {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 60px;
}
#top_about_wrap .copy .description-block {
    display: block;
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-color);
    margin-top: 15px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
#top_about_wrap .message_wrap {
    max-width: 1100px;
    margin: 0 auto;
}

/* トップページ：サービス概要グリッド */
.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* PC表示で2列に固定 */
    gap: 30px;
}

.grid-container .grid-item .grid-item-block {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    height: 100%;
    border-top: 4px solid var(--primary-color);
}
.grid-container .grid-item .heading {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}
.grid-container .grid-item p {
    font-size: 0.95rem;
}

/* トップページ：特長グリッド */
.grid-container-merit {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.grid-container-merit .grid-item-merit {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
}
.grid-container-merit .heading {
    font-size: 1.5rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.grid-container-merit .heading::before {
    content: '✓';
    color: var(--secondary-color);
    font-size: 1.8rem;
}

/* トップページ：料金グリッド */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
}
.pricing-grid .pricing-item {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}
.pricing-grid .pricing-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.pricing-grid .pricing-item:nth-child(2) {
    border-color: var(--secondary-color);
    transform: scale(1.05);
    position: relative;
}
.pricing-grid .pricing-item:nth-child(2)::before {
    content: 'おすすめ';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--secondary-color);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
}
.pricing-grid .pricing-item h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
}
.pricing-grid .pricing-item .price-txt {
    display: block;
    font-size: 1.2rem;
    color: var(--text-color);
    margin: 20px 0;
}
.pricing-grid .pricing-item .price-txt strong {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-color);
}
.pricing-grid .pricing-item ul {
    text-align: left;
    margin-top: 20px;
    flex-grow: 1;
}
.pricing-grid .pricing-item li {
    padding: 10px 0 10px 25px;
    position: relative;
    border-top: 1px solid var(--border-color);
}
.pricing-grid .pricing-item li::before {
    content: '✓';
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    font-weight: 700;
}

/* トップページ：最新情報グリッド */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.news-grid .news-item {
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.news-grid .news-image {
    width: 100%;
    height: 200px;
    background-color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
}
.news-grid .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.news-grid .news-image i {
    font-size: 5rem;
    color: rgba(255,255,255,0.5);
}
.news-grid .news-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.news-grid .news-category {
    background-color: var(--secondary-color);
    color: #fff;
    font-size: 0.8rem;
    padding: 3px 10px;
    border-radius: 4px;
    align-self: flex-start;
}
.news-grid .news-date {
    font-size: 0.9rem;
    color: #777;
    margin: 10px 0;
}
.news-grid .news-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
}
.news-grid .news-title a {
    color: var(--text-color);
}
.news-grid .news-title a:hover {
    color: var(--secondary-color);
}
.news-grid .news-excerpt {
    font-size: 0.9rem;
    margin-top: auto;
}

/* トップページ：FAQ（ゼロベース版） */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 10px;
}

.faq-question {
    display: block;
    width: 100%;
    padding: 20px;
    background: #fff;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: rgba(26, 115, 232, 0.05);
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    font-weight: bold;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    content: '×';
    transform: translateY(-50%) rotate(0deg);
}

.faq-answer {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease-out;
    background-color: var(--light-gray);
}

.faq-answer-content {
    padding: 20px;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color);
}

/* トップページ：お問い合わせ */
#contact {
    background-color: var(--primary-color);
    color: #fff;
    padding: 80px 20px;
    text-align: center;
}
#contact .contact_box p {
    font-size: 1.2rem;
    margin-bottom: 40px;
}
#contact .p-top-contact__link {
    max-width: 800px;
    margin: 0 auto;
}


/* ==========================================================================
   4. 記事ページ専用のスタイル (single.php)
   ========================================================================== */

main.single-post {
    position: relative;
    z-index: 1;
    background-color: #fff;
}
main.single-post .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

/* 記事ヘッダー */
.single-post .entry-header {
    margin-bottom: 40px;
    text-align: center;
}
.single-post .entry-meta {
    margin-bottom: 20px;
}
.single-post .meta-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px 24px;
    font-size: 0.9rem;
    color: #666;
}
.single-post .meta-info > div {
    display: flex;
    align-items: center;
    gap: 8px;
}
.single-post .meta-info a {
    color: #666;
    transition: all 0.3s ease;
}
.single-post .meta-info a:hover {
    color: var(--secondary-color);
}
.single-post .entry-categories .category-link,
.single-post .entry-tags .tag-link {
    margin-right: 8px;
}
.single-post .entry-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.4;
    margin: 20px 0 0;
}
.single-post .featured-image {
    margin-top: 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.single-post .featured-image img {
    width: 100%;
    height: auto;
}

/* 記事本文 */
.single-post .entry-content {
    max-width: 800px;
    margin: 40px auto 0;
    font-size: 1.05rem;
}
.single-post .entry-content p {
    margin-bottom: 1.5em;
}
.single-post .entry-content a {
    font-weight: 600;
    color: var(--secondary-color);
}
.single-post .entry-content a:hover {
    color: var(--primary-color);
}
.single-post .entry-content h2,
.single-post .entry-content h3,
.single-post .entry-content h4 {
    margin-top: 2.5em;
    margin-bottom: 1.2em;
    font-weight: 700;
    line-height: 1.5;
    color: var(--primary-color);
}
.single-post .entry-content h2 {
    font-size: 1.8rem;
    padding-bottom: 0.5em;
    border-bottom: 2px solid var(--border-color);
}
.single-post .entry-content h3 {
    font-size: 1.5rem;
    padding-left: 1em;
    border-left: 4px solid var(--primary-color);
}
.single-post .entry-content h4 {
    font-size: 1.2rem;
    color: var(--text-color);
}
.single-post .entry-content ul,
.single-post .entry-content ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}
.single-post .entry-content li {
    margin-bottom: 0.5em;
}
.single-post .entry-content blockquote {
    margin: 1.5em 0;
    padding: 20px 24px;
    background-color: var(--light-gray);
    border-left: 5px solid var(--primary-color);
    border-radius: 0 8px 8px 0;
}
.single-post .entry-content blockquote p {
    margin-bottom: 0;
}

/* 記事フッター */
main.single-post .entry-footer {
    max-width: 800px;
    margin: 60px auto 0;
}
main.single-post .social-share {
    padding: 24px;
    border-radius: 8px;
    border: 1px solid var(--primary-color);
    background-color: var(--primary-color);
    text-align: center;
}
main.single-post .share-title {
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 600;
    color: #ffffff;
}
main.single-post .share-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}
main.single-post .share-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    color: #fff !important;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}
main.single-post .share-button:hover {
    opacity: 0.85;
}
main.single-post .share-button.twitter { background-color: #1DA1F2; }
main.single-post .share-button.facebook { background-color: #1877F2; }
main.single-post .share-button.linkedin { background-color: #0A66C2; }
main.single-post .share-button.copy { background-color: #6c757d; }
main.single-post .share-button.copied { background-color: #28a745; }


/* 前後の記事ナビゲーション */
main.single-post .post-navigation {
    margin-top: 40px;
}
main.single-post .post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}
main.single-post .nav-previous, 
main.single-post .nav-next {
    width: 50%;
}
main.single-post .nav-previous a, 
main.single-post .nav-next a {
    display: block;
    padding: 20px;
    border: 1px solid var(--primary-color);
    background-color: var(--primary-color);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}
main.single-post .nav-previous a:hover, 
main.single-post .nav-next a:hover {
    opacity: 0.9;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
main.single-post .nav-next {
    text-align: right;
}
main.single-post .nav-direction {
    display: block;
    font-size: 0.9rem;
    color: #ffffff;
    margin-bottom: 5px;
}
main.single-post .nav-title {
    display: block;
    font-weight: 600;
    color: #ffffff;
}

/* 関連記事 */
.related-posts {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid var(--border-color);
}
.related-posts-title {
    text-align: center;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 40px;
}
.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.related-post-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}
.related-post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.related-post-thumbnail a {
    display: block;
    background-color: var(--light-gray);
}
.related-post-thumbnail img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.no-thumbnail {
    width: 100%;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    color: #ccc;
}
.related-post-content {
    padding: 20px;
}
.related-post-meta {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
}
.related-post-category {
    margin-left: 10px;
    background-color: var(--light-gray);
    padding: 3px 8px;
    border-radius: 4px;
}
.related-post-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}
.related-post-title a {
    color: var(--text-color);
}
.related-post-title a:hover {
    color: var(--secondary-color);
}
.related-post-excerpt {
    font-size: 0.9rem;
    color: #666;
}

/* CTAセクション */
.single-cta {
    margin-top: 80px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 12px;
    padding: 60px 40px;
}
.cta-content {
    text-align: center;
}
.cta-title {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 20px;
}
.cta-description {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
}
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}
.cta-button {
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}
.cta-button:hover {
    text-decoration: none;
    transform: translateY(-3px);
}
.cta-button.primary {
    background-color: #fff;
    color: var(--primary-color);
}
.cta-button.secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}


/* ==========================================================================
   5. レスポンシブ & SPメニュー
   ========================================================================== */
@media screen and (max-width: 991px) {
    .pricing-grid,
    .news-grid,
    .related-posts-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
    .pricing-grid .pricing-item:nth-child(2) {
        transform: none;
    }
}

@media screen and (max-width: 768px) {
    body:not(.home) {
        padding-top: 64px;
    }
    body.single {
        padding-top: 0;
    }
    
    .pc { display: none !important; }
    .sp { display: inline !important; }
    
    .site-title .site-tagline {
        font-size: 11px;
    }
    .site-title .site-main-title {
        font-size: 22px;
    }

    /* ヘッダー */
    header .header_box {
        height: 64px;
    }
    .menuitems-pc {
        display: none;
    }
    #drawer_wrapper {
        display: block;
    }
    #hamburger_icon {
        display: block;
        cursor: pointer;
        position: relative;
        width: 30px;
        height: 22px;
        z-index: 102;
    }
    #hamburger_icon .yum {
        display: block;
        width: 100%;
        height: 2px;
        background-color: #fff;
        position: absolute;
        left: 0;
        transition: all 0.3s ease;
    }
    #hamburger_icon .yum:nth-child(1) { top: 0; }
    #hamburger_icon .yum:nth-child(2) { top: 10px; }
    #hamburger_icon .yum:nth-child(3) { top: 20px; }

    /* SPドロワーメニュー */
    #drawer_wrapper .menuitems {
        position: fixed;
        top: 0;
        right: 0;
        width: 300px;
        height: 100%;
        background-color: #fff;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transform: translateX(100%);
        transition: transform 0.4s ease;
        padding-top: 100px;
        z-index: 101;
    }
    #drawer_wrapper .menuitems.open {
        transform: translateX(0);
    }
    #drawer_wrapper .menuitems ul li a {
        display: block;
        padding: 15px 20px;
        color: var(--text-color);
        font-weight: bold;
        text-decoration: none;
        border-bottom: 1px solid var(--light-gray);
        transition: background-color 0.3s ease;
    }
    #drawer_wrapper .menuitems ul li a:hover {
        background-color: var(--light-gray);
    }
    #drawer_background {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.5);
        z-index: 100;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s, visibility 0.4s;
    }
    #drawer_background.show {
        opacity: 1;
        visibility: visible;
    }

    /* メニューが開いた時のスタイル */
    #drawer_wrapper.open #hamburger_icon .yum {
        background-color: var(--primary-color);
    }
    #drawer_wrapper.open #hamburger_icon .yum:nth-child(1) { 
        transform: rotate(45deg) translate(7px, 7px); 
    }
    #drawer_wrapper.open #hamburger_icon .yum:nth-child(2) { 
        opacity: 0; 
    }
    #drawer_wrapper.open #hamburger_icon .yum:nth-child(3) { 
        transform: rotate(-45deg) translate(7px, -7px); 
    }

    /* トップページ SP調整 */
    .slide_title { font-size: 1.8rem; }
    .slide_title span { font-size: 1rem; }
    #slide { height: 500px; }
    .copy { font-size: 1.8rem; }
    .grid-container,
    .grid-container-merit,
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    /* 記事ページ SP調整 */
    main.single-post .container {
        padding: 24px 20px 60px;
    }
    .single-post .entry-title {
        font-size: 1.8rem;
    }
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    .post-navigation .nav-links {
        flex-direction: column;
    }
    .nav-previous, .nav-next {
        width: 100%;
    }
    .cta-buttons {
        flex-direction: column;
    }
    
    /* フッター SP調整 */
    footer .footer-menu ul {
        flex-direction: column;
        gap: 15px;
    }
}

.blog-article{max-width:900px;margin:0 auto;padding:24px;}
  .article-header h1{font-size:1.9rem;line-height:1.5;margin:0 0 8px;}
  .article-meta{color:#666;font-size:.9rem;margin-bottom:20px}
  .article-body h2{font-size:1.4rem;margin:28px 0 12px}
  .article-body p{margin:0 0 14px;line-height:1.9}
  .article-body ul, .article-body ol{padding-left:1.2em}
  .benefit-table{width:100%;border-collapse:collapse;margin:10px 0 18px}
  .benefit-table th,.benefit-table td{border:1px solid #e5e5e5;padding:10px;vertical-align:top}
  details{border:1px solid #e5e5e5;border-radius:6px;padding:12px;margin:10px 0}
  details summary{font-weight:700;cursor:pointer;outline:none}
  .cta{margin:24px 0}
  .btn.btn-primary{display:inline-block;background:#111;color:#fff;padding:12px 18px;border-radius:6px;text-decoration:none}
  .btn.btn-primary:hover{opacity:.9}
  @media (max-width:640px){
    .article-header h1{font-size:1.6rem}
    .article-body h2{font-size:1.25rem}
  }