/* =====================================
   共通スタイル（全ページ共通）
===================================== */
body {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  color: #333;
  background: #f3efe9 url("image/wood_bg.jpg") repeat;
}

header,
.site-header {
  background: rgba(90,70,50,0.9);
  text-align: center;
  color: #fff;
  padding: 1em 0;
}

.logo {
  width: 260px;
  height: auto;
}

nav a,
.main-nav a {
  color: #fff;
  margin: 0 1em;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.main-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  background: rgba(255,255,255,0.9);
  border-top: 2px solid #c0a472;
  border-bottom: 2px solid #c0a472;
  padding: 0.8em 0;
}

.main-nav a {
  color: #5b4636;
}

.main-nav a:hover,
nav a:hover {
  color: #a0703a;
}

footer,
.site-footer {
  background: #5b4636;
  color: #fff;
  text-align: center;
  padding: 1em 0;
  font-size: 0.9em;
}

/* =====================================
   ページタイトル帯（index以外共通）
===================================== */
.page-header {
  background: rgba(178, 138, 96, 0.15); /* 柔らかい木目調の色味 */
  border-top: 2px solid #b28a60;
  border-bottom: 2px solid #b28a60;
  padding: 1.5em 0;
  margin-bottom: 2em;
  text-align: center;
}

.page-header h1 {
  margin: 0;
  font-size: 1.8em;
  color: #5b4636;
  letter-spacing: 0.05em;
}

.page-header span {
  display: block;
  font-size: 0.9em;
  color: #a28d7a;
  margin-top: 0.3em;
}


/* =====================================
   index.html 用
===================================== */
.hero {
  position: relative;
  text-align: center;
  overflow: hidden;
  max-width: 100%;
}

.hero-slider {
  position: relative;
  height: 60vh;
  max-height: 500px;
}

.hero-slider img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slider img:first-child {
  opacity: 1;
}

.hero-text {
  position: absolute;
  bottom: 10%;
  width: 100%;
  text-align: center;
  color: #fff;
  text-shadow: 0 0 6px rgba(0,0,0,0.6);
}

.hero-text h1 {
  font-size: 2em;
  margin: 0.3em 0;
}

.hero-text p {
  font-size: 1.1em;
}

/* =====================================
   profile.html 用
===================================== */
.slider img {
  width: 100%;
  display: none;
  animation: slide 15s infinite;
}

@keyframes slide {
  0%, 33% { display: block; }
  34%, 100% { display: none; }
}



/* =====================================
   gallery.html & gallery_a.html 用
===================================== */
.gallery-overview {
  max-width: 1100px;
  margin: 3em auto;
  padding: 0 1em;
}

.gallery-overview h1 {
  text-align: center;
  color: #5b4636;
  border-bottom: 2px solid #b28a60;
  display: inline-block;
  padding-bottom: 0.3em;
  margin-bottom: 1em;
}

.gallery-overview .lead {
  text-align: center;
  color: #6b5b4a;
  margin-bottom: 2em;
  font-size: 0.95em;
}

/* --- グリッド（3列配置） --- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5em;
  justify-items: center;
}

/* --- 各カードの基本設定 --- */
.card img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: none; /* ← ホバー時のアニメーションを完全オフ */
}

.card img:hover {
  transform: none; /* ← 拡大効果を無効化 */
}

figcaption {
  text-align: center;
  margin-top: 0.5em;
  font-size: 0.95em;
  color: #5b4636;
}

/* --- レスポンシブ設定 --- */
@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .grid {
    grid-template-columns: 1fr;
  }
}


/* --- カード（共通） --- */
.card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  background-color: #f8f5f0;
  text-align: center;
  transition: transform 0.3s ease;
  max-width: 300px;
  width: 100%;
}

.card:hover {
  transform: translateY(-4px);
}

.card img {
  width: 100%;
  height: auto;
  display: block;
}

.card figcaption {
  font-size: 0.9em;
  padding: 0.6em;
  background-color: rgba(255, 250, 243, 0.9);
  color: #5b4636;
  border-top: 1px solid #c7b299;
}

/* --- オーバーレイ（受賞時） --- */
.award {
  position: relative;
}

.award-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(90, 70, 50, 0.85);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  font-size: 0.85em;
  line-height: 1.6;
  padding: 1em;
  box-sizing: border-box;
  border-radius: 8px;
}

.award:hover .award-overlay {
  opacity: 1;
}

/* --- 戻るリンクなど --- */
.backlink {
  text-align: center;
  margin-top: 2em;
}

.backlink a {
  text-decoration: none;
  color: #5b4636;
}

/* =====================================
   contact.html 用
===================================== */
.contact {
  max-width: 700px;
  margin: 3em auto;
  background: rgba(255,255,255,0.85);
  padding: 2em;
  border-radius: 1em;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.contact h1 {
  color: #5b4636;
  border-bottom: 2px solid #b28a60;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1em;
  margin-top: 1.5em;
}

.contact-form label {
  font-weight: bold;
  color: #5b4636;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.7em;
  border: 1px solid #bfa98a;
  border-radius: 5px;
  font-size: 1em;
}

.contact-form button {
  background: #5b4636;
  color: #fff;
  padding: 0.8em;
  border: none;
  border-radius: 5px;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-form button:hover {
  background: #7c6045;
}

.note {
  margin-top: 1.5em;
  font-size: 0.9em;
  color: #666;
  text-align: center;
}

/* =====================================
   privacy.html 用
===================================== */
.privacy {
  max-width: 900px;
  margin: 3em auto;
  background: rgba(255,255,255,0.8);
  padding: 2em;
  border-radius: 1em;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.privacy h1 {
  border-bottom: 2px solid #b28a60;
  color: #5b4636;
}

/* =====================================
   レスポンシブ対応
===================================== */
@media (max-width: 768px) {
  .hero-slider { height: 45vh; }
  .hero-text h1 { font-size: 1.6em; }
  .main-nav a,
  nav a { display: block; margin: 0.5em 0; font-size: 1em; }
  main, .contact, .privacy { padding: 1em; }
  .contact-info { font-size: 1em; }
}

/* =====================================
   GALLERY 共通（作品集・個別作品ページ用）
   3列レイアウト＋受賞オーバーレイ
===================================== */

.gallery-overview,
.gallery-section,
.gallery_main {
  max-width: 1100px;
  margin: 3em auto;
  padding: 0 1em;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5em;
  justify-items: center;
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

/* 各カード */
.card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  background-color: #f8f5f0;
  text-align: center;
  transition: transform 0.3s ease;
  max-width: 300px;
  width: 100%;
}

.card:hover {
  transform: translateY(-4px);
}

.card img {
  width: 100%;
  height: auto;
  display: block;
}

.card figcaption {
  font-size: 0.9em;
  padding: 0.6em;
  background-color: rgba(255, 250, 243, 0.9);
  color: #5b4636;
  border-top: 1px solid #c7b299;
}

/* オーバーレイ（受賞などの説明） */
.award {
  position: relative;
}

.award-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(90, 70, 50, 0.85);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  font-size: 0.85em;
  line-height: 1.6;
  padding: 1em;
  box-sizing: border-box;
  border-radius: 8px;
}

.award:hover .award-overlay {
  opacity: 1;
}

/* =====================================
   各ページ上部ナビゲーション帯（index除く）
===================================== */
.page-header {
  background: rgba(178, 138, 96, 0.15); /* 柔らかい木目調 */
  border-top: 2px solid #b28a60;
  border-bottom: 2px solid #b28a60;
  padding: 1.2em 0;
  margin-bottom: 2em;
  text-align: center;
}

.page-header h1 {
  margin: 0;
  font-size: 1.8em;
  color: #5b4636;
}

.page-header span {
  display: block;
  font-size: 0.9em;
  color: #a28d7a;
  margin-top: 0.3em;
}

.page-nav {
  margin-top: 0.8em;
  display: flex;
  justify-content: center;
  gap: 1.2em;
}

.page-nav a {
  text-decoration: none;
  color: #5b4636;
  font-weight: bold;
  transition: color 0.3s;
}

.page-nav a:hover {
  color: #a0703a;
}

.page-nav a.active {
  color: #b28a60;
  border-bottom: 2px solid #b28a60;
}

/* ギャラリーのキャプション共通 */
figcaption {
  text-align: center;
  margin-top: 0.5em;
  font-size: 0.95em;
  color: #5b4636;
}

/* 中に入れる（リンク付き）の作品キャプションを強調 */
.card a figcaption {
  font-weight: bold;
  color: #3a2a1a; /* 少し濃いブラウンで強調 */
  text-decoration: none; /* 下線を消す */
}

/* ホバー時の反応（軽く色を変える） */
.card a:hover figcaption {
  color: #a0703a;
}