/* ==========================================================================
   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;
}

/* ==========================================================================
   2. ヘッダー（ロゴとメニューの下端合わせ）
   ========================================================================== */
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;
}

.header-logo { display: flex; align-items: flex-end; }
.logo-img { height: 80px; width: auto; display: block; }

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;
    letter-spacing: 0.1em;
    position: relative;
    line-height: 1;
    display: block;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: #004098;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

nav a:hover { color: #004098; }
nav a:hover::after { transform: scaleX(1); }

/* ==========================================================================
   3. ドロップダウンメニュー（1行の幅を広く・段落崩れ防止）
   ========================================================================== */
.arrow { font-size: 10px; margin-left: 5px; vertical-align: middle; }

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 320px; /* 横幅を十分に確保 */
    list-style: none;
    padding: 0;
    margin: 0;
    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;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    width: 100%;
    margin: 0 !important;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-menu a {
    padding: 22px 25px !important; /* 上下幅を広げ、左右の余白を確保 */
    display: block !important;
    line-height: 1.4 !important; /* 段落が重ならないよう調整 */
    height: auto !important;
    font-size: 14px !important;
    text-align: left !important;
    color: #333 !important;
    letter-spacing: 0.05em !important;
}

.dropdown-menu a:hover {
    background-color: #f4f8ff !important;
    color: #004098 !important;
}

.dropdown-menu a::after { display: none !important; } /* 下線アニメを無効化 */

/* ==========================================================================
   4. ヒーロースライダー
   ========================================================================== */
.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; }

.slider-dots {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    z-index: 20; display: flex; gap: 12px;
}
.dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; }
.dot.active { background: #fff; width: 30px; border-radius: 10px; }

/* ==========================================================================
   5. メインコンテンツ（事業内容カードなど）
   ========================================================================== */
.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; }
.more-btn::after { content: '→'; margin-left: 8px; transition: transform 0.3s ease; }
.feature-item-card:hover .more-btn::after { transform: translateX(8px); }

/* お知らせセクション */
.bg-light { background: #f8f9fa; padding: 80px 0; }
.flex-row { display: flex; gap: 50px; }
.news-list { flex: 2; }
.quick-link { flex: 1; }
.section-title-s { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid #004098; margin-bottom: 20px; }
.news-list ul { list-style: none; padding: 0; }
.news-list li { padding: 15px 0; border-bottom: 1px solid #eee; }
.news-list .date { color: #888; margin-right: 15px; font-weight: bold; }
.news-list a { text-decoration: none; color: #333; }

.banner-shop {
    display: block; background: #004098; color: #fff; padding: 40px 30px;
    text-decoration: none; border-radius: 8px; text-align: center;
}

/* ==========================================================================
   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 {