/* ============================================
   CONTACT PAGE STYLES
============================================ */

/* --- Methods Section --- */
.ph-ct-methods {
  padding: 100px 6vw;
  background: #fff;
}

.ph-ct-methods__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 280px));
  gap: 20px;
  justify-content: center;
}

.ph-ct-methods__card {
  padding: 40px 28px 36px;
  background: var(--off);
  border: 1px solid var(--border);
  text-align: center;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.ph-ct-methods__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(11,29,58,0.08);
}

.ph-ct-methods__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(22,111,186,0.08), rgba(0,188,212,0.08));
  border-radius: 16px;
  color: var(--brand);
}

.ph-ct-methods__icon--line {
  background: linear-gradient(135deg, rgba(6,199,85,0.08), rgba(6,199,85,0.04));
  color: #06c755;
}

.ph-ct-methods__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 10px;
}

.ph-ct-methods__desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 20px;
}

.ph-ct-methods__tel {
  font-family: var(--fn);
  font-size: 20px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.03em;
}

.ph-ct-methods__hours {
  font-size: 13px;
  color: #64748b;
}

.ph-ct-methods__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  transition: gap 0.3s var(--ease);
}

.ph-ct-methods__link:hover {
  gap: 12px;
}

.ph-ct-methods__link--line {
  color: #06c755;
}

/* --- Contact Form Section --- */
.ph-ct-form {
  padding: 100px 6vw;
  background: var(--off);
}

.ph-ct-form__inner {
  max-width: 820px;
  margin: 0 auto;
}

.ph-ct-form__head {
  text-align: center;
  margin-bottom: 56px;
}

.ph-ct-form__label {
  font-family: var(--fn-serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 16px;
}

.ph-ct-form__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.ph-ct-form__title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--cyan));
  margin: 16px auto 0;
  border-radius: 2px;
}

.ph-ct-form__sub {
  font-size: 14px;
  color: #64748b;
}

.ph-ct-form__required-mark {
  color: #ef4444;
  font-weight: 700;
}

.ph-ct-form__body {
  background: #fff;
  padding: 56px 48px;
  border: 1px solid var(--border);
}

.ph-ct-form__notice {
  text-align: center;
  padding: 40px 20px;
  color: #64748b;
  font-size: 15px;
}

/* --- CF7 Form Overrides --- */
.ph-ct-form__body .wpcf7 {
  max-width: 100%;
}

.ph-ct-form__body .wpcf7-form p {
  margin-bottom: 28px;
}

.ph-ct-form__body .wpcf7-form label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 8px;
}

.ph-ct-form__body .wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-acceptance) {
  width: 100%;
  padding: 14px 18px;
  font-size: 15px;
  font-family: "Noto Sans JP", sans-serif;
  color: var(--text);
  background: var(--off);
  border: 1px solid var(--border);
  border-radius: 0;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
}

.ph-ct-form__body .wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-acceptance):focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(22,111,186,0.1);
}

.ph-ct-form__body .wpcf7-textarea {
  min-height: 180px;
  resize: vertical;
}

.ph-ct-form__body .wpcf7-form-control.wpcf7-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}

.ph-ct-form__body .wpcf7-list-item {
  display: block;
  margin: 0 0 8px;
}

.ph-ct-form__body .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  cursor: pointer;
}

.ph-ct-form__body .wpcf7-acceptance {
  margin-top: 8px;
}

.ph-ct-form__body .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 18px 36px;
  background: linear-gradient(135deg, var(--brand), var(--cyan));
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  font-family: "Noto Sans JP", sans-serif;
  border: none;
  border-radius: 40px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
}

.ph-ct-form__body .wpcf7-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(22,111,186,0.35);
}

.ph-ct-form__body .wpcf7-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.ph-ct-form__body .wpcf7-response-output {
  margin: 24px 0 0 !important;
  padding: 16px 20px !important;
  border-radius: 0 !important;
  font-size: 14px;
}

.ph-ct-form__body .wpcf7-not-valid-tip {
  font-size: 13px;
  color: #ef4444;
  margin-top: 6px;
}

.ph-ct-form__body .wpcf7-not-valid {
  border-color: #ef4444 !important;
}

/* --- LINE Section --- */
.ph-ct-line {
  padding: 100px 6vw;
  background: #fff;
}

.ph-ct-line__inner {
  max-width: 1000px;
  margin: 0 auto;
}

.ph-ct-line__content {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 56px;
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
  border: 1px solid rgba(6,199,85,0.15);
}

.ph-ct-line__icon-wrap {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  background: #fff;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(6,199,85,0.12);
}

.ph-ct-line__label {
  font-family: var(--fn-serif);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #06c755;
  margin-bottom: 8px;
}

.ph-ct-line__title {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 14px;
}

.ph-ct-line__desc {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 12px;
}

.ph-ct-line__id {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 24px;
}

.ph-ct-line__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: #06c755;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border-radius: 40px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ph-ct-line__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(6,199,85,0.35);
}

/* --- Online Consultation Section --- */
.ph-ct-online {
  padding: 100px 6vw;
  background: var(--navy);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.ph-ct-online__inner {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.ph-ct-online__head {
  text-align: center;
  margin-bottom: 64px;
}

.ph-ct-online__label {
  font-family: var(--fn-serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--elec);
  margin-bottom: 16px;
}

.ph-ct-online__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.ph-ct-online__title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--elec), var(--cyan));
  margin: 16px auto 0;
  border-radius: 2px;
}

.ph-ct-online__sub {
  font-size: 15px;
  line-height: 1.9;
  color: rgba(255,255,255,0.75);
}

.ph-ct-online__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}

.ph-ct-online__step {
  padding: 36px 28px;
  background: rgba(255,255,255,0.04);
  border-left: 3px solid rgba(255,255,255,0.1);
  transition: border-color 0.4s ease, background 0.4s ease;
}

.ph-ct-online__step:hover {
  border-color: var(--elec);
  background: rgba(79,195,247,0.06);
}

.ph-ct-online__step-num {
  font-family: var(--fn-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--elec);
  display: block;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.ph-ct-online__step-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.ph-ct-online__step-desc {
  font-size: 14px;
  line-height: 1.85;
  color: rgba(255,255,255,0.65);
}

.ph-ct-online__cta {
  text-align: center;
}

.ph-ct-online__cta-text {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 24px;
}

.ph-ct-online__cta-btns {
  display: inline-flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.ph-ct-online__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 36px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 40px;
  transition: all 0.4s var(--ease);
}

.ph-ct-online__btn--primary {
  background: linear-gradient(135deg, var(--brand), var(--cyan));
  color: #fff;
}

.ph-ct-online__btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(79,195,247,0.35);
}

.ph-ct-online__btn--line {
  background: #06c755;
  color: #fff;
}

.ph-ct-online__btn--line:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(6,199,85,0.35);
}

/* --- Access Section --- */
.ph-ct-access {
  padding: 100px 6vw;
  background: #fff;
}

.ph-ct-access__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.ph-ct-access__head {
  margin-bottom: 48px;
}

.ph-ct-access__label {
  font-family: var(--fn-serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.ph-ct-access__label::before {
  content: '';
  width: 24px;
  height: 1.5px;
  background: currentColor;
}

.ph-ct-access__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--heading);
  letter-spacing: 0.02em;
}

.ph-ct-access__title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--cyan));
  margin-top: 16px;
  border-radius: 2px;
}

.ph-ct-access__grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 40px;
  align-items: start;
}

.ph-ct-access__office-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
}

.ph-ct-access__dl {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px 20px;
  font-size: 15px;
  line-height: 1.8;
}

.ph-ct-access__dl dt {
  color: #64748b;
  font-weight: 600;
}

.ph-ct-access__dl dd {
  color: var(--text);
}

.ph-ct-access__dl dd a {
  color: var(--brand);
  font-weight: 600;
}

.ph-ct-access__map {
  overflow: hidden;
}

.ph-ct-access__map iframe {
  display: block;
}

/* --- CF7 Custom Layout --- */
.ph-cf7-row {
  margin-bottom: 24px;
}

.ph-cf7-row label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 8px;
}

.ph-cf7-req {
  color: #ef4444;
  font-weight: 700;
}

.ph-cf7-row--half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.ph-cf7-row--submit {
  margin-top: 36px;
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .ph-cf7-row--half {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* --- Responsive --- */
@media (max-width: 1023px) {
  .ph-ct-methods__inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .ph-ct-methods {
    padding: 60px 5vw;
  }

  .ph-ct-methods__inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ph-ct-methods__card {
    padding: 28px 24px;
  }

  .ph-ct-form {
    padding: 60px 5vw;
  }

  .ph-ct-form__body {
    padding: 32px 20px;
  }

  .ph-ct-form__head {
    margin-bottom: 36px;
  }

  .ph-ct-line {
    padding: 60px 5vw;
  }

  .ph-ct-line__content {
    flex-direction: column;
    text-align: center;
    padding: 36px 24px;
    gap: 24px;
  }

  .ph-ct-online {
    padding: 60px 5vw;
  }

  .ph-ct-online__steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ph-ct-online__head {
    margin-bottom: 40px;
  }

  .ph-ct-online__cta-btns {
    flex-direction: column;
    width: 100%;
  }

  .ph-ct-online__btn {
    width: 100%;
    justify-content: center;
  }

  .ph-ct-access {
    padding: 60px 5vw;
  }

  .ph-ct-access__grid {
    grid-template-columns: 1fr;
  }
}
