/*
Theme Name: SmileWith A-Type Support Theme
Description: 就労継続支援A型事務所「スマイルウィズ」のリニューアルテーマ
Version: 1.0
Author: Custom Design
*/

/* ベーススタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    font-size: 16px;
}

/* 色定義（元サイトの配色を参考） */
:root {
    --primary-color: #32373c;
    --secondary-color: #abb8c3;
    --accent-color: #007cba;
    --success-color: #46b450;
    --warning-color: #ffb900;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-light: #999999;
    --background-light: #f8f9fa;
    --border-color: #e1e5e9;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* ヘッダー */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow);
}

/* メインヘッダー（白いエリア・高さ90px） */
.main-header {
    background: var(--white);
    height: 90px;
    border-top: 4px solid #FFD700; /* 黄色のトップボーダー */
}

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

.logo-link {
    display: block;
}

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

.header-actions {
    display: flex;
    align-items: flex-start;
    gap: 5px;
}

.left-buttons {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-right: 5px;
}

/* ヘッダーボタンスタイル */
.btn-web-meeting {
    background: #FFB800;
    color: var(--white);
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.3s ease;
    width: 115px;
    height: 70px;
    text-align: center;
}

.btn-web-meeting:hover {
    background: #E5A500;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-contact {
    background: #4A90E2;
    color: var(--white);
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.3s ease;
    width: 115px;
    height: 70px;
    text-align: center;
}

.btn-contact:hover {
    background: #357ABD;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-corporate {
    background: var(--white);
    color: #333333;
    border: 1px solid #aaaaaa;
    border-radius: 5px;
    text-decoration: none;
    font-weight: normal;
    transition: all 0.3s ease;
    width: 170px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    line-height: 1;
    padding: 0;
}

.btn-corporate:hover {
    background: #f8f9fa;
    border-color: #888888;
}

.btn-jobs {
    background: var(--white);
    color: #3688cb;
    border: 1px solid #3688cb;
    border-radius: 5px;
    text-decoration: none;
    font-weight: normal;
    transition: all 0.3s ease;
    width: 110px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    line-height: 1;
    padding: 0;
}

.btn-jobs:hover {
    background: #f0f7ff;
    border-color: #2a70a8;
}

.btn-icon {
    width: 25px;
    height: 25px;
    object-fit: contain;
}

.btn-text {
    font-size: 10px;
    line-height: 1;
    font-weight: bold;
    white-space: nowrap;
}

/* ハンバーガーメニュー */
.hamburger-menu {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 4px;
}

.hamburger-menu span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

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

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ナビゲーションメニュー（グレーエリア・高さ50px） */
.navigation-menu {
    background: #F5F5F5;
    height: 50px;
    border-bottom: 1px solid #E0E0E0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 40px;
}

.nav-menu li {
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s ease;
    padding: 15px 0;
}

.nav-menu a:hover {
    color: #4A90E2;
}

/* モバイルメニュー */
.mobile-menu {
    position: fixed;
    top: 90px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999;
    display: none;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu-content {
    background: var(--white);
    height: 100%;
    padding: 30px 20px;
    overflow-y: auto;
}

.mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-menu li {
    border-bottom: 1px solid #E0E0E0;
}

.mobile-nav-menu a {
    display: block;
    padding: 15px 0;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
}

.mobile-cta-buttons {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-cta-buttons .btn {
    justify-content: center;
}

/* ボタンスタイル */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 14px;
}

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

.btn-primary:hover {
    background: #005a87;
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background: #369840;
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 36px;
    font-size: 18px;
    font-weight: bold;
}

/* メインコンテンツ */
.main-content {
    margin-top: 140px; /* ヘッダー高さ90px + ナビ高さ50px */
}

/* ヒーローセクション */
.hero-section {
    padding: 20px 20px 80px 20px;
    text-align: center;
}

.hero-background {
    background-image: url('02_src/back_top.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 30px;
    height: 620px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.hero-title {
    font-size: 48px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

/* セクション共通 */
.section {
    padding: 80px 0;
}

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

.section-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 60px;
}

/* 3つの安心ポイント */
.trust-points {
    background: var(--background-light);
}

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

.point-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

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

.point-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.point-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.point-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* YouTubeセクション */
.youtube-section {
    text-align: center;
    margin-bottom: 60px;
}

.youtube-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.youtube-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 利用者事例 */
.case-studies {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.case-card {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

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

.case-name {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.case-before {
    margin-bottom: 10px;
}

.case-after {
    margin-bottom: 15px;
}

.case-label {
    font-weight: bold;
    color: var(--text-secondary);
}

.case-comment {
    background: var(--background-light);
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid var(--accent-color);
    font-style: italic;
    color: var(--text-primary);
}

/* 利用までの流れ */
.flow-section {
    background: var(--background-light);
}

.flow-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.flow-step {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow);
}

.flow-number {
    background: var(--accent-color);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-weight: bold;
    font-size: 18px;
}

.flow-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.flow-emphasis {
    color: var(--accent-color);
    font-weight: bold;
}

/* FAQ */
.faq-section {
    max-width: 800px;
    margin: 0 auto;
}

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

.faq-question {
    background: var(--background-light);
    padding: 20px;
    font-weight: bold;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0;
    font-size: 16px;
    border: none;
    position: relative;
}

.faq-question:hover {
    background: var(--secondary-color);
}

.faq-question:after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

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

.faq-answer {
    padding: 20px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    display: block;
    border-top: 1px solid var(--border-color);
    background: var(--white);
}

/* 最終CTA */
.final-cta {
    background: linear-gradient(135deg, var(--accent-color), var(--success-color));
    color: var(--white);
    text-align: center;
}

.final-cta .section-title {
    color: var(--white);
}

.final-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

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

.btn-white:hover {
    background: var(--background-light);
    transform: translateY(-2px);
}

/* お問い合わせフォーム */
.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text-primary);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
    background: var(--white);
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select {
    cursor: pointer;
}

/* フッター */
.site-footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px 0 30px;
}

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

.footer-section h3 {
    margin-bottom: 20px;
    color: var(--white);
}

.footer-section p,
.footer-section a {
    color: var(--secondary-color);
    text-decoration: none;
    line-height: 1.6;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--secondary-color);
    color: var(--secondary-color);
}

/* レスポンシブ */
@media (max-width: 768px) {
    /* ヘッダーのモバイル対応 */
    .header-actions {
        display: none;
    }

    .hamburger-menu {
        display: flex;
    }

    .navigation-menu {
        display: none;
    }

    .main-content {
        margin-top: 90px; /* モバイルではナビ非表示なのでヘッダー高さ分のみ */
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .points-grid,
    .case-studies,
    .flow-steps {
        grid-template-columns: 1fr;
    }

    .final-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 28px;
    }

    .contact-form {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .btn-large {
        padding: 15px 30px;
        font-size: 16px;
    }

    .hero-title {
        font-size: 28px;
    }

    .section-title {
        font-size: 24px;
    }

    .contact-form {
        padding: 25px 15px;
    }
}