.factory-page {
    font-family: "Noto Serif JP", serif;
    color: #222;
}

/* Hero */
.hero {
    position: relative;
    height: 472px;
}
.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-title {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.45);
    opacity: 0;
    animation: fadeTitle 1.2s ease-out 0s forwards;
}
@keyframes fadeTitle {
    0% {
        opacity: 0;
        transform: translateY(18px); /* 少し下から浮かび上がる */
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 472px;
  background-color: rgba(0,0,0,0.4); /* 半透明黒 */
  opacity: 0;
  animation: fadeIn 0.75s forwards;
  animation-delay: 0.1s; /* 少し遅らせて演出 */
}
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* セクション */
.section {
    max-width: 1080px;
    margin: 80px auto;
    padding: 0 20px;
}
.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 48px;
}
.section.introduction {
    margin-top: 150px;
}

.section.location {
    margin-top: 150px;
}

@media (max-width: 768px) {
    .section.introduction {
        margin-top: 40px;
    }

    .section.location {
        margin-top: 40px;
    }
}

/* コンテンツ行 */
.content-row {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-bottom: 60px;
}
.content-row.reverse { flex-direction: row-reverse; }
.content-text { flex: 1; }
.content-img {
    width: 48%;
    height: 370px;
    border-radius: 10px;
    object-fit: cover;
}
.sub-title {
    font-size: 28px;
    margin-bottom: 12px;
}

/* 施設カード */
.facility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}
.facility-card {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    transition: 0.3s;
}
.facility-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}
.facility-card h4{
    text-align: center;
}
.facility-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
    margin-bottom: 14px;
}


/* 職員の声 */
.staff-voice {
    text-align: center;
    margin: 70px 0;
}
.voice-photo {
    display: block;
    margin: 0 auto 12px;
    width: 95px;
    height: 95px;
    object-fit: cover;
    border-radius: 50%;
    
}
.voice-text {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 6px;
}
.voice-name {
    color: #666;
    font-size: 0.9rem;
}

/* 所在地 */
.location {
    margin-top: 40px;
}
.map-frame iframe {
    width: 100%;
    height: 260px;
    background: #ccc;
    border-radius: 10px;
    margin-top: 12px;
}

/* スマホ */
@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }

    .section-title {
        font-size: 28px;
    }

    .sub-title {
        font-size: 22px;
    }
    
    .content-row,
    .content-row.reverse {
        flex-direction: column;
    }
    .content-img {
        width: 100%;
    }
}


/* javascript連携用 */
.section-title, .content-row, .facility-card, .staff-voice {
    opacity: 0;
    transform: translateY(40px);
}
.fade {
    opacity: 1;
    transform: translateY(0);
    transition: .8s ease;
}