@charset "UTF-8";

/*==================================
  1. General - トップ共通
==================================*/
body.is-gyoseiTop {
  background: url(/assets/images/common/texture.jpg) repeat;
}

/* TOPのみ */
.is-gyoseiTop .l-footer {
  margin-top: 120px;
}

@media only screen and (max-width: 767px) {
  .is-gyoseiTop .l-footer {
    margin-top: 60px;
  }
}

/* 左右 */
.p-unitFlex {
  display: flex;
  gap: 60px;
}

.p-unitFlex > div {
  flex: 1;
}

@media only screen and (max-width: 1199px) {
  .p-unitFlex {
    flex-direction: column;
    gap: 30px;
  }
}

/* 白枠 */
.p-unitFrame {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
}

@media only screen and (max-width: 767px) {
  .p-unitFrame {
    padding: 20px;
  }
}

/*
 	1.1 Title - タイトル
====================================*/
.p-gyoseiTtl {
  font-size: 4.2rem;
  font-weight: 700;
}

@media only screen and (max-width: 1199px) {
  .p-gyoseiTtl {
    font-size: 3.6rem;
  }
}

@media only screen and (max-width: 767px) {
  .p-gyoseiTtl {
    font-size: 3.2rem;
  }
}

.p-ttlHeading {
  display: flex;
  align-items: center;
}

/*
 	1.2 Background - 背景調整
====================================*/
.u-bgFrame {
  padding: 80px 0;
}

.u-bgFrame_inr {
  position: relative;
}

.u-bgFrame_inr::before {
  content: "";
  position: absolute;
  z-index: -1;
}

.__green::before {
  top: -80px;
  left: -80px;
  width: calc(100% + 80px * 2);
  height: calc(100% + 80px * 2);
  background: #e2f0eb;
  border-radius: 60px;
}

.__blue::before {
  top: 0;
  right: 0;
  width: 1680px;
  height: 100%;
  background: #e5f1f7;
  border-radius: 60px 0 0 60px;
}

.u-bgFrame_ttl {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
}

@media only screen and (max-width: 1199px) {
  .__green::before {
    border-radius: 0;
  }
}

@media only screen and (max-width: 767px) {
  .u-bgFrame {
    padding: 40px 0;
  }
  .__green::before {
    top: -40px;
    left: -40px;
    width: calc(100% + 40px * 2);
    height: calc(100% + 40px * 2);
  }
  .u-bgFrame_ttl {
    top: -70px;
  }
}

/*
 	1.3 Link - リンク系
====================================*/
.c-bnrList {
  display: grid;
  gap: 40px;
}

.c-bnrList:not(:first-of-type) {
  margin-top: 40px;
}

.c-bnrList a {
  display: block;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

.c-bnrList figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
  /* 角丸 */
  border-radius: 20px;
}

.c-bnrList.c-bnrList__col2 {
  grid-template-columns: repeat(2, 1fr);
}

.c-bnrList.c-bnrList__col3 {
  grid-template-columns: repeat(3, 1fr);
}

.c-bnrList.c-bnrList__col4 {
  grid-template-columns: repeat(4, 1fr);
}

.c-bnrList.c-bnrList__col5 {
  grid-template-columns: repeat(5, 1fr);
}

@media only screen and (min-width: 768px) and (max-width: 1199px) {
  .c-bnrList.c-bnrList__col3.type-l {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .c-bnrList.c-bnrList__col5 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media only screen and (max-width: 767px) {
  .c-bnrList {
    gap: 20px;
  }
  .c-bnrList:not(:first-of-type) {
    margin-top: 20px;
  }
  .c-bnrList.c-bnrList__col2,
  .c-bnrList.c-bnrList__col3 {
    grid-template-columns: repeat(1, 1fr);
  }
  .c-bnrList.c-bnrList__col4,
  .c-bnrList.c-bnrList__col5 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* figcaption */
.c-bnrList figcaption {
  margin-bottom: 20px;

  font-weight: 700;
  letter-spacing: 0.08em;
}

@media only screen and (max-width: 767px) {
  .c-bnrList figcaption {
    margin-bottom: 10px;
  }
}

/*==================================
  2. mainVisuial - トップ画像
==================================*/
.p-mainVisual {
  position: relative;
}

/* CatchCopy */
.p-mainVisual::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28vh;
  max-width: 350px;
  aspect-ratio: 24 / 25;
  background: url(/assets/images/index/catch.svg) no-repeat;
  filter: drop-shadow(0px 2px 3px rgba(61, 61, 61, 0.7));
}

/* Height-adjustment */
.p-mainVisual .slick-slide img {
  height: 70vh;

  width: 100%;
  object-fit: cover;
}

/* slick-adjustment */
.p-mainVisual_fade.slick-dotted.slick-slider {
  margin-bottom: 0;
}

.p-mainVisual_fade .slick-dots,
.p-slick_control {
  position: absolute;
  bottom: 40px;
  display: flex;
  justify-content: flex-end;
  z-index: 2;
}

.p-mainVisual_fade .slick-dots {
  right: 6em;
  width: auto;
  margin-top: 20px;
}

.p-slick_control {
  right: 2em;
  line-height: 1;
}

.p-slick_control > button {
  background: #268060;
  width: calc(1em + 4px);
  height: calc(1em + 4px);
  padding: 2px;

  position: relative;
}

.p-slick_control > button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
}
.p-slick_control > button.i_pause::after {
  background: url(/assets/images/common/i_pause.svg) no-repeat center/cover;
}
.p-slick_control > button.i_play::after {
  background: url(/assets/images/common/i_play.svg) no-repeat center/cover;
}

.p-slick_control > *:not(:first-of-type) {
  margin-left: 10px;
}
.p-slick_control > button span {
  font-size: 0;
}

@media only screen and (max-width: 767px) {
  .p-mainVisual_fade .slick-dots,
  .p-slick_control {
    bottom: 20px;
  }
}

/*==================================
  3. Event - 本日のイベント
==================================*/
.p-topSchedule_bg {
  background: #268060;
  color: #fff;
}

.p-topSchedule_inr {
  width: 100%;
  padding: 10px 0;
}

.p-topSchedule_ttl {
  font-weight: 700;
}

.p-topSchedule_body {
  margin-top: 5px;
}

.p-topSchedule_body a {
  color: inherit;
  /* Kunoji */
  position: relative;
  padding-right: 1.8em;
}

.p-topSchedule_body a::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 4px;
  margin: auto;
  width: 0.75em;
  height: 0.75em;
  border-top: 4px solid;
  border-right: 4px solid;
  transform: rotate(45deg);
  color: #fff;
}

@media only screen and (min-width: 768px) {
  .p-topSchedule_inr {
    display: flex;
    padding: 20px 0;
  }
  .p-topSchedule_ttl {
    flex-shrink: 0;
  }
  /* border-line */
  .p-topSchedule_body {
    position: relative;
    padding-left: calc(1.2em * 2 + 1px);
    margin-top: 0;
  }
  .p-topSchedule_body::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translateY(-50%);
    width: 1px;
    height: 1.4em;
    background: #fff;
    margin-left: 1.2em;
  }
}

/* 一行表示 */
.overtext-parent {
  display: table;
  table-layout: fixed;
  width: 100%;
}

.overtext-child {
  display: table-cell;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* うらはとほろま */
.charaset {
  position: relative;
}

.charaset::after {
  content: "";
  position: absolute;
  left: 20px;
  bottom: calc(100% - 10px);
  width: 18vh;
  max-width: 170px;
  aspect-ratio: 85 / 52;
  background: url(/assets/images/index/charaset.png) no-repeat center/cover;
}

@media only screen and (min-width: 768px) {
  .charaset::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

/*==================================
  4. Easy Search - かんたん検索
==================================*/
@media only screen and (min-width: 1200px) {
  .c-searchList__top {
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
  }
  .c-searchList__top li > a {
    padding: 20px 10px;
    text-align: center;
  }
  .c-searchList__top li > a span {
    padding-bottom: calc(70px + 20px);
    letter-spacing: 0.1em;
  }
  .c-searchList__top li > a span::after {
    top: calc(2em + 10px);
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    aspect-ratio: 1 / 1;
  }
}

@media only screen and (min-width: 768px) and (max-width: 1199px) {
  .c-searchList__top li > a span {
    line-height: 80px;
    padding-left: 80px;
  }
  .c-searchList__top li > a span::after {
    top: 10px;
    left: 10px;
    width: 60px;
    aspect-ratio: 1 / 1;
  }
}

@media only screen and (max-width: 767px) {
  /* Sideと共通 */
  .c-searchList__top li > a span {
    line-height: 60px;
    padding-left: 60px;
  }
  .c-searchList__top li > a span::after {
    top: 10px;
    left: 10px;
    width: 40px;
    aspect-ratio: 1 / 1;
  }
}

/*==================================
  5. SubSite - サブサイト
==================================*/

/*==================================
  6. About - 町について
==================================*/
.p-topInfo_lead {
  width: 560px;
  position: relative;
}

.p-topInfo_lead_ttl {
  position: absolute;
  margin-top: -20%;
}

.p-topInfo_lead_det {
  padding-top: 80px;
}

.c-sentence span {
  display: inline-block;
}

.c-sentence span:not(:first-child) {
  margin-top: 20px;
}

@media only screen and (max-width: 1199px) {
  .p-topInfo_lead {
    width: 100%;
  }
  .p-topInfo_lead_ttl {
    position: inherit;
    margin-top: 0;
    padding-top: calc(50% + 20px);
  }
  .p-topInfo_lead_det {
    padding-top: 40px;
  }
}

@media only screen and (max-width: 767px) {
  .p-topInfo_lead_ttl {
    padding-top: calc(60% + 20px);
  }
  .p-topInfo_lead_det {
    padding-top: 20px;
  }
}

/* 北海道地図 */
.hokkaido {
  position: relative;
}
.hokkaido::before {
  content: "";
  position: absolute;
  top: -2%;
  right: 0;
  width: 58%;
  aspect-ratio: 250 / 189;
  background: url(/assets/images/index/map.png) no-repeat center/cover;
  z-index: -1;
}

@media only screen and (min-width: 768px) and (max-width: 1199px) {
  .hokkaido::before {
    width: 70%;
  }
}

@media only screen and (max-width: 767px) {
  .hokkaido::before {
    width: 90%;
  }
}

/* 人口 */
.p-topInfo_circle {
  position: relative;
  margin: 0 auto;
  width: 450px;
  padding-bottom: 450px;
}

.p-topInfo_circle::before,
.p-topInfo_circle::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  aspect-ratio: 1 / 1;
  z-index: -1;
}
.p-topInfo_circle::before {
  background: #0076ad;
  border-radius: 50%;
}
.p-topInfo_circle::after {
  background: url(/assets/images/index/deco.svg) no-repeat center/cover;
}

.p-topInfo_circle_deco::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 22%;
  aspect-ratio: 5 / 6;
  background: url(/assets/images/index/uraha.png) no-repeat center/cover;
}

@media only screen and (max-width: 767px) {
  .p-topInfo_circle {
    width: 100%;
    padding-bottom: 100%;
  }
}

.p-topInfo_circle_inr {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  text-align: center;
  color: #fff;
}

.p-topInfo_circle_ttl {
  font-weight: 700;
}

.p-topInfo_circle_ttl > span {
  display: inline-block;
  margin-left: 0.25em;
}

.p-topInfo_circle_def {
  display: flex;
  justify-content: center;
}

.p-topInfo_circle_def dt {
  width: 5em;
}

.p-topInfo_circle_def_ttl {
  display: inline-block;
  background: #fff;
  color: #0076ad;
  border-radius: 9999px;
  width: 100%;
}

.p-topInfo_circle_def dd {
  margin-left: 1em;
}

.p-topInfo_circle_def dd span {
  font-weight: 700;
}

.p-topInfo_circle_def_num {
  line-height: 1;
}

.p-topInfo_circle_pop {
  font-size: 1.6rem;
  margin-top: 10px;
}

/* バナー */
[class^="ai"] {
  position: relative;
  display: inline-block;
}

.ai01::after {
  background: url(/assets/images/index/ai01.svg) no-repeat center/cover;
}
.ai02::after {
  background: url(/assets/images/index/ai02.svg) no-repeat center/cover;
}
.ai03::after {
  background: url(/assets/images/index/ai03.svg) no-repeat center/cover;
}
.ai04::after {
  background: url(/assets/images/index/ai04.svg) no-repeat center/cover;
}

.p-topAbout_icon li > a {
  border-radius: 20px;
  font-weight: 700;

  background: #fff;
  color: inherit;
  padding: 20px 10px;
  text-align: center;
}

.p-topAbout_icon li > a span {
  padding-bottom: calc(70px + 20px);
  letter-spacing: 0.1em;
}

.p-topAbout_icon li > a span::after {
  content: "";
  position: absolute;
  top: calc(2em + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  aspect-ratio: 4 / 3;
}

.p-topAbout_link li > a {
  border-radius: 20px;
  font-weight: 700;

  text-decoration: none;
  background: #268060;
  color: #fff;
  padding: 20px;
}

.p-topAbout_link li > a span {
  display: inline-block;
  width: 100%;
}
.p-topAbout_link li > a span::before {
  left: auto;
  right: 4px;
}

/*==================================
  7. Information - 新着情報
==================================*/
.p-topNews_rss {
  display: inline-block;
  margin-left: 40px;
}

.p-topNews_rss img {
  width: 40px;
}

.p-topNews_frame {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
}

@media only screen and (max-width: 767px) {
  .p-topNews_rss {
    margin-left: 20px;
  }
  .p-topNews_rss img {
    width: 32px;
  }
  .p-topNews_frame {
    padding: 20px;
  }
}

/* topNews - 高さ固定 */
.c-newsList--hFix {
  height: 370px;
  overflow-y: auto;
  margin-bottom: 0;
}
.c-newsList--hFix2 {
  height: 100%;
  overflow-y: auto;
  margin-bottom: 0;
}

.c-newsList_btn {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

/* 更新情報～広報 */
.p-topNews_pub {
  height: 370px;
  display: flex;
  align-items: flex-end;
}

.p-topNews_pubList {
  width: 100%;
  position: relative;
  padding-top: calc((1 / 4 * 100%) + 40px);
}

.p-topNews_pubList::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  aspect-ratio: 4 / 1;
  background: url(/assets/images/index/public.svg) no-repeat center/cover;
}

.p-topNews_pubList li {
  border-top: 1px solid #dedede;
}
.p-topNews_pubList li:last-child {
  border-bottom: 1px solid #dedede;
}

.p-topNews_pubList li > a {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 30px 0;
  font-size: 2.2rem;
  font-weight: 700;
}

.p-topNews_pubList li > a span {
  display: inline-block;
  width: 100%;
}

.p-topNews_pubList li > a span::before {
  left: auto;
  right: 4px;
  border-color: #268060;
}

@media only screen and (max-width: 1199px) {
  .p-topNews_pub {
    height: auto;
  }
  .p-topNews_pubList li > a {
    padding: 20px 0;
    font-size: 1.8rem;
  }
}

@media only screen and (max-width: 767px) {
  .p-topNews_pubList {
    padding-top: calc((1 / 4 * 100%) + 20px);
  }
}

/*==================================
  8. Social - SNS
==================================*/
.mov-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
}
.mov-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.fb-container {
  width: 100%;
}

@media only screen and (max-width: 767px) {
  .fb-container {
    max-width: 500px;
  }
}

.p-topSocial_btn a {
  text-decoration: none;
  color: inherit;
  background: #fff;
  padding: 40px;
  border-radius: 20px;
}

@media only screen and (max-width: 767px) {
  .p-topSocial_btn a {
    padding: 20px;
  }
}

.p-topSocial_ttl {
  font-weight: 700;
  position: relative;
  line-height: 60px;
  padding-left: calc(60px + 16px);
}
.p-topSocial_ttl::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  aspect-ratio: 1 / 1;
}

.sns_youtube::before {
  background: url(/assets/images/index/sns_youtube.svg) no-repeat center/cover;
}
.sns_facebook::before {
  background: url(/assets/images/index/sns_facebook.svg) no-repeat center/cover;
}
.sns_line::before {
  background: url(/assets/images/index/sns_line.svg) no-repeat center/cover;
}
.sns_twitter::before {
  background: url(/assets/images/index/sns_twitter.svg) no-repeat center/cover;
}
.sns_instagram::before {
  background: url(/assets/images/index/sns_instagram.svg) no-repeat center/cover;
}

/*==================================
  9. AdSense - 広告
==================================*/
.p-topAd_bnr a {
  padding: 10px;
  background: #fff;
}

/* 250528 広報Urahoro追記 */
.p-public {
  display: flex;
  gap: 40px;
}
.p-public_link {
  flex: 1;
}
.p-public_linkItem {
  border-top: 1px solid #dedede;
}
.p-public_linkItem:last-of-type {
  border-bottom: 1px solid #dedede;
}
.p-public_linkItem a {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 30px 0;
  font-size: 2.2rem;
  font-weight: 700;
}
.p-public_linkItem > a span {
  display: inline-block;
  width: 100%;
}
.p-public_linkItem > a span::before {
  left: auto;
  right: 4px;
  border-color: #268060;
}
.p-public_cover {
  max-width: 150px;
  margin: 0 auto;
}
@media only screen and (min-width: 768px) and (max-width: 1199px) {
  .p-topNews_pubList {
    padding-top: calc((1 / 4 * 70%) + 40px);
  }
  .p-topNews_pubList::before {
    width: 70%;
    left: 50%;
    transform: translateX(-50%);
  }
}
@media only screen and (max-width: 767px) {
  .p-public {
    flex-direction: column-reverse;
    gap: 20px;
  }
}