/*
Theme Name: 山口県空家サポートチーム
Theme URI: https://example.com
Author: Yamaguchi Akiya Support Team
Author URI: https://example.com
Description: 山口県全域の空き家対策ポータルサイト用WordPressテーマ
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yamaguchi-akiya
Tags: japanese, real-estate, one-page, custom-menu
*/

/* ==========================================
   CSS Variables
   ========================================== */
:root {
    --hnavi-blue: #005c97;
    --hnavi-sub: #f0f7ff;
    --hnavi-accent: #f39800;
    --text-main: #222222;
    --line-green: #06C755;
}

/* ==========================================
   Base Styles
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    scroll-behavior: smooth;
    color: var(--text-main);
    background-color: #ffffff;
    line-height: 1.8;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* ==========================================
   Utility Classes
   ========================================== */
.bg-soft-blue { background-color: var(--hnavi-sub); }
.text-accent { color: var(--hnavi-accent); }
.bg-accent { background-color: var(--hnavi-accent); }
.text-hnavi-blue { color: var(--hnavi-blue); }
.bg-hnavi-blue { background-color: var(--hnavi-blue); }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
    .container { padding: 0 2rem; }
}

.rounded-hnavi {
    border-radius: 1.5rem;
}

/* ==========================================
   Scroll Reveal Animation
   ========================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-stagger.active > *:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.reveal-stagger.active > *:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.reveal-stagger.active > *:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.reveal-stagger.active > *:nth-child(4) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }

/* Fade in from left */
.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

/* Fade in from right */
.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Scale in */
.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* ==========================================
   Button Styles
   ========================================== */
.btn-shadow {
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.btn-shadow:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.1);
}

.btn-shadow:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 2.5rem;
    background-color: var(--hnavi-accent);
    color: #ffffff;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1.125rem;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 2.5rem;
    background-color: #ffffff;
    color: var(--hnavi-blue);
    border: 1px solid #bfdbfe;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1.125rem;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background-color: var(--hnavi-blue);
    color: #ffffff;
    border-radius: 9999px;
    font-weight: 700;
}

.btn-line {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background-color: var(--line-green);
    color: #ffffff;
    border-radius: 9999px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-line:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background-color: transparent;
    color: var(--hnavi-blue);
    border: 2px solid var(--hnavi-blue);
    border-radius: 9999px;
    font-weight: 700;
}

.btn-outline:hover {
    background-color: var(--hnavi-sub);
}

/* ==========================================
   Navigation
   ========================================== */
.site-header {
    position: fixed;
    width: 100%;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.site-logo .logo-icon {
    width: 40px;
    height: 40px;
    background: var(--hnavi-blue);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.site-logo:hover .logo-icon {
    transform: rotate(-5deg) scale(1.05);
}

.site-logo .logo-text {
    font-size: 1.0rem;
    font-weight: 900;
    color: #111827;
    line-height: 1.1;
}

.site-logo .logo-sub {
    font-size: 9px;
    color: var(--hnavi-blue);
    font-weight: 700;
    letter-spacing: 0.2em;
    margin-top: 2px;
}

.nav-menu {
    display: none;
    align-items: center;
    gap: 0.75rem;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

@media (min-width: 1024px) {
    .nav-menu { display: flex; }
}

@media (min-width: 1280px) {
    .nav-menu {
        gap: 1.25rem;
        font-size: 13px;
    }
}

.nav-cta-btn {
    font-size: 11px;
    padding: 0.6rem 1rem;
    gap: 0.4rem;
}

@media (min-width: 1280px) {
    .nav-cta-btn {
        font-size: 13px;
        padding: 0.75rem 1.25rem;
        gap: 0.5rem;
    }
}

.nav-link {
    position: relative;
    color: #374151;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--hnavi-blue);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--hnavi-blue);
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Menu */
.mobile-toggle {
    display: block;
    background: none;
    border: none;
    padding: 0.5rem;
    color: #4b5563;
    cursor: pointer;
}

@media (min-width: 1024px) {
    .mobile-toggle { display: none; }
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    padding: 2rem;
    border-bottom: 1px solid #e5e7eb;
    z-index: 49;
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.3s ease;
}

.mobile-menu.open {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu a {
    display: block;
    padding: 1rem 0;
    font-weight: 700;
    font-size: 1rem;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
}

.mobile-menu a:last-child {
    border-bottom: none;
}

/* ==========================================
   Hero Section
   ========================================== */
.hero-section {
    position: relative;
    padding-top: 8rem;
    padding-bottom: 5rem;
    background-color: var(--hnavi-sub);
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero-section .bg-circle-1 {
    position: absolute;
    top: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: #ffffff;
    border-radius: 50%;
    opacity: 0.6;
}

.hero-section .bg-circle-2 {
    position: absolute;
    bottom: -10%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: rgba(219, 234, 254, 0.5);
    border-radius: 50%;
    opacity: 0.4;
}

.hero-grid {
    display: grid;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 10;
}

@media (min-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr 1fr; }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--hnavi-blue);
    border: 1px solid #dbeafe;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.hero-badge .pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--hnavi-accent);
    border-radius: 50%;
    margin-right: 0.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title {
    font-size: clamp(1.5rem, 4.5vw, 2.75rem);
    font-weight: 900;
    color: #111827;
    line-height: 1.3;
    margin-bottom: 2rem;
}

.hero-title .highlight {
    color: var(--hnavi-blue);
}

.hero-desc {
    font-size: 1.125rem;
    color: #4b5563;
    margin-bottom: 2.5rem;
    line-height: 1.8;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.hero-staff {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
}

.hero-staff .avatars {
    display: flex;
}

.hero-staff .avatars img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    object-fit: cover;
    margin-left: -12px;
}

.hero-staff .avatars img:first-child {
    margin-left: 0;
}

.hero-image-wrapper {
    position: relative;
}

.hero-image {
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    aspect-ratio: 4/3;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 92, 151, 0.4), transparent);
}

.hero-float-card {
    position: absolute;
    bottom: -2rem;
    right: -2rem;
    background: #ffffff;
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid #eff6ff;
}

/* ==========================================
   Section Styles
   ========================================== */
.section-padding {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    font-size: 0.875rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--hnavi-accent);
    margin-bottom: 1rem;
}

.section-label.blue {
    color: var(--hnavi-blue);
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
}

@media (min-width: 768px) {
    .section-title { font-size: 2.25rem; }
}

.section-divider {
    width: 4rem;
    height: 4px;
    background: var(--hnavi-accent);
    margin: 1.5rem auto 0;
    border-radius: 2px;
}

.section-desc {
    color: #6b7280;
    margin-top: 1.5rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
}

/* ==========================================
   Feature Cards
   ========================================== */
.features-grid {
    display: grid;
    gap: 2.5rem;
}

@media (min-width: 1024px) {
    .features-grid { grid-template-columns: repeat(3, 1fr); }
}

.feature-card {
    background: #ffffff;
    border-radius: 1.5rem;
    border: 1px solid #dbeafe;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.feature-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.feature-card-image {
    height: 12rem;
    overflow: hidden;
}

.feature-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.feature-card:hover .feature-card-image img {
    transform: scale(1.08);
}

.feature-card-body {
    padding: 1.5rem 2rem 2rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.feature-card p {
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.8;
}

/* ==========================================
   Risk Cards
   ========================================== */
.risks-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .risks-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .risks-grid { grid-template-columns: repeat(4, 1fr); }
}

.risk-card {
    background: #ffffff;
    border-radius: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.risk-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.card-img-hover {
    overflow: hidden;
    height: 12rem;
}

.card-img-hover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.risk-card:hover .card-img-hover img {
    transform: scale(1.1);
}

.risk-card .card-body {
    padding: 1.5rem;
    flex-grow: 1;
}

.risk-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.risk-card p {
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.8;
}

/* ==========================================
   Management Menu Cards
   ========================================== */
.menu-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .menu-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .menu-grid { grid-template-columns: repeat(4, 1fr); }
}

.menu-card {
    background: #ffffff;
    border-radius: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.menu-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.menu-card .card-image {
    height: 10rem;
    overflow: hidden;
}

.menu-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.menu-card:hover .card-image img {
    transform: scale(1.1);
}

.menu-card .card-body {
    padding: 1.5rem;
}

.menu-card h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.menu-card p {
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.8;
}

.menu-heading {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 2rem;
    padding-left: 1rem;
    border-left: 8px solid var(--hnavi-blue);
}

/* ==========================================
   Pricing Cards
   ========================================== */
.pricing-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .pricing-grid { grid-template-columns: repeat(3, 1fr); }
}

.pricing-card {
    background: #ffffff;
    border: 1px solid #f3f4f6;
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.pricing-card.featured {
    background: var(--hnavi-blue);
    color: #ffffff;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.07);
}

.pricing-card .popular-badge {
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--hnavi-accent);
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 0.375rem 1.5rem;
    border-radius: 9999px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.pricing-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pricing-card .price {
    font-size: 2.25rem;
    font-weight: 900;
    margin-bottom: 2rem;
}

.pricing-card .price span {
    font-size: 0.875rem;
    font-weight: 400;
    opacity: 0.7;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

.pricing-card ul li {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    padding: 0.75rem 0;
}

.pricing-card ul li svg {
    width: 16px;
    height: 16px;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

/* ==========================================
   Plan Comparison Table
   ========================================== */
.plan-comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.plan-comparison-table thead th {
    background: var(--hnavi-blue);
    color: #fff;
    font-weight: 700;
    padding: 1rem 0.75rem;
    text-align: center;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.plan-comparison-table thead th:first-child {
    text-align: left;
    padding-left: 1.5rem;
}

.plan-comparison-table thead th.highlight-col {
    background: var(--hnavi-accent);
}

.plan-comparison-table tbody td {
    padding: 0.875rem 0.75rem;
    text-align: center;
    border-bottom: 1px solid #f0f4f8;
    font-weight: 500;
}

.plan-comparison-table tbody td:first-child {
    text-align: left;
    padding-left: 1.5rem;
    font-weight: 700;
    color: #374151;
}

.plan-comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.plan-comparison-table tbody tr:hover {
    background: #f8fbff;
}

.plan-comparison-table .mark-ok {
    color: var(--hnavi-blue);
    font-weight: 900;
    font-size: 1.125rem;
}

.plan-comparison-table .mark-ng {
    color: #d1d5db;
    font-weight: 700;
    font-size: 1rem;
}

.plan-comparison-table tbody td.highlight-col {
    background: rgba(243, 152, 0, 0.04);
}

/* Options Grid */
.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .options-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
    .options-grid { grid-template-columns: repeat(4, 1fr); }
}

.option-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    background: #fff;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
    transition: all 0.2s ease;
}

.option-item:hover {
    border-color: var(--hnavi-blue);
    background: var(--hnavi-sub);
}

.option-item svg {
    flex-shrink: 0;
}

/* Responsive table */
@media (max-width: 640px) {
    .plan-comparison-table {
        font-size: 0.75rem;
    }
    .plan-comparison-table thead th {
        padding: 0.75rem 0.375rem;
        font-size: 0.7rem;
    }
    .plan-comparison-table tbody td {
        padding: 0.625rem 0.375rem;
    }
    .plan-comparison-table tbody td:first-child,
    .plan-comparison-table thead th:first-child {
        padding-left: 0.75rem;
    }
}

/* ==========================================
   Related Service Banners
   ========================================== */
.related-banners {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 52rem;
    margin: 0 auto;
}

.related-banner-img {
    display: block;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.related-banner-img:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--hnavi-blue);
}

.related-banner-img img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==========================================
   FAQ Section
   ========================================== */
.faq-list {
    max-width: 48rem;
    margin: 0 auto;
}

.faq-item {
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #dbeafe;
    margin-bottom: 1rem;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h4 {
    font-weight: 700;
    color: #1f2937;
    font-size: 0.95rem;
    padding-right: 1rem;
}

.faq-question .faq-icon {
    color: var(--hnavi-blue);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.faq-answer-inner {
    padding: 0 1.5rem 1.5rem;
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* ==========================================
   Voice / Testimonial Cards
   ========================================== */
.voice-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .voice-grid { grid-template-columns: repeat(2, 1fr); }
}

.voice-card {
    background: var(--hnavi-sub);
    padding: 2rem;
    border-radius: 1.5rem;
    border: 1px solid #dbeafe;
    position: relative;
    transition: all 0.3s ease;
}

.voice-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.voice-card .voice-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.voice-card .voice-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.voice-card .voice-name {
    font-weight: 700;
    font-size: 1.125rem;
    color: #111827;
}

.voice-card .voice-plan {
    font-size: 0.75rem;
    color: var(--hnavi-blue);
    font-weight: 700;
}

.voice-card .voice-text {
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.voice-card .voice-stars {
    display: flex;
    gap: 2px;
}

.voice-card .voice-stars svg {
    width: 16px;
    height: 16px;
    color: var(--hnavi-accent);
    fill: var(--hnavi-accent);
}

/* ==========================================
   Blog Cards
   ========================================== */
.blog-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .blog-grid { grid-template-columns: repeat(3, 1fr); }
}

.blog-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
}

.blog-card .card-thumb {
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 1.5rem;
    aspect-ratio: 16/9;
    background: #e5e7eb;
}

.blog-card .card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .card-thumb img {
    transform: scale(1.1);
}

.blog-card .card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.blog-card .card-category {
    font-size: 10px;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    background: #dbeafe;
    color: var(--hnavi-blue);
}

.blog-card .card-date {
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 500;
}

.blog-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.blog-card:hover h3 {
    color: var(--hnavi-blue);
}

/* Single blog page */
.single-post-content {
    max-width: 48rem;
    margin: 0 auto;
}

.single-post-content h1 {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.single-post-content .post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.single-post-content .post-thumbnail {
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 2rem;
}

.single-post-content .post-thumbnail img {
    width: 100%;
    height: auto;
}

.single-post-content .entry-content {
    line-height: 2;
    color: #374151;
}

.single-post-content .entry-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
    padding-left: 1rem;
    border-left: 4px solid var(--hnavi-blue);
}

.single-post-content .entry-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 1.5rem 0 0.75rem;
}

.single-post-content .entry-content p {
    margin-bottom: 1.5rem;
}

.single-post-content .entry-content img {
    border-radius: 0.5rem;
    margin: 1rem 0;
}

/* ==========================================
   Map Section
   ========================================== */
.map-wrapper {
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    height: auto;
    border: 8px solid #ffffff;
}

.map-wrapper iframe {
    width: 50%;
    height: 50%;
    border: 0;
}

/* ==========================================
   Company Table
   ========================================== */
.company-table-wrapper {
    background: #ffffff;
    border-radius: 1.5rem;
    padding: 2rem 3rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    max-width: 48rem;
    margin: 0 auto;
}

.company-table {
    width: 100%;
    font-size: 0.875rem;
}

.company-table th,
.company-table td {
    padding: 1.5rem 0;
    border-bottom: 1px solid #eff6ff;
}

.company-table th {
    text-align: left;
    font-weight: 700;
    color: #374151;
    width: 33%;
}

.company-table td {
    color: #111827;
}

.company-table tr:last-child th,
.company-table tr:last-child td {
    border-bottom: none;
}

/* ==========================================
   Footer / CTA
   ========================================== */
.site-footer {
    background: var(--hnavi-blue);
    color: #ffffff;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.site-footer .accent-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--hnavi-accent);
}

.footer-cta {
    text-align: center;
    position: relative;
    z-index: 10;
}

.footer-cta h2 {
    font-size: 2.25rem;
    font-weight: 900;
    margin-bottom: 2rem;
    line-height: 1.4;
}

.footer-cta p {
    color: rgba(191, 219, 254, 0.9);
    margin-bottom: 3rem;
    font-size: 1.125rem;
    font-weight: 500;
}

.footer-buttons {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
}

@media (min-width: 640px) {
    .footer-buttons { flex-direction: row; }
}

.footer-copyright {
    margin-top: 3rem;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    font-weight: 700;
    opacity: 0.3;
    text-transform: uppercase;
}

/* ==========================================
   Footer Contact Form 7
   ========================================== */
.footer-contact-form {
    max-width: 600px;
    margin: 4rem auto 0;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-contact-form p{
    margin-bottom:0px;
}

.footer-contact-form .form-heading {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #ffffff;
}

.footer-contact-form .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-contact-form .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.footer-contact-form input[type="text"],
.footer-contact-form input[type="email"],
.footer-contact-form input[type="tel"],
.footer-contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-main);
    font-size: 1rem;
    font-family: 'Noto Sans JP', sans-serif;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.footer-contact-form input[type="text"]:focus,
.footer-contact-form input[type="email"]:focus,
.footer-contact-form input[type="tel"]:focus,
.footer-contact-form textarea:focus {
    outline: none;
    border-color: var(--hnavi-accent);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(243, 152, 0, 0.1);
}

.footer-contact-form textarea {
    min-height: 150px;
    height: 150px;
    resize: vertical;
}

.footer-contact-form input[type="submit"] {
    width: 100%;
    padding: 1.25rem 2.5rem;
    background: var(--hnavi-accent);
    color: #ffffff;
    border: none;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.footer-contact-form input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    opacity: 0.95;
}

.footer-contact-form input[type="submit"]:active {
    transform: translateY(0);
}

.footer-contact-form .wpcf7-not-valid-tip {
    color: #ffffff;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    background: rgba(239, 68, 68, 0.9);
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    display: inline-block;
}

.footer-contact-form .wpcf7-response-output {
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    text-align: center;
}

.footer-contact-form .wpcf7-validation-errors {
    background: rgba(239, 68, 68, 0.9);
    color: #ffffff;
    border: none;
}

.footer-contact-form .wpcf7-mail-sent-ok {
    background: rgba(34, 197, 94, 0.9);
    color: #ffffff;
    border: none;
}

.footer-contact-form .wpcf7-spam-blocked {
    background: rgba(239, 68, 68, 0.9);
    color: #ffffff;
    border: none;
}

.footer-contact-form .wpcf7-spinner {
    margin-left: 1rem;
}

/* Placeholder styling */
.footer-contact-form input::placeholder,
.footer-contact-form textarea::placeholder {
    color: #9ca3af;
    opacity: 1;
}

/* Label styling if needed */
.footer-contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.875rem;
}

@media (max-width: 640px) {
    .footer-contact-form {
        padding: 1.5rem;
        margin: 3rem 1rem 0;
    }

    .footer-contact-form .form-heading {
        font-size: 1.25rem;
    }
}

/* ==========================================
   Floating CTA (Mobile)
   ========================================== */
.floating-cta {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 40;
    padding: 0.75rem;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-top: 1px solid #e5e7eb;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.floating-cta.visible {
    transform: translateY(0);
}

@media (min-width: 1024px) {
    .floating-cta { display: none; }
}

.floating-cta a {
    flex: 1;
    text-align: center;
    padding: 0.875rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* ==========================================
   Pagination
   ========================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.pagination a {
    background: #ffffff;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.pagination a:hover {
    background: var(--hnavi-sub);
    color: var(--hnavi-blue);
}

.pagination .current {
    background: var(--hnavi-blue);
    color: #ffffff;
}

/* ==========================================
   Counter Animation
   ========================================== */
.counter-box {
    text-align: center;
}

.counter-box .counter-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--hnavi-blue);
}

/* ==========================================
   Parallax-like scroll effect for floating elements
   ========================================== */
.float-animate {
    animation: floatUp 3s ease-in-out infinite;
}

@keyframes floatUp {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ==========================================
   Loading / Skeleton
   ========================================== */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 0.5rem;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ==========================================
   WordPress-specific styles
   ========================================== */
.wp-block-image { margin-bottom: 1.5rem; }
.wp-block-image img { border-radius: 0.5rem; }

.aligncenter { text-align: center; }
.alignleft { float: left; margin-right: 1.5rem; }
.alignright { float: right; margin-left: 1.5rem; }

/* Screen reader text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}
