/* =========================================================
   Reflecdesign LLC. LP
   Colors: Deep Navy #153D73 / Pale Blue #EAF2FC / Bright Blue #2878E9 / Off White #F6F9FC
   ========================================================= */
:root {
  --navy: #153D73;
  --navy-deep: #0E2B55;
  --pale: #EAF2FC;
  --blue: #2878E9;
  --blue-dark: #1D63C7;
  --off: #F6F9FC;
  --text: #1E2B3C;
  --muted: #5A6878;
  --line: #D8E4F3;
  --white: #fff;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(21, 61, 115, .07);
  --en: "Inter", "Noto Sans JP", sans-serif;
  --ja: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --serif: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ja);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .03em;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3, h4 { margin: 0; line-height: 1.5; color: var(--navy); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 820px; }
.sp { display: inline; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 14px 28px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; text-decoration: none; line-height: 1.4; cursor: pointer;
  transition: background .2s, color .2s, transform .2s, box-shadow .2s;
}
.btn::after { content: "→"; font-family: var(--en); transition: transform .2s; }
.btn:hover::after { transform: translateX(4px); }
.btn--primary { background: var(--blue); color: var(--white); box-shadow: 0 8px 20px rgba(40, 120, 233, .3); }
.btn--primary:hover { background: var(--blue-dark); }
.btn--ghost { border-color: rgba(255,255,255,.7); color: var(--white); background: transparent; }
.btn--ghost:hover { background: var(--white); color: var(--navy); }
.btn--sm { padding: 8px 18px; font-size: 14px; box-shadow: none; }
.btn--sm::after { display: none; }
.btn--lg { padding: 18px 32px; font-size: 16px; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background .3s, box-shadow .3s;
}
.header.is-scrolled { background: rgba(255,255,255,.96); box-shadow: 0 2px 16px rgba(21,61,115,.08); backdrop-filter: blur(8px); }
.header__inner { max-width: 1240px; height: 100%; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; }
.header__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); font-family: var(--en); font-weight: 700; font-size: 18px; letter-spacing: .02em; }
.header__brand img { width: 36px; height: 36px; background: #fff; border-radius: 6px; padding: 2px; }
.header__brand small { font-weight: 400; font-size: 13px; opacity: .8; }
.header.is-scrolled .header__brand { color: var(--navy); }
.header__nav { display: none; }
.admin-bar .header { top: 32px; }
@media (max-width: 782px) { .admin-bar .header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .header { position: absolute; } }
.is-subpage .header { background: rgba(255,255,255,.96); box-shadow: 0 2px 16px rgba(21,61,115,.08); }
.is-subpage .header__brand { color: var(--navy); }

/* ---------- 01 Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse at 80% 30%, #1F4F92 0%, var(--navy) 45%, var(--navy-deep) 100%);
  color: var(--white);
  padding: calc(var(--header-h) + 64px) 0 96px;
}
.hero__motif { position: absolute; width: 560px; right: -220px; top: 50%; transform: translateY(-50%); opacity: .55; pointer-events: none; }
.hero__orbit { stroke-dasharray: 600; animation: orbit 3s ease-out both; }
@keyframes orbit { from { stroke-dashoffset: 600; } to { stroke-dashoffset: 0; } }
.hero__inner { position: relative; }
.hero h1 { margin: 0 0 24px; }
.hero__eyebrow {
  display: inline-block; font-size: clamp(13px, 3.4vw, 16px); font-weight: 700; letter-spacing: .06em; line-height: 1.6;
  color: var(--white); background: rgba(40,120,233,.35); border: 1px solid rgba(141,187,248,.5);
  padding: 6px 16px; border-radius: 8px; margin-bottom: 24px;
}
.hero__slash { color: #8DBBF8; margin: 0 .2em; }
@media (max-width: 767px) { .hero__slash { display: none; } }
.hero__title { display: block; color: var(--white); font-size: clamp(24px, 6.8vw, 56px); font-weight: 700; line-height: 1.45; letter-spacing: .04em; }
.hero__mark { background: linear-gradient(transparent 70%, rgba(40,120,233,.7) 70%); }
.hero__lead { font-size: clamp(15px, 3.8vw, 17px); color: rgba(255,255,255,.9); max-width: 680px; margin-bottom: 40px; }
.hero__cta { display: flex; flex-direction: column; gap: 14px; }

/* ---------- Section ---------- */
.section { padding: 88px 0; }
.section--pale { background: var(--off); }
.sec-head { margin-bottom: 48px; }
.sec-head__num { font-family: var(--en); font-weight: 700; color: var(--blue); font-size: 14px; letter-spacing: .12em; margin-bottom: 12px; display: flex; align-items: center; gap: 12px; }
.sec-head__num span { color: var(--navy); font-weight: 600; }
.sec-head__num::after { content: ""; width: 40px; height: 2px; background: var(--blue); }
.sec-head__title { font-size: clamp(23px, 5.6vw, 36px); font-weight: 700; letter-spacing: .04em; margin-bottom: 20px; }
.sec-head__title--serif { font-family: var(--serif); font-weight: 600; }
.sec-head__desc { color: var(--muted); max-width: 820px; margin: 0; }
.sec-head--invert .sec-head__num, .sec-head--invert .sec-head__num span { color: #8DBBF8; }
.sec-head--invert .sec-head__num::after { background: #8DBBF8; }
.sec-head--invert .sec-head__title { color: var(--white); }
.sec-head--invert .sec-head__desc { color: rgba(255,255,255,.85); }


.figure { margin: 0 0 48px; }
.figure img { width: 100%; border-radius: var(--radius); }
.figure--card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); }
.figure--card img { border-radius: 10px; }
.figure figcaption { font-size: 14px; font-weight: 700; color: var(--navy); text-align: center; padding: 12px 8px 4px; }

/* ---------- 02 Challenges ---------- */
.pain { display: grid; gap: 24px; align-items: center; }
.pain__figure { margin: 0; }
.pain__lists { display: grid; gap: 16px; }
.pain__box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.pain__box h3 { font-size: 18px; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.pain__tag { font-size: 12px; color: var(--white); background: var(--navy); padding: 2px 12px; border-radius: 999px; }
.pain__box--pro .pain__tag { background: var(--blue); }
.check-list li { position: relative; padding: 8px 0 8px 32px; font-weight: 700; color: var(--text); border-bottom: 1px dashed var(--line); }
.check-list li:last-child { border-bottom: 0; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; background: var(--pale); }
.check-list li::after { content: ""; position: absolute; left: 6px; top: 50%; width: 8px; height: 4px; margin-top: -4px; border: solid var(--blue); border-width: 0 0 2px 2px; transform: rotate(-45deg); }


/* ---------- 03 Services ---------- */
.service { background: var(--off); border-radius: 24px; padding: 32px 20px; margin-bottom: 32px; scroll-margin-top: var(--header-h); }
.service--pro { background: var(--pale); }
.service__head { margin-bottom: 24px; }
.service__tag { display: inline-block; font-family: var(--en); font-weight: 700; font-size: 12px; letter-spacing: .08em; color: var(--white); background: var(--navy); padding: 4px 14px; border-radius: 999px; margin-bottom: 14px; }
.service--pro .service__tag { background: var(--blue); }
.service__head h3 { font-size: clamp(20px, 5vw, 26px); margin-bottom: 12px; }
.service__head p:not(.service__tag) { color: var(--muted); margin: 0; }
.service__more { display: inline-block; margin-top: 24px; font-weight: 700; }

.flow-cards { display: grid; gap: 16px; }
.flow-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.flow-card > div { padding: 14px 20px; font-size: 15px; line-height: 1.7; position: relative; }
.flow-card span { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; margin-bottom: 2px; }
.flow-card__pain { background: #F1F4F8; color: var(--text); font-weight: 700; }
.flow-card__pain span { color: var(--muted); }
.flow-card__service { color: var(--navy); font-weight: 700; font-size: 16px !important; flex: 1; }
.flow-card__service span { color: var(--blue); }
.flow-card__service::before {
  content: ""; position: absolute; left: 50%; top: -7px; margin-left: -7px;
  border: 7px solid transparent; border-bottom: 0; border-top-color: var(--blue);
}

/* ---------- 04 Price ---------- */
.price { display: grid; gap: 20px; }
.price__card { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.price__card--pro { border-top-color: var(--blue); }
.price__tag { font-size: 13px; font-weight: 700; color: var(--blue); margin-bottom: 4px; }
.price__card h3 { font-size: 18px; margin-bottom: 16px; }
.price__card p:not(.price__tag) { color: var(--muted); font-size: 15px; flex: 1; }
.price__card .btn { align-self: flex-start; }

/* ---------- 05 Reflection ---------- */
.figure--center { max-width: 880px; margin: 0 auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- 06 Message ---------- */
.message { display: grid; gap: 32px; }
.message__photo { margin: 0; max-width: 300px; }
.message__photo img { width: 100%; border-radius: 20px; box-shadow: 16px 16px 0 var(--pale); }
.message__body p { color: var(--text); }
.message__body blockquote {
  margin: 1.6em 0; padding: 24px; border-radius: var(--radius); background: var(--pale);
  font-family: var(--serif); font-weight: 600; color: var(--navy); font-size: clamp(16px, 4vw, 19px); line-height: 1.9;
}
.message__body blockquote::before { content: "「"; } .message__body blockquote::after { content: "」"; }
.message__more summary {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; list-style: none;
  font-weight: 700; color: var(--blue); padding: 10px 20px; border: 1px solid var(--blue); border-radius: 999px; margin-bottom: 1em;
}
.message__more summary::-webkit-details-marker { display: none; }
.message__more summary::after { content: "＋"; }
.message__more[open] summary::after { content: "－"; }
.message__more[open] summary { margin-bottom: 1.5em; }
.message__sign { text-align: right; margin-top: 2em; color: var(--muted); font-size: 14px; }
.message__sign strong { display: block; font-family: var(--serif); font-size: 24px; color: var(--navy); letter-spacing: .2em; }

.profile { display: grid; gap: 16px; margin-top: 56px; }
.profile__card { background: var(--off); border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.profile__card h3 { font-size: 16px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--blue); display: inline-block; }
.profile__card p, .profile__card li { font-size: 14px; color: var(--muted); line-height: 1.8; margin: 0; }
.dot-list li { position: relative; padding-left: 1em; margin-bottom: 4px; }
.dot-list li::before { content: ""; position: absolute; left: 0; top: .75em; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }

/* ---------- 07 Voices ---------- */
.figure--voices { max-width: 1040px; margin: 0; }

/* ---------- 08 Contact ---------- */
.contact {
  background: radial-gradient(ellipse at 10% 0%, #1F4F92 0%, var(--navy) 50%, var(--navy-deep) 100%);
  color: var(--white); padding: 88px 0 104px;
}
.contact__choices { display: grid; gap: 14px; margin-bottom: 40px; }
.choice {
  appearance: none; cursor: pointer; text-align: left; width: 100%;
  display: grid; gap: 4px; padding: 22px 56px 22px 24px; border-radius: var(--radius);
  background: var(--blue); color: var(--white); border: 2px solid var(--blue);
  font-family: var(--ja); position: relative; transition: background .2s, transform .2s;
}
.choice::after { content: "→"; font-family: var(--en); position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: 20px; }
.choice:nth-child(2) { background: transparent; border-color: rgba(255,255,255,.6); }
.choice:hover { transform: translateY(-2px); background: var(--blue-dark); }
.choice.is-selected { outline: 3px solid #8DBBF8; outline-offset: 3px; }
.choice__en { font-family: var(--en); font-size: 12px; letter-spacing: .12em; opacity: .8; }
.choice__ja { font-size: 18px; font-weight: 700; }

.form { background: var(--white); color: var(--text); border-radius: 24px; padding: 32px 20px; box-shadow: 0 20px 40px rgba(0,0,0,.2); }
.form__grid { display: grid; gap: 0 20px; }
.form__row { display: block; margin: 0 0 22px; padding: 0; border: 0; }
.form__label, .form__row > span, .form__row legend { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy); font-size: 15px; margin-bottom: 8px; padding: 0; }
.form em { font-style: normal; font-size: 11px; color: var(--white); background: #D9534F; padding: 1px 8px; border-radius: 4px; margin-left: 6px; }
.form em.opt { background: #9AA7B6; }
.form input[type="text"], .form input[type="email"], .form textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--off); color: var(--text); transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(40,120,233,.18); background: var(--white); }
.form .wpcf7-radio { display: flex; flex-wrap: wrap; gap: 12px; }
.form .wpcf7-list-item { margin: 0; }
.form .wpcf7-radio label { display: flex; align-items: center; gap: 8px; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; background: var(--off); }
.form .wpcf7-radio label:has(input:checked) { border-color: var(--blue); background: var(--pale); color: var(--navy); font-weight: 700; }
.form input[type="radio"], .form input[type="checkbox"] { accent-color: var(--blue); width: 18px; height: 18px; }
.form__caution { font-size: 13px; color: var(--muted); background: var(--off); border-radius: 8px; padding: 12px 14px; }
.form__agree { margin: 0 0 24px; font-size: 14px; }
.form__agree label { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.form__submit { position: relative; text-align: center; }
.form .wpcf7-submit {
  appearance: none; width: 100%; padding: 18px 32px; border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 16px; font-weight: 700; color: var(--white); background: var(--blue);
  box-shadow: 0 8px 20px rgba(40, 120, 233, .3); transition: background .2s;
}
.form .wpcf7-submit:hover { background: var(--blue-dark); }
.form .wpcf7-submit:disabled { opacity: .6; cursor: not-allowed; }
.form .wpcf7-spinner { position: absolute; right: 16px; top: 50%; margin: -12px 0 0; }

.form .wpcf7-form-control-wrap { display: block; }

/* Contact Form 7：入力エラー・送信結果 */
.form .wpcf7-not-valid { border-color: #D9534F !important; }
.form .wpcf7-not-valid-tip { display: block; margin-top: 6px; font-size: 13px; color: #D9534F; }
.form .wpcf7 form .wpcf7-response-output { margin: 20px 0 0; padding: 14px 16px; border-radius: 10px; font-size: 14px; text-align: center; }
.form .wpcf7 form.sent .wpcf7-response-output { border-color: var(--blue); background: var(--pale); color: var(--navy); font-weight: 700; }
.form .wpcf7 form.invalid .wpcf7-response-output,
.form .wpcf7 form.unaccepted .wpcf7-response-output,
.form .wpcf7 form.payment-required .wpcf7-response-output { border-color: #F0AD4E; background: #FFF8EC; }
.form .wpcf7 form.failed .wpcf7-response-output,
.form .wpcf7 form.aborted .wpcf7-response-output,
.form .wpcf7 form.spam .wpcf7-response-output { border-color: #D9534F; background: #FDF0F0; }
.form__notice { margin: 0; padding: 16px; border-radius: 10px; background: #FFF8EC; color: var(--text); font-size: 14px; }

/* ---------- Footer ---------- */
.footer { background: var(--white); padding: 56px 0 96px; border-top: 1px solid var(--line); }
.footer__inner { display: grid; gap: 32px; }
.footer__brand { display: flex; align-items: center; gap: 20px; }
.footer__brand img { width: 88px; height: 88px; flex: 0 0 auto; }
.footer__name { font-weight: 700; color: var(--navy); margin: 0 0 4px; font-size: 16px; line-height: 1.6; }
.footer__name span { display: block; font-family: var(--en); font-size: 14px; color: var(--muted); font-weight: 600; }
.footer__tagline { font-size: 13px; color: var(--muted); margin: 0; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer__nav a { font-size: 14px; color: var(--navy); text-decoration: none; }
.footer__nav a:hover { color: var(--blue); text-decoration: underline; }
.footer__copy { text-align: center; color: var(--muted); font-family: var(--en); margin: 40px 0 0; }

/* ---------- LP以外のページ ---------- */
.page { padding: calc(var(--header-h) + 56px) 0 88px; }
.page__title { font-size: clamp(24px, 5.6vw, 32px); margin-bottom: 32px; padding-bottom: 16px; border-bottom: 2px solid var(--blue); }
.page__content h2 { font-size: 22px; margin: 2em 0 .8em; }
.page__content h3 { font-size: 18px; margin: 1.6em 0 .6em; }
.page__content ul { list-style: disc; padding-left: 1.4em; margin-bottom: 1em; }
.page__content ol { list-style: decimal; padding-left: 1.4em; margin-bottom: 1em; }

/* ---------- Fixed CTA (SP) ---------- */
.fixed-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96); box-shadow: 0 -4px 16px rgba(21,61,115,.12);
  transform: translateY(110%); transition: transform .3s;
}
.fixed-cta.is-visible { transform: none; }
.fixed-cta__btn { display: grid; place-items: center; text-align: center; padding: 10px 6px; border-radius: 10px; font-size: 13px; font-weight: 700; line-height: 1.4; text-decoration: none; }
.fixed-cta__btn--org { background: var(--blue); color: var(--white); }
.fixed-cta__btn--pro { background: var(--navy); color: var(--white); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__orbit { animation: none; }
}

/* =========================================================
   Tablet / PC
   ========================================================= */
@media (min-width: 768px) {
  .sp { display: none; }
  .container { padding: 0 32px; }
  .hero { padding: calc(var(--header-h) + 100px) 0 140px; }
  .hero__motif { width: 680px; right: -120px; opacity: .8; }
  .hero__cta { flex-direction: row; flex-wrap: wrap; }
  .section { padding: 120px 0; }
  .sec-head { margin-bottom: 64px; }
  .pain__lists { grid-template-columns: 1fr 1fr; }
  .service { padding: 48px 40px; }
  .flow-cards { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .price { grid-template-columns: 1fr 1fr; gap: 24px; }
  .message { grid-template-columns: 300px 1fr; gap: 64px; align-items: start; }
  .message__photo { position: sticky; top: calc(var(--header-h) + 32px); }
  .profile { grid-template-columns: repeat(3, 1fr); }
  .contact { padding: 120px 0; }
  .contact__choices { grid-template-columns: 1fr 1fr; gap: 20px; }
  .form { padding: 48px; max-width: 820px; margin: 0 auto; }
  .form__grid { grid-template-columns: 1fr 1fr; }
  .form .wpcf7-submit { width: auto; min-width: 320px; }
  .footer { padding: 64px 0 40px; }
  .footer__inner { grid-template-columns: auto 1fr; align-items: center; }
  .footer__nav { justify-content: flex-end; }
  .fixed-cta { display: none; }
}

@media (min-width: 1024px) {
  .header__nav { display: flex; align-items: center; gap: 28px; }
  .header__nav a:not(.btn) { font-size: 14px; font-weight: 600; color: rgba(255,255,255,.9); text-decoration: none; }
  .header.is-scrolled .header__nav a:not(.btn),
  .is-subpage .header__nav a:not(.btn) { color: var(--navy); }
  .header__nav a:not(.btn):hover { color: var(--blue); }
  .header__nav { gap: 22px; }
  .pain { grid-template-columns: 1.1fr 1fr; gap: 40px; }
  .pain__lists { grid-template-columns: 1fr; }
  .flow-cards { grid-template-columns: repeat(4, 1fr); }
  .flow-cards--1 { grid-template-columns: 1fr; }
  .flow-cards--2 { grid-template-columns: repeat(2, 1fr); }
  .flow-cards--3, .flow-cards--5, .flow-cards--6 { grid-template-columns: repeat(3, 1fr); }
  .hero__motif { right: 0; }
}
