/* ========================================
   合同会社コロナエナジー コーポレートサイト
   カラーテーマ: ディープグリーン、サンイエロー、ネイビーブルー
   高齢者向け読みやすさを重視したデザイン
   ======================================== */

/* ========================================
   カラー変数定義
   ======================================== */
:root {
    /* メインカラー */
    --deep-green: #1a5f3f;
    --sun-yellow: #f4a341;
    --navy-blue: #1e3a5f;
    --earth-brown: #6b5344;
    --off-white: #faf9f6;
    --metallic-gold: #d4af37;
    
    /* グラデーション用 */
    --gradient-start: #6b5344;
    --gradient-mid: #1a5f3f;
    --gradient-end: #f4a341;
    
    /* テキストカラー */
    --text-primary: #2c2c2c;
    --text-secondary: #555555;
    --text-light: #ffffff;
    
    /* 背景カラー */
    --bg-light: #faf9f6;
    --bg-white: #ffffff;
    --bg-dark: #1e3a5f;
    
    /* フォントファミリー */
    --font-sans: 'Noto Sans JP', sans-serif;
    --font-serif: 'Noto Serif JP', serif;
}

/* ========================================
   リセット & 基本設定
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    line-height: 1.8;
    background-color: var(--bg-white);
    /* 高齢者向け: やや大きめのベースフォントサイズ */
    font-size: 17px;
}

/* ========================================
   タイポグラフィ
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--deep-green);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--sun-yellow);
}

/* コンテナ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ========================================
   ヘッダーナビゲーション
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo a {
    display: block;
    line-height: 0;
}

.logo-image {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    color: var(--text-primary);
    font-weight: 500;
    /* 高齢者向け: リンクを少し大きく */
    font-size: 1.05rem;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    color: var(--deep-green);
}

.nav-cta {
    background: var(--sun-yellow);
    color: var(--text-primary) !important;
    border-radius: 30px;
    padding: 0.7rem 1.5rem !important;
    font-weight: 700;
}

.nav-cta:hover {
    background: var(--deep-green);
    color: var(--text-light) !important;
    transform: translateY(-2px);
}

/* ハンバーガーメニュー */
.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--navy-blue);
    margin: 3px 0;
    transition: 0.3s;
}

/* ========================================
   ファーストビュー（ヒーローセクション）
   ======================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* 動画背景 */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: 0;
    object-fit: cover;
    opacity: 0.5; /* 透過率50% */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--text-light);
    max-width: 900px;
    padding: 2rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    opacity: 0.95;
}

.hero-title {
    font-size: 3.5rem;
    font-family: var(--font-serif);
    margin-bottom: 2rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    line-height: 1.3;
}

.hero-lead {
    font-size: 1.15rem;
    line-height: 2;
    margin-bottom: 3rem;
    opacity: 0.95;
    font-weight: 400;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-light);
    opacity: 0.8;
}

.hero-scroll span {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.scroll-line {
    width: 2px;
    height: 40px;
    background: var(--text-light);
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0%, 100% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(10px);
        opacity: 0.5;
    }
}

/* ========================================
   ボタン共通スタイル
   ======================================== */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--sun-yellow);
    color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(244, 163, 65, 0.3);
}

.btn-primary:hover {
    background: var(--deep-green);
    color: var(--text-light);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(26, 95, 63, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.btn-secondary:hover {
    background: var(--text-light);
    color: var(--deep-green);
    transform: translateY(-3px);
}

.btn-accent {
    background: var(--deep-green);
    color: var(--text-light);
}

.btn-accent:hover {
    background: var(--navy-blue);
    transform: translateY(-3px);
}

.btn-large {
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
}

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

.section-title {
    text-align: center;
    font-size: 2.8rem;
    color: var(--navy-blue);
    margin-bottom: 1.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--deep-green), var(--sun-yellow));
    margin: 1.5rem auto 0;
    border-radius: 2px;
}

.section-lead {
    text-align: center;
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 4rem;
    line-height: 2;
}

/* ========================================
   お悩み訴求セクション
   ======================================== */
.problems {
    background: var(--bg-light);
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.problem-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.problem-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.problem-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.icon-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.problem-card h3 {
    font-size: 1.4rem;
    color: var(--navy-blue);
    margin-bottom: 1rem;
}

.problem-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0;
}

.problems-solution {
    text-align: center;
    margin-top: 3rem;
}

.solution-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--deep-green);
    margin-bottom: 2rem;
}

/* ========================================
   事業内容セクション
   ======================================== */
.about {
    background: var(--bg-white);
}

.service-list {
    max-width: 1000px;
    margin: 0 auto;
}

.service-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 4rem;
    padding: 2.5rem;
    background: var(--bg-light);
    border-radius: 15px;
    border-left: 5px solid var(--deep-green);
    transition: all 0.3s ease;
}

.service-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateX(10px);
}

.service-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--sun-yellow);
    font-family: var(--font-serif);
    min-width: 80px;
    text-align: center;
}

.service-content {
    flex: 1;
}

.service-title {
    font-size: 1.6rem;
    color: var(--navy-blue);
    margin-bottom: 1rem;
}

.service-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.9;
    margin: 0;
}

/* ========================================
   選ばれる理由セクション
   ======================================== */
.reason {
    background: var(--bg-light);
}

.reason-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.reason-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reason-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.reason-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.reason-icon .icon-img {
    width: 70px;
    height: 70px;
}

.reason-card h3 {
    font-size: 1.4rem;
    color: var(--navy-blue);
    margin-bottom: 1rem;
}

.reason-card p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0;
}

/* ========================================
   実績セクション
   ======================================== */
.project {
    background: var(--bg-white);
}

.project-categories {
    max-width: 1000px;
    margin: 0 auto;
}

.project-category {
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
    padding: 2.5rem;
    background: var(--bg-light);
    border-radius: 15px;
    align-items: center;
    transition: all 0.3s ease;
}

.project-category:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: scale(1.02);
}

.project-image {
    min-width: 250px;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--deep-green);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* トーンを落とす: 彩度を下げ、コントラストを抑える */
    filter: grayscale(10%) contrast(92%) brightness(96%);
    transition: filter 0.3s ease;
}

.project-category:hover .project-img {
    filter: grayscale(0%) contrast(100%) brightness(100%);
}

.project-info h3 {
    font-size: 1.6rem;
    color: var(--navy-blue);
    margin-bottom: 1rem;
}

.project-info p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0;
}

/* ========================================
   代表メッセージセクション
   ======================================== */
.message {
    background: linear-gradient(135deg, var(--deep-green) 0%, var(--navy-blue) 100%);
    color: var(--text-light);
}

.message .section-title {
    color: var(--text-light);
}

.message .section-title::after {
    background: linear-gradient(90deg, var(--sun-yellow), var(--metallic-gold));
}

.message-content {
    display: flex;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
    align-items: flex-start;
}

.message-photo {
    min-width: 250px;
    text-align: center;
}

/* 社長写真のスタイル（落ち着いたトーン） */
.ceo-photo {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    margin: 0 auto 1.5rem;
    display: block;
    /* トーンを落とす: 彩度を下げ、コントラストを抑える */
    filter: grayscale(15%) contrast(90%) brightness(95%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.ceo-photo:hover {
    filter: grayscale(0%) contrast(95%) brightness(100%);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.message-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.message-title-sub {
    display: block;
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.8;
    margin-top: 0.5rem;
}

.message-position {
    font-size: 1rem;
    opacity: 0.9;
}

.message-text {
    flex: 1;
    font-size: 1.1rem;
    line-height: 2;
}

.message-text p {
    margin-bottom: 1.5rem;
}

.message-text strong {
    color: var(--sun-yellow);
    font-weight: 700;
}

.message-closing {
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
}

/* ========================================
   会社概要セクション
   ======================================== */
.company {
    background: var(--bg-light);
}

.company-info {
    max-width: 900px;
    margin: 0 auto;
}

.company-table {
    width: 100%;
    background: var(--bg-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.company-table tr {
    border-bottom: 1px solid #e0e0e0;
}

.company-table tr:last-child {
    border-bottom: none;
}

.company-table th {
    background: var(--deep-green);
    color: var(--text-light);
    padding: 1.5rem;
    text-align: left;
    font-weight: 700;
    width: 200px;
    vertical-align: top;
    /* 高齢者向け: やや大きめのフォント */
    font-size: 1.1rem;
}

.company-table td {
    padding: 1.5rem;
    color: var(--text-primary);
    /* 高齢者向け: やや大きめのフォント */
    font-size: 1.05rem;
    line-height: 1.8;
}

.company-table td a {
    color: var(--deep-green);
    font-weight: 600;
}

.company-table td ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.company-table td li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.company-table td li::before {
    content: '●';
    position: absolute;
    left: 0;
    color: var(--sun-yellow);
}

/* ========================================
   お問い合わせセクション
   ======================================== */
.contact {
    background: var(--bg-white);
}

.contact-form {
    max-width: 800px;
    margin: 0 auto 4rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 700;
    color: var(--navy-blue);
    margin-bottom: 0.5rem;
    /* 高齢者向け: ラベルを大きく */
    font-size: 1.1rem;
}

.required {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1.05rem;
    font-family: var(--font-sans);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--deep-green);
}

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

.form-submit {
    text-align: center;
    margin-top: 2rem;
}

.contact-direct {
    text-align: center;
    padding: 3rem;
    background: var(--bg-light);
    border-radius: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.contact-direct-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy-blue);
    margin-bottom: 1.5rem;
}

.contact-phone,
.contact-mobile {
    font-size: 2rem;
    font-weight: 700;
    margin: 1rem 0;
}

.contact-phone a,
.contact-mobile a {
    color: var(--deep-green);
}

/* ========================================
   フッター
   ======================================== */
.footer {
    background: var(--navy-blue);
    color: var(--text-light);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

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

.footer-company-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem !important;
    color: var(--text-light);
}

.footer-info p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.footer-info a {
    color: var(--sun-yellow);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 1.5rem;
    gap: 1.5rem;
}

.footer-bottom-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-bottom-logo-image {
    height: 60px;
    width: auto;
    /* 背景透過のためフィルターを削除 */
    opacity: 0.9;
}

.footer-bottom p {
    font-size: 0.9rem;
    opacity: 0.7;
    margin: 0;
}

/* ========================================
   スクロールトップボタン
   ======================================== */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--sun-yellow);
    color: var(--text-primary);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--deep-green);
    color: var(--text-light);
    transform: translateY(-5px);
}

/* ========================================
   レスポンシブデザイン（タブレット）
   ======================================== */
@media (max-width: 1024px) {
    html {
        font-size: 15px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .service-item {
        flex-direction: column;
        text-align: center;
    }
    
    .service-number {
        margin-bottom: 1rem;
    }
    
    .message-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .ceo-photo {
        width: 200px;
        height: 200px;
    }
    
    .project-category {
        flex-direction: column;
        text-align: center;
    }
    
    .project-image {
        min-width: 100%;
        height: 180px;
    }
}

/* ========================================
   レスポンシブデザイン（スマートフォン）
   ======================================== */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    body {
        font-size: 16px;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    section {
        padding: 4rem 0;
    }
    
    /* ナビゲーション */
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        flex-direction: column;
        background: var(--bg-white);
        width: 100%;
        padding: 2rem;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        gap: 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-menu a {
        display: block;
        padding: 1rem;
        font-size: 1.1rem;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    /* ロゴ */
    .logo-image {
        height: 40px;
    }
    
    /* ヒーロー */
    .hero {
        min-height: 600px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-lead {
        font-size: 1rem;
    }
    
    .hero-lead br {
        display: none;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* 社長写真（モバイル） */
    .ceo-photo {
        width: 180px;
        height: 180px;
    }
    
    /* セクション */
    .section-title {
        font-size: 2rem;
    }
    
    .section-lead {
        font-size: 1rem;
    }
    
    /* アイコンサイズ（モバイル） */
    .icon-img {
        width: 60px;
        height: 60px;
    }
    
    .reason-icon .icon-img {
        width: 55px;
        height: 55px;
    }
    
    /* グリッド */
    .problems-grid,
    .reason-grid {
        grid-template-columns: 1fr;
    }
    
    /* フォーム */
    .form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* 会社概要テーブル */
    .company-table th {
        display: block;
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }
    
    .company-table td {
        display: block;
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }
    
    /* フッター */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-info {
        text-align: center;
    }
    
    .footer-company-name {
        font-size: 1.1rem;
    }
    
    .footer-bottom {
        gap: 1rem;
    }
    
    .footer-bottom-logo-image {
        height: 50px;
    }
    
    /* スクロールトップ */
    .scroll-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
}

/* ========================================
   アニメーション & トランジション
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ========================================
   アクセシビリティ（高齢者向け）
   ======================================== */
/* フォーカス時のアウトライン強調 */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid var(--sun-yellow);
    outline-offset: 2px;
}

/* リンクの下線を常に表示（高齢者向け） */
.message-text a,
.footer a,
.company-table a {
    text-decoration: underline;
}

/* ホバー時のコントラスト強化 */
.nav-menu a:hover,
.problem-card:hover h3,
.reason-card:hover h3 {
    color: var(--deep-green);
    font-weight: 700;
}