/*
 * Active Brain SME - 相談できること
 * Page-specific styles for consultation.html.
 * assets/css/style.css must be loaded first.
 */

/* --------------------------------------------------------------------------
   Page / navigation
   -------------------------------------------------------------------------- */

.consultation-page {
  overflow-x: hidden;
}

.consultation-page .main-nav .is-current {
  color: var(--orange2);
}

.consultation-page .main-nav .is-current::after {
  right: 0 !important;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.consult-hero {
  padding: 76px 0 70px;
  background:
    radial-gradient(circle at 8% 16%, rgba(255, 153, 0, .10), transparent 18%),
    radial-gradient(circle at 78% 45%, rgba(102, 102, 204, .08), transparent 24%),
    #fff;
}

.consult-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, .94fr);
  gap: 72px;
  align-items: center;
}

.consult-eyebrow {
  margin: 0 0 14px;
  color: #5f6380;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .08em;
}

.consult-hero h1 {
  margin: 0;
  color: var(--navy2);
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1.25;
  letter-spacing: .01em;
}

.consult-hero h1 span {
  color: var(--orange2);
}

.consult-lead {
  margin: 20px 0 14px;
  color: var(--navy);
  font-size: 24px;
  font-weight: 900;
}

.consult-text {
  max-width: 690px;
  margin: 7px 0 0;
  color: #3c4257;
  font-size: 16px;
  line-height: 2;
}

.consult-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.consult-hero-board {
  position: relative;
  padding: 30px;
  border: 1px solid #e2e5ee;
  border-radius: 28px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 18px 44px rgba(26, 45, 88, .10);
}

.consult-hero-board::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -12px 22px 14px -12px;
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(255, 153, 0, .10), rgba(102, 102, 204, .08));
}

.consult-hero-board-title {
  margin: 0 0 18px;
  color: #253267;
  font-size: 15px;
  font-weight: 900;
}

.consult-hero-board-item {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 10px 0;
  padding: 14px 16px;
  border: 1px solid #e4e7ef;
  border-radius: 14px;
  background: #fff;
}

.consult-hero-board-item:nth-of-type(even) {
  border-color: #efd7ac;
  background: #fffaf2;
}

.consult-hero-board-item svg {
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  color: #4058a8;
}

.consult-hero-board-item:nth-of-type(even) svg {
  color: var(--orange2);
}

.consult-hero-board-item span {
  color: #343c58;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}

.consult-hero-board-note {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px dashed #d9dde7;
  color: #626a7c;
  font-size: 13px;
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   Shared headings
   -------------------------------------------------------------------------- */

.consult-section,
.consult-cases {
  padding: 68px 0;
}

.consult-heading {
  max-width: 820px;
  margin: 0 auto 42px;
  text-align: center;
}

.consult-heading > p {
  margin: 0 0 5px;
  color: var(--orange2);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .18em;
}

.consult-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: 29px;
  line-height: 1.45;
}

.consult-heading > span {
  display: block;
  margin-top: 9px;
  color: #687083;
  font-size: 14px;
}

.green-heading > p {
  color: #4c9142;
}

.green-heading h2 {
  color: #3f7c37;
}

.purple-heading > p {
  color: var(--purple);
}

.purple-heading h2 {
  color: #5154b5;
}

/* --------------------------------------------------------------------------
   Examples - editorial zigzag layout
   -------------------------------------------------------------------------- */

.consult-cases {
  background: #fff;
}

.consult-case-list {
  display: grid;
  gap: 74px;
}

.consult-case {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  align-items: center;
  gap: 58px;
  width: 94%;
}

.consult-case.case-photo-left {
  margin-right: auto;
}

.consult-case.case-photo-right {
  margin-left: auto;
}

.case-photo-wrap {
  position: relative;
}

.case-photo-wrap::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 42%;
  height: 42%;
  border-radius: 28px;
  background: rgba(102, 102, 204, .08);
}

.case-photo-left .case-photo-wrap::after {
  right: -18px;
  bottom: -18px;
}

.case-photo-right .case-photo-wrap::after {
  top: -18px;
  left: -18px;
  background: rgba(255, 153, 0, .09);
}

.case-photo-wrap img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 26px;
  object-fit: cover;
  box-shadow: 0 18px 42px rgba(32, 33, 71, .11);
}

.case-copy {
  --case-accent: var(--purple);
  --case-soft: #f4f4ff;
  padding: 27px 4px 24px;
  border-top: 4px solid var(--case-accent);
}

.case-copy.case-green {
  --case-accent: #6f9f61;
  --case-soft: #eef7eb;
}

.case-copy.case-purple {
  --case-accent: #6666cc;
  --case-soft: #f2f2ff;
}

.case-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 10px;
  color: #666d80;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .03em;
}

.case-kicker span {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 50%;
  background: var(--case-soft);
  color: var(--case-accent);
  font-size: 12px;
  font-weight: 900;
}

.case-copy h3 {
  margin: 0;
  color: #29335c;
  font-size: clamp(25px, 2.7vw, 34px);
  line-height: 1.45;
}

.case-copy ul {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.case-copy li {
  position: relative;
  padding: 0 0 0 25px;
  color: #596174;
  font-size: 14px;
  line-height: 1.8;
}

.case-copy li::before {
  content: "✓";
  position: absolute;
  top: 0;
  left: 0;
  color: var(--case-accent);
  font-weight: 900;
}

.consultation-anything-box {
  margin: 58px auto 0;
}

.anything-box {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 24px 28px;
  border-radius: 18px;
  background: linear-gradient(90deg, #f4f4ff, #fff9ed);
}

.anything-icon {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 26px;
  font-weight: 900;
}

.anything-box h3 {
  margin: 0 0 4px;
  color: #393c8f;
  font-size: 19px;
}

.anything-box p {
  margin: 0;
  color: #5f6678;
  font-size: 13px;
  line-height: 1.8;
}

/* --------------------------------------------------------------------------
   How we work
   -------------------------------------------------------------------------- */

.organize-section {
  background: linear-gradient(180deg, #fbfef9, #fff);
}

.organize-flow {
  display: grid;
  grid-template-columns: 1fr auto 1.35fr auto 1fr;
  gap: 14px;
  align-items: center;
  margin: 4px 0 24px;
}

.organize-start,
.organize-center,
.organize-result {
  display: flex;
  min-height: 150px;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  border-radius: 18px;
  text-align: center;
}

.organize-start,
.organize-result {
  border: 1px solid #bdd9b4;
  background: #fbfff9;
}

.organize-center {
  background: #4f8d47;
  color: #fff;
  box-shadow: 0 12px 26px rgba(79, 141, 71, .15);
}

.organize-start span,
.organize-result span {
  color: #6d9c64;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .15em;
}

.organize-start strong,
.organize-result strong {
  color: #356d31;
  font-size: 17px;
}

.organize-start p,
.organize-result p {
  margin: 5px 0 0;
  color: #687668;
  font-size: 12px;
}

.organize-center p {
  margin: 0 0 5px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  opacity: .85;
}

.organize-center strong {
  font-size: 18px;
  line-height: 1.55;
}

.organize-arrow {
  color: #75a86c;
  font-size: 28px;
  font-weight: 900;
}

.decision-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}

.decision-grid article {
  position: relative;
  min-height: 132px;
  padding: 22px 20px 20px;
  border: 1px solid #c9dfc3;
  border-radius: 16px;
  background: #fff;
}

.decision-grid span {
  position: absolute;
  top: 12px;
  right: 15px;
  color: #a8c4a1;
  font-size: 11px;
  font-weight: 900;
}

.decision-grid h3 {
  margin: 0 0 7px;
  color: #447c3d;
  font-size: 17px;
}

.decision-grid p {
  margin: 0;
  color: #616d61;
  font-size: 13px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Support style
   -------------------------------------------------------------------------- */

.support-detail {
  background: #fff;
}

.support-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.support-detail-grid article {
  position: relative;
  min-height: 235px;
  padding: 28px;
  border: 1px solid #d5d5f5;
  border-radius: 18px;
  background: #fdfdff;
  text-align: center;
}

.support-detail-grid svg {
  width: 46px;
  height: 46px;
  margin: 8px auto;
  color: var(--purple);
}

.support-detail-grid h3 {
  margin: 8px 0;
  color: #4d50ae;
  font-size: 18px;
}

.support-detail-grid p {
  margin: 0;
  color: #62677a;
  font-size: 13px;
  line-height: 1.8;
}

.support-number {
  position: absolute;
  top: 15px;
  left: 17px;
  color: #a5a6dd;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}

.remote-note {
  margin: 18px 0 0;
  color: #60687a;
  font-size: 13px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.consult-contact-section {
  padding: 70px 0;
  background: linear-gradient(180deg, #fffdf8, #fffaf1);
}

.consult-contact-combined {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, .84fr);
  gap: 52px;
  align-items: start;
}

.contact-kicker {
  margin: 0 0 8px;
  color: var(--orange2);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .18em;
}

.consult-contact-copy > h2 {
  margin: 0;
  color: #26366d;
  font-size: 30px;
  line-height: 1.55;
}

.consult-contact-copy > p:not(.contact-kicker) {
  margin: 13px 0 0;
  color: #5d6476;
  font-size: 14px;
  line-height: 1.9;
}

.contact-promise {
  display: grid;
  gap: 10px;
  margin-top: 25px;
}

.contact-promise > div {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #eadfcf;
  border-radius: 14px;
  background: #fff;
}

.contact-promise > div > span {
  color: var(--orange2);
  font-size: 18px;
  font-weight: 900;
}

.contact-promise p {
  margin: 0;
  color: #62697a;
  font-size: 12px;
  line-height: 1.65;
}

.contact-promise strong {
  color: #303a5d;
  font-size: 13px;
}

.contact-person {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 15px;
  padding: 16px 18px;
  border: 1px solid #e0e3eb;
  border-radius: 16px;
  background: #fff;
}

.contact-person .brain-avatar {
  width: 50px;
  height: 50px;
}

.contact-person strong {
  color: #253267;
  font-size: 14px;
}

.contact-person p {
  margin: 3px 0 0;
  color: #687083;
  font-size: 11px;
  line-height: 1.6;
}

.consultation-form-wrap {
  width: 100%;
  max-width: none;
  margin: 0;
}

.privacy-consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 14px 0 16px;
  padding: 12px;
  border: 1px solid #d8dce5;
  border-radius: 8px;
  background: #fafbfc;
  color: #62697a;
  font-size: 10px;
  line-height: 1.65;
  cursor: pointer;
}

.privacy-consent input {
  flex: 0 0 auto;
  margin-top: 3px;
}

.privacy-consent a {
  color: #4254a5;
  font-weight: 800;
  text-decoration: underline;
}

.consultation-bridge {
  padding-top: 32px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1020px) {
  .consult-hero-grid {
    gap: 42px;
  }

  .consult-hero h1 {
    font-size: 48px;
  }

  .consult-case {
    width: 97%;
    gap: 38px;
  }

  .consult-case-list {
    gap: 62px;
  }

  .consult-contact-combined {
    gap: 34px;
  }
}

/* Header breakpoint aligned with the completed SME top page. */
@media (max-width: 820px) {
  .consultation-page .wrap {
    width: min(calc(100% - 30px), var(--max));
  }

  .consultation-page .header-inner {
    height: 66px;
  }

  .consultation-page .brand img {
    width: 170px;
  }

  .consultation-page .nav-toggle {
    display: block;
  }

  .consultation-page .main-nav {
    position: absolute;
    top: 66px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px 22px;
    border-bottom: 1px solid #e7e9ef;
    background: #fff;
    box-shadow: 0 12px 20px rgba(0, 0, 0, .05);
  }

  .consultation-page .main-nav.open {
    display: flex;
  }

  .consultation-page .main-nav a {
    text-align: center;
  }

  .consult-hero {
    padding: 52px 0 56px;
  }

  .consult-hero-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .consult-hero-board {
    width: min(100%, 680px);
    margin: auto;
  }

  .consult-section,
  .consult-cases {
    padding: 54px 0;
  }

  .consult-case-list {
    gap: 58px;
  }

  .consult-case {
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
    margin-right: 0;
    margin-left: 0;
  }

  .case-photo-right .case-photo-wrap {
    order: 1;
  }

  .case-photo-right .case-copy {
    order: 2;
  }

  .case-photo-wrap img {
    aspect-ratio: 16 / 10;
  }

  .case-copy {
    padding-top: 22px;
  }

  .organize-flow {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .organize-arrow {
    justify-self: center;
    line-height: 1;
    transform: rotate(90deg);
  }

  .organize-start,
  .organize-center,
  .organize-result {
    min-height: 120px;
  }

  .decision-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .consult-contact-combined {
    grid-template-columns: 1fr;
  }

  .consultation-form-wrap {
    width: 100%;
    max-width: 720px;
    margin: auto;
  }
}

@media (max-width: 620px) {
  .consult-hero {
    padding: 38px 0 44px;
  }

  .consult-eyebrow {
    font-size: 12px;
    letter-spacing: .05em;
  }

  .consult-hero h1 {
    font-size: 37px;
  }

  .consult-lead {
    font-size: 20px;
  }

  .consult-text {
    font-size: 14px;
    line-height: 1.9;
  }

  .consult-actions {
    display: grid;
  }

  .consult-actions .button {
    width: 100%;
  }

  .consult-hero-board {
    padding: 20px;
    border-radius: 20px;
  }

  .consult-hero-board::before {
    display: none;
  }

  .consult-hero-board-item {
    padding: 13px;
  }

  .consult-hero-board-item span {
    font-size: 12px;
  }

  .consult-hero-board-note {
    font-size: 11px;
  }

  .consult-section,
  .consult-cases {
    padding: 44px 0;
  }

  .consult-heading {
    margin-bottom: 28px;
  }

  .consult-heading h2 {
    font-size: 22px;
  }

  .consult-heading > span {
    font-size: 12px;
  }

  .consult-case-list {
    gap: 48px;
  }

  .case-photo-wrap img {
    aspect-ratio: 4 / 3;
    border-radius: 20px;
  }

  .case-photo-wrap::after {
    display: none;
  }

  .case-copy h3 {
    font-size: 25px;
  }

  .case-copy li {
    font-size: 13px;
  }

  .anything-box {
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
  }

  .anything-icon {
    width: 42px;
    height: 42px;
    font-size: 21px;
  }

  .anything-box h3 {
    font-size: 16px;
  }

  .anything-box p {
    font-size: 12px;
  }

  .decision-grid,
  .support-detail-grid {
    grid-template-columns: 1fr;
  }

  .decision-grid article,
  .support-detail-grid article {
    min-height: auto;
  }

  .support-detail-grid article {
    padding: 24px 20px;
  }

  .remote-note {
    font-size: 12px;
    text-align: left;
  }

  .consult-contact-section {
    padding: 48px 0;
  }

  .consult-contact-copy > h2 {
    font-size: 24px;
  }

  .contact-person {
    align-items: flex-start;
  }

  .consultation-form-wrap .contact-intro,
  .consultation-form-wrap .contact-form {
    padding-right: 20px;
    padding-left: 20px;
  }

  .consultation-bridge {
    padding-top: 20px;
  }
}
