/* --- グローバル設定 --- */
:root {
    --main-green: #008037; /* ロゴの緑を想定 */
    --off-white: #F9F9F7;
    --light-beige: #F2EFE8;
    --dark-gray: #333333;
    --text-gray: #555555;
    --font-heading: 'Lato', sans-serif;
    --font-body: 'Noto Sans JP', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--off-white);
    color: var(--text-gray);
    line-height: 1.8;
}

.logo-small {
        font-size: 0.95em;
}

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

.section {
    padding: 80px 0;
}

.section-title {
    font-family: var(--font-heading);
    color: var(--dark-gray);
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
}

/* --- ボタン スタイル --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--main-green);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: opacity 0.3s;
}
.btn:hover {
    opacity: 0.8;
}
.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--main-green);
    color: var(--main-green);
}
.btn-light {
    background-color: #fff;
    color: var(--main-green);
}


/* --- ヘッダー --- */
.header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}
.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--dark-gray);
    text-decoration: none;
}
.nav-menu ul {
    display: flex;
    list-style: none;
}
.nav-menu ul li a {
    padding: 10px 15px;
    text-decoration: none;
    color: var(--text-gray);
    font-weight: bold;
    transition: color 0.3s;
}
.nav-menu ul li a:hover {
    color: var(--main-green);
}

/* --- メインビジュアル (Hero) --- */
.hero {
    height: 60vh;
    /*background: url('images/Global.png') no-repeat center center/cover;*/
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    /* 背景画像を暗くして文字を読みやすくする */
    position: relative;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/Global.png');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}
.hero-content {
    position: relative;
    z-index: 1;
}
.hero h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}


/* --- 事業内容 (Features) --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
.feature-card {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
}
.feature-card h3 {
    font-family: var(--font-heading);
    color: var(--dark-gray);
    margin: 20px 0 10px;
}

/* --- 会社理念 (Concept) --- */
.concept-flex {
    display: flex;
    align-items: center;
    gap: 60px;
}
.concept-image {
    flex: 1;
    height: 350px;
    border-radius: 10px;
    overflow: hidden; /* 画像に角丸を適用するため */
}

.concept-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.concept-text {
    flex: 1;
}
.concept-text .section-title {
    text-align: left;
}
.concept-text p {
    margin-bottom: 30px;
}

/* --- お問い合わせ誘導 (CTA) --- */
.cta {
    background-color: var(--main-green);
    color: #fff;
    text-align: center;
    padding: 80px 0;
}
.cta h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

/* --- お問い合わせ詳細 (CTAセクション内) --- */
.contact-details {
    margin: 30px 0;
    line-height: 2;
}
.contact-details p {
    font-size: 1.1rem;
    color: #fff;
}

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

/* --- ハンバーガーメニュー --- */
.hamburger-menu {
    display: none; /* PCでは非表示 */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin-left: 15px;
    z-index: 101; /* メニューより手前に */
}
.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-gray);
    margin: 5px 0;
    transition: all 0.3s;
}

/* ハンバーガーメニューが開いた時のスタイル (X印) */
.hamburger-menu.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger-menu.is-active span:nth-child(2) {
    opacity: 0;
}
.hamburger-menu.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* --- レスポンシブ対応 --- */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .header .container {
        flex-direction: row;
        justify-content: space-between;
        height: 80px;
        padding: 0 20px;
    }

    .hamburger-menu {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 80px; /* ヘッダーの下から */
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: rgba(255, 255, 255, 0.98);
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        padding-top: 40px;
    }

    .nav-menu.is-active {
        transform: translateX(0);
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        margin-top: 0;
    }

    .nav-menu ul li a {
        padding: 15px 0;
        font-size: 1.2rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .features-grid,
    .results-grid {
        grid-template-columns: 1fr;
    }

    .concept-flex {
        flex-direction: column;
    }
    .concept-text .section-title {
        text-align: center;
    }
}

/* --- プライバシーポリシーページ用のスタイル --- */
.page-content { padding: 60px 0; }
.page-title { font-family: var(--font-heading); color: var(--dark-gray); font-size: 2.5rem; margin-bottom: 40px; text-align: center;}
.page-content h2 { font-family: var(--font-heading); color: var(--dark-gray); font-size: 1.8rem; margin-top: 40px; margin-bottom: 20px; border-bottom: 2px solid var(--light-beige);}
.page-content ul { padding-left: 20px; }
.page-content p, .page-content li { margin-bottom: 15px; }


/* --- フッターのナビゲーション --- */
.footer-nav {
    margin-bottom: 20px;
}
.footer-nav a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s;
}
.footer-nav a:hover {
    opacity: 0.8;
}

/* --- 会社概要・採用情報ページ用 --- */
.sub-title {
    font-family: var(--font-heading);
    color: var(--dark-gray);
    font-size: 2rem;
    margin-top: 60px;
    margin-bottom: 30px;
    text-align: center;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
}
.info-table th, .info-table td {
    border: 1px solid #ddd;
    padding: 15px;
    vertical-align: top;
}
.info-table th {
    background-color: var(--light-beige);
    width: 30%;
    text-align: left;
    font-weight: bold;
}

.map-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    margin-top: 30px;
}
.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.recruit-message {
    background-color: var(--light-beige);
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    margin-bottom: 60px;
}
.recruit-message h2 {
    font-family: var(--font-heading);
    color: var(--main-green);
    margin-bottom: 20px;
}

.interview-section {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}
.interview-image {
    flex: 0 0 150px;
    width: 150px;
    height: 150px;
    background-color: #ccc; /* 画像のプレースホルダー */
    border-radius: 50%;
}
.interview-text h3 {
    font-family: var(--font-heading);
    color: var(--dark-gray);
}
.interview-text h4 {
    color: var(--main-green);
    margin-top: 20px;
    margin-bottom: 5px;
}

@media (max-width: 768px) {
    .interview-section {
        flex-direction: column;
    }
}

/* --- 沿革 (History) --- */
.history-list {
    list-style: none;
    margin-top: 30px;
    border-left: 3px solid var(--main-green);
    padding-left: 20px;
}
.history-list li {
    position: relative;
    margin-bottom: 20px;
    padding-bottom: 20px;
}
.history-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}
.history-list li::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 5px;
    width: 12px;
    height: 12px;
    background-color: var(--main-green);
    border-radius: 50%;
}
.history-year {
    font-weight: bold;
    color: var(--dark-gray);
    display: block;
    margin-bottom: 5px;
}

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

/* --- サービス & プロダクト--- */
.section-subtitle {
    text-align: center;
    max-width: 800px;
    margin: -40px auto 60px;
}

.product-grid {
    display: grid;
    /* 画面幅に応じて列数を調整 */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.product-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    overflow: hidden; /* 角丸を画像に適用するため */
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
}

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

.product-image {
    height: 200px;
    width: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #fff;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-content {
    padding: 25px;
    flex-grow: 1; /* カードの高さを揃える */
}

.product-content h4 {
    font-family: var(--font-heading);
    color: var(--dark-gray);
    margin-bottom: 10px;
}

/* 画像がないプレースホルダーカード用のスタイル */
.product-card.placeholder {
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 2px dashed #ddd;
}



/* --- お問い合わせページ --- */
.contact-wrapper {
    display: flex;
    gap: 60px;
    margin-top: 60px;
}
.contact-form {
    flex: 2; /* フォームを広めに取る */
}
.contact-info {
    flex: 1;
    background-color: var(--light-beige);
    padding: 30px;
    border-radius: 10px;
}
.contact-info h3 {
    font-family: var(--font-heading);
    color: var(--dark-gray);
    margin-bottom: 10px;
}
.contact-info .contact-tel {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--main-green);
    font-family: var(--font-heading);
}

/* フォームのスタイル */
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--dark-gray);
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1rem;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--main-green);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .contact-wrapper {
        flex-direction: column;
    }
}

/* --- フォームの追加スタイル --- */
.contact-form h3 {
    font-family: var(--font-heading);
    color: var(--dark-gray);
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.form-group label .required {
    color: #e45353;
    margin-left: 5px;
}

.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: #fff;
}

.privacy-check {
    display: flex;
    align-items: center;
}

.privacy-check input[type="checkbox"] {
    margin-right: 10px;
    width: auto;
}

.privacy-check label {
    margin-bottom: 0;
    font-weight: normal;
}

.privacy-check a {
    color: var(--main-green);
    text-decoration: underline;
}

/* --- Language Switcher --- */
.lang-switcher {
    margin-left: 20px;
}

.lang-switcher a {
    display: inline-block;
    padding: 5px 10px;
    border: 1px solid var(--main-green);
    color: var(--main-green);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s;
}

.lang-switcher a:hover {
    background-color: var(--main-green);
    color: #fff;
}

/* --- ハンバーガーメニュー下部の閉じるボタン --- */
.nav-close-bottom {
    display: none; /* is-activeでない限り非表示 */
    margin: 20px auto;
    padding: 10px 25px;
    background-color: var(--dark-gray);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-family: var(--font-body);
    cursor: pointer;
    transition: opacity 0.3s;
}

.nav-close-bottom:hover {
    opacity: 0.8;
}

/* is-activeの時だけ表示 */
.nav-menu.is-active .nav-close-bottom {
    display: block;
}