/*
Theme Name: 青山龍二税理士事務所
Description: パフォーマンス最適化されたWordPressテーマ
Author: Your Name
Version: 1.0.0
License: GPL v2 or later
*/

/* フォームグリッド */
.form-row {
    display: grid;
    gap: 30px;
}

@media screen and (min-width: 768px) {
    .form-row.two-columns {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group {
    position: relative;
}

.form-label {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 12px;
    font-size: var(--font-size-base);
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-label.required::after {
    content: "必須";
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    font-size: var(--font-size-xs);
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* radio-group の専用スタイル */
.radio-group {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

@media (max-width: 767px) {
    .radio-group {
        justify-content: center;
    }
}

@media (min-width: 768px) {
    .radio-group {
        justify-content: flex-start;
    }
}



/* プライバシーポリシーページ専用スタイル */
.privacy-page {
    background: white;
    padding: 80px 0;
}

.privacy-container {
    max-width: 900px;
    margin: 0 auto;
}

.page-intro {
    text-align: center;
    margin-bottom: 60px;
}

.page-intro h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: var(--font-size-3xl);
}

.page-intro p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: var(--font-size-lg);
    max-width: 700px;
    margin: 0 auto;
}

.privacy-content-wrapper {
    background: white;
    border-radius: 20px;
    box-shadow: var(--card-shadow-lg);
    padding: 40px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.privacy-content-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.privacy-sections {
    display: grid;
    gap: 40px;
}

.privacy-section h3 {
    font-family: "Noto Serif JP", serif;
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-left: 20px;
    position: relative;
}

.privacy-section h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 24px;
    background: var(--primary-gradient);
    border-radius: 2px;
    transform: translateY(-50%);
}

.privacy-section p {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 15px;
}

.privacy-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.privacy-list li {
    position: relative;
    padding: 8px 0 8px 30px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 8px;
}

.privacy-list li::before {
    content: "";
    position: absolute;
    background: var(--primary-gradient);
    width: 8px;
    height: 8px;
    left: 12px;
    top: 50%;
    border-radius: 50%;
    transform: translateY(-50%);
}

.privacy-section .contact-info {
    background: var(--secondary-color);
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    border: 1px solid var(--border-color);
}

.privacy-section .contact-info p {
    margin-bottom: 8px;
    color: var(--text-primary);
}

.privacy-section .contact-info a {
    color: var(--primary-color);
    text-decoration: underline;
}

.privacy-section .contact-info a:hover {
    color: var(--text-primary);
}

/* CTAセクション */
.privacy-page .cta-section {
    background: var(--primary-gradient);
    padding: 60px 0;
    text-align: center;
    color: white;
    margin-top: 60px;
    border-radius: 20px;
}

.privacy-page .cta-content p {
    font-size: clamp(var(--font-size-lg), 3vw, var(--font-size-xl));
    font-weight: 500;
    color: white;
    margin-bottom: 30px;
    line-height: 1.4;
}

.privacy-page .btn {
    background: white;
    color: var(--primary-color);
    border: 2px solid white;
}

.privacy-page .btn:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
}

/* スマホ版対応 */
@media (max-width: 768px) {
    .privacy-page {
        padding: 40px 0;
    }
    
    .privacy-container {
        margin: 0 15px;
    }
    
    .privacy-content-wrapper {
        padding: 25px 20px;
        border-radius: 16px;
    }
    
    .page-intro {
        margin-bottom: 40px;
    }
    
    .page-intro h2 {
        font-size: var(--font-size-2xl);
    }
    
    .page-intro p {
        font-size: var(--font-size-base);
    }
    
    .privacy-sections {
        gap: 30px;
    }
    
    .privacy-section h3 {
        font-size: var(--font-size-lg);
        padding-left: 16px;
    }
    
    .privacy-section h3::before {
        width: 3px;
        height: 20px;
    }
    
    .privacy-page .cta-section {
        margin-top: 40px;
        padding: 40px 20px;
        border-radius: 16px;
    }
    
    .privacy-page .cta-content p {
        font-size: var(--font-size-base);
        margin-bottom: 25px;
    }
}

/* 送信セクション */
.submit-section {
    text-align: center;
}

/* フッター */
footer {
    background: var(--text-primary);
    color: white;
    margin-top: auto;
}

.inquiry {
    background: var(--primary-gradient);
    padding: 60px 0;
}

.inquiry-wrapper {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
}

.inquiry-wrapper h3 {
    font-size: clamp(var(--font-size-lg), 4vw, var(--font-size-2xl));
    font-weight: 600;
    margin-bottom: 30px;
    line-height: 1.4;
    color: white;
}

.inquiry-wrapper h3 span {
    display: inline-block;
}

.footer-inquiry-btn {
    display: grid;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

@media screen and (min-width: 800px) {
    .footer-inquiry-btn {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

.footer-inquiry-btn .telephone,
.footer-inquiry-btn .mail {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    height: 80px;
    min-height: 80px;
}

.footer-inquiry-btn .telephone:hover,
.footer-inquiry-btn .mail:hover {
    box-shadow: var(--card-shadow-lg);
    transform: translateY(-2px);
}

.footer-inquiry-btn .telephone .phoneicon,
.footer-inquiry-btn .mail .mailicon {
    background: var(--primary-gradient);
    height: 50px;
    width: 50px;
    border-radius: 50%;
    position: relative;
    margin-right: 15px;
}

.footer-inquiry-btn .telephone .phoneicon .fa-phone,
.footer-inquiry-btn .mail .mailicon .fa-envelope {
    position: absolute;
    color: #fff;
    font-size: 20px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.footer-inquiry-btn .telephone .phonenumber .phonenumbermain,
.footer-inquiry-btn .mail .mailmain {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.footer-inquiry-btn .telephone .phonenumber .phonenumbersub {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
}

/* 地図 */
.map {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.map::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.1) 100%);
    z-index: 1;
    pointer-events: none;
}

.map iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(20%) contrast(1.1);
}

/* フッター情報 - 新しいデザイン */
.footer {
    background: var(--text-primary);
    padding: 60px 0 40px;
}

.footer-wrapper {
    display: grid;
    gap: 40px;
    text-align: left;
}

@media screen and (min-width: 800px) {
    .footer-wrapper {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 60px;
    }
}

/* 事務所情報セクション */
.footer-office-info {
    text-align: center;
}

@media screen and (min-width: 800px) {
    .footer-office-info {
        text-align: left;
    }
}

.footer-title {
    font-family: "Noto Serif JP", serif;
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.footer-subtitle {
    font-size: var(--font-size-base);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    font-weight: 400;
}

.footer-address {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--font-size-sm);
    line-height: 1.8;
}

.footer-address p {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-address i {
    color: var(--primary-color);
    width: 16px;
    text-align: center;
}

.footer-address a {
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.footer-address a:hover {
    color: var(--accent-color);
}

/* メニューセクション */
.footer-menu h4 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: white;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.footer-menu h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

.footer-menu ul {
    list-style: none;
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.footer-menu ul li a {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--font-size-sm);
    transition: all 0.3s ease;
    padding: 8px 0;
    display: block;
    position: relative;
    border-radius: 4px;
    padding-left: 20px;
    text-decoration: none;
}

.footer-menu ul li a::before {
    content: "";
    position: absolute;
    background: var(--primary-color);
    width: 6px;
    height: 6px;
    left: 0;
    top: 50%;
    border-radius: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.footer-menu ul li a:hover {
    color: white;
    padding-left: 30px;
}

.footer-menu ul li a:hover::before {
    width: 8px;
    height: 8px;
    background: white;
}

/* サービスセクション */
.footer-services h4 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: white;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.footer-services h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

.service-columns {
    display: grid;
    gap: 20px;
}

.service-column h5 {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
    padding-left: 12px;
    position: relative;
    cursor: pointer;
    transition: color 0.3s ease;
}

.service-column h5:hover {
    color: white;
}

.service-column h5::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 2px;
    transform: translateY(-50%);
}

.service-column ul {
    list-style: none;
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.service-column ul li {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--font-size-xs);
    padding: 4px 0;
    padding-left: 16px;
    position: relative;
    transition: all 0.3s ease;
}

.service-column ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.service-column ul li:hover {
    color: rgba(255, 255, 255, 0.9);
    padding-left: 20px;
}

.copyright {
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    padding: 20px 0;
    font-size: var(--font-size-sm);
}

/* 送信完了ページ */
.thanks-page {
    padding: 80px 0;
    background: var(--bg-gradient);
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.thanks-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    background: white;
    border-radius: 20px;
    padding: 50px 30px;
    box-shadow: var(--card-shadow-lg);
    border: 1px solid var(--border-color);
}

.thanks-icon {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: 30px;
    animation: checkmark 0.6s ease-in-out;
}

@keyframes checkmark {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.thanks-title {
    font-size: var(--font-size-3xl);
    color: var(--text-primary);
    margin-bottom: 30px;
    font-family: "Noto Serif JP", serif;
}

.thanks-message {
    margin-bottom: 40px;
    line-height: 1.8;
}

.thanks-message p {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.thanks-message strong {
    color: var(--primary-color);
    font-weight: 600;
}

.contact-info {
    background: var(--secondary-color);
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
    border: 1px solid var(--border-color);
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.contact-icon {
    background: var(--primary-gradient);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-details {
    text-align: left;
}

@media (max-width: 600px) {
    .contact-details {
        text-align: center;
    }
}

.contact-number {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--text-primary);
    font-family: "Roboto", sans-serif;
}

.contact-hours {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.thanks-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 40px 0 30px;
    align-items: center;
}

@media (min-width: 600px) {
    .thanks-actions {
        flex-direction: row;
        justify-content: center;
    }
}

.thanks-actions .btn {
    min-width: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
}

.auto-redirect {
    margin-top: 30px;
    padding: 15px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.auto-redirect p {
    font-size: var(--font-size-sm);
    color: var(--primary-color);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* 404エラーページ専用スタイル */
.error-page {
    padding: 80px 0;
    background: var(--bg-gradient);
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
}

.error-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background: white;
    border-radius: 20px;
    padding: 60px 40px;
    box-shadow: var(--card-shadow-lg);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.error-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.error-icon {
    font-size: 5rem;
    color: var(--error-color);
    margin-bottom: 30px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.error-code {
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-family: "Roboto", sans-serif;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.error-title {
    font-size: var(--font-size-3xl);
    color: var(--text-primary);
    margin-bottom: 30px;
    font-family: "Noto Serif JP", serif;
}

.error-message {
    margin-bottom: 40px;
    line-height: 1.8;
}

.error-message p {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.error-suggestions {
    background: var(--secondary-color);
    border-radius: 16px;
    padding: 30px;
    margin: 40px 0;
    border: 1px solid var(--border-color);
    text-align: left;
}

.error-suggestions h3 {
    color: var(--text-primary);
    margin-bottom: 20px;
    text-align: center;
    font-size: var(--font-size-xl);
}

.error-suggestions ul {
    list-style: none;
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
}

.error-suggestions li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    border-radius: 8px;
}

.error-suggestions li::before {
    content: "";
    position: absolute;
    background: var(--primary-gradient);
    width: 8px;
    height: 8px;
    left: 12px;
    top: 50%;
    border-radius: 50%;
    transform: translateY(-50%);
}

.error-suggestions li:hover {
    background: rgba(37, 99, 235, 0.05);
    padding-left: 35px;
}

.navigation-links {
    display: grid;
    gap: 20px;
    margin: 40px 0;
}

@media screen and (min-width: 600px) {
    .navigation-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

.nav-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.05), transparent);
    transition: left 0.6s ease;
}

.nav-card:hover::before {
    left: 100%;
}

.nav-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--card-shadow);
    transform: translateY(-2px);
}

.nav-card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.nav-card-title {
    font-size: var(--font-size-lg);
    color: var(--text-primary);
    margin-bottom: 10px;
    font-weight: 600;
}

.nav-card-desc {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    margin-bottom: 0;
}

/* 404ページ用コンタクト情報 */
.error-page .contact-info {
    background: rgba(37, 99, 235, 0.1);
    border-radius: 16px;
    padding: 30px;
    margin: 40px 0;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.error-page .contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.error-page .contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.error-page .contact-icon {
    background: var(--primary-gradient);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.error-page .contact-details {
    text-align: left;
}

@media (max-width: 600px) {
    .error-page .contact-details {
        text-align: center;
    }
}

.error-page .contact-number {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--text-primary);
    font-family: "Roboto", sans-serif;
}

.error-page .contact-hours {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.error-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 40px 0 30px;
    align-items: center;
}

@media (min-width: 600px) {
    .error-actions {
        flex-direction: row;
        justify-content: center;
    }
}

.error-actions .btn {
    min-width: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* 404ページ アニメーション補完 */
@keyframes error-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.error-container {
    animation: error-fade-in 0.8s ease-out;
}

.nav-card {
    animation: error-fade-in 0.8s ease-out;
    animation-delay: 0.2s;
    animation-fill-mode: both;
}

.nav-card:nth-child(2) {
    animation-delay: 0.3s;
}

.nav-card:nth-child(3) {
    animation-delay: 0.4s;
}

.nav-card:nth-child(4) {
    animation-delay: 0.5s;
}

/* アニメーション */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* パフォーマンス最適化: スクロールバー */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1d4ed8;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .contents {
        padding: 0 15px;
    }

    .service-card,
    .philosophy-item,
    .case-card,
    .problem-section,
    .solution-section,
    .greeting_sentence {
        padding: 30px 20px;
    }

    .submit-button {
        width: 100%;
        max-width: 300px;
        padding: 18px 40px;
    }

    .footer-wrapper {
        text-align: left;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .thanks-page {
        padding: 40px 0;
    }
    
    .thanks-container {
        margin: 0 15px;
        padding: 40px 20px;
    }
    
    .thanks-title {
        font-size: var(--font-size-2xl);
    }
    
    .thanks-message p {
        font-size: var(--font-size-base);
    }
    
    .error-page {
        padding: 40px 0;
    }
    
    .error-container {
        margin: 0 15px;
        padding: 40px 25px;
    }
    
    .error-title {
        font-size: var(--font-size-2xl);
    }
    
    .error-message p {
        font-size: var(--font-size-base);
    }

    .error-suggestions {
        padding: 20px;
    }

    .nav-card {
        padding: 20px;
    }

    .error-actions .btn {
        width: 100%;
        max-width: 300px;
    }

    .inquiry-form {
        padding: 20px 0;
    }
    
    .form-container {
        padding: 20px 10px;
        margin: 0 10px;
        border-radius: 16px;
    }

    .wpcf7-form-control.wpcf7-radio {
        flex-direction: column;
        gap: 15px;
    }
    
    .wpcf7-list-item {
        min-width: auto;
        width: 100%;
    }
    
    .wpcf7-list-item label {
        height: 50px;
        padding: 12px 20px;
        font-size: var(--font-size-sm);
    }
    
    .wpcf7-list-item label::after {
        width: 18px;
        height: 18px;
    }

    .wpcf7-checkbox .wpcf7-list-item {
        padding: 12px 16px;
    }

    .wpcf7-checkbox .wpcf7-list-item label::before {
        width: 20px;
        height: 20px;
    }
}

/* 追加のCTAセクション対応 */
.cta-section {
    background: var(--primary-gradient);
    padding: 80px 0;
    text-align: center;
    color: white;
}

.cta-content p {
    font-size: clamp(var(--font-size-lg), 3vw, var(--font-size-2xl));
    font-weight: 600;
    color: white;
    margin-bottom: 40px;
    line-height: 1.4;
}

/* 追加コンテンツセクション */
.additional-content {
    padding: 80px 0;
    background: white;
}

.entry-content {
    max-width: 800px;
    margin: 0 auto;
}

.entry-content h2 {
    font-family: "Noto Serif JP", serif;
    font-size: var(--font-size-2xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 25px;
    padding-bottom: 15px;
    /* border-bottom: 2px solid var(--primary-color); */
}

.entry-content h3 {
    font-family: "Noto Serif JP", serif;
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.entry-content p {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.entry-content ul,
.entry-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.entry-content li {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 8px;
}

/* アクセシビリティ向上 */
@media (prefers-reduced-motion: reduce) {
    .wpcf7-list-item label,
    .wpcf7-list-item label::before,
    .wpcf7-list-item label::after,
    .wpcf7-checkbox .wpcf7-list-item label::before,
    .wpcf7-checkbox .wpcf7-list-item label::after,
    .element,
    .stagger-child,
    .btn,
    .service-card,
    .philosophy-item {
        transition: none;
        animation: none;
    }
    
    .wpcf7-list-item label.radio-animate,
    .wpcf7-list-item label.checkbox-animate {
        transform: none;
    }
}/*
Theme Name: 青山龍二税理士事務所
Description: パフォーマンス最適化されたWordPressテーマ
Author: Your Name
Version: 1.0.0
License: GPL v2 or later
*/

/* WordPress対応: 基本設定の追加 */
.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 !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-size: 0.875rem;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* WordPressアライメント */
.alignnone {
    margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

a img.alignnone {
    margin: 5px 20px 20px 0;
}

a img.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%;
    padding: 5px 3px 10px;
    text-align: center;
}

.wp-caption.alignnone {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}

.wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
}

/* CSS変数 - 現代的なカラーパレット */
:root {
    --primary-color: #2563eb;
    --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    --secondary-color: #f8fafc;
    --accent-color: #06b6d4;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --card-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --border-color: rgba(229, 231, 235, 0.8);
    --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --corporate-blue: #1e40af;
    /* フォントサイズの統一 */
    --font-size-xs: 12px;
    --font-size-sm: 14px;
    --font-size-base: 16px;
    --font-size-lg: 18px;
    --font-size-xl: 20px;
    --font-size-2xl: 24px;
    --font-size-3xl: 30px;
    --font-size-4xl: 36px;
    --font-size-5xl: 48px;
}

/* 基本設定 */
html {
    font-size: 100%;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    color: var(--text-primary);
    font-family: "Noto Sans JP", sans-serif;
    font-size: var(--font-size-base);
    line-height: 1.7;
    background: var(--bg-gradient);
    min-height: 100vh;
    font-weight: 400;
    overflow-x: hidden;
}

/* 見出しフォントの統一 */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Noto Serif JP", serif;
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5em;
}

h1 {
    font-size: var(--font-size-4xl);
}

h2 {
    font-size: var(--font-size-3xl);
}

h3 {
    font-size: var(--font-size-2xl);
}

h4 {
    font-size: var(--font-size-xl);
}

/* 本文フォントの統一 */
p {
    font-size: var(--font-size-base);
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1em;
}

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

a:hover {
    opacity: 0.8;
}

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

/* コンテナ */
.header-contents {
    width: 100%;
    padding: 0 20px;
    max-width: 1300px;
    margin: 0 auto;
}

.contents {
    width: 100%;
    padding: 0 20px;
    max-width: 1100px;
    margin: 0 auto;
}

/* WordPress対応メニュー */
.menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-item {
    display: inline-block;
}

.menu-item a {
    display: block;
    padding: 12px 24px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.menu-item a:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

/* アニメーション */
.element {
    opacity: 0;
    visibility: hidden;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.is-fadein {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.stagger-child {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stagger-child.is-fadein {
    opacity: 1;
    transform: translateY(0);
}

/* パフォーマンス最適化: GPUアクセラレーション */
.element,
.stagger-child,
.btn,
.service-card,
.philosophy-item {
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
}

/* マーカー */
.marker-bold {
    background: linear-gradient(transparent 50%, #fef3c7 50%);
    font-weight: 600;
}

/* ボタン */
.btn-wrap {
    text-align: center;
    margin: 50px 0;
}

.btn {
    display: inline-block;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 18px 36px;
    font-weight: 600;
    font-size: var(--font-size-base);
    text-align: center;
    font-family: "Noto Sans JP", sans-serif;
    position: relative;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    min-width: 200px;
    text-decoration: none;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow-lg);
    color: white;
    text-decoration: none;
}

.btn:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* ヘッダー（WordPress対応） */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
}

/* 管理バー対応 */
.admin-bar header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar header {
        top: 46px;
    }
}

header .head-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
    padding: 20px 0;
}

header .logo {
    display: flex;
    align-items: center;
}

/* カスタムロゴ対応 */
.custom-logo {
    width: 53px;
    height: 53px;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

header .logo img {
    width: 53px;
    height: 53px;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

header .header-title {
    margin-left: 18px;
}

header .header-title .header-title_main {
    font-size: clamp(var(--font-size-xl), 4vw, var(--font-size-3xl));
    font-family: "Noto Serif JP", serif;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

header .header-title .header-title_sub {
    font-size: clamp(var(--font-size-xs), 2vw, var(--font-size-sm));
    color: var(--text-secondary);
    font-weight: 400;
}

/* PC用お問い合わせ（統一版） */
.headpc-inquiry {
    display: none;
}

@media screen and (min-width: 800px) {
    .headpc-inquiry {
        display: flex;
        align-items: center;
        gap: 25px;
    }

    .headpc-inquiry .telephone,
    .headpc-inquiry .mail {
        display: flex;
        align-items: center;
        padding: 12px 18px;
        border-radius: 12px;
        background: white;
        box-shadow: var(--card-shadow);
        transition: all 0.3s ease;
        height: 60px;
        min-height: 60px;
        border: 1px solid var(--border-color);
    }

    .headpc-inquiry .telephone:hover,
    .headpc-inquiry .mail:hover {
        box-shadow: var(--card-shadow-lg);
        transform: translateY(-2px);
        border-color: var(--primary-color);
    }

    .headpc-inquiry .telephone .phoneicon,
    .headpc-inquiry .mail .mailicon {
        background: var(--primary-gradient);
        height: 40px;
        width: 40px;
        border-radius: 50%;
        position: relative;
        animation: pulse 2s infinite;
        flex-shrink: 0;
    }

    .headpc-inquiry .telephone .phoneicon .fa-phone,
    .headpc-inquiry .mail .mailicon .fa-envelope {
        position: absolute;
        color: #fff;
        font-size: 18px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .headpc-inquiry .telephone .phonenumber,
    .headpc-inquiry .mail .mailmain {
        margin-left: 12px;
    }

    .headpc-inquiry .telephone .phonenumber .phonenumbermain {
        font-size: var(--font-size-xl);
        font-family: "Roboto", sans-serif;
        font-weight: 600;
        color: var(--text-primary);
        line-height: 1.2;
    }

    .headpc-inquiry .telephone .phonenumber .phonenumbersub {
        font-size: var(--font-size-xs);
        color: var(--text-secondary);
    }

    .headpc-inquiry .mail .mailmain {
        font-size: var(--font-size-base);
        font-weight: 500;
        color: var(--text-primary);
    }
}

/* PCメニュー（WordPress対応） */
.pcmenu {
    display: none;
}

@media screen and (min-width: 800px) {
    .pcmenu {
        display: block;
        background: var(--primary-gradient);
        backdrop-filter: blur(10px);
        height: 60px;
        position: relative;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .pcmenu ul,
    .pcmenu .menu {
        height: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .pcmenu ul a,
    .pcmenu .menu-item a {
        display: block;
        height: 100%;
        display: flex;
        align-items: center;
        text-decoration: none;
    }

    .pcmenu ul a li,
    .pcmenu .menu-item a {
        font-family: "Noto Sans JP", sans-serif;
        font-size: var(--font-size-base);
        font-weight: 500;
        color: #fff;
        padding: 12px 24px;
        border-radius: 8px;
        transition: all 0.3s ease;
        white-space: nowrap;
        position: relative;
    }

    .pcmenu ul a li::before,
    .pcmenu .menu-item a::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 2px;
        background: rgba(255, 255, 255, 0.8);
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }

    .pcmenu ul a li:hover,
    .pcmenu .menu-item a:hover {
        background: rgba(255, 255, 255, 0.15);
        transform: translateY(-1px);
    }

    .pcmenu ul a li:hover::before,
    .pcmenu .menu-item a:hover::before {
        width: 80%;
    }

    .pcmenu ul a li:focus,
    .pcmenu .menu-item a:focus {
        outline: 2px solid var(--accent-color);
        outline-offset: 2px;
    }
}

/* タイトル（統一版） */
.h2title {
    text-align: center;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.h2title img {
    height: 45px;
    width: 45px;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.h2title h2 {
    font-family: "Noto Serif JP", serif;
    font-size: clamp(var(--font-size-2xl), 5vw, var(--font-size-4xl));
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.025em;
    margin: 0;
    position: relative;
}

/* h2の下線を削除 */

/* ハンバーガーメニュー（統一版） */
.hamburger-menu {
    display: block;
}

@media screen and (min-width: 800px) {
    .hamburger-menu {
        display: none;
    }
}

.menu-btn {
    position: relative;
    display: flex;
    height: 60px;
    width: 60px;
    justify-content: center;
    align-items: center;
    z-index: 90;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.menu-btn:hover {
    background: rgba(37, 99, 235, 0.1);
}

.menu-btn span,
.menu-btn span:before,
.menu-btn span:after {
    content: "";
    display: block;
    height: 3px;
    width: 28px;
    border-radius: 3px;
    background-color: var(--text-secondary);
    position: absolute;
    transition: all 0.3s ease;
}

.menu-btn span:before {
    bottom: 8px;
}

.menu-btn span:after {
    top: 8px;
}

#menu-btn-check:checked~.menu-btn span {
    background-color: rgba(255, 255, 255, 0);
}

#menu-btn-check:checked~.menu-btn span::before {
    bottom: 0;
    transform: rotate(45deg);
    background-color: #fff;
}

#menu-btn-check:checked~.menu-btn span::after {
    top: 0;
    transform: rotate(-45deg);
    background-color: #fff;
}

#menu-btn-check {
    display: none;
}

.menu-content {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 100%;
    z-index: 80;
    background: var(--primary-gradient);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
}

.menu-content ul,
.menu-content .menu {
    padding: 0 30px;
    list-style: none;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0;
}

.menu-content ul li,
.menu-content .menu-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin: 12px 0;
}

.menu-content ul li:last-of-type,
.menu-content .menu-item:last-child {
    border-bottom: none;
}

.menu-content ul li a,
.menu-content .menu-item a {
    display: block;
    width: 100%;
    font-size: var(--font-size-xl);
    font-weight: 500;
    color: #ffffff;
    padding: 24px 0;
    position: relative;
    transition: all 0.3s ease;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
}

.menu-content ul li a:hover,
.menu-content .menu-item a:hover {
    padding-left: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.menu-content ul li a::before,
.menu-content .menu-item a::before {
    content: "";
    width: 7px;
    height: 7px;
    border-top: solid 2px #ffffff;
    border-right: solid 2px #ffffff;
    transform: rotate(45deg);
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    transition: all 0.3s ease;
}

#menu-btn-check:checked~.menu-content {
    left: 0;
    visibility: visible;
    opacity: 1;
}

/* サブトップ（統一版） */
.sub-top {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.sub-top_image {
    display: flex;
    flex-wrap: wrap;
    height: 100%;
    background: linear-gradient(135deg, var(--text-primary) 0%, #374151 100%);
}

.sub-top_image img {
    width: 50%;
    height: 50%;
    object-fit: cover;
    opacity: 0.6;
    transition: all 0.3s ease;
    filter: brightness(0.8) contrast(1.1);
}

@media screen and (min-width: 800px) {
    .sub-top_image img {
        width: 25%;
        height: 100%;
    }
}

.sub-top_title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 30px 50px;
    text-align: center;
    box-shadow: var(--card-shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.sub-top_title span {
    font-family: "Noto Serif JP", serif;
    font-size: clamp(var(--font-size-2xl), 5vw, var(--font-size-4xl));
    font-weight: 700;
    color: var(--text-primary);
    display: inline-block;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

/* パンくずリスト（WordPress対応） */
.breadcrumb {
    background: white;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.breadcrumb ol {
    display: flex;
    align-items: center;
    list-style: none;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.breadcrumb ol li {
    display: flex;
    align-items: center;
}

.breadcrumb ol li::after {
    content: ">";
    margin: 0 12px;
    color: var(--text-secondary);
    font-weight: 300;
}

.breadcrumb ol li:last-child::after {
    content: "";
}

.breadcrumb ol li a {
    color: var(--primary-color);
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
}

.breadcrumb ol li a:hover {
    color: var(--text-primary);
    background: rgba(37, 99, 235, 0.1);
}

.breadcrumb ol li a i {
    margin-right: 6px;
}

/* セクション共通 - 特定のクラスのみに適用 */
.content-section {
    padding: 80px 0;
}

.content-section:nth-of-type(even) {
    background: white;
}

.content-section:nth-of-type(odd) {
    background: var(--secondary-color);
}

/* トップビュー */
.topview {
    height: calc(100vh - 100px);
    background-image: url('./assets/img/top.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    overflow: hidden;
}

/* WordPress管理バー対応 */
.admin-bar .topview {
    height: calc(100vh - 132px);
}

@media screen and (max-width: 782px) {
    .admin-bar .topview {
        height: calc(100vh - 146px);
    }
}

@media screen and (min-width: 800px) {
    .topview {
        height: calc(100vh - 160px);
    }
    
    .admin-bar .topview {
        height: calc(100vh - 192px);
    }
}

.catchcopy {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    padding: 30px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    width: 90%;
    max-width: 800px;
}

.catchcopy h1 {
    font-family: "Noto Serif JP", serif;
    font-size: clamp(var(--font-size-3xl), 6vw, var(--font-size-5xl));
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    color: #fff;
}

.catchcopy h2 {
    font-family: "Noto Serif JP", serif;
    font-size: clamp(var(--font-size-base), 3vw, var(--font-size-2xl));
    font-weight: 400;
    line-height: 1.4;
    opacity: 0.9;
    color: #fff;
    margin-bottom: 0;
}

.catchcopy span {
    display: inline-block;
}

/* 理念セクション */
.philosophy {
    padding: 80px 0;
    position: relative;
}

.philosophy::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="%233b82f6" stroke-width="2" opacity="0.3"/><circle cx="50" cy="50" r="25" fill="none" stroke="%231d4ed8" stroke-width="2" opacity="0.5"/><circle cx="50" cy="50" r="10" fill="%232563eb" opacity="0.7"/></svg>');
    z-index: -1;
}

.philosophy-items {
    display: grid;
    gap: 30px;
    margin-top: 60px;
}

@media screen and (min-width: 800px) {
    .philosophy-items {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }
}

.philosophy-item {
    background: white;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    padding: 30px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.philosophy-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 16px 16px 0 0;
}

.philosophy-item:hover {
    box-shadow: var(--card-shadow-lg);
    transform: translateY(-4px);
}

.philosophy-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-family: "Noto Serif JP", serif;
}

.philosophy-sentence {
    line-height: 1.8;
    color: var(--text-secondary);
    font-size: var(--font-size-base);
}

/* プロフィールセクション */
.profile {
    padding: 80px 0;
    background: white;
    position: relative;
}

.profile::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M20,20 Q50,10 80,20 Q90,50 80,80 Q50,90 20,80 Q10,50 20,20 Z" fill="none" stroke="%233b82f6" stroke-width="2" opacity="0.3"/></svg>');
    z-index: -1;
}

.profile-wrapper {
    display: grid;
    gap: 40px;
    align-items: center;
    margin-top: 60px;
}

@media screen and (min-width: 800px) {
    .profile-wrapper {
        grid-template-columns: 1fr 2fr;
        gap: 60px;
    }
}

.profile-photo {
    text-align: center;
}

.profile-photo img {
    max-width: 300px;
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--card-shadow-lg);
}

.profile-sentence {
    font-size: var(--font-size-base);
    line-height: 1.8;
    color: var(--text-secondary);
}

.profile-sentence span {
    display: inline-block;
}

/* サービスセクション */
.service {
    background: var(--secondary-color);
    padding: 80px 0;
    position: relative;
}

.service::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect x="10" y="10" width="80" height="80" fill="none" stroke="%233b82f6" stroke-width="2" opacity="0.3" rx="10"/><rect x="25" y="25" width="50" height="50" fill="none" stroke="%231d4ed8" stroke-width="2" opacity="0.5" rx="5"/></svg>');
    z-index: -1;
}

.service-wrapper {
    margin-top: 60px;
}

.service-item {
    background: white;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    padding: 40px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.service-item:nth-of-type(2) {
    margin-top: 30px;
}

@media screen and (min-width: 800px) {
    .service-item {
        display: grid;
        grid-template-columns: 1fr 2fr 1fr;
        gap: 40px;
        align-items: center;
    }

    .service-item:nth-of-type(2) {
        margin-top: 0;
        border-top: none;
    }
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 16px 16px 0 0;
}

.service-item:hover {
    box-shadow: var(--card-shadow-lg);
    transform: translateY(-4px);
}

.service-item h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
    font-family: "Noto Serif JP", serif;
    margin-bottom: 30px;
}

@media screen and (min-width: 800px) {
    .service-item h3 {
        margin-bottom: 0;
    }
}

.service-item ul {
    list-style: none;
    margin-bottom: 30px;
}

@media screen and (min-width: 800px) {
    .service-item ul {
        margin-bottom: 0;
        columns: 2;
        column-gap: 30px;
    }
}

.service-item ul li {
    position: relative;
    font-size: 16px;
    line-height: 2;
    padding-left: 25px;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.service-item ul li::before {
    content: "";
    position: absolute;
    background: var(--primary-gradient);
    width: 8px;
    height: 8px;
    left: 0;
    top: 50%;
    border-radius: 50%;
    transform: translateY(-50%);
}

.service-btn {
    text-align: center;
}

@media screen and (min-width: 800px) {
    .service-btn {
        margin: 0;
    }
}

.service-btn .btn {
    min-width: 160px;
    padding: 12px 24px;
    font-size: 14px;
}

/* 導入セクション */
.introduction {
    background: white;
    text-align: center;
    padding: 80px 0;
}

.introduction .intro-content {
    max-width: 800px;
    margin: 0 auto;
}

.introduction h1 {
    font-size: clamp(var(--font-size-3xl), 6vw, var(--font-size-5xl));
    color: var(--primary-color);
    margin-bottom: 30px;
}

.introduction .intro-text {
    font-size: var(--font-size-lg);
    line-height: 1.8;
    margin-bottom: 40px;
}

.introduction .features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.introduction .feature-item {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.introduction .feature-item:hover {
    box-shadow: var(--card-shadow-lg);
    transform: translateY(-4px);
}

.introduction .feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.introduction .feature-title {
    font-size: var(--font-size-xl);
    color: var(--text-primary);
    margin-bottom: 15px;
}

.introduction .feature-text {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 法人用導入セクション */
.hojin .introduction {
    background: var(--corporate-blue);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hojin .introduction::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--corporate-blue) 0%, var(--primary-color) 100%);
    opacity: 0.9;
}

.hojin .introduction .intro-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hojin .introduction h1 {
    font-size: clamp(var(--font-size-3xl), 6vw, var(--font-size-5xl));
    color: white;
    margin-bottom: 30px;
}

.hojin .introduction .intro-text {
    font-size: var(--font-size-lg);
    line-height: 1.8;
    margin-bottom: 40px;
    opacity: 0.95;
}

.hojin .introduction .corporate-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.hojin .introduction .corporate-feature {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.hojin .introduction .corporate-feature:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.hojin .introduction .feature-icon {
    font-size: 3rem;
    color: white;
    margin-bottom: 20px;
}

.hojin .introduction .feature-title {
    font-size: var(--font-size-xl);
    color: white;
    margin-bottom: 15px;
}

.hojin .introduction .feature-text {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* サービス一覧 */
.services-overview {
    background: var(--secondary-color);
    padding: 80px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.service-card {
    background: white;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    padding: 40px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 16px 16px 0 0;
}

.service-card:hover {
    box-shadow: var(--card-shadow-lg);
    transform: translateY(-4px);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-title {
    font-size: var(--font-size-2xl);
    color: var(--text-primary);
    margin-bottom: 15px;
}

.service-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 25px;
}

/* FAQ */
.faq {
    background: var(--secondary-color);
    padding: 80px 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    margin-top: 60px;
}

.faq-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: var(--card-shadow);
}

.faq-question {
    background: var(--secondary-color);
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: #e2e8f0;
}

.faq-question::after {
    content: '+';
    font-size: var(--font-size-xl);
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

/* 相談の流れ */
.consultation-flow {
    background: white;
    padding: 80px 0;
}

.flow-steps {
    display: grid;
    gap: 30px;
    margin-top: 60px;
}

@media screen and (min-width: 800px) {
    .flow-steps {
        grid-template-columns: repeat(4, 1fr);
    }
}

.flow-step {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.flow-step:hover {
    box-shadow: var(--card-shadow-lg);
    transform: translateY(-4px);
}

.step-number {
    background: var(--primary-gradient);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--font-size-xl);
    margin: 0 auto 20px;
}

.step-title {
    font-size: var(--font-size-lg);
    color: var(--text-primary);
    margin-bottom: 10px;
}

.step-description {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    line-height: 1.6;
}

/* プロフィール専用スタイル */
.greeting_sentence {
    background: white;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    padding: 40px;
    margin-top: 40px;
    position: relative;
    border: 1px solid var(--border-color);
}

.greeting_sentence h4 {
    font-size: var(--font-size-2xl);
    color: var(--primary-color);
    margin-bottom: 30px;
    font-family: "Noto Serif JP", serif;
}

.greeting_sentence p {
    line-height: 1.8;
    color: var(--text-secondary);
}

/* テーブル */
.biography_table {
    width: 100%;
    margin-top: 40px;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border-collapse: separate;
    border-spacing: 0;
}

.biography_table tbody tr {
    border-bottom: 1px solid var(--border-color);
}

.biography_table tbody tr:last-child {
    border-bottom: none;
}

.biography_table .since {
    background: var(--secondary-color);
    padding: 20px;
    font-weight: 600;
    color: var(--text-primary);
    width: 120px;
    vertical-align: top;
    font-size: var(--font-size-sm);
}

@media screen and (min-width: 800px) {
    .biography_table .since {
        width: 200px;
    }
}

.biography_table .history {
    padding: 20px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.biography_table .history a {
    color: var(--primary-color);
    text-decoration: underline;
}

.biography_table .history a:hover {
    color: var(--text-primary);
}

/* Contact Form 7 基本スタイル */
.wpcf7 {
    margin: 0;
}

.wpcf7-form {
    display: grid;
    gap: 40px;
}

.wpcf7-form-control-wrap {
    position: relative;
    display: block;
}

/* フォーム入力フィールド共通 */
.wpcf7-form-control.wpcf7-text,
.wpcf7-form-control.wpcf7-email,
.wpcf7-form-control.wpcf7-tel,
.wpcf7-form-control.wpcf7-textarea,
.wpcf7-form-control.wpcf7-select {
    width: 100%;
    padding: 18px 24px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: var(--font-size-base);
    font-family: "Noto Sans JP", sans-serif;
    transition: all 0.3s ease;
    background: #fafbfc;
    outline: none;
}

.wpcf7-form-control.wpcf7-text:focus,
.wpcf7-form-control.wpcf7-email:focus,
.wpcf7-form-control.wpcf7-tel:focus,
.wpcf7-form-control.wpcf7-textarea:focus,
.wpcf7-form-control.wpcf7-select:focus {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.1);
    transform: translateY(-1px);
}

.wpcf7-form-control.wpcf7-textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}

/* Contact Form 7 ラジオボタン */
.wpcf7-form-control.wpcf7-radio {
    display: flex;
    gap: 20px;
    margin: 0;
    justify-content: center;
    flex-wrap: wrap;
    flex-direction: row;
}

@media (max-width: 767px) {
    .wpcf7-form-control.wpcf7-radio {
        justify-content: center;
        gap: 15px;
    }
}

@media (min-width: 768px) {
    .wpcf7-form-control.wpcf7-radio {
        justify-content: flex-start;
        flex-direction: row;
    }
}

.wpcf7-list-item {
    position: relative;
    cursor: pointer;
    margin: 0;
    flex: 0 0 auto;
    min-width: 120px;
}

/* PC表示での個人/法人選択の幅調整（横並び表示） */
@media (min-width: 768px) {
    .wpcf7-form-control.wpcf7-radio {
        max-width: 100%;
        justify-content: flex-start;
    }
    
    .wpcf7-list-item {
        flex: 0 0 auto;
        min-width: 120px;
        max-width: none;
    }
}

.wpcf7-list-item label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: white;
    font-weight: 600;
    height: 60px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    margin: 0;
    font-size: var(--font-size-base);
    user-select: none;
}

.wpcf7-list-item label::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1), transparent);
    transition: left 0.6s ease;
}

.wpcf7-list-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
}

/* カスタムラジオボタンアイコン */
.wpcf7-list-item label::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #e5e7eb;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
    background: white;
    flex-shrink: 0;
    order: -1;
}

/* ラジオボタン：ホバー状態 */
.wpcf7-list-item label:hover {
    border-color: rgba(37, 99, 235, 0.4);
    background: rgba(37, 99, 235, 0.01);
}

.wpcf7-list-item label:hover::after {
    border-color: rgba(37, 99, 235, 0.4);
}

/* ラジオボタン：JavaScriptで追加されるクラス用のスタイル */
.wpcf7-list-item label.radio-checked {
    border-color: #2563eb !important;
    background: rgba(37, 99, 235, 0.03) !important;
    color: #2563eb !important;
    box-shadow: none !important;
}

.wpcf7-list-item label.radio-checked::before {
    left: 100% !important;
}

.wpcf7-list-item label.radio-checked::after {
    border-color: #2563eb !important;
    background: #2563eb !important;
    box-shadow: inset 0 0 0 4px white !important;
}

/* ラジオボタン：アニメーション効果 */
.wpcf7-list-item label.radio-animate {
    transform: scale(1.005);
}

.wpcf7-list-item label.radio-animate::after {
    transform: scale(1.02);
}

/* ラジオボタン：フォーカス状態 */
.wpcf7-list-item input[type="radio"]:focus + .wpcf7-list-item-label,
.wpcf7-list-item label:focus-within {
    outline: none;
}

.wpcf7-list-item input[type="radio"]:focus,
.wpcf7-list-item label:focus {
    outline: none;
    box-shadow: none;
}

/* テキストラベルのスタイル */
.wpcf7-list-item-label {
    font-weight: inherit;
    color: inherit;
    margin: 0;
    cursor: inherit;
}

/* Contact Form 7 チェックボックス */
.wpcf7-form-control.wpcf7-checkbox {
    margin: 0;
}

.wpcf7-checkbox .wpcf7-list-item {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    background: white;
    margin: 0;
    line-height: 1.6;
}

/* スマホ版でのチェックボックス調整 */
@media (max-width: 768px) {
    .wpcf7-checkbox .wpcf7-list-item {
        padding: 14px 16px;
        gap: 12px;
        align-items: flex-start;
    }
    
    .wpcf7-checkbox .wpcf7-list-item label {
        line-height: 1.6;
        align-items: flex-start;
        padding-top: 2px;
    }
    
    .wpcf7-checkbox .wpcf7-list-item label::before {
        margin-top: 2px;
        flex-shrink: 0;
    }
}

.wpcf7-checkbox .wpcf7-list-item:hover {
    border-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.02);
}

.wpcf7-checkbox .wpcf7-list-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
}

/* カスタムチェックボックスアイコン */
.wpcf7-checkbox .wpcf7-list-item label {
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    height: auto;
    position: relative;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.6;
    font-size: var(--font-size-base);
    overflow: visible;
}

.wpcf7-checkbox .wpcf7-list-item label::before {
    content: '';
    width: 24px;
    height: 24px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    transition: all 0.3s ease;
    background: white;
    flex-shrink: 0;
    position: relative;
}

.wpcf7-checkbox .wpcf7-list-item label::after {
    content: '';
    position: absolute;
    left: 8px;
    top: 4px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: all 0.3s ease;
}

/* チェックボックス：チェック状態 */
.wpcf7-checkbox .wpcf7-list-item input[type="checkbox"]:checked + .wpcf7-list-item-label::before,
.wpcf7-checkbox .wpcf7-list-item label:has(input[type="checkbox"]:checked)::before {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.wpcf7-checkbox .wpcf7-list-item input[type="checkbox"]:checked + .wpcf7-list-item-label::after,
.wpcf7-checkbox .wpcf7-list-item label:has(input[type="checkbox"]:checked)::after {
    opacity: 1;
}

/* チェックボックス：JavaScript対応 */
.wpcf7-checkbox .wpcf7-list-item label.checkbox-checked::before {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.wpcf7-checkbox .wpcf7-list-item label.checkbox-checked::after {
    opacity: 1 !important;
}


/* Contact Form 7 送信ボタン */
.wpcf7-submit {
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 16px;
    padding: 20px 60px;
    font-size: var(--font-size-lg);
    font-weight: 600;
    font-family: "Noto Sans JP", sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow-lg);
    min-width: 250px;
    position: relative;
    overflow: hidden;
}

.wpcf7-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.wpcf7-submit:disabled {
    background: var(--text-secondary);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* お問い合わせフォーム専用スタイル */
.inquiry-form {
    padding: 40px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.form-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: var(--card-shadow-lg);
    padding: 30px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

/* スマホ版で幅をもっと広く使う */
@media (max-width: 768px) {
    .form-container {
        padding: 20px 15px;
        margin: 0 10px;
        border-radius: 16px;
    }
    
    .inquiry-form {
        padding: 20px 0;
    }
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.form-intro {
    text-align: center;
    margin-bottom: 50px;
}

.form-intro h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: var(--font-size-3xl);
}

.form-intro p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: var(--font-size-lg);
    max-width: 600px;
    margin: 0 auto;
}

/* フォーム