/* 変数定義 */
:root {
  --color-background: #F7F7F5;
  --color-text: #000000;
  --color-accent: #c8ae8b;
  --color-title: #000000;
  --color-highlight: #FFFFFF;
  --color-border: #c8ae8b;

  --font-base-size: 18.5px;
  --font-title-size: 18px;
  --font-subtitle-size: 16px;
  
  --content-width: 800px;
  --content-padding: 1.8%;
  --content-padding-2: 6.25%;
  --content-padding-3: 7.8%;
  --content-padding-4: 7.5%;
  --title-spacing: 10px;
  --subtitle-spacing: 40px;
  --section-spacing: 5%;
  --section-spacing-2: 2.5%;
}

/* ベーススタイル */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: "小塚明朝 Pr6N", "Noto Serif JP", serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-weight: 500;
  font-size: var(--font-base-size);
  line-height: 1.6;
  color: var(--color-text);
  overflow-x: hidden;
  background-color: var(--color-background);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a:focus {
  outline: 2px solid #000;
  outline-offset: 2px;
}

li {
  list-style: none;
}


/* レイアウト */
.product {
  max-width: var(--content-width);
  margin: 0 auto;
  overflow-x: hidden;
  padding-top: 5vw;
}

/* ヘッダー装飾 */
.product__decoration-image {
  width: 100%;
  height: auto;
}

/* メインヘッダー */
.product__header {
  margin-bottom: var(--title-spacing);
  padding: 0 var(--content-padding);
}

.product__header--fv{
  margin-bottom: 5%;
}

.product__title-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* サブヘッダー */
.product__subheader {
  margin-bottom: var(--subtitle-spacing);
  display: flex;
  position: relative;
  padding-right: 3.75%;
  padding-left: 3.75%;
}

/* サブヘッダー Gap variations */
.gap--small  { gap: 1.25%; }
.gap--medium { gap: 3.75%; }
.gap--large  { gap: 5%; }

/* サブヘッダー Justify variations */
.justify--end    { justify-content: flex-end; }
.justify--center { justify-content: center; }

/* サブヘッダー Align variations */
.align--bottom { align-items: flex-end; }
.align--middle { align-items: center; }

/* サブヘッダー h2 width variations */
.h2-width--75 h2 { width: 75%; }
.h2-width--73 h2 { width: 73%; }
.h2-width--60 h2 { width: 60%; }

/* サブヘッダー Margin-top variations */
.margin-top--30 { margin-top: 30px; }

/* 丸型申し込みボタンのスタイル */
.product__order-button {
  display: inline-block;
  width: 19vw;
  height: 19vw;
  max-width: 150px;
  max-height: 150px;
  background-color: #beaa73;
  border-radius: 50%;
  text-decoration: none;
  text-align: center;
  color: #000;
  font-family: "Noto Serif JP", serif;
  font-weight: 900;
  position: relative;
  border: 1px solid #000;
  box-shadow: 0 0 10px rgba(145, 115, 80, 0.8);
  transition: all 0.3s ease;
}

/* ホバー時のエフェクト */
.product__order-button:hover {
  transform: translateY(-3px);
  background-color:#000;
  color: var(--color-accent);
}

/* ボタン内のコンテンツを中央配置 */
.product__order-button-content {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
}

/* テキストのスタイル */
.product .product__order-button-content span {
  font-size:20px;
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  line-height: 1.4;
  word-wrap: break-word;
  white-space: nowrap;
  max-width: 82%;
  display: inline-block;
}

/* 商品画像 */
.product__image-wrapper {
  margin-bottom: var(--section-spacing-2);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  padding: 0 var(--content-padding-2);
}

.product__image-wrapper--wide-margin {
  margin-bottom: var(--section-spacing);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  padding: 0 var(--content-padding-2);
}

.product__image {
  width: 100%;
}

/* 商品説明文 */
.product__description {
  margin-bottom: var(--section-spacing);
  padding: 0 var(--content-padding-4);
}

.product__description--narrow-margin {
  margin-bottom: var(--section-spacing-2);
  padding: 0 var(--content-padding-4);
}

.product__description--narrow-padding {
  margin-bottom: var(--section-spacing);
  padding: 0 var(--content-padding-2);
}

.description__block{
  margin-bottom: 1.5em;
}

.description__block--last .product__text {
  margin-bottom: 0;
}

.product__text {
  text-indent: 1em;
}

.product__text--center {
  text-align: center;
  background-color: #fff;
}

.product__text--no-indent {
  text-align: left;
  text-indent: 0;
}

/* お申し込みボタン */
.product__order-apply {
  margin-bottom: 40px;
  padding: 0 var(--content-padding-2);
}

/* メディアクエリ - 768px以下の場合 */
@media screen and (max-width: 768px) {
  :root {
    --font-base-size: 18px;
    --font-title-size: 20px;
    --font-subtitle-size: 18px;
  }
  
  .product__title-wrapper {
    flex-direction: column;
  }
  
  .product__subheader {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 2%;
    padding-left: 2%;
  }

  .product__order-button{
    width: 23vw;
    height: 23vw;
  }

  .product__order-button-content{
    line-height: 1;
  }

  .product .product__order-button-content span {
    font-size: calc(10px + (16 - 10) * ((100vw - 320px) / (768 - 320)));
    line-height: 1.2;
  }

  .product__subheader h2{
    width: 75%;
  }

}