/* 
 * AkebonoWorks株式会社 スタイルシート
 * 温かみのあるモダンなデザイン、自然との調和を意識したレイアウト
 */

/* ===== 基本設定 ===== */
:root {
    /* カラーパレット - 緑系統をベースに */
    --primary-color: #2e7d32; /* メインの緑 */
    --secondary-color: #4caf50; /* セカンダリの緑 */
    --accent-color: #8bc34a; /* アクセントの明るい緑 */
    --light-color: #f5f5f5; /* 明るい背景色 */
    --dark-color: #333333; /* テキスト用の暗い色 */
    --white-color: #ffffff; /* 白 */
    --light-green: #e8f5e9; /* 薄い緑の背景用 */
    --gradient-start: #43a047; /* グラデーション開始色 */
    --gradient-end: #1b5e20; /* グラデーション終了色 */
    
    /* フォント */
    --main-font: 'Noto Sans JP', sans-serif;
    
    /* その他 */
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--main-font);
    color: var(--dark-color);
    line-height: 1.6;
    background-color: var(--light-color);
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

section {
    padding: 5rem 0;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    text-align: center;
    font-size: 1rem;
}

.btn:hover {
    background-color: var(--secondary-color);
    color: var(--white-color);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

/* ===== ヘッダー ===== */
header {
    background-color: var(--white-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 1rem 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    margin: 0;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.logo h1 span {
    font-size: 1rem;
    margin-left: 0.5rem;
    color: var(--dark-color);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: var(--dark-color);
    font-weight: 500;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

nav ul li a:hover::after {
    width: 100%;
}

/* ===== ヒーローセクション ===== */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.9), rgba(76, 175, 80, 0.9)), 
                radial-gradient(circle at 30% 50%, rgba(139, 195, 74, 0.4) 0%, rgba(27, 94, 32, 0.1) 100%);
    /* background-image: url("./images/hero-background.png"); */
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white-color);
    margin-top: 70px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 20%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 20%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
}

.hero h2 {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* ===== 理念セクション ===== */
.philosophy {
    background-color: var(--light-green);
    position: relative;
    overflow: hidden;
}

.philosophy-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.philosophy-text {
    flex: 1;
}

.philosophy-text h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.philosophy-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.organic-shape {
    width: 300px;
    height: 300px;
    background-color: var(--secondary-color);
    border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%;
    position: relative;
    animation: morph 8s ease-in-out infinite;
    opacity: 0.8;
}

@keyframes morph {
    0% {
        border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%;
    }
    50% {
        border-radius: 40% 60% 30% 70% / 60% 40% 60% 40%;
    }
    100% {
        border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%;
    }
}

/* ===== 会社情報セクション ===== */
.about {
    background-color: var(--white-color);
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.about-info {
    flex: 1;
    min-width: 300px;
}

.about-info table {
    width: 100%;
    border-collapse: collapse;
}

.about-info table th,
.about-info table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.about-info table th {
    width: 30%;
    color: var(--primary-color);
    font-weight: 500;
}

.about-strengths {
    flex: 1;
    min-width: 300px;
}

.about-strengths h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.about-strengths ul {
    list-style: none;
}

.about-strengths li {
    display: flex;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.strength-icon {
    margin-right: 1rem;
    background-color: var(--light-green);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    flex-shrink: 0;
}

.strength-text h4 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

/* ===== サービスセクション ===== */
.services {
    background-color: var(--light-color);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(46, 125, 50, 0.05) 0%, rgba(139, 195, 74, 0.05) 90%);
    z-index: 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.service-card {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
}

/* .service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
} */

.service-icon {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

/* ===== 導入事例セクション ===== */
.cases {
    background-color: var(--white-color);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.case-card {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.case-header {
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    color: var(--white-color);
    padding: 1.5rem;
}

.case-header h3 {
    margin-bottom: 0.5rem;
}

.case-type {
    font-size: 0.9rem;
    opacity: 0.9;
}

.case-content {
    padding: 1.5rem;
}

.case-results {
    display: flex;
    justify-content: space-around;
    margin-top: 1.5rem;
    text-align: center;
}

.result-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.result-label {
    font-size: 0.9rem;
    color: var(--dark-color);
}

/* ===== お問い合わせセクション ===== */
.contact {
    background-color: var(--light-green);
    position: relative;
}

.contact-content {
    /* display: flex;
    flex-wrap: wrap; */
    gap: 3rem;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-details {
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-icon {
    margin-right: 1rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.contract-form-label {
    width: 100%;
    text-align: center;;
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background-color: var(--white-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: var(--main-font);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.2);
}

/* ===== フッター ===== */
footer {
    background-color: var(--dark-color);
    color: var(--white-color);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-logo h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.footer-logo h2 span {
    font-size: 1rem;
    color: var(--white-color);
    margin-left: 0.5rem;
}

.footer-logo p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    color: var(--white-color);
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ===== レスポンシブデザイン ===== */
@media (max-width: 992px) {
    .hero h2 {
        font-size: 2.8rem;
    }
    
    .philosophy-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .organic-shape {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0.8rem 0;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    nav ul {
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white-color);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 1rem 0;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: var(--transition);
        opacity: 0;
        pointer-events: none;
    }
    
    nav ul.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        opacity: 1;
        pointer-events: all;
    }
    
    nav ul li {
        margin: 0;
        text-align: center;
        padding: 0.8rem 0;
    }
    
    .hero h2 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-content,
    .contact-content {
        flex-direction: column;
        gap: 2rem;
    }
}

@media (max-width: 576px) {
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .service-card,
    .case-card {
        padding: 1.5rem;
    }
    
    .organic-shape {
        width: 200px;
        height: 200px;
    }
    
    .case-results {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* ===== ダークモード対応 ===== */
@media (prefers-color-scheme: dark) {
    :root {
        --light-color: #1a1a1a;
        --dark-color: #f5f5f5;
        --white-color: #222222;
        --light-green: #1e3a29;
    }
    
    .about-info table th,
    .about-info table td {
        border-bottom-color: #333;
    }
    
    .service-card,
    .contact-form {
        background-color: #2a2a2a;
    }
    
    .case-card {
        background-color: #2a2a2a;
    }
    
    .form-group input,
    .form-group textarea {
        background-color: #333;
        border-color: #444;
        color: var(--dark-color);
    }
}
