/* =========
  gc-media.cleaned.css
  修正版（2025年7月時点）
=========== */

/* ==========
 画面幅帯域（ブレイクポイント）整理

 XS帯域（超小型・スマホ縦）    ：～480px
 SM帯域（スマホ最大・スマホ横）：481px～767px
 MD帯域（タブレット）           ：768px～1024px
 LG帯域（PC小）                 ：1025px～1089px（※特殊）
 XL帯域（PC標準以上）           ：1090px～

 備考：
 - スマホの最大帯域は「767pxまで」
 - QR表示・非表示は1089pxを境に調整中
========== */

/* ====== スマホ縦画面（最大幅480px） ===== */
@media screen and (max-width: 480px) {
  .hero-qr-pc {
    display: none !important;
  }
  main {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }
  main.gc-page-wrapper {
    padding-left: 0.15rem !important;
    padding-right: 0.15rem !important;
  }
  .section-heading {
    font-size: 1.5rem !important;
    line-height: 1.4;
    text-align: center;
    margin-bottom: 1rem;
    padding-top: 1.2rem;
    padding-bottom: 1.2rem;
    background-size: contain !important;
  }
  body, .gc-text, .gc-header, .gc-footer {
    font-size: 14px;
    line-height: 1.4;
  }
  header.gc-header {
    padding: 12px 16px;
  }
  nav.local-nav {
    font-size: 13px;
  }
  .btn-primary, .btn-secondary {
    padding: 12px 18px;
    font-size: 15px;
  }
  .price-box-inner {
    box-sizing: border-box !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  .flow-steps {
    display: block;
  }
  .step-box {
    margin-bottom: 2rem;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
  /* 短冊の位置とサイズ */
  #gc-related.has-bg-tanzaku::after {
    width: 150px;
    height: 233px;
    transform: rotate(-4deg) translate(10px, 20px);
    opacity: 0.35;
  }
}

/* ====== スマホ横画面（481px〜767px） ====== */
@media (min-width: 481px) and (max-width: 767px) {
  .hero-qr-pc {
  display: none !important;
  }
  main {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }
  main.gc-page-wrapper {
    padding-left: 0.15rem !important;
    padding-right: 0.15rem !important;
  }
  body, .gc-text, .gc-header, .gc-footer {
    font-size: 15px;
    line-height: 1.5;
  }
  .price-box-inner {
    box-sizing: border-box !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  .flow-steps {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .step-box {
    width: 100%;
    max-width: 400px;
    margin-bottom: 2rem;
  }
}


/* ====== タブレット（768px〜1024px） ====== */
@media (min-width: 768px) and (max-width: 1024px) {
  main {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }
  main.gc-page-wrapper {
    padding-left: 0.15rem !important;
    padding-right: 0.15rem !important;
  }
  body, .gc-text, .gc-header, .gc-footer {
    font-size: 16px;
    line-height: 1.6;
  }
  .price-box-inner {
    box-sizing: border-box !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  /* ステップの並び */
  .flow-steps {
    display: flex;
    flex-direction: column; /* step-boxを縦並び */
    gap: 2rem;
  }
  .step-box {
    display: flex;
    flex-direction: column; /* step-box内は縦並び */
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
    box-sizing: border-box;
  }
  .step-image-wrapper {
    position: relative;
  }
  .step-image-wrapper img {
    display: block;
    width: 100%;
    height: auto;
  }
  .step-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    white-space: nowrap;
  }
  .step-description-wrapper {
    display: flex !important; /* 横並び */
    justify-content: space-between !important;
    gap: 1rem !important;
    margin-top: 1rem !important;
    width: 100% !important;
  }
  .step-description {
    width: 59% !important;
    text-align: left !important;
  }
  .step-illustration {
    width: 39% !important;
  }
  .step-illustration img {
    max-width: 65% !important;
    height: auto !important;
    display: block !important;
  }
}

/* ====== タブレット（1025px以上） ====== */
@media (min-width: 1025px) {
  .flow-steps {
    display: flex;
    justify-content: space-between;
  }

  .step-box {
    display: flex;
    flex-direction: column;
    width: 24%;
    box-sizing: border-box;
  }

  .step-description-wrapper {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
    height: 100%;
  }

  .step-description {
    text-align: left;
  }

  .step-illustration {
    align-self: flex-end; /* ← これでイラストだけ下寄せ */
  }

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

/* ====== 補足調整 ====== */
@media (max-width: 767px) {
  nav#scrollNav.local-nav,
  .local-nav-placeholder {
    display: none !important;
  }
}
/* ====== 補足調整 ====== サービス内容セクションの作業対象最下部の角丸を無効化 */
@media (max-width: 768px) {
  .service-note01 {
    border-radius: 0 !important;
  }
}
