/* ==========================================
   背景・レイアウト
========================================== */

:root {
  --primary-color: #0f6f47;
  /* ブランドのキーカラー */
}

.wrapping-box {
  max-width: 1000px;
  margin: 0 auto;
  padding: 30px;
  background: #fff;
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wrapping-box img {
  display: block;
  height: auto;
}

.section-box {
  margin-bottom: 100px;
}

/*見出し*/
.heading-wrapping {
  color: #0f6f47;
  font-weight: 700;
  font-size: 2.48rem;
  letter-spacing: .04em;
  text-align: center;
}

.heading-wrapping::after {
  display: block;
  font-weight: 400;
  font-size: 0.8rem;
  line-height: 1.5;
  letter-spacing: .02em;
  content: attr(data-label);
}


.heading-detail {
  padding: 0 .4em .2em;
  border-bottom: 5px dotted var(--primary-color);
  font-size: 1.7rem;
  margin: 0 auto;
  text-align: center;
  width: 44%;
  margin-bottom: 30px;
}

/*太字*/
.txt-l {
  font-size: 18px;
  font-weight: bold;
}

/*明朝体*/
.shippori-mincho-medium {
  font-family: "Shippori Mincho", serif;
  font-weight: 500;
  font-style: normal;
}

/* 最後の要素以外に margin-bottom をつける */
.mb-common {
  margin-bottom: 60px;
}

/*アンカーリンク*/
.simple-anchor-button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 250px;
  margin: 0 auto;
  padding: .9em 2em;
  border: 1px solid #2589d0;
  border-radius: 5px;
  background-color: #fff;
  color: #2589d0;
  font-size: 1em;
}

.simple-anchor-button::after {
  transform: rotate(45deg);
  width: 5px;
  height: 5px;
  margin-left: 10px;
  border-top: 2px solid #2589d0;
  border-right: 2px solid #2589d0;
  content: '';
}


.material-symbols-outlined {
  font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 20
}



/* ==========================================
   上部説明エリア
========================================== */

.wrapping-about {
  width: 100%;
  max-width: 1000px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.announce-box {
  /*align-items: stretch;
    display: flex;
    justify-content: space-between;*/
}

.wrapping-about-title h3 {
  color: #5e4506;
  font-size: 27px;
  font-weight: bold;
  line-height: 1.7;
  text-align: center;
}

.wrapping-about-title {
  width: 48%;
}

.wrapping-about-image {
  display: block;
  width: 48%;
  height: auto;
}

/*まとめて・個別にラッピング*/
.wrapping-announce {
  background: #f5f8f5;
  padding: 30px;
  border-radius: 12px;
}

.announce-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}


/* ==========================================
   詳細エリア共通
========================================== */

.wrapping-detail {
  width: 100%;
  color: #5e4506;
  font-size: 16px;
  line-height: 1.8;
}

.wrapping-detail__ornament {
  text-align: center;
  margin-bottom: 30px;
}

.wrapping-detail__title {
  font-size: 36px;
  color: #5e4506;
  font-weight: bold;
  text-align: center;
  line-height: 1.7;
  margin-bottom: 50px;
}

.wrapping-detail__headline {
  color: #5e4506;
  text-align: center;
  width: 58%;
}

.wrapping-detail__lead {
  color: #5e4506;
  text-align: center;
  margin-bottom: 30px;
}

.wrapping-detail__example {
  text-align: center;
  margin-bottom: 60px;
  width: 40%;
}

.wrapping-detail__example img {
  width: 100%;
  max-width: 700px;
  display: block;
  height: auto;
  margin: auto;
}


/* ==========================================
   サイズ目安エリア
========================================== */

.wrapping-detail__size {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
  gap: 50px;
}

.wrapping-detail__size-image {
  width: 35%;
}

.wrapping-detail__size-image img {
  width: 100%;
}

.wrapping-detail__size-text {
  /*width: 57%;*/
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.size-box {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px;
  background: #f5f8f5;
  border-radius: 20px;
}

.size-box__image {
  width: 200px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.size-box__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.size-title {
  color: #5e4506;
  font-weight: bold;
  line-height: 1.4;
  margin-bottom: 12px;
}

.size-box__text p {
  color: #5e4506;
  font-size: 16px;
  line-height: 1.8;
  margin: 0;
}

.wrapping-detail__note {
  color: #5e4506;
  text-align: center;
  margin: 50px 0;
}


/* ==========================================
   ボタン
========================================== */

.btn-wrapping {
  display: block;
  width: 360px;
  margin: 15px auto;

  background-color: #82c29e;
  color: #fff;

  font-size: 16px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;

  padding: 18px 30px;

  border-radius: 999px;
  transition: opacity .3s;

  position: relative;
}

.btn-wrapping::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 25px;

  width: 8px;
  height: 8px;

  border-top: 2px solid #fff;
  border-right: 2px solid #fff;

  transform: translateY(-50%) rotate(45deg);
}

.btn-wrapping:hover {
  opacity: .8;
  text-decoration: none;
}


/* ==========================================
   注意事項
========================================== */

.gift-notice .notice {
  margin: 40px 30px;
  padding: 30px;

  border: 2px solid #73af9b;
  border-radius: 8px;
  box-sizing: border-box;

  background: #fff;
  color: #333;
  line-height: 1.8;
}

.gift-notice .notice-title {
  color: #73af9b;
  font-size: 18px;
  font-weight: 500;
  text-align: center;
}

.gift-notice .notice p {
  color: #333;
  font-size: 16px;
  line-height: 1.8;
  font-weight: normal;

}

.gift-notice .accent {
  color: #73af9b;
  font-weight: 500;
}

/* ==========================================
   ご注文方法
========================================== */

.wrapping-order {
  width: 100%;
  color: #5e4506;
}


.wrapping-order__heading {
  position: relative;
  margin: 0 0 80px;
  padding: 15px;
  background: #8eb5a2;
  color: #fff;
  text-align: center;
  font-size: 27px;
  font-weight: bold;
}

.wrapping-order__step {
  /*max-width:800px;*/
  margin: 0 auto 60px;
  /*text-align:center;*/
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 0;
  border-bottom: 3px dotted #82c29e;
}

.wrapping-order__num {
  font-size: 72px;
  font-style: italic;
  line-height: 1;
  margin-bottom: 30px;
}

.wrapping-order__subheading {
  font-weight: bold;
  margin: 40px 0 20px;
  color: var(--primary-color);
}

.wrapping-order__txtgroup {
  width: 40%;
}

.wrapping-order__text {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 30px;
}

.wrapping-order__image {
  width: 54%;
  /*height: 400px;
    overflow: hidden;*/
}

.wrapping-order__image img {
  width: 100%;
  height: auto;
}

/* ==========================================
   セルフラッピング
========================================== */
.wrapping-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.wrapping-banner__text {
  margin: 0;
}

.wrapping-banner__link img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================
   改行（SPのみ）
========================================== */

.sp-br {
  display: none;
}

/* ==========================
   画像拡大モーダル
========================== */


.modal {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 139px;
  width: 100%;
  height: calc(100% - 139px);
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
  /* 背景色 */
  opacity: 0;
  /* 初期状態では透明 */
  visibility: hidden;
  /* 初期状態では不可視 */
  transition: opacity 0.5s, visibility 0.5s;
  /* アニメーション効果 */
}

/* モーダルの画像スタイル */


.modal-content {
  display: block;

  max-width: 700px;

  width: 80%;
  height: auto;
}

/*
#close {
    position: absolute;
    top: -15px;
    right: -15px;

    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(0,0,0,.7);
    color: #fff;

    border-radius: 50%;

    font-size: 30px;
    cursor: pointer;

    z-index: 10;
}*/

/* ==========================================
   SP
========================================== */

@media screen and (max-width: 767px) {

  .wrapping-box {
    padding: 30px 15px;
    border-radius: 16px;
  }

  .section-box {
    margin-bottom: 70px;
  }

  .mb-common {
    margin-bottom: 40px;
  }

  /* CMS側の .h1 指定による全太字対策 */
  .h1 .wrapping-detail {
    font-weight: normal;
  }

  /* 見出し */
  .heading-wrapping {
    font-size: 1.8rem;
  }

  .heading-detail {
    width: 100%;
    font-size: 1.25rem;
    margin-bottom: 24px;
  }

  .txt-l {
    font-size: 1rem;
  }

  /* 上部説明 */
  .wrapping-about {
    flex-direction: column;
    gap: 24px;
  }

  .wrapping-about-image,
  .wrapping-about-title {
    width: 100%;
  }

  .wrapping-about-title h3 {
    font-size: 1.5rem;
  }

  /* 複数点ご注文 */
  .wrapping-announce {
    padding: 20px 15px;
  }

  .announce-group {
    flex-direction: column;
    gap: 20px;
  }

  .announce-group:not(:last-child) {
    margin-bottom: 40px;
  }

  .wrapping-detail__headline,
  .wrapping-detail__example {
    width: 100%;
  }

  .wrapping-detail__example {
    margin-bottom: 0;
  }

  /* 大きさの目安 */
  .wrapping-detail__size {
    flex-direction: column;
    gap: 30px;
  }

  .wrapping-detail__size-image {
    width: 85%;
    margin: 0 auto;
  }

  .wrapping-detail__size-text {
    width: 100%;
  }

  .size-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 5%;
    border-radius: 10px;
  }

  .size-title {
    order: 1;
    width: 100%;
    text-align: center;
    margin-bottom: 0;
  }

  .size-box__image {
    order: 2;
    width: 100%;
    aspect-ratio: 16 / 9;

  }

  .size-box__text {
    order: 3;
    width: 100%;
  }

  .size-box__text p {
    text-align: left;
    font-size: 14px;
  }

  /* ボタン */
  .btn-wrapping {
    width: 100%;
    max-width: 340px;
    padding: 16px 40px 16px 20px;
    box-sizing: border-box;
  }

  /* 注意事項 */
  .gift-notice .notice {
    margin: 30px 0;
    padding: 20px 15px;
  }

  .gift-notice .notice p {
    font-size: 14px;
    margin-bottom: 12px;
  }

  .gift-notice .notice p:last-child {
    margin-bottom: 0;
  }

  /* ご注文方法 */
  .wrapping-order__heading {
    font-size: 1.4rem;
    margin-bottom: 40px;
  }

  .wrapping-order__step {
    flex-direction: column;
    gap: 24px;
    padding: 30px 0;
    margin-bottom: 40px;
  }

  .wrapping-order__txtgroup,
  .wrapping-order__image {
    width: 100%;
  }

  .wrapping-order__num {
    font-size: 56px;
    margin-bottom: 16px;
  }

  .wrapping-order__subheading {
    margin: 24px 0 12px;
  }

  .wrapping-order__text {
    font-size: 14px;
    margin-bottom: 20px;
  }

  /* セルフラッピング */
  .wrapping-banner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .wrapping-banner__link {
    width: 100%;
  }

  .wrapping-banner__link img {
    width: 100%;
  }


  .modal-content {
    width: 95%;
    height: auto;
  }

  .sp-br {
    display: block;
  }

  .modal {
    height: calc(100% - 57px);
    top: 57px;
  }
}