/* ==========================================================================
   fujimoto-renewal - Main Stylesheet
   配色: グリーン(#2E9B4E) × ゴールド(#B8892A) / 背景: オフホワイト(#FAFAF7)
   フォント: BIZ UDPGothic
   ========================================================================== */

:root {
    --color-navy:       #1C3A28;
    --color-blue:       #2E9B4E;
    --color-blue-hover: #27834A;
    --color-accent:     #B8892A;
    --color-white:      #FFFFFF;
    --color-light-gray: #FAFAF7;
    --color-gray:       #6B7280;
    --color-dark:       #1a1a1a;
    --color-border:     #E5E7EB;
    --font-base:        'BIZ UDPGothic', sans-serif;
    --max-width:        1100px;
    --transition:       0.3s ease;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: var(--font-base);
    color: var(--color-dark);
    background: var(--color-light-gray);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent); }
ul, ol { list-style: none; }

/* ---------- Layout ---------- */
.container {
    width: 90%;
    max-width: var(--max-width);
    margin-inline: auto;
}

.site-content { padding: 60px 0; }

/* ---------- Fade-in Animation ---------- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
    background: var(--color-navy);
    border-bottom: 3px solid var(--color-accent);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
    transition: box-shadow 0.3s ease;
}
.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,.35);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    width: 90%;
    max-width: var(--max-width);
    margin-inline: auto;
}

/* ロゴ */
.site-branding a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-white);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.3;
}
.site-branding img { height: 60px; width: auto; display: block; }
.site-branding .logo-text-main { font-size: 1.05rem; font-weight: 700; }
.site-branding .logo-text-sub  { font-size: .7rem; color: rgba(255,255,255,.7); font-weight: 400; }

/* グローバルナビ */
.global-nav { display: flex; align-items: center; gap: 4px; }

.global-nav > ul { display: flex; align-items: center; gap: 4px; }

.global-nav > ul > li { position: relative; }

.global-nav > ul > li > a {
    display: block;
    padding: 8px 14px;
    color: #D4A84B;
    font-size: .88rem;
    font-weight: 500;
    border-radius: 4px;
    transition: background var(--transition), color var(--transition);
    white-space: nowrap;
}
.global-nav > ul > li > a:hover,
.global-nav > ul > li.current-menu-item > a {
    background: rgba(255,255,255,.1);
    color: var(--color-white);
}

/* ドロップダウン */
.global-nav .dropdown { position: relative; }

.global-nav .dropdown > a::after {
    content: '▾';
    margin-left: 4px;
    font-size: .75rem;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-top: 3px solid var(--color-blue);
    border-radius: 0 0 6px 6px;
    min-width: 220px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    z-index: 200;
}
.dropdown-menu li a {
    display: block;
    padding: 10px 18px;
    font-size: .85rem;
    color: var(--color-dark);
    border-bottom: 1px solid var(--color-border);
    transition: background var(--transition);
}
.dropdown-menu li:last-child a { border-bottom: none; }
.dropdown-menu li a:hover { background: var(--color-light-gray); color: var(--color-navy); }

.global-nav .dropdown:hover .dropdown-menu { display: block; }

/* CTAボタン（ヘッダー内） */
.header-cta a {
    display: inline-block;
    background: var(--color-accent);
    color: var(--color-white) !important;
    padding: 8px 18px;
    border-radius: 4px;
    font-size: .85rem;
    font-weight: 700;
    transition: background var(--transition);
    white-space: nowrap;
}
.header-cta a:hover { background: var(--color-blue-hover); }

/* ハンバーガー（SP用） */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}
.hamburger span {
    display: block;
    height: 2px;
    background: var(--color-white);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}
.hamburger.is-open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* SPナビ */
.sp-nav {
    display: none;
    background: var(--color-navy);
    padding: 20px 0;
}
.sp-nav.is-open { display: block; }
.sp-nav ul { width: 90%; margin-inline: auto; }
.sp-nav ul li { border-bottom: 1px solid rgba(255,255,255,.15); }
.sp-nav ul li a { display: block; padding: 14px 0; color: var(--color-white); font-size: .95rem; }
.sp-nav ul li.sp-dropdown-parent > a::after { content: '▾'; float: right; }
.sp-sub-nav { display: none; background: rgba(0,0,0,.2); }
.sp-sub-nav.is-open { display: block; }
.sp-sub-nav li a { padding-left: 24px; font-size: .88rem; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background: var(--color-navy);
    color: rgba(255,255,255,.85);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,.15);
}

.footer-col h3 {
    font-size: .95rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-accent);
    display: inline-block;
}

.footer-col address { font-style: normal; font-size: .82rem; line-height: 1.9; }
.footer-col address strong { color: var(--color-white); display: block; margin-top: 8px; }

.footer-col ul li { margin-bottom: 6px; }
.footer-col ul li a { color: rgba(255,255,255,.75); font-size: .82rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--color-white); }

.footer-external-links { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-external-links a {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255,255,255,.1);
    border-radius: 3px;
    color: rgba(255,255,255,.75);
    font-size: .75rem;
    transition: background var(--transition);
}
.footer-external-links a:hover { background: rgba(255,255,255,.2); color: var(--color-white); }

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    font-size: .78rem;
    color: rgba(255,255,255,.5);
}

/* ==========================================================================
   PAGE HEADER (パンくず・ページタイトル)
   ========================================================================== */
.page-header {
    position: relative;
    height: 250px;
    overflow: hidden;
    display: flex;
    align-items: center;
    background-color: #2E9B4E;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--color-white);
    text-align: center;
}
.page-header-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(46, 155, 78, 0.6);
    z-index: 1;
}
.page-header .container,
.page-header-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    text-align: center;
    width: 100%;
}
.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.breadcrumb { font-size: .8rem; color: rgba(255,255,255,.7); }
.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: var(--color-white); }
.breadcrumb span::before { content: ' › '; margin: 0 4px; }

/* ==========================================================================
   CTA BANNER（初回相談無料）
   ========================================================================== */
.cta-banner {
    background: linear-gradient(135deg, var(--color-navy) 0%, #27834A 100%);
    color: var(--color-white);
    padding: 50px 20px;
    text-align: center;
    margin-top: 60px;
}
.cta-banner h2 { font-size: 1.6rem; margin-bottom: 10px; }
.cta-banner p  { font-size: 1rem; color: rgba(255,255,255,.85); margin-bottom: 28px; }
.cta-buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

.btn-primary {
    display: inline-block;
    background: var(--color-accent);
    color: var(--color-white);
    padding: 14px 32px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1rem;
    transition: background var(--transition), transform var(--transition);
}
.btn-primary:hover { background: var(--color-blue-hover); transform: translateY(-2px); color: var(--color-white); }

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--color-white);
    padding: 14px 32px;
    border-radius: 6px;
    border: 2px solid var(--color-white);
    font-weight: 700;
    font-size: 1rem;
    transition: background var(--transition), transform var(--transition);
}
.btn-secondary:hover { background: rgba(255,255,255,.1); transform: translateY(-2px); color: var(--color-white); }

.cta-tel { margin-top: 20px; font-size: .95rem; color: rgba(255,255,255,.8); }
.cta-tel strong { font-size: 1.4rem; color: var(--color-white); margin-left: 8px; }

/* ==========================================================================
   共通コンテンツスタイル
   ========================================================================== */
.section-title {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--color-blue);
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--color-blue);
}
.section-title::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 1em;
    background: var(--color-blue);
    margin-right: 12px;
    vertical-align: middle;
    border-radius: 2px;
}

.section-subtitle { font-size: 1.1rem; color: var(--color-gray); margin-bottom: 32px; }

/* テキストブロック */
.content-block { margin-bottom: 48px; }
.content-block p { margin-bottom: 1em; font-size: .95rem; }
.content-block ul, .content-block ol { margin: 1em 0 1em 1.5em; }
.content-block ul { list-style: disc; }
.content-block ol { list-style: decimal; }
.content-block li { margin-bottom: .4em; font-size: .95rem; }

/* h2/h3/h4 in content */
.entry-content h2, .page-content h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-blue);
    margin: 2em 0 .8em;
    padding: 10px 16px;
    background: var(--color-light-gray);
    border-left: 4px solid var(--color-blue);
    border-radius: 0 4px 4px 0;
}
.entry-content h3, .page-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-blue);
    margin: 1.6em 0 .6em;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--color-border);
}
.entry-content h4, .page-content h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-dark);
    margin: 1.2em 0 .4em;
}
.entry-content p, .page-content p { margin-bottom: .9em; font-size: .95rem; }
.entry-content ul, .page-content ul { list-style: disc; margin: .8em 0 .8em 1.4em; }
.entry-content li, .page-content li { margin-bottom: .3em; font-size: .95rem; }

/* ==========================================================================
   料金テーブル
   ========================================================================== */
.price-table-wrap { overflow-x: auto; margin: 24px 0; }

.price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .88rem;
}
.price-table caption {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-blue);
    text-align: left;
    padding: 10px 0 8px;
    caption-side: top;
}
.price-table th {
    background: var(--color-navy);
    color: var(--color-white);
    padding: 10px 14px;
    text-align: left;
    font-weight: 700;
    white-space: nowrap;
}
.price-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--color-border);
    vertical-align: top;
}
.price-table tbody tr:nth-child(even) td { background: var(--color-light-gray); }
.price-table tbody tr:hover td { background: #E8F5EC; }
.price-table tfoot td {
    background: var(--color-light-gray);
    font-weight: 700;
    border-top: 2px solid var(--color-navy);
}
.price-note { font-size: .8rem; color: var(--color-gray); margin-top: 8px; line-height: 1.6; }

/* ==========================================================================
   ホームページ
   ========================================================================== */
/* ヒーロー */
.hero {
    background: linear-gradient(135deg, var(--color-blue) 0%, #27834A 60%, #1e6638 100%);
    color: var(--color-white);
    padding: 100px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 40%, rgba(46,155,78,.25) 0%, transparent 60%);
}
.hero-content { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 700; margin-bottom: 16px; line-height: 1.4; }
.hero p  { font-size: clamp(.95rem, 2vw, 1.15rem); color: rgba(255,255,255,.85); margin-bottom: 32px; max-width: 660px; margin-inline: auto; }
.hero-badge {
    display: inline-block;
    background: var(--color-accent);
    color: var(--color-white);
    padding: 6px 20px;
    border-radius: 20px;
    font-size: .85rem;
    font-weight: 700;
    margin-bottom: 24px;
}

/* 業務カードグリッド */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}
.service-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-top: 4px solid var(--color-blue);
    border-radius: 8px;
    padding: 28px 24px;
    transition: box-shadow var(--transition), transform var(--transition);
}
.service-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.1); transform: translateY(-4px); }
.service-card h3 { font-size: 1rem; font-weight: 700; color: var(--color-blue); margin-bottom: 10px; }
.service-card p  { font-size: .85rem; color: var(--color-gray); line-height: 1.7; }
.service-card .card-link {
    display: inline-block;
    margin-top: 14px;
    color: var(--color-blue);
    font-size: .82rem;
    font-weight: 700;
}
.service-card .card-link::after { content: ' →'; }

/* メッセージセクション */
.home-message {
    background: var(--color-light-gray);
    padding: 70px 20px;
    text-align: center;
}
.home-message h2 { font-size: 1.5rem; color: var(--color-blue); font-weight: 700; margin-bottom: 16px; }
.home-message p  { max-width: 700px; margin-inline: auto; color: var(--color-dark); line-height: 2; font-size: .95rem; }

/* オフィス情報セクション */
.offices-section { padding: 70px 0; }
.offices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 40px;
}
.office-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 32px;
}
.office-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-blue);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-blue);
}
.office-card address { font-style: normal; font-size: .88rem; line-height: 2; }

/* ==========================================================================
   スタッフカード（about）
   ========================================================================== */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 32px;
}
.staff-card {
    background: var(--color-light-gray);
    border-radius: 8px;
    padding: 32px;
}
.staff-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--color-blue); margin-bottom: 20px; }
.staff-card dl { font-size: .88rem; }
.staff-card dt { font-weight: 700; color: var(--color-blue); margin-top: 12px; }
.staff-card dd { margin-left: 0; line-height: 1.8; }
.staff-card ul { list-style: disc; margin-left: 1.2em; }

/* ==========================================================================
   沿革タイムライン（houjin）
   ========================================================================== */
.timeline { position: relative; padding-left: 30px; margin: 32px 0; }
.timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: var(--color-blue);
}
.timeline-item { position: relative; margin-bottom: 24px; }
.timeline-item::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-blue);
    border: 2px solid var(--color-white);
    box-shadow: 0 0 0 2px var(--color-blue);
}
.timeline-item time { font-size: .82rem; color: var(--color-gray); display: block; margin-bottom: 4px; }
.timeline-item p { font-size: .92rem; margin: 0; }

/* ==========================================================================
   コンタクトフォーム
   ========================================================================== */
.contact-wrap { max-width: 780px; margin-inline: auto; }
.contact-intro { margin-bottom: 32px; font-size: .95rem; line-height: 2; }

/* CF7 カスタマイズ */
.wpcf7 .wpcf7-form-control-wrap { display: block; margin-top: 4px; }

/* フォーム全体 */
.wpcf7-form p {
    margin-bottom: 24px;
}

/* ラベルテキスト */
.wpcf7-form p label,
.wpcf7-form p > span:first-child {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #1a1a1a;
}

/* テキスト入力・テキストエリア */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea,
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea,
.wpcf7 select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 16px;
    line-height: 1.6;
    margin-top: 4px;
    box-sizing: border-box;
    font-family: var(--font-base);
    transition: border-color var(--transition);
}

/* テキストエリア */
.wpcf7-form textarea,
.wpcf7 textarea {
    min-height: 160px;
    resize: vertical;
}

/* フォーカス */
.wpcf7 input:focus, .wpcf7 textarea:focus, .wpcf7 select:focus,
.wpcf7-form input:focus, .wpcf7-form textarea:focus {
    outline: none;
    border-color: var(--color-blue);
    box-shadow: 0 0 0 3px rgba(46,155,78,.15);
}

/* ラジオボタン・チェックボックス */
.wpcf7-form .wpcf7-radio,
.wpcf7-form .wpcf7-checkbox {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}
.wpcf7-form .wpcf7-list-item {
    margin: 0;
}
.wpcf7-form .wpcf7-list-item label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-weight: 400;
}

/* 送信ボタン */
.wpcf7-form input[type="submit"],
.wpcf7 input[type="submit"] {
    display: block;
    width: 100%;
    padding: 14px;
    background: #2E9B4E;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.3s;
    font-family: var(--font-base);
}
.wpcf7-form input[type="submit"]:hover,
.wpcf7 input[type="submit"]:hover {
    background: #27834A;
}

/* ラジオボタンのチェック色 */
.wpcf7-form input[type="radio"] {
    accent-color: #2E9B4E;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* チェックボックスのチェック色 */
.wpcf7-form input[type="checkbox"] {
    accent-color: #2E9B4E;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* エラーメッセージ */
.wpcf7-not-valid-tip {
    color: #e53e3e;
    font-size: 13px;
    margin-top: 4px;
    display: block;
}

/* ==========================================================================
   アクセスページ
   ========================================================================== */
.access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 32px;
}
.access-card { border: 1px solid var(--color-border); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.access-card-header {
    background: var(--color-navy);
    color: var(--color-white);
    padding: 16px 24px;
}
.access-card-header h2 { font-size: 1.1rem; font-weight: 700; }
.access-card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.access-card-body address { font-style: normal; font-size: .9rem; line-height: 2; }
.office-info { flex: 1; }
.office-map { margin-top: auto; }
.access-map {
    margin-top: 16px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--color-light-gray);
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gray);
    font-size: .85rem;
}
.access-map iframe { width: 100%; height: 100%; border: 0; }

/* ==========================================================================
   ダウンロードページ
   ========================================================================== */
.download-group { margin-bottom: 48px; }
.download-group h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-blue);
    padding: 10px 16px;
    background: var(--color-light-gray);
    border-left: 4px solid var(--color-blue);
    margin-bottom: 20px;
    border-radius: 0 4px 4px 0;
}
.download-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.download-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    transition: background var(--transition), border-color var(--transition);
    font-size: .88rem;
    color: var(--color-dark);
    cursor: pointer;
}
.download-item:hover { background: #F4FAF6; border-color: #2E9B4E; }
.download-item::before {
    content: '📄';
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ==========================================================================
   お知らせ・ブログ
   ========================================================================== */
.news-list { margin-top: 32px; }
.news-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border);
}
.news-item time { font-size: .8rem; color: var(--color-gray); white-space: nowrap; }
.news-item a { font-size: .92rem; color: var(--color-dark); }
.news-item a:hover { color: var(--color-blue); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {

    .global-nav, .header-cta { display: none; }
    .hamburger { display: flex; }

    .hero { padding: 70px 20px; }
    .hero h1 { font-size: 1.5rem; }

    .section-title { font-size: 1.35rem; }

    .page-header h1 { font-size: 1.5rem; }

    .cta-banner h2 { font-size: 1.3rem; }

    .price-table { font-size: .78rem; }
    .price-table th, .price-table td { padding: 8px 10px; }

    .service-grid { grid-template-columns: repeat(2, 1fr); }

    .footer-grid { grid-template-columns: 1fr; gap: 28px; }

    .site-content { padding: 40px 0; }
}

@media (max-width: 560px) {
    .service-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero { padding: 50px 16px; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .btn-primary, .btn-secondary { width: 100%; max-width: 320px; text-align: center; }
}

/* ==========================================================================
   Hero Slider (Swiper)
   ========================================================================== */
.hero-swiper {
    height: 80vh;
    min-height: 500px;
    width: 100%;
}

.hero-swiper .swiper-slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}

.hero-slide-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--color-white);
    padding: 0 20px;
    max-width: 820px;
    width: 100%;
}

.hero-slide-content .hero-badge {
    display: inline-block;
    background: var(--color-accent);
    color: var(--color-white);
    padding: 6px 20px;
    border-radius: 20px;
    font-size: .85rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.hero-slide-content h2 {
    font-size: clamp(1.5rem, 4vw, 2.4rem);
    font-weight: 700;
    margin-bottom: 14px;
    line-height: 1.4;
    color: var(--color-white);
    border: none;
    background: none;
    padding: 0;
}

.hero-slide-content p {
    font-size: clamp(.9rem, 2vw, 1.1rem);
    color: rgba(255,255,255,.88);
    margin-bottom: 32px;
}

.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
    color: var(--color-white);
}

.hero-swiper .swiper-pagination-bullet {
    background: var(--color-white);
    opacity: .6;
}

.hero-swiper .swiper-pagination-bullet-active {
    background: var(--color-accent);
    opacity: 1;
}

@media (max-width: 768px) {
    .hero-swiper { height: 70vh; min-height: 420px; }
    .page-header { height: 200px; }
    .page-header h1 { font-size: 1.5rem; }
}

/* ==========================================================================
   KEYFRAMES
   ========================================================================== */
@keyframes fadeUp    { from { opacity:0; transform:translateY(60px);  } to { opacity:1; transform:translateY(0); } }
@keyframes fadeDown  { from { opacity:0; transform:translateY(-40px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeLeft  { from { opacity:0; transform:translateX(-60px); } to { opacity:1; transform:translateX(0); } }
@keyframes fadeRight { from { opacity:0; transform:translateX(60px);  } to { opacity:1; transform:translateX(0); } }
@keyframes scaleIn   { from { opacity:0; transform:scale(0.75);       } to { opacity:1; transform:scale(1);     } }
@keyframes bounceIn  {
    0%   { opacity:0; transform:scale(0.4) translateY(40px); }
    60%  { opacity:1; transform:scale(1.08); }
    80%  { transform:scale(0.95); }
    100% { transform:scale(1); }
}
@keyframes slideReveal {
    from { clip-path:inset(0 100% 0 0); opacity:0; transform:translateY(20px); }
    to   { clip-path:inset(0 0% 0 0);   opacity:1; transform:translateY(0);    }
}
@keyframes floatY {
    0%,100% { transform:translateY(0px); }
    50%     { transform:translateY(-14px); }
}
@keyframes pulse-ring {
    0%   { box-shadow:0 0 0 0 rgba(46,155,78,.5); }
    70%  { box-shadow:0 0 0 14px rgba(46,155,78,0); }
    100% { box-shadow:0 0 0 0 rgba(46,155,78,0); }
}
@keyframes shimmerBG {
    0%   { background-position:0% 50%; }
    50%  { background-position:100% 50%; }
    100% { background-position:0% 50%; }
}
@keyframes shimmerText {
    0%   { background-position:-200% center; }
    100% { background-position:200% center; }
}
@keyframes ripple {
    to { transform:scale(4); opacity:0; }
}
@keyframes lineExpand {
    from { transform:scaleX(0); }
    to   { transform:scaleX(1); }
}
@keyframes particleFloat {
    0%   { transform:translateY(110vh) rotate(0deg);   opacity:0; }
    5%   { opacity:.7; }
    95%  { opacity:.3; }
    100% { transform:translateY(-20px) rotate(720deg); opacity:0; }
}
@keyframes gradientMove {
    0%   { background-position:0% 50%; }
    50%  { background-position:100% 50%; }
    100% { background-position:0% 50%; }
}
@keyframes countUp {
    from { opacity:0; transform:translateY(20px); }
    to   { opacity:1; transform:translateY(0); }
}

/* ==========================================================================
   SCROLL ANIMATION SYSTEM (data-anim)
   ========================================================================== */
[data-anim] {
    opacity: 0;
    will-change: opacity, transform;
    transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
}
[data-anim="fade-up"]    { transform: translateY(60px); }
[data-anim="fade-down"]  { transform: translateY(-40px); }
[data-anim="fade-left"]  { transform: translateX(-60px); }
[data-anim="fade-right"] { transform: translateX(60px); }
[data-anim="scale-in"]   { transform: scale(0.75); }
[data-anim="bounce-in"]  { transform: scale(0.6) translateY(30px); }

[data-anim].is-visible { opacity:1; transform:none !important; }
[data-anim="bounce-in"].is-visible { animation: bounceIn .8s cubic-bezier(.22,.61,.36,1) forwards; }

[data-delay="100"] { transition-delay:.1s; }
[data-delay="150"] { transition-delay:.15s; }
[data-delay="200"] { transition-delay:.2s; }
[data-delay="300"] { transition-delay:.3s; }
[data-delay="400"] { transition-delay:.4s; }
[data-delay="500"] { transition-delay:.5s; }
[data-delay="600"] { transition-delay:.6s; }
[data-delay="700"] { transition-delay:.7s; }
[data-delay="800"] { transition-delay:.8s; }

/* ==========================================================================
   SCROLL PROGRESS BAR
   ========================================================================== */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--color-blue), var(--color-accent), var(--color-blue));
    background-size: 200% 100%;
    animation: shimmerBG 2s linear infinite;
    z-index: 9999;
    transition: width .08s linear;
}

/* ==========================================================================
   ENHANCED HOVER — CARDS & BUTTONS
   ========================================================================== */
.service-card {
    transition: box-shadow .35s ease, transform .35s ease, border-top-color .35s ease;
}
.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(46,155,78,.22);
    border-top-color: var(--color-accent);
}
.service-card h3,
.service-card .card-link { transition: color .25s ease; }
.service-card:hover h3 { color: var(--color-accent); }

.office-card {
    transition: box-shadow .35s ease, transform .35s ease;
}
.office-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(46,155,78,.18);
}

/* Button ripple container */
.btn-primary, .btn-secondary, .header-cta a {
    position: relative;
    overflow: hidden;
}
.btn-ripple {
    position: absolute;
    border-radius: 50%;
    width: 100px; height: 100px;
    margin: -50px 0 0 -50px;
    background: rgba(255,255,255,.35);
    transform: scale(0);
    animation: ripple .65s linear;
    pointer-events: none;
}

/* Section title underline reveal */
.section-title {
    position: relative;
}
.section-title::after {
    content: '';
    position: absolute;
    left: 0; bottom: -2px;
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, var(--color-blue), var(--color-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .7s ease;
}
.section-title.is-visible::after,
.section-title.visible::after { transform: scaleX(1); }

/* Floating hero badge */
.hero-badge {
    animation: floatY 3s ease-in-out infinite;
}
/* Pulse on CTA buttons in hero */
.hero-slide-content .btn-primary {
    animation: pulse-ring 2.5s ease-out infinite;
}

/* ==========================================================================
   HERO SLIDE TEXT ANIMATION
   ========================================================================== */
.hero-slide-content h2,
.hero-slide-content p,
.hero-slide-content .cta-buttons,
.hero-slide-content .hero-badge {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}
.swiper-slide-active .hero-slide-content .hero-badge {
    opacity: 1; transform: translateY(0);
    transition-delay: .1s;
    animation: floatY 3s .7s ease-in-out infinite;
}
.swiper-slide-active .hero-slide-content h2 {
    opacity: 1; transform: translateY(0);
    transition-delay: .3s;
}
.swiper-slide-active .hero-slide-content p {
    opacity: 1; transform: translateY(0);
    transition-delay: .55s;
}
.swiper-slide-active .hero-slide-content .cta-buttons {
    opacity: 1; transform: translateY(0);
    transition-delay: .75s;
}

/* ==========================================================================
   HERO PARTICLES
   ========================================================================== */
.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}
.hero-particles span {
    position: absolute;
    bottom: -20px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    animation: particleFloat linear infinite;
}

/* ==========================================================================
   WAVE DIVIDER
   ========================================================================== */
.wave-divider { line-height: 0; overflow: hidden; }
.wave-divider svg { display: block; width: 100%; }

/* ==========================================================================
   STATS SECTION（トップページ）
   ========================================================================== */
.home-stats {
    background: var(--color-navy);
    color: var(--color-white);
    padding: 70px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.home-stats::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(46,155,78,.2) 0%, transparent 70%);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 40px;
    max-width: var(--max-width);
    margin-inline: auto;
    position: relative;
    z-index: 1;
}
.stat-item { padding: 20px; }
.stat-number {
    display: block;
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
    letter-spacing: -.02em;
}
.stat-suffix { font-size: 1.6rem; }
.stat-label {
    display: block;
    font-size: .85rem;
    color: rgba(255,255,255,.7);
    margin-top: 10px;
    letter-spacing: .05em;
}
.stat-item { border: 1px solid rgba(255,255,255,.1); border-radius: 12px; }

/* ==========================================================================
   ご相談の流れ（FLOW SECTION）
   ========================================================================== */
.flow-section {
    background: var(--color-navy);
    padding: 70px 20px;
    color: var(--color-white);
}
.flow-section .section-title { color: var(--color-white); }
.flow-section .section-title::after { background: linear-gradient(90deg, var(--color-accent), #fff); }
.flow-section .section-subtitle { color: rgba(255,255,255,.75); }

.flow-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.flow-step {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 16px;
    padding: 36px 28px;
    text-align: center;
    flex: 1;
    min-width: 220px;
    max-width: 300px;
    position: relative;
    transition: background .3s ease, transform .3s ease, box-shadow .3s ease;
}
.flow-step:hover {
    background: rgba(255,255,255,.13);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,.3);
}

.flow-icon {
    font-size: 2.8rem;
    margin-bottom: 12px;
    display: block;
    animation: floatY 3s ease-in-out infinite;
}
.flow-step:nth-child(3) .flow-icon { animation-delay: .6s; }
.flow-step:nth-child(5) .flow-icon { animation-delay: 1.2s; }

.flow-num {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 12px;
    letter-spacing: -.04em;
}

.flow-step h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 10px;
    border: none;
    background: none;
    padding: 0;
}

.flow-step p {
    font-size: .82rem;
    color: rgba(255,255,255,.72);
    line-height: 1.8;
}

.flow-arrow {
    font-size: 1.8rem;
    color: var(--color-accent);
    flex-shrink: 0;
    animation: pulse-ring 2s ease-out infinite;
}

@media (max-width: 768px) {
    .flow-grid { flex-direction: column; align-items: stretch; }
    .flow-step  { max-width: 100%; }
    .flow-arrow { transform: rotate(90deg); text-align: center; }
}

/* ==========================================================================
   ANIMATED GRADIENT — HOME MESSAGE
   ========================================================================== */
.home-message {
    background: linear-gradient(135deg, #f0faf3, #FAFAF7, #fdf8ee, #f0faf3);
    background-size: 300% 300%;
    animation: gradientMove 10s ease infinite;
}

/* Shimmer text effect */
.shimmer-text {
    background: linear-gradient(90deg, var(--color-blue) 0%, var(--color-accent) 45%, var(--color-blue) 90%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerText 3.5s linear infinite;
    display: inline-block;
}

/* Page header zoom-in */
.page-header .page-header-overlay {
    transition: opacity 1s ease;
}

/* ==========================================================================
   RESPONSIVE ANIMATION ADJUSTMENTS
   ========================================================================== */
@media (max-width: 768px) {
    [data-anim="fade-left"],
    [data-anim="fade-right"] { transform: translateY(40px); }
    .stat-number { font-size: 2.4rem; }
    .stats-grid  { gap: 20px; }
}

/* ==========================================================================
   BACK TO TOP BUTTON
   ========================================================================== */
#back-to-top {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: #2E9B4E;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .3s ease, visibility .3s ease, transform .3s ease, background .3s ease;
    z-index: 900;
}
#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
#back-to-top:hover { background: #27834A; }

/* ==========================================================================
   FLOAT CONTACT BUTTON
   ========================================================================== */
#float-contact {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 80px;
    height: 80px;
    background: #B8892A;
    color: #ffffff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    line-height: 1.4;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(184,137,42,.45);
    transition: background .3s ease, transform .3s ease, box-shadow .3s ease;
    z-index: 900;
}
#float-contact:hover {
    background: #27834A;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 28px rgba(39,131,74,.4);
    color: #ffffff;
}

@media (max-width: 480px) {
    #float-contact { width: 68px; height: 68px; font-size: 11px; bottom: 16px; right: 16px; }
    #back-to-top   { bottom: 96px; right: 16px; }
}
