/* リセットCSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #4a3728;
  background-color: #f5f2ed;
  background-image: none;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  transition: background-image 0.8s ease-in-out;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #f5f2ed;
  background-image: var(--current-bg-image, none);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.8s ease-in-out;
}



/* モバイル対応：背景画像の固定を無効化 */
@media (max-width: 768px) {
  body::before {
    position: fixed;
    background-attachment: scroll;
    background-size: cover;
    background-position: center center;
    height: 100vh;
    width: 100vw;
    top: 0;
    left: 0;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: opacity 0.8s ease-in-out;
  }

  /* 一般的なモバイル対応 */
  .mobile body::before {
    background-size: cover !important;
    background-position: center center !important;
    background-attachment: scroll !important;
    position: fixed !important;
    height: 100vh !important;
    width: 100vw !important;
    top: 0 !important;
    left: 0 !important;
    transition: opacity 0.8s ease-in-out !important;
  }
}

/* より小さなモバイル画面での追加調整 */
@media (max-width: 480px) {
  body::before {
    background-size: cover;
    background-position: center 30%;
    min-height: 100vh;
    height: 100vh;
  }
}

/* iOSデバイス専用の調整 */
@media (max-width: 768px) {
  .ios body::before {
    background-attachment: scroll;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 100vh;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    transition: opacity 0.8s ease-in-out;
  }
}

/* Android Chrome専用の調整 */
@media (max-width: 768px) {
  .android body::before {
    background-attachment: scroll;
    background-size: cover;
    background-position: center center;
    position: fixed;
    height: 100vh;
    width: 100vw;
    top: 0;
    left: 0;
    transform: translateZ(0);
    will-change: opacity;
    transition: opacity 0.8s ease-in-out;
  }
}

body.bg-image::before {
  opacity: 0.30;
  filter: saturate(125%);
  filter: contrast(90%);
  filter: blur(1px);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ヘッダー */
.header {
  background-color: #333;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 70px;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  height: 100%;
}

.header-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #f8f8f8;
}

.header-title a {
  color: #f8f8f8;
  text-decoration: none;
  transition: color 0.3s;
}

.header-title a:hover {
  color: #ccc;
}

.header-nav {
  display: block;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-list a {
  text-decoration: none;
  color: #f8f8f8;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-list a:hover {
  color: #ccc;
}

.hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.75rem;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s;
}

.hamburger:hover,
.hamburger:focus {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  outline: none;
}

.hamburger:active {
  background-color: rgba(255, 255, 255, 0.2);
  transform: scale(0.95);
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: #f8f8f8;
  margin-bottom: 4px;
  transition: 0.3s;
}

/* メインビジュアル */
.main-visual {
  margin-top: 70px;
  position: relative;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  aspect-ratio: 1366/1000;
}

.visual-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.visual-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.visual-slide.active {
  opacity: 1;
}

/* メインコンテンツ */
.main-content {
  padding: 3rem 0;
}

/* 写真展の説明 */
.exhibition-description {
  margin: 3rem 0;
  position: relative;
}

.exhibition-band {
  position: relative;
  padding: 2rem 0;
  background: linear-gradient(to right,
      rgba(184, 163, 137, 0) 0%,
      rgba(184, 163, 137, 0.4) 20%,
      rgba(184, 163, 137, 0.6) 50%,
      rgba(184, 163, 137, 0.4) 80%,
      rgba(184, 163, 137, 0) 100%);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-top: 2px solid rgba(107, 78, 61, 0.3);
  border-bottom: 2px solid rgba(107, 78, 61, 0.3);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.exhibition-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #6b4e3d;
  text-align: center;
  margin: 0;
  padding: 0 2rem;
  font-weight: 600;
  text-shadow:
    2px 2px 4px rgba(245, 242, 237, 0.9),
    -2px -2px 4px rgba(245, 242, 237, 0.9),
    2px -2px 4px rgba(245, 242, 237, 0.9),
    -2px 2px 4px rgba(245, 242, 237, 0.9),
    0px 2px 4px rgba(245, 242, 237, 0.9),
    0px -2px 4px rgba(245, 242, 237, 0.9),
    2px 0px 4px rgba(245, 242, 237, 0.9),
    -2px 0px 4px rgba(245, 242, 237, 0.9);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #6b4e3d;
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
  text-shadow:
    2px 2px 4px #f5f2ed,
    -2px -2px 4px #f5f2ed,
    2px -2px 4px #f5f2ed,
    -2px 2px 4px #f5f2ed,
    0px 2px 4px #f5f2ed,
    0px -2px 4px #f5f2ed,
    2px 0px 4px #f5f2ed,
    -2px 0px 4px #f5f2ed;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: #b85c50;
}

/* 共通スタイル */
.section-box {
  background-color: rgba(254, 252, 250, 0.8);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(139, 115, 85, 0.12);
  margin-bottom: 2rem;
}

.section-box h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #6b4e3d;
  margin-bottom: 1rem;
}

.section-box h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #6b4e3d;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.section-box h4:first-child {
  margin-top: 0;
}

.section-box p {
  margin-bottom: 1rem;
  line-height: 1.7;
  color: #5d4037;
}

.inline-block {
  display: inline-block;
  text-shadow:
    1px 1px 3px #f5f2ed,
    -1px -1px 3px #f5f2ed,
    1px -1px 3px #f5f2ed,
    -1px 1px 3px #f5f2ed,
    0px 1px 3px #f5f2ed,
    0px -1px 3px #f5f2ed,
    1px 0px 3px #f5f2ed,
    -1px 0px 3px #f5f2ed;
}

.standard-list {
  list-style: disc;
  padding-left: 1.5rem;
}

.standard-list li {
  padding: 0.25rem 0;
}

.standard-list li:last-child {
  margin-bottom: 0;
}

.standard-table {
  border-collapse: collapse;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.standard-table th,
.standard-table td {
  padding: 0.75rem;
  text-align: center;
  border: 1px solid #b8a389;
}

.standard-table th {
  background-color: rgba(245, 241, 236, 0.7);
  font-weight: 600;
  color: #6b4e3d;
}

.schedule-table th,
.schedule-table td {
  text-align: left;
  border-bottom: 1px solid #b8a389;
  border-left: none;
  border-right: none;
}

/* 最新情報 */
.news-section {
  margin-bottom: 4rem;
}

.news-content {
  line-height: 1.7;
  color: #5d4037;
  text-shadow:
    1px 1px 3px #f5f2ed,
    -1px -1px 3px #f5f2ed,
    1px -1px 3px #f5f2ed,
    -1px 1px 3px #f5f2ed,
    0px 1px 3px #f5f2ed,
    0px -1px 3px #f5f2ed,
    1px 0px 3px #f5f2ed,
    -1px 0px 3px #f5f2ed;
}

/* グラビア写真プレースホルダー */
.photo-insert {
  margin: 4rem 0;
  text-align: center;
}

.photo-image {
  width: 100%;
  max-width: 1200px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.photo-placeholder {
  width: 100%;
  max-width: 800px;
  height: 600px;
  background-color: #ede7df;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  border: 2px dashed #c19a6b;
}

.photo-text {
  font-size: 1.2rem;
  color: #8b7355;
  font-weight: 500;
}

/* アーティスト紹介 */
.artist-section {
  margin-bottom: 4rem;
}

.artist-intro {
  text-align: center;
  margin-bottom: 3rem;
}

.lead-text {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #5d4037;
  max-width: 800px;
  margin: 0 auto;
  text-shadow:
    1px 1px 3px #f5f2ed,
    -1px -1px 3px #f5f2ed,
    1px -1px 3px #f5f2ed,
    -1px 1px 3px #f5f2ed,
    0px 1px 3px #f5f2ed,
    0px -1px 3px #f5f2ed,
    1px 0px 3px #f5f2ed,
    -1px 0px 3px #f5f2ed;
}

.artist-details {
  margin-top: 3rem;
}

.photographer-profile {
  margin-bottom: 0;
}

.artist-profile h3,
.photographer-profile h3 {
  font-size: 1.2rem;
  color: #8b7355;
  margin-bottom: 0.5rem;
}

.artist-profile h4,
.photographer-profile h4 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #6b4e3d;
  margin-bottom: 1rem;
  margin-top: 0;
}

.artist-profile h5 {
  font-size: 1.1rem;
  color: #8b7355;
  margin-bottom: 0.5rem;
  margin-left: 0.5rem;
}

.artist-profile p,
.photographer-profile p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.artist-message {
  background-color: rgba(245, 241, 236, 0.804);
  padding: 1.5rem;
  border-left: 4px solid #b85c50;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.artist-message p {
  margin-bottom: 0;
}

span.emoji {
  font-family: apple color emoji,
    segoe ui emoji,
    noto color emoji,
    android emoji,
    emojisymbols,
    emojione mozilla,
    twemoji mozilla,
    segoe ui symbol;
}

.sns-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.sns-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #6b4e3d;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  background-color: rgba(245, 241, 236, 0.7);
  transition: background-color 0.3s, color 0.3s;
}

.sns-links a:hover {
  background-color: rgba(237, 231, 223, 0.7);
  color: #5d4037;
}

/* 開催情報 */
.info-section {
  margin-bottom: 4rem;
}

.info-details {
  display: grid;
  gap: 2rem;
}

.venue-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.venue-details {
  margin-bottom: 0;
}

.map-container {
  border-radius: 8px;
  overflow: hidden;
}

.official-sns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.official-sns a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #6b4e3d;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  background-color: rgba(245, 241, 236, 0.7);
  transition: background-color 0.3s, color 0.3s;
}

.official-sns a:hover {
  background-color: rgba(237, 231, 223, 0.7);
  color: #5d4037;
}

/* 作品販売情報 */
.sales-section {
  margin-bottom: 4rem;
}

.sales-intro {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 3rem;
  color: #5d4037;
  text-shadow:
    1px 1px 3px #f5f2ed,
    -1px -1px 3px #f5f2ed,
    1px -1px 3px #f5f2ed,
    -1px 1px 3px #f5f2ed,
    0px 1px 3px #f5f2ed,
    0px -1px 3px #f5f2ed,
    1px 0px 3px #f5f2ed,
    -1px 0px 3px #f5f2ed;
}

.signature-note {
  margin: 1rem 0;
  color: #b85c50;
  font-weight: 600;
  text-align: center;
}

.frame-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #8b7355;
}

/* 購入特典 */
.benefits-section {
  margin-bottom: 4rem;
}

.benefits-intro {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #5d4037;
  text-shadow:
    1px 1px 3px #f5f2ed,
    -1px -1px 3px #f5f2ed,
    1px -1px 3px #f5f2ed,
    -1px 1px 3px #f5f2ed,
    0px 1px 3px #f5f2ed,
    0px -1px 3px #f5f2ed,
    1px 0px 3px #f5f2ed,
    -1px 0px 3px #f5f2ed;
}

/* 注意事項専用スタイル */
.notice-box {
  background-color: rgba(240, 230, 214, 0.7);
  border-left: 4px solid #c19a6b;
}

.notice-box h4 {
  color: #8b5a3c;
}

.notice-box a {
  color: #7c4dff;
  text-decoration: none;
}

.notice-box a:hover {
  text-decoration: underline;
}

/* フッター */
.footer {
  background-color: #333;
  color: #f8f8f8;
  padding: 2rem 0;
  text-align: center;
}

/* TOPに戻るボタン */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: -60px;
  width: 50px;
  height: 50px;
  background-color: #b85c50;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(139, 115, 85, 0.3);
  z-index: 1000;
}

.back-to-top:hover {
  background-color: #a54b3f;
  transform: scale(1.1);
}

.back-to-top.show {
  right: 2rem;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
  .header-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .header-nav.active {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    padding: 1rem;
    z-index: 1001;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-list a {
    display: block;
    width: 100%;
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #f8f8f8;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
  }

  .nav-list a:hover,
  .nav-list a:active,
  .nav-list a:focus {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    outline: none;
  }

  /* タッチデバイス用のアクティブ状態 */
  .nav-list a:active {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(0.98);
  }

  .nav-list li:last-child a {
    border-bottom: none;
  }

  .main-visual {
    aspect-ratio: 1366/1000;
  }

  .exhibition-text {
    font-size: 1rem;
    line-height: 1.7;
    padding: 0 1.5rem;
  }

  .exhibition-band {
    padding: 1.5rem 0;
  }

  .section-title {
    font-size: 2rem;
    text-shadow:
      2px 2px 4px #f5f2ed,
      -2px -2px 4px #f5f2ed,
      2px -2px 4px #f5f2ed,
      -2px 2px 4px #f5f2ed,
      0px 2px 4px #f5f2ed,
      0px -2px 4px #f5f2ed,
      2px 0px 4px #f5f2ed,
      -2px 0px 4px #f5f2ed;
  }

  .venue-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .venue-details {
    margin-bottom: 1rem;
  }

  .photo-image {
    max-width: 100%;
  }

  .photo-placeholder {
    height: 450px;
  }

  .standard-table {
    font-size: 0.9rem;
  }

  .standard-table th,
  .standard-table td {
    padding: 0.5rem;
  }

  .container {
    padding: 0 15px;
  }

  .section-box {
    padding: 1.5rem;
  }
}


@media (max-width: 600px) {
  .standard-table {
    font-size: 0.8rem;
  }

  .standard-table th,
  .standard-table td {
    padding: 0.3rem;
  }
}



@media (max-width: 480px) {
  .header-title {
    font-size: 1.1rem;
  }

  .lead-text {
    font-size: 1.1rem;
  }

  .exhibition-text {
    font-size: 0.95rem;
    line-height: 1.6;
    padding: 0 1rem;
  }

  .exhibition-band {
    padding: 1rem 0;
  }

  .visual-text {
    font-size: 1.2rem;
    padding: 1rem;
    text-shadow:
      1px 1px 3px #f5f2ed,
      -1px -1px 3px #f5f2ed,
      1px -1px 3px #f5f2ed,
      -1px 1px 3px #f5f2ed,
      0px 1px 3px #f5f2ed,
      0px -1px 3px #f5f2ed,
      1px 0px 3px #f5f2ed,
      -1px 0px 3px #f5f2ed;
  }

  .section-title {
    font-size: 1.8rem;
    text-shadow:
      2px 2px 4px #f5f2ed,
      -2px -2px 4px #f5f2ed,
      2px -2px 4px #f5f2ed,
      -2px 2px 4px #f5f2ed,
      0px 2px 4px #f5f2ed,
      0px -2px 4px #f5f2ed,
      2px 0px 4px #f5f2ed,
      -2px 0px 4px #f5f2ed;
  }

  .standard-table {
    font-size: 0.7rem;
  }

  .standard-table th,
  .standard-table td {
    padding: 0.25rem;
  }

  .photo-image {
    max-width: 100%;
  }

  .photo-placeholder {
    height: 338px;
  }

  /* 小さな画面でのハンバーガーメニュー最適化 */
  .header-nav.active {
    padding: 0.75rem;
  }

  .nav-list a {
    padding: 0.875rem;
    font-size: 1rem;
  }

  .hamburger {
    padding: 0.5rem;
    min-width: 40px;
    min-height: 40px;
  }
}

@media (max-width: 400px) {
  .lead-text {
    font-size: 1.0rem;
  }
}