@charset "UTF-8";

/* ==========================================================================
   目次
   1. 基本設定・レイアウト (.container, header, footer)
   2. 共通コンポーネント (Btn, Icon, Tab, Ad)
   3. トップページ：メインビジュアル (Swiper, Visual)
   4. セクション：重要なお知らせ (Important)
   5. セクション：情報を探す・ライフイベント (Search, LifeEvent)
   6. セクション：猪苗代町について・行政情報 (About, Population, Weather)
   7. セクション：もしものとき (Emergency)
   8. レスポンシブ設定 (Media Queries)
   ========================================================================== */

/* ==========================================================================
   1. 基本設定・レイアウト
   ========================================================================== */

/* コンテンツ幅制御 */
.container section {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.container section.swiper-pattern-section,
.container section.links {
    width: 100%;
    max-width: 1600px;
}

.section-wrapper {
    margin: 0 auto;
}

/* ヘッダー */
.site-header {
    text-align: center;
    width: 100%;
}

.site-header h1 {
    margin: 0;
}

/* フッター */
.site-footer {
    background-color: #00759C;
    padding: 40px 0 0;
    text-align: center;
    color: #FFF;
    overflow: hidden;
}

.footerLogo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.footerLogo strong {
    font-size: 3.2rem;
}

.footerLogo::before {
    content: '';
    display: block;
    width: 70px;
    height: 70px;
    background-image: url('/img/top/logo.svg');
    background-size: contain;
    background-repeat: no-repeat;
}

.addressTel {
    text-align: left;
    line-height: 1.7;
}

/* フッターナビゲーション */
.footer-nav {
    display: flex;
    justify-content: center;
    padding: 0;
    list-style: none;
    margin: 20px 0 0;
    flex-wrap: wrap;
}

.footer-nav li {
    position: relative;
    padding: 0 15px;
    flex-shrink: 0;
}

.footer-nav li:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 1px;
    height: 1em;
    background-color: #fff;
}

.footer-nav a {
    color: #fff;
    text-decoration: none;
}

.footer-nav a:hover {
    text-decoration: underline;
}

/* ページトップへ戻るボタン */
#page-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    border: none;
    width: 60px;
    height: 104px;
    text-decoration: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    text-indent: 100%;
    white-space: nowrap;
    overflow: hidden;
    background-image: url('/img/top/i-pagetop.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

#page-top-btn.show {
    opacity: 1;
    visibility: visible;
}


/* 1. #headerWrapを2カラムレイアウトに */
#headerWrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    border-bottom: 1px solid #ddd;
    max-width: 1400px;
    margin: 0 auto;
}

#logo h1 {
    margin: 0;
}

#logo img {
    vertical-align: bottom;
}

#headerUtility {
    display: flex;
    /* flex-direction: column; */
    align-items: flex-end;
    gap: 10px;
}

/* 3. #moji_sizeと#haikei_colorを横一列に */
.headerRight1 {
    display: flex;
    gap: 20px;
}

#moji_size,
#haikei_color {
    display: flex;
    align-items: center;
    margin: 0;
}

#moji_size dt,
#haikei_color dt {
    font-size: 1.4rem;
    margin-right: 8px;
    white-space: nowrap;
}

#moji_size dd,
#haikei_color dd {
    display: flex;
    margin: 0;
}

#moji_size dd+dd,
#haikei_color dd+dd {
    margin-left: 10px;
}

/* 2. .headerRight1のリンクをフラットデザインで装飾 */
.headerRight1 a {
    display: flex;
    padding: 4px 8px;
    background-color: #f0f0f0;
    color: #333;
    text-decoration: none;
    border: 1px solid #ccc;
    font-size: 1.4rem;
    border-radius: 4px;
    align-items: center;
}

.headerRight1 a:hover {
    background-color: #e0e0e0;
}

/* 個別ボタンのスタイル */
#moji_large {
    background-color: #2E7BB9;
    color: #FFF;
}

#haikei_black {
    background-color: #000;
    color: #FFF;
}

#haikei_blue {
    background-color: #0000FF;
    color: #FFFF00;
}

.headerLink {
    display: flex;
    gap: 10px;
}

.headerRight2 {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* 4. #searchKeywordをモダンなデザインに */
#searchKeyword .search_ipt,
#searchKeyword2 .search_ipt {
    display: flex;
}

#searchKeyword #tmp_query,
#searchKeyword2 #tmp_query-2 {
    border: 2px solid #2E7BB9;
    padding: 8px;
    border-radius: 4px 0 0 4px;
    border-right: none;
}

#searchKeyword #submit,
#searchKeyword2 #submit-2 {
    background-color: #2E7BB9;
    color: white;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
}

#searchKeyword {
    margin-bottom: 16px;
}

#tmp_query {
    width: 60%;
}

/* ==========================================================================
   2. 共通コンポーネント (Btn, Icon, Tab, Ad)
   ========================================================================== */

/* 見出しアイコン (.tit) */
.tit {
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.tit.bell {
    justify-content: center;
}

.tit h3 {
    font-size: 2.2rem;
}

.tit::before {
    content: '';
    display: block;
    width: 42px;
    height: 42px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.tit.rupe::before {
    background-image: url('/img/top/i-rupe.svg');
}

.tit.bell::before {
    background-image: url('/img/top/i-bell.svg');
}

.tit.check::before {
    background-image: url('/img/top/i-check.svg');
}

/* 白鳥の見出し (.h2swan) */
.h2swan {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
    text-align: center;
}

.h2swan h2 {
    font-size: 3rem;
    margin: 0px;
}

.h2swan h2::before {
    content: '';
    display: block;
    width: 113px;
    height: 47px;
    background-image: url('/img/top/i-swan.svg');
    background-repeat: no-repeat;
    background-size: contain;
    margin: 0 auto 10px;
}

.h2swan span {
    font-size: 1.6rem;
}

/* 一覧を見るボタン (.link_ichiran) */
.linkBox {
    display: flex;
    align-items: center;
    column-gap: 14px;
    justify-content: flex-end;
}

.info_list.info_list_date .linkBox {
    margin: 1rem 0 3rem;
}

.linkBox.kinkyuR {
    justify-content: center;
    padding-bottom: 10px;
}

.sf_email a,
.link_ichiran.linkBtn a {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    background-color: #2e7bb9;
    color: #FFF;
    padding: 11px 60px 11px 20px;
    border-radius: 3px;
    text-decoration: none;
    text-align: left;
    line-height: 1.3;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
    letter-spacing: 1px;
}

.sf_email a {
    border-radius: 150px;
    background-color: #00759C;
}

.linkBox.kinkyu .link_ichiran.linkBtn a {
    background-color: #FFF;
    color: #333;
}

.linkBox.kinkyuR .link_ichiran.linkBtn a {
    background-color: #D13636;
    color: #FFF;
    padding: 10px 50px 10px 11px;
    font-weight: normal;
}

.sf_email a::after,
.link_ichiran.linkBtn a::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 22px;
    background-image: url('/img/top/arrow-siro.svg');
    background-size: contain;
    background-repeat: no-repeat;
}

.linkBox.kinkyu .link_ichiran.linkBtn a::after {
    background-image: url('/img/top/arrow-333.svg');
}

.linkBox.kinkyuR .link_ichiran.linkBtn a::after {
    right: 8px;
}

.sf_email a:hover,
.link_ichiran.linkBtn a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
}

.link_rss a {
    display: block;
    padding: 14px 0px;
}

.link_rss a img {
    display: block;
    width: 24px;
    height: auto;
    vertical-align: bottom;
}

/* 関連リンクボタン・白 (.linksBtn) */
.linksBtn {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 230px;
}

.linksBtn a {
    display: block;
    width: 100%;
    position: relative;
    padding: 6px 60px 6px 24px;
    background-color: #fff;
    color: #005a78;
    text-decoration: none;
    border-radius: 100px;
    font-weight: bold;
    text-align: left;
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    letter-spacing: 1px;
}

.linksBtn a::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 22px;
    background-image: url('/img/top/arrow.svg');
    background-size: contain;
    background-repeat: no-repeat;
}

.linksBtn a:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* 関連リンクボタン・青 (.linksBtnBlue) */
.linksBtnBlue {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.linksBtnBlue.ph {
    margin-bottom: 10px;
}

.linksBtnBlue a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #2E7BB9;
    color: white;
    text-decoration: none;
    padding: 10px 15px 10px 25px;
    border-radius: 20px;
    transition: background-color 0.3s;
    position: relative;
    box-shadow: 2px 3px 6px rgba(0, 0, 0, 0.2);
}

.linksBtnBlue a:last-child {
    margin-bottom: 0;
}

.linksBtnBlue a:hover {
    background-color: #256294;
}

.linksBtnBlue a::after {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    background-color: white;
    border-radius: 50%;
    flex-shrink: 0;
}

.linksBtnBlue a::before {
    content: '';
    position: absolute;
    right: 21px;
    top: 50%;
    width: 5px;
    height: 5px;
    border-top: 2px solid #2E7BB9;
    border-right: 2px solid #2E7BB9;
    transform: translateY(-50%) rotate(45deg);
    z-index: 1;
}

/* SNS等のリンク・白枠線 (.linksBtnWhite) */
.snsLinks {
    display: flex;
    align-items: center;
    column-gap: 24px;
    margin-top: 20px;
}

.snsLinks h2 {
    margin: 0;
    border-left: solid 5px #48C2FA;
    padding-left: 10px;
}

.linksBtnWhite {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.linksBtnWhite a {
    display: flex;
    padding: 10px 45px 10px 20px;
    background-color: #fff;
    color: #005bab;
    border: 2px solid #005bab;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
    position: relative;
}

.linksBtnWhite a:hover {
    background-color: #256294;
    color: #fff;
}

.linksBtnWhite a::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background-color: #256294;
    border-radius: 50%;
}

.linksBtnWhite a::before {
    content: '';
    position: absolute;
    right: 21px;
    top: 50%;
    width: 5px;
    height: 5px;
    border-top: 2px solid #FFF;
    border-right: 2px solid #FFF;
    transform: translate(0, -50%) rotate(45deg);
    z-index: 1;
}

.linksBtnWhite.weather {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.linksBtnWhite.weather a::after,
.linksBtnWhite.weather a::before {
    display: none;
}

.linksBtnWhite.weather a {
    background-image: url('/img/top/p-weather.svg');
    background-repeat: no-repeat;
    background-position: left 15px center;
    background-size: 36px auto;
    padding-left: 60px;
    padding-right: 20px;
    line-height: 1.4;
}

.linksBtnWhite.weather a:hover {
    background-image: url('/img/top/p-weather-siro.svg');
}

/* お知らせタブヘッダー */
.tab-header {
    display: flex;
    align-items: flex-end;
    gap: 30px;
    margin-bottom: 20px;
    justify-content: space-between;
}

.tab-header .h2swan {
    margin-bottom: 0;
}


/* ==========================================================================
   3. トップページ：メインビジュアル (Swiper, Visual)
   ========================================================================== */

.topVisual-wrapper {
    position: relative;
}

/* Swiper コントロール */
.topVisual .swiper-pattern-section.swiper-multi .swiper-container-wrapper {
    position: relative;
}

.topVisual .swiper-pattern-section.swiper-multi .swiper-controls-wrapper {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    flex-direction: column;
    width: auto;
    max-width: none;
    margin-top: 0;
    gap: 1rem;
    z-index: 10;
}

.topVisual .swiper-pagination {
    order: 1;
    flex-direction: column;
}

.topVisual .swiper-button-prev {
    order: 2;
    margin: 0px;
}

.topVisual .swiper-button-next {
    order: 3;
    margin: 0px;
}

.topVisual .autoplay-controls {
    order: 4;
    margin: 0px;
}

/* シルエット装飾 */
.silhouette {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 15vw;
    max-height: 150px;
    background-image: url('/img/top/img-silhouette.svg');
    background-size: cover;
    background-position: center bottom -44px;
    z-index: 10;
    background-repeat: no-repeat;
}

/* サブビジュアル (topSubVisual) */
.topSubVisual {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 380px;
    z-index: 10;
}

.topSubVisual .swiper-slide {
    border-radius: 4px;
    overflow: hidden;
}

.topSubVisual .swiper-pattern-section {
    margin-bottom: 0;
}

.topSubVisual .swiper-controls-wrapper {
    margin-top: 10px;
    background-color: #333333a8;
    padding: 2px 0px 2px 5px;
    border-radius: 150px;
    width: auto;
}


/* サブビジュアルのSwiperコントロール順序 */
.topSubVisual .swiper-pagination,
section.bnrPickup .swiper-pagination,
section.links .swiper-pagination {
    order: 1;
    gap: 0;
    margin-right: 10px;
}

.topSubVisual .swiper-button-prev,
section.bnrPickup .swiper-button-prev,
section.links .swiper-button-prev {
    order: 2;
    margin: 0px 8px 0px 0px;
}

.topSubVisual .swiper-button-next,
section.bnrPickup .swiper-button-next,
section.links .swiper-button-next {
    order: 3;
    margin: 0px 8px 0px 0px;
}

.topSubVisual .autoplay-controls,
section.bnrPickup .autoplay-controls,
section.links .autoplay-controls {
    order: 4;
}

/* ピックアップバナー (bnrPickup) */
.container section.bnrPickup {
    padding: 60px 0px 30px;
}

.bnrPickup .swiper-container-wrapper {
    overflow: visible;
}

.container section.bnrPickup .swiper-container {
    padding-bottom: 15px;
    margin-bottom: -15px;
    overflow: visible;
}

.container section.bnrPickup .swiper-slide {
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
}

.container section.bnrPickup .swiper-slide a {
    display: block;
}

.container section.bnrPickup .swiper-slide img {
    vertical-align: bottom;
}

/* リンクスライダー (section.links) */
.container section.links {
    padding: 60px 0px 90px;
    width: calc(100% - 40px);
}

.container section.links .swiper-slide img {
    border: solid 1px #C7C7C7;
    border-radius: 4px;
    box-sizing: border-box;
    vertical-align: bottom;
}


/* ==========================================================================
   4. セクション：重要なお知らせ (Important)
   ========================================================================== */

.bgImportantNotice {
    background-color: #FFF;
    background-image: url(/img/top/bg-wave3.svg);
    background-repeat: no-repeat;
    background-position: center bottom -1px;
    background-size: contain;
    padding-bottom: 330px;
}

.importantSection {
    width: 90%;
    max-width: 1080px;
    margin: 0px auto 40px;
    background-color: #D13636;
    border-radius: 6px;
    display: flex;
    align-items: center;
    padding: 10px;
    gap: 10px;
}

#top_important_list {
    background-color: #fff;
    padding: 14px;
    border-radius: 5px;
    box-sizing: border-box;
    flex: 1;
    margin: 0;
}

#top_important_ttl {
    flex-shrink: 0;
    padding: 0 10px;
    row-gap: 12px;
    display: flex;
    flex-direction: column;
}

#top_important_ttl h2 {
    color: #fff;
    margin: 0;
    font-size: 2.8rem;
}

#top_important_list ul {
    list-style-type: none;
    padding-left: 0px;
    margin: 0px;
}

#top_important_list li {
    display: flex;
    align-items: baseline;
    padding: 8px 0;
    border-bottom: 1px dashed #707070;
}

#top_important_list li:first-child {
    padding-top: 0px;
}

#top_important_list .article_date {
    flex-shrink: 0;
    width: 10em;
    margin-right: 1em;
}

#top_important_list .article_title a {
    text-decoration: none;
}

#top_important_list .article_title a:hover {
    text-decoration: underline;
}


/* ==========================================================================
   5. セクション：情報を探す・ライフイベント (Search, LifeEvent)
   ========================================================================== */

/* ネガティブマージンによる位置調整 */
#searchInfoNews {
    position: relative;
    top: -350px;
    margin-bottom: -350px;
}

.bgSearchNews {
    background:
        url('/img/top/swan-left.svg') no-repeat left -80px center,
        url('/img/top/swan-right.svg') no-repeat right -160px top 180px,
        url('/img/top/bg-wave2.svg') no-repeat center bottom -1px,
        linear-gradient(to bottom, #EEFAFF, #98DFFF);
    padding: 40px 0;
}

/* 基本2カラムレイアウト (.colWrap2) */
.colWrap2 {
    display: flex;
    gap: 30px;
}

.colWrap2>div {
    flex: 1;
    width: 50%;
}

/* ライフイベント (.lifeEvent) */
.lifeEvent {
    margin: 50px auto;
}

.leLinks {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
    max-width: 630px;
    margin-left: auto;
    margin-right: auto;
}

.leLinks a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    width: 90px;
    text-align: center;
}

.lifeEvent.lower {
    border: solid 2px #2D7BB9;
    border-radius: 3px;
    margin-top: 0;
}

.lifeEvent.lower .tit.bell h2,
.lifeEvent.lower .tit.bell h3 {
    margin: 0;
    font-size: 2rem;
}

.lifeEvent.lower .leLinks {
    flex-direction: column;
    gap: 0px;
    max-width: none;
    margin: 0px;
}

.lifeEvent.lower .leLinks a {
    width: 100%;
    flex-direction: row;
    justify-content: flex-start;
    gap: 14px;
    /* 右端の矢印用にスペースを確保 */
    padding: 2px 30px 2px 10px;
    background-color: #fff;
    box-sizing: border-box;
    position: relative;
    background-image: linear-gradient(to right, #2D7BB9 1px, transparent 1px);
    background-repeat: repeat-x;
    background-position: bottom;
    background-size: 5px 1px;
}

.lifeEvent.lower .leLinks a:last-child {
    background-image: none;
}

/* 九の字（右向き矢印）の描画 */
.lifeEvent.lower .leLinks a::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    border-top: 2px solid #2D7BB9;
    border-right: 2px solid #2D7BB9;
    box-sizing: border-box;
}

.lifeEvent.lower .leLinks a::before {
    width: 46px;
    height: 46px;
    padding: 4px;
    margin-bottom: 0;
    background-color: transparent;
}

.lifeEvent.lower .is-closed+.leLinks {
    display: none;
}

.lifeEvent.lower .tit.bell {
    cursor: pointer;
    position: relative;
    width: 100%;
    justify-content: center;
    background-color: #2D7BB9;
    color: #FFF;
    padding: 10px 5px;
    box-sizing: border-box;
}

.leLinks a:hover {
    opacity: 0.8;
}

.leLinks a::before {
    content: '';
    display: block;
    width: 90px;
    height: 90px;
    box-sizing: border-box;
    border-radius: 50%;
    background-color: #41B1E6;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-origin: content-box;
    padding: 20px;
    margin-bottom: 8px;
}


.lifeEvent.lower .tit.bell::after {
    content: "";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    width: 24px;
    height: 24px;
    background-color: #FFE32B;
    border-radius: 50%;
    z-index: 1;
    background-image: linear-gradient(to right, #202020, #202020);
    background-repeat: no-repeat;
    background-size: 2px 12px;
    background-position: center;
    transition: transform 0.3s ease;
}

.lifeEvent.lower .tit.bell::before {
    content: "";
    position: absolute;
    right: 21px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 2px;
    background-color: #202020;
    z-index: 3;
    background-image: none;
    transition: none;
}

.lifeEvent.lower .tit.bell.is-closed::after {
    transform: translateY(-50%) rotate(0deg);
}


/* 開閉機能のためのスタイル */
.lifeEvent.lower .leLinks {
    display: flex;
    /* is-closedがない場合は表示 */
}

.lifeEvent.lower .tit.bell.is-closed+.leLinks {
    display: none;
}


/* ==========================================================================
   アクセシビリティ対応：フォーカス時のスタイル
   ========================================================================== */

.lifeEvent.lower .tit.bell:focus-visible {
    outline: 3px solid #111;
    outline-offset: -3px;
    background-color: #256294;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.5);
    z-index: 10;
}

.lifeEvent.lower .tit.bell:focus:not(:focus-visible) {
    outline: none;
}


/* 個別アイコン */
.leLinks .le-pregnancy::before {
    background-image: url('/img/top/le-pregnancy.svg');
}

.leLinks .le-childcare::before {
    background-image: url('/img/top/le-childcare.svg');
}

.leLinks .le-school::before {
    background-image: url('/img/top/le-school.svg');
}

.leLinks .le-work::before {
    background-image: url('/img/top/le-work.svg');
}

.leLinks .le-tax::before {
    background-image: url('/img/top/le-tax.svg');
}

.leLinks .le-marriage::before {
    background-image: url('/img/top/le-marriage.svg');
}

.leLinks .le-moving::before {
    background-image: url('/img/top/le-moving.svg');
}

.leLinks .le-health::before {
    background-image: url('/img/top/le-health.svg');
}

.leLinks .le-seniors::before {
    background-image: url('/img/top/le-seniors.svg');
}

.leLinks .le-bereavement::before {
    background-image: url('/img/top/le-bereavement.svg');
}

/* 便利なサービス (.usLinks) */
.usLinks {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.usLinks a {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    background-color: #97EAF6;
    color: #004050;
    padding: 15px 40px 15px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    text-align: left;
    line-height: 1.3;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.usLinks.searchBox {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.usLinks a::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 22px;
    background-image: url('/img/top/arrow.svg');
    background-size: contain;
    background-repeat: no-repeat;
}

.usLinks a:hover {
    background-color: #7ce0f0;
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
}


/* ==========================================================================
   6. セクション：猪苗代町について・行政情報 (About, Population, Weather)
   ========================================================================== */

.bgAboutInawashiro {
    background-image: url(/img/top/bg-ph-about.webp);
    background-position: center bottom;
    background-size: cover;
    padding: 0 0 250px;
    box-sizing: border-box;
    overflow: hidden;
}

/* 2カラムの拡張設定 */
.colWrap2.about {
    flex-wrap: wrap;
}

.colWrap2.about>.aboutL {
    flex: 1 1 510px;
    width: auto;
}

.colWrap2.about>.aboutR {
    flex: 1 1 auto;
    width: auto;
}

/* 右カラム内部構造（上：広報・天気、下：人口・地図） */
.aboutR .ue,
.aboutR .shita {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.aboutR .shita {
    margin-bottom: 0;
    align-items: center;
}

/* ボックススタイル */
.whiteBox,
.aboutInawashiro {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
}

.population.whiteBox {
    padding: 0px 10px;
}

.kohoShi.whiteBox {
    padding: 17px 10px;
    justify-content: center;
}

/* 特別なリンクボタン (町長室・議会) .linksBtnBlue.ph */
.linksBtnBlue.ph a {
    display: block;
    position: relative;
    height: 250px;
    overflow: hidden;
    border-radius: 20px;
    text-decoration: none;
    color: white;
    padding: 0px;
}

.linksBtnBlue.ph a::after,
.linksBtnBlue.ph a::before {
    display: none;
}

.linksBtnBlue.ph a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.linksBtnBlue.ph a .text-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: #2E7BB9;
    padding: 0 50px 0 20px;
    display: flex;
    align-items: center;
    font-weight: bold;
    line-height: 1.3;
    box-sizing: border-box;
}

.linksBtnBlue.ph a:hover {
    color: white;
    background-color: transparent;
}

.linksBtnBlue.ph a:hover img {
    transform: scale(1.05);
}

.linksBtnBlue.ph a .text-content::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background-color: white;
    border-radius: 50%;
}

.linksBtnBlue.ph a .text-content::before {
    content: '';
    position: absolute;
    right: 21px;
    top: 50%;
    width: 5px;
    height: 5px;
    border-top: 2px solid #2E7BB9;
    border-right: 2px solid #2E7BB9;
    transform: translateY(-50%) rotate(45deg);
    z-index: 1;
}

.linksBtnBlue.ph .mayor {
    background-image: none;
}

.linksBtnBlue.ph .gikai {
    background-image: none;
}

/* 人口・世帯 (.population) */
.population {
    min-width: 0;
    width: 100%;
    flex: 1 1 220px;
    max-width: 100%;
}

.population.whiteBox h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1em;
    color: #333;
}

.population.whiteBox h3::before,
.population.whiteBox h3::after {
    content: '';
    width: 60px;
    height: 1px;
    background-color: #333;
}

.population ul {
    display: flex;
    justify-content: space-between;
    gap: 5px;
    list-style: none;
    padding: 0;
    margin-top: 20px;
    flex-wrap: nowrap;
    text-align: center;
    width: 100%;
}

.population li {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding-top: 56px;
    flex: 1;
    min-width: 0;
}

.population li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 46px;
    height: 46px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.population .sojinko::before {
    background-image: url('/img/top/p-sojinko.svg');
}

.population .dansei::before {
    background-image: url('/img/top/p-dansei.svg');
}

.population .josei::before {
    background-image: url('/img/top/p-josei.svg');
}

.population .setaisu::before {
    background-image: url('/img/top/p-setaisu.svg');
}

.population .label {
    display: inline-block;
    background-color: #2E7BB9;
    color: white;
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 0.9em;
    margin-bottom: 5px;
    white-space: nowrap;
    max-width: 100%;
}

.population .value {
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
    white-space: nowrap;
}

.top_jinkou_date {
    font-size: 1.4rem;
}


/* 広報誌 (.kohoShi) */
.kohoShi {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1 1 220px;
    max-width: 100%;
}

.kohoShi img {
    width: 125px;
    height: auto;
    flex-shrink: 0;
}

.linksKoho {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
}

.linksKoho a {
    background-color: #2E7BB9;
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    text-align: center;
    transition: background-color 0.3s;
    border-radius: 150px;
}

.linksKoho a:hover {
    background-color: #256294;
}


/* 天気・地図 */
.mapInawashiro {
    flex: 1 1 220px;
    max-width: 220px;
    width: 100%;
    text-align: center;
}

.mapInawashiro img {
    width: 100%;
    height: auto;
}

/* 庁舎案内 */
.officeInfo {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.officeInfo-item {
    flex: 1;
}

/* リンク */
.bgLinks {
    background-color: #EEFAFF;
    background-image: url(/img/top/bg-wave.svg);
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: contain;
}

.container section.bnrAd {
    padding-bottom: 80px;
    padding-top: 40px;
}

/* バナー広告エリア */
.h2Ad {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
}

.h2Ad h2 {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 3rem;
    margin: 0;
}

.h2Ad h2::before {
    content: '';
    display: block;
    background-image: url(/img/top/h2-ad01.svg);
    width: 34px;
    height: 42px;
}

.h2Ad h2::after {
    content: '';
    display: block;
    background-image: url(/img/top/h2-ad02.svg);
    width: 32px;
    height: 42px;
}

.bnrAdWrap {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
}

.bnrAdWrap p {
    margin: 0;
}

.bnrAdWrap img {
    width: 100%;
    height: auto;
    vertical-align: bottom;
}


/* ==========================================================================
   7. セクション：もしものとき (Emergency)
   ========================================================================== */

.emergency {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    background-color: #2E7BB9;
    width: fit-content;
    margin: 80px auto 50px;
    padding: 26px;
    border-radius: 6px;
    border: solid 4px #FFE32B;
}

.emergency h3 {
    display: flex;
    align-items: center;
    margin: 0;
    font-size: 2rem;
    color: #FFF;
}

.emergency h3::before {
    content: '';
    display: inline-block;
    width: 49px;
    height: 44px;
    background-image: url('/img/top/i-mosimo.svg');
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 10px;
}

.emLinks {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.emLinks a {
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    background-color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.emLinks a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.emLinks a span::before {
    content: '';
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 10px;
    vertical-align: middle;
}

.emLinks .helmet::before {
    width: 45px;
    height: 33px;
    background-image: url('/img/top/i-helmet.svg');
}

.emLinks .map::before {
    width: 45px;
    height: 37px;
    background-image: url('/img/top/i-map.svg');
}

.emLinks .hospital::before {
    width: 45px;
    height: 38px;
    background-image: url('/img/top/i-hospital.svg');
}


/* ==========================================================================
   8. レスポンシブ設定 (Media Queries)
   大きい画面サイズから順に記述
   ========================================================================== */

/* --- 2000px以上：超大型モニター --- */
@media (min-width: 2000px) {
    .silhouette {
        height: 150px;
        background-size: 100% 150px;
    }
}

/* --- 1600px以上：大型モニター --- */
@media (min-width: 1600px) {
    .section-wrapper {
        max-width: 1500px;
    }

    .section-wrapper .leLinks {
        flex-wrap: nowrap;
        justify-content: space-between;
        max-width: none;
        width: 100%;
    }

    .findL {
        display: contents;
    }
}

/* --- 1200px以上：標準的なPC --- */
@media (min-width: 1200px) {
    .leLinks {
        flex-wrap: nowrap;
        justify-content: space-between;
        max-width: none;
    }
}

/* --- 1200px以下：タブレットPC・狭いデスクトップ --- */
@media (max-width: 1200px) {
    .section-wrapper {
        max-width: 95%;
    }

    /* リンクボタンは2カラム維持 */
    .linksBtnBlue {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 右カラム要素の並び調整（横並び維持） */
    .section-wrapper .aboutR .ue,
    .aboutR .shita {
        flex-wrap: nowrap;
        gap: 10px;
    }

    /* 広報・人口: 50%幅 */
    .kohoShi,
    .section-wrapper .population {
        flex: 0 0 50%;
        width: 50%;
        max-width: 50%;
        min-width: 0;
    }

    /* 地図: 50%幅 (上限220px) */
    .section-wrapper .mapInawashiro {
        flex: 0 0 50%;
        width: 50%;
        max-width: 220px;
        min-width: 0;
    }

    .section-wrapper .mapInawashiro img {
        width: 100%;
        height: auto;
    }

}

/* --- 768px以下：タブレット・スマートフォン --- */
@media (max-width: 768px) {

    /* 2カラムレイアウトを縦積みに */
    .colWrap2 {
        flex-direction: column;
        gap: 20px;
    }

    .findL {
        display: block;
    }

    .colWrap2>div {
        width: 100%;
    }

    .colWrap2.about>.aboutL,
    .colWrap2.about>.aboutR {
        flex-basis: auto;
        width: 100%;
    }

    .aboutR .ue {
        justify-content: center;
    }

    /* 右カラムの中身も縦積みに戻す */
    .section-wrapper .aboutR .ue,
    .aboutR .shita {
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 26px;
    }

    /* 広報・人口は横幅いっぱい */
    .kohoShi,
    .population {
        flex: 1 1 auto;
        max-width: none;
    }

    /* 地図は220px制限を維持しつつ調整 */
    .section-wrapper .mapInawashiro {
        flex: 1 1 100%;
        max-width: 100%;
        width: 100%;
    }

    /* 人口リスト：縮小解除 */
    .population ul {
        gap: 10px;
    }

    .population li {
        transform: none;
        margin-bottom: 0;
    }

    .population .label {
        font-size: 0.9em;
    }


    .population.whiteBox h3 {
        gap: 0px;
        flex-wrap: wrap;
    }

    .top_jinkou_date {
        width: 100%;
        text-align: center;
    }

    .population.whiteBox h3::before,
    .population.whiteBox h3::after {
        display: none;
    }


    /* 庁舎案内 縦積み */
    .officeInfo {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    /* リンクボタン 1列 */
    .linksBtnBlue {
        grid-template-columns: 1fr;
    }

    /* モバイル時のTopVisual調整 */
    .topSubVisual {
        position: static;
        width: auto;
        z-index: auto;
        margin: 20px;
    }

    .topSubVisual .swiper-controls-wrapper {
        justify-content: center;
    }

    .topVisual .swiper-pattern-section.swiper-multi .swiper-controls-wrapper {
        position: static;
        transform: none;
        flex-direction: row;
        justify-content: center;
        width: 100%;
        margin-top: 10px;
    }

    .topVisual .swiper-pagination {
        flex-direction: row;
        gap: 0px;
    }

    /* モバイル時の重要なお知らせ調整 */
    .importantSection {
        flex-direction: column;
        box-sizing: border-box;
    }

    #top_important_ttl {
        align-items: center;
        margin-top: 4px;
        row-gap: 0;
    }

    #top_important_list {
        width: 100%;
    }

    #top_important_list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    #top_important_list .article_date {
        width: auto;
    }

    .h2swan h2 {
        font-size: 2.4rem;
    }

    .bnrAdWrap {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .addressTel {
        text-align: center;
    }

    #page-top-btn {
        bottom: 6px;
        right: 6px;
        height: 70px;
        width: 42px;
    }

    .footerLogo {
        margin-bottom: 0;
    }

    .copyR {
        margin-bottom: 40px;
    }

    .footerLogo::before {
        width: 50px;
        height: 50px;
    }

    .footerLogo strong {
        font-size: 2.6rem;
    }

    .topSubVisual .swiper-controls-wrapper {
        background-color: transparent;
    }

    .h2swan {
        margin-bottom: 20px;
    }

    .whiteBox,
    .aboutInawashiro {
        padding: 15px;
    }

    .tit h3 {
        margin: 0;
    }

    #searchKeyword {
        margin: 16px 0;
    }

    .usLinks.searchBox {
        grid-template-columns: repeat(1, 1fr);
    }

    .emergency {
        margin: 40px auto 50px;
    }

    .bgAboutInawashiro {
        padding: 0 0 80px;
    }

    .sf_email a {
        padding: 11px 48px 11px 14px;
    }

    .sf_email a::after {
        right: 8px;
    }

    .bgSearchNews {
        background-position: left -100px top 360px,
            right -115px top 1000px,
            center bottom -1px,
            0 0;
        background-size: 200px auto, 180px auto, 110% auto, auto;
    }

    .bgImportantNotice,
    .bgLinks {
        background-size: 110% auto;
    }

    #headerWrap {
        padding: 10px;
    }

    .bnrPickup .swiper-container-wrapper,
    .container section.bnrPickup .swiper-container {
        overflow: hidden;
    }
}

/* --- 480px以下：スマートフォン（小） --- */
@media (max-width: 480px) {
    .usLinks {
        grid-template-columns: 1fr;
    }

    /* 人口リスト微調整 */
    .population li {
        transform: scale(0.9);
        transform-origin: top center;
    }
}


/* 新しいiframeコンテナのスタイル */
.iframe-container {
    aspect-ratio: var(--iframe-width) / var(--iframe-height);
    width: 100%;
    /* max-widthは下のメディアクエリで設定 */
}

/* iframe自体のスタイル */
.iframe-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* デスクトップ表示のスタイル（画面幅769px以上） */
@media (min-width: 769px) {
    .iframe-container {
        max-width: var(--iframe-width-px);
    }
}


/* ==========================================================================
   追加・修正CSS：下段メニューとライフイベントリンクのスタイル
   ========================================================================== */

/* 1. 下段メニュー (.lowerMenu1) のスタイル修正 */
.lowerMenu1 {
    display: flex;
    justify-content: center;
    flex-direction: column;
    row-gap: 15px;
}

.lowerMenu1 a {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: #FFF;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s;
    padding-left: 70px;
    position: relative;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-weight: bold;
}

.lowerMenu1 a:hover {
    opacity: 0.8;
}

.lowerMenu1 a::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.lowerMenu1 .lm-bousai::before {
    background-image: url('/img/top/lm-bousai.svg');
}

.lowerMenu1 .lm-faq::before {
    background-image: url('/img/top/lm-faq.svg');
}

.lowerMenu1 .lm-calendar::before {
    background-image: url('/img/top/lm-calendar.svg');
}