/*
Theme Name: Noguchi Group Theme (Final)
Theme URI: https://example.com/
Description: 野口不動産グループ専用カスタムテーマ（軽量化・最適化版）
Author: サポートライフみらい_Web制作部
Version: 2.0.0
*/

/* ==============================================
   基本設定
   ============================================== */
html {
    scroll-behavior: smooth;
}

/* 記事本文のスタイル調整（WordPress標準ブロック用） */
.entry-content p {
    margin-bottom: 1.5em;
    line-height: 1.8;
}

.entry-content img {
    max-width: 100%;
    height: auto;
}

.entry-content ul {
    list-style: disc;
    margin-left: 1.5em;
    margin-bottom: 1.5em;
}

/* ページ固有のカスタムリストスタイル対応 */
.entry-content ul.prep-list {
    list-style: none;
    margin-left: 0;
}

.entry-content ol {
    list-style: decimal;
    margin-left: 1.5em;
    margin-bottom: 1.5em;
}

/* セクションタイトルの下線スタイル */
.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #1FBCFF;
}

/* モバイル用固定フッターの調整 */
.mobile-sticky-footer {
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    padding-bottom: env(safe-area-inset-bottom);
}

/* ==============================================
   ハンバーガーメニュー
   ============================================== */
.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: currentColor;
    /* 親要素の文字色(白or黒)を継承 */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 4px;
}

/* メニューオープン時のアニメーション */
.menu-open .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-open .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.menu-open .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* メニューのリストマーク（中点）を強制削除 */
#nav-items li,
#mobile-menu li,
.menu-item {
    list-style: none !important;
}

/* ==============================================
   PCメニューのホバーエフェクト（左から線が伸びる）
   ============================================== */

/* リンク自体の基本設定 */
#nav-items .menu-item a {
    position: relative;
    display: inline-block;
    padding-bottom: 6px;
    /* 文字と線の隙間 */
    text-decoration: none;
}

/* 下線（疑似要素）の設定 */
#nav-items .menu-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    /* 左端を基準にする */
    width: 0;
    /* 最初は幅0（見えない） */
    height: 2px;
    /* 線の太さ */
    background-color: #1FBCFF;
    /* テーマカラー（水色） */
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* なめらかな動き */
}

/* ホバー時の動き */
#nav-items .menu-item a:hover::after {
    width: 100%;
    /* 幅を100%にする（左基準なので右へ伸びる） */
}

/* ==============================================
   WordPress管理バー（Admin Bar）対応
   ============================================== */

/* PC (783px以上): 管理バーは固定なので、ヘッダーも常に下げる */
@media screen and (min-width: 783px) {
    body.admin-bar #main-header {
        top: 32px !important;
    }
}

/* スマホ (782px以下): 管理バーはスクロールで消えるため、ヘッダーを下げない */
@media screen and (max-width: 782px) {
    body.admin-bar #main-header {
        top: 0 !important;
    }
}

/* ==============================================
   アニメーション設定
   ============================================== */

/* ふわっと浮き上がる動き */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 適用クラス */
.animate-fade-up {
    opacity: 0;
    /* 初期状態は非表示 */
    /* 4.0秒かけてゆっくり表示 */
    animation: fadeUp 4.0s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}


/* ==============================================
   ページネーション設定 (丸形デザイン)
   ============================================== */

/* コンテナの設定 */
.pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    /* ボタン同士の間隔 */
    padding: 20px 0;
}

/* 各数字・矢印の共通スタイル */
.pagination .page-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 48px;
    /* 幅 */
    height: 48px;
    /* 高さ */
    border-radius: 50%;
    /* 完全な円 */
    background-color: #ffffff;
    border: 1px solid #E2E8F0;
    /* 薄いグレーの線 */
    color: #64748B;
    /* 文字色 */
    text-decoration: none;
    font-weight: bold;
    font-family: "Noto Sans JP", sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    line-height: 1;
}

/* ホバー時のスタイル */
.pagination .page-numbers:not(.current):hover {
    border-color: #1FBCFF;
    color: #1FBCFF;
    background-color: #f0f9ff;
}

/* 現在のページ (Active) */
.pagination .page-numbers.current {
    background-color: #1FBCFF;
    /* テーマカラーの青 */
    border-color: #1FBCFF;
    color: #ffffff;
}

/* 省略リーダー (...) */
.pagination .page-numbers.dots {
    border: none;
    background: transparent;
    box-shadow: none;
    width: auto;
    padding: 0 4px;
    cursor: default;
}

/* 矢印アイコンの微調整 */
.pagination .page-numbers i {
    font-size: 0.9em;
}

/* ==============================================
   タブレット表示時のヘッダー調整 (768px〜1024px)
   ロゴとメニュー行の間に余白を確保
   ============================================== */
@media screen and (min-width: 768px) and (max-width: 1024px) {

    /* メニュー行を下げてロゴとの距離を確保（transformで移動、レイアウトに影響なし） */
    #main-header nav {
        transform: translateY(0.75rem) !important;
    }
}

/* ==============================================
   ヘッダーロゴ「NOGUCHI」の文字間隔調整
   .GROUPと同じ見た目になるよう letter-spacing を設定
   ============================================== */
#header-logo-text {
    letter-spacing: 0.05em;
}

/* ==============================================
   ヒーローセクション レスポンシブ対応
   768px未満: 固定フッター（5rem）分を引いた高さ
   768px以上: 画面全体の高さ
   ============================================== */
@media screen and (max-width: 767px) {
    #top {
        min-height: calc(100vh - 5rem);
        min-height: calc(100svh - 5rem);
        min-height: calc(100dvh - 5rem);
    }
    
    /* 画像コンテナと画像が親要素を完全にカバー */
    #top > div:first-child {
        min-height: inherit;
    }
    
    #top > div:first-child img {
        min-height: inherit;
        object-fit: cover;
    }
}

@media screen and (min-width: 768px) {
    #top {
        min-height: 100vh;
    }
}