/*
Theme Name: 川端順也の保険相談窓口
Theme URI: https://example.com/kawabata-theme
Author: たかちゃん
Author URI: https://example.com
Description: 山口県特化型保険/金融コンサルティング - 川端順也の保険相談窓口 公式WordPressテーマ
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kawabata-theme
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root {
    --accent: #0047AB;
    --dark: #1e293b;
    --light-bg: #ffffff;
    --gray-bg: #f8fafc;
    --border: #e2e8f0;
    --line-green: #06C755;
    --profile-tag: #8e8e8e;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: var(--light-bg);
    color: var(--dark);
    overflow-x: hidden;
    line-height: 1.8;
}

.font-serif {
    font-family: 'Noto Serif JP', serif;
}

.font-en-serif {
    font-family: 'Playfair Display', serif;
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Hero Text */
.hero-title {
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-shadow: 0 0 30px rgba(255,255,255,0.9);
}

.vertical-text {
    writing-mode: vertical-rl;
}

/* Scroll Indicator */
@keyframes scroll-line {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.animate-scroll-line {
    animation: scroll-line 2s infinite ease-in-out;
}

/* Accordion for FAQ */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-content {
    max-height: 300px;
}

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

/* Floating Mini Profile Popup */
#mini-profile-popup {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
    transform: translateY(150%);
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

#mini-profile-popup.visible {
    transform: translateY(0);
}

/* Image Overlay */
.hero-overlay {
    background: linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0.85) 30%, rgba(255,255,255,0) 100%);
}

/* Profile Tags */
.profile-tag-label {
    background-color: var(--profile-tag);
    color: white;
    padding: 2px 16px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    min-width: 80px;
    text-align: center;
    display: inline-block;
}

.section-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Mobile Menu */
#mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.98);
    z-index: 999;
    padding: 2rem;
}

#mobile-menu.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#mobile-menu a {
    font-size: 1.25rem;
    font-weight: 700;
    padding: 1rem;
    display: block;
}

/* WordPress Specific */
.wp-block-image img {
    max-width: 100%;
    height: auto;
}

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

.alignleft {
    float: left;
    margin-right: 1.5rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
}

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

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.25rem;
    font-weight: 600;
    font-size: 0.875rem;
}

.pagination .current {
    background-color: #2563eb;
    color: white;
    border-color: #2563eb;
}

/* Single Post */
.single-content {
    max-width: 800px;
    margin: 0 auto;
}

.single-content h2 {
    font-size: 1.75rem;
    font-weight: 900;
    margin: 2rem 0 1rem;
    color: var(--dark);
}

.single-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 1.5rem 0 0.75rem;
    color: var(--dark);
}

.single-content p {
    margin-bottom: 1.5rem;
    line-height: 2;
}

.single-content ul,
.single-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.single-content li {
    margin-bottom: 0.5rem;
}

.single-content img {
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

/* Archive Header */
.archive-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 6rem 1.5rem 4rem;
    text-align: center;
}

.archive-header h1 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.archive-header p {
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Contact Form 7 Style */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
    width: 100%;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    outline: none;
    transition: border-color 0.3s;
    font-weight: 600;
    font-size: 0.875rem;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form textarea:focus {
    border-color: #2563eb;
}

.wpcf7-form input[type="submit"] {
    background: #2563eb;
    color: white;
    font-weight: 700;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: background-color 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
}

.wpcf7-form input[type="submit"]:hover {
    background: #1e40af;
}
