/* contact.css: page-specific diff from site.css */
:root {
  --green-soft: #EAF1ED;
  --beige-2: #FBFAF3;
  --shadow-soft: 0 10px 30px rgba(31, 77, 58, 0.08);
  --radius-lg: 22px;
  --radius-md: 16px;
}

.hero {
  width: 100%;
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  overflow: hidden;
  background: var(--beige-2);
  border-bottom: 1px solid rgba(31, 77, 58, 0.08);
}

.hero-photo {
  position: relative;
  min-height: clamp(340px, 48vw, 610px);
  overflow: hidden;
  border-bottom-right-radius: 56px;
  background: linear-gradient(135deg, rgba(31, 77, 58, 0.08), rgba(198, 168, 92, 0.12)), url("/images/contact-hero.webp") center/cover no-repeat;
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0) 68%, rgba(245,243,231,0.72) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  min-height: auto;
  padding: clamp(44px, 7vw, 86px) clamp(22px, 6vw, 86px);
  display: flex;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.hero .eyebrow {
  display: inline-flex;
  flex-direction: column;
  gap: 10px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero .eyebrow::after {
  content: "";
  width: 42px;
  height: 2px;
  background: var(--gold);
}

.page-title {
  margin: 28px 0 14px;
  font-size: 25px;
  font-weight: 800;
  color: var(--text);
}

.hero h1 {
  margin: 0;
  color: var(--green);
  font-family: "Zen Kaku Gothic New", "Inter", sans-serif;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.22;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.hero-lead {
  margin: 28px 0 42px;
  color: #273B35;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.8;
  font-weight: 800;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
}

.contact-email {
  position: relative;
  overflow: hidden;
  margin-top: 0;
  max-width: 980px;
  margin: auto;
  padding: clamp(24px, 3vw, 34px) clamp(20px, 3vw, 34px);
  border-radius: 10px;
  background: linear-gradient(112deg, #1f4d3a 0%, #2a5f49 52%, #356f56 100%);
  border: 1px solid rgba(31, 77, 58, 0.45);
  box-shadow:
    0 16px 28px rgba(18, 56, 42, 0.26),
    0 0 0 1px rgba(255, 255, 255, 0.14) inset;
}

.contact-email-section {
  padding-top: clamp(36px, 5vw, 54px);
}

.contact-email-section .contact-email {
  margin-top: 0;
}

.contact-email-main {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.contact-email-action {
  display: grid;
  gap: 12px;
  justify-items: center;
}

.contact-email-label {
  display: none;
}

.contact-email-note {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 900;
  line-height: 1.35;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.22);
}

.contact-email-description {
  margin: 0;
  font-size: clamp(15px, 1.9vw, 20px);
  line-height: 1.7;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.94);
}

.contact-email-cta {
  min-height: 56px;
  padding: 10px 32px;
  display: inline-flex;
  box-sizing: border-box;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  background: linear-gradient(118deg, #d6e300 0%, #d2de26 100%);
  border: 1px solid rgba(163, 174, 0, 0.45);
  color: #1b3a2c;
  font-size: 17px;
  font-weight: 900;
  white-space: normal;
  text-decoration: none;
  box-shadow: 0 10px 18px rgba(12, 44, 33, 0.28);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.contact-email-cta-label {
  display: inline-block;
  line-height: 1.3;
  text-align: center;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: normal;
}

.contact-email-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 28px rgba(12, 44, 33, 0.34);
  filter: brightness(1.02);
}

.contact-email-cta span {
  font-size: 17px;
}

.contact-email-help {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  font-weight: 600;
}

.decor-dots {
  position: absolute;
  top: 82px;
  right: 48px;
  display: grid;
  grid-template-columns: repeat(3, 6px);
  gap: 18px;
  opacity: 0.95;
}

.decor-dots i {
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--gold);
}

.decor-dots i:nth-child(3n) { background: var(--green); }
.decor-dots i:nth-child(2n) { opacity: .55; }

.hero-curve {
  position: absolute;
  right: -60px;
  bottom: 86px;
  width: min(760px, 85vw);
  height: 240px;
  border-top: 2px solid rgba(198,168,92,0.52);
  border-radius: 50%;
  transform: rotate(-8deg);
  pointer-events: none;
}

.section {
  padding: clamp(56px, 7vw, 88px) 0 0;
}

.section[aria-labelledby="safe-title"] {
  padding-bottom: clamp(56px, 7vw, 88px);
}

.section-title {
  margin: 0 0 42px;
  text-align: center;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.3;
  font-weight: 900;
  color: var(--text);
}

.section-title::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin: 14px auto 0;
  border-radius: 999px;
  background: var(--gold);
}

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

.card {
  position: relative;
  padding: 24px;
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.84);
  border: 1px solid rgba(31,77,58,0.10);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.icon-circle {
  width: 90px;
  height: 90px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
}

.card:nth-child(2) .icon-circle {
  background: rgba(198,168,92,0.16);
}

.card:nth-child(3) .icon-circle {
  background: rgba(36,58,94,0.08);
}

.icon-circle svg {
  width: 52px;
  height: 52px;
}

.card h3,
.flow-step h3 {
  margin: 0 0 10px;
  color: var(--green);
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 900;
}

.card p,
.flow-step p {
  margin: 0;
  color: #34443F;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.8;
}

.flow-panel {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.flow-step {
  position: relative;
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 22px;
  align-items: center;
}

.number {
  position: absolute;
  top: -10px;
  left: -4px;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(31,77,58,0.22);
}

.flow-icon {
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #FAF8EF;
  border: 1px solid rgba(31,77,58,0.08);
}

.flow-icon svg {
  width: 68px;
  height: 68px;
}

.flow-arrow {
  width: 58px;
  height: 1px;
  border-top: 2px dotted rgba(31,77,58,0.45);
  position: relative;
}

.flow-arrow::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -5px;
  width: 9px;
  height: 9px;
  border-right: 2px solid rgba(31,77,58,0.45);
  border-top: 2px solid rgba(31,77,58,0.45);
  transform: rotate(45deg);
}

.share-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(31,77,58,0.18);
  transition: transform .22s ease, box-shadow .22s ease;
}

.sns a svg,
.share-icon svg {
  width: 18px;
  height: 18px;
}

.sns a:hover,
.share-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(31,77,58,0.22);
}

.share-icon-fb {
  background: #1877F2;
}

.share-icon-li {
  background: #0A66C2;
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-photo {
    min-height: 420px;
    border-bottom-right-radius: 42px;
  }

  .hero-content {
    min-height: auto;
  }

  .consult-grid {
    grid-template-columns: 1fr 1fr;
  }
  .card {
    grid-template-columns: 78px 1fr;
    gap: 12px;
  }
  .icon-circle {
    width: 72px;
    height: 72px;
  }
  .icon-circle svg {
    width: 42px;
    height: 42px;
  }

  .flow-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    max-width: 500px;
    margin: auto;
  }
  .flow-step {
    width: 100%;
    grid-template-columns: 104px 1fr;
  }
  .flow-arrow {
    width: 1px;
    height: 42px;
    border-top: 0;
    border-left: 2px dotted rgba(31,77,58,0.45);
  }

  .flow-arrow::after {
    right: auto;
    left: -6px;
    top: auto;
    bottom: -1px;
    transform: rotate(135deg);
  }
}

@media (max-width: 768px) {
  .hero-photo {
    min-height: 300px;
    border-bottom-right-radius: 30px;
  }

  .hero-content {
    padding: 44px 22px 54px;
  }

  .page-title {
    font-size: 21px;
  }

  .button-row {
    flex-direction: column;
    align-items: stretch;
  }

  .decor-dots,
  .hero-curve {
    display: none;
  }

  .contact-email-main {
    gap: 14px;
  }

  .contact-email {
    border-radius: 8px;
    background: linear-gradient(112deg, #1f4d3a 0%, #2a5f49 52%, #356f56 100%);
  }

  .contact-email-note {
    font-size: clamp(20px, 5.6vw, 28px);
    text-align: center;
  }

  .contact-email-description {
    font-size: clamp(14px, 3.6vw, 17px);
  }

  .contact-email-cta {
    width: 100%;
    justify-content: center;
    padding: 10px 20px;
  }

  .contact-email-help {
    font-size: 12px;
  }

  .section {
    padding: 54px 0 0;
  }

  .consult-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: auto;
  }

  .flow-panel{
    max-width: 420px;
  }
  .flow-step {
    grid-template-columns: 82px 1fr;
    gap: 18px;
  }

  .flow-icon {
    width: 78px;
    height: 78px;
  }

  .flow-icon svg {
    width: 48px;
    height: 48px;
  }

  .number {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }

  .flow-arrow {
    margin-left: 39px;
  }

  .card h3,
  .flow-step h3 {
    font-size: 20px;
  }

  .card p,
  .flow-step p {
    font-size: 13px;
  }
}

@media (max-width: 450px) {
  .contact-email-cta span{
    font-size: 15px;
  }
}
