/* ============================================================
   user-guide.css
   ご利用ガイドページ専用スタイル
   共通スタイル：style.css + how-to-choose.css を読み込み済み
   ============================================================ */

/* ===== FVタイトル改行修正 ===== */
.subpage-hero-title {
  font-size: clamp(1.45rem, 4.5vw, 2.2rem);
  white-space: nowrap;
}

@media (max-width: 520px) {
  .subpage-hero-title {
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: break-word;
    font-size: clamp(1.25rem, 6vw, 1.6rem);
  }
}

/* ===== セクション共通 ===== */
.ug-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

/* ===== STEP フロー ===== */
.ug-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 56px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.ug-step {
  display: flex;
  gap: 0;
  align-items: stretch;
}

/* マーカー（番号＋縦線） */
.ug-step-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 56px;
}

.ug-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-accent, #c8956c);
  color: #fff;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(200, 149, 108, 0.28);
  position: relative;
  z-index: 1;
}

.ug-step-num--last {
  background: var(--color-dark, #3a2a1e);
}

.ug-step-line {
  width: 2px;
  flex: 1;
  background: linear-gradient(to bottom, rgba(200,149,108,0.35), rgba(200,149,108,0.08));
  margin-top: 4px;
  margin-bottom: 4px;
}

/* ステップ本体 */
.ug-step-body {
  flex: 1;
  padding: 0 0 48px 24px;
}

.ug-step--last .ug-step-body {
  padding-bottom: 0;
}

.ug-step-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding-top: 8px;
}

.ug-step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #fdf6f0;
  color: var(--color-accent, #c8956c);
  flex-shrink: 0;
}

.ug-step-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-dark, #3a2a1e);
  line-height: 1.5;
  margin: 0;
}

.ug-step-content {
  padding-left: 62px;
}

.ug-step-content p {
  font-size: 0.9rem;
  line-height: 1.85;
  color: #5c4a3a;
  margin: 0 0 10px;
}

.ug-step-content p:last-child {
  margin-bottom: 0;
}

.ug-step-note {
  font-size: 0.82rem !important;
  color: #8b7060 !important;
  background: #fdf6f0;
  border-left: 3px solid rgba(200,149,108,0.4);
  padding: 10px 14px;
  border-radius: 0 6px 6px 0;
  margin-top: 10px !important;
}

/* お支払い方法行 */
.ug-payment-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 12px;
  padding: 12px 16px;
  background: #fdf6f0;
  border-radius: 8px;
}

.ug-payment-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-accent, #c8956c);
  white-space: nowrap;
  padding: 3px 10px;
  border: 1.5px solid rgba(200,149,108,0.5);
  border-radius: 20px;
  flex-shrink: 0;
}

.ug-payment-text {
  font-size: 0.87rem;
  color: #5c4a3a;
  line-height: 1.6;
}

/* ===== SECTION 2：店頭受け渡し ===== */
.ug-delivery-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 56px;
  align-items: center;
  margin-top: 48px;
}

.ug-delivery-text p {
  font-size: 0.92rem;
  line-height: 1.9;
  color: #5c4a3a;
  margin: 0 0 16px;
}

.ug-delivery-text p:last-child {
  margin-bottom: 0;
}

.ug-delivery-img-frame {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.ug-delivery-img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ug-delivery-img-frame:hover .ug-delivery-img {
  transform: scale(1.03);
}

/* 法人ブロック */
.ug-business-block {
  margin-top: 56px;
}

.ug-business-inner {
  background: #fdf6f0;
  border-radius: 16px;
  padding: 40px 48px;
  border-left: 4px solid var(--color-accent, #c8956c);
}

.ug-business-label {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-dark, #3a2a1e);
  margin-bottom: 20px;
  letter-spacing: 0.04em;
  border-left: 4px solid var(--color-accent, #c8956c);
  padding-left: 14px;
  line-height: 1.4;
}

.ug-business-inner p {
  font-size: 0.9rem;
  line-height: 1.85;
  color: #5c4a3a;
  margin: 0 0 12px;
}

.ug-business-inner p:last-of-type {
  margin-bottom: 24px;
}

.ug-business-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-accent, #c8956c);
  color: #fff !important;
  border: none;
  padding: 14px 28px;
  border-radius: 32px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
  box-shadow: 0 4px 16px rgba(200,149,108,0.3);
}

.ug-business-btn:hover {
  background: #b8825a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200,149,108,0.4);
}

.ug-business-btn .btn-arrow {
  fill: #fff;
}

/* ===== SECTION 3：予約期限テーブル ===== */
.ug-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 40px;
  border-radius: 12px;
  box-shadow: 0 2px 20px rgba(60,40,20,0.07);
}

.ug-deadline-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-size: 0.88rem;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

.ug-deadline-table thead tr {
  background: var(--color-dark, #3a2a1e);
  color: #fff;
}

.ug-deadline-table th {
  padding: 16px 20px;
  text-align: left;
  font-family: 'Noto Serif JP', serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ご予約の期限列の幅を確保 */
.ug-deadline-table th:nth-child(3),
.ug-deadline-table td:nth-child(3) {
  min-width: 170px;
  width: 170px;
}

/* 「対象となる時期」列：改行防止・幅確保 */
.ug-deadline-table th:nth-child(2),
.ug-deadline-table td:nth-child(2) {
  min-width: 140px;
  white-space: nowrap;
}

/* 「対象となる時期」セルのテキスト強調 */
.ug-deadline-table td:nth-child(2) {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-dark, #3a2a1e);
  letter-spacing: 0.02em;
}

.ug-deadline-table td {
  padding: 20px;
  vertical-align: top;
  border-bottom: 1px solid #f0e8e0;
  color: #5c4a3a;
  line-height: 1.75;
}

.ug-deadline-table tbody tr:last-child td {
  border-bottom: none;
}

.ug-deadline-table tbody tr:nth-child(even) {
  background: #fdf6f0;
}

.ug-deadline-table strong {
  color: var(--color-dark, #3a2a1e);
  font-weight: 700;
}

.ug-deadline-table small {
  font-size: 0.8em;
  color: #8b7060;
}

/* バッジ */
.ug-badge {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 24px;
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.04em;
}

.ug-badge--normal {
  background: #e8f4e8;
  color: #3a6b3a;
}

.ug-badge--busy {
  background: #fde8e8;
  color: #8b2020;
}

/* テーブル内リスト */
.ug-td-list {
  margin: 0;
  padding-left: 18px;
  list-style: disc;
}

.ug-td-list li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.ug-td-list li:last-child {
  margin-bottom: 0;
}

/* お急ぎ通知ブロック */
.ug-urgent-notice {
  margin-top: 32px;
}

.ug-urgent-notice .htc-notice-title {
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: var(--color-dark, #3a2a1e) !important;
  margin-bottom: 8px !important;
}

.ug-urgent-notice .htc-notice p {
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  line-height: 1.85 !important;
  color: #4a3020 !important;
}

/* ===== スクロールアニメーション ===== */
.scroll-hidden {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.scroll-hidden.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== レスポンシブ：タブレット（〜900px） ===== */
@media (max-width: 900px) {
  .ug-delivery-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .ug-delivery-img {
    aspect-ratio: 3 / 2;
    height: auto;
  }

  .ug-business-inner {
    padding: 28px 28px;
  }
}

/* ===== レスポンシブ：スマホ（〜768px） ===== */
@media (max-width: 768px) {
  .ug-section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .ug-steps {
    margin-top: 40px;
  }

  .ug-step-marker {
    width: 44px;
  }

  .ug-step-num {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .ug-step-body {
    padding: 0 0 36px 16px;
  }

  .ug-step-header {
    gap: 10px;
  }

  .ug-step-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .ug-step-title {
    font-size: 1rem;
  }

  .ug-step-content {
    padding-left: 50px;
  }

  .ug-step-content p {
    font-size: 0.87rem;
  }

  .ug-delivery-img {
    aspect-ratio: 3 / 2;
    height: auto;
  }

  .ug-business-inner {
    padding: 24px 20px;
  }

  /* テーブル：スマホはカード型縦積みに切り替え */
  .ug-table-wrap {
    overflow-x: visible;
    box-shadow: none;
  }

  .ug-deadline-table {
    min-width: unset;
    display: block;
  }

  .ug-deadline-table thead {
    display: none;
  }

  .ug-deadline-table tbody {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .ug-deadline-table tr {
    display: block;
    background: #fff !important;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(60,40,20,0.08);
    overflow: hidden;
  }

  .ug-deadline-table td {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 18px;
    border-bottom: 1px solid #f0e8e0;
    font-size: 0.86rem;
  }

  .ug-deadline-table td:last-child {
    border-bottom: none;
  }

  .ug-deadline-table td::before {
    content: attr(data-label);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-accent, #c8956c);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 2px;
  }

  .ug-payment-row {
    flex-direction: column;
    gap: 6px;
  }

  /* スマホカード内「対象となる時期」セルの強調 */
  .ug-deadline-table td:nth-child(2) {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-dark, #3a2a1e);
    white-space: normal; /* スマホでは折り返しOK */
  }
}

/* ===== レスポンシブ：小スマホ（〜480px） ===== */
@media (max-width: 480px) {
  .ug-step-content {
    padding-left: 0;
    margin-top: 8px;
  }

  .ug-step-header {
    flex-wrap: wrap;
  }
}
