/*
Theme Name: Catshouse
Description: The Cats' House 2009 - WordPress rebuild
Version: 1.0
Author: Amy Root
*/

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

body {
  font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
  background: #fff;
  color: #222;
  font-size: 14px;
  line-height: 1.7;
}

a { color: #333; text-decoration: none; }
a:hover { color: #000; text-decoration: underline; }

/* ─── Layout ─── */
#wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ─── Header / Logo / Nav ─── */
#header {
  padding: 16px 0 8px;
  border-bottom: 1px solid #ddd;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

#logo img { display: block; height: 40px; width: auto; }
#logo svg { height: 40px; }

#main_menu {
  display: flex;
  gap: 0;
  list-style: none;
  flex-wrap: wrap;
}

#main_menu a {
  display: inline-block;
  padding: 6px 14px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: #555;
  border: 1px solid transparent;
  transition: border-color 0.15s;
}
#main_menu a:hover,
#main_menu a.current {
  border-color: #aaa;
  color: #111;
  text-decoration: none;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  margin-left: auto;
  white-space: nowrap;
}
.lang-switcher a {
  color: #666;
  border-bottom: 1px solid transparent;
  transition: color 0.2s;
}
.lang-switcher a:hover {
  color: #111;
  border-bottom: 1px solid #111;
}
.lang-switcher a.current {
  color: #111;
  font-weight: bold;
  border-bottom: 1px solid #111;
}

/* ─── Main content area ─── */
#main {
  padding: 24px 0 48px;
  min-height: 60vh;
}

/* ─── Arrow buttons (prev/next) ─── */
.page-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.arrow-btn {
  font-size: 22px;
  color: #888;
  padding: 8px 16px;
  cursor: pointer;
  user-select: none;
  transition: color 0.15s;
}
.arrow-btn:hover { color: #111; }
.slide-counter {
  font-size: 12px;
  color: #aaa;
  letter-spacing: 0.1em;
}

/* ─── Swiper overrides ─── */
.swiper { width: 100%; }
/* スライドは上揃え — 画像エリアの水平線を統一するため */
.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.swiper-button-prev,
.swiper-button-next {
  color: #888;
  --swiper-navigation-size: 28px;
}
.swiper-button-prev:hover,
.swiper-button-next:hover { color: #111; }

.swiper-pagination-bullet-active { background: #555; }

/* ─── Photo grid (CSS grid collage) ─── */
:root {
  --collage-height: 500px; /* Cageが実機で調整する値 */
}

/* 単体写真 */
.photo-single {
  height: var(--collage-height);
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}
.photo-single img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* コラージュ: inline-grid で幅を自動計算 */
.photo-grid-wrapper {
  display: flex;
  justify-content: center;
}
.photo-grid {
  display: inline-grid; /* width は画像の自然な縦横比×固定高さで自動決定 */
  gap: 4px;
  height: var(--collage-height);
  max-width: min(1200px, 100%);
  overflow: hidden;
  /* grid-template-columns は各スライドのインラインstyleで指定 */
}
.photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* セクションタイトル（画像の下に表示） */
.photo-section-label {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #888;
  text-align: center;
  margin-bottom: 4px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 4px;
}

/* キャプション — Swiperの外に独立表示 */
.photo-caption {
  font-size: 13px;
  line-height: 1.9;
  text-align: left;
  max-width: 1200px;
  margin: 10px auto 0;
  padding: 0 4px;
  color: #333;
  min-height: 2em; /* キャプションなしスライドでも高さ確保 */
}

/* Slide section label */
.section-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: #aaa;
  text-align: center;
  margin-bottom: 12px;
  text-transform: uppercase;
}

/* ─── Cast ─── */
.cast-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
  padding: 8px;
}
.cast-slide img {
  width: 100%;
  max-width: 640px;
  height: auto;
  display: block;
}
.cast-info {
  font-size: 13px;
  line-height: 1.9;
  text-align: left;
  width: 100%;
  max-width: 640px;
}
.cast-group-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: #aaa;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* ─── Review ─── */
.review-slide {
  max-width: 800px;
  margin: 0 auto;
  padding: 8px 16px;
}
.review-slide img {
  max-width: 160px;
  float: right;
  margin: 0 0 12px 20px;
}
.review-text {
  font-size: 13px;
  line-height: 2;
  text-align: justify;
  white-space: pre-wrap;
}
.review-title {
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 16px;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
}

/* ─── Movie ─── */
.movie-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
}
.movie-item {
  width: 100%;
  max-width: 800px;
}
.movie-item .yt-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}
.movie-item .yt-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ─── Info ─── */
.info-body {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.info-body .main_title {
  grid-column: 1/-1;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.info-body p { margin-bottom: 12px; font-size: 13px; line-height: 1.9; }
@media (max-width: 600px) {
  .info-body { grid-template-columns: 1fr; }
}

/* ─── Home ─── */
.home-hero {
  height: var(--collage-height);
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}
.home-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(1.4);
}
/* www.catshouse.jp — 画像の下に表示 */
.home-url {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 300;
  font-size: 20px;
  letter-spacing: 0.15em;
  text-align: center;
  color: #444;
  margin: 16px auto;
  max-width: 1200px;
}
.home-desc {
  max-width: 800px;
  margin: 24px auto 0;
  font-size: 13px;
  line-height: 2;
  text-align: center;
}
.home-desc a { border-bottom: 1px solid #ccc; padding-bottom: 1px; }
.home-desc a:hover { border-color: #666; text-decoration: none; }

/* ─── CAST 正方形写真（修正5） ─── */
.cast-photo {
  width: 300px;
  height: 300px;
  overflow: hidden;
  margin: 0 auto;
}
.cast-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ─── ナビヒント（修正4） ─── */
.nav-hint {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 14px;
  z-index: 1000;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: fadeInUp 0.4s ease;
}
.nav-hint button {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  padding: 0;
  line-height: 1;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ─── Footer ─── */
#footer {
  border-top: 1px solid #ddd;
  padding: 16px 0;
  text-align: center;
  font-size: 11px;
  color: #aaa;
  letter-spacing: 0.08em;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  #header { gap: 12px; padding: 12px 0 6px; }
  #main_menu a { padding: 5px 10px; font-size: 12px; }
}
