/* 返品依頼フォーム（henkin / hosyo 共通の見た目） */

:root {
  --color-navy: #1b2f63;
  --color-navy-dark: #122248;
  --color-navy-soft: #eef1f8;
  --color-ink: #1f2430;
  --color-muted: #5a6272;
  --color-line: #e1e5ee;
  --color-bg: #f3f5f9;
  --color-surface: #ffffff;
  --color-brand: #f8b500;
  --color-red: #d20303;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(18, 34, 72, 0.06), 0 8px 24px rgba(18, 34, 72, 0.06);
  --space: clamp(20px, 4vw, 40px);
  --content-width: 880px;
  --font-body: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", YuGothic, Meiryo, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.85;
  letter-spacing: 0.02em;
  word-break: normal;
  overflow-wrap: anywhere;
}

@media (min-width: 768px) {
  body {
    font-size: 16px;
  }
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

a {
  color: var(--color-navy);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

p,
ul,
ol,
dl,
dd,
h1,
h2,
h3 {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

strong {
  font-weight: 700;
}

/* ---------- 色クラス（先方指定の黒枠 2 か所は赤のまま） ---------- */

.fc-red3 {
  color: var(--color-red);
  font-weight: 700;
}

.fc-blue {
  color: var(--color-navy);
  font-weight: 700;
}

/* ---------- ヘッダー ---------- */

.rf-header {
  background: var(--color-surface);
  border-top: 4px solid var(--color-brand);
  border-bottom: 1px solid var(--color-line);
}

.rf-header__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 18px 16px 22px;
  text-align: center;
}

.rf-header__logo {
  display: block;
  width: 150px;
  margin: 0 auto 10px;
}

.rf-header__title {
  color: var(--color-navy);
  font-size: clamp(22px, 5vw, 30px);
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.4;
}

/* ページ内ナビ */
.rf-nav {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 16px 16px 0;
}

.rf-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.rf-nav a {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-navy);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
  text-decoration: none;
  transition:
    background-color 0.2s,
    color 0.2s,
    border-color 0.2s;
}

.rf-nav a:hover,
.rf-nav a:focus-visible {
  border-color: var(--color-navy);
  background: var(--color-navy);
  color: #fff;
}

@media (max-width: 600px) {
  .rf-nav {
    padding: 12px 0 0;
  }

  .rf-nav ul {
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding: 0 16px 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .rf-nav li {
    flex: none;
  }
}

/* ---------- レイアウト ---------- */

.rf-main {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 20px 16px 8px;
}

.rf-section {
  margin-bottom: 24px;
  padding: var(--space);
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: var(--shadow);
}

.rf-section__title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--color-navy);
  font-size: clamp(19px, 4vw, 24px);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.06em;
}

.rf-section__title::before {
  content: "";
  flex: none;
  width: 5px;
  height: 1.3em;
  border-radius: 3px;
  background: var(--color-brand);
}

.rf-section > * + * {
  margin-top: 14px;
}

.rf-section > .rf-section__title + * {
  margin-top: 0;
}

.rf-subtitle {
  margin-top: 28px !important;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-line);
  font-size: 17px;
}

.rf-note {
  font-weight: 700;
}

/* 黒枠 1: 対象外の告知（配色は先方指定のまま） */
.rf-alert {
  padding: 16px 18px;
  border: 1px solid var(--color-red);
  border-radius: 8px;
  line-height: 1.9;
}

/* ---------- 手順 ---------- */

.rf-steps {
  counter-reset: none;
  margin-top: 24px !important;
}

.rf-step {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 0 16px;
  padding-bottom: 24px;
}

.rf-step:last-child {
  padding-bottom: 0;
}

.rf-step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 44px;
  bottom: 4px;
  left: 19px;
  width: 2px;
  background: var(--color-line);
}

.rf-step__num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-navy);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
}

.rf-step__body > * + * {
  margin-top: 14px;
}

.rf-step__lead {
  padding-top: 5px;
}

@media (max-width: 600px) {
  .rf-step {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 0 12px;
  }

  .rf-step:not(:last-child)::before {
    top: 36px;
    left: 15px;
  }

  .rf-step__num {
    width: 32px;
    height: 32px;
    font-size: 15px;
  }

  .rf-step__lead {
    padding-top: 1px;
  }

  .rf-period,
  .rf-address {
    padding: 14px;
  }
}

/* ---------- 返品保証期間のタイムライン ---------- */

.rf-period {
  padding: 18px;
  border-radius: 10px;
  background: var(--color-navy-soft);
}

/*
 * PC: 横向きの線。1 行目に期間、2 行目に線と点、3 行目に時点のラベル。
 * 点は線の端（::before / ::after）に置き、時点のラベルは点の真下から縦線でつなぐ。
 */
.rf-tl {
  --tl-muted-line: #b9c1d3;
  --tl-dot: 14px;
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) 44px;
  grid-template-rows: auto 16px auto;
  margin-top: 20px;
  padding: 0 4px 0 8px;
}

.rf-tl__span {
  grid-row: 1;
  align-self: end;
  padding: 0 8px 10px;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.rf-tl__span--trial {
  grid-column: 1;
}

.rf-tl__span--guarantee {
  grid-column: 2;
  color: var(--color-navy);
  font-size: 15px;
  font-weight: 700;
}

.rf-tl__track {
  position: relative;
  grid-row: 2;
  align-self: center;
}

.rf-tl__track--trial {
  grid-column: 1;
  height: 4px;
  background: var(--tl-muted-line);
}

.rf-tl__track--guarantee {
  z-index: 1;
  grid-column: 2;
  height: 10px;
  border-radius: 5px;
  background: var(--color-navy);
}

/* 保証期間の外は破線で「期間外」を示す */
.rf-tl__track--after {
  grid-column: 3;
  height: 0;
  margin-left: 10px;
  border-top: 2px dashed var(--tl-muted-line);
}

.rf-tl__track--trial::before,
.rf-tl__track--guarantee::before,
.rf-tl__track--guarantee::after {
  content: "";
  position: absolute;
  top: 50%;
  z-index: 2;
  width: var(--tl-dot);
  height: var(--tl-dot);
  border: 3px solid var(--color-navy);
  border-radius: 50%;
  background: var(--color-surface);
  transform: translate(-50%, -50%);
}

.rf-tl__track--trial::before,
.rf-tl__track--guarantee::before {
  left: 0;
}

.rf-tl__track--trial::before {
  border-color: #8a93a8;
}

.rf-tl__track--guarantee::after {
  left: 100%;
}

.rf-tl__point {
  grid-row: 3;
  justify-self: start;
  margin-top: 8px;
  padding: 6px 0 0 10px;
  border-left: 2px solid var(--tl-muted-line);
  color: var(--color-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  transform: translateX(-1px);
}

.rf-tl__point--arrival {
  grid-column: 1;
}

.rf-tl__point--open {
  grid-column: 2 / 4;
  border-left-color: var(--color-navy);
  color: var(--color-navy);
}

/* スマホ: 縦向きの線。左列に線と点、右列に時点と期間を上から順に並べる */
@media (max-width: 600px) {
  .rf-tl {
    --tl-first-line: 11px;
    grid-template-columns: 24px minmax(0, 1fr);
    grid-template-rows: auto auto auto auto 28px;
    padding: 0;
  }

  .rf-tl__point,
  .rf-tl__span {
    grid-column: 2;
    justify-self: stretch;
    margin: 0;
    border: 0;
    transform: none;
    text-align: left;
  }

  .rf-tl__point {
    padding: 0 0 0 10px;
  }

  .rf-tl__point--arrival {
    grid-row: 1;
  }

  .rf-tl__span--trial {
    grid-row: 2;
    padding: 4px 0 20px 10px;
  }

  .rf-tl__point--open {
    grid-column: 2;
    grid-row: 3;
  }

  .rf-tl__span--guarantee {
    grid-row: 4;
    padding: 4px 0 20px 10px;
  }

  .rf-tl__track {
    grid-column: 1;
    align-self: stretch;
    justify-self: center;
  }

  .rf-tl__track--trial {
    grid-row: 1 / 4;
    width: 4px;
    height: auto;
    margin-top: var(--tl-first-line);
  }

  .rf-tl__track--guarantee {
    grid-row: 3 / 5;
    width: 10px;
    height: auto;
    margin-top: var(--tl-first-line);
  }

  .rf-tl__track--after {
    grid-row: 5;
    width: 0;
    height: auto;
    margin: 10px 0 0;
    border-top: 0;
    border-left: 2px dashed var(--tl-muted-line);
  }

  .rf-tl__track--trial::before,
  .rf-tl__track--guarantee::before {
    top: 0;
    left: 50%;
  }

  .rf-tl__track--guarantee::after {
    top: 100%;
    left: 50%;
  }
}

/* ---------- 返品先住所 ---------- */

.rf-address {
  padding: 18px;
  border: 1px solid var(--color-line);
  border-radius: 10px;
}

.rf-address p {
  word-break: keep-all;
}

.rf-address > * + * {
  margin-top: 6px;
}

.rf-address__tel a {
  white-space: nowrap;
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}

/* ---------- 箇条書き ---------- */

.rf-list > li {
  position: relative;
  padding-left: 1.1em;
}

.rf-list > li + li {
  margin-top: 10px;
}

.rf-list > li::before {
  content: "";
  position: absolute;
  top: 0.8em;
  left: 0.15em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-navy);
}

/* ---------- 返金方法カード / 諸経費 ---------- */

.rf-card {
  padding: 18px 20px;
  border: 1px solid var(--color-line);
  border-radius: 10px;
}

.rf-card > * + * {
  margin-top: 12px;
}

.rf-card__title {
  font-size: 16px;
  line-height: 1.6;
}

.rf-fee {
  padding: 18px 20px;
  border-radius: 10px;
  background: var(--color-bg);
}

.rf-fee > * + * {
  margin-top: 10px;
}

.rf-fee__note {
  color: var(--color-muted);
  font-size: 0.92em;
}

/* ---------- 硬さ ---------- */

.rf-figure {
  text-align: center;
}

.rf-button-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border: 2px solid var(--color-navy);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-navy);
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  transition:
    background-color 0.2s,
    color 0.2s;
}

.rf-button-secondary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.rf-button-secondary:hover,
.rf-button-secondary:focus-visible {
  background: var(--color-navy);
  color: #fff;
}

/* ---------- よくあるご質問 ---------- */

.rf-faq > * + * {
  margin-top: 10px;
}

.rf-faq details {
  border: 1px solid var(--color-line);
  border-radius: 10px;
  background: var(--color-surface);
}

.rf-faq details[open] {
  border-color: #c9d0df;
}

.rf-faq summary {
  position: relative;
  padding: 16px 48px 16px 18px;
  color: var(--color-navy);
  font-weight: 700;
  line-height: 1.6;
  list-style: none;
  cursor: pointer;
}

.rf-faq summary::-webkit-details-marker {
  display: none;
}

.rf-faq summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 20px;
  width: 9px;
  height: 9px;
  margin-top: -7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s;
}

.rf-faq details[open] summary::after {
  margin-top: -2px;
  transform: rotate(-135deg);
}

.rf-faq summary {
  border-radius: 9px;
}

.rf-faq details[open] summary {
  border-radius: 9px 9px 0 0;
}

.rf-faq summary:hover {
  background: var(--color-navy-soft);
}

.rf-faq dl {
  padding: 0 18px 8px;
}

.rf-faq dt,
.rf-faq dd.answer {
  position: relative;
  padding-left: 34px;
}

.rf-faq dt {
  padding-top: 16px;
  border-top: 1px solid var(--color-line);
  color: var(--color-navy);
  font-weight: 700;
}

.rf-faq dd {
  margin: 8px 0 0 34px;
}

.rf-faq dd.answer {
  margin-left: 0;
}

.rf-faq dd:last-child {
  padding-bottom: 12px;
}

.rf-faq dt::before,
.rf-faq dd.answer::before {
  position: absolute;
  left: 0;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.rf-faq dt::before {
  content: "Q";
  top: 17px;
  background: var(--color-navy);
  color: #fff;
}

.rf-faq dd.answer::before {
  content: "A";
  top: 1px;
  background: var(--color-brand);
  color: var(--color-navy-dark);
}

/* ---------- 返品フォームへの CTA ---------- */

.rf-cta {
  display: grid;
  gap: 14px;
  margin-top: 8px;
  padding: var(--space);
  border-radius: var(--radius);
  background: var(--color-navy);
}

@media (min-width: 768px) {
  .rf-cta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 返品フォームが 1 つだけのページ */
.rf-cta--single {
  grid-template-columns: minmax(0, 1fr);
}

.rf-cta--single .rf-cta__button {
  justify-self: center;
  width: 100%;
  max-width: 460px;
}

.rf-cta__button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-radius: 10px;
  background: var(--color-surface);
  color: var(--color-navy);
  text-decoration: none;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}

.rf-cta__button:hover,
.rf-cta__button:focus-visible {
  box-shadow: 0 0 0 3px var(--color-brand);
  transform: translateY(-1px);
}

.rf-cta__lead {
  display: block;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.5;
}

.rf-cta__label {
  display: block;
  margin-top: 2px;
  font-size: clamp(16px, 3.6vw, 18px);
  font-weight: 700;
  line-height: 1.5;
  display: flex;
  flex-wrap: wrap;
}

.rf-cta__arrow {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-brand);
}

.rf-cta__arrow::before {
  content: "";
  width: 9px;
  height: 9px;
  margin-left: -3px;
  border-top: 2.5px solid var(--color-navy-dark);
  border-right: 2.5px solid var(--color-navy-dark);
  transform: rotate(45deg);
}

/* ---------- フッター ---------- */

.rf-footer {
  margin-top: 32px;
  border-top: 4px solid var(--color-brand);
  background: var(--color-navy);
  color: #fff;
}

.rf-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 24px 16px;
}

.rf-footer__logo {
  width: 170px;
  filter: brightness(0) invert(1);
}

.rf-footer__contact {
  font-size: 13px;
  line-height: 1.6;
  text-align: right;
}

.rf-footer__contact a {
  color: inherit;
  font-size: 16px;
  font-weight: 700;
}

.rf-footer__copy {
  padding: 10px 16px;
  background: var(--color-navy-dark);
  color: rgba(255, 255, 255, 0.75);
  font-size: 11px;
  font-style: normal;
  text-align: center;
}

@media (max-width: 600px) {
  .rf-footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .rf-footer__contact {
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
