/* =========================================
   Model Photography
   Rhythm Optimized Version (1.5 Scale)
========================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Zen Old Mincho', serif;
  background-color: #0a0a0a;
  color: #e6e6e6;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.05em;
  -webkit-font-smoothing: antialiased;
}

/* ===== Header ===== */

.site-header {
  position: fixed;
  top: 32px;
  left: 0;
  width: 100%;
  padding: 0 8%;
  z-index: 1000;
  transition: 0.4s ease;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 13px;
  letter-spacing: 0.3em;
}

.nav a {
  margin: 18px 0;   /* 24 → 18 に調整 */
  font-size: 17px;
  letter-spacing: 0.28em;
}

.nav a:hover {
  color: #ffffff;
}

/* ===== Section Spacing (Rhythm Unified) ===== */

section {
  padding: 144px 8%;
}

.container {
  max-width: 960px;
  margin: 0 auto;
}

/* ===== Hero ===== */

.hero {
  height: 100vh;
  background-image: url("image/hero.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.hero-content {
  max-width: 760px;
  transform: translateY(-32px);
}

h1 {
  font-size: 40px;
  margin-bottom: 48px;
  letter-spacing: 0.1em;
  line-height: 1.4;
}

h2 {
  font-size: 24px;
  margin-bottom: 48px;
  letter-spacing: 0.18em;
  color: #cccccc;
  text-align: center;
}

p {
  max-width: 640px;
  margin: 0 auto 32px auto;
  color: #bbbbbb;
}

/* ===== Buttons ===== */

.cta,
.more-btn {
  display: inline-block;
  padding: 14px 36px;
  border: 1px solid rgba(255,255,255,0.6);
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.25em;
  transition: 0.4s ease;
}

.cta:hover,
.more-btn:hover {
  background: #ffffff;
  color: #000;
}

/* ===== Scroll Indicator ===== */

.scroll-indicator {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  transition: 0.6s ease;
}

.scroll-indicator span {
  font-size: 11px;
  letter-spacing: 0.35em;
  color: rgba(255,255,255,0.7);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.4);
  margin: 12px auto 0;
}

.scroll-indicator.hide {
  opacity: 0;
  transform: translate(-50%, 10px);
  pointer-events: none;
}

/* ===== Gallery ===== */

.gallery h2,
.gallery p {
  text-align: center;
}

.grid-bg {
  background-color: #111111;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* ← 2列固定 */
  gap: 28px;
}

.image-box {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #1a1a1a;
}

.image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.8s ease;
}

.image-box:hover img {
  transform: scale(1.05);
}

.overlay-title {
  position: absolute;
  bottom: 20px;
  left: 20px;
  font-size: 14px;
  letter-spacing: 0.2em;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.7);
  padding: 6px 12px;
  border-radius: 2px;
  backdrop-filter: blur(3px);
  opacity: 0;
  transform: translateY(10px);
  transition: 0.6s ease;
}

.image-box:hover .overlay-title {
  opacity: 1;
  transform: translateY(0);
}

.gallery-more {
  margin-top: 96px;
  text-align: center;
}

/* ===== CONTACT ===== */

.contact {
  text-align: center;
}

.contact h2 {
  margin-bottom: 48px;
}

.contact p {
  margin-bottom: 32px;
}

/* ===== Footer ===== */

footer {
  padding: 80px 8%;
  text-align: center;
  font-size: 12px;
  color: #666;
}

/* ===== Smartphone ===== */

@media (max-width: 768px) {

  section {
    padding: 96px 6%;
  }

  .site-header {
    top: 20px;
    padding: 0 6%;
  }

  .nav a {
    margin-left: 16px;
    font-size: 11px;
  }

  .hero {
    height: 85vh;
    background-attachment: scroll;
  }

  h1 {
    font-size: 28px;
    margin-bottom: 32px;
  }

  h2 {
    font-size: 20px;
    margin-bottom: 32px;
  }

  p {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .gallery-grid {
    gap: 40px;
  }

  .gallery-more {
    margin-top: 64px;
  }

}


/* ===============================
   Hamburger Fix
================================= */

.hamburger {
  position: fixed;
  top: 32px;
  right: 8%;
  width: 28px;
  height: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 2000; /* ← 重要 */
}

.hamburger span {
  height: 1px;
  width: 100%;
  background: #ffffff;
  transition: 0.4s ease;
}


.nav {
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: 0.6s ease;
  z-index: 1500; /* ← ハンバーガーより下 */
}

.nav.active {
  opacity: 1;
  pointer-events: auto;
}


/* ===============================
   Overlay Menu Link Reset FIX
================================= */

.nav a {
  all: unset;              /* ← デフォルト完全リセット */
  cursor: pointer;
  font-family: 'Zen Old Mincho', serif;
  color: #e6e6e6;
  font-size: 22px;
  letter-spacing: 0.25em;
  margin: 22px 0;
  position: relative;
  transition: 0.4s ease;
  text-align: center;
}

/* 下線アニメーション */
.nav a::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  width: 0;
  height: 1px;
  background: #ffffff;
  transition: 0.4s ease;
  transform: translateX(-50%);
}

.nav a:hover {
  color: #ffffff;
  letter-spacing: 0.32em;
}

.nav a:hover::after {
  width: 60%;
}


/* ===============================
   Back To Top Button FIX
================================= */

.back-to-top {
  position: fixed;
  right: 40px;
  bottom: 40px;
  text-decoration: none;
  color: #e6e6e6;
  font-size: 12px;
  letter-spacing: 0.25em;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 10px 18px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: 0.4s ease;
  z-index: 1200;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  background: #ffffff;
  color: #000;
}

/* ===============================
   ① 余白を締める
================================= */

/* セクション余白を少し圧縮 */
section{
  padding:100px 20px; /* 120→100 */
}

/* セクションタイトル微調整 */
section h2{
  font-size:20px;     /* 少しだけ縮小 */
  letter-spacing:.25em;
  margin-bottom:30px;
}

/* 本文の行間をほんの少し締める */
section p{
  line-height:1.9;
}


/* ===============================
   ③ 演出追加
================================= */

/* セクション間の極薄ライン */
section + section{
  border-top:1px solid rgba(255,255,255,0.05);
}


/* 背景に超薄ノイズ風レイヤー */
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background-image:
    radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size:3px 3px;
  opacity:.15;
  z-index:0;
}

/* コンテンツを前面に */
body > *{
  position:relative;
  z-index:1;
}


/* ===============================
   ヘッダー スクロール変化
================================= */

.site-header{
  transition:background .4s ease, backdrop-filter .4s ease;
}

.site-header.scrolled{
  background:rgba(0,0,0,0.85);
  backdrop-filter:blur(6px);
}

/* 一番上のセクションの線を消す */
section:first-of-type{
  border-top:none !important;
}

.site-header{
  border:none !important;
}

/* ===============================
   ヘッダー下の謎ライン完全削除
================================= */

.site-header,
.site-header.scrolled {
  border-bottom: none !important;
  box-shadow: none !important;
}

/* 疑似要素で線が出ている場合も殺す */
.site-header::after {
  display: none !important;
}

/* ==================================
   HEADER POSITION FIX（完全安定版）
================================== */

.site-header,
.site-header.scrolled{
  padding:20px 40px !important;  /* 両方同じにする */
  height:auto !important;        /* 高さ固定を解除 */
}

.hamburger{
  position: relative;
  top: 0px;   /* ← 数字を増やすとさらに下がる */
}

@media (max-width:768px){

  /* hover効果を無効化 */
  .image-box:hover .overlay-title{
    opacity:1;
  }

  /* 常に表示 */
  .overlay-title{
    opacity:1 !important;
    position:static;
    background:rgba(0,0,0,0.7);
    padding:10px;
  }

}

/* ===== スマホ：ヘッダー分の余白を確保（完全安定版） */
@media screen and (max-width:768px){

  body{
    padding-top:80px;  /* ← ヘッダーの高さに合わせる */
  }

}

/* ===============================
   Hamburger → Close Animation
================================= */

.hamburger span{
  transform-origin: center;
}

/* 1本目 */
.hamburger.active span:nth-child(1){
  transform: translateY(8px) rotate(45deg);
}

/* 2本目（消す） */
.hamburger.active span:nth-child(2){
  opacity: 0;
}

/* 3本目 */
.hamburger.active span:nth-child(3){
  transform: translateY(-8px) rotate(-45deg);
}


/* ===============================
   Split Content 画像サイズ調整（追加のみ）
================================= */

.split-content{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:80px;
  margin-top:120px;
}

.split-content.reverse{
  flex-direction:row-reverse;
}

.split-image{
  flex:0 0 42%;
  display:flex;
  justify-content:center;
}

.split-image img{
  width:100%;
  max-width:520px;   /* ← 画像サイズ制御（上品サイズ） */
  height:auto;
  object-fit:cover;
}

.split-text{
  flex:0 0 38%;
}

.split-text h3{
  font-size:18px;
  margin-bottom:24px;
  letter-spacing:0.15em;
}

.split-text p{
  font-size:14px;
  line-height:1.9;
  margin:0;
}

/* ===== Smartphone ===== */

@media (max-width:768px){

  .split-content,
  .split-content.reverse{
    flex-direction:column;
    gap:40px;
    margin-top:80px;
  }

  .split-image,
  .split-text{
    flex:1 1 100%;
    text-align:center;
  }

  .split-image img{
    max-width:100%;
  }

}