@charset "UTF-8";
@import url(reset.css);
@import url('https://fonts.googleapis.com/css2?family=Kiwi+Maru&display=swap');

body {
  font-family: "Noto Sans JP", sans-serif;
  background: #fff;
  color: #333;
  margin: 0;
  padding: 0;
}

.nav-horizontal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  padding: 12px 30px;
  display: flex;
  justify-content: flex-end;
  gap: 30px;
  z-index: 9999;
}

.nav-horizontal ul {
  display: flex;
  gap: 40px;
  margin-right: 80px;
  list-style: none;
  text-decoration: none;
}

/* 横ナビのリンクデザイン */
.nav-horizontal a {
   font-family: "Kiwi Maru", serif;
  font-weight: 400;
  font-style: normal;
  color: #888;
  font-size: 16px;
  text-decoration: none;
  transition: 0.3s;
  line-height: 2;
}

.nav-horizontal a:hover {
  opacity: 0.6;
}

/* ハンバーガーメニュー */
.hamburger {
  display: none; /* PCでは非表示 */
  width: 30px;
  height: 22px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 10000;
  position: fixed;
  top: 15px;
  right: 30px;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: #b0b0b0;
  border-radius: 2px;
  margin: 8px 0;
}

/* スマホメニュー開閉 */
.mobile-menu {
  display: none; /* 初期は非表示 */
  position: fixed;
  top: 0;
  right: 0;
  width: 70%;
  height: 100%;
  background-color: #fff;
  padding: 60px 30px;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.2);
  z-index: 9998;
  transition: transform 0.3s ease;
  transform: translateX(100%); /* 右に隠す */
}

.mobile-menu.open {
  display: block;       /* 表示 */
  transform: translateX(0); /* 右から出てくる */
}

.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu li {
  margin-bottom: 20px;
}

.mobile-menu a {
  text-decoration: none;
  color: #4f5b69;
  font-size: 18px;
}


.mobile-menu {
  display: none;
}

/* 全体ラッパー */
.works-wrapper {
  display: flex;
  width: 90%;
  max-width: 1400px;
  margin: 120px auto 0;
  gap: 60px;
}


/* 左カテゴリ */
.category-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-menu li {
  font-size: 15px;
  margin-bottom: 18px;
  cursor: pointer;
  color: #444;
  transition: 0.2s;
  font-family: "Kiwi Maru", serif;
  font-weight: 400;
}

.category-menu li.active {
  font-weight: bold;
  border-left: 3px solid #000;
  padding-left: 8px;
}

.category-menu li:hover {
    font-weight: bold;
  border-left: 3px solid #000;
  padding-left: 8px;
  opacity: 1;
}

/* 右作品一覧 */
.works-list {
  flex: 1;
}

.work-card {
  max-width: 900px;
  margin-bottom: 70px;
}

.work-card img {
  width: 100%;
  border-radius: 6px;
  display: block;
}

.work-card h3 {
  font-size: 22px;
  margin: 32px 0 5px;
  font-weight: 600;
  font-family: "Kiwi Maru", serif;
  font-style: normal;
  color: #424242;
}

.work-meta {
  font-size: 12px;
  color: #777;
}

.work-card img {
    box-shadow:0 25px 65px rgba(138, 138, 138, 0.2);
      transition: transform 0.4s ease, box-shadow 0.4s ease;
    }
.work-card:hover img {
  transform: translateY(6px) scale(0.97);
  filter: brightness(0.9);
}


/* 初期状態（透明＋下にずらす） */
.work-card {
  opacity: 0;
  transform: translateY(40px);
  transition: 0.8s ease-out;
}

/* スクロールで見えたら適用されるクラス */
.work-card.show {
  opacity: 1;
  transform: translateY(0);
}


footer {
  text-align: right;
}
/* ===== お問い合わせ ===== */


.contact-section {
  position: absolute;
  margin-top: -80px;
  left: 0;
  width: 100%;
  height: 200px;
  padding: 120px 0 80px;
  background: #E0EEFE;
  overflow: hidden;
}

.section-title {
  font-family: 'Kiwi Maru', serif;
  font-size: 28px;
  color: #687F9D;
  margin-bottom: 30px;
    border-bottom: 1.5px dashed #687F9D;
  line-height: 1.5em;

}


  #contact-section { padding: 60px 100px 10px; }

#contact-section .mail {
  font-size: 20px;
  color: #546C85;
  font-weight: 500;
  text-align: center;
  margin-top: 20px;
}

.oto {
  text-align: center;
}

.mail {
  font-family: 'Noto Sans JP', sans-serif;
  color: #687F9D;
  font-size: 16px;
}

.mail a {
  color: #546C85;
  text-decoration: none;
}

.mail a:hover {
  opacity: 0.7;
}

.mail-btn-wrap {
  text-align: center;
  margin-top: 40px;
}

.mail-btn {
  display: inline-block;
  background: #687F9D;  /* 青 */
  color: #fff;
  padding: 12px 50px;
  border-radius: 25px;
  text-decoration: none;
  font-size: 24px;
  transition: 0.3s;
  font-family: "Noto Sans JP", sans-serif;
}

.mail-btn:hover {
  background: #8fa7c2; /* 少し濃くする */
}

.saigo { text-align: right;
         font-size: 12px;}

/* ===== モーダル（PC用） ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
  padding: 30px;
}

.modal-content {
  background: #fff;
  padding: 30px 40px;
  max-width: 900px;
  width: 100%;
  border-radius: 12px;
  position: relative;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

.modal-content img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 20px;
}

.modal-content h3 {
  font-size: 24px;
  margin: 10px 0;
  font-weight: 600;
}

.modal-content p {
  font-size: 16px;
  color: #555;
  line-height: 1.7;
}

/* ×ボタン */
.close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 32px;
  cursor: pointer;
  color: #555;
}

/* フェードイン */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



/* ===== 波アニメーション ===== */
.wave {
  width: 100%;
  height: 200px;
}



@media (max-width: 768px) {

    .nav-horizontal {
    display: none !important;
  }

  /* ハンバーガー表示 */
  .hamburger {
    display: block !important;
  }

  .mobile-menu {
    display: none;
  }

  /* ===== 全体ラッパー縦並び ===== */
  .works-wrapper {
    display: flex !important;
    flex-direction: column !important;
    margin: 80px auto 0 !important;
    max-width: 500px;
    width: 100%;
    padding: 0;
    gap: 20px;
  }

  /* ===== カテゴリメニュー ===== */
  .category-menu {
    width: 100% !important; 
    order: 0;
    margin: 0 0 20px;
    position: static !important;
  }

  aside {
    max-height: 100px;
  }

  .category-menu ul {
    display: block !important;
    padding: 0 20px;
    margin: 0;
    list-style: none;
  }

  .category-menu li {
    font-size: 14px;
    margin-bottom: 12px;
    padding-left: 0;
    border-left: none;
    cursor: pointer;
    color: #444;
  }

  .category-menu li.active {
    font-weight: bold;
    border-left: 3px solid #000;
    padding-left: 8px;
  }

  /* ===== 作品一覧 ===== */
  .works-list {
    width: 100% !important;
    order: 1; /* 修正ポイント: カテゴリの後に作品が来るように順序指定 */
    display: block !important;
    margin-top: 0;
  }

  .work-card {
    width: 100%;
    max-width: 500px;
    margin: 0 auto 50px;
  }

  .work-card img {
    width: 100%;
    height: auto;
  }

  
  .more-btn-wrapper { text-align: center; }

   .more-btn-wrap {
    margin: 0;
   }

   .section-title {
  font-family: 'Kiwi Maru', serif;
  font-size: 22px;
  color: #687F9D;
  margin-bottom: 30px;
    border-bottom: 1.5px dashed #687F9D;
  line-height: 1.5em;
}

  #contact-section { padding: 60px 20px 10px; }

  .contact-mail-btn { width: 200px; height: 46px; font-size: 15px; }
  a.mail-btn {
  width: 200px;
  }
  .oto { text-align: left; font-size: 14px;}
  .mail-btn {
    font-size: 20px;
    text-align: center;
  }

  .saigo {font-size: 12px;
          text-align: right;
}

}