@charset "utf-8";

:root {
  --ri-coral: #f2584f;
  --ri-red: #cf3e3d;
  --ri-ink: #272324;
  --ri-muted: #70696a;
  --ri-cream: #fff8ef;
  --ri-pink: #ffe9e3;
  --ri-line: rgba(87, 57, 51, .13);
  --ri-shadow: 0 18px 45px rgba(83, 47, 36, .09);
  --ri-serif: "Iowan Old Style", "YuMincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --ri-sans: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, sans-serif;
}

/* Reset */
html, body, div, p, h1, h2, table, tbody, tr, th, td, form, nav, header, footer, main, section {
  margin: 0;
  padding: 0;
}
*, *::before, *::after { box-sizing: border-box; }
html { overflow-y: scroll; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  min-width: 320px;
  color: var(--ri-ink);
  background: #fffdfb;
  font-family: var(--ri-sans);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: .035em;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; border: 0; }
button, input, select, textarea { font: inherit; }

/* Header */
.site-header {
  height: 104px;
  background: rgba(255, 253, 251, .97);
  border-bottom: 1px solid rgba(68, 49, 44, .06);
}
.site-header__inner {
  width: min(1216px, calc(100% - 64px));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 16px; min-width: 0; }
.brand__logo {
  width: 62px;
  height: 62px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 19px;
  box-shadow: 0 8px 24px rgba(204, 66, 57, .16);
}
.brand__logo img { width: 100%; height: 100%; object-fit: cover; }
.brand__words { display: flex; align-items: baseline; gap: 14px; white-space: nowrap; }
.brand__words strong { font-family: var(--ri-serif); font-size: 26px; font-weight: 600; letter-spacing: .11em; }
.brand__words small { color: var(--ri-muted); font-family: Georgia, serif; font-size: 12px; letter-spacing: .12em; }
.site-nav { display: flex; align-items: center; gap: 30px; font-size: 13px; font-weight: 600; letter-spacing: .08em; }
.site-nav a { transition: color .2s ease, transform .2s ease, background .2s ease; }
.site-nav a:hover { color: var(--ri-red); }
.site-nav__home {
  padding: 12px 20px;
  color: #fff !important;
  background: var(--ri-ink);
  border-radius: 999px;
}
.site-nav__home:hover { background: var(--ri-red); transform: translateY(-2px); }

/* Page heading */
.form-container { width: min(940px, calc(100% - 64px)); margin-inline: auto; }
.form-hero {
  position: relative;
  padding: 74px 0 68px;
  background: linear-gradient(115deg, #fffaf3 0%, #fff6ee 55%, #ffe9e2 100%);
  overflow: hidden;
}
.form-hero::after {
  content: "Ri";
  position: absolute;
  right: max(5vw, 30px);
  top: 50%;
  transform: translateY(-54%);
  color: rgba(242, 88, 79, .07);
  font-family: var(--ri-serif);
  font-size: 190px;
  line-height: 1;
}
.form-hero .form-container { position: relative; z-index: 1; }
.form-kicker, .form-step {
  color: var(--ri-red);
  font-family: Georgia, serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
}
.form-hero h1 {
  margin-top: 10px;
  font-family: var(--ri-serif);
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .1em;
}
.form-hero h1::after { content: ""; display: block; width: 40px; height: 2px; margin: 20px 0 18px; background: var(--ri-coral); }
.form-hero p:last-child { color: var(--ri-muted); font-size: 14px; }

/* Form card */
#wrapper { padding: 70px 0 88px; }
.form-card {
  padding: 54px 64px 58px;
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--ri-line);
  border-radius: 28px;
  box-shadow: var(--ri-shadow);
}
.form-card__heading { margin-bottom: 38px; }
.form-card__heading h2, .complete-card h2 {
  margin-top: 8px;
  font-family: var(--ri-serif);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: .08em;
}
.form-card__heading > p:last-child { margin-top: 12px; color: var(--ri-muted); font-size: 13px; }
.required-note { display: inline-block; margin-left: 8px; color: var(--ri-red); font-weight: 700; }
.red_txt { margin-bottom: 24px; color: var(--ri-red); font-size: 13px; font-weight: 700; }
.red_txt:empty { display: none; }

/* Generated form table */
.table { width: 100%; border-collapse: separate; border-spacing: 0; }
.table th, .table td { padding: 22px 0; border-bottom: 1px solid var(--ri-line); text-align: left; vertical-align: top; }
.table tr:first-child th, .table tr:first-child td { border-top: 1px solid var(--ri-line); }
.table th { width: 30%; padding-right: 28px; color: var(--ri-ink); font-size: 14px; font-weight: 700; }
.table td { color: #514a4b; font-size: 14px; }
.table .required, .table .require, .table .must, .table .red_txt, .table em { color: var(--ri-red); font-size: 11px; font-style: normal; }

input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="password"], textarea, select {
  width: 100% !important;
  max-width: 100%;
  min-height: 52px;
  padding: 12px 15px;
  color: var(--ri-ink);
  background: #fffaf7;
  border: 1px solid rgba(87, 57, 51, .18);
  border-radius: 10px;
  box-shadow: inset 0 1px 2px rgba(83, 47, 36, .03);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
textarea { min-height: 190px; resize: vertical; line-height: 1.75; }
select { appearance: auto; }
input:focus, textarea:focus, select:focus {
  background: #fff;
  border-color: var(--ri-coral);
  box-shadow: 0 0 0 4px rgba(242, 88, 79, .1);
}
input[type="radio"], input[type="checkbox"] { width: 18px; height: 18px; margin: 0 7px 0 0; accent-color: var(--ri-red); vertical-align: -3px; }
label { display: inline-block; margin: 3px 18px 3px 0; cursor: pointer; }

/* Buttons */
.button_box { display: flex; justify-content: center; gap: 14px; margin-top: 38px; text-align: center; }
input[type="submit"], input[type="button"], .primary-link {
  display: inline-flex;
  min-width: 230px;
  min-height: 58px;
  padding: 14px 28px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--ri-coral), var(--ri-red));
  border: 0;
  border-radius: 999px;
  box-shadow: 0 12px 26px rgba(207, 62, 61, .18);
  font-weight: 700;
  letter-spacing: .06em;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
input[type="submit"]:hover, input[type="button"]:hover, .primary-link:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(207, 62, 61, .23); }
input[type="submit"][value="戻る"] {
  color: var(--ri-ink);
  background: #fff;
  border: 1px solid var(--ri-line);
  box-shadow: none;
}
.page-back { margin-top: 28px; text-align: center; }
.page-back a { color: var(--ri-red); font-size: 13px; font-weight: 700; }
.page-back span { margin-right: 5px; }

/* Complete */
.complete-card { padding-block: 68px; text-align: center; }
.complete-mark {
  display: grid;
  width: 74px;
  height: 74px;
  margin: 0 auto 23px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--ri-coral), var(--ri-red));
  border-radius: 50%;
  box-shadow: 0 15px 30px rgba(207, 62, 61, .18);
  font-family: Georgia, serif;
  font-size: 30px;
}
.complete-card #txt_explain { margin-top: 22px; color: var(--ri-muted); font-size: 14px; }

/* Footer */
.site-footer { padding: 35px 24px 31px; background: var(--ri-ink); color: rgba(255,255,255,.68); text-align: center; }
.footer-brand { display: inline-flex; align-items: center; gap: 11px; color: #fff; font-family: var(--ri-serif); font-weight: 600; letter-spacing: .08em; }
.footer-brand img { width: 34px; height: 34px; border-radius: 10px; }
.footer-brand small { margin-left: 7px; color: rgba(255,255,255,.58); font-family: Georgia, serif; font-size: 9px; font-weight: 400; letter-spacing: .1em; }
.site-footer > p { margin-top: 13px; font-size: 10px; letter-spacing: .08em; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 9999; padding: 10px 18px; color: #fff; background: var(--ri-ink); }
.skip-link:focus { top: 16px; }

/* Utility classes kept for the mail-form system */
.m0 { margin: 0 !important; } .mt10 { margin-top: 10px !important; } .mb10 { margin-bottom: 10px !important; }
.tal { text-align: left !important; } .tac { text-align: center !important; } .tar { text-align: right !important; }
.dispN { display: none !important; } .dispB { display: block !important; } .dispIB { display: inline-block !important; }
.fontBold { font-weight: 700 !important; } .breakAll { word-break: break-all !important; }
.clear, .cf { clear: both; }

@media (max-width: 820px) {
  .site-nav { gap: 16px; }
  .site-nav a:not(.site-nav__home) { display: none; }
  .form-card { padding-inline: 42px; }
}

@media (max-width: 600px) {
  body { font-size: 15px; }
  .site-header { height: 82px; }
  .site-header__inner, .form-container { width: min(100% - 36px, 940px); }
  .brand { gap: 10px; }
  .brand__logo { width: 48px; height: 48px; border-radius: 14px; }
  .brand__words { display: block; line-height: 1.25; }
  .brand__words strong { display: block; font-size: 19px; }
  .brand__words small { display: block; margin-top: 3px; font-size: 8px; }
  .site-nav__home { padding: 9px 13px; font-size: 11px; }
  .form-hero { padding: 54px 0 50px; }
  .form-hero::after { right: -25px; font-size: 125px; }
  .form-hero h1 { font-size: 32px; }
  .form-hero p:last-child { max-width: 76%; font-size: 12px; line-height: 1.75; }
  #wrapper { padding: 38px 0 60px; }
  .form-card { padding: 34px 20px 38px; border-radius: 20px; }
  .form-card__heading { margin-bottom: 25px; }
  .form-card__heading h2, .complete-card h2 { font-size: 22px; }
  .required-note { display: block; margin: 4px 0 0; }
  .table, .table tbody, .table tr, .table th, .table td { display: block; width: 100%; }
  .table tr { padding: 18px 0; border-bottom: 1px solid var(--ri-line); }
  .table tr:first-child { border-top: 1px solid var(--ri-line); }
  .table th, .table td, .table tr:first-child th, .table tr:first-child td { padding: 0; border: 0; }
  .table th { margin-bottom: 8px; font-size: 13px; }
  .button_box { margin-top: 30px; flex-direction: column; }
  input[type="submit"], input[type="button"], .primary-link { width: 100%; min-width: 0; }
  .button_box--two input[value="戻る"] { order: 2; }
  .complete-card { padding-block: 44px; }
  .footer-brand small { display: none; }
}