button {
  /* buttonのデフォルト値をリセット */
  background-color: transparent;
  border: none;
  cursor: pointer;
  outline: none;
  padding: 0;
  appearance: none;
}
hr {
  margin: 0;
}
p {
  margin: 0;
  cursor: default;
}
a {
  text-decoration: none;
}
ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.c-pointer, .c-pointer * {
  cursor: pointer;
}

.flex {
  display: flex;
}
.flex-c {
  display: flex;
  justify-content: center;
}
.flex-sc {
  display: flex;
  justify-content: space-around;
}
.flex-ac {
  display: flex;
  align-items: center;
}
.flex-cac {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.flex-afe {
  display: flex;
  align-items: flex-end;
}
.disappear {
  display: none !important;
}
.hidden {
  visibility: hidden;
}
.blur {
  filter: blur(6px);
}
.right {
  text-align: right;
}
.center {
  text-align: center;
}
.left {
  text-align: left;
}
.relative {
  position: relative;
}
.absolute {
  position: absolute;
}
.z1 {
  z-index: 1;
}
.z2 {
  z-index: 2;
}
.NP-R, .NP-R button {
  font-family: "UD Digi Kyokasho NP-R", "uddigikyokasho-pro";
}
.N-R, .N-R button {
  font-family: "UD Digi Kyokasho N-R", "uddigikyokasho-pro";
}
.N-B, .N-B button {
  font-family: "UD Digi Kyokasho N-B", "uddigikyokasho-pro";
  line-height: 120%;
}
.NK-R, .NK-R button {
  font-family: "UD Digi Kyokasho NK-R", "uddigikyokasho-pro";
  line-height: 118%;
}

.desktop-hidden, .tl-only, .mb-only {
  display: none;
}

html {
  background-color: rgba(196,154,109,0.5);
}
body {
  max-width: 1018px;
  margin: 0 auto;
  background-color: white;
}

body > img, header, main {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 1018px;
}

.word-space::after {
  content: "\2002"; /* Unicodeで半角スペースの1/4の幅を表す */
  font-size: 5px;;
}

header > .menu > button {
  font-size: 18px;
}

#title {
  display: flex;
  width: -webkit-fill-available;
  margin: 35px 0 70px;
  justify-content: center;
}
#title > img {
  width: 380px;
}

#front {
  background-image: url('../img/bg_photo.jpg');
  background-size: 1018px;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: inherit;
  height: 470px;
}

#search-opts {
  margin: 75px 0 20px 0;
  width: inherit;
  height: 220px;
  background-color: rgba(255,255,255,0.67);
}

#search-opts > p {
  font-size: 25pt;
  line-height: 118px;
}

#search_by_dmg {
  margin-right: 43px;
}

.search-opt {
  width: 220px;
  height: 56px;
  position: relative;
  background-color: #534741;
  color: white;
  border-radius: 12px;
}

.search-opt > p {
  font-size: 26px;
  margin: 20px 0 10px;
}

#search_by_spc.click-open {
  height: fit-content;
}

.mgf-glass {
  position: absolute;
  top: -18%;
  right: -7%;
  width: 36px;
  height: fit-content;
}

#spc_class {
  margin: 9px 20px;
}

.check, .non-check {
  width: 17px;
  margin-bottom: 5px;
}

.check {
  display: none;
}
.non-check {
  display: block;
}
.selected > .check {
  display: block;
}
.selected > .non-check {
  display: none;
}

#bird_spcs {
  margin-top: 9px;
}
#beast_spcs {
  margin-bottom: 3px;
}

/* スマホ画面時の動物種選択 */
#spc_select_mb {
  position: absolute;
  top: 309px;
  z-index: 2;
  background-color: rgba(195, 176, 145, 0.8);
  border: 4px dotted rosybrown;
  border-radius: 3%;
}
#spc_select_mb > p {
  color: cornsilk;
}
#spc_select_mb #spc_class {
    margin: 20px 18px;
}
#spc_select_mb #bird_spcs {
  margin-top: 19px;
  margin-right: 11px;
}
#spc_select_mb #beast_spcs {
  margin-bottom: 3px;
  margin-right: 11px;
}

#order {
  width: 362px;
  height: 97px;
  color: white;
  background-image: url('../img/ellipse_close.png');
  background-repeat: no-repeat;
  display: flex;
  background-size: contain;
  background-position: center;
  flex-direction: column;
  justify-content: center;
}

#order > p {
  font-size:26px;
  padding-top: 1px;
}

#icon_order {
  margin-top: 12px;
}

#order_mail {
  margin-right: 40px;
}

/* #order.switch-over {
  height: 145px;
  background-image: url('../img/ellipse_open.png');
} */

/* .switch-over .hidden {
  visibility: visible;
}
.switch-over .visible {
  visibility: hidden;
} */

/* 被害対策詳細 */
/* 共通 */
.intro {
  margin: 35px 0;
}

.int-title {
  font-size: 27px;
}
.int-detail {
  font-size: 17px;
  margin: 10px 0 0 10px;
}
.damage-title {
  font-size: 23px;
  margin-bottom: 10px;
}
.damage-detail, .ctl-detail {
  margin: 2px 0 0 2px;
}


#damage_ctl {
  width: 560px;
  margin: 0 auto;
}

.tree {
  height: 1008px;
}

img[alt="tree"] {
  margin-left: 9px;
  height: inherit;
  width: 2.5px;
}
img[alt="arrow"] {
  width: 38px;
  height: fit-content;
}
img.last-tree {
  height: 575px
}

.under-tree {
  display: flex;
  flex-direction: column;
}

.under-tree > img {
  width: 500px;
  margin: 10px 0 20px 30px;
}

/* ハト；生活被害×3 農業被害×1 */
#hato #life_damage {
  height: 3216px;
}
#hato #life_damage #damage1 {
  height: 1006;
}
#hato #life_damage #damage2 {
  height: 1100px;
}
#hato #life_damage img.last-tree {
  height: 575px;
}
#hato #agricultural_damage {
  height: 1057px;
}
#hato #agricultural_damage img.last-tree {
  height: 576px;
}
/* コウモリ；生活被害×1 */
#komori #life_damage .tree {
  height: 1130px;
}
#komori #life_damage img.last-tree {
  height: 417px;
}
/* シカ；生活被害×1 農業被害×1 */
#shika #life_damage .tree {
  height: 1280px;
}
#shika #life_damage img.last-tree {
  height: 896px;
}
#shika #agricultural_damage .tree {
  height: 1280px;
}
#shika #agricultural_damage img.last-tree {
  height: 896px;
}
/* クマ；人的被害×1 農業被害×2 */
#kuma #human_damage .tree {
  height: 1280px;
}
#kuma #human_damage img.last-tree {
  height: 896px;
}
#kuma #agricultural_damage .tree {
  height: 1280px;
}
#kuma #agricultural_damage img.last-tree {
  height: 896px;
}

/* 色々やってみたけどダメだった特集 */
#failuer {
  width: 600px;
  margin: 15px;
  border: 10px groove blanchedalmond;
}
#failuer > p {
  font-size: 27px;
  margin: 40px 0 25px;
}

.failuer {
  width: inherit;
  margin-bottom: 30px;
}

.f-icons {
  width: 215px;
  margin-bottom: 15px;
}
.f_icon {
  width: 50px;
}

.f-p {
  width: 535px;
  margin-bottom: 5px;
  font-size: 17px;
  text-align: center;
}
.f-p > p {
  margin-bottom: 25px;
}

.f-bigger-font {
  font-size: 23px;
}

/* 被害で調べる */
.damage-content {
  width: min(407px, 95%);
  margin: 20px auto;
}
.what-damage {
  font-size: min(45px, 10.5vw);
  line-height: 60px;
  color: #968375;
}
.damage-detail1, .damage-detail2{
  font-size: min(16px, 4.4vw);
}
.damage-detail1 {
  margin: 0 10px 0 min(15.8px, 7.5%);
}
.damage-detail2 {
  margin: 10px 10px 20px min(30px, 7.5%);
}
.feces-title {
  display: flex;
  justify-content: center;
  margin: 27px 0 3px;
}
.feces-title > img {
  width: min(50px, 12%);
  height: fit-content;
  margin: 0 10px;
}
.feces-title > p {
  font-size: min(30px, 5.5vw);
  line-height: 50px;
}
.feces-details {
  width: min(525px, 90%);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.feces-details table {
  width: inherit;
  border-spacing: min(12px, 0.8rem);
}
.feces-details td:first-child {
  width: 40px;
}
/* .feces-details td:nth-child(2) {
  width: 320px;
} */
.feces-details > img {
  width: min(483px, 95%);
}

footer {
  padding: 6px 0;
  color: white;
  background-color: #808080;
  display: flex;
  justify-content: center;
}


.office-container > p {
  margin-bottom: 4px;
}

.footer-l {
  margin-right: 10px;
}

.footer-cell {
  margin-bottom: 2px;
}
.add {
  margin-left: 1px;
}


@media screen and (max-width:1023px) {
  body, header, main {
    width: 768px;
  }
  .desktop-hidden, .tl-only {
    display: unset;
  }
  .flex.desktop-hidden, .flex.tl-only {
    display: flex;
  }
  .desktop-only {
    display: none !important;
  }
}

@media screen and (max-width:767px) {
  .mb-only {
    display: unset;
  }
  .flex.mb-only {
    display: flex;
  }
  .mb-hidden, .tl-only {
    display: none !important;
  }
  body, header, main {
    width: -webkit-fill-available;
  }
  #title {
    margin: 15px 0 30px;
  }
  #title > img {
    width: min(320px,56%);
  }
  #front {
    height: 375px;
    background-size: min(777px, 180%);
    background-position: top;
  }
  #search-opts {
    margin: 50px 0 20px 0;
    height: 192px;
  }
  #search_by_dmg {
    margin-right: 37px;
  }
  #search-opts > p {
    font-size: min(25pt, 5.8vw);;
    line-height: 100px;
  }
  .search-opt {
    width: 25%;
    height: min-content;
    border-radius: 22px;
  }
  .search-opt > p {
    font-size: 3vw;
    margin: 8% 0 6%;
  }
  .mgf-glass {
    width: min(30px,21%);
  }
  #failuer {
    width: min(390px,92%);
  }
  #failuer > p {
    font-size: min(22px,5.5vw);
    margin: 36px 0 25px;
  }
  .failuer {
    margin-bottom: 10px;
  }
  .f-p {
    width: 98%;
    font-size: 15px;
  }
  .f-p > p {
    margin-bottom: 17px;
  }
  .f-bigger-font {
    font-size: 17px;
  }
  #order {
    width: 48%;
    height: 13.5%;
  }
  #order > p {
    font-size: min(15.5px,3.6vw);
  }
  .int-title {
    font-size: 22px;
    margin-left: 15px;
  }
  .int-detail{
    font-size: 15px;
    margin: 12px 0 0 10px;
  }
  .damege-ctl {
    margin: 0 5px;
    width: 95%;
  }
  .damage-title {
    font-size: 22px;
    margin: 10px;
  }
  .under-tree > img {
    width: 96%;
  }

  #damage_ctl {
    width: inherit;
  }

}

/* animation */
.twinkling{
	-webkit-animation:twinkle 1.5s ease-in-out infinite alternate;
    -moz-animation:twinkle 1.5s ease-in-out infinite alternate;
    animation:twinkle 1.5s ease-in-out infinite alternate;
}
@-webkit-keyframes twinkle{
    0% {opacity:0.4;}
    100% {opacity:1;}
}
@-moz-keyframes twinkle{
    0% {opacity:0.4;}
    100% {opacity:1;}
}
@keyframes twinkle{
    0% {opacity:0.4;}
    100% {opacity:1;}
}

.zoomIn {
  animation: zoomIn .3s linear;
}
@keyframes zoomIn{
    0% {
        transform: scale(0) translateY(-96px);
        opacity: 0;
    }
    100% {
        transform: scale(1) translateY(0px);
        opacity: 1;
    }
}

.fadeIn {
  animation: fadeIn 0.8s ease-in-out backwards;
}
.fadeOut {
  animation: fadeOut 0.8s ease-in-out backwards;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}
