/*
Theme Name: Mirai Shindan LP
Description: 訪問歯科経営戦略研究所ミライ 売上シミュレーション診断ページ（/diagnosis）専用テーマ
Version: 1.0
*/

@charset "UTF-8";

:root {
  --orange: #f2621e;
  --navy: #0f2d55;
  --ink: #212b36;
  --cream: #faf7f0;
  --line: #e6e2d8;
  --gray: #66707c;
  --blue: #0869d3;
  --input-bg: #fafbfc;
  --placeholder: #757575;
  --radio-border: #767676;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  overflow: visible;
}

/* ------- header ------- */
.p-header {
  padding: 20px 0 0;
}

.p-header__logo {
  height: 88px;
  width: auto;
  object-fit: contain;
}

/* ------- hero ------- */
.p-hero {
  position: relative;
  padding: 32px 0 80px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 24px;
}

.p-hero__inner {
  flex: 1 1 420px;
  min-width: 0;
  position: relative;
  z-index: 2;
}

.p-hero__badge {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  padding: 16px 36px;
  border-radius: 100px;
  box-shadow: 0 8px 14px rgba(242, 98, 30, 0.28);
  margin-bottom: 28px;
}

.p-hero__title {
  font-weight: 900;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  color: var(--navy);
  line-height: 1.35;
  margin: 24px 0 20px;
}

.p-hero__title .is-orange {
  color: var(--orange);
}

.p-hero__lead {
  font-size: 1.3rem;
  margin: 0 0 28px;
}

.p-hero__lead .is-medium {
  font-weight: 500;
}

.p-hero__lead .is-bold {
  font-weight: 700;
}

.p-hero__lead .is-orange {
  color: var(--orange);
}

.p-hero__cta {
  position: absolute;
  left: 8%;
  bottom: -8%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 84%;
  max-width: none;
  background: rgba(8, 105, 211, 0.9);
  color: #fff;
  text-decoration: none;
  padding: 22px 28px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 4px rgba(8, 105, 211, 0.2);
}

.p-hero__cta-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.p-hero__cta-text {
  font-weight: 700;
  font-size: 1.5rem;
  flex: 1 1 auto;
  line-height: 1.3;
  white-space: nowrap;
}

.p-hero__cta-arrow {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.p-hero__image {
  position: relative;
  flex: 1 1 420px;
  min-width: 0;
  max-width: 480px;
  margin: -160px 0 0;
}

.p-hero__image img {
  width: 100%;
}

.p-hero__cta-arrow img {
  width: 26px;
  height: 26px;
  transform: rotate(90deg);
}

@media (max-width: 900px) {
  .p-hero__image {
    margin: -80px auto 0;
    max-width: 380px;
  }
}

@media (max-width: 640px) {
  .p-hero__cta {
    left: 4%;
  }

  .p-hero__cta-text {
    white-space: normal;
  }

  .p-hero__badge {
    font-size: 1.2rem;
    padding: 14px 28px;
    white-space: nowrap;
  }
}

/* ------- section common ------- */
.p-section {
  padding: 48px 0;
}

.p-panel-title {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}

.p-kicker-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}

.p-panel-title h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 900;
  color: var(--navy);
  margin: 0;
  white-space: nowrap;
}

.p-kicker-rule {
  flex: 1 1 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--orange) 0%, var(--orange) 8%, var(--line) 8%, var(--line) 100%);
}

.p-panel-body {
  position: relative;
  overflow: hidden;
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: 18px;
  padding: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
}

.p-panel-body__divider {
  align-self: stretch;
  width: 1px;
  background: var(--line);
  flex-shrink: 0;
}

@media (max-width: 780px) {
  .p-panel-body__divider {
    display: none;
  }
}

/* ------- checklist ------- */
.p-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1 1 380px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.p-checklist li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 500;
  font-size: 1.15rem;
}

.p-check {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* ------- offer (checklist section illustration) ------- */
.p-offer {
  flex: 1 1 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding-right: 190px;
}

.p-offer__text {
  text-align: left;
}

.p-offer__img {
  position: absolute;
  bottom: 0;
  right: 0;
  height: 92%;
  width: auto;
  max-width: none;
}

@media (max-width: 780px) {
  .p-offer {
    padding-right: 0;
  }

  .p-offer__img {
    position: static;
    height: auto;
    width: 130px;
    margin: 0 auto;
  }
}

.p-offer__pre,
.p-offer__post {
  margin: 0;
  font-weight: 700;
  font-size: 1.2rem;
}

.p-offer__main {
  margin: 10px 0;
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--orange);
  line-height: 1.4;
}

/* ------- diagnosis section ------- */
.p-diagnosis {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
}

.p-diagnosis__text {
  flex: 1 1 460px;
  font-size: 1.15rem;
  font-weight: 500;
}

.p-diagnosis__text p {
  margin: 0 0 6px;
}

.p-diagnosis__text mark {
  background: #fff6b7;
  color: var(--blue);
  font-weight: 900;
  font-size: 1.3rem;
  padding: 0.15em 0.1em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.p-diagnosis__img {
  flex: 0 1 260px;
  width: 260px;
}

/* ------- recommend section ------- */
.p-recommend {
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 24px;
  padding: 40px 0 0 40px;
}

.p-recommend__list {
  flex: 1 1 340px;
  padding-bottom: 40px;
}

.p-recommend__list li {
  font-size: 1.1rem;
}

.p-recommend__img {
  flex: 1 1 320px;
  max-width: 440px;
  min-width: 0;
  margin: 0 0 0 auto;
  display: block;
}

@media (max-width: 640px) {
  .p-recommend {
    padding: 32px 0 0 24px;
  }

  .p-recommend__img {
    margin: 0 auto;
  }
}

/* ------- arrow divider ------- */
.p-arrow-divider {
  display: flex;
  justify-content: center;
  padding: 24px 0;
}

.p-arrow-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 12px 12px rgba(242, 98, 30, 0.3);
}

/* ------- TOC ------- */
.p-toc__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}

.p-toc__header h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 900;
  color: var(--navy);
  margin: 0;
  white-space: nowrap;
}

.p-kicker-rule--toc {
  flex: 1 1 auto;
}

.p-toc__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  border: 1.5px solid var(--line);
  border-radius: 18px;
  overflow: visible;
}

.p-toc__item {
  background: #fff;
  border-right: 1.5px solid var(--line);
  border-bottom: 1.5px solid var(--line);
  padding: 32px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.p-toc__item:first-child {
  border-top-left-radius: 18px;
  border-bottom-left-radius: 18px;
}

.p-toc__item:last-child {
  border-top-right-radius: 18px;
  border-bottom-right-radius: 18px;
}

.p-toc__item.is-empty {
  position: relative;
  overflow: visible;
  border-right: none;
  padding: 0;
}

.p-toc__item.is-empty .p-toc__mascot {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  height: 100%;
  max-width: none;
  object-fit: contain;
  z-index: 2;
}

.p-toc__item img {
  width: 96px;
  height: 96px;
  object-fit: contain;
}

.p-toc__item h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--navy);
  line-height: 1.5;
}

.p-toc__note {
  margin: 20px 0 0;
  text-align: center;
  font-size: 0.95rem;
}

/* ------- form section ------- */
.p-form-section {
  background: var(--cream);
  border-radius: 18px;
  padding: 56px 24px;
  margin: 32px 0 0;
  text-align: center;
}

.p-form-section__title {
  color: var(--orange);
  font-weight: 900;
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin: 0 0 12px;
}

.p-form-section__note {
  color: var(--gray);
  margin: 0 0 32px;
}

.p-form {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 18px 22px rgba(0, 0, 0, 0.07);
  padding: 40px;
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
}

.p-form__field {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1.5px solid var(--line);
}

.p-form__field label {
  flex: 0 0 auto;
  width: 190px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.p-req {
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 2px 10px;
  border-radius: 6px;
}

.p-form__field .wpcf7-form-control-wrap {
  flex: 1 1 260px;
  min-width: 0;
}

.p-form__field input[type="text"],
.p-form__field input[type="email"],
.p-form__field input[type="tel"] {
  flex: 1 1 260px;
  min-width: 0;
  width: 100%;
  background: var(--input-bg);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
}

.p-form__field input::placeholder {
  color: var(--placeholder);
}

.p-form__field--radio {
  align-items: flex-start;
}

.p-form__field--radio > label {
  flex-basis: auto;
  white-space: nowrap;
}

.p-radio-group {
  padding-top: 6px;
}

.p-radio-group .wpcf7-form-control.wpcf7-radio {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}

.p-radio-group .wpcf7-list-item {
  margin: 0;
}

.p-radio-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  cursor: pointer;
}

.p-radio-group input[type="radio"] {
  display: none;
}

.p-radio-group .wpcf7-list-item-label {
  position: relative;
  padding-left: 30px;
}

.p-radio-group .wpcf7-list-item-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--radio-border);
  background: #fff;
}

.p-radio-group input[type="radio"]:checked + .wpcf7-list-item-label::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
}

.wpcf7-not-valid-tip {
  display: block;
  color: var(--orange);
  font-size: 0.85rem;
  margin-top: 6px;
}

.wpcf7-response-output {
  margin: 20px 0 0;
  border-radius: 12px !important;
  border-color: var(--line) !important;
  font-size: 0.9rem;
}

.p-form__submit {
  display: block;
  width: 100%;
  margin-top: 32px;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  border: none;
  border-radius: 14px;
  padding: 22px;
  cursor: pointer;
  box-shadow: 0 14px 14px rgba(242, 98, 30, 0.3);
}

.p-form__submit:hover {
  filter: brightness(0.95);
}

.p-form__privacy {
  text-align: center;
  color: var(--gray);
  font-size: 0.85rem;
  margin: 20px 0 0;
}

/* ------- footer ------- */
.p-footer {
  padding: 20px 0 40px;
  text-align: center;
}

.p-footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: left;
  margin-bottom: 24px;
}

.p-footer__brand {
  flex: 0 0 auto;
}

.p-footer__logo {
  height: 56px;
  margin: 0 0 12px;
}

.p-footer__partner {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.p-footer__partner-img {
  width: 120px;
  margin-top: -42px;
  position: relative;
  z-index: 2;
}

.p-footer__partner-box {
  display: flex;
  align-items: center;
  gap: 0;
  border: 3px solid var(--blue);
  border-radius: 14px;
  padding: 8px;
  text-align: left;
  max-width: 320px;
  position: relative;
}

.p-footer__partner-icon {
  position: absolute;
  width: 48px;
  flex-shrink: 0;
  right: 4px;
  bottom: 4px;
}

.p-footer__partner-box p {
  margin: 0;
  color: var(--blue);
  font-size: 0.9rem;
  line-height: 1.6;
}

.p-footer__partner-box mark {
  background: linear-gradient(to bottom, rgba(255, 255, 0, 0) 50%, rgb(255, 255, 0) 50%);
  color: var(--blue);
  font-weight: 900;
  font-size: 1.15rem;
  padding: 0 0.15em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.p-footer__copy {
  color: var(--orange);
  font-weight: 700;
  font-size: 0.75rem;
  margin: 0;
  white-space: nowrap;
}

.p-footer__desc {
  flex: 1 1 200px;
  font-size: 0.9rem;
  max-width: 200px;
  margin: 0;
}

.p-footer__address {
  font-size: 0.75rem;
  color: var(--ink);
  margin: 0;
  text-align: center;
}

@media (max-width: 780px) {
  .p-footer__row {
    justify-content: center;
    text-align: center;
  }

  .p-footer__brand {
    text-align: center;
  }

  .p-footer__partner-img {
    margin-top: 0;
  }
}

/* ------- responsive ------- */
@media (max-width: 640px) {
  .p-panel-body,
  .p-form {
    padding: 24px;
  }

  .p-form__field {
    flex-direction: column;
    align-items: flex-start;
  }

  .p-form__field label {
    flex: none;
  }

  .p-form__field input[type="text"],
  .p-form__field input[type="email"],
  .p-form__field input[type="tel"] {
    width: 100%;
    flex: auto;
  }
}
