/* ==========================================
   1. 基本設定（共通同期）
   ========================================== */
.inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.sub-mv__title, .common-title, .equipment-info h3, .equipment-lead, .breadcrumb {
    font-family: "Noto Serif JP", serif;
}

/* --- 下層共通メインビジュアル --- */
.sub-mv {
    width: 100%;
    height: 180px;
    background: url('https://hata-shika.com/wp-content/uploads/2026/05/bg.png') no-repeat center 70% / cover;
    background-color: #556b2f;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.sub-mv::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
}
.sub-mv__title {
    position: relative;
    color: #fff;
    font-size: 1.5rem;
    z-index: 1;
}

/* --- パンくず --- */
.breadcrumb { padding: 10px 0; font-size: 0.75rem; }
.breadcrumb ol { display: flex; list-style: none; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: ">"; margin: 0 8px; color: #ccc; }
.breadcrumb a { color: #556b2f; text-decoration: none; }

/* --- 共通h2 --- */
.common-title {
    background-color: #556b2f;
    color: #fff;
    text-align: center;
    padding: 12px 10px;
    font-size: 1.3rem;
    margin-bottom: 25px;
}

/* ==========================================
   2. 設備紹介（Equipment）専用デザイン
   ========================================== */
.equipment-content {
    padding: 30px 15px 60px;
}

.equipment-lead {
    text-align: center;
    margin-bottom: 40px;
    font-size: 0.95rem;
    color: #333;
    line-height: 1.8;
}

.equipment-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: stretch;
}

/* ★カードタイプへのホバーアニメーション設定 */
.equipment-card {
    background: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
	border-radius: 0px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); /* 初期状態の影 */
    border: 1px solid #f0f0f0;
    /* アニメーションのスムーズさを設定 */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; 
}

/* ★カーソルを合わせた時の動き（PC版のみ） */
@media (min-width: 769px) {
    .equipment-card:hover {
        transform: translateY(-7px); /* 少し上に浮き上がる */
        box-shadow: 0 12px 30px rgba(0,0,0,0.12); /* 影を濃く、広くして立体感を出す */
        border-color: #e0e0e0; /* 枠線を少し濃くする */
    }
}

.equipment-img {
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background-color: #f7f7f7;
    margin: 0;
}

.equipment-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    /* ★拡大アニメーションをスムーズにする設定 */
    transition: transform 0.5s ease;
}

/* ★紫外線照射装置（14番目）の白枠徹底除去設定 */
.equipment-grid .equipment-card:nth-child(14) .equipment-img img {
    transform: scale(1.3); /* 1.3倍にさらに拡大して白枠を完全に消す */
}

/* ★PC版でホバーした時、画像も少し拡大させて動きを出す（オプション） */
@media (min-width: 769px) {
    .equipment-card:hover .equipment-img img {
        transform: scale(1.05); /* 全体の画像が少し拡大 */
    }
    /* 紫外線照射装置だけは、初期の拡大率が大きいので、ホバー時は少し戻す動きにする（ガタつき防止） */
    .equipment-card:nth-child(14):hover .equipment-img img {
        transform: scale(1.35); 
    }
}

/* テキストエリア */
.equipment-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* 全体的な見出しの余白リセット */
.equipment-grid .equipment-card .equipment-info h3 {
    margin-top: 0;
    padding-top: 0;
}

.equipment-info h3 {
    font-size: 1.1rem;
    color: #556b2f;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    font-weight: bold;
    position: relative;
    line-height: 1.4;
    /* ホバー時のテキスト色の変化をスムーズに（オプション） */
    transition: color 0.3s ease;
}

/* ★ホバー時に見出しの色を少し濃くする（オプション） */
.equipment-card:hover .equipment-info h3 {
    color: #3e4e22; /* より濃い緑色へ */
}

.equipment-info h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: #556b2f;
    /* ホバー時のライン拡大アニメーションをスムーズに */
    transition: width 0.3s ease;
}

/* ★ホバー時に緑色のラインを少し伸ばす（オプション） */
.equipment-card:hover .equipment-info h3::after {
    width: 60px;
}

.equipment-info p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #555;
    margin: 0;
}

/* ==========================================
   3. PC版設定（769px以上）
   ========================================== */
@media (min-width: 769px) {
    .sub-mv { height: 300px; }
    .sub-mv__title { font-size: 2.2rem; }
    .equipment-content { padding: 60px 0 100px; }
    
    .common-title { 
        font-size: 1.8rem; 
        padding: 15px; 
        margin-bottom: 50px; 
    }

    .equipment-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px 30px;
    }

    .last-item {
        grid-column: 1 / 2;
    }
}