/*
Theme Name: monolith-new
Description: モノリス会計事務所 1200px統一・親しみやすいモノトーン版
Version: 1.1
Author: Your Name
*/

/* ===================================================
   1. サイト全体の共通設定（変数）
=================================================== */
:root {
    --base-width: 1200px;
    --main-color: #3b3b3b;   /* 柔らかいダークグレー（メインテキスト・ボタン枠など） */
    --accent-color: #c7b097; /* 温かみのあるグレージュ（差し色・アイコン・ホバー時） */
    --text-black: #333333;
    --bg-light: #ffffff;
    --bg-warm: #fcfaf8;      /* ほんのり温かいオフホワイト（背景色用） */
}

/* ===================================================
   2. リセット＆ベース設定
=================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Lora", "Noto Sans JP", sans-serif; /* 堅すぎないゴシック体を優先 */
    line-height: 1.8;
    color: var(--text-black);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

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

/* ===================================================
   3. レイアウト（1200pxの箱）
=================================================== */
.l-container {
    max-width: var(--base-width);
    margin: 0 auto;
    width: 100%;
    padding: 0 40px;
}
@media screen and (max-width: 768px) {
    .l-container {
        padding: 0 20px;
    }
}

/* ===================================================
   4. ヘッダー・スマホメニュー
=================================================== */
@media screen and (max-width: 1024px) {
    .header-nav {
        display: block;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: #fff;
        padding: 100px 40px;
        transition: right 0.4s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        z-index: 9998;
    }
    .header-nav.is-active {
        right: 0;
    }
    .header-nav ul {
        flex-direction: column;
        gap: 20px;
    }
    .header-nav a {
        font-size: 18px;
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid #eee;
        color: var(--main-color);
        text-decoration: none;
    }
    /* ハンバーガーボタンのアニメーション */
    .hamburger-menu.is-active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger-menu.is-active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger-menu.is-active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    .hamburger-menu span {
        transition: all 0.4s;
    }
}

/* ===================================================
   5. 固定ページ・投稿ページ（下層ページ用）
=================================================== */
.page-header-section { margin: 30px 0 60px; }
.page-header-box {
    width: 100%;
    height: 250px;
    background: var(--main-color);
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}
.page-header-txt h1 { font-size: 2.2rem; font-weight: 500; margin-bottom: 5px; letter-spacing: 0.1em; }
.page-header-txt .en { font-family: 'Lora', serif; font-size: 1rem; letter-spacing: 0.3em; opacity: 0.8; }

.page-main-content, .post-content-detail, .archive-list-section { padding-bottom: 100px; }
.entry-content { font-size: 1.1rem; line-height: 2; color: #333; }
.entry-content h2 {
    font-size: 1.8rem;
    border-left: 5px solid var(--accent-color);
    padding-left: 20px;
    margin: 60px 0 30px;
}

/* 記事下部リンク・ボタン */
.post-navigation { display: flex; justify-content: space-between; margin-top: 80px; padding-top: 30px; border-top: 1px solid #eee; }
.post-navigation a { text-decoration: none; color: var(--accent-color); font-weight: 500; transition: 0.3s; }
.post-navigation a:hover { opacity: 0.7; }

/* ===================================================
   6. お知らせ一覧（アーカイブ）
=================================================== */
.post-list { border-top: 1px solid #eee; }
.post-item a {
    display: flex;
    align-items: center;
    padding: 25px 10px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #eee;
    transition: background 0.3s, color 0.3s;
}
.post-item a:hover { background-color: var(--bg-warm); color: var(--accent-color); }
.post-date { font-size: 14px; color: #999; width: 150px; flex-shrink: 0; }
.post-title { font-size: 1.1rem; font-weight: 400; }

.pagination { margin-top: 50px; text-align: center; }
.pagination .nav-links { display: flex; justify-content: center; gap: 10px; }
.pagination a, .pagination span { padding: 10px 15px; border: 1px solid #eee; text-decoration: none; color: #333; border-radius: 5px; }
.pagination .current { background: var(--main-color); color: #fff; border-color: var(--main-color); }

/* ===================================================
   7. フロントページ専用（親しみやすいモノトーン）
=================================================== */
/* トップ用メインビジュアル */
.mv-section { margin: 40px 0; }
.mv-box {
    width: 100%;
    height: 500px;
    background-color: var(--main-color);
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    overflow: hidden;
}

/* 共通セクション見出し */
.section-title { text-align: center; margin-bottom: 60px; }
.section-title .en { display: block; font-family: 'Lora', serif; color: var(--accent-color); letter-spacing: 0.2em; font-size: 0.9rem; margin-bottom: 10px; }
.section-title h2 { font-size: 2rem; font-weight: 500; }

/* ボタン */
.btn-center { text-align: center; margin-top: 30px; }
.btn-outline {
    display: inline-block; padding: 15px 40px; border: 1px solid var(--main-color); color: var(--main-color);
    text-decoration: none; border-radius: 30px; transition: 0.3s; font-weight: 500;
}
.btn-outline:hover { background: var(--main-color); color: #fff; }
.btn-accent { display: inline-block; transition: 0.3s; }
.btn-accent:hover { opacity: 0.8; transform: translateY(-3px); }

/* メッセージ */
.message-flex { display: flex; align-items: center; gap: 60px; }
.message-text { flex: 1; }
.message-text .catchphrase { font-size: 2rem; line-height: 1.6; margin-bottom: 30px; color: var(--main-color); }
.message-text p { color: #555; margin-bottom: 20px; line-height: 1.8; }
.message-image { flex: 1; }
.img-placeholder { width: 100%; height: 400px; background-color: #e0e0e0; background-size: cover; background-position: center; border-radius: 12px; }

/* 特徴（アイコン付き3列） */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.feature-card { background: #fff; padding: 40px 30px; border-radius: 12px; text-align: center; box-shadow: 0 5px 20px rgba(0,0,0,0.03); }
.feature-icon { font-size: 3rem; margin-bottom: 20px; }
.feature-card h3 { font-size: 1.3rem; margin-bottom: 15px; color: var(--main-color); }
.feature-card p { font-size: 0.95rem; color: #666; text-align: left; line-height: 1.6; }

/* サービス（写真付きカード） */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.service-card { background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid #eee; transition: 0.3s; }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.05); }
.card-img { width: 100%; height: 200px; background-color: #eaeaea; background-size: cover; background-position: center; }
.card-body { padding: 30px; }
.card-body h3 { font-size: 1.2rem; margin-bottom: 15px; border-bottom: 2px solid var(--accent-color); padding-bottom: 10px; display: inline-block; }
.card-body p { color: #666; font-size: 0.95rem; line-height: 1.6; }

/* 料金プラン */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.price-card { background: #fff; border: 1px solid #eee; text-align: center; border-radius: 12px; overflow: hidden; transition: 0.3s; }
.price-card.highlight { border: 2px solid var(--accent-color); transform: translateY(-10px); box-shadow: 0 10px 20px rgba(199, 176, 151, 0.15); }
.price-head { background: #f9f9f9; padding: 20px; font-weight: bold; font-size: 1.1rem; color: var(--main-color); }
.price-card.highlight .price-head { background: var(--accent-color); color: #fff; }
.price-body { padding: 40px 20px; }
.price-amount { font-size: 1.8rem; font-weight: bold; color: var(--text-black); }

/* Q&A */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { background: #fff; margin-bottom: 15px; border-radius: 12px; padding: 25px; box-shadow: 0 2px 10px rgba(0,0,0,0.02); }
.faq-q { font-weight: bold; font-size: 1.1rem; margin-bottom: 10px; display: flex; align-items: center; color: var(--main-color); }
.faq-q span { background: var(--accent-color); color: #fff; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; border-radius: 50%; margin-right: 15px; font-size: 13px; }
.faq-a { padding-left: 41px; color: #555; line-height: 1.6; font-size: 0.95rem; }

/* ===================================================
   8. スマホ表示の調整（一括）
=================================================== */
@media screen and (max-width: 1024px) {
    .mv-box { height: 350px; border-radius: 12px; }
    .mv-copy h1 { font-size: 2rem; }
}

@media screen and (max-width: 768px) {
    .page-header-box { height: 180px; }
    .page-header-txt h1 { font-size: 1.6rem; }
    .post-item a { flex-direction: column; align-items: flex-start; gap: 5px; }
    .post-date { width: auto; }
    
    /* フロントページ系 */
    .message-flex, .access-flex { flex-direction: column; gap: 30px; }
    .feature-grid, .service-grid, .price-grid { grid-template-columns: 1fr; }
    .price-card.highlight { transform: none; margin: 20px 0; }
    .message-text .catchphrase { font-size: 1.6rem; }
}