/* 髙原酒造 トップページ固有スタイル */

/* ================================================
   ヒーロー画像
================================================ */
.hero-image {
  width: 100%;
  aspect-ratio: 1.5 / 1;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
}

/* ヒーロー画像以外のすべてのセクションに上部マージンを追加 */
section:not(.hero-image) {
  margin-top: 32px;
}

.hero-front-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: absolute;
  top: 0;
  left: 0;
}

/* アニメーション用に2番目、3番目の画像を重ねる */
.hero-image-2 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image-3 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 画像のフェードアニメーション */
.hero-image-1 {
  animation: fadeInOut1 24s ease-in-out infinite;
}

.hero-image-2 {
  animation: fadeInOut2 24s ease-in-out infinite;
}

.hero-image-3 {
  animation: fadeInOut3 24s ease-in-out infinite;
}

@keyframes fadeInOut1 {
  0% { opacity: 1; }
  29.17% { opacity: 1; }
  33.33% { opacity: 0; }
  95.83% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes fadeInOut2 {
  0% { opacity: 0; }
  29.17% { opacity: 0; }
  33.33% { opacity: 1; }
  62.5% { opacity: 1; }
  66.67% { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes fadeInOut3 {
  0% { opacity: 0; }
  62.5% { opacity: 0; }
  66.67% { opacity: 1; }
  95.83% { opacity: 1; }
  100% { opacity: 0; }
}

/* ================================================
   お知らせセクション
================================================ */
.news-section {
  padding: 0 clamp(12px, 3vw, 20px);
}

.news-outer {
  padding: 8px;
  background: var(--bg-green);
  box-shadow: inset 0 0 0 1px var(--theme-color), inset 0 0 0 2.5px var(--theme-color);
}

.news-inner {
  padding: 8px;
  background: var(--bg-beige);
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: inset 0 0 0 1px white, inset 0 0 0 2.5px white;
}

.news-title {
  font-size: 24px;
  padding-bottom: 8px;
  border-bottom: 1px solid white;
}

.news-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 8px 0;
}

.news-date {
  font-size: 14px;
  line-height: 20.8px;
  letter-spacing: 1.3px;
  white-space: nowrap;
  flex-shrink: 0;
}

.news-text {
  font-size: 14px;
  line-height: 20.8px;
  letter-spacing: 1.3px;
  flex: 1;
}

/* ================================================
   どぶろく特区セクション
================================================ */
.about-section {
  padding: 24px clamp(12px, 3vw, 20px);
  background-image: url('../images/bg-title01.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.about-catchphrase {
  font-size: 20px;
  line-height: 28px;
  letter-spacing: 1px;
  color: #ffffff;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-text {
  font-size: 14px;
  line-height: 19.5px;
  letter-spacing: 1.3px;
  color: #ffffff;
}

/* ================================================
   画像ギャラリー
================================================ */
.image-gallery {
  display: flex;
  flex-direction: column;
  padding: 0 clamp(12px, 3vw, 20px);
  gap: 16px;
}

.gallery-image {
  width: 100%;
  height: auto;
  position: relative;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.gallery-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
  transition: opacity 0.3s ease;
}

.gallery-image:hover::before {
  opacity: 0;
}

.gallery-image img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: 400;
  text-align: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: #007d00;
  text-shadow: #fff 0px 0px 1px, #fff 0px 0px 2px, #fff 0px 0px 3px, #fff 0px 0px 4px, #fff 0px 0px 5px, #fff 0px 0px 6px;
  width: 100%;
  padding: 0 16px;
  z-index: 2;
  white-space: nowrap;
}

/* ================================================
   直売所案内セクション
================================================ */
.store-section {
  padding: 0 clamp(12px, 3vw, 20px);
}

.store-outer {
  padding: 8px;
  box-shadow: inset 0 0 0 1px var(--theme-color), inset 0 0 0 2.5px var(--theme-color);
  background: var(--bg-beige);
}

.store-inner {
  padding: 8px;
  background: var(--bg-beige);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  box-shadow: inset 0 0 0 1px white, inset 0 0 0 2.5px white;
}

.store-title {
  color: #333;
  text-align: center;
  font-family: "Noto Serif JP";
  font-size: 20px;
  font-weight: 400;
  line-height: 140%;
  letter-spacing: 0.1em;
  text-decoration-line: underline;
  text-decoration-color: var(--theme-color);
  text-underline-offset: 5px;
  width: 100%;
}

.store-content-grid {
  display: block;
  width: 100%;
}

.store-left-content {
  width: 100%;
  margin-bottom: 0;
}

.store-description {
  font-size: 13px;
  line-height: 19.5px;
  letter-spacing: 1.3px;
  text-align: left;
}

.store-address {
  width: 100%;
  padding: 16px;
  background: white;
  font-size: 13px;
  line-height: 19.5px;
  letter-spacing: 1.3px;
  margin-top: 16px;
}

.store-link-wrapper {
  margin-top: 32px;
  width: 100%;
}

.store-link-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px;
  background: #FFEBCA;
  border: 2px solid var(--theme-color);
  text-align: center;
  font-size: 13px;
  line-height: 18px;
  letter-spacing: 1.2px;
  text-decoration: none;
  color: #333333;
  min-height: 40px;
  transition: opacity 0.3s ease;
}

/* モバイル: タップ時 */
@media (max-width: 767px) {
  .store-link-button:active {
    opacity: 0.6;
  }
}

/* PC: ホバー＆クリック時 */
@media (min-width: 768px) {
  .store-link-button:hover,
  .store-link-button:active {
    opacity: 0.6;
  }
}

.store-link-button span {
  display: inline;
}

.store-map {
  width: 100%;
  height: 160px;
  margin-top: 16px;
  background: var(--bg-gray);
}

.store-map iframe {
  width: 100%;
  height: 100%;
  display: block;
}

/* ================================================
   レスポンシブ対応
================================================ */

@media (min-width: 375px) {
  
  /* 画像ギャラリー */
  .gallery-title {
    font-size: 1.7rem;
  }
}

/* 小型タブレット・大型スマホ（576px〜） */
@media (min-width: 576px) {
  
  /* 画像ギャラリー */
  .gallery-title {
    font-size: 2.8rem;
  }
}

/* PC・タブレット対応（768px〜） */
@media (min-width: 768px) {

  /* ヒーロー画像 */
  .hero-image {
    aspect-ratio: auto;
    height: auto;
    position: relative;
  }

  .hero-front-image {
    position: static;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
  }

  .hero-image-1 {
    position: static;
    display: block;
  }

  .hero-image-2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .hero-image-3 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  /* PCではヒーロー画像以外のセクションに56pxのマージン */
  section:not(.hero-image) {
    margin-top: 56px;
  }

  /* お知らせセクション */
  .news-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(24px, calc(24px + (64 - 24) * ((100vw - 768px) / (1280 - 768))), 64px);
  }

  .news-outer {
    padding: 16px;
    background: var(--bg-beige);
    height: auto;
  }

  .news-inner {
    padding: 8px;
    flex-direction: row;
    gap: 32px;
    align-items: stretch;
  }

  .news-title {
    flex: 0 0 auto;
    min-width: 258px;
    max-width: 322px;
    font-size: 30px;
    line-height: 1;
    border-bottom: none;
    border-right: 2px solid white;
    padding: 32px 64px 64px 32px;
    display: flex;
    align-items: flex-start;
  }

  .news-items-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 32px 0 64px;
  }

  .news-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 0;
  }

  .news-date {
    font-size: 20px;
    font-family: 'Times New Roman', serif;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .news-text {
    margin-top: -4px;
    flex: 1;
    font-size: 20px;
    line-height: 28px;
  }

  /* どぶろく特区セクション */
  .about-section {
    padding: 64px;
  }

  .about-catchphrase {
    font-size: 32px;
    line-height: 42px;
    letter-spacing: 2px;
    color: #ffffff;
  }

  .about-text {
    font-size: 16px;
    line-height: 33px;
    letter-spacing: 1.5px;
    color: #ffffff;
    max-width: 800px;
  }

  /* 画像ギャラリー */
  .image-gallery {
    max-width: 1280px;
    margin: 0 auto;
    flex-direction: row;
    padding: 0 clamp(24px, calc(24px + (64 - 24) * ((100vw - 768px) / (1280 - 768))), 64px);
    gap: 32px;
  }

  .gallery-image {
    flex: 1;
    height: auto;
  }

  .gallery-title {
    font-size: 1.5rem;
  }

  /* 直売所セクション */
  .store-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(24px, calc(24px + (64 - 24) * ((100vw - 768px) / (1280 - 768))), 64px);
  }

  .store-outer {
    padding: 16px;
    background: var(--bg-beige);
  }

  .store-inner {
    padding: 48px;
    background: var(--bg-beige);
  }

  .store-title {
    font-size: 32px;
    line-height: 42px;
    letter-spacing: 4px;
    margin-bottom: 40px;
  }

  .store-content-grid {
    display: flex;
    gap: 12px;
    align-items: stretch;
  }

  .store-left-content {
    flex: 0 0 auto;
    width: 50%;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: center;
  }

  .store-description {
    font-size: 16px;
    line-height: 33px;
    letter-spacing: 1.5px;
    text-align: center;
    margin-top: -10px;
  }

  .store-address {
    width: auto;
    max-width: 503px;
    margin: 0;
    font-size: 15px;
    line-height: 33px;
    letter-spacing: 1.5px;
    text-align: center;
  }

  .store-link-wrapper {
    margin: 0;
    width: auto;
  }

  .store-link-button {
    width: auto;
    max-width: 503px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 33px;
    letter-spacing: 1.4px;
    padding: 12px;
  }

  .store-map {
    flex: 1;
    height: auto;
    min-height: 400px;
    margin-top: 0;
    align-self: stretch;
  }
}

/* 大型サイズ（1280px～） */
@media (min-width: 1280px) {

  /* 画像ギャラリー */
  .gallery-title {
    font-size: 2.5rem;
  }
}
