@charset "utf-8";
/*********** kyoutuu ***********/
body{
	font-family:"ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "游ゴシック", "Yu Gothic", "游ゴシック体", "YuGothic", "Meiryo UI", "メイリオ", Meiryo, sans-serif;
}
.clearfix::after {
	content: "";
	display:  block;
	clear: both;
}

#wrapper{
  overflow: hidden;
}

section {
  margin: 70px 40px 0 40px;
}

.sab {
  width: 100vw;
  height: 50vh;
  background-position: center;
  background-size: cover;
  background-image: url(../images/main.jpeg);
  z-index: 999;
  position: relative;
}

/***sction kyoutuu***/
.header {
  padding-bottom: 13px;
  border-bottom: solid 1px #4A65B0;
}

.header h2 {
  font-size: 20px;
  color: #4A65B0;
}

.header p {
  text-align: right;
  font-size: 14px;
  margin-top: -20px;
}

.header p a {
  text-decoration: none;
  display: inline-flex;
  align-items: center; 
  color: #4A65B0;
  transition: color 0.3s;
}

.arrow {
  position: relative;
  display: inline-block;
  width: 25px;
  height: 1px;
  margin-top: 6.4px;
  margin-left: 10px;
  border-radius: 9999px;
  background-color: #4A65B0;
  transition: background-color 0.3s;
}

.arrow::before {
  content: "";
  position: absolute;
  top: calc(50% - 0.5px);
  right: 0;
  width: 10px;
  height: 1px;
  border-radius: 9999px;
  background-color: #4A65B0;
  transform: rotate(45deg);
  transform-origin: calc(100% - 0.5px) 50%;
  transition: background-color 0.3s;
}

.header p a:hover {
  color: #F6C453;
}

.header p a:hover .arrow,
.header p a:hover .arrow::before {
  background-color: #F6C453;
}


/*********** header ************/
header{
  width: 100vw;
  height: 100vh;
  background-position: center;
  background-size: cover;
  background-image: url(../images/main.jpeg);
  z-index: 999;
  position: relative;
}

header::before{
  content:"";
  position:absolute;
  inset:0;
  /* 右→左に向かって透明にフェード */
  background:linear-gradient(
    to left,
    rgba(0,0,0,.26) 0%,
    rgba(0,0,0,.18) 18%,
    rgba(0,0,0,.08) 32%,
    transparent 55%
  );
  pointer-events:none;  /* ← hover/クリックを邪魔しない */
  z-index:0;
}

/* ナビは前面に（片側グラデより上） */
.nav, .menu{ position:relative; z-index:1; }


header h1 {
  padding-top: 40px;
	margin-left: 40px;
  font-size: 20px;
  font-weight: 900;
}

.nav a {
  text-decoration: none;
  color: white;
  padding-bottom: 3px;
  background-image: linear-gradient(#F6C453, #F6C453);
  background-repeat: no-repeat;
  background-position: bottom right;
  background-size: 0 1px;
  transition: background-size 0.3s;
  font-weight: 900;
  text-shadow: 
    0 0 5px rgba(0,0,0,0.6),   /* 周囲ぼかし */
    0 0 10px rgba(0,0,0,0.4); /* 少し広めの影 */
}

.nav a:hover{
  background-position: bottom left;
  background-size: 100% 2px;
}

header nav {
  display: flex;
  justify-content: flex-end;
  padding-right: 40px;
  margin-top: -28px;
}

header nav ul li {
  padding: 10px 0;
}

header nav ul li a {
  font-size: 17px;
}


/*********** hamburgerMenu ************/
/* メニューのスタイル */
.menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 150px;
  height: 100%;
  color: #4A65B0;
  transition: right 0.3s ease; /* スライドインのアニメーション */
  padding: 20px 30px 20px 20px;
  box-sizing: border-box;
  z-index: 30;
  background-color: rgba(255, 255, 255, 0.9);
  transition: none;
}

.menu.open {
  right: 0;
}

.hamburger {
  position: fixed;
  top: 30px;
  right: 30px;
  width: 30px;
  cursor: pointer;
  z-index: 20;
  opacity: 0; 
  display: none; 
  transition: opacity 0.5s ease;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #122A88;
  margin: 5px 0;
  transition: 0.4s;
  border-radius: 3px;
}

/* バツ印に変化するスタイル */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.menu ul {
  list-style-type: none;
  padding: 0;
  margin-top: 80px;
}

.menu li {
  padding: 20px 0;
  border-bottom: 1px solid #122A88;
}

.menu li a {
  color: #122A88;
  text-decoration: none;
  display: block;
  position: relative;
  padding: 0 10px;
  z-index: 1;
}

.menu li a::before {
  position: absolute;
  left: 0;
  width: 0;
  height: 100%;
  content: "";
  background-color: #FFE38E;
  transition: 0.3s;
  z-index: -1; 
}

.menu li a:hover::before {
  width: 100%;
}

/*====== 上に消えるアニメ ======*/
.nav.UpMove, .menu.UpMove, .hamburger.UpMove {
	animation: UpAnime 0.5s forwards;
}

@keyframes UpAnime{
  from {
    opacity: 1;
	  transform: translateY(0);
  }
  to {
    opacity: 0;
	  transform: translateY(-100px);
  }
}

/*====== 下に消えるアニメ ======*/
.nav.DownMove, .menu.DownMove, .hamburger.DownMove {
	animation: DownAnime 0.5s forwards;
}
@keyframes DownAnime{
  from {
  	opacity: 0;
    transform: translateY(-100px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



/*********** footer ************/

#pageTop {
  font-size: 14px;
  text-align: right;
  margin-right: 20px;
  margin-bottom: 15px;
}

#pageTop a{
  display: inline-flex;
  align-items: center; 
  text-decoration: none;
  color: #4A65B0;
}

.arrow-up {
  position: relative;
  display: inline-block;
  width: 1px;
  height: 20px;
  margin-left: 10px;
  border-radius: 9999px;
  background-color: #4A65B0;
}

.arrow-up::before {
  content: "";
  position: absolute;
  top: 0;
  left: calc(50% - 2px);
  width: 1px;
  height: 8px;
  border-radius: 9999px;
  background-color: #4A65B0;
  transform: rotate(45deg);
  transform-origin: 50% 2px;
}

#pageTop a:hover {
  color: #F6C453;
}

#pageTop a:hover .arrow-up,
#pageTop a:hover .arrow-up::before {
  background-color: #F6C453;
}

footer {
  height: 100px;
  border-top: solid 1px #4A65B0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer p {
  color: #4A65B0;
  margin-left: 40px;
}

.copy a {
  text-decoration: none;
  color: #4A65B0;
}

.sns {
  margin-right: 40px;
}

.sns img {
  width: 30px;
  margin-left: 10px;
  filter: brightness(0) saturate(100%) invert(38%) sepia(13%) saturate(2262%) hue-rotate(186deg) brightness(99%) contrast(92%);
}


/*********** works ************/

.work-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
	grid-gap: 50px;
  margin: 70px 20px 0 20px;
}

.work-list li a {
  text-decoration: none;
}

.work-list li img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
  object-fit: scale-down;
}

.work-list li a:hover img {
  transform: scale(1.05);
  box-shadow: 0 0 0 1px #90A7DA;
  border-radius: 7px;
}

.work-list li h3 {
  font-size: 18px;
  color: #3E3E45;
  margin: 20px 5px 0;
}

.work-list li p {
  font-size: 11px;
  color: #90A7DA;
  margin: 10px 5px;
  letter-spacing: 1px;
}



/*********** swiper ************/

.swiper {
  overflow: hidden;
  margin-top: 100px;
}

.swiper-wrapper {
  transition-timing-function: linear;
}

.swiper-slide {
  width: auto !important;
  margin-right: 20px;
}

.swiper-slide img {
  height: 200px;
  width: 200px;
  object-fit: cover;
  display: block;
}



/*********** about,contact ************/

.content {
  display: flex;
  justify-content: space-around;
  margin-top: 90px;
}

.content section{
  width: 50%;
}

.nakami img {
  width: 150px;
}

.nakami {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: center; 
  gap: 20px; 
  margin: 100px 0 150px 0;
}

.nakami p {
  line-height: 1.5;
  color: #3E3E45;
}

.nakami a {
  width: 200px;
  height: 177px;
  text-decoration: none;
  display: flex;     /* 中央寄せ用 */
  justify-content: center;
  align-items: center;
  text-decoration: none;
}

/* ===== ABOUT: 犬の足跡アニメ ===== */
.dog-steps {
  position: relative;
  width: 100%;
  max-width: 200px;           /* 犬画像の幅上限 */
  height: 100%;
  overflow: hidden;
}

.dog-face {
  width: 150px;               /* 犬画像を小さめに */
  height: auto;
  display: block;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  transition: opacity .3s ease;
}
.dog-steps:hover .dog-face { opacity: 0; }

/* 足跡ライン */
.trail {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  gap: 40px;
  pointer-events: none;
  z-index: 2;
  height: 200px;              /* 足跡が収まる高さ */
}

/* 2列目を少し右上へ */
.trail-b {
  left: 20px;
  bottom: 35px;
}

.paw {
  width: 20px;
  height: 20px;
  background: url(../images/inunoashiato.png) center/contain no-repeat;
  opacity: 0;
}

/* 段差で斜めに */
.trail .paw:nth-child(1){ margin-top: 200px; }
.trail .paw:nth-child(2){ margin-top: 160px; }
.trail .paw:nth-child(3){ margin-top: 120px; }
.trail .paw:nth-child(4){ margin-top: 80px;  }
.trail .paw:nth-child(5){ margin-top: 40px;  }
.trail .paw:nth-child(6){ margin-top: 0; }

/* 散歩スピード */
.dog-steps:hover .trail-a .paw {
  animation: stamp 1s ease-out forwards;
}
.dog-steps:hover .trail-a .paw:nth-child(1){ animation-delay: 0.00s; }
.dog-steps:hover .trail-a .paw:nth-child(2){ animation-delay: 0.80s; }
.dog-steps:hover .trail-a .paw:nth-child(3){ animation-delay: 1.60s; }
.dog-steps:hover .trail-a .paw:nth-child(4){ animation-delay: 2.40s; }
.dog-steps:hover .trail-a .paw:nth-child(5){ animation-delay: 3.20s; }
.dog-steps:hover .trail-a .paw:nth-child(6){ animation-delay: 4.00s; }

.dog-steps:hover .trail-b .paw {
  animation: stamp 1s ease-out forwards;
}
.dog-steps:hover .trail-b .paw:nth-child(1){ animation-delay: 0.40s; }
.dog-steps:hover .trail-b .paw:nth-child(2){ animation-delay: 1.20s; }
.dog-steps:hover .trail-b .paw:nth-child(3){ animation-delay: 2.00s; }
.dog-steps:hover .trail-b .paw:nth-child(4){ animation-delay: 2.80s; }
.dog-steps:hover .trail-b .paw:nth-child(5){ animation-delay: 3.60s; }
.dog-steps:hover .trail-b .paw:nth-child(6){ animation-delay: 4.40s; }

@keyframes stamp {
  0%   { opacity: 0; transform: translateY(10px) scale(.85); }
  50%  { opacity: 1; transform: translateY(0) scale(1.05); }
  100% { opacity: 1; transform: translateY(0) scale(1.0); }
}



.plane {
  width: 80px;
  cursor: pointer;
  transform-origin: center; /* 回転の基準を中心に */
  }

/* ホバーでのアニメーション */
.plane:hover {
  animation: fly 3s linear forwards;
}

/* 位置だけ移動 */
@keyframes fly {
  0%   { transform: translate(0, 0); opacity: 1; }
  40%  { transform: translate(50px, -50px); opacity: 0; }
  60%  { transform: translate(-50px, 50px); opacity: 0; }
  100% { transform: translate(0, 0); opacity: 1; }
}




/*********** contact.html ************/
.contact {
  max-width: 700px;
  margin: 0 auto;
  padding: 100px 20px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

label {
  color: #122A88;
  font-size: 16px;
}

input, textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #4A65B0;
  border-radius: 5px;
  margin-bottom: 20px;
  box-sizing: border-box;
}

button {
  padding: 10px 100px;
  background-color: #4A65B0;
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  margin: 0 auto;
  font-size: 16px;
}

button:hover {
  background-color: #fff;
  color: #4A65B0;
  border: 1px solid #4A65B0;
}


.contact.thanks {
  padding: 60px 20px;
  line-height: 2;
  color: #3E3E45;
  text-align: center;
}

.contact.thanks p {
  margin-bottom: 50px;
}

.contact.thanks a {
  padding: 20px 70px;
  text-decoration: none;
  background-color: #4A65B0;
  color: #fff;
  border-radius: 5px;
  font-size: 14px;
}



/*********** about.html ************/

.about {
  display: flex;
  align-items: center; 
  justify-content: space-evenly;
}

.about img {
  width: 200px;
  height: auto;
}

.naiyo {
  margin: 100px 0;
  color: #3E3E45;
}

.naiyo h3 {
  font-size: 18px;
  margin-bottom: 30px;

}

.naiyo a {
  text-decoration: none;
}

.about-text01,.about-text02 {
  margin-bottom: 40px;
  line-height: 200%;
}

.naiyo div {
  margin-top: 50px;
}

.contact-btn {
  color: #fff;
  background-color: #4A65B0;
  border-radius: 7px;
  padding: 20px 50px;
  text-align: center;
}

.contact-btn:hover {
  background-color: #fff;
  color: #4A65B0;
  border: 1px solid #4A65B0;
}


/*********** works.html ************/

.sakuhin {
  margin-bottom: 100px;
}

.category-btn {
  display: flex;
  margin: 50px 0 50px 0;
}

.category-btn li {
  margin-left: 10px;
}

.category-btn li a {
  text-decoration: none;
  border: solid 1px #4A65B0;
  border-radius: 20px;
  color: #122A88;
  padding: 10px 30px;
}

.category-btn li a:hover {
  background-color: #E1E9F8;
  color: #122A88;
}

/*********** 各work page ************/

.work-header {
  background-image: none;
  height: 90px;
}




/*********** responsive ************/
@media screen and (max-width: 767px) {

  img {
    max-width: 100%;
    height: auto;
    display: block;
  }

  .nav ul {
    display: none;
  }

  

  .nav.UpMove,
  .menu.UpMove,
  .hamburger.UpMove,
  .nav.DownMove,
  .menu.DownMove,
  .hamburger.DownMove {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }

  /* スマホ幅では常時表示に固定 */
  .hamburger {
    display: block !important;     /* 初期の display:none を打ち消す */
    opacity: 1 !important;         /* 透明を打ち消す */
    pointer-events: auto;
    position: fixed;
    top: 30px;                      /* 好みで調整 */
    right: 30px;                    /* 好みで調整 */
    z-index: 100;                   /* 既に指定してるけど再掲 */
  }

  .hamburger[style*="display: none"] {
    display: block !important;
  }

  .menu {
    width: 100%; 
    height: 100vh; 
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: center; 
  }

  .menu ul {
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .menu li {
    width: 120%;
    text-align: center;
  }
  
  .work-list {
    grid-template-columns: 1fr;
    margin: 50px 0 0 0;
  }

  .work-list li a:hover img {
    transform: none;
    box-shadow: none;
    border-radius: 0;
  }

  .content {
    display: block;
  }

  .content section{
    width: auto;
  }

  .nakami {
    gap: 10px;
    margin: 50px 0 30px 0;
  }

  .nakami p {
    font-size: 14px;
  }

  #pageTop {
    margin-top: 70px;
  }

  .sns {
    display: flex;
  }

  /****** about.html ******/
  .about {
    justify-content: space-around;
  }

  .naiyo h3 {
    font-size: 16px;
  }

  .naiyo p {
    font-size: 14px;
  }

  /****** contact.html ******/
  button {
    padding: 10px 50px;
  }

  .contact.thanks a {
    padding: 20px 40px;
  }

  /****** works.html ******/
  .category-btn {
    flex-wrap: wrap;
    gap: 30px;
  }

  .category-btn li {
    margin: 0;
  }


}

@media screen and (max-width: 449px) {
 .nakami img {
    width: 100px;
  }

  .dog-steps img {
    width: 80px;
  }

  .nakami a {
    width: 100px;
    height: auto;
  }

  .plane {
    width: 60px;
  }

  /****** about.html ******/
  .about {
    display: block;
  }

  .about .img {
    margin: 2.5rem 0;
  }

  .about img {
    display: block;
    margin: 0 auto;
    width: 200px;
  }

  .naiyo {
    margin-top: 0;
  }

  
}
