/* 髙原酒造について・お問い合わせページ固有スタイル */

/* ================================================
   about.html固有の変数定義
================================================ */
:root {
  --placeholder-color: #EFEFEF;
  --border-color: #EEEEEE;
  --border-color-2: #AAAAAA;
  --border-input: #DDDDDD;
  --required-color: #FF4F4F;
  --optional-color: #BBBBBB;
  --note-color: #333333;
}

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

.page-title-section#contact {
  width: 100%;
  height: auto;
  max-height: 600px;
  aspect-ratio: 12 / 5;
  background-image: url('../images/bg-title5.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
}

.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 {
  max-width: 1100px;
  padding: 0 clamp(12px, 3vw, 20px);
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 32px auto;
}

.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;
}

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

.story-headline {
  font-size: 18px;
  font-weight: 400;
  line-height: 25.2px;
  color: var(--theme-color);
}

.story-text {
  font-size: 14px;
  font-weight: 400;
  line-height: 20.8px;
  letter-spacing: 1.3px;
  color: #333333;
}

/* 画像ギャラリー - モバイル */
.image-gallery {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gallery-main {
  width: 100%;
  aspect-ratio: 335 / 223;
  background: var(--placeholder-color);
  overflow: hidden;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-sub {
  display: flex;
  gap: 8px;
}

.gallery-sub-item {
  flex: 1;
  aspect-ratio: 168 / 112;
  background: var(--placeholder-color);
  overflow: hidden;
}

.gallery-sub-item:last-child {
  aspect-ratio: 151 / 112;
}

.gallery-sub-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ================================================
   酒造所概要
================================================ */
.brewery-info-section {
  max-width: 1100px;
  margin: 0 auto 32px;
  padding: 0 clamp(12px, 3vw, 20px);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.brewery-info-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;
}

.brewery-info-table {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-row {
  display: flex;
  align-items: stretch;
  min-height: 32px;
  position: relative;
  background: white;
}

.info-label {
  width: 120px;
  min-height: 32px;
  padding: 2px 4px;
  background: var(--theme-color);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-size: 14px;
  line-height: 19.6px;
  color: white;
  font-weight: 400;
  position: relative;
}

.info-label::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 0 8px 8px;
  border-color: transparent transparent transparent var(--theme-color);
}

.info-value {
  flex: 1;
  min-height: 32px;
  padding: 6px 0 6px 20px;
  font-size: 12px;
  line-height: 16.8px;
  color: #333333;
  font-weight: 400;
}

/* Googleマップ */
.map-section {
  width: 100%;
  height: 480px;
  background: var(--placeholder-color);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.map-section iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ================================================
   フォームセクションラッパー
================================================ */
.form-sections-wrapper {
  max-width: 1110px;
  margin: 32px auto;
  padding: 0 clamp(12px, 3vw, 20px);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ================================================
   お問い合わせセクション
================================================ */
.contact-intro {
  padding: 24px 0;
}

.contact-info-text {
  font-size: 18px;
  line-height: 25.2px;
  color: var(--theme-color);
}

.contact-note {
  font-size: 14px;
  line-height: 20.8px;
  letter-spacing: 1.3px;
}

.contact-phone-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  padding: 16px;
  background: var(--bg-beige);
}

.phone-button {
  width: max-content;
  padding: 0 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--theme-color);
  
}

.phone-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-icon::before {
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  content: "\f879";
  color: var(--theme-color);
  font-size: 20px;
}

.phone-hours{
	display: flex;
	flex-direction: column;
	gap:4px;
}

.phone-number {
  font-family: 'Lato', sans-serif;
  font-size: 28px;
  line-height: 25.2px;
  letter-spacing: 1.3px;
  font-weight: 900;
}

.business-hours {
  text-align: center;
  font-size: 14px;
  line-height: 19.5px;
  letter-spacing: 1.3px;
}

/* ================================================
   お問い合わせフォーム
================================================ */
.form-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-title {
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  text-align: center;
  padding-bottom: 7px;
  border-bottom: 2px solid var(--theme-color);
}

.form-description {
  text-align: center;
}

.form-description p {
  margin: 0;
  font-size: 13px;
  line-height: 19.5px;
  letter-spacing: 1.3px;
}

.form-description strong {
  font-weight: 700;
}

/* フォーム本体 */
.form-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 8px;
}

.form-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field {
  padding: 4px 0;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.field-label {
  padding: 6px 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge-required {
  width: 34px;
  height: 24px;
  background: var(--required-color);
  border-radius: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 12px;
  line-height: 16.8px;
}

.badge-optional {
  width: 34px;
  height: 24px;
  background: var(--optional-color);
  border-radius: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 12px;
  line-height: 16.8px;
}

.label-text {
  font-size: 14px;
  line-height: 16.8px;
  padding: 3px 0;
}

.field-input {
  padding: 0 4px;
}

.field-input input {
  width: 100% !important;
  height: 32px;
  border-radius: 4px;
  border: 1px solid var(--border-input);
  padding: 8px;
  font-size: 14px;
  font-family: 'Noto Serif JP', serif;
}

.field-input input:focus {
  outline: none;
  border-color: var(--theme-color);
}

/* エラー時のスタイル */
.field-input input[style*="background-color: rgb(255, 238, 238)"] {
  border-color: #ED594E !important;
  color: #333333 !important;
}

.field-input textarea {
  width: 100% !important;
  height: 152px !important;
  border-radius: 4px;
  border: 1px solid var(--border-input);
  padding: 8px;
  font-size: 14px;
  font-family: 'Noto Serif JP', serif;
  resize: vertical;
}

.field-input textarea:focus {
  outline: none;
  border-color: var(--theme-color);
}

/* エラー時のスタイル */
.field-input textarea[style*="background-color: rgb(255, 238, 238)"] {
  border-color: #ED594E !important;
  color: #333333 !important;
}

/* 送信ボタン */
.submit-button {
  width: 240px;
  color: #fff;
  height: 64px;
  padding: 8px;
  background: #007D00;
  border: 2px solid #007D00;
  border-radius: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  margin: 0 auto;
}

.submit-button:hover {
	background: #fff;
	color: #007D00;
}

.submit-button:active {
	background: #fff;
	color: #007D00;
	
}

/* メディアクエリは外に書く */
@media (max-width: 375px) {
  .submit-button {
    width: 200px;
  }
}


  

.submit-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.submit-icon::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f0e0";
  font-style: normal;
}

.submit-text {
  font-size: 18px;
  line-height: 25.2px;
  letter-spacing: 1.3px;
  font-weight: 700;
  font-family: Arial, sans-serif;
}

@media (max-width: 375px) {
  .submit-text {
    font-size: 16px;
  }
}

/* フォーム注意書き */
.form-notes {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
  font-size: 11px;
  line-height: 16.8px;
  color: var(--note-color);
  margin: 0 auto;
}

.form-notes p {
  margin: 0;
}

/* ================================================
   個人情報保護方針
================================================ */
.privacy-section {
  margin-top: 0;
}

.privacy-header {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.privacy-title {
  font-size: 20px;
  line-height: 28px;
  text-align: center;
  text-decoration: underline;
}

.privacy-intro {
  font-size: 15px;
  line-height: 19.5px;
  letter-spacing: 1.3px;
  color: var(--note-color);
}

.privacy-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.privacy-item {
  padding: 4px 0;
  border-bottom: dotted 1px #b6ae83;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.privacy-item-title {
  font-size: 16px;
  line-height: 20.8px;
  letter-spacing: 1.3px;
  color: var(--theme-color);
}

.privacy-item-text {
  font-size: 15px;
  line-height: 24px;
  letter-spacing: 1.3px;
  color: var(--note-color);
}

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

/* 375px未満 */
@media (max-width: 374px) {
  .page-title {
    font-size: 24px;
  }
}

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

@media (min-width: 768px) {

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

  /* コンテンツセクション - 768px以上 */
  .content-section {
	margin: 56px auto 56px;
    gap: 40px;
  }

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

  .story-content {
    gap: 10px;
  }

  .story-headline {
    font-size: 20px;
    line-height: 33px;
    letter-spacing: 1.5px;
    text-align: center;
    display: flex;
    justify-content: center;
  }

  .story-text {
    font-size: 16px;
    line-height: 33px;
    letter-spacing: 1.5px;
  }

  /* 画像ギャラリー - PCは3枚横並び */
  .image-gallery {
    flex-direction: row;
    gap: 32px;
    justify-content: center;
    align-items: stretch;
  }

  .gallery-main {
    flex: 1 1 0;
    min-width: 0;
    aspect-ratio: 325 / 236;
  }

  .gallery-sub {
    flex: 2 1 0;
    display: flex;
    flex-direction: row;
    gap: 32px;
    min-width: 0;
  }

  .gallery-sub-item {
    flex: 1 1 0;
    min-width: 0;
    aspect-ratio: 325 / 236;
  }

  .gallery-sub-item:last-child {
    aspect-ratio: 326 / 236;
  }

  /* 酒造所概要セクション - 768px以上 */
  .brewery-info-section {
    gap: 40px;
	margin: 0 auto 56px;
  }

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

  .brewery-info-table {
    gap: 12px;
  }

  .info-label {
    padding: 2px 8px;
    font-size: 16px;
    line-height: 33px;
    letter-spacing: 1.5px;
  }

  .info-label::after {
    right: -10px;
    border-width: 10px 0 10px 10px;
  }

  .info-value {
    font-size: 16px;
    line-height: 33px;
    letter-spacing: 1.5px;
  }

  .map-section {
    height: 461px;
  }

  /* フォームセクションラッパー - PC */
  .form-sections-wrapper {
	margin: 56px auto;
    gap: 64px;
  }

  /* お問い合わせイントロ - PC */
  .contact-intro {
    padding: 0;
  }

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

  .contact-phone-section {
    gap: 20px;
  }

  .contact-info-text {
    font-size: 20px;
    line-height: 33px;
    letter-spacing: 1.5px;
    text-align: center;
  }

  .contact-note {
    font-size: 16px;
    line-height: 33px;
    letter-spacing: 1.5px;
    text-align: center;
  }

  .phone-number {
    font-size: 40px;
    line-height: 56px;
    letter-spacing: 1.3px;
  }

  .business-hours {
    font-size: 16px;
    line-height: 19.5px;
    letter-spacing: 1.5px;
  }

  /* フォームセクション - PC */
  .form-section {
    padding: 0;
  }

  .form-title {
    font-size: 20px;
    line-height: 28px;
	padding-bottom: 14px;
  }

  .form-description {
    font-size: 20px;
    line-height: 33px;
    letter-spacing: 1px;
  }

  .form-description p {
    font-size: 20px;
    line-height: 33px;
    letter-spacing: 1px;
  }

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

  .field-label .label-text {
    font-size: 16px;
    line-height: 33px;
    letter-spacing: 1.5px;
  }

  .submit-button {
    width: 300px;
  }

  .form-notes {
    font-size: 12px;
    line-height: 33px;
    letter-spacing: 1.5px;
    max-width: 100%;
  }

  /* 個人情報保護方針 - PC */
  .privacy-section {
    padding: 0;
  }

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

@media (min-width: 768px) {

  .form-fields {
	min-width: 720px;
    margin: 0 auto;
  }
  .phone-icon::before {
  font-size: 32px;
}
	
	.phone-button {
  gap: 8px;
  
}
	.phone-number {
  font-size: 40px;
}
	
	.privacy-item-title {
  font-size: 16px;
  line-height: 20.8px;
  letter-spacing: 1.5px;
  color: var(--theme-color);
}

.privacy-item-text {
  font-size: 15px;
  line-height: 24px;
  letter-spacing: 1.5px;
  color: var(--note-color);
}
	
	.privacy-title {
  font-size: 20px;
  line-height: 28px;
  text-align: center;
  text-decoration: underline;
}

.privacy-intro {
  font-size: 15px;
  line-height: 33px;
  letter-spacing: 1.5px;
  color: var(--note-color);
}

.privacy-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}
}

/* 1024px以上 */
@media (min-width: 1024px) {
  .page-title {
    font-size: 56px;
  }
}
