@charset "UTF-8";

* {
    margin: 0;
    padding: 0;
}

@font-face {
    font-family: 'M_PLUS_Rounded_1c';
    src: url(../fonts/M_PLUS_Rounded_1c/MPLUSRounded1c-Regular.ttf);
}

html {
    scroll-behavior: smooth;
}

/* ヘッダー */
header {
    display: flex;
    margin: 3vw 5vw 0;
}

a {
    display: block;
    color: #000;
    text-decoration: none;
}

/* ヘッダー：ロゴ */
.logo_flex {
    display: flex;
    position: relative;
}

.logo_flex img {
    margin-right: 0.8vw;
    width: 30%;
}

.title h2 {
    position: absolute;
    bottom: 2vw;
    font-size: 110%;
    font-weight: 200;
    font-family: 'M_PLUS_Rounded_1c';
    letter-spacing: 0.5vw;

}

.title h3 {
    position: absolute;
    bottom: 0;
    font-size: 50%;
    font-weight: 200;
    font-family: 'M_PLUS_Rounded_1c';
    letter-spacing: 0.2vw;

}

/* ヘッダー：ナビゲーション */
header nav {
    display: none;
}

/* ハンバーガーメニュー */
.hb_menu_box {
    position: absolute;
    top: 0;
    right: 30px;
    width: 50px;
    height: 50px;
    display: flex;
    text-align: center;
    justify-content: center;
    z-index: 10000;
}

/* ハンバーガーメニューの三本線 */
.hb_menu_box span,
.hb_menu_box span::before,
.hb_menu_box span::after {
    content: "";
    display: block;
    height: 3px;
    width: 45px;
    position: relative;
    background-color: #000;
    border-radius: 10px;
    transition: 0.3s;
}
.hb_menu_box span {
    top: 50px;
}
.hb_menu_box span::before {
    position: absolute;
    bottom: 15px;
    transition: 0.3s;
}
.hb_menu_box span::after {
    position: absolute;
    top: 15px;
    transition: 0.3s;
}

/* チェックボックスを非表示 */
#hb_menu_check {
    display: none;
}

/* チェックボックスを押したときに×にする */
#hb_menu_check:checked ~ .hb_menu_box span {
    background: transparent;
}
#hb_menu_check:checked ~ .hb_menu_box span::before {
    bottom: 0;
    transform: rotate(45deg);
    background-color: #fff;
    transition: 0.3s;
}
#hb_menu_check:checked ~ .hb_menu_box span::after {
    top: 0;
    transform: rotate(-45deg);
    background-color: #fff;
    transition: 0.3s;
}

/* ハンバーガーメニューの中身のメニュー */
.hb_menu_content {
    position: absolute;
    width: 100%;
    height: 70vw;
    top: -70vw;
    left: 0;
    z-index: 1000;
    background-color: #1163AA;
    transition: 0.5s;
}
.hb_menu_content ul {
    margin-top: 5vw;
    padding: 5vw;
}
.hb_menu_content ul li {
    list-style-type: none;
    padding: 8px;
    border-top: 1px solid #fff;
}

.hb_menu_content ul li:last-of-type {
    border-bottom: 1px solid #fff;
}

.hb_menu_content ul li a {
    display: block;
    position: relative;
    padding: 8px;
    width: 100%;
    text-align: center;
    text-decoration: none;
    color: #fff;
    font-size: 2.5vw;
    font-weight: 200;
}

#hb_menu_check:checked ~ .hb_menu_content {
    top: 0;
    left: 0;
}

/* メインヴィジュアル */
main {
    position: relative;
    margin-top: 2vw;
    width: 100%;
    height: 50vw;
    overflow: hidden;
}

.main_img_box {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    z-index: 10;
    animation: slide 18s linear infinite;
}

.main_img_box:nth-child(1) {
    background-image: url(../images/google/7796_Kabushima_cut.jpg);
}

.main_img_box:nth-child(2) {
    background-image: url(../images/google/7528_Sansha\ Taisai\ Festival_cut.jpg);
    animation-delay: 6s;
}

.main_img_box:nth-child(3) {
    background-image: url(../images/google/7248_Hachinohe\ Enburi_cut.jpg);
    animation-delay: 12s;
}

@keyframes slide {
    0% {
        opacity: 0;
        transform : scale(1);
    }
    5% {
        opacity: 1;
    }

    60% {
        opacity: 1;

    }
    80% {
        opacity: 0;
        transform: scale(1.2);
    }
    100% {
        opacity: 0;
        z-index: 0;
    }
}


/* 検索ボックス */
.search_box {
    position: absolute;
    width: 90vw;
    height: 20vw;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50px;
    background-color: #ffffffc9;
    z-index: 100;
}

/* 検索フォーム */
.search_box form {
    margin: 4vw auto 0;
    position: relative;
    box-sizing: border-box;
    border: 0.1vw solid #555;
    padding: 0.5vw 1vw;
    border-radius: 5vw;
    height: 5vw;
    width: 80vw;
    overflow: hidden;
    background-color: #fff;
}

.search_box input[type='text'] {
    width: 100%;
    height: 2vw;
    position: absolute;
    top: 30%;
    left: 3%;
    border: none;
    font-size: 1.8vw;
}

.search_box input[type='text']:focus {
    outline: 0;
}
/* ↑入力するときの黒枠を削除 */

/* 検索ボタン */
.search_box input[type='submit'] {
    cursor: pointer;
    font-family: FontAwesome;
    font-size: 2.5vw;
    border: none;
    background: none;
    color: #3879D9;
    position: absolute;
    width: 5vw;
    height: 5vw;
    right: 1vw;
    top: 0vw;
    outline: none;
}

/* よく検索されているキーワード */
form + p {
    margin: 1.5vw 5vw 0;
    font-size: 2vw;
    font-weight: 200;
    font-family: 'M_PLUS_Rounded_1c';
}

.search_keyword {
    display: flex;
    margin: 1vw auto 2vw;
    justify-content: space-around;
    width: 70%;
}

.search_keyword p {
    transition: 0.3s;
}

.search_keyword p:hover {
    opacity: 0.7;
    transition: 0.3s;
}

.search_keyword p a {
    padding: 0.5vw 0.8vw;
    border-radius: 3vw;
    font-size: 1.8vw;
    font-weight: 200;
    font-family: 'M_PLUS_Rounded_1c';
    background-color: #ffffffa2;
}

/* 八戸市のトピックス */
.news_flexbox {
    display: block;
    margin: 8vw 2vw 0;
}

.news_topics {
    width: 100%;
}

.news_topics h2 {
    position: relative;
    margin-top: 12vw;
    text-align: center;
    letter-spacing: 0.2vw;
    font-size: 3vw;
    font-weight: 200;
    font-family: 'M_PLUS_Rounded_1c';
}

.news_topics h2::before {
    content: '';
    display: inline-block;
    position: absolute;
    top: -4vw;
    left: 20vw;
    width: 12vw;
    height: 12vw;
    background-image: url(../images/google/ikz_pink.png);
    background-size: contain;
    background-repeat: no-repeat;
}

.news_topics:hover h2::before {
    animation: jump 0.2s infinite ease-out alternate;
}
@keyframes jump {
    0%{
        top: -4vw;
    }
    100%{
        top: -6.5vw;
    }
}

/* トピックスの箱 */
.topics_bg {
    margin: 2vw 1vw 0;
    padding: 0.5vw;
    height: 70vw;
    border-radius: 2vw;
    background: rgb(34,193,195);
    background: linear-gradient(194deg, rgba(34,193,195,1) 0%, rgba(0,5,255,1) 100%);
}

.topics_tabs {
    display: flex;
    flex-wrap: wrap;
    margin: 1vw auto 0;
    height: 95%;
    justify-content: space-between;
}

.tab_label {
    margin: 0.5vw 2vw;
    flex: 1;
    position: relative;
    z-index: 1;
    cursor: pointer;
    text-align: center;
    line-height: 1.8;
    color: #fff;
    font-size: 2.2vw;
    font-weight: 200;
    font-family: 'M_PLUS_Rounded_1c';
}

.tab_label:hover {
    text-decoration: underline;
}

/* トピックスの箱の中身 */
.topics_tab_content {
    flex: 100%;
    display: none;
    margin: 2% 2%;
    padding: 0.5vw;
    height: 90%;
    border-radius: 10px;
    background-color: #fff;
}

/* スクロールバーを角丸の内側に */
.topics_tab_content_scroll {
    width: 100%;
    overflow-x: hidden;
}

input[name="tab_switch"] {
    display: none;
}

.topics_tabs input:checked + .tab_label {
    color: #000;
    border-radius: 10px;
    background-color: #ffffffbe;
}

#tab_new:checked ~ #tab_new_content,
#tab_notice:checked ~ #tab_notice_content,
#tab_event:checked ~ #tab_event_content,
#tab_recruit:checked ~ #tab_recruit_content {
    display: block;
}

/* 記事のリスト */
.topics_content {
    margin: 1vw;
    padding: 2vw;
    font-size: 1.8vw;
    font-weight: 200;
    font-family: 'M_PLUS_Rounded_1c';
    border-bottom: 1px solid #999;
}
.topics_content_flexbox {
    display: flex;
}
.topics_content_flexbox time {
    margin-top: auto;
    margin-right: 2vw;
    padding: 0.2vw;
    color: #555;
    font-size: 1.5vw;
    font-weight: 200;
    font-family: 'M_PLUS_Rounded_1c';
}
.topics_content_flexbox p {
    line-height: 1.7;
    font-size: 1.5vw;
    font-weight: 200;
    font-family: 'M_PLUS_Rounded_1c';
}
.category1 {
    margin-top: auto;
    margin-right: 2vw;
    padding: 0.2vw 0.7vw;
    color: #fff;
    border-radius: 0.5vw;
    background-color: blue;
}
.category2 {
    margin-top: auto;
    margin-right: 2vw;
    padding: 0.2vw 0.7vw;
    color: #fff;
    border-radius: 0.5vw;
    background-color: green;
}
.category3 {
    margin-top: auto;
    margin-right: 2vw;
    padding: 0.2vw 0.7vw;
    color: #000000;
    border-radius: 0.5vw;
    background-color: yellow;
}
.topics_content p a {
    margin-top: 0.5vw;
}

/* もっと見る */
.more_flexbox a {
    display: flex;
    margin: 3vw auto 0;
    padding: 0.5vw;
    width: 95%;
    height: 3vw;
    border-radius: 2vw;
    background: rgb(255,158,0);
    background: linear-gradient(307deg, rgba(255,158,0,1) 0%, rgb(255, 0, 0) 100%);
}

.more_flexbox p {
    margin: 0 auto;
    color: #fff;
    line-height: 3vw;
    font-size: 1.8vw;
    font-weight: 600;
    font-family: 'M_PLUS_Rounded_1c';
}

.more_flexbox .arrow_right::before {
    content: '';
    display: inline-block;
    width: 1.5vw;
    height: 1.5vw;
    position: absolute;
    top: 18%;
    left: -27%;
    margin: 0 1vw;
    border-top: 0.5vw solid #f08300;
    border-right: 0.5vw solid #f08300;
    transform: rotate(45deg);
}

.more_flexbox .arrow_right {
    position: relative;
    width: 3vw;
    height: 3vw;    
    border-radius: 2vw;
    background-color: #ffffff;
}

/* SNS */
.news_sns {
    width: 100%;
}

.news_sns h2 {
    margin-top: 12vw;
    margin-bottom: 4vw;
    position: relative;
    text-align: center;
    letter-spacing: 0.2vw;
    font-size: 3vw;
    font-weight: 200;
    font-family: 'M_PLUS_Rounded_1c';
}

.news_sns h2::before {
    content: '';
    display: inline-block;
    position: absolute;
    top: -2vw;
    left: 65vw;
    width: 12vw;
    height: 12vw;
    background-image: url(../images/google/ikz_blue.png);
    background-size: contain;
    background-repeat: no-repeat;
}

.news_sns h2:hover::before {
    animation: jump2 0.15s infinite ease-out alternate;
}
@keyframes jump2 {
    0%{
        top: -2vw;
    }
    100%{
        top: -4vw;
    }
}

.sns_flexbox {
    margin: 0 auto;
    width: 80%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.sns_flexbox:nth-of-type(2) {
    margin-top: 8vw;
}

.sns_icon a {
    text-align: center;
}

.fa-brands {
    width: 25vw;
    height: 25vw;
    line-height: 25vw;
    border: 0.4vw solid #f0ec00;
    border-radius: 20vw;
    font-size: 15vw;
}

.fa-brands:hover {
    border: 0.4vw solid #f000c8;
    transition: 0.3s;
}

.fa-facebook {
    color: #4267B2;
}

.fa-line {
    color: #4cc764;
}

.fa-youtube {
    color: #FF0000;
}

.sns_icon p {
    display: flex;
    padding: 0.3vw;
    justify-content: center;
    text-align: center;
    letter-spacing: 0.1vw;
    font-size: 2vw;
    font-weight: 600;
    font-family: 'M_PLUS_Rounded_1c';
}

/* 目的別で探す */
.infomation {
    margin: 12vw 5vw 0;
}

.infomation h2 {
    text-align: center;
    letter-spacing: 0.2vw;
    font-size: 3vw;
    font-weight: 200;
    font-family: 'M_PLUS_Rounded_1c';
}

.info_flexbox {
    margin-top: 3vw;
    display: block;
}

.infomation h3 {
    margin-top: 8vw;
    text-align: center;
    letter-spacing: 0.2vw;
    font-size: 2.5vw;
    font-weight: 200;
    font-family: 'M_PLUS_Rounded_1c';
}


.infomation p {
    margin-top: 1vw;
    text-align: center;
    font-size: 2vw;
    font-weight: 600;
    font-family: 'M_PLUS_Rounded_1c';
}

/* 情報/サービス */
.info_left {
    width: 100%;
}

.info_left h3 {
    position: relative;
}

.info_left h3::before {
    content: '';
    display: inline-block;
    position: absolute;
    top: -1vw;
    left: 6vw;
    width: 12vw;
    height: 12vw;
    background-image: url(../images/google/ikz_green.png);
    background-size: contain;
    background-repeat: no-repeat;
}

.info_left h3:hover::before {
    animation: jump3 0.1s infinite ease-out alternate;
}
@keyframes jump3 {
    0%{
        top: -1vw;
    }
    100%{
        top: -3vw;
    }
}

.info_content_flexbox {
    display: flex;
    margin: 5vw auto 0;
    flex-wrap: wrap;
    row-gap: 3vw;
    justify-content: space-around;
}


.info_left .info_img_box {
    width: 23vw;
    height: 23vw;
    border-radius: 15vw;
    overflow: hidden;
}

.info_left p {
    color: #e2041b;
}

.info_img_box img {
    margin-left: -0.9vw;
    width: 120%;
}

/* ライフシーン */
.info_right {
    width: 100%;
}

.info_right h3 {
    margin-top: 10vw;
}

.info_right .info_content_flexbox {
    column-gap: 3vw;
    row-gap: 3vw;
}

.info_right .info_content_flexbox:nth-of-type(1) {
    margin-top: 3vw;
}

.info_right .info_img_box {
    width: 18vw;
    height: 18vw;
    border-radius: 15vw;
    overflow: hidden;
    background: rgb(0,255,128);
    background: linear-gradient(307deg, rgba(0,255,128,0.5438550420168067) 0%, rgba(0,232,255,0.48783263305322133) 100%);
    transition: 0.3s;
}


.info_right .info_content:nth-of-type(even) {
    margin-top: 2vw;
}

.info_right img {
    margin-top: -1.5vw;
}

.info_right p {
    color: #1e50a2;
}

.info_content {
    transition: 0.3s;
}

.info_content:hover {
    opacity: 0.7;
    transition: 0.3s;
}

/* 八戸市について */
.about_bg {
    height: 100vw;
    background-image: url(../images/google/7505_Tanesashi\ Coast_blar.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.about {
    margin: 12vw 2vw 0;
    padding: 3vw;
}

.about h2 {
    padding-top: 3vw;
    margin-bottom: 5vw;
    position: relative;
    text-align: center;
    letter-spacing: 0.2vw;
    font-size: 3vw;
    font-weight: 200;
    font-family: 'M_PLUS_Rounded_1c';
}

.about h2::before {
    content: '';
    display: inline-block;
    position: absolute;
    top: 1vw;
    right: 2vw;
    width: 12vw;
    height: 12vw;
    background-image: url(../images/google/ikz_yellow.png);
    background-size: contain;
    background-repeat: no-repeat;
}

.about h2:hover::before {
    animation: jump4 0.1s infinite ease-out alternate;
}
@keyframes jump4 {
    0%{
        top: 1vw;
    }
    100%{
        top: -2vw;
    }
}

.about_flexbox {
    display: grid;
    grid-template-rows: 5vw 15vw;
    justify-content: space-around;
}

.about_content:nth-of-type(1) {
    grid-row: 1;
    grid-column: 1;
}

.about_content:nth-of-type(2) {
    grid-row: 1;
    grid-column: 2;
}

.about_content:nth-of-type(3) {
    margin-top: 5vw;
    grid-row: 2;
    grid-column: 1;
}

.about_content:nth-of-type(4) {
    margin-top: 5vw;
    grid-row: 2;
    grid-column: 2;
}

.about_content {
    transition: 0.3s;
}

.about_content a {
    display: flex;
    padding: 1.5vw;
    width: 30vw;
    height: 3vw;
    border-radius: 3vw;
    background-color: #fff;
}

.about_content a p {
    width: 100%;
    text-align: center;
    margin: 0 0 0 1.7vw;
    color: #3879D9;
    font-size: 2vw;
    font-weight: 200;
    font-family: 'M_PLUS_Rounded_1c';
}

.about_content .arrow_right {
    display: inline-block;
    width: 1.4vw;
    height: 1.2vw;
    margin: 0.7vw 1vw 0;
    border-top: 0.2vw solid #3879D9;
    border-right: 0.2vw solid #3879D9;
    transform: rotate(45deg);
}

.about_content:hover {
    opacity: 0.8;
    transition: 0.3s;
}

/* 人口・世帯数 */
.data_box {
    width: 95%;
    margin: 4vw auto 0;
    border-radius: 3vw;
    background-color: #fff;
}

.data_box h3 {
    padding-top: 2.5vw;
    text-align: center;
    letter-spacing: 0.2vw;
    color: #3879D9;
    font-size: 2vw;
    font-weight: 200;
    font-family: 'M_PLUS_Rounded_1c';
}

.data_flexbox {
    display: flex;
    margin: 2vw 3vw 0;
    padding-bottom: 2vw;
    justify-content: space-around;
}

.data_flexbox:nth-of-type(1) {
    padding-top: 4vw;
    border-top: 1px solid #95ccff;
}

.data_content {
    display: flex;
}

.data_content p:nth-of-type(1) {
    padding: 0.5vw 2vw;
    border-radius: 3vw;
    color: #3879D9;
    font-size: 2vw;
    font-weight: 200;
    font-family: 'M_PLUS_Rounded_1c';
    background-color: #ced9ff7c;
}

.data_content p:nth-of-type(2) {
    font-size: 1.6vw;
    padding: 0.7vw 0.5vw;
}

.data_flexbox+ p {
    padding-bottom: 2vw;
    margin-top: -1vw;
    margin-right: 5vw;
    text-align: right;
    color: #999;
    font-size: 1.6vw;
    font-weight: 200;
    font-family: 'M_PLUS_Rounded_1c';
}

/* フッター */
footer {
    background-image: url(../images/google/hachinohe_in_aomori.png);
    background-size: 40%;
    background-position: 90% 120%;
    background-repeat: no-repeat;
    background-color:#ffffffb3;
    background-blend-mode:lighten;
}

footer nav {
    padding: 2vw 0;
    margin: 0 3vw;
    border-bottom: 1px solid #5555;
}

footer nav ul li:hover a {
    border-bottom: 0.1vw solid #1163AA;
    transition: 0.3s;
}

footer nav ul {
    margin: 0 auto;
    display: flex;
    width: 100%;
    justify-content: space-around;
    list-style-type: none;
}

footer nav ul a {
    font-size: 1.8vw;
    font-weight: 200;
    font-family: 'M_PLUS_Rounded_1c';
    border-bottom: 0.1vw solid transparent;
    transition: 0.3s;
}

.footer_flexbox {
    display: flex;
    padding: 3vw 4vw;
    position: relative;
}

footer img {
    margin: 0;
    width: 15%;
}

.footer_address_box {
    margin-left: 3vw;
    width: 80%;
}

.footer_address_box h3 {
    margin-top: 1vw;
    letter-spacing: 0.2;
    color: #000;
    font-size: 2.5vw;
    font-weight: 200;
    font-family: 'M_PLUS_Rounded_1c';
}


.footer_address_box address {
    margin-top: 2vw;
    margin-bottom: 2vw;
    line-height: 1.8;
    letter-spacing: 0.2;
    font-size: 1.7vw;
    font-weight: 200;
    font-style: normal;
    font-family: 'M_PLUS_Rounded_1c';
}

.top_button {
    position: absolute;
    bottom: 10vw;
    right: 2vw;
    width: 7%;
    height: 7%;
}

.top_button img {
    width: 100%;
    height: 100%;
}

footer p {
    padding: 0.5vw;
    text-align: center;
    color: #fff;
    font-size: 1.8vw;
    font-weight: 200;
    font-family: 'M_PLUS_Rounded_1c';
    background-color: #1163AA;
}