@charset "UTF-8";

.contact-hero { position: relative; overflow: hidden; height: 320px; min-height: 320px; padding: 88px 0 34px; display: flex; align-items: center; background: var(--surface-cream); border-bottom: 1px solid var(--border); }
.contact-hero::before { content: "CONTACT"; position: absolute; right: -20px; bottom: -24px; color: rgba(1,82,137,.04); font: 700 clamp(82px, 12vw, 160px)/1 var(--font-en); letter-spacing: -.08em; }
.contact-hero::after { content: ""; position: absolute; width: 180px; height: 180px; right: 9%; top: 62px; border-radius: 50%; background: rgba(252,166,112,.18); box-shadow: 0 0 0 46px rgba(28,110,179,.035); }
.contact-hero-inner { position: relative; z-index: 1; }
.contact-hero h1 { margin: 0; color: var(--brand-700); font-size: clamp(29px, 2.55vw, 32px); line-height: 1.3; letter-spacing: -.04em; text-wrap: balance; }
.contact-hero-inner > p:last-child { max-width: 720px; margin: 16px 0 0; color: var(--ink-600); font-size: 14px; line-height: 1.8; }
.contact-main { padding: 112px 0 128px; background: #fff; }
.contact-layout { display: grid; grid-template-columns: minmax(320px, .78fr) minmax(0, 1.22fr); gap: 100px; align-items: start; }
.contact-guide { position: sticky; top: 120px; }
.contact-guide-label { margin: 0; color: var(--brand-500); font: 700 10px/1.2 var(--font-en); letter-spacing: .16em; }
.contact-guide h2 { margin: 14px 0 0; color: var(--brand-700); font-size: clamp(30px, 3.8vw, 44px); line-height: 1.42; letter-spacing: -.035em; }
.contact-guide ul { margin: 40px 0 0; padding: 0; border-top: 1px solid var(--border-strong); list-style: none; }
.contact-guide li { padding: 19px 0; display: grid; grid-template-columns: 36px 1fr; gap: 15px; border-bottom: 1px solid var(--border); }
.contact-guide li span { padding-top: 3px; color: var(--accent-600); font: 700 11px/1 var(--font-en); }
.contact-guide li p { margin: 0; color: var(--ink-700); font-size: 13px; line-height: 1.8; }
.contact-next-step { margin-top: 30px; padding: 24px; border-left: 4px solid var(--accent-500); background: var(--accent-100); }
.contact-next-step strong { color: var(--brand-700); font-size: 14px; }
.contact-next-step p { margin: 8px 0 0; color: var(--ink-600); font-size: 12px; line-height: 1.8; }
.contact-recruit { margin: 22px 0 0; color: var(--ink-500); font-size: 11px; }
.contact-recruit a { color: var(--brand-500); font-weight: 700; }
.contact-form-panel { padding: 46px 48px; border-top: 4px solid var(--brand-500); background: var(--surface-blue); }
.contact-form-heading { padding-bottom: 26px; border-bottom: 1px solid var(--border-strong); }
.contact-form-heading span { color: var(--brand-500); font: 700 10px/1.2 var(--font-en); letter-spacing: .15em; }
.contact-form-heading h2 { margin: 10px 0 0; color: var(--brand-700); font-size: 29px; }
.contact-form-heading p { margin: 8px 0 0; color: var(--ink-600); font-size: 12px; }
.hubspot-form-wrap { min-height: 540px; margin-top: 30px; padding: 26px; background: #fff; }
.contact-privacy { margin: 20px 0 0; color: var(--ink-500); font-size: 10px; line-height: 1.8; }
.contact-privacy a { color: var(--brand-500); }

.thanks-hero { position: relative; min-height: 690px; padding: 176px 0 110px; display: flex; align-items: center; overflow: hidden; background: var(--surface-cream); }
.thanks-inner { position: relative; z-index: 2; }
.thanks-inner h1 { max-width: 820px; margin: 0; color: var(--brand-700); font-size: clamp(48px, 7vw, 82px); line-height: 1.22; letter-spacing: -.06em; text-wrap: balance; }
.thanks-inner > p:not(.kicker) { max-width: 720px; margin: 30px 0 0; color: var(--ink-600); font-size: 16px; line-height: 2; }
.thanks-actions { margin-top: 38px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.thanks-mark { position: absolute; width: 430px; height: 430px; right: 7vw; top: 140px; border: 1px solid rgba(28,110,179,.2); transform: rotate(45deg); }
.thanks-mark i { position: absolute; width: 150px; height: 80px; left: 145px; top: 145px; border-bottom: 22px solid var(--brand-500); border-right: 22px solid var(--brand-500); transform: rotate(0deg); }
.thanks-mark::after { content: ""; position: absolute; width: 130px; height: 130px; right: -50px; bottom: -20px; border-radius: 50%; background: var(--accent-500); }
.thanks-schedule { padding: 110px 0 126px; background: #fff; }
.thanks-schedule-head { margin-bottom: 52px; padding-top: 27px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; align-items: end; border-top: 1px solid var(--brand-700); }
.thanks-schedule-head span { color: var(--brand-500); font: 700 10px/1.2 var(--font-en); letter-spacing: .15em; }
.thanks-schedule-head h2 { margin: 12px 0 0; color: var(--brand-700); font-size: clamp(38px, 5vw, 58px); line-height: 1.38; letter-spacing: -.045em; }
.thanks-schedule-head > p { margin: 0; color: var(--ink-600); }
.thanks-schedule-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 48px; align-items: start; }
.thanks-schedule-grid > aside { padding: 28px; border-top: 4px solid var(--accent-500); background: var(--surface-blue); }
.thanks-schedule-grid > aside strong { display: block; color: var(--brand-700); font-size: 17px; }
.thanks-schedule-grid > aside ul { margin: 20px 0 0; padding: 0; list-style: none; }
.thanks-schedule-grid > aside li { padding: 13px 0; border-top: 1px solid #cbd9e2; color: var(--ink-600); font-size: 12px; }
.thanks-schedule-grid > aside small { display: block; margin-top: 18px; color: var(--ink-600); font-size: 10px; }
.thanks-calendar-card { min-height: 640px; padding: 24px; border: 1px solid var(--border); background: #fff; box-shadow: var(--shadow-card); }
#timerex_calendar { min-height: 560px; }
.thanks-calendar-fallback { margin-top: 18px; text-align: center; }
.thanks-calendar-fallback p { margin: 10px 0 0; color: var(--ink-600); font-size: 10px; }
.thanks-next { padding: 104px 0 120px; color: #fff; background: var(--brand-700); }
.thanks-next-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 90px; }
.thanks-next-grid > div span { color: #a9d4f5; font: 700 10px/1.2 var(--font-en); letter-spacing: .15em; }
.thanks-next-grid h2 { margin: 12px 0 0; color: #fff; font-size: 36px; }
.thanks-next ol { margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.32); list-style: none; }
.thanks-next li { padding: 24px 0; display: grid; grid-template-columns: 50px 1fr; gap: 20px; border-bottom: 1px solid rgba(255,255,255,.18); }
.thanks-next li b { color: var(--accent-500); font: 700 12px/1 var(--font-en); }
.thanks-next li strong { color: #fff; font-size: 18px; }
.thanks-next li p { margin: 7px 0 0; color: rgba(255,255,255,.68); font-size: 12px; }

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; gap: 60px; }
  .contact-guide { position: static; }
  .thanks-mark { right: -190px; opacity: .35; }
  .thanks-schedule-head, .thanks-schedule-grid { grid-template-columns: 1fr; gap: 36px; }
  .thanks-schedule { padding: 84px 0 96px; }
}

@media (max-width: 760px) {
  .contact-hero { height: 250px; min-height: 250px; padding: 94px 0 24px; }
  .contact-hero h1 { font-size: clamp(23px, 6.5vw, 26px); line-height: 1.3; }
  .contact-hero-inner > p:last-child { display: none; }
  .contact-hero::after { width: 180px; height: 180px; right: -70px; top: 100px; opacity: .5; }
  .contact-main { padding: 76px 0 88px; }
  .contact-form-panel { padding: 34px 20px; margin-inline: -8px; }
  .hubspot-form-wrap { padding: 18px 12px; }
  .thanks-hero { min-height: 620px; padding: 142px 0 80px; }
  .thanks-inner h1 { font-size: clamp(42px, 13vw, 60px); }
  .thanks-mark { width: 280px; height: 280px; right: -170px; top: 110px; }
  .thanks-mark i { width: 98px; height: 54px; left: 92px; top: 92px; border-width: 14px; }
  .thanks-next { padding: 78px 0 88px; }
  .thanks-next-grid { grid-template-columns: 1fr; gap: 38px; }
  .thanks-calendar-card { min-height: 600px; margin-inline: -8px; padding: 12px; }
}

/* 無料サイト診断の完了後は、初期画面から日程選択へ直行させる。 */
.mysele-diagnosis-thanks .thanks-hero {
  min-height: 0;
  padding: 118px 0 38px;
}
.mysele-diagnosis-thanks .thanks-inner h1 {
  max-width: 980px;
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.25;
  letter-spacing: -.045em;
}
.mysele-diagnosis-thanks .thanks-inner > p:not(.kicker) {
  max-width: 900px;
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.75;
}
.mysele-diagnosis-thanks .thanks-mark {
  width: 190px;
  height: 190px;
  right: 8vw;
  top: 104px;
  opacity: .35;
}
.mysele-diagnosis-thanks .thanks-mark i {
  width: 66px;
  height: 36px;
  left: 64px;
  top: 64px;
  border-width: 10px;
}
.mysele-diagnosis-thanks .thanks-schedule {
  padding: 28px 0 72px;
}
.mysele-diagnosis-thanks .thanks-schedule-head {
  margin-bottom: 20px;
  padding-top: 15px;
  grid-template-columns: .72fr 1.28fr;
  gap: 42px;
}
.mysele-diagnosis-thanks .thanks-schedule-head h2 {
  margin-top: 7px;
  font-size: clamp(30px, 3.3vw, 42px);
  line-height: 1.25;
}
.mysele-diagnosis-thanks .thanks-schedule-head > p {
  font-size: 12px;
  line-height: 1.75;
}
.mysele-diagnosis-thanks .thanks-schedule-grid {
  grid-template-columns: 1fr;
  gap: 18px;
}
.mysele-diagnosis-thanks .thanks-schedule-grid > aside {
  order: 2;
  padding: 20px;
}
.mysele-diagnosis-thanks .thanks-schedule-grid > aside strong { font-size: 14px; }
.mysele-diagnosis-thanks .thanks-schedule-grid > aside ul { margin-top: 11px; }
.mysele-diagnosis-thanks .thanks-schedule-grid > aside li {
  padding: 8px 0;
  font-size: 10px;
  line-height: 1.55;
}
.mysele-diagnosis-thanks .thanks-schedule-grid > aside small {
  margin-top: 10px;
  font-size: 8px;
}
.mysele-diagnosis-thanks .thanks-calendar-card {
  order: 1;
  width: 100%;
  max-width: 960px;
  min-width: 0;
  min-height: 0;
  margin-inline: auto;
  padding: 12px;
  overflow: visible;
  box-shadow: 0 16px 42px rgba(1,52,89,.1);
}
.mysele-diagnosis-thanks #timerex_calendar {
  width: 100%;
  min-width: 0;
  min-height: 0;
  overflow: visible;
}
.mysele-diagnosis-thanks #timerex_calendar:empty::before {
  content: "カレンダーを読み込んでいます…";
  min-height: 240px;
  display: grid;
  place-items: center;
  color: var(--ink-600);
  font-size: 12px;
}
.mysele-diagnosis-thanks #timerex_calendar iframe {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  display: block;
  border: 0;
}
.mysele-diagnosis-thanks .thanks-calendar-fallback { margin-top: 8px; }

@media (max-width: 900px) {
  .mysele-diagnosis-thanks .thanks-hero { padding: 104px 0 28px; }
  .mysele-diagnosis-thanks .thanks-inner h1 { font-size: clamp(29px, 8vw, 42px); }
  .mysele-diagnosis-thanks .thanks-schedule { padding: 22px 0 60px; }
  .mysele-diagnosis-thanks .thanks-schedule-head {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 18px;
    padding-top: 12px;
  }
  .mysele-diagnosis-thanks .thanks-schedule-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .mysele-diagnosis-thanks .thanks-calendar-card {
    order: 1;
    min-height: 0;
    margin-inline: 0;
    padding: 8px;
  }
  .mysele-diagnosis-thanks .thanks-schedule-grid > aside { order: 2; }
  .mysele-diagnosis-thanks #timerex_calendar { min-height: 0; }
}

/* TimeRexはスマホでカードの小窓にせず、画面幅いっぱいの予約面として表示する。 */
@media (max-width: 760px) {
  .mysele-diagnosis-thanks .thanks-schedule { overflow: visible; }
  .mysele-diagnosis-thanks .thanks-schedule-grid {
    display: flex;
    flex-direction: column;
  }
  .mysele-diagnosis-thanks .thanks-calendar-card {
    width: 100vw;
    max-width: 100vw;
    margin-inline: calc(50% - 50vw);
    padding: 0;
    border-right: 0;
    border-left: 0;
    box-shadow: none;
    overflow: visible;
    touch-action: pan-y;
  }
  .mysele-diagnosis-thanks #timerex_calendar {
    width: 100vw;
    max-width: 100vw;
    min-height: 0;
    background: #fff;
    overflow: visible;
  }
  .mysele-diagnosis-thanks #timerex_calendar iframe {
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    display: block !important;
  }
  .mysele-diagnosis-thanks .thanks-schedule-grid > aside { width: 100%; }
}
