/* リセット & ベーススタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FF6B35;
    --secondary-color: #004E89;
    --accent-color: #FFD23F;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --border-color: #E0E0E0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
}

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

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

/* ヘッダー */
.header {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-align: center;
    margin: 0;
}

.header-subtitle {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
}

/* ヒーローセクション */
.hero {
    background-image: url('ヘッダー11.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 0;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 100%;
    margin: 0 auto;
}

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

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 0, 0, 0.3);
}

.cta-button {
    display: inline-block;
    background: var(--accent-color);
    color: var(--text-dark);
    font-size: 1.2rem;
    font-weight: 700;
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: #FFE066;
}

/* セクション共通スタイル */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: var(--secondary-color);
    line-height: 1.4;
}

/* お悩みセクション */
.worries {
    background-image: url('ヘッダー2.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.worries-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(248, 249, 250, 0.85);
    z-index: 0;
}

.worries .container {
    position: relative;
    z-index: 1;
}

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

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

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

.worry-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 25px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
}

.worries-list {
    list-style: none;
    margin: 0;
}

.worries-list li {
    font-size: 1.1rem;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-light);
    line-height: 1.8;
}

.worries-list li:last-child {
    border-bottom: none;
}

/* サービス紹介 */
.service-intro {
    background-image: url('ヘッダー3.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    text-align: center;
}

.service-intro-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    z-index: 0;
}

.service-intro .container {
    position: relative;
    z-index: 1;
}

.service-content {
    max-width: 900px;
    margin: 0 auto 40px;
    text-align: center;
    font-size: 1.1rem;
    line-height: 2;
    color: var(--text-light);
}

.service-content p {
    margin-bottom: 20px;
}

.service-highlight {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.service-intro .cta-button {
    display: inline-block;
    margin-top: 20px;
}

/* 系統用蓄電池サポート */
.battery-support {
    background-image: url('ヘッダー4.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.battery-support-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(248, 249, 250, 0.85);
    z-index: 0;
}

.battery-support .container {
    position: relative;
    z-index: 1;
}

/* 太陽光リパワリング提案 */
.repowering-proposal {
    background-image: url('ヘッダー5.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.repowering-proposal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    z-index: 0;
}

.repowering-proposal .container {
    position: relative;
    z-index: 1;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 50px;
    line-height: 1.8;
}

/* 選ばれる理由 */
.reasons {
    background: var(--bg-light);
}

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

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

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

.reason-number {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    letter-spacing: 2px;
}

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

.reason-text {
    color: var(--text-light);
    line-height: 1.8;
}

/* YouTube動画セクション */
.youtube-videos {
    background: var(--bg-light);
    padding: 80px 0;
}

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

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

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

.video-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 20px;
    line-height: 1.5;
    text-align: center;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 アスペクト比 */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    background: #000;
}

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

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    color: white;
    text-align: center;
    padding: 20px;
}

.video-placeholder p {
    margin: 10px 0;
    font-size: 1rem;
}

.video-instruction {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* YouTube動画が設定されている場合、プレースホルダーを非表示 */
.video-wrapper:has(iframe[src]:not([src=""])) .video-placeholder {
    display: none;
}

/* 利用者の声 */
.testimonials {
    background-image: url('ヘッダー6.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.testimonials-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    z-index: 0;
}

.testimonials .container {
    position: relative;
    z-index: 1;
}

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

.testimonial-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

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

.testimonial-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.testimonial-text {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 15px;
}

.testimonial-author {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
    text-align: right;
}

/* 3ステップ */
.steps {
    background-image: url('ヘッダー7.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    color: white;
}

.steps-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 78, 137, 0.6);
    z-index: 0;
}

.steps .container {
    position: relative;
    z-index: 1;
}

.steps .section-title {
    color: white;
}

.steps-subtitle {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 50px;
    opacity: 0.9;
}

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

.step-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

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

.step-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent-color);
    margin-bottom: 15px;
}

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

.step-text {
    font-size: 1rem;
    line-height: 1.8;
    opacity: 0.9;
}

/* よくある質問 */
.faq {
    background-image: url('ヘッダー8.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.faq-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(248, 249, 250, 0.85);
    z-index: 0;
}

.faq .container {
    position: relative;
    z-index: 1;
}

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

.faq-item {
    background: var(--bg-white);
    margin-bottom: 20px;
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

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

.faq-question {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.faq-answer {
    display: flex;
    align-items: flex-start;
}

.faq-q {
    font-weight: 700;
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 1.1rem;
}

.faq-a {
    font-weight: 700;
    color: var(--secondary-color);
    margin-right: 10px;
    font-size: 1.1rem;
}

.faq-text {
    color: var(--text-light);
    line-height: 1.8;
    flex: 1;
}

/* お問い合わせフォーム */
.contact-form {
    background-image: url('ヘッダー9.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding: 80px 0;
}

.contact-form-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    z-index: 0;
}

.contact-form .container {
    position: relative;
    z-index: 1;
}

.form-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.8;
}

.form {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-light);
    padding: 50px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

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

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

.form-label.required::after {
    content: ' *';
    color: var(--primary-color);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.radio-label:hover {
    border-color: var(--primary-color);
    background: rgba(255, 107, 53, 0.05);
}

.radio-label input[type="radio"] {
    margin-right: 10px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.submit-button {
    width: 100%;
    background: var(--primary-color);
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 18px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.submit-button:hover {
    background: #FF5722;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.submit-button:active {
    transform: translateY(0);
}

/* SNS紹介セクション */
.sns-section {
    background: var(--bg-white);
    padding: 80px 0;
}

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

.sns-card {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--shadow);
}

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

.sns-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.sns-icon svg {
    width: 40px;
    height: 40px;
}

/* YouTube */
.youtube-icon {
    background: #FF0000;
    color: white;
}

.sns-card:hover .youtube-icon {
    background: #CC0000;
    transform: scale(1.1);
}

/* LINE */
.line-icon {
    background: #06C755;
    color: white;
}

.sns-card:hover .line-icon {
    background: #05B048;
    transform: scale(1.1);
}

/* X (Twitter) */
.x-icon {
    background: #000000;
    color: white;
}

.sns-card:hover .x-icon {
    background: #333333;
    transform: scale(1.1);
}

/* Note */
.note-icon {
    background: #2CB696;
    color: white;
}

.sns-card:hover .note-icon {
    background: #249D7F;
    transform: scale(1.1);
}

/* TikTok */
.tiktok-icon {
    background: #000000;
    color: white;
}

.sns-card:hover .tiktok-icon {
    background: #333333;
    transform: scale(1.1);
}

/* Instagram */
.instagram-icon {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.sns-card:hover .instagram-icon {
    transform: scale(1.1);
}

.sns-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.sns-description {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* フッター */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 30px 0;
    text-align: center;
}

.footer-text {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .hero {
        min-height: 400px;
        text-align: center;
    }

    .hero-content {
        text-align: center;
        max-width: 100%;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .worries-grid {
        grid-template-columns: 1fr;
    }

    .videos-grid {
        grid-template-columns: 1fr;
    }

    .video-card {
        padding: 20px;
    }

    .video-title {
        font-size: 1.1rem;
    }

    .sns-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    .sns-card {
        padding: 25px 15px;
    }

    .sns-name {
        font-size: 1.1rem;
    }

    .sns-description {
        font-size: 0.9rem;
    }

    .reasons-grid,
    .testimonials-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .form {
        padding: 30px 20px;
    }

    .cta-button {
        font-size: 1rem;
        padding: 15px 30px;
    }

    section {
        padding: 60px 0;
    }
}

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

    .hero-title {
        font-size: 1.5rem;
    }

    .logo {
        font-size: 1rem;
    }

    .header-content {
        gap: 15px;
    }

    .header-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .reason-card,
    .testimonial-card,
    .step-card {
        padding: 25px 20px;
    }
}

/* スムーススクロール */
html {
    scroll-behavior: smooth;
}

/* アニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reason-card,
.testimonial-card,
.step-card,
.faq-item {
    animation: fadeInUp 0.6s ease-out;
}

/* メッセージ表示 */
.success-message,
.error-message {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.success-content,
.error-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
}

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

.success-content h3 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.error-content h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.success-content p,
.error-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.success-content button,
.error-content button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.success-content button:hover,
.error-content button:hover {
    background: #FF5722;
    transform: translateY(-2px);
}

.field-error {
    color: var(--primary-color);
    font-size: 0.875rem;
    margin-top: 5px;
    display: block;
}

