/* =========================================================
   style.css
   メモ:
   - 元のReactコードは Tailwind の utility class を多用していました。
     この静的HTML版では「見た目が崩れない」ことを優先して、
     ページ単位で必要なスタイルを "意味のあるクラス名" に再設計しています。
   - JS処理（検索/絞り込み/いいね/コメント/ライトボックス等）は未実装です。
     追加しやすいように、要素には data- 属性を付けています。
   ========================================================= */

/* ---------- ベース ---------- */
:root{
  --bg: #0b0b0b;
  --text: #e5e7eb;
  --muted: #9ca3af;     
  --muted2: #9ca3af;    
  --line: #1f2937;      
  --teal: #14b8a6;      
  --teal2:#0d9488;      
  --pink:#ec4899;       
  --black:#000;
  --white:#fff;
  --shadow: 0 10px 30px rgba(0,0,0,.6);
  --radius: 16px;
  --radius2: 24px;
}

*{ box-sizing: border-box; }
html,body{
  height: 100%;
  overflow-x: hidden;
}
body{
  margin:0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

img{ max-width: 100%; display:block; }
a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: none; }
.container{
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

/* ---------- 共通: ナビゲーション ---------- */
.navbar{
  position: fixed;
  top:0; left:0; right:0;
  z-index: 40;
  background: rgba(10,10,10,.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(229,231,235,.08);
}
.navbar__inner{
  height: 72px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 24px;
}
.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 300;
  letter-spacing: .08em;
  color: #f3f4f6;
  text-decoration: none;
}
.brand__dot{
  width: 10px; height: 10px;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 0 6px rgba(20,184,166,.25);
}
.navlinks{
  display:flex;
  align-items:center;
  gap: 18px;
  font-weight: 300;
  color: #d1d5db;
}
.navlinks a{
  padding: 10px 12px;
  border-radius: 999px;
  color: inherit;
  text-decoration: none;
  transition: background .2s, color ,2s;
}
.navlinks a:hover{
  background: rgba(20,184,166,.15);
  color: #5eead4;
}
.navlinks a.is-active{
  background: rgba(20,184,166,.25);
  color: #99f6e4;
}

/* ---------- 共通: フッター ---------- */
.footer{
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: #fff;
  font-weight: 300;
  background: rgba(10,10,10,.75);
}
.footer__inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 16px;
}
/* ---------- 共通: ボタン ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.92);
  color: #111827;
  transition: transform .2s ease, background .2s ease, opacity .2s ease;
  font-weight: 300;
  letter-spacing: .03em;
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-1px); }
.btn__icon{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #111827;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
}
.btn--teal{
  border-color: rgba(20,184,166,.35);
}
.btn--teal .btn__icon{ background: var(--teal2); }

.chip{
  display:inline-flex;
  align-items:center;
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  color: rgba(255,255,255,.90);
  font-weight: 300;
  letter-spacing: .08em;
  font-size: 12px;
}

/* ---------- 共通: ヒーロー ---------- */
.hero{
  position: relative;
  min-height: 100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.hero__bg{
  position:absolute; inset:0;
}
.hero__bg img{
  width:100%; height:100%;
  object-fit: cover;
  object-position: top;
}
.hero__overlay{
  position:absolute; inset:0;
  background: linear-gradient(to bottom, rgba(0,0,0,.40), rgba(0,0,0,.30), rgba(0,0,0,.40));
}
.hero__content{
  position: relative;
  z-index: 1;
  text-align:center;
  padding: 0 24px;
  width: min(900px, 100%);
}
.hero__title1{
  font-size: clamp(56px, 7vw, 110px); /* 少しだけ大きく */
  font-weight: 300;
  color: rgba(0,0,0,0.88);            /* 真っ黒ではない上品な黒 */
  margin: 14px 0 8px;
  letter-spacing: .06em;              /* わずかに字間を広げる */
}

.hero__title2{
  font-size: clamp(44px, 6vw, 92px);  /* メインより一段小さく */
  font-weight: 400;                   /* 少し軽くして品を出す */
  color: rgba(0,0,0,0.72);             /* メインより薄いグレー */
  margin: 0 0 22px;
  letter-spacing: .1em;               /* サブはやや広め */
}

.hero__lead{
  color: rgba(255,255,255,.90);
  font-weight: 300;
  font-size: clamp(16px, 2vw, 20px);
  margin: 0 auto 28px;
  width: min(680px, 100%);
}
/* ===== タイトル領域（hero-strip）をヘッダー下に大きく確保 ===== */
.hero-strip{
  min-height: 40vh;          /* ←ここで“縦の広さ”が変わる（33vh〜50vhくらいで調整） */
  display: flex;
  align-items: center;       /* 縦方向中央寄せ */
  justify-content: center;   /* 横方向中央寄せ */
  padding: 24px 16px;        /* 余白 */
}

/* 見出しの見た目 */
.hero-strip__content h1{
  font-size: clamp(28px, 4vw, 56px);  /* ←文字サイズ（画面幅に応じて可変） */
  letter-spacing: 0.02em;             /* 文字間 */
  margin: 0;
  font-family: Verdana;
}


/* ---------- セクション ---------- */
.section{
  padding: 96px 0;
}
.section--soft{
  background: linear-gradient(135deg, #f9fafb, #ffffff);
}
.section__title{
  text-align:center;
  margin-bottom: 56px;
}
.section__title h2{
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 300;
  margin: 0 0 10px;
}
.section__title p{
  margin:0;
  color: #6b7280;
  font-weight: 300;
  font-size: 18px;
}
#categories{
  background-image:
    linear-gradient(
      rgba(0,0,0,0.7),
      rgba(0,0,0,0.7)
    ),
    url("./Images/k.webp");

  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

/* ---------- カード（カテゴリ） ---------- */
.grid{
  display:grid;
  gap: 24px;
}
.grid--3{
  grid-template-columns: repeat(1, 1fr);
}
@media (min-width: 860px){
  .grid--3{ grid-template-columns: repeat(3, 1fr); }
}
.card{
  position: relative;
  overflow:hidden;
  border-radius: var(--radius2);
  background:#000;
  box-shadow: 0 4px 14px rgba(0,0,0,.06);
  transition: box-shadow .3s ease, transform .3s ease;
}
.card:hover{
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.card__media{
  aspect-ratio: 4/3;
  overflow:hidden;
}
.card__media img{
  width:100%; height:100%;
  object-fit: cover;
  object-position: top;
  transition: transform .7s ease;
}
.card:hover .card__media img{ transform: scale(1.08); }
.card__body{
  padding: 26px;
}
.iconbox{
  width: 48px; height:48px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom: 14px;
  transition: background .25s ease, color .25s ease;
}
.card:hover .iconbox{
  background: var(--teal2);
}
.iconbox i{
  font-size: 22px;
  color: #fff;
  transition: color .25s ease;
}
.card:hover .iconbox i{ color:#fff; }

.card__body h3{
  font-size: 22px;
  font-weight: 300;
  margin: 0 0 10px;
}
.card__body p{
  margin: 0 0 12px;
  color: #fff;
  font-weight: 300;
}
.card__cta{
  display:flex;
  align-items:center;
  gap: 10px;
  color: #fff;
  font-weight: 300;
}
/* ---------- CTA（背景画像＋黒グラデ） ---------- */
/* ===== Social Hub ===== */
.social-hub{
  position: relative;
  overflow: hidden;
  margin-top: 80px;
}

.social-hub__bg{
  position: absolute;
  inset: 0;
  z-index: -1;
}

.social-hub__bg img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.social-hub__overlay{
  position: absolute;
  inset: 0;
}

.social-hub__content{
  max-width: 960px;
  margin: 0 auto;
  padding: 96px 20px;
  text-align: center;
}

.social-hub__content h2{
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 300;
  letter-spacing: .08em;
}

.social-hub__content p{
  margin-top: 14px;
  opacity: .8;
  line-height: 1.8;
}

/* SNSリンク */
.social-links{
  margin-top: 36px;
  display: flex;
  justify-content: center; /* ← 真ん中寄せ */
  gap: 16px;
  flex-wrap: wrap;
}

.social-btn{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 14px 12px;
  border-radius: 999px;

  
  border: 1px solid rgba(255,255,255,.16);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: .04em;
}

.social-btn i{
  font-size: 18px;
}

.social-btn:hover{
  background: rgba(255,255,255,.14);
  transform: translateY(-1px);
}

/* スマホ */
@media (max-width: 820px){
  .social-links{
    grid-template-columns: 1fr 1fr;
  }
}
/* ---------- 作品グリッド（カード） ---------- */
.gallery{
  padding: 64px 0 96px;
}
.gallery__grid{
  display:grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 22px;
}
@media (min-width: 720px){
  .gallery__grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px){
  .gallery__grid{ grid-template-columns: repeat(4, 1fr); }
}
.artcard{
  border-radius: 18px;
  overflow:hidden;
  background-color: #000;
  border: 1px solid rgba(255,255,255,.10);
  transition: transform .25s ease, border-color .25s ease;
}
.artcard:hover{
  transform: translateY(-2px);
  border-color: rgba(20,184,166,.40);
}
.artcard__media{
  aspect-ratio: 3/4;
  background: rgba(255,255,255,.06);
}
.artcard__media img{
  width:100%; height:100%;
  object-fit: cover;
  object-position: top;
}
.artcard__body{
  padding: 14px 14px 16px;
}
.artcard__title{
  font-weight: 300;
  margin: 0 0 6px;
  color: #fff;
  text-align: center;
  font-size: large;
}
/* ---------- 詳細ページ（ライトボックス含む） ---------- */
.detail{
  padding: 110px 0 96px;
}
.backlink{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  color:#4b5563;
  font-weight: 300;
  margin-bottom: 0px;
}
.backlink:hover{ color: var(--teal2); }

.detail__grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
@media (min-width: 980px){
  .detail__grid{ grid-template-columns: 1.1fr .9fr; }
}
.figure{
  border-radius: 18px;
  overflow:hidden;
  cursor: default;
  position: relative;
}
.detail .figure img{
  width: 100%;
  height: auto;          /* ←100%をやめる */
  max-height: 75vh;      /* ←スマホで縦長でも画面に収める */
  object-fit: contain;   /* ←切らない */
  object-position: center;
}
.detail .figure{
  max-width: 580px;
  width: 100%;
  height: auto;          /* ←固定高さをやめる */
  margin: 0 auto;
}


.detail__title{
  margin: 0 0 10px;
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 300;
}
.detail__meta{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  color:#6b7280;
  font-weight: 300;
  font-size: 13px;
  margin-bottom: 14px;
}
.detail_desc{
  color: rgba(255, 255, 255, 1); 
  font-weight: 300;
  font-size: 15px;              
  line-height: 1.8;             
  margin: 0 0 22px;
}

/* ---------- 404 ---------- */
.notfound{
  min-height: 100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 0 18px;
}
.notfound__wrap{
  position: relative;
  text-align:center;
  width: min(720px, 100%);
}
.notfound__bg{
  position:absolute;
  bottom: -40px;
  left: 0; right:0;
  font-size: clamp(100px, 18vw, 180px);
  font-weight: 900;
  color: #f3f4f6;
  user-select: none;
  pointer-events: none;
}
.notfound h1{
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 600;
}
.notfound p{
  margin: 8px 0 0;
  color: #6b7280;
  font-weight: 300;
}
.codepath{
  margin-top: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  color: #9ca3af;
  font-size: 14px;
}
.scroll-container {
  width: 100%;
  overflow: hidden;
}

.scroll-content {
  display: flex;
  gap: 20px; /* 画像の間隔 */
  animation: scroll 20s linear infinite;
}
/*スマホ用速度*/
.scroll-content{
  will-change: transform;
  transform: translate3d(0,0,0);
}

@media (max-width: 768px){
  .scroll-content{ animation-duration: 12s; }
  .scroll-content img{ width: 240px; height: 240px; }
}


.scroll-content img {
  width: 430px;         
  height: 430px;       
  object-fit: cover;
  border-radius: 18px;
  display: block;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* =========================
   Home: 作品カテゴリーのカードを中央に整列（2枚対応）
   ========================= */
#categories .grid--3 {
  /* 要素数に応じて列数を自動化（2枚なら2列、1枚なら1列） */
  grid-template-columns: repeat(auto-fit, minmax(320px, 460px));

  /* グリッド全体を中央寄せ */
  justify-content: center;

  /* 念のため：各カード自体も中央に収める */
  justify-items: center;

  /* 余白（必要なら調整） */
  gap: 40px;
}

/* 画面が狭いときは1列にして自然に中央寄せ */
@media (max-width: 760px) {
  #categories .grid--3 {
    grid-template-columns: minmax(260px, 1fr);
    gap: 24px;
  }
}
/* =========================================
   Gallery pages (analog / digital)
   単一背景（k.webpのみ）＋暗幕（現状の透明度感）
   ========================================= */

body.gallery-page{
  /* 背景のベース色（画像が読み込めない場合の保険） */
  background-color: var(--bg);

  /* 背景は「暗幕グラデ + k.webp 1枚」だけ */
  background-image:
    linear-gradient(
      to bottom,
      rgba(0,0,0,0.72) 0%,
      rgba(0,0,0,0.60) 25%,
      rgba(0,0,0,0.62) 55%,
      rgba(0,0,0,0.76) 100%
    ),
    url("./Images/k.webp");

  /* 繰り返しなし */
  background-repeat: no-repeat, no-repeat;

  /* 現状のサイズ感：cover */
  background-size: cover, cover;

  /* 現状の配置感：上基準 + 中央 */
  background-position: center top, center top;

  /* 背景は通常どおり（固定にはしない） */
  background-attachment: scroll, scroll;
}