@charset "UTF-8";

/* ==========================================================================
   1. ベースリセット & 共通設定
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-size: 15px;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  line-height: 1.8;
  color: #231815;
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.7;
}

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

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   2. ヘッダーナビゲーション
   ========================================================================== */
#Header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  z-index: 1000;
  border-bottom: 1px solid #f0f0f0;
}

.header-inner nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 40px;
  padding: 20px 0;
  opacity: 0.7;

}

.header-inner nav a {
  font-size: 13px;
  letter-spacing: 2px;
}

/* ==========================================================================
   3. ヒーローセクション
   ========================================================================== */
#Logo {
  height: 100vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #fafafa;
  padding: 80px 24px 24px 24px;
}

.logo-inner h1 {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-inner .brand-name {
  font-size: 14px;
  letter-spacing: 4px;
  color: #888888;
  margin-bottom: 8px;
}

.logo-inner .main-name {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 6px;
  line-height: 1.2;
  margin-bottom: 16px;
  border-bottom: 2px solid #231815;
  padding-bottom: 8px;
}

.logo-inner .job-title {
  font-size: 12px;
  letter-spacing: 2px;
  color: #555555;
}

/* ==========================================================================
   4. メインコンテンツ共通設定
   ========================================================================== */
main section {
  padding: 100px 0;
}

main section h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 4px;
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

/* ==========================================================================
   5. WORKS セクション
   ========================================================================== */
#Works {
  background-color: #ffffff;
}

#gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 30px;
  list-style: none;
}

#gallery li {
  display: flex;
  flex-direction: column;
}

/* トリガーとなるbutton要素の初期化スタイル */
.gallery-trigger {
  display: block;
  overflow: hidden;
  border-radius: 4px;
  background: #f0f0f0;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  aspect-ratio: 16 / 9;
  width: 100%;
}

.gallery-trigger img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-trigger:hover img {
  transform: scale(1.04);
}

#gallery h2 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-align: left;
  margin: 12px 0 2px 0;
}

#gallery .category {
  font-size: 11px;
  color: #888888;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ==========================================================================
   6. CONCEPT セクション
   ========================================================================== */
#Concept {
  background-color: #fafafa;
}

.concept-content {
  max-width: 680px;
  margin: 0 auto;
}

.concept-content .lead {
  font-size: 18px;
  text-align: center;
  margin-bottom: 30px;
}

.concept-content p {
  margin-bottom: 24px;
}

/* ==========================================================================
   7. PROFILE セクション
   ========================================================================== */
#Profile {
  background-color: #ffffff;
}

#Profile .flex-container {
  display: flex;
  align-items: flex-start;
  gap: 60px;
  max-width: 860px;
}

.profile-thumb {
  flex: 0 0 200px;
}

.profile-thumb img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-data {
  flex: 1;
}

.profile-data h2 {
  font-size: 22px;
  text-align: left;
  margin-bottom: 16px;
}

.profile-data h2 span {
  font-size: 14px;
  color: #888888;
  font-weight: normal;
}

.profile-data .hobby {
  font-size: 13px;
  color: #666666;
  margin-bottom: 24px;
  background-color: #f7f7f7;
  padding: 8px 16px;
  border-radius: 4px;
  display: inline-block;
}

.info-list {
  list-style: none;
  border-top: 1px solid #eeeeee;
  padding-top: 16px;
}

.info-list li {
  margin-bottom: 8px;
  font-size: 14px;
}

.border-link {
  font-weight: 700;
  border-bottom: 1px solid #231815;
  padding-bottom: 2px;
}

/* ==========================================================================
   8. フッター
   ========================================================================== */
#Footer {
  background-color: #231815;
  color: #ffffff;
  padding: 60px 0;
  text-align: center;
}

.sns-links {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 24px;
  margin-bottom: 24px;
}

.copyright {
  font-size: 11px;
  color: #888888;
  letter-spacing: 1px;
}

/* ==========================================================================
   9. ネイティブ <dialog> モーダル専用設計
   ========================================================================== */
dialog {
  margin: auto;
  border: none;
  border-radius: 8px;
  max-width: 800px;
  width: calc(100% - 32px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  background: #ffffff;
  overflow: hidden;
}

/* 表示時のフェードイン効果 */
dialog[open] {
  animation: fadeInModal 0.3s ease forwards;
}

/* モーダルの背景（黒幕） */
dialog::backdrop {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  opacity: 0;
}

dialog[open]::backdrop {
  animation: fadeInBackdrop 0.3s ease forwards;
}

.modal-inner {
  position: relative;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-height: 90vh;
  overflow-y: auto;
}

/* 閉じる「×」ボタンのデザイン定義 */
.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  cursor: pointer;
  z-index: 10;
}

.modal-close-btn::before,
.modal-close-btn::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 4px;
  width: 24px;
  height: 2px;
  background-color: #231815;
}

.modal-close-btn::before { transform: rotate(45deg); }
.modal-close-btn::after { transform: rotate(-45deg); }
.modal-close-btn:hover { opacity: 0.6; }

/* YouTube用レスポンシブコンテナ */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 4px;
  background-color: #000000;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.modal-img img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}

.modal-desc {
  font-size: 14px;
  line-height: 1.7;
  color: #333333;
}

.modal-desc .role {
  font-size: 15px;
  color: #231815;
  margin-bottom: 6px;
}

.modal-desc a {
  font-weight: 700;
  border-bottom: 1px solid #231815;
  padding-bottom: 1px;
}

/* アニメーションキーフレーム */
@keyframes fadeInModal {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes fadeInBackdrop {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ==========================================================================
   10. レスポンシブ対応
   ========================================================================== */
@media (max-width: 768px) {
  body { font-size: 14px; }
  main section { padding: 60px 0; }
  #Logo { height: 100vh; }
  .logo-inner .main-name { font-size: 28px; }

  #gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 20px;
  }

  #Profile .flex-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
  }

  .profile-data h2 { text-align: center; }
  .modal-inner { padding: 30px 16px 20px 16px; }
}

@media (max-width: 480px) {
  #gallery { grid-template-columns: 1fr; gap: 24px; }
  .header-inner nav ul { gap: 20px; }
}