/*
Theme Name: 寺尾建築
Theme URI: https://terao-kenchiku.example.com
Description: 地域密着型の大工・工務店「寺尾建築」のオリジナルWordPressテーマ。和モダンなデザインで、スマホファーストのCV導線を重視。
Version: 2.1.0
Author: Terao Kenchiku
Author URI: https://terao-kenchiku.example.com
License: MIT
License URI: https://opensource.org/licenses/MIT
Text Domain: terao-kenchiku
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, business, carpenter
*/

/* ============================================
   目次
   ============================================
   1. Google Fonts読み込み
   2. リセットCSS
   3. CSS変数（カラーパレット等）
   4. 基本スタイル
   5. ヘッダー
   6. フッター
   7. スマホ固定フッター
   8. ボタン
   9. カード
   10. セクション
   11. トップページ：ヒーローエリア
   12. トップページ：会社紹介
   13. トップページ：施工事例・ブログ
   14. トップページ：事業主概要
   15. ブログ・アーカイブ
   16. 個別記事
   17. サイドバー
   18. 404ページ
   19. パンくずリスト
   20. フォーム
   21. ユーティリティ
   22. アニメーション
   23. レスポンシブ（メディアクエリ）
============================================ */


/* ============================================
   1. Google Fonts読み込み
============================================ */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&family=Noto+Serif+JP:wght@400;500;600;700&display=swap');


/* ============================================
   2. リセットCSS
============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Noto Sans JP', 'Yu Gothic', '游ゴシック', 'YuGothic', 'Hiragino Sans', sans-serif;
    line-height: 1.7;
    color: #3b3b3b;
    background-color: #fdfcfb;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* スマホ固定フッター用のパディング */
    padding-bottom: 80px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Serif JP', 'Yu Mincho', '游明朝', 'YuMincho', 'Hiragino Mincho ProN', serif;
    font-weight: 700;
    line-height: 1.4;
}


/* ============================================
   3. CSS変数（カラーパレット等）
============================================ */
:root {
    /* 木の温もりカラー */
    --color-wood-50: #faf8f5;
    --color-wood-100: #f5f0e8;
    --color-wood-200: #e8dcc8;
    --color-wood-300: #d4c0a0;
    --color-wood-400: #bfa278;
    --color-wood-500: #a67c52; /* メイン */
    --color-wood-600: #8b5e3c;
    --color-wood-700: #6d4830;
    --color-wood-800: #4a2f20;
    --color-wood-900: #2d1d13;

    /* 濃紺アクセント */
    --color-navy-50: #f0f4f8;
    --color-navy-100: #d9e2ec;
    --color-navy-200: #bcccdc;
    --color-navy-300: #9fb3c8;
    --color-navy-400: #829ab1;
    --color-navy-500: #627d98;
    --color-navy-600: #486581;
    --color-navy-700: #334e68; /* メイン */
    --color-navy-800: #243b53;
    --color-navy-900: #102a43;

    /* 墨色（テキスト） */
    --color-sumi-50: #f7f7f7;
    --color-sumi-100: #e1e1e1;
    --color-sumi-200: #cfcfcf;
    --color-sumi-300: #b1b1b1;
    --color-sumi-400: #9e9e9e;
    --color-sumi-500: #7e7e7e;
    --color-sumi-600: #626262;
    --color-sumi-700: #515151;
    --color-sumi-800: #3b3b3b; /* メイン */
    --color-sumi-900: #222222;

    /* ベージュ系（背景） */
    --color-beige-50: #fdfcfb;
    --color-beige-100: #f9f7f4;
    --color-beige-200: #f4f0ea;
    --color-beige-300: #ebe4d8;
    --color-beige-400: #dfd5c5;
    --color-beige-500: #d0c4b0;

    /* その他 */
    --color-white: #ffffff;
    --color-black: #000000;

    /* コンテナ幅 */
    --container-width: 1200px;
    --container-padding: 1rem;

    /* ヘッダー高さ */
    --header-height-mobile: 64px;
    --header-height-desktop: 96px;

    /* 固定フッター高さ */
    --sticky-footer-height: 80px;
}


/* ============================================
   4. 基本スタイル
============================================ */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}


/* ============================================
   5. ヘッダー
============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    z-index: 1000;
    transition: box-shadow 0.3s ease;
    height: var(--header-height-mobile);
}

.site-header.scrolled {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* ロゴ */
.logo-container {
    display: flex;
    flex-direction: column;
    max-height: 70px;
    overflow: hidden;
}

/* カスタムロゴ（画像ロゴ） */
.custom-logo-link {
    display: inline-block;
    line-height: 0;
}

.custom-logo {
    height: 28px; /* スマホでさらに小さく */
    width: auto;
    max-width: 130px;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.custom-logo:hover {
    opacity: 0.8;
}

/* デスクトップナビゲーション */
.desktop-nav {
    display: none;
}

.desktop-nav ul {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.desktop-nav a {
    color: var(--color-sumi-700);
    font-weight: 500;
    transition: color 0.3s ease;
}

.desktop-nav a:hover {
    color: var(--color-wood-600);
}

/* ヘッダーCTAボタン */
.header-cta {
    display: none;
}

/* ハンバーガーメニュー */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background-color: var(--color-sumi-800);
    transition: all 0.3s ease;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* モバイルメニュー */
.mobile-menu {
    display: none;
    background-color: var(--color-white);
    border-top: 1px solid var(--color-beige-300);
}

.mobile-menu.active {
    display: block;
}

.mobile-menu nav {
    padding: 1.5rem 1rem;
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-menu a {
    display: block;
    padding: 0.75rem 0;
    color: var(--color-sumi-700);
    font-weight: 500;
    transition: color 0.3s ease;
}

.mobile-menu a:hover {
    color: var(--color-wood-600);
}

.mobile-menu-cta {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-beige-300);
}


/* ============================================
   6. フッター
============================================ */
.site-footer {
    background-color: var(--color-sumi-800);
    color: var(--color-white);
    padding: 4rem 0 1.5rem;
}

.footer-widgets {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    width: 100%;
}

.footer-widget h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.footer-widget p,
.footer-widget a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-widget a:hover {
    color: var(--color-wood-300);
}

.footer-widget ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-icon {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    margin-right: 0.25rem;
    vertical-align: middle;
}

.footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

/* SNSリンク */
.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-white);
    text-decoration: none;
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    transition: all 0.3s ease;
    font-size: 0.9375rem;
}

.social-link:hover {
    background-color: var(--color-wood-500);
    transform: translateY(-2px);
}

.social-link svg {
    width: 1.25rem;
    height: 1.25rem;
}


/* ============================================
   7. スマホ固定フッター（重要！）
============================================ */
.sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 900;
    background-color: var(--color-white);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    border-top: 2px solid var(--color-wood-500);
    padding: 0.75rem;
}

.sticky-footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.sticky-footer-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.sticky-footer-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

.sticky-footer-btn-phone {
    background-color: var(--color-wood-500);
    color: var(--color-white);
}

.sticky-footer-btn-phone:hover {
    background-color: var(--color-wood-600);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.sticky-footer-btn-email {
    background-color: var(--color-navy-700);
    color: var(--color-white);
}

.sticky-footer-btn-email:hover {
    background-color: var(--color-navy-800);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}


/* ============================================
   8. ボタン
============================================ */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    text-align: center;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-wood-500);
    color: var(--color-white);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: var(--color-wood-600);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background-color: var(--color-navy-700);
    color: var(--color-white);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background-color: var(--color-navy-800);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-wood-600);
    border: 2px solid var(--color-wood-500);
}

.btn-outline:hover {
    background-color: var(--color-wood-500);
    color: var(--color-white);
}

.btn-white {
    background-color: var(--color-white);
    color: var(--color-wood-600);
}

.btn-white:hover {
    background-color: var(--color-beige-100);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}


/* ============================================
   9. カード
============================================ */
.card {
    background-color: var(--color-white);
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-image img {
    transform: scale(1.1);
}

.card-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background-color: var(--color-wood-500);
    color: var(--color-white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

.card-content {
    padding: 1.25rem;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-sumi-800);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card:hover .card-title {
    color: var(--color-wood-600);
}

.card-excerpt {
    font-size: 0.875rem;
    color: var(--color-sumi-600);
    margin-bottom: 1rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--color-sumi-500);
}

.card-link-text {
    color: var(--color-wood-600);
    font-weight: 500;
    transition: transform 0.3s ease;
    display: inline-block;
}

.card:hover .card-link-text {
    transform: translateX(4px);
}


/* ============================================
   10. セクション
============================================ */
.section {
    padding: 4rem 0;
}

.section-large {
    padding: 6rem 0;
}

.section-bg-white {
    background-color: var(--color-white);
}

.section-bg-beige {
    background-color: var(--color-beige-100);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-sumi-800);
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 64px;
    height: 4px;
    background-color: var(--color-wood-500);
    margin: 1rem auto 0;
}

.section-content {
    max-width: 1200px;
    margin: 0 auto;
}


/* ============================================
   11. トップページ：ヒーローエリア
============================================ */
.hero {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: var(--header-height-mobile);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(34, 34, 34, 0.8), rgba(34, 34, 34, 0.4));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    color: var(--color-white);
    max-width: 800px;
    padding: 0 1rem;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: 2rem;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero-title-accent {
    color: var(--color-wood-300);
}

.hero-description {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
    align-items: center;
}

.hero-cta-button-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-cta-button-wrapper .btn {
    width: 100%;
    max-width: 350px;
    justify-content: center;
}

.hero-cta-click-notice {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.5rem;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: bounce 2s infinite;
}

.hero-scroll svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--color-white);
}


/* ============================================
   12. トップページ：会社紹介
============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    order: 2;
}

.about-image {
    border-radius: 0.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.about-image:hover {
    transform: translateY(-8px);
}

.about-image-decoration-1 {
    position: absolute;
    bottom: -1.5rem;
    right: -1.5rem;
    width: 128px;
    height: 128px;
    background-color: var(--color-wood-200);
    border-radius: 0.5rem;
    z-index: -1;
}

.about-image-decoration-2 {
    position: absolute;
    top: -1.5rem;
    left: -1.5rem;
    width: 96px;
    height: 96px;
    border: 4px solid var(--color-navy-700);
    border-radius: 0.5rem;
}

.about-content {
    order: 1;
}

.about-heading {
    font-size: 1.75rem;
    color: var(--color-sumi-800);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.about-text {
    color: var(--color-sumi-700);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    gap: 0.75rem;
}

.feature-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background-color: var(--color-wood-100);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--color-wood-600);
}

.feature-icon.navy {
    background-color: var(--color-navy-100);
}

.feature-icon.navy svg {
    color: var(--color-navy-700);
}

.feature-content h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-sumi-800);
    margin-bottom: 0.25rem;
}

.feature-content p {
    font-size: 0.875rem;
    color: var(--color-sumi-600);
}

.about-cta {
    margin-top: 2rem;
}


/* ============================================
   13. トップページ：施工事例・ブログ
============================================ */
.works-grid,
.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.section-more {
    text-align: center;
}

.category-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.category-badge {
    font-size: 0.75rem;
    background-color: var(--color-navy-100);
    color: var(--color-navy-700);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}


/* ============================================
   14. トップページ：事業主概要
============================================ */
.company-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.company-table-wrapper {
    background-color: var(--color-white);
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

.company-table {
    width: 100%;
}

.company-table tr {
    border-bottom: 1px solid var(--color-beige-200);
}

.company-table tr:last-child {
    border-bottom: none;
}

.company-table th,
.company-table td {
    padding: 1rem 0;
    text-align: left;
    vertical-align: top;
}

.company-table th {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-sumi-800);
    width: 30%;
    padding-right: 1rem;
}

.company-table td {
    font-size: 0.875rem;
    color: var(--color-sumi-700);
}

.company-table a {
    color: var(--color-wood-600);
    font-weight: 500;
    transition: color 0.3s ease;
}

.company-table a:hover {
    color: var(--color-wood-700);
}

.company-map-wrapper {
    background-color: var(--color-white);
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    min-height: 450px;
}

.company-map-placeholder {
    width: 100%;
    height: 100%;
    min-height: 450px;
    background-color: var(--color-beige-200);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 2rem;
    text-align: center;
}

.company-map-placeholder svg {
    width: 4rem;
    height: 4rem;
    color: var(--color-sumi-400);
    margin-bottom: 1rem;
}

.company-map-placeholder p {
    color: var(--color-sumi-600);
    font-size: 0.875rem;
}

.company-cta {
    margin-top: 3rem;
    background: var(--color-navy-700);
    border-radius: 0.75rem;
    padding: 3rem 2rem;
    text-align: center;
    color: var(--color-white);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.company-cta h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.company-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.company-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.company-cta-button-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.company-cta-button-wrapper .btn {
    width: 100%;
    max-width: 400px;
    text-align: center;
    justify-content: center;
}

.cta-click-notice {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.5rem;
    font-weight: 500;
}


/* ============================================
   15. ブログ・アーカイブ
============================================ */
.page-container {
    padding: 3rem 0;
}

.page-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.main-content {
    /* メインコンテンツ */
}

.post-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.post-card {
    display: block;
}

.post-card-inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.post-card-image {
    flex-shrink: 0;
}

.post-card-body {
    padding: 1.25rem;
}

.pagination {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.archive-header {
    margin-bottom: 3rem;
    text-align: center;
}

.archive-description {
    max-width: 600px;
    margin: 1rem auto 0;
    color: var(--color-sumi-600);
}


/* ============================================
   16. 個別記事
============================================ */
.single-post {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.post-header {
    margin-bottom: 2rem;
}

.post-thumbnail {
    margin-bottom: 2rem;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.post-title {
    font-size: 2rem;
    color: var(--color-sumi-800);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--color-sumi-600);
}

.post-meta svg {
    width: 1rem;
    height: 1rem;
    margin-right: 0.25rem;
    vertical-align: middle;
}

.post-content {
    font-size: 1.0625rem;
    line-height: 1.9;
    color: var(--color-sumi-800);
    margin-bottom: 3rem;
}

.post-content h2 {
    font-size: 1.75rem;
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-wood-500);
}

.post-content h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content img {
    margin: 2rem 0;
    border-radius: 0.5rem;
}

.post-content ul,
.post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.post-content ul {
    list-style: none;
    padding-left: 0;
}

.post-content ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    list-style: none;
}

.post-content ul li::before {
    content: '●';
    position: absolute;
    left: 0;
    color: var(--color-wood-500);
}

/* WordPressブロックエディタのリスト対応 */
.post-content .wp-block-list {
    padding-left: 0;
}

.post-content ul.wp-block-list {
    list-style: none;
}

.post-content ul.wp-block-list li {
    position: relative;
    padding-left: 1.5rem;
    list-style: none;
}

.post-content ul.wp-block-list li::before {
    content: '●';
    position: absolute;
    left: 0;
    color: var(--color-wood-500);
}

.post-content ol {
    list-style: decimal;
    padding-left: 1.5rem;
}

.post-content ol li {
    list-style: inherit;
    padding-left: 0.5rem;
}

/* 番号付きリストのスタイルを維持 */
.post-content ol.wp-block-list {
    list-style-position: outside;
}

.post-content ol.wp-block-list li {
    list-style: inherit;
}

.post-tags {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-beige-300);
}

.post-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.post-tags-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-sumi-700);
}

.post-tag {
    font-size: 0.75rem;
    background-color: var(--color-beige-200);
    color: var(--color-sumi-700);
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    transition: background-color 0.3s ease;
}

.post-tag:hover {
    background-color: var(--color-wood-200);
}

.post-navigation {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 3rem;
}

.post-nav-link {
    padding: 1rem;
    border: 2px solid var(--color-beige-300);
    border-radius: 0.5rem;
    transition: border-color 0.3s ease;
}

.post-nav-link:hover {
    border-color: var(--color-wood-500);
}

.post-nav-label {
    font-size: 0.75rem;
    color: var(--color-sumi-600);
    margin-bottom: 0.25rem;
    display: block;
}

.post-nav-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-sumi-800);
    transition: color 0.3s ease;
}

.post-nav-link:hover .post-nav-title {
    color: var(--color-wood-600);
}


/* ============================================
   17. サイドバー
============================================ */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background-color: var(--color-white);
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

.sidebar-widget h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-wood-500);
}

.sidebar-widget ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-widget a {
    font-size: 0.875rem;
    color: var(--color-sumi-700);
    transition: color 0.3s ease;
}

.sidebar-widget a:hover {
    color: var(--color-wood-600);
}

.sidebar-widget time {
    font-size: 0.75rem;
    color: var(--color-sumi-500);
    display: block;
    margin-top: 0.25rem;
}

.sidebar-cta {
    background: var(--color-navy-700);
    color: var(--color-white);
}

.sidebar-cta h3 {
    border-bottom-color: rgba(255, 255, 255, 0.3);
    color: var(--color-white);
}

.sidebar-cta p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

.sidebar-cta .btn {
    width: 100%;
    margin-bottom: 0.5rem;
}


/* ============================================
   18. 404ページ
============================================ */
.error-404 {
    text-align: center;
    padding: 4rem 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.error-404-icon {
    width: 8rem;
    height: 8rem;
    margin: 0 auto 2rem;
    color: var(--color-wood-300);
}

.error-404-title {
    font-size: 4rem;
    font-weight: 700;
    color: var(--color-sumi-800);
    margin-bottom: 1rem;
}

.error-404-subtitle {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-sumi-700);
    margin-bottom: 1.5rem;
}

.error-404-description {
    color: var(--color-sumi-600);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.error-404-search {
    max-width: 500px;
    margin: 0 auto 2rem;
}

.error-404-search form {
    display: flex;
    gap: 0.5rem;
}

.error-404-search input[type="search"] {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--color-beige-300);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.error-404-search input[type="search"]:focus {
    outline: none;
    border-color: var(--color-wood-500);
}

.error-404-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto 3rem;
}

.error-404-cta {
    padding: 1.5rem;
    background-color: var(--color-beige-100);
    border-radius: 0.75rem;
}

.error-404-cta p {
    font-size: 0.875rem;
    color: var(--color-sumi-700);
    margin-bottom: 1rem;
}

.error-404-cta-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.btn-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    vertical-align: middle;
}


/* ============================================
   19. パンくずリスト
============================================ */
.breadcrumb {
    font-size: 0.875rem;
    color: var(--color-sumi-600);
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    background-color: var(--color-beige-100);
    border-radius: 0.5rem;
    border-left: 3px solid var(--color-wood-500);
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb a {
    color: var(--color-sumi-600);
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--color-wood-600);
}

.breadcrumb-current {
    color: var(--color-sumi-800);
}


/* ============================================
   20. お問い合わせページ
============================================ */
.contact-page {
    max-width: 900px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.contact-intro {
    color: var(--color-sumi-700);
    line-height: 1.8;
    margin-top: 1rem;
}

.contact-cta-box {
    background: var(--color-navy-700);
    border-radius: 1rem;
    padding: 2.5rem 2rem;
    margin-bottom: 3rem;
    color: var(--color-white);
}

.contact-cta-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.contact-cta-icon {
    width: 4rem;
    height: 4rem;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-cta-icon svg {
    width: 2rem;
    height: 2rem;
}

.contact-cta-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.contact-cta-tel {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.contact-cta-tel a {
    color: var(--color-white);
    transition: opacity 0.3s ease;
}

.contact-cta-tel a:hover {
    opacity: 0.8;
}

.contact-cta-click-notice {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: -0.5rem;
    font-weight: 500;
}

.contact-cta-time {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
}

.contact-form-wrapper {
    background-color: var(--color-white);
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 2.5rem 2rem;
    margin-bottom: 3rem;
}

.contact-form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-sumi-800);
    margin-bottom: 1rem;
    text-align: center;
}

.contact-form-desc {
    text-align: center;
    color: var(--color-sumi-600);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-notes {
    background-color: var(--color-beige-100);
    border-radius: 0.75rem;
    padding: 2rem;
}

.contact-notes h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-sumi-800);
    margin-bottom: 1rem;
}

.contact-notes ul {
    list-style: none;
    padding: 0;
}

.contact-notes li {
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    position: relative;
    color: var(--color-sumi-700);
    line-height: 1.7;
}

.contact-notes li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-wood-600);
    font-weight: 700;
}

@media (min-width: 768px) {
    .contact-cta-inner {
        flex-direction: row;
        text-align: left;
        max-width: 700px;
    }

    .contact-cta-content {
        flex: 1;
    }

    .contact-cta-click-notice {
        display: none;
    }

    .contact-form-wrapper {
        padding: 3rem;
    }
}

/* ============================================
   21. お問い合わせ完了ページ
============================================ */
.contact-thanks-page {
    max-width: 900px;
    margin: 0 auto;
}

.thanks-message {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--color-wood-50) 0%, var(--color-beige-100) 100%);
    border-radius: 1rem;
    margin-bottom: 3rem;
    border: 3px solid var(--color-wood-500);
}

.thanks-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-sumi-900);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-wood-500);
    display: inline-block;
    min-width: 80%;
}

.thanks-description {
    font-size: 1.125rem;
    color: var(--color-sumi-700);
    line-height: 1.8;
}

.thanks-next-steps {
    margin-bottom: 3rem;
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.thanks-subtitle {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-sumi-900);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--color-wood-500);
    text-align: center;
}

.thanks-steps {
    list-style: none;
    padding: 0;
    counter-reset: step-counter;
}

.thanks-steps li {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--color-white);
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.step-number {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-wood-500);
    color: var(--color-white);
    border-radius: 50%;
    font-size: 1.25rem;
    font-weight: 700;
}

.step-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-sumi-900);
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--color-sumi-700);
    line-height: 1.7;
}

.thanks-urgent {
    background-color: var(--color-beige-100);
    padding: 2.5rem 2rem;
    border-radius: 1rem;
    margin-bottom: 3rem;
    text-align: center;
    border: 2px solid var(--color-wood-300);
}

.thanks-urgent h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--color-sumi-900);
    margin-bottom: 1.25rem;
    border-bottom: 2px solid var(--color-wood-500);
    display: inline-block;
    padding-bottom: 0.5rem;
}

.thanks-urgent-text {
    color: var(--color-sumi-700);
    margin-bottom: 1.5rem;
    font-size: 1.0625rem;
}

.thanks-phone {
    margin-bottom: 0.5rem;
}

.thanks-phone a {
    display: inline-block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-wood-600);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 1rem 2rem;
    background-color: var(--color-white);
    border-radius: 0.5rem;
    border: 2px solid var(--color-wood-500);
}

.thanks-phone a:hover {
    background-color: var(--color-wood-500);
    color: var(--color-white);
}

.thanks-time {
    font-size: 0.875rem;
    color: var(--color-sumi-600);
}

.thanks-notes {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: 0.75rem;
    border: 2px solid var(--color-beige-200);
    margin-bottom: 3rem;
}

.thanks-notes h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-sumi-900);
    margin-bottom: 1rem;
}

.thanks-notes ul {
    list-style: none;
    padding: 0;
}

.thanks-notes li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-sumi-700);
    line-height: 1.7;
}

.thanks-notes li::before {
    content: '●';
    position: absolute;
    left: 0;
    color: var(--color-wood-500);
}

.thanks-actions {
    text-align: center;
}

.thanks-actions .btn {
    min-width: 300px;
}

@media (max-width: 767px) {
    .thanks-message {
        padding: 2rem 1.5rem;
    }

    .thanks-title {
        font-size: 1.375rem;
        min-width: 90%;
        padding-bottom: 0.75rem;
    }

    .thanks-description {
        font-size: 1rem;
    }

    .thanks-steps li {
        flex-direction: column;
        gap: 1rem;
        padding: 1.25rem;
    }

    .step-number {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }

    .thanks-phone a {
        font-size: 1.5rem;
        padding: 0.875rem 1.5rem;
        display: block;
        width: 100%;
    }

    .thanks-actions .btn {
        min-width: 100%;
    }
    
    .thanks-urgent {
        padding: 2rem 1.5rem;
    }
    
    .thanks-urgent h3 {
        font-size: 1.25rem;
    }
    
    .thanks-next-steps {
        padding: 1.5rem;
    }
    
    .thanks-subtitle {
        font-size: 1.25rem;
        margin-bottom: 1.25rem;
    }
    
    .step-content h3 {
        font-size: 1.0625rem;
    }
    
    .step-content p {
        font-size: 0.9375rem;
    }
}

/* ============================================
   22. フォーム
============================================ */
/* Contact Form 7 スタイル */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea,
input[type="text"],
input[type="email"],
input[type="search"],
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--color-beige-300);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form textarea:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="search"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-wood-500);
}

.wpcf7-form textarea,
textarea {
    min-height: 150px;
    resize: vertical;
}

.wpcf7-form input[type="submit"],
input[type="submit"] {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background-color: var(--color-wood-500);
    color: var(--color-white);
    font-weight: 700;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.wpcf7-form input[type="submit"]:hover,
input[type="submit"]:hover {
    background-color: var(--color-wood-600);
}

.wpcf7-not-valid-tip {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.wpcf7-response-output {
    margin: 1rem 0;
    padding: 0.75rem;
    border-radius: 0.5rem;
}

.wpcf7-mail-sent-ok {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.wpcf7-validation-errors {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}


/* フォーム共通スタイル */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 700;
    color: var(--color-sumi-800);
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

.form-group .required {
    display: inline-block;
    background-color: #dc2626;
    color: var(--color-white);
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    margin-left: 0.5rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea,
.form-group select {
    width: 100%;
}

.form-group select {
    background-color: var(--color-white);
    cursor: pointer;
}

.form-submit {
    margin-top: 2rem;
}

/* ============================================
   22. ユーティリティ
============================================ */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }

.hidden {
    display: none !important;
}

.overflow-hidden {
    overflow: hidden;
}


/* ============================================
   23. アニメーション
============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}


/* ============================================
   24. レスポンシブ（メディアクエリ）
============================================ */

/* タブレット以上（768px〜） */
@media (min-width: 768px) {
    /* 基本 */
    body {
        padding-bottom: 0; /* スマホ固定フッター無効化 */
    }

    .container {
        padding: 0 2rem;
    }

    /* ヘッダー */
    .site-header {
        height: var(--header-height-desktop);
    }

    /* カスタムロゴ（画像） */
    .custom-logo {
        height: 50px;
        max-width: 220px;
    }

    .desktop-nav {
        display: block;
    }

    .header-cta {
        display: block;
        margin-left: 2rem;
    }

    .hamburger {
        display: none;
    }

    /* ヒーロー */
    .hero {
        height: 600px;
        margin-top: var(--header-height-desktop);
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-description {
        font-size: 1.25rem;
    }

    .hero-cta {
        flex-direction: row;
        justify-content: center;
    }

    .hero-cta-button-wrapper {
        width: auto;
    }

    .hero-cta-button-wrapper .btn {
        width: auto;
    }

    .hero-cta-click-notice {
        display: none;
    }

    /* ブログ記事ページのコンテナ */
    .single-post {
        max-width: 900px;
    }

    /* パンくずリスト */
    .breadcrumb {
        padding: 1rem 1.5rem;
        margin-bottom: 2rem;
    }

    /* スマホ固定フッター非表示 */
    .sticky-footer {
        display: none;
    }

    /* フッター */
    .footer-widgets {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
    
    .site-footer .container {
        max-width: var(--container-width);
        width: 100%;
        padding: 0 2rem;
    }

    /* セクション */
    .section {
        padding: 6rem 0;
    }

    .section-large {
        padding: 8rem 0;
    }

    .section-title {
        font-size: 2.5rem;
    }

    /* 会社紹介 */
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }

    .about-image-wrapper {
        order: 1;
    }

    .about-content {
        order: 2;
    }

    .about-heading {
        font-size: 2rem;
    }

    .about-features {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 施工事例・ブログ */
    .works-grid,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    /* 事業主概要 */
    .company-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .company-cta {
        padding: 4rem 3rem;
    }

    .company-cta h3 {
        font-size: 2rem;
    }

    .company-cta-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 1.5rem;
    }

    .company-cta-button-wrapper {
        width: auto;
    }

    .company-cta-button-wrapper .btn {
        width: auto;
    }

    .cta-click-notice {
        display: none;
    }

    /* ブログ・アーカイブ */
    .page-grid {
        grid-template-columns: 2fr 1fr;
        gap: 3rem;
    }

    .post-card-inner {
        flex-direction: row;
    }

    .post-card-image {
        width: 33.333%;
    }

    .post-card-body {
        width: 66.667%;
    }

    /* 個別記事 */
    .post-title {
        font-size: 2.5rem;
    }

    .post-navigation {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 404 */
    .error-404-title {
        font-size: 6rem;
    }

    .error-404-subtitle {
        font-size: 2rem;
    }

    .error-404-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .error-404-cta-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* デスクトップ（1024px〜） */
@media (min-width: 1024px) {
    /* ヒーロー */
    .hero {
        height: 700px;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    /* 施工事例・ブログ */
    .works-grid,
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .section-title {
        font-size: 3rem;
    }
}

/* 大画面（1280px〜） */
@media (min-width: 1280px) {
    .hero-title {
        font-size: 4rem;
    }

    .about-heading {
        font-size: 2.25rem;
    }

    /* カスタムロゴ（大画面） */
    .custom-logo {
        height: 55px;
        max-width: 240px;
    }
}

/* ============================================
   ブログページ
============================================ */

.blog-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.blog-header .section-title {
    margin-bottom: 1rem;
}

.blog-description {
    color: var(--color-sumi-700);
    font-size: 1rem;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================
   法的ページ（プライバシーポリシー等）
============================================ */

.legal-page h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-sumi-800);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-wood-500);
}

.legal-page h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-sumi-800);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background-color: var(--color-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.legal-table th,
.legal-table td {
    padding: 1rem;
    border: 1px solid var(--color-beige-200);
    text-align: left;
    vertical-align: top;
}

.legal-table th {
    background-color: var(--color-beige-100);
    font-weight: 700;
    color: var(--color-sumi-800);
    width: 30%;
}

.legal-table td {
    line-height: 1.8;
}

.legal-contact {
    background-color: var(--color-beige-100);
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

.legal-contact p {
    margin: 0.5rem 0;
}

.legal-contact strong {
    font-size: 1.125rem;
    color: var(--color-sumi-800);
}

@media (max-width: 767px) {
    .legal-table {
        font-size: 0.875rem;
    }
    
    .legal-table th,
    .legal-table td {
        padding: 0.75rem;
        display: block;
        width: 100%;
    }
    
    .legal-table th {
        border-bottom: none;
        padding-bottom: 0.5rem;
    }
    
    .legal-table td {
        border-top: none;
        padding-top: 0.5rem;
    }
}

/* ============================================
   施工事例ページ（single-works.php）
============================================ */

/* 施工事例ヘッダー */
.works-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-beige-200);
}

.works-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-sumi-800);
    margin: 1rem 0;
    line-height: 1.4;
}

.works-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    color: var(--color-sumi-600);
    font-size: 0.9375rem;
    margin-top: 1rem;
}

.works-meta time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.works-meta svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--color-wood-500);
}

/* 画像セクション */
.works-images-section {
    margin: 3rem 0;
}

.works-before-after-container {
    margin-bottom: 3rem;
}

.works-image-block {
    background-color: var(--color-white);
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.works-section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-sumi-800);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-wood-500);
}

/* 単一画像表示 */
.works-single-image {
    width: 100%;
    border-radius: 0.5rem;
    overflow: hidden;
}

.works-single-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* スライダー */
.works-slider {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.works-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 0.5rem;
    background-color: var(--color-sumi-200);
}

.works-slider-track {
    position: relative;
    width: 100%;
}

.works-slider-slide {
    display: none;
    width: 100%;
}

.works-slider-slide.active {
    display: block;
}

.works-slider-slide img {
    width: 100%;
    height: auto;
    display: block;
}

/* スライダーナビゲーションボタン */
.works-slider-prev,
.works-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.works-slider-prev:hover,
.works-slider-next:hover {
    background-color: var(--color-wood-500);
    color: var(--color-white);
}

.works-slider-prev {
    left: 1rem;
}

.works-slider-next {
    right: 1rem;
}

.works-slider-prev svg,
.works-slider-next svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--color-sumi-800);
}

.works-slider-prev:hover svg,
.works-slider-next:hover svg {
    color: var(--color-white);
}

/* インジケーター */
.works-slider-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.works-slider-indicator {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background-color: var(--color-beige-300);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.works-slider-indicator:hover {
    background-color: var(--color-wood-400);
}

.works-slider-indicator.active {
    background-color: var(--color-wood-500);
    width: 2rem;
    border-radius: 0.375rem;
}

/* 施工詳細 */
.works-content {
    margin: 3rem 0;
}

/* 一覧に戻るボタン */
.works-back-button {
    text-align: center;
    margin: 3rem 0;
}

/* ============================================
   施工事例一覧ページ（archive-works.php）
============================================ */

.archive-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-beige-200);
}

.archive-description {
    color: var(--color-sumi-700);
    font-size: 1rem;
    line-height: 1.8;
    max-width: 700px;
    margin: 1rem auto 0;
}

/* カテゴリーフィルター */
.works-category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.works-category-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--color-white);
    color: var(--color-sumi-800);
    text-decoration: none;
    border-radius: 2rem;
    border: 1px solid var(--color-beige-300);
    transition: all 0.3s ease;
    font-size: 0.9375rem;
}

.works-category-link:hover {
    background-color: var(--color-wood-500);
    color: var(--color-white);
    border-color: var(--color-wood-500);
}

.works-category-link.active {
    background-color: var(--color-wood-500);
    color: var(--color-white);
    border-color: var(--color-wood-500);
}

.works-category-count {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* 画像枚数表示 */
.card-image-count {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--color-white);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

/* 投稿なしメッセージ */
.no-posts {
    text-align: center;
    padding: 4rem 2rem;
}

.no-posts p {
    font-size: 1.125rem;
    color: var(--color-sumi-600);
    margin-bottom: 2rem;
}

/* レスポンシブ調整 */
@media (max-width: 767px) {
    .works-title {
        font-size: 1.5rem;
    }

    .works-section-title {
        font-size: 1.25rem;
    }

    .works-slider-prev,
    .works-slider-next {
        width: 2.5rem;
        height: 2.5rem;
    }

    .works-slider-prev {
        left: 0.5rem;
    }

    .works-slider-next {
        right: 0.5rem;
    }

    .works-image-block {
        padding: 1rem;
    }
}

@media (min-width: 768px) {
    .works-title {
        font-size: 2.5rem;
    }

    .works-section-title {
        font-size: 2rem;
    }

    .works-slider {
        max-width: 900px;
    }
}
