/* リセット */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.header {
  background-color: #ffffff;
  width: 100%;
  position: relative;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 16px 30px;
  min-height: 180px;
  background-color: #f9f4cb;
  position: relative;
}

.header-size {
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.title {
  margin-right: auto;
}

.title img {
  width: 60%;
  height: auto;
  display: inline-block;
}

.header-top .title img {
  max-width: 2000px;
  height: auto;
}

.contact {
  background-color: #ead561;
  border: none;
  border-radius: 5px;
  padding: 6px 12px;
  margin-right: 15px;
  font-size: 29px;
  width: 30%;
  cursor: pointer;
  color: #ffffff;
  margin-bottom: 0;
}

.address {
  font-weight: bold;
  font-size: 18px;
  color: #555;
  margin: 0;
  margin-left: auto;
  width: 50%;
}

.tel {
  font-weight: bold;
  font-size: 34px;
  color: #333;
}

.animals {
  position: absolute;
  right: 0;
  top: 123%;
  transform: translateY(calc(-50% + 10px));
  z-index: 10;
  width: 45%;
  min-width: 200px;
  height: auto;
}

.header-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  background-color: #ffffff;
  max-width: 1200px;
  margin: 0 auto;
}

.header-main ul {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  list-style: none;
  margin: 0;
  padding: 10px 0;
}

.header-main li {
  /*padding: 0 20px;*/
  min-height: 95px;
  border-right: 7px dotted #fcebb6;
}
.header-main li:first-child {
  border-left: 7px dotted #fcebb6;
}

.header-main li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-decoration: none;
  color: #f29251;
  font-size: 14px;
}

.header-main li a:hover {
  opacity: 0.7;
}

.header-main li a img {
  width: 50%;
  height: auto;
  margin: 0 auto 4px auto;
  display: block;
}

.header-main span {
  display: block;
  font-size: 13px;
  margin-top: 2px;
  color: #f29251;
  text-align: center;
}

/* サブメニュー */
.header-main li .sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  list-style: none;
  padding: 10px;
  margin: 0;
  white-space: nowrap;
}
.header-main li:hover .sub {
  display: block;
}
.header-main li .sub li {
  border: none;
}
.header-main li .sub li a {
  display: block;
  padding: 5px 10px;
  border: 1px solid #ccc;
  border-radius: 10px;
  margin: 2.5px 0;
  text-decoration: none;
  transition: background-color 0.3s ease;
  background-color: #ffffff;
}
.header-main li .sub li a:hover {
  background-color: #fff;
  opacity: 0.9;
}

.sp-only {
  display: none;
}

.address,
.tel,
.contact {
  transition: all 0.3s ease;
}

.header-main li.toggle-sub {
  position: relative;
}

.header-main li .sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  list-style: none;
  /* padding: 10px; */
  margin: 0;
  white-space: nowrap;
  text-align: center;
}

.header-main li .sub li {
  min-height: auto;
}

.header-main li:hover .sub {
  display: block;
}

/*-----------------------------------------------------*/
/* ノートPC（1025px～1572px） */
/*-----------------------------------------------------*/
@media only screen and (min-width: 1025px) and (max-width: 1572px) {
  .header-top {
    padding: 0 30px;
    min-height: 150px;
  }

  .header-size {
    max-width: 1200px;
    margin: 0 auto;
  }

  .title img {
    width: 50%;
  }

  .contact {
    font-size: 24px;
    padding: 4px 8px;
    margin-right: 10px;
  }

  .address {
    font-size: 16px;
  }

  .tel {
    font-size: 28px;
  }

  .animals {
    width: 35%;
    min-width: 150px;
    top: 112%;
    transform: translateY(calc(-50% + 15px));
  }

  .header-main {
    padding: 12px;
    max-width: 1200px;
    margin: 0 auto;
  }

  .header-main ul {
    padding: 8px 0;
  }

  .header-main li {
    padding: 0 15px;
    border-right: 5px dotted #fcebb6;
    display: flex;
    align-items: center;
  }

  .header-main li:first-child {
    border-left: 5px dotted #fcebb6;
  }

  .header-main li a {
    font-size: 13px;
  }

  .header-main li a img {
    width: 50%;
  }

  .header-main span {
    font-size: 12px;
  }
}

/*-----------------------------------------------------*/
/* タブレット大（841px～1024px） */
/*-----------------------------------------------------*/
@media only screen and (min-width: 841px) and (max-width: 1024px) {
  .contact,
  .address,
  .tel {
    white-space: nowrap;
  }

  .header-top {
    padding: 0 10px;
    min-height: 130px;
  }

  .header-size {
    max-width: 95%;
    margin: 0 auto;
  }

  .title img {
    width: 40%;
  }

  .contact {
    font-size: 20px;
    padding: 4px 6px;
    margin-right: 8px;
  }

  .address {
    font-size: 14px;
  }

  .tel {
    font-size: 24px;
  }

  .animals {
    width: 50%;
    min-width: 120px;
    top: 85%;
    transform: translateY(calc(-50% + 20px));
  }

  .header-main {
    padding: 10px;
    max-width: 95%;
    margin: 0 auto;
  }

  .header-main ul {
    padding: 5px 0;
  }

  .header-main li {
    padding: 0 5px;
    border-right: 5px dotted #fcebb6;
  }

  .header-main li:first-child {
    border-left: 5px dotted #fcebb6;
  }

  .header-main li a {
    font-size: 12px;
  }

  .header-main li a img {
    width: 40%;
  }

  .header-main span {
    font-size: 11px;
  }
}

/*-----------------------------------------------------*/
/* タブレット（479px～840px） */
/*-----------------------------------------------------*/
@media only screen and (min-width: 479px) and (max-width: 840px) {
  .header-top {
    padding: 0 8px;
    min-height: 110px;
  }

  .header-size {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .title img {
    width: 50%;
  }

  .contact {
    font-size: 16px;
    padding: 3px 5px;
    margin-right: 6px;
    white-space: nowrap;
  }

  .address {
    font-size: 12px;
    white-space: nowrap;
  }

  .tel {
    font-size: 18px;
    white-space: nowrap;
  }

  .animals {
    width: 50%;
    min-width: 100px;
    top: 80%;
    transform: translateY(calc(-60% + 30px));
  }

  .header-main {
    padding: 8px;
    max-width: 100%;
    margin: 0 auto;
  }

  .header-main ul {
    display: flex;
    flex-wrap: nowrap;
    padding: 5px 0;
    align-items: stretch;
  }

  .header-main li {
    width: calc(100% / 7);
    text-align: center;
    padding: 0;
    border-right: 3px dotted #fcebb6;
    min-height: auto;
  }

  .header-main li:first-child {
    border-left: 3px dotted #fcebb6;
  }

  .header-main li a {
    font-size: 11px;
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .header-main li a img {
    width: 50%;
    height: auto;
    margin: 0 auto;
  }

  .header-main span {
    font-size: 10px;
    white-space: nowrap;
  }
  .sub {
    position: relative;
  }
  .sub li:first-child {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
  }

  .sub li:last-child {
    position: absolute;
    top: 120%;
    left: 0;
    width: 100%;
  }
}

/*-----------------------------------------------------*/
/* スマホ（～479px） */
/*-----------------------------------------------------*/
@media only screen and (max-width: 479px) {
  .header {
    position: fixed;
    padding-top: 5px;
    z-index: 999;
  }
  .hamburger {
    display: block;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 25px;
    z-index: 101;
  }
  .hamburger span {
    display: block;
    height: 3px;
    background-color: #f29251;
    margin: 4px 0;
    border-radius: 2px;
  }

  .header-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 0;
    background-color: #fff;
  }
  .header-size {
    flex-direction: column;
    align-items: center;
    width: 100%;
    position: relative;
  }

  .header-top .title img {
    width: 50%;
    margin: 5px auto 0;
  }

  .contact {
    display: none;
    font-size: 12px;
    padding: 6px 10px;
    margin: 10px auto;
    white-space: nowrap;
    width: 100%;
  }

  .header-top .address {
    display: none;
    text-align: center;
    font-size: 11px;
    margin: 5px auto;
    white-space: nowrap;
    width: 100%;
  }

  .tel,
  .header-top .tel {
    text-align: center;
    font-size: 14px;
    white-space: nowrap;
    margin-bottom: 8px;
    margin: 8px 0;
  }

  .animals {
    display: none;
    /*display: block;
    width: 100%;
    margin: 0 auto;  
    right: auto;
    top: 115%;
    transform: translateY(-80%);*/
  }

  .header-main {
    width: 100%;
    padding: 0;
  }
  .header-main ul {
    border: 1px solid #ccc;
    display: none;
    flex-direction: column;
    background-color: #f9f4cb;
    position: absolute;
    top: 50px;
    right: 0;
    padding: 0;
    margin: 0;
    z-index: 100;
    width: 100%;
  }
  .header-main.active ul {
    display: flex;
  }
  .header-main li {
    text-align: center;
    border: none;
    min-height: auto;
  }
  .header-main img {
    width: 6%;
    height: auto;
  }
  .header-main a {
    font-size: 10px;
  }
  .header-main span {
    font-size: 12px;
  }
  .header-main ul li {
    list-style: none;
    border-bottom: 1px solid #ccc;
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  .header-main ul li a img {
    display: none;
  }
  .header-main ul li:first-child {
    border-left: none;
  }
  .header-main ul li:last-child {
    border-bottom: none;
  }
  .header-main li.toggle-sub .sub {
    display: none;
  }
  .header-main li.toggle-sub.active .sub {
    display: block;
  }
  .header-main ul li a {
    display: block;
    padding: 15px 40px;
  }
  .header-main ul li a:hover {
    opacity: 0.7;
  }
  .sp-only {
    display: inline;
  }
  .header-main li.toggle-sub > a {
    border-bottom: 1px solid #ccc;
  }
  .header-main li.toggle-sub .sub {
    display: none;
    margin: 0;
    padding: 0;
  }
  .header-main li.toggle-sub.active .sub {
    display: block;
  }
  .header-main li.toggle-sub .sub li {
    display: block;
    width: 100%;
    border-bottom: 1px solid #ccc;
    background-color: #f9f4cb;
  }
  .header-main li.toggle-sub .sub li a {
    border: none;
    border-radius: 0;
    font-size: 12px;
    background-color: #f9f4cb;
  }
}
