@charset "UTF-8";

/* *{border:red solid 1px;} */

/* 基本 */
html{
  scroll-padding-top: 60px;
  scroll-behavior: smooth;
}

body{
  margin: 0;
  padding: 0;
  color: #6D6D6D;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 300;
}

h1,h2,h3,h4,h5,p,ul,figure{
  margin: 0;
  padding: 0;
}

h2{
  font-size: 32px;
  font-family: "Jura", sans-serif;
  font-weight: 300;
  text-align: center;
  padding: 60px 0;
}

section{
}

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

a:hover{
  filter: brightness(90%)contrast(120%);
}


/* 横幅と左右の余白 */
.w-container{
  width: min(85%,1620px);
  margin: auto;
}

/* ページ先頭へ戻る */
#pagetop{
  border-radius: 50%;
  height: 55px;
  width: 55px;
  background-color: #faf2e3;
  position: fixed;
  right: 15px;
  bottom: 15px;
  z-index: 100;
  opacity: 0.9;
  display: flex;
  justify-content: center;
  align-items: center;
}

#pagetop:hover{
  background-color: #d8cdb9;
}

#page_inner{
  height: 15px;
  width: 15px;
  border-top: 3px solid #fff;
  border-right: 3px solid #fff;
  transform: translate(0,20%) rotate(-45deg);

}


/* ヘッダーナビ */
.header{
  position: -webkit-sticky;
  position:         sticky;
  z-index: 1;
  top: 0;
}

.header-inner{
  padding: 30px 0;
  background-color: rgba(255,255,255,0.85);

}

.nav{
  margin-top: 20px;

}

.nav-inner ul{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.nav-inner li{
  list-style: none;
  font-size: clamp(18px,5vw,24px);
  font-family: "Jura", sans-serif;
}

.nav-inner a{
  text-decoration: none;
  color: #6D6D6D;

}

@media(min-width:768px){
  .nav-inner ul{
    gap: 85px;
  }

}

/* ヒーロー */
.hero{
  height: 85vh;
  background-image: url(img/hero.jpg);
  background-position: center;
  background-size: cover;
}

.hero-inner{
  display: grid;
  justify-content: center;
  align-content: end;
  height: 100%;
}

.hero h1{
  font-family: "Nothing You Could Do", cursive;
  font-size: 32px;
  font-weight: 500;
  font-style: normal;
  color: #968a76;
  line-height: 40px;
  text-align: center;

}

.catch{
  color: #61594d;
  text-align: center;
  line-height: 36px;
  padding-bottom: 12vh;
  font-size: clamp(12px,1.6vw,14px);
  font-weight: 300;
  min-height: 0vw;
}


/* 制作一覧 */
.works{
  padding: 0 0 160px;
}

.works-container{
  display: grid;
  grid-template-columns: repeat(1,1fr);
  gap: 100px;
}

.works img{
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;

}

@supports not (aspect-ratio: 4 / 3){
  .works img{
    height: 250px;

  }
}

.box{
  box-shadow: 1px 1px 5px #6D6D6D;
}

.works a{
  display: block;
  text-decoration: none;
  color: #6D6D6D;

}

.works h3{
  margin: 1em 0 0.5em;
  font-size: clamp(14px,2vw,16px);
  font-weight: 300;
  min-height: 0vw;
}

.works p{
  font-size: clamp(12px,1.6vw,14px);
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 300;
  min-height: 0vw;
}

.more{
  padding-top: 0.3em;
}

@media(min-width:768px){
  .works-container{
    grid-template-columns: repeat(3,1fr);
    gap: 75px;
  }

}

/* 自己紹介&お問い合わせ */
.about{
  background-image: url(img/bg.jpg);
  height: 100%;
  background-size: cover;

}

.about-container{
  display: block;
  text-align: center;
  padding-bottom: 50px;
}

.about-container p,.contact-container p{
  font-size: clamp(12px,1.6vw,16px);
  font-weight: 300;
  min-height: 0vw;
  line-height: 3em;

}

.about-img{
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;

}

.icon{
  width: 125px;
  height: 100%;

}

.name{
  width: 110px;
  position: absolute;
  top: 105px;

}

.name-txt{
  color: #ccbca0;
  padding-top: 2.5em;

}

.about-txt{
  padding-top: 3em;

}

.shikaku{
  padding: 70px 0;

}

.shikaku img{
  width: 70px;
  height: 100%;
  padding: 0 8px 10px;

}

.shikaku p{
  font-size: clamp(9px,1.6vw,12px);
  font-weight: 300;
  min-height: 0vw;
  line-height: 1.5em;

}

.contact-container{
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 35px;
  padding-bottom: 140px;

}

.sns a{
  font-size: 30px;
  color: #a5a5a5;

}

/* === 「TOPイメージの想い」ボタン === */
.open-btn {
  display: inline-block;
  padding: 10px 28px;
  background: transparent;
  border: 1px solid #c2b49a;
  border-radius: 2px;
  color: #6d6d6d;
  font-size: clamp(13px, 1.5vw, 15px);
  font-weight: 300;
  letter-spacing: 0.05em;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease-in-out;
  font-family: "Noto Sans JP", sans-serif;
}

.open-btn::before,
.open-btn::after {
  content: '';
  position: absolute;
  background-color: #c2b49a;
  transition: all 0.3s ease;
}

.open-btn::before {
  bottom: -5px;
  right: -5px;
  width: 100%;
  height: 1px;
}

.open-btn::after {
  top: 5px;
  right: -5px;
  width: 1px;
  height: 100%;
}

.open-btn:hover::before {
  width: 0;
}

.open-btn:hover::after {
  height: 0;
}

.open-btn:hover {
  background: #F8ECD6;
  color: #5c5c5c;
}

@media(min-width:768px){
  .open-btn{
    max-width: 400px;
    margin: 0 auto;

  }

}

/* ==== ポップアップ背景 ==== */
.popup-overlay {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(242, 236, 225, 0.8);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1000;
}

/* 表示時 */
.popup-overlay.active {
  display: flex;
  opacity: 1;
}

/* ==== ポップアップ本体 ==== */
/* popup overlay（表示の切り替えを display ではなく visibility にする） */
.popup-overlay {
  position: fixed;
  inset: 0;
  display: flex;               /* 常にflex（不可視時は pointer-events:none / visibility:hidden で操作不能に） */
  justify-content: center;
  align-items: center;
  background: rgba(242,236,225,0); /* 初期は透明に */
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: background 0.45s ease, opacity 0.45s ease, visibility 0s linear 0.45s;
  z-index: 1000;
}

/* アクティブ時 */
.popup-overlay.active {
  background: rgba(242,236,225,0.8);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: background 0.45s ease, opacity 0.45s ease;
  /* visibility の遅延解除を止めるためにトランジションを上書き */
  transition-delay: 0s;
}

/* popup 本体（ふわっと） */
.popup {
  background: #fffdf9;
  border: 1px solid #d8cdb9;
  border-radius: 6px;
  padding: 32px 60px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  color: #6d6d6d;
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
  transform: translateY(20px) scale(0.96);
  opacity: 0;
  transition: transform 0.48s cubic-bezier(0.16,1,0.3,1), opacity 0.36s ease;
  will-change: transform, opacity;
}

/* 親がアクティブになったら子をアニメーション表示 */
.popup-overlay.active .popup {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.popup img{
  width: 120px;
  height: 100%;
  padding: 10px 0;

}

.popup p{
  font-size: clamp(12px, 1.6vw, 14px);
  line-height: 2;
  text-align: left;

}

/* ==== 閉じるボタン ==== */
.close-btn {
  margin-top: 20px;
  padding: 8px 20px;
  border: 1px solid #c2b49a;
  background: transparent;
  color: #6d6d6d;
  border-radius: 2px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 300;
  transition: all 0.3s ease;
}

.close-btn:hover {
  background: #fff6e5;
  color: #5c5c5c;
}


/* フッター */
footer{
  height: 200px;
  background-image: url(img/hero.jpg);
  background-position: top;
  background-size: cover;

}

#copyright{
  padding-top: 30px;
  text-align: center;

}

/* 制作物詳細ページ:work00.html */
.work-container{
  text-align: center;

}

.work h3{
  margin: 3em 0 0.2em;
  padding-bottom: 0.5em;
  font-size: clamp(16px,2vw,24px);
  font-weight: 300;
  min-height: 0vw;
  border-bottom: #c2b49a solid 1px;

}

.tagu{
  font-size: clamp(12px,1.6vw,14px);
  font-weight: 300;
  min-height: 0vw;
  color: #c2b49a;
  margin-bottom: 4em;
}

.work-container section{
  padding: 30px 0 75px;

}

.detail{
  padding-top: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

}

.text{
  margin: 0 0 2em;
  font-size: clamp(12px,1.6vw,16px);
  font-weight: 300;
  min-height: 0vw;
  line-height: 2em;
}

.text02{
  margin: 0 0 2em;
  font-size: clamp(10px,1.6vw,14px);
  font-weight: 300;
  min-height: 0vw;
  line-height: 2em;
  text-align: left;
}

.work h4{
  margin: 0 auto  2em;
  padding-bottom: 0.5em;
  font-size: clamp(14px,1.6vw,18px);
  font-weight: 300;
  min-height: 0vw;
  border-bottom: #c2b49a solid 1px;
  max-width: 640px;

}

.work h5{
  position: relative;
  display: inline-block;
  font-size: clamp(14px,1.6vw,16px);
  font-weight: 300;
  min-height: 0vw;
  border-bottom: solid 1px #c2b49a;
  padding: 10px;
  min-width: 240px;
  max-width: 100%;
  text-align: center;
  margin-bottom: 1em;

}

.work h5:before,
.work h5:after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);

}

.work h5:before {
  border: solid 10px transparent;
  border-top: solid 10px #c2b49a;

}

.work h5:after {
  border: solid 13px transparent;
  border-top: solid 13px #fff;
  margin-top: -5px;

}

.images{
  display: grid;
  grid-template-columns: repeat(1,1fr);
  gap: 20px;

}

@media(min-width:768px){
  .images{
    grid-auto-flow: column;
    grid-auto-columns: minmax(min-content, 1fr);
    gap: 15px;
    width: 100%;
    justify-items: center;

  }

  .images02{
    grid-auto-flow: column;
    grid-auto-columns: minmax(min-content, 1fr);
    width: 100%;
    justify-items: center;

  }

}

/* 動画 */
.youtube {
    width: 100%;
    aspect-ratio: 16 / 9;

}

.youtube iframe {
    max-width: 100%;
    width: 100%;
    height: 100%;
    display: block;

}

@media (min-width: 768px) {
  .youtube {
    max-width: 720px; /* PC版で横幅制限 */
    margin: 2em auto;

  }
}

/* 一覧ボタン */
.back{
  margin: 80px 0 150px;

}

.back a{
  background: #F8ECD6;
  border-radius: 3px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  max-width: 180px;
  padding: 10px 25px;
  transition: 0.3s ease-in-out;
  text-decoration: none;
  color: #6D6D6D;
  font-size: clamp(12px,1.6vw,14px);
  font-weight: 300;
  min-height: 0vw;

}

.back a::before {
  content: '';
  position: absolute;
  bottom: -7px;
  right: -7px;
  width: 100%;
  height: 1px;
  background-color: #c2b49a;
  transition: 0.2s ease 0s;

}

.back a::after {
  content: '';
  position: absolute;
  top: 7px;
  right: -7px;
  width: 1px;
  height: 100%;
  background-color: #c2b49a;
  transition: 0.2s ease 0.2s;

}

.back a:hover::before {
  width: 0%;

}

.back a:hover::after {
  height: 0%;

}

.back a:hover {
  text-decoration: none;
  background-color: #FFF6E5;

}

/* フォトギャラリー */
.photo {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  max-width: 1020px;
  margin: auto;
  /* padding: 30px; */

}

.img-item {
  opacity: 0;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  
}




