/* ============================================================
   千歳市の魅力ページ（762_life_chitose）スタイル
   ============================================================ */

/* pc head ---------------------------------------------*/

#chitose .under_title {
    background-image: url(images/chitose/bg_head_chitose.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    height: 230px;
    text-align: center;
}

#chitose .under_title h2 {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 24px;
    color: #fff;
    padding-top: 140px;
    text-shadow: 0 0 10px rgba(0,0,0,.5);
}

/* pc content ---------------------------------------------*/

#chitose_content {
    padding: 80px 0;
}

#chitose_content .container {
    max-width: 1050px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 767: → life_smp.css */

/* section title (bg_title.png bubble) ----------------------*/

.charm .title,
#data .container > .title,
#access .container > .title,
#map .container > .title,
#hazard .container > .title,
#recommend .container > .title {
    position: relative;
    z-index: 1;
    text-align: center;
    margin: 0 auto 40px;
}

.charm .title img,
#data .container > .title img,
#access .container > .title img,
#map .container > .title img,
#hazard .container > .title img,
#recommend .container > .title img {
    width: 310px;
    margin: -70px;
}

.charm .title h3,
#data .container > .title h3,
#access .container > .title h3,
#map .container > .title h3,
#hazard .container > .title h3,
#recommend .container > .title h3 {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 28px;
    color: #008DD7;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

/* charm section gets extra bottom margin */
.charm .title h3 {
    margin-bottom: 80px;
}

/* charm catch copy / intro text (CMS) ---------------------*/

section#charm .charm {
    text-align: center;
}

section#charm .charm h4,
.section-catch {
    font-size: 20px;
    margin: 0 auto 60px;
    line-height: 1.8;
    font-weight: 500;
    text-align: center;
}
.section-catch {
    margin-bottom: 30px;
}

section#charm .charm .intro_txt,
.section-desc {
    font-size: 15px;
    color: #555;
    line-height: 3;
    max-width: 700px;
    margin: 0 auto 60px;
    position: relative;
    z-index: 1;
}

section#charm .charm .intro_txt p {
    margin-bottom: 1.5em;
}

section#charm .charm .intro_txt p:last-child {
    margin-bottom: 0;
}

/* section common -------------------------------------------*/

#chitose_content section {
    padding: 60px 0;
    border-bottom: 1px solid #eee;
}

#chitose_content section:last-child {
    border-bottom: none;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 28px;
    color: #333;
    margin-bottom: 8px;
}

.section-title h3 {
    font-size: 18px;
    color: #555;
    margin-bottom: 8px;
}

.section-title p {
    font-size: 15px;
    color: #666;
}

/* breadcrumb ---------------------------------------------- */

#chitose .breadcrumb {
    background-color: #FCF7F4;
    max-width: none;
    width: 100%;
}

/* page nav -------------------------------------------------*/

#chitose .nav {
    background-color: #FCF7F4;
    width: 100%;
}

#chitose .nav ul {
    display: flex;
    justify-content: space-between;
    list-style: none;
    padding: 30px 0 40px;
    margin: 0 auto;
    font-size: 14px;
    font-weight: 500;
}

#chitose .nav ul li {
    padding: 12px 25px;
    border-right: 1px solid #8AD1D9;
}

#chitose .nav ul li:first-child {
    padding-left: 0;
}

#chitose .nav ul li:last-child {
    border: none;
    padding-right: 0;
}

#chitose .nav ul li a {
    color: #008DD7;
    text-decoration: none;
}

#chitose .nav ul li a:hover {
    text-decoration: underline;
}

/* charm section background ---------------------------------*/

section#charm {
    padding: 0;
    border-bottom: none;
}

section#charm .charm {
    background-image: url(images/chitose/bg_chitosecity.jpg);
    background-repeat: no-repeat;
    background-size: 1830px 125px;
    background-position: bottom;
    padding: 90px 0 150px;
    position: relative;
}

/* 飛行機アニメーションのクリップ専用ラッパー */
.charm .plane-wrapper {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

#charm .popup {
    background-color: #FCF7F4;
    padding: 80px 0;
}

#charm .popup .popup_wrap {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* plane animation */

@keyframes planeAnimation {
    0%   { left: -170px; bottom: 200px; }
    100% { left: calc(100% + 170px); bottom: calc(100% - 170px); }
}

section#charm .charm .plane {
    width: 170px;
    position: absolute;
    left: -170px;
    bottom: 200px;
    z-index: 0;
    pointer-events: none;
    animation: planeAnimation 10s linear 5s infinite;
}

#charm .popup .popup_wrap .popup_intro {
    font-size: 20px;
    line-height: 2;
    padding-bottom: 60px;
    text-align: center;
    color: #333;
}

/* charm-point-list -----------------------------------------*/

.charm-point-list {
    margin-bottom: 20px;
}

.charm-point-list ul {
    display: flex;
    justify-content: space-evenly;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.charm-point-list li {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 170px;
    cursor: pointer;
    padding: 0 0 10px;
    border-radius: 5px;
    background: #fff;
    border: 1px solid #008DD7;
    transition: 0.3s;
    text-align: center;
    position: relative;
    margin: 0 5px 30px;
}

.charm-point-list li:hover,
.charm-point-list li:focus {
    opacity: 0.8;
    outline: 2px solid #008DD7;
}

.charm-point-list li::after {
    content: "";
    background-image: url(images/chitose/icon_more.png);
    background-size: cover;
    width: 56px;
    height: 18px;
    position: absolute;
    bottom: 0;
    right: -1px;
}

.charm-point-list li .point-icon {
    display: block;
    width: 100%;
    height: 48px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left;
}

.charm-point-list li[data-index="0"] .point-icon { background-image: url(images/chitose/icon_point_01.png); }
.charm-point-list li[data-index="1"] .point-icon { background-image: url(images/chitose/icon_point_02.png); }
.charm-point-list li[data-index="2"] .point-icon { background-image: url(images/chitose/icon_point_03.png); }
.charm-point-list li[data-index="3"] .point-icon { background-image: url(images/chitose/icon_point_04.png); }
.charm-point-list li[data-index="4"] .point-icon { background-image: url(images/chitose/icon_point_05.png); }

.charm-point-list li h4 {
    font-size: 16px;
    font-weight: 700;
    color: #008DD7;
    padding: 16px 0;
    margin: 0;
}

.charm-point-list li img:last-child {
    width: 122px;
    height: 106px;
    object-fit: cover;
}

/* charm-modal ----------------------------------------------*/

.charm-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.charm-modal.is-open {
    display: flex;
}

.charm-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.6);
    cursor: pointer;
}

.charm-modal__container {
    position: relative;
    width: 90%;
    max-width: 720px;
    z-index: 1;
}

.charm-modal__content {
    background: #fff;
    border-radius: 8px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 0;
}

.charm-modal__close {
    position: absolute;
    top: -20px;
    right: -15px;
    background-image: url(images/chitose/btn_close.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    border: none;
    width: 44px;
    height: 44px;
    cursor: pointer;
    font-size: 0;
    color: transparent;
    padding: 0;
    z-index: 100;
}

.charm-modal__close:hover { opacity: 0.7; }

.charm-modal__counter {
    position: absolute;
    top: 16px;
    left: 20px;
    font-size: 12px;
    font-weight: 700;
    color: #999;
}

.charm-modal__prev,
.charm-modal__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border: none;
    width: 155px;
    height: 50px;
    font-size: 0;
    color: transparent;
    cursor: pointer;
    z-index: 2;
    transition: opacity .2s;
}

.charm-modal__prev {
    left: -171px;
    background-image: url(images/chitose/btn_prev.png);
}

.charm-modal__next {
    right: -171px;
    background-image: url(images/chitose/btn_next.png);
}

.charm-modal__prev:hover,
.charm-modal__next:hover { opacity: 0.7; }

/* slide inner */

.slide_inner {
    position: relative;
    padding: 90px 0 40px;
}

.slide_inner .icon {
    position: absolute;
    /* left: 50px; */
    top: 0;
    width: 145px;
    height: 80px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left top;
    margin: 0;
}

.charm-modal__slide[data-slide="0"] .icon { background-image: url(images/chitose/icon_point_01.png); }
.charm-modal__slide[data-slide="1"] .icon { background-image: url(images/chitose/icon_point_02.png); }
.charm-modal__slide[data-slide="2"] .icon { background-image: url(images/chitose/icon_point_03.png); }
.charm-modal__slide[data-slide="3"] .icon { background-image: url(images/chitose/icon_point_04.png); }
.charm-modal__slide[data-slide="4"] .icon { background-image: url(images/chitose/icon_point_05.png); }

.slide_inner .box {
    padding: 20px 50px;
}

.slide_inner .wave_box {
    position: relative;
    background-color: #FCF7F4;
    margin: 60px 0;
    padding: 40px 60px;
}

.slide_inner .wave_box::before,
.slide_inner .wave_box::after {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    width: 100%;
}

.slide_inner .wave_box::before {
    top: -60px;
    height: 60px;
    background: url(images/chitose/img_wave_01.png);
    background-size: 100% 60px;
}

.slide_inner .wave_box::after {
    bottom: -60px;
    height: 60px;
    background: url(images/chitose/img_wave_02.png);
    background-size: 100% 60px;
}

.slide_inner .ttl {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.5;
}

.slide_inner .txt {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 16px;
}

.slide_inner .img_box {
    display: flex;
    gap: 12px;
}

.slide_inner .img_box .img {
    flex: 1;
}

.slide_inner .img_box .img img {
    width: 100%;
    border-radius: 6px;
    display: block;
}


/* data section ---------------------------------------------*/

#data .data-pc img {
    width: 100%;
    display: block;
}

#data .data-sp {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 12px;
    flex-wrap: wrap;
}

#data .data-sp li {
    flex: 1 1 calc(50% - 6px);
}

#data .data-sp li img {
    width: 100%;
    display: block;
}

/* access section -------------------------------------------*/

#access .access-list {
    list-style: none;
    padding: 0;
    margin-top: 160px;
}

#access .access-list li {
    display: flex;
    background-color: #F5F5F5;
    position: relative;
}

#access .access-list li .text,
#access .access-list li .img {
    width: 50%;
}

#access .access-list li .text h4 {
    display: inline-block;
    font-size: 24px;
    background-color: #008DD7;
    color: #fff;
    margin-bottom: 5px;
    padding: 3px 6px;
    font-weight: 700;
    line-height: 1.4;
}

#access .access-list li .text p {
    font-size: 12px;
    line-height: 1.8;
    margin-top: 25px;
}

/* access1 */
#access .access-list .access1 {
    padding: 40px 40px 60px;
    margin-bottom: 220px;
    align-items: center;
}

#access .access-list .access1::before {
    content: "";
    background-image: url(images/chitose/icon_access_01.png);
    background-size: cover;
    width: 123px;
    height: 35px;
    position: absolute;
    top: -25px;
    left: 40px;
}

#access .access-list .access1 .img {
    position: absolute;
    right: 0;
    top: -100px;
}

/* access2 */
#access .access-list .access2 {
    padding: 50px 40px 40px;
    margin-bottom: 180px;
    flex-direction: row-reverse;
}

#access .access-list .access2::before {
    content: "";
    background-image: url(images/chitose/icon_access_02.png);
    background-size: cover;
    width: 129px;
    height: 35px;
    position: absolute;
    top: -25px;
    left: 55%;
}

#access .access-list .access2 .text {
    width: 45%;
}

#access .access-list .access2 .img {
    position: absolute;
    left: 44px;
    top: -30px;
    width: 45%;
}

/* access3 */
#access .access-list .access3 {
    padding: 40px 40px;
    margin-bottom: 80px;
    align-items: center;
}

#access .access-list .access3::before {
    content: "";
    background-image: url(images/chitose/icon_access_03.png);
    background-size: cover;
    width: 126px;
    height: 35px;
    position: absolute;
    top: -25px;
    left: 40px;
}

#access .access-list .access3 .img {
    position: absolute;
    right: 20px;
    top: -9%;
    width: 45%;
}

/* hazard section -------------------------------------------*/

section#hazard {
    background-color: #F5F5F5;
}

.hazard-list {
    list-style: none;
    padding: 0;
    margin: 40px 0 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.hazard-list li {
    display: flex;
    flex-direction: column;
}

.hazard-list .btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex: 1;
    position: relative;
    background-color: #fff;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    overflow: hidden;
    transition: opacity 0.2s;
    box-sizing: border-box;
    padding: 20px 25px;
}

.hazard-list .btn:hover {
    opacity: 0.8;
}

/* badge */
.hazard-list .badge {
    position: absolute;
    top: 0;
    left: 0;
    padding: 6px 23px;
    background-color: #008DD7;
    border-radius: 5px 0 5px 0;
    font-size: 12px;
    color: #fff;
    z-index: 1;
}

/* image */
.hazard-list .img {
    flex-shrink: 0;
    width: 107px;
}

.hazard-list .img img {
    width: 107px;
    border-radius: 5px;
    display: block;
}

/* text area (with image) */
.hazard-list .text {
    flex: 1;
    margin-left: 25px;
}

.hazard-list .text h4 {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    margin: 0 0 10px;
    color: #333;
}

.hazard-list .text p {
    font-size: 11px;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* text-only card (no image) */
.hazard-list .text_only {
    flex: 1;
    padding-right: 20px;
}

.hazard-list .text_only h4 {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    margin: 0 0 15px;
    padding-bottom: 15px;
    color: #333;
    border-bottom: 1px solid #8AD1D9;
}

.hazard-list .text_only p {
    font-size: 11px;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* arrow */
.hazard-list .btn::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 40px;
    height: 20px;
    background-image: url(images/common/icon_arrow_corner.png);
    background-size: contain;
    vertical-align: middle;
}

/* recommend section ----------------------------------------*/

.recommend-list {
    list-style: none;
    padding: 0;
    margin: 80px 0 70px;
    display: flex;
    flex-direction: column;
    gap: 120px;
}

.recommend-list li {
    border: 1px solid #008DD7;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    text-align: center;
    position: relative;
}

/* ブランドロゴ・メディア名エリア（一番上・白背景） */
.recommend-list .card-header {
    padding: 12px 16px 12px;
    background: #fff;
    min-height: 20px;
    border-radius: 8px 8px 0 0;
}

.recommend-list .media_logo {
    position: absolute;
    top: -38px;
    left: 50%;
    transform: translateX(-50%);
}
.recommend-list .media_logo img {
    width: 280px;
    object-fit: contain;
}

.recommend-list .card-header h4 {
    font-weight: 500;
    line-height: 1.4;
    margin: 40px 0 0;
    border-radius: 8px;
}

/* コンテンツエリア（画像左・テキスト右の横並びレイアウト） */
.recommend-list .inner {
    display: flex;
    flex-direction: row;
    gap: 30px;
    align-items: flex-start;
    background-color: #FCF7F4;
    padding: 30px 30px 40px;
    flex: 1;
    text-align: left;
    border-radius: 0 0 8px 8px;
}

.recommend-list .inner .img {
    flex-shrink: 0;
}

.recommend-list .inner .img img {
    width: 290px;
    border-radius: 5px;
    display: block;
}

.recommend-list .inner .text {
    flex: 1;
}

.recommend-list .inner .text h5 {
    font-weight: 500;
    color: #333;
    line-height: 1.5;
    margin: 0 0 8px;
}

.recommend-list .inner .text p {
    font-size: 13px;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* リンクボタンエリア（白背景） */
.recommend-list .card-footer {
    padding: 12px 20px 16px;
    text-align: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -35px;
}

.recommend-list .btn_white {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 50px;
    border: 2px solid #2fa8d8;
    border-radius: 20px;
    color: #2fa8d8;
    background-color: #fff;
    font-size: 12px;
    font-weight: 500;
    transition: background .2s, color .2s;
    width: 215px;
    position: relative;
}

.recommend-list .btn_white::after {
    content: '';
    display: inline-block;
    width: 5px;
    height: 10px;
    background-image: url(images/common/icon_arrow_blue.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
    transition: background-image .2s;
    position: absolute;
    right: 15px;
}

.recommend-list .btn_white:hover {
    background: #2fa8d8;
    color: #fff;
}

.recommend-list .btn_white:hover::after {
    background-image: url(images/common/icon_arrow_white.png);
}

/* map pin list */
#map .pin,
ul.pin {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 40px;
    list-style: none;
    padding: 0;
}

#map .pin li,
ul.pin li {
    width: 31%;
    margin-bottom: 30px;
}

#map .pin_title,
ul.pin .pin_title {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #8AD1D9;
}

#map .pin_title img,
ul.pin .pin_title img {
    width: 25px;
    max-width: 25px;
    height: auto;
    flex-shrink: 0;
    margin-right: 15px;
}

#map .pin li h4,
ul.pin li h4 {
    font-size: 14px;
    line-height: 1.8;
    margin: 0;
}

#map .pin li p,
ul.pin li p {
    font-size: 12px;
    line-height: 1.8;
    padding: 15px;
    margin: 0;
}

ul.pin li .red h4,   #map .pin li .red h4   { color: #E65100; }
ul.pin li .orange h4,#map .pin li .orange h4 { color: #F9A825; }
ul.pin li .green h4, #map .pin li .green h4  { color: #2E7D32; }
ul.pin li .blue h4,  #map .pin li .blue h4   { color: #0D47A1; }
ul.pin li .purple h4,#map .pin li .purple h4 { color: #6A1B9A; }
ul.pin li .lime h4,  #map .pin li .lime h4   { color: #827717; }
ul.pin li .gray h4,  #map .pin li .gray h4   { color: #424242; }
ul.pin li .brown h4, #map .pin li .brown h4  { color: #4E342E; }
ul.pin li .forest h4,#map .pin li .forest h4 { color: #1B5E20; }
ul.pin li .black h4, #map .pin li .black h4  { color: #212121; }

/* 767: → life_smp.css */
