@charset "utf-8";
/*
Theme Name: Dog-salon
*/

/* リセット---------------------------------------- */

html {
  /* 
  values:min=1rem,max=2.5rem viewport:min=320px,max=4000px
  推奨値を少し小さくしたもの
  */
  font-size: clamp(1rem, -0.03rem + 1.21vw, 3rem);

  scroll-behavior: smooth;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  padding: 0;
  color: #121212;
  font-family: "Noto Serif JP", serif;
}
img {
  max-width: 100%;
}
a {
  text-decoration: none;
  color: #121212;
}
a:hover {
  opacity: 0.8;
}
ul {
  padding: 0;
  list-style: none;
}
h1,
h2,
h3,
h4,
h5,
h6,
p,
dl,
dt,
dd,
ul,
li {
  margin: 0;
  padding: 0;
}

/* common--------------------------------------------- */
:root {
  --bg-color: palegoldenrod;
  --bg2-color: #f3e6d3;
  --title-deco-color: burlywood;
  --table-color: #f3e6d3;
  --serif-font: "Noto Serif JP", serif;
}
.main {
  padding: clamp(2rem, -1.333rem + 13.33vw, 10rem) 0;
}
.flex-container {
  display: flex;
  justify-content: space-between;
}
.item30 {
  width: 30%;
}
.item40 {
  width: 40%;
}
.item50 {
  width: 50%;
}
.item70 {
  width: 70%;
}
.logo {
  position: relative;
  scale: 0.7;
}
.logo::after {
  content: "サンプルサイトです";
  position: absolute;
  font-size: 1.2rem;
  /* background-color: rgb(0, 197, 197); */
  background-color: hotpink;
  color: #fff;
  padding: 0.3rem 0.5rem;
  width: max-content;
  bottom: -1.5rem;
  left: 12%;
  animation: sample 2s infinite;
}
@keyframes sample {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.title {
  font-size: clamp(2rem, 1.896rem + 0.42vw, 2.25rem);
  margin-bottom: 5rem;
  text-align: center;
  position: relative;
}
.title::after {
  content: "";
  width: 3rem;
  height: 3px;
  background-color: #333;
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
}
.wrapper {
  margin: 0 clamp(0.5rem, -3.458rem + 15.83vw, 10rem);
}
/* header.php(トップページの時）------------------------------ */
#header {
  padding: clamp(1rem, 0.167rem + 3.33vw, 3rem) 2rem;
  text-align: center;
  .main-navigation {
    margin-bottom: 2rem;
  }
  .contact {
    background-color: var(--bg2-color);
    padding: 1rem;
    font-size: 0.9rem;
    & span {
      padding: 0 0.2rem 0 0.5rem;
    }
  }
  .logo {
    margin-bottom: 2rem;
  }
}
/* mainvisual animation ----- */
.anime {
  position: relative;
  width: 100%;
  height: 100vh;
}
.anime li {
  position: absolute;
  width: 100%;
  height: 100vh;
  top: 0;
  right: 0;
  opacity: 0;
  animation: fades 15s infinite;
}
.anime li:nth-child(1) {
  animation-delay: 0s;
}
.anime li:nth-child(2) {
  animation-delay: 5s;
}
.anime li:nth-child(3) {
  animation-delay: 10s;
}
.anime img {
  width: 100%;
  height: 100vh;
  object-fit: cover;
}
@keyframes fades {
  0% {
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  30% {
    opacity: 1;
  }
  45% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
.anime li::after {
  content: "";
  box-shadow: inset 0 0 20px 20px #fff;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
}
/* header.php(トップページ以外の時）-------------------- */
.header {
  display: flex;
  justify-content: space-between;
}
#header-other {
  height: 5rem;
  padding: 0.5rem clamp(1rem, -1.121rem + 4.85vw, 3rem);
  box-shadow: 3px 3px 10px lightgray;
  margin-bottom: 1rem;
  .logo {
    top: -1rem;
  }
  .logo::after {
    left: 100%;
  }
  .nav-menu a {
    margin-left: clamp(1rem, -1.121rem + 4.85vw, 3rem);
  }
  .contact {
    text-align: right;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    & span {
      margin-left: 0.5rem;
    }
  }
}
#header-other.flex-container {
  align-items: center;
  height: 4.5rem;
}
/* footer.php----------------------------------------- */
#footer {
  background-color: var(--bg2-color);
  padding: clamp(2rem, 0.75rem + 5vw, 5rem)
    clamp(1rem, -8.545rem + 21.82vw, 10rem) 0;
  .flex-container {
    margin-bottom: clamp(3rem, 1.333rem + 6.67vw, 7rem);
  }
  .item {
    text-align: left;
  }
  .footer-title {
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }
  & span {
    margin-right: 1rem;
  }
  .map {
    text-align: right;
    & a {
      display: inline-block;
      color: blue;
      transition: 0.3s;
    }
  }
  .map:hover a {
    transform: translateX(1rem);
  }
  .copy {
    text-align: center;
    font-size: 0.8rem;
    padding: 0.5rem 0;
  }
  .logo::after {
    /* background-color: pink; */
    bottom: -3rem;
    left: 0;
  }
}
/* front-page.php------------------------------------- */
#front-page {
  & section {
    margin-bottom: 5rem;
  }
  .about article {
    text-align: center;
    line-height: clamp(2rem, 1.583rem + 1.67vw, 3rem);
  }
  .flow {
    background-color: var(--bg2-color);
    .revers {
      flex-direction: row-reverse;
    }
    .flex-container {
      align-items: center;
    }
    .items {
      margin-bottom: 3rem;
    }
    .item-title {
      font-weight: bold;
      font-size: 1.7rem;
    }
    & img {
      width: 100%;
      height: 25rem;
      object-fit: cover;
      object-position: 5% 50%;
    }
    .number {
      font-size: clamp(2.5rem, 1.164rem + 2.87vw, 3.75rem);
      font-weight: bold;
      color: burlywood;
      font-family: serif;
      font-style: italic;
      margin-right: 1rem;
    }
  }
  .reservation {
    text-align: center;
    .item {
      margin-bottom: 2rem;
    }
  }
  .policy-link {
    color: orangered;
    border-bottom: 1px solid orangered;
  }
}
.button {
  margin-bottom: 2rem;
  a {
    display: inline-block;
    background-color: orangered;
    border: 2px solid orangered;
    color: #fff;
    padding: 0.5rem 2rem;
    transition: 0.3s;
  }
}
.button a:hover {
  background-color: #fff;
  color: orangered;
}
/* page.php------------------------------------------- */

/* page-menu.php-------------------------------------- */
#page-menu {
  .table {
    line-height: 3rem;
    text-align: center;
    width: 100%;
    margin-bottom: 3rem;
  }
  .blank {
    display: none;
  }
  & tr:nth-child(odd) {
    background-color: var(--bg2-color);
  }
  & tbody tr:first-of-type {
    background-color: burlywood;
  }
  .reference {
    border: 5px dotted var(--bg2-color);
    padding: clamp(1rem, -0.163rem + 3.72vw, 3rem);
  }
}
/* page-staff.php------------------------------------- */
#page-staff {
  line-height: 2;
  .flex-container {
    flex-wrap: wrap;
  }
  .image {
    text-align: center;
  }
  & img {
    aspect-ratio: 1/1;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 2rem;
  }
  .item40 {
    margin-bottom: 8rem;
  }
  .name {
    text-align: center;
    font-weight: bold;
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
}
/* page-reservation.php------------------------------- */
#page-reserve {
  .guidance {
    margin-bottom: 3rem;
  }
  .item {
    background-color: orange;
    width: 15%;
    height: auto;
    color: #fff;
    padding: 0.2rem 1rem;
    display: grid;
    place-content: center;
    position: relative;
  }
  .item::after {
    content: "▶";
    position: absolute;
    right: -2.5rem;
    bottom: 1rem;
    color: khaki;
  }
  .guidance .item:last-child::after {
    content: "";
  }
}
/* page-policy.php------------------------------------ */
#page-policy {
  background-image: url(imgs/bg4.png);
  background-repeat: no-repeat;
  background-position: right;
  .item-title {
    margin-bottom: 1rem;
  }
  .item {
    line-height: clamp(1.5rem, 1.083rem + 1.67vw, 2.5rem);
    margin-bottom: 3rem;
  }
}
/* 404.php-------------------------------------------- */
#error-page {
  text-align: center;
  .dog-icon {
    & img {
      width: 6.3rem;
      animation: dog 3s forwards ease-in;
    }
  }
}
@keyframes dog {
  0% {
    transform: translateX(500%);
  }
  100% {
    transform: translateX(0);
  }
}
