/*
Theme Name: Mizuho Usuki
Theme URI: https://mizuhokousei-usuki.com
Description: 社会福祉法人みずほ厚生センター（大分県臼杵市）サービス利用者・ご家族向けサイト
Author: Mizuho Kousei Center
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mizuho-usuki
*/

/* 
カラースキーム:
メインカラー: #4A90A4 (優しい青 - 信頼・安心)
アクセント: #F8B500 (温かいオレンジ - 温もり・希望)
背景色: #F9FAFB (柔らかいグレー)
テキスト: #2C3E50 (濃いグレー)
*/

/* ==========================================================================
   基本設定
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4A90A4;
    --accent-color: #F8B500;
    --bg-light: #F9FAFB;
    --text-dark: #2C3E50;
    --white: #ffffff;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
}

body {
    font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
    background: var(--white);
    overflow-x: hidden;
}

/* アクセシビリティ: 文字サイズクラス */
body.text-small { font-size: 14px; }
body.text-medium { font-size: 16px; }
body.text-large { font-size: 18px; }
body.text-xlarge { font-size: 20px; }

/* ハイコントラストモード */
body.high-contrast {
    --primary-color: #000000;
    --accent-color: #000000;
    --bg-light: #FFFF00;
    --text-dark: #000000;
    background: #FFFF00;
    color: #000000;
}

/* ==========================================================================
   ヘッダー
   ========================================================================== */

.site-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80px;
}

.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

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

.site-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-left: 15px;
}

/* メインナビゲーション */
.main-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.main-nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 0;
    transition: color 0.3s;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s;
}

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

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

/* CTAボタン */
.header-cta {
    background: var(--accent-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    white-space: nowrap;
}

.header-cta:hover {
    background: #d69e00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(248, 181, 0, 0.3);
}

/* アクセシビリティツールバー */
.accessibility-toolbar {
    background: #f0f0f0;
    padding: 10px 20px;
    text-align: right;
}

.accessibility-toolbar button {
    background: var(--white);
    border: 1px solid #ddd;
    padding: 8px 15px;
    margin-left: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.accessibility-toolbar button:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* ==========================================================================
   ヒーローセクション
   ========================================================================== */

.hero-section {
    position: relative;
    height: 80vh;
    min-height: 600px;
    background: linear-gradient(135deg, #4A90A4 0%, #357a8f 50%, #5ba3b8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

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

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 0 20px;
    animation: fadeInUp 1s ease;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   ボタンスタイル
   ========================================================================== */

.btn-primary {
    background: var(--accent-color);
    color: var(--white);
    padding: 18px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s;
    border: 2px solid var(--accent-color);
    display: inline-block;
    min-width: 200px;
    text-align: center;
}

.btn-primary:hover {
    background: #d69e00;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(248, 181, 0, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    padding: 18px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s;
    border: 2px solid var(--white);
    display: inline-block;
    min-width: 200px;
    text-align: center;
}

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

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    border: 2px solid var(--primary-color);
    display: inline-block;
}

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

/* ==========================================================================
   セクション共通スタイル
   ========================================================================== */

.section {
    padding: 80px 20px;
}

.section-alt {
    background: var(--bg-light);
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    margin: 20px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 60px;
    line-height: 1.8;
}

/* ==========================================================================
   目的別ナビゲーション
   ========================================================================== */

.purpose-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.purpose-card {
    background: var(--white);
    padding: 50px 35px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border-top: 5px solid transparent;
}

.purpose-card:nth-child(1) { border-top-color: #FF9CEE; }
.purpose-card:nth-child(2) { border-top-color: #4ECDC4; }
.purpose-card:nth-child(3) { border-top-color: #FFD93D; }

.purpose-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.purpose-icon {
    font-size: 4rem;
    margin-bottom: 25px;
}

.purpose-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.purpose-services {
    list-style: none;
    margin: 25px 0;
    padding: 0;
}

.purpose-services li {
    padding: 10px 0;
    color: #555;
    font-size: 0.95rem;
}

/* ==========================================================================
   4つの安心
   ========================================================================== */

.four-reasons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.reason-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.reason-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.reason-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #4A90A4 0%, #5ba3b8 100%);
}

.reason-content {
    padding: 35px 30px;
}

.reason-number {
    display: inline-block;
    background: var(--accent-color);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    line-height: 40px;
    text-align: center;
    font-weight: 700;
    margin-bottom: 15px;
}

.reason-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.4;
}

.reason-text {
    color: #555;
    line-height: 1.9;
}

/* ==========================================================================
   数字で見るみずほ
   ========================================================================== */

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

.stat-card {
    text-align: center;
    padding: 50px 30px;
    border-radius: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.stat-number {
    font-size: 4.5rem;
    font-weight: 900;
    color: var(--accent-color);
    margin-bottom: 10px;
    line-height: 1;
}

.stat-unit {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
}

.stat-label {
    font-size: 1.2rem;
    color: var(--text-dark);
    font-weight: 700;
    margin-top: 15px;
}

.stat-description {
    font-size: 0.95rem;
    color: #666;
    margin-top: 10px;
}

/* ==========================================================================
   透明性セクション（活動ブログ）
   ========================================================================== */

.transparency-section {
    background: linear-gradient(to bottom, #ffffff, #fff8f0);
    padding: 80px 20px;
}

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

.blog-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.blog-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: linear-gradient(135deg, #4A90A4 0%, #5ba3b8 100%);
}

.blog-content {
    padding: 30px;
}

.blog-date {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.blog-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.5;
}

.blog-excerpt {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.blog-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.blog-link:hover {
    color: var(--accent-color);
}

/* ==========================================================================
   ご利用者の声
   ========================================================================== */

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

.voice-card {
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    border-radius: 25px;
    padding: 50px 40px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.voice-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

.voice-header {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 2px solid #e0e0e0;
}

.voice-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #5ba3b8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--white);
    flex-shrink: 0;
}

.voice-info h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 10px;
}

.voice-info p {
    color: #666;
    font-size: 0.95rem;
}

.voice-content {
    color: var(--text-dark);
    line-height: 2;
    font-size: 1.05rem;
}

.voice-quote {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.6;
}

/* ==========================================================================
   よくある質問（FAQ）
   ========================================================================== */

.faq-list {
    max-width: 900px;
    margin: 60px auto 0;
}

.faq-item {
    background: var(--white);
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-q-text {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 15px;
}

.faq-q-text::before {
    content: 'Q';
    display: inline-block;
    background: var(--accent-color);
    color: var(--white);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    text-align: center;
    line-height: 35px;
    font-weight: 900;
    flex-shrink: 0;
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s;
}

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

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

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

.faq-a-content {
    padding: 0 30px 25px 80px;
    color: #555;
    line-height: 1.9;
}

/* ==========================================================================
   お問い合わせセクション
   ========================================================================== */

.contact-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #357a8f 100%);
    color: var(--white);
}

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

.contact-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 50px 40px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s;
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.contact-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.contact-info {
    font-size: 1.8rem;
    font-weight: 900;
    margin: 20px 0;
}

.contact-hours {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 25px;
}

/* ==========================================================================
   フッター
   ========================================================================== */

.site-footer {
    background: #2c3e50;
    color: var(--white);
    padding: 60px 20px 30px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--accent-color);
    font-weight: 700;
}

.footer-nav {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 12px;
}

.footer-nav a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #445566;
    color: #aaa;
}

/* ==========================================================================
   スクロールアニメーション
   ========================================================================== */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   レスポンシブ対応
   ========================================================================== */

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .purpose-nav,
    .four-reasons,
    .stats-grid,
    .blog-grid,
    .voice-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 3.5rem;
    }
    
    .voice-card {
        padding: 30px 25px;
    }
}

/* ==========================================================================
   ユーティリティクラス
   ========================================================================== */

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

.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mt-60 { margin-top: 60px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.mb-60 { margin-bottom: 60px; }
