/* =====================
   基本設定
===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  /* font-family: "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif; */
  font-family: "Noto Sans JP", sans-serif;
  background: #191919;
  color: #eee;
}

/* =====================
   ナビゲーション
===================== */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 20px 0;
}

.main-nav ul {
  display: flex;
  justify-content: center;
  gap: 40px;
  list-style: none;
}

.main-nav a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s;
  position: relative;
}

.main-nav a:hover {
  color: #ec407a;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #ec407a;
  transition: width 0.3s;
}

.main-nav a:hover::after {
  width: 100%;
}

/* =====================
   ヘッダー
===================== */
header {
  background: #191919;
  color: #fff;
  margin: 0 auto;
  text-align: center;
  position: relative;
  padding-bottom: 0;
}

/* =====================
   スライダー
===================== */
.header-slider {
  position: relative;
  width: 100vw;
  max-width: 1500px;
  margin: 0 auto;
  aspect-ratio: 4 / 3;
  display: block; /* ← これが重要 */
  overflow: hidden;
  background: #191919;
  z-index: 1;
  margin-top: 60px;
}


.header-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(.77,0,.18,1);
  z-index: 1;
}

.header-slider img.active {
  opacity: 1;
  z-index: 2;
}

/* スライダー左右クリックエリア */
.slider-area {
  position: absolute;
  top: 0;
  height: 100%;
  width: 10vw;
  min-width: 70px;
  z-index: 10;
  cursor: pointer;
  background: transparent;
  transition: background 0.15s;
}

.slider-area.prev {
  left: 0;
}

.slider-area.next {
  right: 0;
}

.slider-area:hover {
  background: rgba(128,128,128,0.07);
}

/* =====================
   プロフィール
===================== */
.profile-row {
  display: flex;
  margin: 0 auto;
  align-items: center;
  justify-content: center;
  gap: 22px;
  background: #232323;
  box-shadow: 0 6px 32px #0007;
  padding: 20px 10px 20px;
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1500px;
  border-radius: 50px 50px 0 0;
  margin-bottom: 20;
}

.profile-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid #444;
  object-fit: cover;
}

.name {
  font-size: 2.2em;
  /*font-weight: bold;*/
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}

.subtitle {
  text-align: center;
  font-size: 0.5em;
  color: #aaa;
  margin-top: 0.1em;
  letter-spacing: 0.1em;
}

.description {
  font-size: 1em;
  color: #ccc;
  max-width: 600px;
  line-height: 1.6;
}

.profile-row h1 {
  margin-bottom: 0.1em;
}

/* =====================
   メインコンテンツ
===================== */
main {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 20px;
  background: #232323;
  position: relative;
  z-index: 20;
}

section {
  margin-bottom: 40px;
  position: relative;
  z-index: 20;
  padding-top: 20px;
}

section:first-child {
  padding-top: 10px;
}

h2 {
  border-left: 5px solid #888;
  padding-left: 12px;
  margin-top: 0;
  margin-bottom: 20px;
  color: #fafafa;
  letter-spacing: 1px;
  text-shadow: 0 2px 10px #0008;
}

/* =====================
   ギャラリー
===================== */
.gallery-tabs {
  display: flex;
  max-width: 1500px;
  justify-content: center;
  gap: 18px;
  margin-bottom: 18px;
  position: relative;
  z-index: 30;
}

.gallery-tab {
  background: #232323;
  color: #fafafa;
  border: none;
  padding: 8px 22px;
  border-radius: 8px 8px 0 0;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, transform 0.3s, box-shadow 0.3s;
  outline: none;
}

.gallery-tab.active, .gallery-tab:hover {
  background: #ec407a;
  color: #fff;
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 4px 16px #ec407a44;
}

.gallery-container {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(6px, 2.5vw, 20px);
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 20px;
  justify-content: flex-start;
  position: relative;
  z-index: 25;
}

.gallery-item {
  width: calc(50% - clamp(3px, 1.25vw, 10px));
  display: block;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              padding-bottom 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding-bottom: 0;
  z-index: 20;
  box-sizing: border-box;
}

.gallery-item[hidden] {
  display: none !important;
}

.gallery-item img {
  width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  transition: box-shadow 0.3s, transform 0.3s;
}

.gallery-item:hover {
  transform: scale(1.08) rotate(-1deg);
  padding-bottom: calc(3vh + 30px);
  /* padding-bottom:5vw; */
  z-index: 30;
}

.gallery-item:hover img {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.gallery-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  color: #fff;
  font-size: 1em;
  padding: 12px 8px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-shadow: 0 6px 12px rgba(0, 0, 0, 0.9);
  white-space: normal;
  z-index: 40;
}

.gallery-title .gallery-description {
  font-size: 0.7em;
  color: #fff;
  display: block;
  margin-top: 0.2em;
  text-shadow: 0 6px 12px rgba(0, 0, 0, 0.9);
}

.gallery-item:hover .gallery-title {
  opacity: 1;
}

.gallery-more {
  background: #ec407a;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 4px 18px;
  font-size: 0.92em;
  font-family: inherit;
  cursor: pointer;
  margin-left: 10px;
  margin-top: 6px;
  box-shadow: 0 2px 8px #ec407a44;
  transition: background 0.22s, color 0.22s, transform 0.18s, box-shadow 0.18s;
  outline: none;
  vertical-align: middle;
}

.gallery-more:hover {
  background: #fff;
  color: #ec407a;
  box-shadow: 0 0 0 3px #ec407a88;
  transform: scale(1.08);
}

/* =====================
   About & Contact
===================== */
#about, #contact {
  background: transparent;
  border-radius: 0;
  padding: 30px 0;
  box-shadow: none;
  border-top: 1px solid #444;
}

#about p, #contact p ,#works p{
  color: #c9c9c9;
  font-size: 1.08em;
}


#contact a {
  color: #bbb;
  text-decoration: underline;
  transition: color 0.2s, background 0.2s;
}

#contact a:hover {
  color: #fff;
  background: #4448;
  padding: 2px 5px;
  border-radius: 7px;
}

.detail-link {
  display: inline;
  padding: 0;
  background: none;
  color: #bbb;
  font-size: 1em;
  font-weight: normal;
  text-decoration: underline;
  box-shadow: none;
  margin: 0;
}

.detail-link:hover {
  color: #fff;
  background: #4448;
  padding: 2px 5px;
  border-radius: 7px;
}



/* =====================
   SNSアイコン
===================== */
.social-links {
  display: flex;
  gap: 30px;
  justify-content: center;
  margin-top: 20px;
}

.social-link {
  color: white;
  text-decoration: none;
  display: inline-flex;
  transition: transform 0.3s;
}

.social-link:hover {
  transform: scale(1.2);
}

/* =====================
   フッター
===================== */
footer {
  background: #232323;
  color: #ccc;
  text-align: center;
  padding: 40px 0 20px;
  border-radius: 0 0 24px 24px;
  margin-top: 0;
  letter-spacing: 1px;
}

/* =====================
   詳細ページ
===================== */
.detail-image {
  width: 100vw;
  max-width: 100vw;
  height: auto;
  display: block;
  object-fit: cover;
  margin-bottom: 18px;
}
.detail-title {
  font-size: 1.5em;
  margin-bottom: 0.4em;
  color: #fff;
  text-align: center;
}
.detail-description1 {
  font-size: 1em;
  color: #fff;
  opacity: 0.8;
  margin-bottom: 2em;
  text-align: center;
}
.detail-description2 {
  font-size: 0.7em;
  color: #fff;
  opacity: 0.8;
  margin-bottom: 2em;
  text-align: center;
}
.detail-container {
  padding: 0;
  max-width: 100vw;
  margin: 0 auto;
  margin-top: 75px;
}
.back-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: fit-content;
  margin: 15px 0 15px 0;        /* 下に隙間、左詰め。中央にしたいならmargin: 0 auto 18px auto; */
  cursor: pointer;
  text-decoration: none;
}

.back-icon {
  width: 4vw;
  min-width: 20px;
  max-width: 64px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px #0008);
  transition: filter 0.2s, transform 0.2s;
}

.back-btn:hover .back-icon {
  filter: drop-shadow(0 4px 16px #ec407a88);
  transform: scale(1.12) rotate(-8deg);
}

/* commission_detail.html */

#order {
  background: #232323;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 6px 32px #0007;
  margin-top: 60px;
}

#order a {
  color: #bbb;
  text-decoration: underline;
  transition: color 0.2s, background 0.2s;
}

#order a:hover {
  color: #fff;
  background: #4448;
  padding: 2px 5px;
  border-radius: 7px;
}


/* =====================
   スマホ用
===================== */
@media (max-width: 750px) {
  .name {
    font-size: 1.2em;
    /*font-weight: bold;*/
    margin-bottom: 6px;
    letter-spacing: 0.05em;
  }
   .profile-icon {
     width: 80px;
     height: 80px;
     border-radius: 50%;
     border: 3px solid #444;
     object-fit: cover;
   }

  .main-nav ul {
    gap: 20px;
  }

  .main-nav a {
    font-size: 14px;
  }


  .gallery-item {
    width: 100%;
  }

  .gallery-container {
    gap: clamp(5px, 2vw, 15px);
  }

  #about p, #contact p {
    color: #c9c9c9;
    font-size: 0.92em;
  }

  .social-links {
    gap: 20px;
  }
}
