html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* ベース設定 */
body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    line-height: 1.8;
    margin: 0;
    padding: 0;
    color: #1a365d;
    background-color: #f4fafd;
}

/* ヘッダー */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(178, 219, 235, 0.5);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0277bd;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: #2b6cb0;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #81d4fa;
}

/* ハンバーガーボタン（スマホのみ表示） */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    z-index: 200;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #0277bd;
    transition: all 0.3s ease;
}

/* ハンバーガー × 変化 */
.hamburger.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
    opacity: 0;
}
.hamburger.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* セクション共通 */
section {
    padding: 4rem 5%;
    max-width: 1000px;
    margin: 0 auto;
    border-bottom: 1px solid rgba(178, 219, 235, 0.5);
}

h1 { font-size: 2rem; margin-top: 1.5rem; color: #01579b; }
h2 { font-size: 1.8rem; margin-bottom: 2rem; color: #0277bd; }
h3 { font-size: 1.2rem; margin: 1rem 0 0.5rem; color: #1565c0; }

/* 画像プレースホルダー */
.placeholder-image {
    background-color: rgba(129, 212, 250, 0.2);
    border: 1px solid rgba(129, 212, 250, 0.5);
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0288d1;
    margin-bottom: 1rem;
    border-radius: 8px;
}

/* ニュースリスト */
.news-list {
    list-style: none;
    padding: 0;
}
.news-list li {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px dashed #81d4fa;
}
.date, .tag {
    font-size: 0.85rem;
    color: #4fc3f7;
    margin-right: 1rem;
}

/* サービスアイテム */
.service-item {
    margin-bottom: 4rem;
}

/* ボタン */
.button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: rgba(2, 119, 189, 0.8);
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    margin-top: 1rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}
.button:hover {
    background-color: rgba(2, 119, 189, 1);
    box-shadow: 0 4px 12px rgba(2, 119, 189, 0.3);
    transform: translateY(-2px);
}

/* フッター */
footer {
    background-color: rgba(225, 240, 250, 0.5);
    padding: 3rem 5%;
    text-align: center;
}
.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 0;
}
.footer-links a {
    text-decoration: none;
    color: #2b6cb0;
    font-size: 0.9rem;
}
.copyright {
    font-size: 0.8rem;
    color: #4fc3f7;
}

/* ニュース画像 */
.news-img-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
}
.news-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.br-sp {
    display: none;
}

.grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
}

.floating-menu-btn {
    display: none;
}
/* ================================
   レスポンシブ対応（768px以下）
   ================================ */
@media (max-width: 768px) {

    /* ここに追加（メディアクエリの中） */
    .br-sp {
        display: inline;
    }

    .grid-2col {
    grid-template-columns: 1fr;
    }


.floating-menu-btn {
display: flex;
position: fixed;
bottom: 1.5rem;
right: 1.5rem;
width: 50px;
height: 50px;
background-color: #0277bd;
border-radius: 50%;
align-items: center;
justify-content: center;
cursor: pointer;
border: none;
box-shadow: 0 4px 12px rgba(2, 119, 189, 0.4);
z-index: 200;
flex-direction: column;
gap: 5px;
}

.floating-menu-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background-color: #fff;
}
    
    /* ハンバーガーボタン表示 */
    .hamburger {
        display: flex;
    }

    /* ナビメニューをドロップダウン化 */
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(8px);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: right 0.3s ease;
        z-index: 150;
        box-shadow: -4px 0 12px rgba(0,0,0,0.1);
    }

    nav.open {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    nav a {
        font-size: 1.1rem;
    }

    /* セクション余白調整 */
    section {
        padding: 2.5rem 5%;
    }

    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.4rem; }
    h3 { font-size: 1.1rem; }

    /* ニュースグリッドを1列に */
    .news-grid {
        grid-template-columns: 1fr !important;
    }

    /* ボタン */
    .button {
        display: block;
        text-align: center;
    }
}