/* 髙原酒造 商品ページ固有スタイル */

/* ================================================
   商品ページ固有の変数定義
================================================ */
:root {
  --placeholder-color: #EFEFEF;
  --border-color: #EEEEEE;
  --border-color-2: #AAAAAA;
}

/* ================================================
   ページタイトルセクション
================================================ */
.page-title-section {
  width: 100%;
  height: auto;
  max-height: 600px;
  aspect-ratio: 12 / 5;
  background-image: url('../images/bg-title2.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 製造工程タイトルに背景画像を適用 */
.page-title-section#process {
  margin-top: 32px;
  aspect-ratio: 12 / 5;
  background-image: url('../images/bg-title3.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-title-section#stores {
  margin-top: 32px;
  background-image: url('../images/bg-title4.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-title {
  font-size: 28px;
  font-weight: 400;
  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;
}


/* ================================================
   コンテンツセクション
================================================ */
.content-section {
  margin: 32px 0;
  padding: 0 clamp(12px, 3vw, 20px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section-title {
  font-size: 20px;
  line-height: 28px;
  text-align: center;
  text-decoration-line: underline;
  text-decoration-color: var(--theme-color);
  text-underline-offset: 5px;
  color: #333333;
}

.section-subtitle {
  font-size: 18px;
  line-height: 21px;
  letter-spacing: 1.3px;
  text-decoration: underline;
}

/* 画像プレースホルダー */
.image-placeholder {
  width: 100%;
  height: 200px;
  background: var(--placeholder-color);
  position: relative;
}

/* テキストコンテンツ */
.text-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.text-large {
  font-size: 16px;
  line-height: 21px;
  letter-spacing: 1.3px;
}

.text-medium {
  font-size: 14px;
  line-height: 19.5px;
  letter-spacing: 1.3px;
}

/* ================================================
   製造工程セクション
================================================ */
.process-section {
  margin-top: 32px;
  padding: 0 clamp(12px, 3vw, 20px);
}

.process-section .section-title {
  font-size: 20px;
  line-height: 28px;
  text-align: center;
  text-decoration-line: underline;
  text-decoration-color: var(--theme-color);
  text-underline-offset: 5px;
  color: #333333;
}

.process-steps {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 3vw, 16px);
  align-items: center;
}

.process-step {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 500px;
  padding: clamp(12px, 4vw, 16px);
  border-radius: 8px;
  border: 1px solid #EEEEEE;
  background: white;
  transition: border-color 0.3s ease;
}

/* 画面中央に来た時のアクティブ状態 */
.process-step.active {
  border-color: var(--theme-color);
}

.process-step.active .step-header {
  color: var(--theme-color);
}

.step-header {
  font-weight: 600;
  padding: 0;
  display: flex;
  align-items: center;
  gap: clamp(8px, 2vw, 16px);
  overflow: hidden;
}

.step-number {
  font-size: clamp(12px, 3.5vw, 16px);
  line-height: 1.6;
  letter-spacing: 1px;
  text-align: center;
  flex-shrink: 0;
}

.step-title {
  font-size: clamp(12px, 3.5vw, 16px);
  line-height: 1.6;
  letter-spacing: 1px;
  flex: 1;
}

.step-content {
  display: flex;
  gap: clamp(8px, 2.5vw, 16px);
  align-items: flex-start;
}

.step-description {
  flex: 1;
  min-width: 0;
  height: auto;
  min-height: auto;
  padding: 0;
  overflow: visible;
  display: flex;
  align-items: flex-start;
}

.step-description p {
  font-size: clamp(11px, 3vw, 14px);
  line-height: 1.5;
  letter-spacing: 0.5px;
}

.step-image {
  flex: 0 0 auto;
  width: clamp(120px, 35vw, 180px);
  max-width: 45%;
  height: auto;
  aspect-ratio: 180 / 135;
}

.step-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}

/* ================================================
   店舗紹介セクション
================================================ */
.stores-intro {
  padding: 12px;
  background: var(--bg-beige);
  text-align: left;
}

.stores-intro p {
  font-size: 14px;
  line-height: 19.5px;
  letter-spacing: 1.3px;
}

/* 店舗カード */
.store-card {
  padding: 16px;
  background: white;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

/* 店舗カードのコンテナ（768px以上で2列レイアウト用） */
.content-section > .store-card {
  width: 100%;
}

/* 店舗情報部分 */
.store-info {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px 8px;
  align-items: start;
}

.store-name {
  color: var(--theme-color);
  grid-column: 1 / -1;
  padding: 10px 0;
  font-size: 16px;
  line-height: 21px;
  letter-spacing: 0.18px;
}

.store-info-row,
.store-address-row {
  display: contents;
}

.store-info-label {
  width: auto;
  min-height: 24px;
  background: var(--theme-color);
  border-radius: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4px 10px;
  white-space: nowrap;
}

.store-info-label span {
  font-size: 13px;
  line-height: 15.6px;
  letter-spacing: 1.3px;
  font-weight: 500;
  color: white;
}

.store-info-value {
  flex: 1;
  font-size: 13px;
  line-height: 19.2px;
  letter-spacing: 1.3px;
  font-weight: 500;
  word-break: break-word;
  overflow-wrap: break-word;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border-color-2);
}

.store-info-value a {
  color: var(--theme-color);
  text-decoration: none;
  word-break: break-word;
  overflow-wrap: break-word;
}

.store-info-value a:hover {
  text-decoration: underline;
}

.store-address-row .store-info-value {
  border-bottom: none;
}

.map-container {
  width: 100%;
  height: 200px;
  border-radius: 4px;
  overflow: hidden;
}

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

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

/* 375px未満 */
@media (max-width: 374px) {
  .page-title {
    font-size: 24px;
  }
  
  /* 375px未満ではys-titleの改行がデフォルトで表示される */
}

/* 576px以上768px未満 */
@media (min-width: 576px) and (max-width: 767px) {
  .page-title {
    font-size: 36px;
  }
}

@media (min-width: 768px) {
  /* タブレット以上 */

  .page-title-section#process,
  .page-title-section#stores {
    margin-top: 56px;
  }

  .page-title {
    font-size: 48px;
  }

  .content-section {
	padding: 0 16px;
    max-width: 1100px;
    margin: 56px auto ;
  }

  /* 直売所・取扱店介紹セクションのみ2列レイアウト */
  #stores + .content-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  #stores + .content-section .section-title,
  #stores + .content-section .stores-intro {
    grid-column: 1 / -1;
  }
	
  #stores + .content-section .section-title {
	font-size: 30px;
    line-height: 42px;
    letter-spacing: 4px;	
	}

  .process-section {
    max-width: 1000px;
    margin: 56px auto 0;
	padding: 0 16px;
  }

  .process-section .section-title {
	font-size: 30px;
    line-height: 42px;
    letter-spacing: 4px;
  }

  .process-steps {
	margin-top: 40px;
    padding: 0;
    gap: 40px;
    align-items: stretch;
  }

  .process-step {
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #EEEEEE;
    gap: 16px;
    max-width: none;
    transition: border-color 0.3s ease;
  }

  /* PCサイズのアクティブ状態 */
  .process-step.active {
    border-color: var(--theme-color);
  }

  .process-step.active .step-header {
    color: var(--theme-color);
  }

  .step-header {
    padding: 0;
    gap: 16px;
  }

  .step-number {
    font-size: 20px;
    line-height: 28px;
    letter-spacing: 0;
  }

  .step-title {
    font-size: 20px;
    line-height: 28px;
    letter-spacing: 0;
  }

  .step-content {
    gap: 16px;
    justify-content: flex-start;
  }

  .step-description {
    flex: 1;
    width: auto;
    min-width: 200px;
    max-width: none;
    height: auto;
    min-height: 200px;
    padding: 0;
    overflow: visible;
  }

  .step-description p {
    font-size: 16px;
    line-height: 33px;
    letter-spacing: 1.5px;
  }

  .step-image {
    flex: 0 0 auto;
    width: clamp(280px, 40%, 359px);
    height: auto;
    aspect-ratio: 359 / 269;
  }

  .step-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
	
}

@media (min-width: 1024px) {

  .store-card {
    padding: 24px;
  }

  .map-container {
    height: 250px;
  }

  .page-title {
    font-size: 56px;
  }
}

/* ================================================
   油木のしずくセクション
================================================ */

/* モバイルスタイル（デフォルト） */
.yukinoshizuku-section {
  padding: 0 clamp(12px, 3vw, 20px); 
  max-width: 1100px;
  margin: 32px auto 0;
  display: flex;
  flex-direction: column;
  gap: 48px;
	
	
}

.ys-block {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.ys-title {
  font-size: 20px;
  line-height: 28px;
  text-align: center;
  text-decoration-line: underline;
  text-decoration-color: var(--theme-color);
  text-underline-offset: 5px;
  color: #333333;
}

/* 375px以上では改行を非表示 */
@media (min-width: 375px) {
  .ys-title .br-mobile {
    display: none;
  }
}

.ys-subtitle {
  font-size: 18px;
  font-weight: 400;
  line-height: 21px;
  letter-spacing: 1.3px;
  color: var(--theme-color);
}

.ys-subtitle-inline {
  font-size: 18px;
  font-weight: 400;
  line-height: 21px;
  letter-spacing: 1.3px;
  text-decoration: underline;
  color: #333333;
  text-align: center;
}

.ys-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ys-image {
  width: 100%;
  background: var(--placeholder-color);
}

/* モバイル時の画像比率設定 */
@media (max-width: 767px) {
  /* 1個目のys-block: 3:2の比率 */
  .ys-first-wrapper .ys-block:nth-child(1) .ys-image {
    aspect-ratio: 3 / 2;
  }
  
  .ys-first-wrapper {
	display: flex;
	flex-direction: column;
	gap: 24px;
	}
	
	.ys-first-wrapper .ys-block:nth-child(1) .ys-text-box {
		padding: 0 12px 12px;
	}
	
	.ys-first-wrapper .ys-block:nth-child(2) .ys-text-box {
		padding: 0 12px 12px;
	}

  /* 2個目のys-block: 3:2の比率 */
  .ys-first-wrapper .ys-block:nth-child(2) .ys-image {
    aspect-ratio: 3 / 2;
  }

  /* 3個目のys-block: 5:4の比率 */
  .yukinoshizuku-section > .ys-block:nth-child(2) .ys-image {
    aspect-ratio: 5 / 4;
  }

  /* 4個目のys-block: 2:1の比率 */
  .yukinoshizuku-section > .ys-block:nth-child(3) .ys-image {
    aspect-ratio: 2 / 1;
  }
	
	  .ys-layout-horizontal {
	background: white;
  }
}

.ys-text-box { 
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ys-highlight {
  font-size: 16px;
  font-weight: 400;
  line-height: 21px;
  letter-spacing: 1.3px;
  color: var(--theme-color);
}

.ys-body {
  font-size: 14px;
  font-weight: 400;
  line-height: 19.5px;
  letter-spacing: 1.3px;
  color: #333333;
}

/* PCスタイル（768px以上） */
@media (min-width: 768px) {
  .yukinoshizuku-section {
	margin: 56px auto 0;
    gap: 64px;
  }

  .ys-block {
	padding: 16px 16px;
    gap: 40px;
  }

  .ys-title {
    font-size: 30px;
    line-height: 42px;
    letter-spacing: 4px;
  }

  .ys-subtitle {
    font-size: 20px;
    line-height: 33px;
    letter-spacing: 1.5px;
    color: var(--theme-color);
  }

  .ys-subtitle-inline {
    font-size: 20px;
    line-height: 33px;
    letter-spacing: 1.5px;
    text-align: left;
  }

  /* 横並びレイアウト */
  .ys-layout-horizontal {
    flex-direction: row;
    align-items: stretch;
    background: white;
  }

  .ys-layout-horizontal .ys-image {
    flex: 1 1 45%;
    min-width: 300px;
    height: auto;
  }

  /* 1個目のys-blockの画像比率を保持 */
  .ys-first-wrapper .ys-block:nth-child(1) .ys-layout-horizontal .ys-image {
    aspect-ratio: 512 / 387;
  }

  /* 2個目のys-blockの画像比率を保持 */
  .ys-first-wrapper .ys-block:nth-child(2) .ys-layout-horizontal .ys-image {
    aspect-ratio: 512 / 420;
  }

  .ys-layout-horizontal .ys-text-box {
    flex: 1 1 55%;
    min-width: 320px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  /* 逆順（テキストが左、画像が右） */
  .ys-layout-horizontal.ys-reverse {
    flex-direction: row-reverse;
  }

  /* 縦並びレイアウト */
  .ys-layout-vertical {
    flex-direction: column;
  }

  .ys-layout-vertical .ys-text-box {
    gap: 16px;
  }

  .ys-layout-vertical .ys-image {
    width: 100%;
    margin: 0 auto;
  }

  /* 3個目のys-block: 5:4の比率 (.yukinoshizuku-sectionの2番目の子要素) */
  .yukinoshizuku-section > .ys-block:nth-child(2) .ys-image.ys-image-large {
    aspect-ratio: 5 / 4;
    height: auto;
  }

  /* 4個目のys-block: 2:1の比率 (.yukinoshizuku-sectionの3番目の子要素) */
  .yukinoshizuku-section > .ys-block:nth-child(3) .ys-image {
    aspect-ratio: 2 / 1;
    height: auto;
  }

  .ys-highlight {
    font-size: 20px;
    line-height: 33px;
    letter-spacing: 1.5px;
    color: var(--theme-color);
  }

  .ys-body {
    font-size: 16px;
    line-height: 33px;
    letter-spacing: 1.5px;
  }
	
	.stores-intro {
  text-align: center;
  padding: 16px;
}

.stores-intro p {
  font-size: 16px;
  line-height: 33px;
  letter-spacing: 1.5px;
}
	
.store-name {
  font-size: 20px;
  line-height: 30px;
  letter-spacing: 1.5px;
}
}
