/* ==========================================================================
   1. 共通基本設定 & ヘッダー
   ========================================================================== */
body { font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif; line-height: 1.6; color: #333; margin: 0; background-color: #fff; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
header { background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(10px); border-bottom: 1px solid #e0e0e0; height: 120px; position: sticky; top: 0; z-index: 1000; }
header .container { display: flex; justify-content: space-between; align-items: flex-end; height: 100%; padding-bottom: 15px; box-sizing: border-box; }
.logo-img { height: 80px; width: auto; }
nav { margin-top: 20px; }
nav ul { display: flex; list-style: none; margin: 0; padding: 0; }
nav li { margin-left: 5px; position: relative; }
nav a { text-decoration: none; color: #333; font-size: 14px; font-weight: 600; padding: 10px 20px; display: block; }
nav a:hover { color: #004098; }

/* ドロップダウンメニュー */
.dropdown-menu { position: absolute; top: 100%; left: 0; background: #fff; min-width: 320px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); border-top: 3px solid #004098; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.3s ease; z-index: 1100; padding: 0; margin: 0; list-style: none; }
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu li { width: 100%; border-bottom: 1px solid #f0f0f0; margin: 0; }
.dropdown-menu a { padding: 22px 25px !important; line-height: 1.4 !important; text-align: left !important; }

/* ==========================================================================
   2. ヒーロースライダー (index.html用)
   ========================================================================== */
.hero-slider-wrap { position: relative; width: 100%; height: 80vh; min-height: 500px; background: #000; overflow: hidden; }
.slider-container { width: 100%; height: 100%; position: relative; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.5s ease-in-out; z-index: 1; display: flex; align-items: center; color: #fff; }
.slide.active { opacity: 1; z-index: 2; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(0, 40, 152, 0.4) 0%, rgba(0, 0, 0, 0.2) 100%); z-index: 2; }
.slide-content { position: relative; z-index: 10; }
.hero-tag { display: inline-block; background: #e60012; padding: 4px 12px; font-size: 14px; font-weight: bold; margin-bottom: 20px; }
.slide-content h2 { font-size: 3.5rem; line-height: 1.2; margin-bottom: 20px; font-weight: bold; text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5); }
.highlight { color: #ffd700; }

/* ==========================================================================
   3. 事業内容カード (index.html等)
   ========================================================================== */
.features { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title .en { color: #004098; font-weight: bold; letter-spacing: 3px; display: block; }
.section-title h2 { font-size: 2rem; position: relative; padding-bottom: 15px; margin: 10px 0 0; }
.section-title h2::after { content: ''; width: 50px; height: 3px; background: #e60012; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 80px; }
.feature-item-card { text-decoration: none; color: inherit; background: #fff; border: 1px solid #eee; overflow: hidden; transition: all 0.4s ease; display: flex; flex-direction: column; }
.feature-item-card:hover { transform: translateY(-10px); box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12); border-color: #004098; }
.card-image { height: 220px; background-size: cover; background-position: center; transition: transform 0.6s ease; }
.feature-item-card:hover .card-image { transform: scale(1.1); }
.card-content { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.card-content h3 { font-size: 1.3rem; margin-bottom: 15px; color: #004098; }
.card-content p { font-size: 0.95rem; color: #555; margin-bottom: 25px; line-height: 1.7; }
.more-btn { margin-top: auto; font-size: 14px; font-weight: bold; color: #e60012; display: flex; align-items: center; }

/* ==========================================================================
   4. お知らせアコーディオン (index.html用)
   ========================================================================== */
.bg-light { background: #f8f9fa; padding: 80px 0; }
.accordion-news { list-style: none; padding: 0; border-top: 1px solid #ddd; }
.news-item { border-bottom: 1px solid #ddd; background: #fff; }
.news-summary { padding: 25px 20px; display: flex; align-items: center; cursor: pointer; transition: background 0.3s; position: relative; }
.news-summary:hover { background: #f4f8ff; }
.news-summary .date { font-weight: bold; color: #004098; margin-right: 30px; min-width: 100px; }
.news-summary .news-title { flex: 1; font-weight: 600; font-size: 16px; }
.icon-plus { width: 20px; height: 20px; position: relative; }
.icon-plus::before, .icon-plus::after { content: ''; position: absolute; background: #004098; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.icon-plus::before { width: 14px; height: 2px; }
.icon-plus::after { width: 2px; height: 14px; transition: 0.3s; }
.news-item.is-active .icon-plus::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.news-content { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; background: #fafafa; }
.content-inner { padding: 30px 40px; border-top: 1px inset #eee; line-height: 1.8; }
.news-detail-flex { display: flex; gap: 30px; align-items: flex-start; }

/* ==========================================================================
   5. SPR実績 カルーセル＆モーダル (service-spr.html用)
   ========================================================================== */
.works-carousel-container { overflow: hidden; width: 100%; position: relative; padding: 40px 0; background: #fff; }
.works-carousel-track { display: flex; width: calc((300px + 20px) * 12); animation: flowCarousel 40s linear infinite; }
.works-carousel-track:hover { animation-play-state: paused; }
.work-item.modal-trigger { width: 300px; margin: 0 10px; flex-shrink: 0; cursor: pointer; text-align: center; }
.work-item.modal-trigger img { width: 100%; height: 200px; object-fit: cover; border-radius: 6px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); transition: transform 0.3s; }
.work-item.modal-trigger img:hover { transform: translateY(-5px); }
.work-item.modal-trigger p { margin-top: 10px; font-size: 14px; color: #444; }
@keyframes flowCarousel { 0% { transform: translateX(0); } 100% { transform: translateX(calc((300px + 20px) * -6)); } }

#imageModal { display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s; }
#imageModal.is-show { display: flex; opacity: 1; }
.modal-content { max-width: 85%; max-height: 85vh; border-radius: 4px; box-shadow: 0 0 30px rgba(255,255,255,0.1); }
.modal-close { position: absolute; top: 30px; right: 40px; color: #fff; font-size: 50px; font-weight: bold; cursor: pointer; }

/* ==========================================================================
   6. フッター & スマホ対応
   ========================================================================== */
footer { background: #333; color: #fff; text-align: center; padding: 40px 0; }

@media (max-width: 768px) {
    header { height: auto; }
    header .container { flex-direction: column; align-items: center; padding-bottom: 15px; }
    nav { margin-top: 10px; }
    .logo-img { height: 50px; }
    nav ul { flex-wrap: wrap; justify-content: center; }
    nav a { padding: 10px 12px; font-size: 13px; }
    .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; background: #f9f9f9; width: 100%; min-width: 100%; }
    .dropdown-menu a { padding: 15px 30px !important; text-align: center !important; }

    .slide-content h2 { font-size: 2rem; }
    .feature-grid { grid-template-columns: 1fr; }
    
    .news-summary { flex-direction: column; align-items: flex-start; }
    .news-summary .date { margin-bottom: 8px; }
    .news-detail-flex { flex-direction: column; }
    .content-inner { padding: 20px; }
} /* ← メディアクエリの閉じカッコ（超重要） */