/* --- 独自フォントの読み込み --- */
@font-face {
    font-family: 'KomadoriCustom';
    src: url('fonts/komadori-mini.otf') format('opentype');
    font-weight: normal; font-style: normal; font-display: swap;
}

:root {
    --bg-main: #FCFAF2; --bg-soft: #F4F8F4; --text-main: #4A4A4A;
    --primary-color: #6D8B74; --accent-color: #DDA77B; --white: #ffffff;
    --gray-light: #EBEBEB;
}

/* --- リセット & 基本 --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Kiwi Maru', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 2;
    letter-spacing: 0.05em;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
.container { max-width: 1000px; margin: 0 auto; padding: 0 20px; width: 100%; }
.text-center { text-align: center; }
a { text-decoration: none; color: inherit; transition: 0.4s; }
ul { list-style: none; }

.en-title {
    font-family: 'Quicksand', sans-serif;
    color: var(--primary-color);
    font-weight: 700; font-size: 1.2rem;
    display: block; margin-bottom: 5px; text-transform: uppercase;
}

/* --- ヘッダー --- */
.main-header {
    background-color: rgba(252, 250, 242, 0.95);
    position: fixed; width: 100%; top: 0; z-index: 1000; padding: 10px 0;
    backdrop-filter: blur(5px);
}
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.logo { font-size: 1.6rem; font-weight: 700; }
.main-nav ul { display: flex; gap: 30px; align-items: center; }
.btn-recruit {
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 12px 30px; border-radius: 50px; font-size: 0.9rem;
}

/* --- ヒーローセクション --- */
.hero {
    position: relative; height: 100vh; min-height: 600px;
    display: flex; align-items: center; justify-content: center;
}
.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, #F4F8F4 0%, #FCFAF2 100%); z-index: -2;
}
.hero-content-wrapper { 
    position: relative; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    width: 100%; 
    max-width: 1050px; 
}
.hero-content {
    background: rgba(255, 255, 255, 0.85);
    padding: 60px; border-radius: 60px; text-align: center;
    box-shadow: 0 20px 50px rgba(109, 139, 116, 0.08);
    width: 100%; max-width: 900px;
    position: relative; z-index: 1;
}
.font-komadori { font-family: 'KomadoriCustom', sans-serif; }
.hero-catchphrase { font-size: 3.4rem; white-space: nowrap; margin-bottom: 25px; line-height: 1.5; }
.hero-title { font-size: 2.2rem; font-weight: 500; color: var(--primary-color); }

.hero-character {
    position: absolute; 
    top: -20px; right: -30px;
    width: 150px; 
    z-index: 2;
}
.hero-character img { width: 100%; height: auto; }

.hero-trees {
    position: absolute; bottom: -20px; left: 50%;
    transform: translateX(-50%);
    width: 100%; max-width: 1050px;
    opacity: 0.2; z-index: -1;
}
.hero-trees img { width: 100%; height: auto; display: block; }

/* --- セクション共通 --- */
.section { padding: 120px 0; }
.bg-soft { background-color: var(--bg-soft); }
.section-header { margin-bottom: 50px; }
.section-title { font-size: 2rem; line-height: 1.5; font-weight: 500; }
.marker { background: linear-gradient(transparent 70%, rgba(221, 167, 123, 0.4) 70%); padding: 0 5px; }

/* --- 施設案内 & OTキャラ配置 --- */
.facility-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px;
}
.facility-card {
    background: var(--white); border-radius: 30px; overflow: hidden; text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03); display: flex; flex-direction: column; transition: 0.4s;
}
.facility-card:hover { transform: translateY(-10px); }
.relative-card { position: relative; overflow: visible !important; }

.facility-photo-area { width: 100%; height: 200px; background-color: var(--gray-light); display: flex; align-items: center; justify-content: center; }
.card-content { padding: 35px 25px; }
.btn-view { display: inline-block; padding: 10px 35px; border-radius: 50px; border: 1px solid var(--primary-color); color: var(--primary-color); font-size: 0.9rem; }

.about-character-mini {
    position: absolute; bottom: -20px; right: -40px;
    width: 100px; z-index: 10;
}
.about-character-mini img { width: 100%; height: auto; }

/* --- 採用ページ特有：カード配置 --- */
.job-grid-square {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px;
    margin-top: 50px; max-width: 900px; margin-left: auto; margin-right: auto;
}
.job-card-square {
    background: var(--white); border-radius: 30px; 
    /* ▼ 修正：上下の余白(padding)を狭くしました（60px → 35px）▼ */
    padding: 35px 40px; 
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03); 
    /* ▼ 修正：不自然な縦長を防ぐため aspect-ratio: 1 / 1; を削除し、height: 100%; を追加 ▼ */
    height: 100%;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
}

/* --- 新着情報 --- */
.news-wrapper { max-width: 800px; margin: 0 auto; background: var(--white); border-radius: 30px; padding: 30px 40px; box-shadow: 0 10px 30px rgba(0,0,0,0.03); }
.news-item { border-bottom: 1px dashed var(--gray-light); }
.news-content-block { display: flex; align-items: center; padding: 20px 10px; }
.news-meta { display: flex; align-items: center; gap: 15px; width: 250px; flex-shrink: 0; }
.news-category { font-size: 0.8rem; padding: 5px 15px; border-radius: 50px; color: var(--white); }
.cat-info { background-color: var(--primary-color); }
.cat-recruit { background-color: var(--accent-color); }

/* --- 会社概要 & PTキャラ --- */
.company-content-wrapper { position: relative; max-width: 800px; margin: 0 auto; z-index: 1; }
.company-table {
    width: 100%; border-collapse: collapse; background: var(--white);
    border-radius: 30px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}
.company-table th, .company-table td { padding: 30px; border-bottom: 1px solid var(--gray-light); }
.company-table th { width: 30%; text-align: left; color: var(--primary-color); vertical-align: top; }
.map-container { margin-top: 15px; border-radius: 15px; overflow: hidden; border: 1px solid var(--gray-light); }

.company-character {
    position: absolute; 
    bottom: -60px; left: -110px;
    width: 140px; 
    z-index: 0; 
    opacity: 0.7;
}
.company-character img { width: 100%; height: auto; }

/* --- フッター & CPキャラ --- */
.main-footer {
    position: relative; background-color: var(--primary-color); color: var(--white);
    padding: 80px 0 40px; border-radius: 50px 50px 0 0; margin-top: 100px;
}
.footer-character {
    position: absolute; top: -110px; right: 50px;
    width: 120px; z-index: 1;
}
.footer-character img { width: 100%; height: auto; }

/* 共通ボタン & アニメーション */
.btn-entry {
    display: inline-block; background-color: var(--accent-color); color: var(--white);
    font-size: 1.3rem; padding: 22px 60px; border-radius: 50px;
}
.floating { animation: floating 4s ease-in-out infinite; }
@keyframes floating { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* --- レスポンシブ --- */
.sp-only { display: none; }
@media (max-width: 768px) {
    .pc-only { display: none; } .sp-only { display: block; }
    .hero-catchphrase { font-size: 1.8rem; white-space: normal; }
    .hero-content { padding: 40px 20px; border-radius: 40px; }
    .hero-character { width: 100px; top: -40px; right: 10px; }
    .about-character-mini { right: 10px; bottom: -30px; width: 80px; }
    .company-character { position: static; width: 100px; margin: 20px auto 0; display: block; opacity: 0.8; z-index: 1;}
    .job-grid-square { grid-template-columns: 1fr; gap: 20px; }
    .news-content-block { flex-direction: column; align-items: flex-start; }
    .company-table th, .company-table td { display: block; width: 100%; text-align: center; }
}

/* --- 研修制度セクション --- */
.training-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.training-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid var(--gray-light);
    text-align: center;
}
.training-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}
.training-card h3 {
    font-size: 1.25rem;
    color: var(--text-main);
    margin-bottom: 15px;
    font-weight: 500;
}
.training-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.8;
    text-align: left;
}
@media (max-width: 768px) {
    .training-wrapper { grid-template-columns: 1fr; }
}

.map-container iframe {
    width: 100%;
    height: 300px;
}
/* ハンバーガー */
.hamburger {
    display: none;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 6px;
        width: 30px;
        position: absolute;
        top: 20px;
        right: 20px;
        z-index: 1001;
        cursor: pointer;
    }

    .hamburger span {
        height: 3px;
        background: #333;
        border-radius: 2px;
    }
}

@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: #fff;
        transition: 0.3s;
        padding-top: 100px;
        z-index: 999;
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}