/* ベース設定 */
:root {
    --text-color: #333333;
    --brand-color: #5A3D2B; 
    --brand-light: #F4EFEA;
    --border-color: #E0E0E0;
    --bg-light: #F9F9F9;
}

body {
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    color: var(--text-color);
    line-height: 1.8;
    margin: 0;
    padding: 0;
    background-color: #FFFFFF;
}

a {
    text-decoration: none;
    color: var(--brand-color);
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

.bg-light { background-color: var(--bg-light); }
.text-center { text-align: center; }
.mt-5 { margin-top: 3rem; }

/* ヘッダー */
header {
    background-color: #FFFFFF;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--brand-color);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 24px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links a {
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
}

.btn-entry {
    background-color: var(--brand-color);
    color: #FFFFFF !important;
    padding: 8px 24px;
    border-radius: 4px;
    transition: opacity 0.3s;
}
.btn-entry:hover { opacity: 0.8; }

/* ヒーローセクション */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 120px 20px;
    text-align: center;
    border-bottom: 4px solid var(--brand-color);
}
.hero-content h1 {
    font-size: 2.5rem;
    font-family: "Shippori Mincho", "Yu Mincho", serif;
    line-height: 1.5;
    margin: 20px 0;
    color: #FFFFFF;
}
.hero-content .sub-title, 
.hero-content .lead {
    color: #FFFFFF;
}

/* 画像を横並びにする設定 */
.image-grid {
    display: flex;
    gap: 15px;
    margin: 30px 0;
}
.image-grid img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #ddd;
}
.grid-2 img { flex: 1; width: calc(50% - 8px); }
.grid-3 img { flex: 1; width: calc(33.33% - 10px); }
.grid-4 img { flex: 1; width: calc(25% - 12px); }

/* セクション共通 */
section { padding: 80px 0; }
.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: var(--brand-color);
}
.section-title::after {
    content: "";
    display: block;
    width: 40px;
    height: 2px;
    background-color: var(--brand-color);
    margin: 15px auto 0;
}

/* ポイント */
.point-wrap {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: -40px;
}
.point-item {
    background: #FFFFFF;
    border: 1px solid var(--brand-color);
    color: var(--brand-color);
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* 理念 */
.philosophy-box {
    background: #FFFFFF;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.philosophy-box dl { margin: 0; }
.philosophy-box dt {
    font-weight: bold;
    color: var(--brand-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
    margin-top: 20px;
}
.philosophy-box dt:first-child { margin-top: 0; }
.philosophy-box dd { margin: 10px 0 0 0; }

/* 理念の下のメッセージ用デザイン */
.about-message {
    text-align: center;
    margin-top: 50px;
    font-size: 1.15rem;
    line-height: 2;
}

/* YouTube動画の設定（スマホ対応） */
.video-container {
    position: relative;
    width: 100%;
    max-width: 760px;     
    margin: 40px auto 0;  
    aspect-ratio: 16 / 9; 
    border-radius: 8px;   
    overflow: hidden;     
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* 職種紹介 */
.job-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 8px;
}
.job-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--brand-light);
    padding-bottom: 15px;
}
.job-header h3 { margin: 0; font-size: 1.5rem; color: var(--brand-color); }
.badge { background: var(--brand-color); color: #FFF; padding: 4px 12px; font-size: 0.8rem; border-radius: 4px; }
.job-details { display: flex; gap: 40px; margin-top: 30px; }
.detail-col { flex: 1; }
.detail-col h4 { color: var(--brand-color); margin-bottom: 15px; }
.detail-col ul { padding-left: 20px; margin: 0; }
.detail-col li { margin-bottom: 8px; }

/* 数字で見る */
.number-wrap {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; 
    flex-wrap: wrap;
    gap: 20px;
}
.num-box {
    text-align: center;
    flex: 1; 
    min-width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.num-label { display: block; font-weight: bold; margin-bottom: 10px; }
.num-value { 
    font-size: 3rem; 
    font-weight: bold; 
    color: var(--brand-color); 
    font-family: Arial, sans-serif; 
    line-height: 1; 
    margin-bottom: 20px; 
}
.num-value span { font-size: 1rem; color: var(--text-color); margin-left: 5px; }
.num-sub { 
    display: block; 
    font-size: 0.9rem; 
    color: #666; 
    font-weight: bold;
}
.num-img {
    display: block;
    width: 240px;      
    height: 160px;     
    object-fit: cover; 
    border-radius: 6px;
    border: 1px solid #ddd;
    margin: 0 auto 15px;
}


/* ★ 新規追加：Instagramギャラリーの設定 */
.instagram-area {
    padding: 80px 0;
}
.insta-header {
    text-align: center;
    margin-bottom: 40px;
}
.insta-header h2 {
    font-size: 2.2rem;
    font-family: Arial, sans-serif;
    color: #333;
    margin: 0;
}
.insta-id {
    font-size: 1.2rem;
    font-weight: bold;
    color: #666;
    margin: 5px 0 15px 0;
}
.insta-desc {
    color: #555;
}
.insta-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;       /* 写真同士の隙間 */
}
.insta-item {
    position: relative;
    width: calc(25% - 7.5px); /* PCは4列 */
    aspect-ratio: 1 / 1;      /* 正方形に保つ */
    overflow: hidden;
    border-radius: 4px;
    display: block;
}
.insta-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease; /* ズームアニメーション */
}
/* マウスを乗せた時のホバーエフェクト */
.insta-item:hover img {
    transform: scale(1.1); /* 画像が少し拡大する */
}
.insta-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* 黒い半透明の幕 */
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.insta-item:hover .insta-hover {
    opacity: 1; /* マウスを乗せるとInstagramアイコンが浮かび上がる */
}

/* Instagramボタン */
.insta-btn-wrap {
    text-align: center;
    margin-top: 40px;
}
.btn-insta-follow {
    display: inline-block;
    padding: 12px 40px;
    border: 2px solid #333;
    color: #333 !important;
    font-weight: bold;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s;
}
.btn-insta-follow:hover {
    background: #333;
    color: #fff !important;
}


/* 募集要項テーブル */
.recruit-table {
    width: 100%;
    border-collapse: collapse;
    background: #FFFFFF;
}
.recruit-table th, .recruit-table td {
    border: 1px solid var(--border-color);
    padding: 20px;
    vertical-align: top;
}
.recruit-table th {
    width: 25%;
    background-color: var(--brand-light);
    color: var(--brand-color);
    text-align: left;
    font-weight: bold;
}

/* エントリー */
.entry-box {
    background: #FFFFFF;
    padding: 50px;
    border: 2px solid var(--brand-light);
    text-align: center;
    border-radius: 8px;
}
.message { font-size: 1.1rem; margin-bottom: 30px; }
.contact-info { background: var(--bg-light); padding: 30px; border-radius: 8px; }
.tel { font-size: 1.5rem; font-weight: bold; color: var(--brand-color); margin: 20px 0; }
.btn-mail {
    display: inline-block;
    background: var(--brand-color);
    color: #FFFFFF;
    padding: 15px 40px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 1.1rem;
}
.btn-mail:hover { opacity: 0.9; }

/* フッター */
footer {
    background: var(--brand-color);
    color: #FFFFFF;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}

/* レスポンシブ対応（スマホ向け） */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .job-details { flex-direction: column; gap: 20px; }
    .recruit-table th, .recruit-table td { display: block; width: 100%; }
    .recruit-table th { border-bottom: none; }
    
    .image-grid { flex-direction: column; }
    .image-grid img { width: 100%; height: auto; max-height: 250px; }
    .num-box { width: 100%; margin-bottom: 40px; }
    
    .about-message { font-size: 1rem; }
    
    /* スマホ画面でのInstagramギャラリーは2列に設定 */
    .insta-item { width: calc(50% - 5px); }
}