/*
Theme Name: Mikawa Yuishin
Theme URI: 
Author: Antigravity
Author URI: 
Description: 三河結心の公式オリジナルテーマ
Version: 1.0
License: 
License URI: 
Text Domain: mikawa-yuishin
*/

/* 
   CSS Variables for Color Scheme
   ゴールド、ブラウン、ベージュを基調とした温もりと高級感のあるデザイン
*/
:root {
    --color-primary: #b59c5d; /* ゴールド */
    --color-primary-dark: #967d43;
    --color-primary-light: #d4c295;
    
    --color-accent: #e95420; /* 朱色 (差し色) */
    
    --color-text-main: #4a3f35; /* ダークブラウン */
    --color-text-muted: #7a6e65;
    
    --color-bg-base: #fcfbfa; /* オフホワイト/アイボリー */
    --color-bg-light: #f5f3ef; /* 薄いベージュ */
    --color-bg-dark: #3a322a; /* 深いブラウン */
    
    --color-white: #ffffff;
    
    --font-serif: 'Shippori Mincho', serif;
    --font-sans: 'Noto Sans JP', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

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

body {
    font-family: var(--font-sans);
    color: var(--color-text-main);
    background-color: var(--color-bg-base);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

.section {
    padding: 100px 0;
}

.bg-light { background-color: var(--color-bg-light); }
.bg-dark { background-color: var(--color-bg-dark); }
.text-white { color: var(--color-white) !important; }
.center { text-align: center; }

/* Typography */
.section-title {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 3rem;
    position: relative;
}

.section-subtitle {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-accent);
    letter-spacing: 0.1em;
    margin-top: 0.5rem;
}

.bg-dark .section-subtitle {
    color: var(--color-accent);
}

/* Buttons */
.primary-btn {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: var(--transition-smooth);
    border: 1px solid var(--color-primary);
    text-align: center;
    cursor: pointer;
}

.primary-btn:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(181, 156, 93, 0.2);
    color: var(--color-white);
}

.outline-btn {
    display: inline-block;
    background-color: transparent;
    color: var(--color-primary);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: var(--transition-smooth);
    border: 1px solid var(--color-primary);
    text-align: center;
    cursor: pointer;
}

.outline-btn:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(181, 156, 93, 0.2);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(252, 251, 250, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
}

.header.scrolled {
    padding: 0.5rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

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

.logo-img {
    height: 300px;
    width: auto;
}

.logo-text-fallback {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-main {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text-main);
    line-height: 1.2;
}

.logo-sub {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--color-primary);
}

.nav-menu {
    display: none;
}

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

.nav-list {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-main);
    transition: var(--transition-smooth);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition-smooth);
}

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

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

.nav-btn {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.nav-btn:hover {
    background-color: var(--color-primary-dark);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

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

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-text-main);
    position: absolute;
    left: 0;
    transition: var(--transition-smooth);
}

.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.menu-toggle span:nth-child(3) { bottom: 0; }

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 50%;
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 40%;
}

/* Mobile Navigation */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--color-bg-base);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-smooth);
    opacity: 0;
}

.mobile-menu.active {
    right: 0;
    opacity: 1;
}

.mobile-nav-list {
    text-align: center;
}

.mobile-nav-list li {
    margin-bottom: 2rem;
}

.mobile-nav-link {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--color-text-main);
}

.mobile-nav-btn {
    display: inline-block;
    margin-top: 1rem;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 1rem 2rem;
    border-radius: 50px;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/hero.png');
    background-size: cover;
    background-position: center;
    filter: brightness(0.85); /* Slightly darken for text readability */
    transform: scale(1.05);
    animation: slowZoom 20s ease-in-out infinite alternate;
}

@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--color-white);
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    padding: 0 20px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    line-height: 2;
    letter-spacing: 0.05em;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 3rem;
    letter-spacing: 0.1em;
}

@media (min-width: 768px) {
    .hero-title { font-size: 4.5rem; }
    .hero-subtitle { font-size: 1.5rem; }
}

/* Concept Section */
.concept-inner {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

@media (min-width: 992px) {
    .concept-inner {
        flex-direction: row;
        align-items: center;
    }
    
    .concept-image-wrapper,
    .concept-text-wrapper {
        flex: 1;
    }
}

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

.concept-image-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--color-primary-light);
    z-index: -1;
    border-radius: 8px;
}

.concept-image {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.concept-headline {
    font-size: 2rem;
    color: var(--color-text-main);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.concept-desc {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

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

.feature-card {
    background-color: var(--color-white);
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: var(--transition-smooth);
    border-bottom: 3px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    border-bottom-color: var(--color-primary);
}

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

.feature-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.feature-desc {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* Plans Section */
.plans-intro {
    text-align: center;
    margin-bottom: 4rem;
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

.plans-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    max-width: 900px;
    margin: 0 auto;
}

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

.plan-card {
    background-color: var(--color-white);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.plan-card.featured {
    border: 2px solid var(--color-primary);
    transform: scale(1.02);
    box-shadow: 0 20px 50px rgba(181, 156, 93, 0.15);
}

.plan-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-accent);
    color: var(--color-white);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(233, 84, 32, 0.3);
}

.plan-name {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.plan-target {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    height: 2.7rem;
}

.plan-price {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.price-currency {
    font-size: 1rem;
    color: var(--color-text-muted);
}

.price-amount {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0.2rem;
}

.price-tax {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.plan-features {
    text-align: left;
    margin-bottom: 3rem;
    flex-grow: 1;
}

.plan-features li {
    padding: 0.8rem 0;
    border-bottom: 1px dashed #eee;
    color: var(--color-text-main);
    font-size: 0.95rem;
}

.plan-features li:last-child {
    border-bottom: none;
}

/* Contact Section */
.contact-inner {
    max-width: 700px;
    margin: 0 auto;
    background-color: rgba(255,255,255,0.05);
    padding: 4rem 2rem;
    border-radius: 16px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.1);
}

@media (min-width: 768px) {
    .contact-inner {
        padding: 4rem;
    }
}

.contact-desc {
    text-align: center;
    margin-bottom: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--color-white);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    background-color: rgba(255,255,255,0.1);
    color: var(--color-white);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: rgba(255,255,255,0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255,255,255,0.4);
}

.submit-btn {
    width: 100%;
    margin-top: 1rem;
}

/* Footer */
.footer {
    background-color: #221d19;
    color: rgba(255,255,255,0.7);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 0.2rem;
}

.footer-logo-sub {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: var(--color-primary-light);
    margin-bottom: 1.5rem;
}

.footer-address {
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-links ul li {
    margin-bottom: 1rem;
}

.footer-links a {
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
}

.line-qr-placeholder {
    width: 80px;
    height: 80px;
    margin: 0 auto 0.5rem;
    background-color: var(--color-white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.line-qr-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qr-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.8rem;
    color: var(--color-primary);
    background-color: var(--color-bg-light);
    border: 1px dashed var(--color-primary);
    border-radius: 8px;
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

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

/* Scroll Reveal Classes (Handled by JS) */
.reveal-up, .reveal-left, .reveal-right {
    opacity: 0;
    transition: all 1s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.reveal-up { transform: translateY(40px); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }

.reveal-up.active, .reveal-left.active, .reveal-right.active {
    opacity: 1;
    transform: translate(0, 0);
}

/* =========================================
   Subpage Styles
   ========================================= */

/* Subpage Header */
.subpage-hero {
    position: relative;
    height: 40vh;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 70px; /* Offset for fixed header */
}

.subpage-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/subpage_header.png');
    background-size: cover;
    background-position: center;
    filter: brightness(0.7);
}

.subpage-title {
    position: relative;
    z-index: 1;
    color: var(--color-white);
    font-size: 2.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    text-align: center;
    letter-spacing: 0.05em;
}

.subpage-subtitle {
    display: block;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 300;
    margin-top: 0.5rem;
    letter-spacing: 0.1em;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 1rem 0;
    background-color: var(--color-bg-light);
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.breadcrumbs a {
    color: var(--color-primary);
    transition: var(--transition-smooth);
}

.breadcrumbs a:hover {
    color: var(--color-primary-dark);
}

.breadcrumbs span.separator {
    margin: 0 0.5rem;
}

/* Profile Page */
.profile-section {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}
@media (min-width: 768px) {
    .profile-section {
        flex-direction: row;
        align-items: flex-start;
    }
}
.profile-image-wrap {
    flex: 1;
    position: relative;
}
.profile-image-wrap img {
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.profile-content {
    flex: 2;
}
.profile-name {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}
.profile-role {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    display: block;
}
.profile-text {
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Blog Page */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
.blog-card {
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition-smooth);
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.blog-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.blog-content {
    padding: 1.5rem;
}
.blog-date {
    font-size: 0.85rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    display: block;
}
.blog-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}
.blog-excerpt {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

/* Voices Page */
.voice-card {
    display: flex;
    flex-direction: column;
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-bottom: 3rem;
}
@media (min-width: 768px) {
    .voice-card {
        flex-direction: row;
    }
    .voice-card:nth-child(even) {
        flex-direction: row-reverse;
    }
}
.voice-img-wrap {
    flex: 1;
}
.voice-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 300px;
}
.voice-content {
    flex: 1;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.voice-meta {
    color: var(--color-primary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 500;
}
.voice-title {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}
.voice-text {
    color: var(--color-text-muted);
    line-height: 1.8;
}

/* Plans Detail FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 1.5rem;
}
.faq-q {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-text-main);
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
}
.faq-q::before {
    content: 'Q.';
    color: var(--color-primary);
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-right: 1rem;
    line-height: 1;
}
.faq-a {
    color: var(--color-text-muted);
    padding-left: 2.5rem;
    line-height: 1.8;
}

