h2 {
    color: #0066CC;
    text-align: center;
}

/* メインビジュアル */
.main-visual {
    width: 100%;
    height: auto;
    margin-bottom: 80px;
}

.main-visual img {
    width: 100%;
    height: 720px;
    object-fit: cover;
}

/* 緊急のお知らせ */
.urgent-notice {
    max-width: 1100px;
    margin: 5% auto;
    width: 80%;
    font-weight: 500;
    line-height: 21.6px;
    background-color: #FFFFFF;
}

.urgent-notice h2 {
    display: block;
}

.urgent-notice>h2,
.urgent-notice .date,
.urgent-notice .title-container>a>p {
    color: #CB0303;
}

.urgent-notice-list li {
    display: flex;
    gap: 2rem;
    padding: 1rem 0;
	align-items: center;
    justify-content: flex-start;
}

.urgent-notice .date {
    /*flex: 1;*/
}
.urgent-notice .title {
    /*flex: 6;*/
}
.urgent-notice img {
    width: 30px;
}

.urgent-notice .section-title-middle::before {
    content: '';
    background-image: url('../.././images/title-icon/urgent-notice.png');
    display: inline-block;
    background-size: contain;
    margin-right: 1rem;
    width: 35px;
    height: 30.74px;
}

.urgent-notice-list li:not(:last-child){
    border-bottom: 1px dotted #CB0303;
}

/* お知らせ */
.notice-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4%;
    margin-bottom: 5%;
    width: 72vw;
    margin: 3% auto 5%;
}

.notice {
    border: 3px solid #449AD4;
    border-radius: 20px;
    text-align: center;
    padding: 1.5rem;
    background-image: url(../.././images/index/pushpin.png),url(../.././images/index/pushpin.png) ,url(../.././images/index/pushpin.png),url(../.././images/index/pushpin.png);
    background-repeat: no-repeat;
    background-position: 2% 3%, 98% 3%, 2% 97%, 98% 97%;
}

.notice .date,
.notice .title-container>a>p {
    color: #222222;
}

.notice .link-button {
    margin: 2rem auto;
    display: block;
    min-width: 180px;
    max-width: 300px;
    width: 90%;
}

.notice .title-container>a>p:hover {
    color: #0066cc;
}

.news-list {
    margin: 1.5rem 0 2rem;
}

.news-list li {
    display: flex;
	flex-direction: column;
	align-items: flex-start;
    /*gap: 1rem ;*/
    border-bottom: 1px solid #000000;
    text-align: left;
    padding: 1.5rem 0 0.5rem;
}

.title-container a {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    color: #222222;
	justify-content: flex-start;
}

/*.title{
    margin-left: 1rem;
}*/

.item img {
    width: 28px;
    height: 31px;
}

/* 苫田ダムについて */
.about-tomata-dam {
    padding: 5% 0;
    justify-content: center;
    background-color: #ECF5FC;
    text-align: center;
    justify-content: center;
}

.about-tomata-dam p {
    font-size: 1.25rem;
    line-height: 28px;
}

.about-dam .section-title::before {
    content: '';
    background-image: url('../.././images/title-icon/about-dam.png');
    background-size: contain;
    margin-right: 1rem;
    width: 98.12px;
    height: 40px;
    display: inline-block;
}

.about-dam  {
    width: 60vw;
    margin: 0 auto;
}

.about-dam p {
    text-align: left;
    letter-spacing: 0.05em;
    text-decoration-skip-ink: none;
    margin-bottom: 3rem;
}

/* 現在のダム */
.current-dam {
    margin-top: 5%;
}

.current-dam p {
    text-align: center;
}

.current-dam .section-title::before {
    content: '';
    background-image: url('../.././images/title-icon/current-dam.png');
    background-size: contain;
    margin-right: 1rem;
    display: inline-block;
    width: 70px;
    height: 58.65px;
}

.live-camera {
    margin: 0 auto;
    width: 77%;
    position: relative;
    margin-bottom: 1.5%;
}

.live-camera p {
    background-color: #449AD4;
    color: #FFFFFF;
    width: 100%;
    font-family: "Noto Sans JP", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 28px;
    text-align: center;
    text-decoration-skip-ink: none;
    margin-top: -0.25rem;
    position: relative;
    /* padding-right: 1.5rem; */
    display: flex;
    justify-content: center;
    align-items: center;
    /* padding: 1rem 0; */
}

.live-camera img {
    width: 100%;
}

.live-camera-1, 
.live-camera-2 {
    border: 3px solid #449AD4;
    border-radius: 10px;
    width: 20%;
}

.live-camera-1 p::after,
.live-camera-2 p::after {
    content: url("./../../images/button-img/more.png");
    width: 18px;
    height: 18px;
    position: absolute;
    right: 0;
    margin-right: 5%;
}

.live-camera-1 {
    position: absolute;
    left: 0;
    bottom: 0;
    margin-bottom: 10%;
    margin-left: 2%;
    z-index: 2;
}

.live-camera-1::after {
    content: "";
    display: inline-block;
    border-top: 6em solid #449AD4; /* 三角形の高さ */
    border-left: 0.7em solid transparent;
    border-right: 0.7em solid transparent;
    transform: rotate(320deg);
    position: absolute;
    right: 0;
    bottom: 0;
    margin-right: -6%;
    margin-bottom: -20%;
    z-index: -1;
}

.live-camera-2 {
    position: absolute;
    bottom:0;
    right: 0;
    z-index: 2;
    margin-right: 25%;
}

.live-camera-2::before {
    content: "";
    display: inline-block;
    border-top: 10em solid #449AD4; /* 三角形の高さ */
    border-left: 0.7em solid transparent;
    border-right: 0.7em solid transparent;
    transform: rotate(105deg);
    position: absolute;
    left: 0;
    top: 0;
    margin-left: -20%;
    margin-top: -10%;
    z-index: -1;
}

.live-camera-map {
    margin-left: -20%;
}

.live-camera-map img {
    width: 25%;
}

.live-camera>.pc-only {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 38%;
    margin-bottom: -10%;
    margin-right: -5%;
    display: block;
}

.current-dam>.sp-only {
    display: none;
}

.current-dam .link-button {
    margin-top: 20px;
}

/* ピックアップ */
.pickup {
    padding-top: 5%;
    padding-bottom: 5%;
}

.pickup-content {
    border: 3px solid #449AD4;
    border-radius: 20px;
    justify-content: center;
    text-align: center;
    padding: 5%;
    margin: 0 auto;
}

.pickup .section-title::before {
    content: '';
    background-image: url('../.././images/title-icon/pickup.png');
    background-size: contain;
    margin-right: 1rem;
    display: inline-block;
    width: 33.67px;
    height: 55px;
}

.link-list-top-item{
    position: relative;
}

.link-list-top-item a {
    position: absolute;
    left: 50%;
    top: 85%;
    transform: translate(-50%,-50%);
    min-width: 120px;
    width: 80%;
}

.link-list-top-item img {
    height: auto;
    width: 100%;

}

.link-list-center {
    padding: 4% 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.box {
    /* position: relative; */
    width: 17.3%;
    aspect-ratio: 2.2/1;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0px 7px #449AD4;
    background: #449AD4;
    opacity: 1;
    transition: 0.3s;
}
.box:hover {
    opacity: 0.8;
}

.box a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.box p {
    font-family: "Noto Sans JP", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;;
    font-size: 1rem;
    font-weight: 700;
    line-height: 24.52px;
    color: #FFFFFF;
    white-space:nowrap;
}

.multi-line {
    left: 50%;
    top: 70%;
}

.single-line {
    left: 50%;
    top: 85%;
}

.single-line-icon {
    
}

.green {
    box-shadow: 0 0 0px 7px #178D36;
    background: #178D36;
}

.pink {
    box-shadow: 0 0 0px 7px #E31C40;
    background: #E31C40;
}

.purple {
    box-shadow: 0 0 0px 7px #623789;
    background: #623789;
}

.bluegreen {
    box-shadow: 0 0 0px 7px #00A99D;
    background: #00A99D;
}

.bluegreen .banner-icon {
    width: 72px;
    height: 54px;
}

.bluegreen .single-line-icon {

}

.greenyellow {
    box-shadow: 0 0 0px 7px #B9BB00;
    background: #B9BB00;
}

.black {
    box-shadow: 0 0 0px 7px #222222;
    background: #222222;
}

.black a {
    left: 60%;
}

.black .banner-icon {
    width: 30.7px;
    height: 31.5px; 
}

.orange {
    box-shadow: 0 0 0px 7px #F49422;
    background: #F49422;
}

.orange a {
    left: 60%;
}

.orange .banner-icon {
    width: 38.83px;
    height: 50.17px; 
}

.brown {
    box-shadow: 0 0 0px 7px #885A2C;
    background: #885A2C;
}

.brown a {
    left: 60%;
}

.brown .banner-icon {
    width: 50px;
    height: 32.08px;
}

.blue {
    box-shadow: 0 0 0px 7px #0E62A9;
    background: #0E62A9;
}

@media (min-width: 769px) {
    .swiper-button-prev,
    .swiper-button-next {
      display: none;
    }

    .swiper-wrapper {
        margin-top: 4%;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 3%;
    }
}

@media (max-width: 1194px) {
    .link-list-center {
        justify-content: center;
    }
    .box {
        width: 28%;
    }
}

@media (max-width: 1024px) {
    .notice-container {
        width: 85vw;
    }

    .title-container a {
        gap: 0.5rem;
    }

    .news-list .title {
        margin-left: 0;
        display: inline;
    }

    .news-list li {
        flex-direction: column;
        gap: 0.2rem 0;
        align-items: flex-start;
    }

    .news-list li:first-child {
        padding: 0 0 0.5rem;
    }

    .news-list li:not(:first-child) {
        padding: 0.5rem 0 0.5rem;
    }

    .news-list .date {
        margin: 0.5rem 0 0;
    }
    
    .news-list .title-container {
        display:block;
    }

}

@media (max-width: 768px) {
    .main-visual {
        position: relative;
        width: 100vw;
        height: auto;
        /* min-height: 100vh; */
        object-fit: cover;
        overflow: hidden;
		padding-top: 60px;
        margin-bottom: 20px;
    }
    
/*    .main-visual-container {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        height: calc(100vh - 60px);
    }*/
    
    .main-visual-container img {
        height: 100%;
        width: 100%;
        object-fit: cover;
        min-width: 100vw;
    }

    .urgent-notice {
        width: 100%;
        height: auto;
        margin: 0 auto;
        padding: 1% 7%;
/*        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;*/
    }

    .urgent-notice>h2 {
        margin-top: 0.5rem;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .urgent-notice .section-title-middle::before {
        width: 30px;
        height: 26.35px;
        margin-right: 0.5rem;
    }

    .urgent-notice-list li {
        flex-direction: column;
        text-align: left;
        margin-bottom: 1rem;
		gap: 0.2rem 0;
        align-items: flex-start;
    }

    .urgent-notice-list .title-container {
        display:block;
    }

    .urgent-notice-list .title {
        margin-left: 0;
        display: inline;
    }

    .urgent-notice-list img {
        width: 18px;
        height: 20.1px;
    }

    .notice-container {
        width: 100%;
    }

    .notice {
        width: 86%;
        margin: 0 auto;
    }

    .notice h2 {
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .notice-container {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .urgent-notice-list {
        margin: 0.4rem 0 1.5rem;
    }

    .news-list {
        margin: 0.6rem 0 1.5rem;
    }

    .news-list img {
        width: 18px;
        height: 20.1px;
    }

    .about-dam .section-title::before {
        width: 80px;
        height: 32.61px;
        display: block;
        margin: 0 auto 1rem;
    }

    .about-dam {
        width: 86vw;
    }

    .about-dam p{
        font-size: 1rem;
    }
    
    .current-dam {
        margin-top: 80px;
    }

    .current-dam>p {
        text-align: left;
        padding: 0 7%;
        font-size: 1rem;
    }

    .current-dam .section-title::before {
        width: 55px;
        height: 46px;
        display: block;
        margin: 0 auto 1rem;
    }

    .live-camera-1 p::after,
    .live-camera-2 p::after {
        width: 15px;
        height: 15px;
    }

    .live-camera-1, 
    .live-camera-2 {
        width: 55%;
    }

    .live-camera-1 p, 
    .live-camera-2 p {
        font-size: 0.875rem;
    }
    
    .live-camera-1 {
        left: 0;
        top: 0;
        bottom: auto;
        margin-bottom:15%;
        margin-left: -10%;
        margin-top: 40px;
    }
    
    .live-camera-1::after {
        display: none;
    }

    
    .live-camera-2 {
        position: absolute;
        top:0;
        right: 0;
        bottom: auto;
        margin-right: -10%;
        margin-bottom: 10%;
        margin-top: 40px;
    }
    
    .live-camera-2::before {
        border-top: 7em solid #449AD4; /* 三角形の高さ */
        border-left: 0.5em solid transparent;
        border-right: 0.5em solid transparent;
        position: absolute;
        left: 0;
        top: 0;
        margin-left: -20%;
        margin-top: 0;
        transform: rotate(95deg);
        display: none;
    }

    .live-camera-map {
        margin-left: 0;
        padding-top: calc(45vw);
    }

    .live-camera-map img {
        width: 100%;
    }

    .live-camera>.pc-only {
        display: none;
    }
    
    .current-dam>.sp-only {
        display: block;
        width: 65vw;
        margin: 0 auto;
    }

    .pickup .section-title::before {
        width: 20px;
        height: 32.67px;
        margin-right: 0.5rem;
    }

    .link-list-top-item {
        height: auto;
        width: 100%;
    }

    .link-list-top-item a{
        width: 260px;
        height: 40px;
    }

    .link-list-center {
        margin-top: 1rem;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem 1rem;
    }

    .swiper-container {
        margin-left: auto;
        margin-right: auto;
        max-width: 600px;
        position: relative;
    }

    .swiper {
        max-width: 600px;
    }

    .swiper-wrapper {
        justify-content: flex-start;
    }

    .swiper-button-prev,
    .swiper-button-next {
        width: 30px;
        height: 30px;
        background-color: rgba(0, 0, 0, 0.7);
        border-radius: 50%;
    }

    .swiper-button-next{
        right: -15px; /* ボタンの位置 */
    }

    .swiper-button-prev{
        left: -15px; /* ボタンの位置 */
    }

    .swiper-button-next::after{
        content: '';
        width: 0;
        height: 0;
        border-style: solid;
        border-width: 7px 0 7px 10px;
        border-color: transparent transparent transparent #fff;
        top: 0;
        left: 6px;
        bottom: 0;
        margin: auto;
    }

    .swiper-button-prev::after{
        content: '';
        width: 0;
        height: 0;
        border-style: solid;
        border-width: 7px 0 7px 10px;
        border-color: transparent transparent transparent #fff;
        top: 0;
        left: 0;
        margin-right : 0.2rem;
        transform: rotate(180deg);
        
    }

    .link-list-center a {
        font-size: 0.875rem;
    }

    .box {
        width: 92%;
        height: auto;
        aspect-ratio: 2 / 1;
        margin: 0 auto;
    }
    .box p {
        font-size: 0.875rem;
    }

    .notice-container {
        padding-bottom: 3rem;
        margin-bottom: 0;
    }
    
    .about-tomata-dam {
        margin-top: 50px;
        padding-top: 80px !important;
    }

    .about-tomata-dam,
    .pickup {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

@media (max-width: 601px) {
    .link-list-center {
        margin-top: 1rem;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 1rem;
    }
}

@media (max-width: 480px) {

    .link-list-center a {
        font-size: 0.75rem;
    }
    .box p {
        font-size: 0.75rem;
    }

    .urgent-notice .section-title-middle::before {
        width: 23px;
        height: 20px;
        margin-right: 0.5rem;
    }

    .live-camera p {
        font-size: 14px;
        line-height: 1rem;
        padding: 2px 0px;
    }

    .orange a,
    .brown a {
        left: 65%
    }

    .black .banner-icon {
        width: 27px;
        height: auto;
        left: 20%
    }

    .orange .banner-icon {
        width: 32px;
        height: auto;
        left: 25%;
    }

    .brown .banner-icon {
        width: 45px;
        height: auto;
        left: 25%;
    }
    
    .bluegreen .banner-icon {
        width: 60px;
        height: auto;
        left: 22%;
    }
	
}