@charset "UTF-8";

/* ============================================================
   Contact page – Modern (cvArea-inspired) Style
   Color: Teal #13b5b1 / Orange #ff9a29 / Dark #424343
   ============================================================ */

/* ---------- Page Background ---------- */
body {
  background: linear-gradient(180deg, #13b5b1 0%, #13b5b1 380px, #f5fafa 380px, #f5fafa 100%);
  min-height: 100vh;
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  color: #424343;
}

/* ---------- Contact Wrapper ---------- */
.contact-wrap {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: 80px 24px 120px;
}

.contact-wrap h2 {
  font-size: 34px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.08em;
  text-align: center;
  margin-bottom: 14px;
  line-height: 1.4;
}

.contact-wrap > .txt {
  font-size: 15px;
  line-height: 1.9;
  color: rgba(255,255,255,0.95);
  text-align: center;
  margin-bottom: 48px;
}

/* ---------- Contact Card ---------- */
.contact-box {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  padding: 56px 56px 48px;
}

/* ---------- Form Rows ---------- */
.contact-box dl {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
}

.contact-box dt {
  font-size: 15px;
  font-weight: 700;
  color: #424343;
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-box dt .required {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: #ff5a3c;
  border-radius: 4px;
  padding: 2px 8px;
  letter-spacing: 0.04em;
}

.contact-box dd {
  margin: 0;
}

/* ---------- Inputs / Textarea ---------- */
.contact-box input[type="text"],
.contact-box input[type="email"],
.contact-box input[type="tel"],
.contact-box textarea {
  width: 100%;
  font-size: 15px;
  font-family: inherit;
  color: #424343;
  background: #f7f9f9;
  border: 1.5px solid #e0e7e7;
  border-radius: 8px;
  padding: 14px 16px;
  line-height: 1.6;
  transition: border-color 0.2s, background 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.contact-box input[type="text"]:focus,
.contact-box input[type="email"]:focus,
.contact-box input[type="tel"]:focus,
.contact-box textarea:focus {
  outline: none;
  border-color: #13b5b1;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(19,181,177,0.12);
}

.contact-box textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-box input::placeholder,
.contact-box textarea::placeholder {
  color: #9ba8a8;
}

/* ---------- Radio Buttons ---------- */
.contact-box dd.gray,
.contact-box dd#_field_category {
  background: transparent;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-box .radio-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.contact-box .radio-input + label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #424343;
  background: #f7f9f9;
  border: 1.5px solid #e0e7e7;
  border-radius: 50px;
  padding: 10px 22px;
  cursor: pointer;
  transition: all 0.2s;
}

.contact-box .radio-input + label::before {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid #c5d0d0;
  background: #fff;
  flex-shrink: 0;
  transition: all 0.2s;
}

.contact-box .radio-input:checked + label {
  background: rgba(19,181,177,0.08);
  border-color: #13b5b1;
  color: #13b5b1;
}

.contact-box .radio-input:checked + label::before {
  border-color: #13b5b1;
  background: radial-gradient(#13b5b1 0 5px, #fff 5px 100%);
}

.contact-box .radio-input + label:hover {
  border-color: #13b5b1;
}

/* ---------- Submit Button ---------- */
.contact-box .submit_btn,
.contact-box .orange_btn {
  display: block;
  width: 100%;
  max-width: 360px;
  margin: 32px auto 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  background: #ff9a29;
  border: none;
  border-radius: 50px;
  padding: 18px 24px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 6px 18px rgba(255,154,41,0.3);
}

.contact-box .submit_btn:hover,
.contact-box .orange_btn:hover {
  background: #f08515;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(255,154,41,0.4);
}

.contact-box .submit_btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* ---------- Error Message ---------- */
.contact-box .err {
  display: block;
  font-size: 13px;
  color: #e54a3a;
  margin-top: 6px;
  font-weight: 500;
}

.contact-box dd.error input,
.contact-box dd.error textarea {
  border-color: #e54a3a;
  background: #fff7f5;
}

/* ---------- Thanks Page ---------- */
.contact-wrap .pages_inner {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  padding: 80px 40px;
  text-align: center;
}

.contact-wrap .thx_txt_area .ttl {
  font-size: 26px;
  font-weight: 900;
  color: #13b5b1;
  margin-bottom: 24px;
}

.contact-wrap .thx_txt_area .ttl::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #13b5b1;
  color: #fff;
  font-size: 32px;
  margin: 0 auto 18px;
}

.contact-wrap .thx_txt_area .txt {
  font-size: 15px;
  line-height: 1.9;
  color: #424343;
}

/* ---------- Responsive ---------- */
@media screen and (max-width: 768px) {
  body {
    background: linear-gradient(180deg, #13b5b1 0%, #13b5b1 260px, #f5fafa 260px, #f5fafa 100%);
  }
  .contact-wrap { padding: 56px 16px 80px; }
  .contact-wrap h2 { font-size: 24px; }
  .contact-wrap > .txt { font-size: 14px; margin-bottom: 32px; }
  .contact-box { padding: 32px 20px 28px; border-radius: 12px; }
  .contact-box dl { margin-bottom: 18px; }
  .contact-box .radio-input + label { padding: 10px 18px; font-size: 13px; }
  .contact-box input[type="text"],
  .contact-box input[type="email"],
  .contact-box input[type="tel"],
  .contact-box textarea {
    font-size: 16px; /* iOS zoom prevention */
    padding: 12px 14px;
  }
  .contact-box .submit_btn { font-size: 15px; padding: 16px 24px; }
}

/* ============================================================
   Header Override – Modern white bar
   ============================================================ */
header.under {
  background: #fff !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  padding: 14px 0;
  position: relative;
  z-index: 10;
}
header.under .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: auto;
}
header.under .head_left .logo {
  margin: 0;
  display: flex;
  align-items: center;
}
header.under .head_left .logo a {
  display: block;
  line-height: 0;
}
header.under .head_left .logo img {
  width: auto !important;
  height: 40px !important;
  /* Convert white logo to teal */
  filter: brightness(0) saturate(100%) invert(56%) sepia(54%) saturate(478%) hue-rotate(133deg) brightness(95%) contrast(86%);
}
header.under .head_right {
  display: flex;
  align-items: center;
  gap: 18px;
}
header.under .head_right span {
  font-size: 13px;
  font-weight: 500;
  color: #666;
  background: none;
  padding: 0;
}
header.under .head_right a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 22px;
  background: #ff9a29;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 12px rgba(255,154,41,0.25);
  transition: all 0.2s;
}
header.under .head_right a:hover {
  background: #f08515;
  transform: translateY(-1px);
}
/* Replace the img-based button with text */
header.under .head_right a img {
  display: none;
}
header.under .head_right a::after {
  content: '無料資料請求はこちら →';
  white-space: nowrap;
}

/* Move the body gradient to start AFTER the header */
body {
  background: #f5fafa !important;
}
.contact-wrap {
  background: linear-gradient(180deg, #13b5b1 0%, #13b5b1 320px, transparent 320px);
  margin: 0;
  max-width: none;
  padding: 80px 24px 120px;
}
.contact-wrap > h2,
.contact-wrap > .txt,
.contact-wrap > form,
.contact-wrap > .pages_inner {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}
.contact-wrap > form {
  display: block;
}

@media screen and (max-width: 768px) {
  header.under {
    padding: 10px 0;
  }
  header.under .container {
    padding: 0 14px;
  }
  header.under .head_left .logo img {
    height: 32px !important;
  }
  header.under .head_right span {
    display: none;
  }
  header.under .head_right a {
    height: 38px;
    padding: 0 14px;
    font-size: 12px;
  }
  header.under .head_right a::after {
    content: '資料請求 →';
  }
  .contact-wrap {
    background: linear-gradient(180deg, #13b5b1 0%, #13b5b1 240px, transparent 240px);
    padding: 48px 16px 80px;
  }
}

/* ============================================================
   Force override existing common.css conflicts
   ============================================================ */
header.under {
  background: #fff !important;
  background-image: none !important;
  padding: 14px 0 !important;
  position: relative !important;
  width: 100%;
}
header.under .head_left {
  float: none !important;
  max-width: none !important;
  padding: 0 !important;
}
header.under .head_left span {
  display: none !important;
}
header.under .head_left .logo {
  max-width: none !important;
  margin: 0 !important;
}
header.under .head_right {
  float: none !important;
  max-width: none !important;
  width: auto !important;
  position: relative !important;
}
header.under .head_right span {
  display: inline-flex !important;
  align-items: center;
  writing-mode: horizontal-tb;
  width: auto !important;
  white-space: nowrap;
  font-size: 13px !important;
  color: #666 !important;
}
header.under .head_right a {
  position: relative !important;
  top: auto !important;
  width: auto !important;
}
@media screen and (max-width: 767px) {
  header.under .head_left { max-width: 60% !important; }
  header.under .head_right { width: auto !important; }
}
