/* ベース設定 */
:root {
    --primary-color: #2C5530;  /* 深い緑 - メインカラー */
    --secondary-color: #4CAF50;  /* 明るい緑 - アクセント */
    --accent-color: #8BC34A;  /* 黄緑 - アクセントカラー */
    --text-color: #333333;
    --light-gray: #F5F5F5;
    --white: #FFFFFF;
    --background-color: #FFFFFF;
    --light-bg: #F1F8E9;  /* 薄い緑のバックグラウンド */
}

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

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

/* ヘッダー */
.header {
    width: 100%;
    z-index: 1000;
    background: var(--white);
    position: fixed;
    transition: all 0.3s ease;
    height: 80px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}

.header.scrolled {
    height: 60px;
}

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

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

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 0.8rem;
}

.logo img {
    height: 32px;
    width: auto;
    transition: all 0.3s ease;
}

.company-name {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    white-space: nowrap;
}

.header.scrolled .logo img {
    height: 28px;
}

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

.nav ul {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.header.scrolled .nav a {
    color: var(--text-color);
}

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

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

.contact-btn {
    background: var(--secondary-color);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: 'Noto Sans JP', sans-serif;
    transition: all 0.3s ease;
    margin-left: 1rem;
}

.contact-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .header {
        height: 60px;
    }

    .header-container {
        padding: 0 1rem;
    }

    .menu-toggle {
        display: block;
        width: 30px;
        height: 24px;
        position: relative;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1001;
    }

    .menu-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: var(--text-color);
        position: absolute;
        transition: all 0.3s ease;
    }

    .menu-toggle span:nth-child(1) { top: 0; }
    .menu-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
    .menu-toggle span:nth-child(3) { bottom: 0; }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(11px) rotate(45deg);
    }

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

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-11px) rotate(-45deg);
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--white);
        padding: 80px 2rem;
        transition: right 0.3s ease;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    }

    .nav.active {
        right: 0;
    }

    .nav ul {
        flex-direction: column;
        gap: 2rem;
    }

    .logo {
        height: 28px;
    }

    .company-name {
        font-size: 0.9rem;
    }

    .nav a {
        font-size: 0.8rem;
    }

    .contact-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        margin-left: 0;
    }
}

/* メインビジュアル */
.main-visual {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.slide-container {
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    color: var(--white);
    z-index: 2;
    max-width: 600px;
}

.slide-content .subtitle {
    display: inline-block;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--accent-color);
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-content h2 {
    font-size: 3.5rem;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-align: left;
}

.slide-content h2::after {
    display: none;
}

.slide-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--accent-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.slide-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 2;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--white);
    transform: scale(1.2);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .slide-content {
        left: 5%;
        right: 5%;
    }

    .slide-content h2 {
        font-size: 2.5rem;
    }

    .slide-content p {
        font-size: 1rem;
    }

    .cta-button {
        padding: 1rem 2rem;
    }
}

/* ピックアップコンテンツ */
.features {
    padding: 8rem 0;
    background: var(--light-bg);
}

.features h2 {
    text-align: center;
    margin-bottom: 4rem;
}

.pickup-item {
    background: var(--white);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 3rem;
}

.pickup-content h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.pickup-content p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.sub-content {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 4px;
    margin-top: 2rem;
}

.sub-content h4 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .features {
        padding: 4rem 1rem;
    }

    .pickup-item {
        padding: 1.5rem;
    }

    .pickup-content h3 {
        font-size: 1.4rem;
    }
}

/* サービスセクション */
.services {
    padding: 5rem 2rem;
}

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

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* コンセプトセクション */
.concept {
    padding: 8rem 2rem;
    background-color: var(--light-bg);
}

.concept-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.concept-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.concept-content h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.concept-points {
    margin-top: 2rem;
}

.point {
    margin-bottom: 1.5rem;
}

.point h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* 数字で見る弘毅 */
.stats {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-card {
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* レスポンシブ対応の追加 */
@media (max-width: 768px) {
    .concept-grid {
        grid-template-columns: 1fr;
    }

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

    .concept {
        padding: 4rem 2rem;
    }

    .concept-content h3 {
        font-size: 1.5rem;
    }
}

/* 会社概要セクション */
.about {
    padding: 8rem 2rem;
    background-color: white;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.company-table {
    width: 100%;
    border-collapse: collapse;
}

.company-table th,
.company-table td {
    padding: 1.5rem;
    border-bottom: 1px solid #E2E8F0;
}

.company-table th {
    width: 30%;
    text-align: left;
    color: var(--primary-color);
    font-weight: 500;
    vertical-align: top;
    background-color: rgba(59, 130, 246, 0.05);
}

.company-table td {
    width: 70%;
}

.company-table tr:hover {
    background-color: var(--light-bg);
    transition: background-color 0.3s ease;
}

.about-map {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: 10px;
    overflow: hidden;
}

.about-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* レスポンシブ対応の追加 */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .company-table th,
    .company-table td {
        padding: 1rem;
    }

    .company-table th {
        width: 35%;
    }

    .company-table td {
        width: 65%;
    }
}

/* 全体の基本設定 */
html {
    scroll-behavior: smooth;
}

/* スライド画像のスタイル */
.slide img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
}

.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.3) 100%
    );
    z-index: 1;
}

/* セクションタイトルのスタイル */
h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--secondary-color);
}

/* お問い合わせセクション */
.contact {
    padding: 8rem 0;
    background: var(--light-bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info {
    padding: 2rem;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.phone-number {
    margin: 1.5rem 0;
}

.phone-number a {
    font-size: 2rem;
    font-weight: bold;
    color: var(--secondary-color);
    text-decoration: none;
}

.business-hours, .email {
    color: var(--text-color);
    margin: 0.5rem 0;
}

.contact-form {
    padding: 2rem;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.contact-form h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 1rem;
}

.required {
    display: inline-block;
    color: #e74c3c;
    font-size: 0.75rem;
    font-weight: normal;
    padding: 0.2rem 0.5rem;
    margin-left: 0.5rem;
    border: 1px solid #e74c3c;
    border-radius: 3px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
}

.submit-btn {
    background: var(--secondary-color);
    color: var(--white);
    padding: 1rem 3rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

/* ローディング表示 */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    position: absolute;
    margin-top: 70px;
    padding-top: 2rem;
    color: var(--secondary-color);
    font-weight: 500;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .phone-number a {
        font-size: 1.8rem;
    }
}

/* フッター */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    margin-bottom: 3rem;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.footer-logo img {
    height: 40px;
    width: auto;
    /* 白色に変換 */
    filter: brightness(0) invert(1);
}

.footer-logo span {
    font-size: 1.2rem;
    font-weight: 500;
}

.footer address {
    font-style: normal;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.footer-contact {
    line-height: 1.8;
}

.footer-contact a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.9;
    position: relative;
    padding-bottom: 2px;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.footer-links a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: currentColor;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.footer-links a:hover::after {
    transform: scaleX(1);
}

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

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .footer {
        padding: 3rem 0 1.5rem;
    }

    .footer-logo img {
        height: 32px;
    }

    .footer-logo span {
        font-size: 1rem;
    }
}

/* プライバシーポリシーページ */
.privacy-policy {
    padding: 120px 0 80px;
}

.privacy-policy h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.policy-section {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.policy-intro {
    margin-bottom: 3rem;
}

.policy-section h2 {
    font-size: 1.5rem;
    margin: 2.5rem 0 1rem;
    color: var(--secondary-color);
}

.policy-section p {
    margin-bottom: 1.5rem;
}

.policy-section ul {
    margin: 1rem 0 1.5rem 2rem;
}

.policy-section li {
    margin-bottom: 0.5rem;
} 