@charset "UTF-8";

/* =========================================================
  top
========================================================= */
a[href].more,
.more a[href] {
  border: none;
  box-shadow: 0 0 4px var(--mono-color-5);
}

.more a[href]:hover {
  background-color: var(--mono-color-white);
}

/* mainImage トップ画像
------------------------------------------------ */
#mainImage {
  position: relative;
}

#scrollIcon {
  position: fixed;
  bottom: 32px;
  left: 50%;
  z-index: 1;
  width: 40px;
  height: 44px;
  padding-top: 40px;
  color: var(--mono-color-white);
  text-align: center;
  background: url("/_themes/site/images/ic-scroll.svg") center 0 no-repeat;
  background-size: 24px auto;
  transform: translateX(-50%);
  transition: all .3s ease;
}

#mainImage li:first-child {
  position: relative;
}

#mainImage li:first-child::before {
  position: absolute;
  top: 8%;
  right: 2%;
  width: 70%;
  height: 35%;
  content: "";
  background: url("/_themes/site/images/catchphrase.png") no-repeat right bottom;
  background-size: contain
}

#mainImage img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media only screen and (max-width: 1085px) {
  #mainImage img {
    width: 100%;
    height: 800px;
  }
}

@media only screen and (max-width: 960px) {
  #mainImage li:first-child::before {
    top: 72px;
    right: calc(10% - 120px);
    width: 660px;
  }
}

@media only screen and (max-width: 600px) {
  #mainImage li:first-child::before {
    top: auto;
    right: -60px;
    bottom: 486px;
    left: auto;
    width: calc(340px + 35%);
    height: 210px;
    background-size: contain;
  }
}

/* emergency-docs
----------------------------------------------- */
#docsEmergency {
  display: none;
}

#docsEmergency .pieceContainer {
  position: absolute;
  top: 500px;
  left: 50%;
  z-index: 2;
  width: 100%;
  max-width: 660px;
  margin: 0 auto;
  background-color: var(--mono-color-white);
  transform: translateX(-50%);
}

#docsEmergency .pieceHeader {
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 16px;
  color: var(--mono-color-white);
  background-color: var(--ac-color-red-3);
}

#docsEmergency .pieceBody {
  padding: 0 16px 16px;
}

@media only screen and (max-width: 1200px) {
  #docsEmergency .pieceContainer {
    top: 400px;
  }
}

@media only screen and (max-width: 800px) {
  #docsEmergency .pieceContainer {
    top: 370px;
  }
}

@media only screen and (max-width: 700px) {
  #docsEmergency .pieceContainer {
    width: 90%;
  }
}

@media only screen and (max-width: 575px) {
  #docsEmergency .pieceContainer {
    top: 300px;
  }
}

/* =========================================================
  main
========================================================= */
#main {
  max-width: initial;
}

/* main globalNavi
----------------------------------------------- */
#main #globalNavi .pieceContainer {
  max-width: var(--site-width);
  margin-top: 32px;
  margin-right: auto;
  margin-left: auto;
}

#main #globalNavi .pieceBody {
  /* display: flex; */
}

#main #globalNavi ul.mainMenu {
  position: relative;
  display: flex;
  width: 100%;
}

#main #globalNavi ul.mainMenu > li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  width: calc(100% / 7);
  padding: 0 0 16px;
  border-left: 1px solid var(--mono-color-5);
}

#main #globalNavi ul.mainMenu > li:first-child {
  border-left: none;
}

#main #globalNavi ul.mainMenu > li::after {
  position: absolute;
  bottom: -6px;
  width: 16px;
  height: 16px;
  content: "";
  background: url("/_themes/site/images/navi-icon.svg") no-repeat;
}

#main #globalNavi ul.mainMenu > li > a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 60px;
  padding: 0 16px;
  font-weight: bold;
  color: var(--mono-color-1);
  text-decoration: none;
}

#main #globalNavi ul.mainMenu > li.kanko a span {
  display: block;
  text-align: center;
}

#main #globalNavi ul.mainMenu li:hover {
  background-color: var(--ac-color-blue-10);
  border-radius: 6px 6px 0 0;
}

#main #globalNavi ul.mainMenu li:hover a {
  width: 100%;
  height: 100%;
}

#main #globalNavi ul.mainMenu li ul.subMenu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1;
  display: flex;
  visibility: hidden;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
  padding: 20px 76px;
  border-radius: 6px;
  opacity: 0;
  transition: all 0.2s ease;
}

#main #globalNavi ul.subMenu::before {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: -1;
  width: 100vw;
  height: 100%;
  content: "";
  background: var(--ac-color-blue-10);
  transform: translateX(-50%);
}

#main #globalNavi ul.mainMenu li:hover ul.subMenu {
  visibility: visible;
  list-style-image: url("/_themes/site/images/arrow-black.svg");
  opacity: 1;
}

#main #globalNavi ul.mainMenu ul.subMenu li {
  flex-basis: 20%;
  list-style-type: circle;
}

#main #globalNavi .toggleIcon,
#main #globalNavi ul.mainMenu > li.kanko a span.toggleIcon {
  display: none;
}

@media only screen and (max-width: 1200px) {
  #main #globalNavi {
    margin: 0 3%;
  }
}

@media only screen and (max-width: 960px) {
  #main #globalNavi {
    display: none;
  }
}

/* infoBanner 情報バナー
----------------------------------------------- */
#infoBanner {
  max-width: var(--site-width);
  margin-top: 40px;
  margin-right: auto;
  margin-left: auto;
}

#infoBanner .pieceContainer {
  display: flex;
  justify-content: center;
}

#infoBanner .pieceBody {
  width: 100%;
}

#infoBanner ul {
  display: flex;
  gap: 25px;
  /* width: 100%; */
}

#infoBanner li {
  /* max-width: calc((100% - 25px * 2) / 3); */
}

#infoBanner li a {
  /* display: block;
  width: 100%; */
}

#infoBanner img {
  max-width: 100%;
  height: auto;
}

#infoBanner img:hover {
  opacity: 0.8;
}

@media only screen and (max-width: 1200px) {
  #infoBanner {
    margin: 24px 3% 0;
  }
}

@media only screen and (max-width: 880px) {
  #infoBanner ul {
    display: block;
    text-align: center;
  }
}

@media only screen and (max-width: 575px) {
  #infoBanner {
    margin: 0;
  }

  #infoBanner .pieceBody {
    width: 100%;
  }

  #infoBanner ul {
    display: flex;
    gap: 0;
  }

  #infoBanner li {
    flex:1;
    width: 100%;
  }

  #infoBanner img {
    display: none;
  }

  #infoBanner li a {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    background-repeat: no-repeat;
    background-position: top 0 center;
    background-size: 100% auto;
  }

  #infoBanner li:first-child a {
    background-image: url("/_themes/site/images/sp/bn-kanko.svg");
  }

  #infoBanner li:nth-child(2) a {
    background-image: url("/_themes/site/images/sp/bn-furusato.svg");
  }

  #infoBanner li:last-child a {
    background-image: url("/_themes/site/images/sp/bn-iju.svg");
  }
}

/* slickSlider スライダー
----------------------------------------------- */
#slickSlider {
  margin-top: 40px;
}

#slickSlider .slick-slider {
  position: relative;
  box-sizing: border-box;
  display: block;
  padding: 40px 0 85px;
  touch-action: pan-y;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  background-image: url("/_themes/site/images/background-repeat.png")
}

#slickSlider .pieceBody {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

#slickSlider .slick-initialized {
  display: block;
}

#slickSlider .slick-initialized .slick-slide {
  margin: 0 1.45rem;
}

#slickSlider .slick-initialized .banner a {
  display: flex;
  justify-content: center;
}

.slick-slider .slick-list,
.slick-slider .slick-track {
  transform: translate3d(0, 0, 0);
}

.slick-list {
  position: relative;
  display: block;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

.slick-list:focus {
  outline: none;
}

.slick-list.dragging {
  cursor: pointer;
  cursor: hand;
}

.slick-track {
  position: relative;
  top: 0;
  left: 0;
  margin-right: auto;
  margin-left: auto;
}

.slick-track::after {
  clear: both;
  display: block;
  content: "";
}

.slick-slide {
  float: left;
  display: none;
  height: 100%;
  min-height: 1px;
}

[dir="rtl"] .slick-slide {
  float: right;
}

.slick-slide img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0;
}

.slick-slide img:hover {
  opacity: 0.8;
}

.slick-slide.slick-loading img {
  display: none;
  width: auto;
}

.slick-slide.dragging img {
  pointer-events: none;
}

.slick-initialized .slick-slide {
  display: block;
}

.slick-loading .slick-slide {
  visibility: hidden;
}

.slick-vertical .slick-slide {
  display: block;
  height: auto;
  border: 1px solid transparent;
}

.slick-loading .slick-list {
  background: var(--mono-color-white) url("/_themes/images/ajax-loader.gif") center center
    no-repeat;
}

.slick-prev,
.slick-next {
  position: absolute;
  top: 50%;
  z-index: 100;
  display: block;
  width: 64px;
  height: 64px;
  padding: 0;
  margin-top: -16px;
  font-size: 0;
  background-color: rgb(from var(--mono-color-1) r g b / 80%);
  background-repeat: no-repeat;
  background-position: center center;
  border: 0;
  border-radius: 50%;
  transform: translateY(-50%);
}

.slick-prev {
  left: 20%;
  background-image: url("/_themes/images/arrow-slider_prev.svg");
}

.slick-next {
  right: 20%;
  background-image: url("/_themes/images/arrow-slider_next.svg");
}

.slick-prev:hover,
.slick-prev:focus,
.slick-next:hover,
.slick-next:focus {
  color: transparent;
  opacity: 0.9;
}

.slick-dots {
  position: absolute;
  left: -5px;
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  text-align: center;
  list-style: none;
}

.slick-dots li {
  position: relative;
  display: inline-block;
  padding: 0;
  margin: 0 5px;
  cursor: pointer;
}

.slick-dots li button {
  width: 16px;
  height: 16px;
  overflow: hidden;
  font-size: 0;
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid #595758;
  border-radius: 100%;
}

li.slick-active button {
  background-color: #595758;
}

.slick-control {
  position: absolute;
  bottom: 55px;
  left: 50%;
  display: block;
  margin-left: 66px;
}

.slick-control button {
  width: 26px;
  height: 26px;
  padding: 4px;
  margin: 0;
  overflow: hidden;
  font-size: 0;
  cursor: pointer;
  background: url("/_themes/images/ic-slider_playback.svg") no-repeat center center;
  background-size: 32px 32px;
  border: 0;
  border-radius: 50%;
  -moz-appearance: none;
  -webkit-appearance: none;
}

.slick-control button.active {
  background-image: url("/_themes/images/ic-slider_stop.svg");
}

ul.slick {
  visibility: hidden;
}

@media only screen and (max-width: 1024px) {
  .slick-prev {
    left: 100px;
  }

  .slick-next {
    right: 100px;
  }
}

@media only screen and (max-width: 959px) {
  _:lang(x)::-ms-backdrop,
  #keyvisual {
    margin-bottom: 60px;
  }

  ul.slick {
    max-height: none;
    margin-bottom: 15px;
  }
}

@media only screen and (max-width: 768px) {
  .slick-prev,
  .slick-next {
    width: 44px;
    height: 44px;
    background-size: 16px 16px;
  }

  .slick-prev {
    left: 40px;
  }

  .slick-next {
    right: 40px;
  }
}

@media only screen and (max-width: 575px) {
  #slickSlider {
    margin-top: 0;
  }

  #slickSlider .slick-slider {
    padding: 40px 0 50px;
  }

  #slickSlider .slick-prev,
  #slickSlider .slick-next {
    width: 30px;
    height: 30px;
    background-size: 12px 12px;
  }

  #slickSlider .slick-prev {
    left: 10px;
  }

  #slickSlider .slick-next {
    right: 10px;
  }

  #slickSlider .slick-control {
    bottom: 20px;
  }
}

/* ifUrgent もしもに備えて
----------------------------------------------- */
#main #ifUrgent {
  max-width: var(--site-width);
  margin-top: 80px;
  margin-right: auto;
  margin-left: auto;
}

#main #ifUrgent .pieceContainer {
  display: flex;
  align-items: stretch;
  align-items: center;
  background-color: var(--ac-color-orange-9);
}

#main #ifUrgent .pieceHeader {
  display: flex;
  align-items: center;
  align-self: stretch;
  /* justify-content: center; */
  padding: 16px;
  color: var(--mono-color-white);
  background-color: var(--ac-color-red-3);
}

#main #ifUrgent h2 {
  width: 160px;
  padding: 0 0 0 28px;
  background: url("/_themes/site/images/ic-moshimo.svg") no-repeat;
  background-position: 0 center;
}

#main #ifUrgent h2 img {
  display: none;
}

#main #ifUrgent .pieceBody {
  flex-basis: 80%;
  padding: 16px 8px;
}

#main #ifUrgent ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 44px;
  padding: 0 0 0 16px;
  list-style-image: url("/_themes/site/images/arrow-red.svg");
}

#main #ifUrgent ul li a {
  display: flex;
}

@media only screen and (max-width: 1200px) {
  #main #ifUrgent {
    margin-right: 3%;
    margin-left: 3%;
  }
}

@media only screen and (max-width: 650px) {
  #main #ifUrgent {
    margin-top: 24px;
  }

  #main #ifUrgent .pieceContainer {
    display: block;
  }

  #main #ifUrgent .pieceHeader {
    width: 100%;
  }

  #main #ifUrgent ul li {
    /* width: 170px; */
  }
}

/* recentDocsTab 新着タブ
----------------------------------------------- */
#recentDocsTab {
  margin-top: 80px;
}

#recentDocsTab .pieceContainer {
  border-bottom: 1px solid var(--mono-color-4);
}

#recentDocsTab .tabs {
  position: relative;
  border-bottom: 2px solid var(--ac-color-blue-3);
}

#recentDocsTab .tabs ul {
  display: flex;
  gap: 4px;
  max-width: var(--site-width);
  margin: 0 auto;
  margin-bottom: -2px;
}

#recentDocsTab .tabs li {
  flex: 1;
}

#recentDocsTab .tabs a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 72px;
  color: var(--mono-color-1);
  text-align: center;
  text-decoration: none;
  background-color: var(--mono-color-11);
  border-color: transparent;
  border-style: solid;
  border-width: 2px 2px 0;
  border-radius: 6px 6px 0 0;
}

#recentDocsTab .tabs a::after {
  position: absolute;
  bottom: 0;
  left: -2px;
  width: calc(100% + 4px);
  height: 2px;
  content: "";
  background-color: var(--ac-color-blue-3);
}

#recentDocsTab .tabs .current a,
#recentDocsTab .tabs a:hover,
#recentDocsTab .tabs a:focus {
  position: relative;
  text-decoration: underline;
  text-decoration-thickness: 4px;
  text-decoration-color: var(--ac-color-orange-5);
  text-underline-offset: 8px;
  background-color: var(--mono-color-white);
  border-color: var(--ac-color-blue-3);
  border-style: solid solid none;
  border-width: 2px 2px 0;
}

#recentDocsTab .tabs .current a::after,
#recentDocsTab .tabs a:hover::after,
#recentDocsTab .tabs a:focus::after {
  width: 0;
}

#recentDocsTab .wrapper {
  max-width: var(--site-width);
  padding: 0 2.5% 36px;
  margin: 0 auto;
}

#recentDocsTab .wrapper .content {
  margin: 0 auto;
  margin-top: 20px;
}

#recentDocsTab .wrapper .update_date {
  color: var(--mono-color-2);
}

#recentDocsTab .links > div {
  display: flex;
  flex-direction: row-reverse;
  margin: 4px 0 0;
}

#recentDocsTab .more {
  margin: 0 0 0 124px;
}

@media only screen and (max-width: 1200px) {
  #recentDocsTab .tabs ul {
    margin: 0 3%;
    margin-bottom: -2px;
  }

  #recentDocsTab .wrapper {
    margin: 0 3%;
  }
}

@media only screen and (max-width: 575px) {
  #recentDocsTab {
    margin-top: 24px;
  }

  #recentDocsTab .tabs ul {
    margin: 0 3%;
    margin-bottom: -2px;
  }

  #recentDocsTab .wrapper {
    margin: 0 2%;
  }

  #recentDocsTab .links .more {
    left: 20%;
    margin: 0 0 0 2%;
  }

  #recentDocsTab .links .more a {
    width: 100%;
    max-width: 200px;
  }
}

/* piece(lifeScene) ライフシーン
   piece(popularItems) ご利用ください
   piece(government) 阿波市について
   の背景
----------------------------------------------- */
#lifeScene .pieceContainer::before,
#main #popularItems .pieceContainer::before,
#government > .pieceContainer::before {
  position: absolute;
  bottom: -25%;
  z-index: -1;
  width: 100vw;
  height: 20%;
  content: "";
  background-color: var(--ac-color-yellow-1);
  clip-path: polygon(100% 0, 100% 100%, 50% 50%);
}

#government > .pieceContainer::before {
  bottom: -20%;
}

#lifeScene .pieceContainer::after,
#main #popularItems .pieceContainer::after,
#government > .pieceContainer::after {
  position: absolute;
  top: 45%;
  z-index: -2;
  width: 100vw;
  height: 80%;
  content: "";
  background-color: var(--ac-color-green-3);
  clip-path: polygon(0 0, 100% 0, 100% 75%, 0 100%);
}

#main #popularItems .pieceContainer::after {
  background-color: var(--ac-color-blue-11);
}

#government > .pieceContainer::after {
  top: 40%;
  background-color: var(--ac-color-orange-11);
}

@media only screen and (max-width: 1120px) {
  #government > .pieceContainer::before {
    bottom: -15%;
    height: 5.4%;
    clip-path: polygon(100% 0, 100% 100%, 50% 50%);
  }

  #government > .pieceContainer::after {
    top: 25%;
    height: 90%;
    clip-path: polygon(0 0, 100% 0, 100% 94%, 0 100%);
  }
}

@media only screen and (max-width: 950px) {
  #lifeScene .pieceContainer::before,
  #main #popularItems .pieceContainer::before {
    bottom: -11%;
    height: 10.56%;
    clip-path: polygon(100% 0, 100% 100%, 50% 50%);
  }

  #lifeScene .pieceContainer::after,
  #main #popularItems .pieceContainer::after {
    top: 23%;
    height: 88%;
    clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
  }
}

@media only screen and (max-width: 880px) {
  #government > .pieceContainer::before {
    bottom: -5%;
  }

  #government > .pieceContainer::after {
    top: 15%;
  }
}

@media only screen and (max-width: 660px) {
  #lifeScene .pieceContainer::before,
  #main #popularItems .pieceContainer::before {
    bottom: -10%;
    height: 4.92%;
    clip-path: polygon(100% 0, 100% 100%, 50% 50%);
  }

  #government > .pieceContainer::before {
    bottom: -6%;
    height: 2.85%;
    clip-path: polygon(100% 0, 100% 100%, 50% 50%);
  }

  #lifeScene .pieceContainer::after,
  #main #popularItems .pieceContainer::after {
    top: 28%;
    height: 82%;
    clip-path: polygon(0 0, 100% 0, 100% 94%, 0 100%);
  }

  #government > .pieceContainer::after {
    top: 11%;
    height: 95%;
    clip-path: polygon(0 0, 100% 0, 100% 97%, 0 100%);
  }
}

/* 共通
   piece(lifeScene) ライフシーン
   piece(popularItems) ご利用ください
   governmentOffice 阿波市について上部
----------------------------------------------- */
#lifeScene .pieceHeader,
#main #popularItems .pieceHeader,
#governmentOffice .pieceHeader {
  position: relative;
  max-width: var(--site-width);
  margin: 0 auto;
  text-align: center;
}

#lifeScene .pieceHeader h2,
#main #popularItems .pieceHeader h2,
#governmentOffice .pieceHeader h2 {
  position: relative;
  display: inline-block;
  padding: 0 88px;
  margin: 0 0 32px;
  font-size: 2rem;
}

#lifeScene .pieceHeader h2::before,
#lifeScene .pieceHeader h2::after,
#main #popularItems .pieceHeader h2::before,
#main #popularItems .pieceHeader h2::after,
#governmentOffice .pieceHeader h2::before,
#governmentOffice .pieceHeader h2::after {
  position: absolute;
  top: 50%;
  width: 100px;
  height: 32px;
  content: "";
  background: url("/_themes/site/images/title-icon.svg") no-repeat center;
  transform: translateY(-50%);
}

#lifeScene .pieceHeader h2::before,
#main #popularItems .pieceHeader h2::before,
#governmentOffice .pieceHeader h2::before {
  left: 0;
}

#lifeScene .pieceHeader h2::after,
#main #popularItems .pieceHeader h2::after,
#governmentOffice .pieceHeader h2::after {
  right: 0;
}

#lifeScene .pieceBody,
#main #popularItems .pieceBody,
#governmentOffice .pieceBody,
#information {
  max-width: var(--site-width);
  margin: 0 auto;
}

#lifeScene ul,
#main #popularItems ul,
#governmentOffice ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

#lifeScene li,
#main #popularItems li,
#governmentOffice li {
  position: relative;
  display: inline-block;
  width: calc((100% - 20px * 3) / 4);
}

#lifeScene li a,
#main #popularItems li a,
#governmentOffice a img {
  background-color: var(--mono-color-white);
  border-radius: 8px;
  box-shadow: 0 0 4px var(--mono-color-5);
}

#lifeScene li a,
#main #popularItems li a {
  display: flex;
  width: 100%;
  height: 100%;
  padding: 6% 8%;
  font-size: 1.25rem;
  color: var(--mono-color-1);
  text-decoration: none;
}

#lifeScene li a:hover,
#main #popularItems li a:hover,
#governmentOffice img:hover,
#promoVideo img:hover {
  outline: solid 2px var(--ac-color-blue-3);
  box-shadow: none;
}

@media only screen and (max-width: 1200px) {
  #lifeScene .pieceBody,
  #main #popularItems .pieceBody,
  #governmentOffice .pieceBody,
  #information > .pieceBody {
    margin: 0 3%;
  }
}

@media only screen and (max-width: 950px) {
  #lifeScene li,
  #main #popularItems li {
    width: calc((100% - 20px * 2) / 3);
  }

  #lifeScene .pieceHeader h2,
  #main #popularItems .pieceHeader h2,
  #governmentOffice .pieceHeader h2 {
    padding: 0 72px;
  }

  #lifeScene .pieceHeader h2::before,
  #lifeScene .pieceHeader h2::after,
  #main #popularItems .pieceHeader h2::before,
  #main #popularItems .pieceHeader h2::after,
  #governmentOffice .pieceHeader h2::before,
  #governmentOffice .pieceHeader h2::after {
    width: 80px;
    background-size: 50px;
  }
}

@media only screen and (max-width: 720px) {
  #lifeScene .pieceBody,
  #main #popularItems .pieceBody {
    margin-top: 24px;
  }

  #lifeScene ul,
  #main #popularItems ul {
    gap: 16px;
  }

  #lifeScene li,
  #main #popularItems li {
    width: calc((100% - 20px) / 2);
  }
}

@media only screen and (max-width: 575px) {
  #lifeScene .pieceHeader h2,
  #main #popularItems .pieceHeader h2,
  #governmentOffice .pieceHeader h2 {
    margin: 0;
  }

  #lifeScene .pieceBody,
  #main #popularItems .pieceBody,
  #governmentOffice .pieceBody {
    margin-top: 12px;
  }
}

@media only screen and (min-width: 400px) {
  #lifeScene li a,
  #main #popularItems li a,
  #governmentOffice a img {
    position: relative;
    aspect-ratio: 141 / 100;
  }
}

@media only screen and (max-width: 400px) {
  #lifeScene .pieceHeader h2,
  #main #popularItems .pieceHeader h2,
  #governmentOffice .pieceHeader h2 {
    padding: 0 64px;
    font-size: 24px;
  }

  #lifeScene .pieceHeader h2::before,
  #lifeScene .pieceHeader h2::after,
  #main #popularItems .pieceHeader h2::before,
  #main #popularItems .pieceHeader h2::after,
  #governmentOffice .pieceHeader h2::before,
  #governmentOffice .pieceHeader h2::after {
    width: 60px;
    background-size: 40px;
  }

  #lifeScene li,
  #main #popularItems li {
    min-height: 115px;
  }
}

/* piece(lifeScene) ライフシーン
----------------------------------------------- */
#lifeScene {
  margin-top: 108px;
}

#lifeScene .pieceContainer {
  position: relative;
}

#lifeScene a img {
  position: absolute;
  right: 5%;
  bottom: 5%;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 60%;
}

@media only screen and (max-width: 575px) {
  #lifeScene {
    margin-top: 44px;
  }
}

/* piece(popularItems) ご利用ください
----------------------------------------------- */
#main #popularItems {
  margin-top: 170px;
}

#main #popularItems .pieceContainer {
  position: relative;
}

#main #popularItems .pieceHeader h2 img {
  display: none;
}

#main #popularItems li.gomi a div span:first-child,
#main #popularItems li.noriai a div span:first-child,
#main #popularItems li.reserve a div span:first-child,
#main #popularItems li.library-search a div span:first-child {
  display: block;
}

#main #popularItems li.madoguchi a div {
  display: block;
  flex-direction: row;
}

#main #popularItems li.kurashi a div {
  display: block;
  flex-direction: row;
  flex-wrap: wrap;
}

#main #popularItems li.kurashi a span {
  white-space: nowrap;
}

#main #popularItems li a::after {
  position: absolute;
  content: "";
}

#main #popularItems li.shinsei a::after {
  right: 3%;
  bottom: 10%;
  width: 50%;
  height: 50%;
  background: url("/_themes/site/images/use/ic-shinsei.svg") no-repeat;
  background-size: contain;
}

#main #popularItems li.download a::after {
  right: 5%;
  bottom: 4%;
  width: 35%;
  height: 55%;
  background: url("/_themes/site/images/use/ic-download.svg") no-repeat;
  background-size: contain;
}

#main #popularItems li.gomi a::after {
  right: 5%;
  bottom: 5%;
  width: 50%;
  height: 55%;
  background: url("/_themes/site/images/use/ic-gomi.svg") no-repeat;
  background-size: contain;
}

#main #popularItems li.madoguchi a::after {
  right: 5%;
  bottom: 6%;
  width: 75%;
  height: 60%;
  background: url("/_themes/site/images/use/ic-madoguchi.svg") no-repeat;
  background-size: contain;
}

#main #popularItems li.noriai a::after {
  right: 10%;
  bottom: 9%;
  width: 50%;
  height: 40%;
  background: url("/_themes/site/images/use/ic-noriai.svg") no-repeat;
  background-size: contain;
}

#main #popularItems li.reserve a::after {
  right: 10%;
  bottom: 5%;
  width: 45%;
  height: 60%;
  background: url("/_themes/site/images/use/ic-reserve.svg") no-repeat;
  background-size: contain;
}

#main #popularItems li.kurashi a::after {
  right: 5%;
  bottom: 5%;
  width: 60%;
  height: 60%;
  background: url("/_themes/site/images/use/ic-kurashi.svg") no-repeat;
  background-size: contain;
}

#main #popularItems li.library-search a::after {
  right: 10%;
  bottom: 10%;
  width: 50%;
  height: 55%;
  background: url("/_themes/site/images/use/ic-library_search.svg") no-repeat;
  background-size: contain;
}

#main #popularItems img.external {
  height: 16px;
  margin: 4px 0 0 4px;
}

@media only screen and (max-width: 1110px) {
  #main #popularItems li.gomi a div span:first-child,
  #main #popularItems li.download a div span:first-child {
    display: inline;
  }

  #main #popularItems li.gomi a div span:last-child,
  #main #popularItems li.download a div span:last-child {
    display: block;
  }
}

@media only screen and (max-width: 575px) {
  #main #popularItems {
    margin-top: 112px;
  }

  #main #popularItems img.external {
    width: 14px;
    height: 14px;
  }

  #main #popularItems li.madoguchi a::after {
    width: 60%;
    height: 50%;
  }

  #main #popularItems li.reserve a::after {
    width: 35%;
    height: 50%;
  }
}

@media only screen and (max-width: 440px) {
  #main #popularItems li a div {
    display: block;
  }

  #main #popularItems li a div span {
    font-size: 18px;
  }
}

/* piece(government) 阿波市について
----------------------------------------------- */
#government {
  position: relative;
  margin-top: 180px;
}

@media only screen and (max-width: 575px) {
  #government {
    margin-top: 112px;
  }
}

/* governmentOffice 阿波市について上部
----------------------------------------------- */
#governmentOffice a img {
  width: 100%;
}

#governmentOffice p,
#promoVideo span {
  display: block;
  padding: 4% 0 0;
  margin: 0 auto;
  font-size: 18px;
  text-align: center;
}

@media only screen and (max-width: 880px) {
  #governmentPieceContainer {
    margin-top: 24px;
  }

  #governmentOffice ul {
    gap: 20px;
  }

  #governmentOffice li {
    width: calc((100% - 20px) / 2);
  }
}

@media only screen and (max-width: 575px) {
  #governmentOffice ul {
    gap: 16px;
  }
}

/* information 阿波市について下部
----------------------------------------------- */
#information > .pieceBody {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

#information .piece {
  width: calc((100% - 20px * 3) / 4);
  min-height: 240px;
}

#information .pieceContainer {
  width: 100%;
  background-color: var(--mono-color-white);
}

#information .pieceHeader {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  font-size: 20px;
  background-color: var(--ac-color-red-7);
}

#information > .pieceBody .pieceBody {
  min-height: 180px;
  padding: 16px;
}

#information .piece ul {
  margin: 0 0 4px 16px;
  list-style-image: url("/_themes/site/images/arrow-black.svg");
}

#information .piece li {
  margin-bottom: 4px;
}

@media only screen and (max-width: 1120px) {
  #information .piece {
    width: calc((100% - 20px) / 2);
    height: 240px;
  }

  #information #promoVideo {
    text-align: center;
  }

  #information #promoVideo img {
    max-width: 100%;
  }
}

@media only screen and (max-width: 575px) {
  #information > .pieceBody {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
  }

  #information .piece {
    width: 288px;
    height: auto;
    margin: 0 auto;
  }
}

/* population 人口と世帯数
----------------------------------------------- */
#population table {
  border-spacing: 4px;
  border-collapse: separate;
  border: 0;
}

#population tr {
  flex-basis: 50%;
}

#population th {
  width: 64px;
  font-weight: normal;
  white-space: nowrap;
}

#population td {
  padding: 0 6px;
}

#population br {
  display: none;
}

#population .date p {
  padding: 0 20px 0 0;
  text-align: right;
}

@media only screen and (max-width: 575px) {
  #population tr {
    flex-basis: 100%;
  }
}

/* advertisement 広告
----------------------------------------------- */
#advertisement {
  margin: 0 auto;
  margin-top: 180px;
  margin-bottom: 56px;
  max-width: var(--site-width);
  overflow: hidden;
}

#advertisement .pieceContainer {
  position: relative;
}

#advertisement .upper_text {
  position: relative;
  text-align: center;
}

#advertisement .upper_text h2 {
  position: relative;
  display: inline-block;
  padding: 0 88px;
  margin: 0 0 28px;
  font-size: 2rem;
}

#advertisement ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

#advertisement .lower_text {
  max-width: 1200px;
  padding: 0 16px;
  margin: 0 auto;
  margin-top: 40px;
  text-align: center;
}

@media only screen and (max-width: 575px) {
  #advertisement {
    margin-top: 100px;
  }

  #advertisement .lower_text span {
    display: block;
  }
}
