@charset "UTF-8";

/* ===================================
   Contact Page Styles
=================================== */

/* --- Header Logo Control (Common) --- */
.hdr .logo-white { display: none; }
.hdr .logo-color { display: block; }
.hdr.hdr__bg-dark {
  background-color: rgba(0, 0, 0, 0.8);
  padding: 15px 40px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: background-color 0.4s, padding 0.4s;
  color: #fff;
}
.hdr.hdr__bg-dark .logo-color { display: none; }
.hdr.hdr__bg-dark .logo-white { display: block; }
@media screen and (max-width: 768px) { .hdr.hdr__bg-dark { padding: 10px 20px; } }

/* --- Page Header (Common) --- */
.page-header {
  position: relative;
  height: 300px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 0;
}
.page-header__bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: url('../images/contact_bg.jpg');
  background-size: cover;
  background-position: center;
  z-index: -1;
}
.page-header__bg::after {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
}
.page-header__inner { position: relative; z-index: 1; text-align: center; color: #fff; }
.page-header__title { display: flex; flex-direction: column; gap: 10px; }
.page-header__title .en { font-family: var(--font-en); font-size: 3rem; font-weight: 900; letter-spacing: 0.1em; }
.page-header__title .ja { font-size: 1.2rem; font-weight: 500; }

/* --- Breadcrumb --- */
.breadcrumb { background: #f5f5f7; padding: 15px 0; }
.breadcrumb ul { display: flex; gap: 10px; font-size: 0.9rem; color: var(--c-text-light); }
.breadcrumb ul li:not(:last-child)::after { content: '>'; margin-left: 10px; }

/* --- Contact Content --- */
.contact-desc {
  max-width: 800px;
  margin: 0 auto 60px;
  font-size: 1rem;
  line-height: 2;
}
.center { text-align: center; }

/* Form Wrapper */
.form-wrapper {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  padding: 60px;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

/* Form Table */
.form-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 20px;
}

.form-table th,
.form-table td {
  vertical-align: top;
  text-align: left;
  position: relative;
}

.form-table th {
  width: 30%;
  padding-top: 10px;
  font-weight: 700;
}

.required {
  display: inline-block;
  background: #E41D60;
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
}

.form-table td {
  width: 70%;
}

/* Inputs */
.input-text,
.input-textarea,
select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s;
  font-family: inherit;
  box-sizing: border-box;
}

.input-text:focus,
.input-textarea:focus,
select:focus {
  border-color: var(--c-primary);
  outline: none;
}

::placeholder { color: #ccc; opacity: 1; }
:-ms-input-placeholder { color: #ccc; }
::-ms-input-placeholder { color: #ccc; }

.input-textarea {
  height: 200px;
  resize: vertical;
}

.select-wrap {
  position: relative;
}
.select-wrap::after {
  content: '▼';
  font-size: 0.8rem;
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  pointer-events: none;
}

/* Privacy Policy */
.privacy-policy-area {
  margin-top: 60px;
  border-top: 1px solid #eee;
  padding-top: 40px;
}

.pp-title {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.pp-box {
  height: 200px;
  overflow-y: scroll;
  border: 1px solid #ddd;
  padding: 20px;
  background: #fafafa;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.pp-head {
  font-weight: 700;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  color: var(--c-text);
}
.pp-head:first-child { margin-top: 0; }

.pp-list {
  list-style: disc;
  padding-left: 1.5em;
  margin-bottom: 1em;
}

.pp-check {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  position: relative;
}
.pp-check input[type="checkbox"] {
  transform: scale(1.5);
  margin-right: 10px;
}

/* Submit Button */
.form-btn-area {
  margin-top: 50px;
  text-align: center;
}

.btn-submit {
  background: var(--c-primary);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  padding: 15px 80px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 5px 15px rgba(245, 166, 35, 0.4);
}

.btn-submit:hover {
  background: #e0961f;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(245, 166, 35, 0.5);
}

/* Validation Engine Custom Style */
.formError {
  z-index: 9999;
}
.formError .formErrorContent {
  background: #E41D60;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.85rem;
}
.formError .formErrorArrow div {
  background: #E41D60;
  border: none;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .page-header { height: 200px; }
  .page-header__title .en { font-size: 2.5rem; }
  
  .form-wrapper { padding: 30px 20px; }
  
  .form-table th,
  .form-table td {
    display: block;
    width: 100%;
  }
  
  .form-table th {
    margin-bottom: 10px;
    padding-top: 0;
  }
  
  .form-table td {
    margin-bottom: 20px;
  }
  
  .btn-submit {
    width: 100%;
  }
}