@charset "UTF-8";

/* ===========================
   Contact Page Base Styles
   =========================== */
.contact-page {
  background: linear-gradient(180deg, rgba(252, 253, 253, 0.34) 0%, rgba(229, 244, 241, 0.34) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
}

.contact-page-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0;
  box-sizing: border-box;
}

/* ===========================
   Contact Hero Section
   =========================== */
.contact-hero-section {
  width: 100%;
  margin-top: 40px;
  position: relative;
}

.contact-hero-content {
  width: 100%;
  height: 320px;
  position: relative;
  overflow: hidden;
}

.contact-hero-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  border-radius: 120px 0 0 0;
  z-index: 1;
  max-width: 960px;
}

.contact-hero-text {
  position: absolute;
  top: 80px;
  left: 0;
  z-index: 2;
}

.page-header-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===========================
   Contact Info Text
   =========================== */
.contact-info-text {
  color: #186a79;
  font-family: "しっぽり明朝-SemiBold", serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 64px;
  text-align: center;
  white-space: nowrap;
  margin: 59px 0 0;
}

/* ===========================
   Contact Form Section
   =========================== */
.contact-form-section {
  width: 100%;
  max-width: 960px;
  margin-top: 47px;
  margin-bottom: 181px;
}

.contact-form-container {
  background: #e6f0f0;
  border-radius: 20px;
  padding: 80px;
  box-sizing: border-box;
}

.contact-form {
  width: 100%;
  position: relative;
}

/* ===========================
   Form Items
   =========================== */
.form-item {
  margin-bottom: 40px;
}
.form-item:last-of-type {
  margin-bottom: 0;
}

/* Label */
.form-label-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.form-label {
color: #186a79;
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.05rem;
    line-height: 27px;
    white-space: nowrap;
}
.form-required-badge {
  background: #a18a50;
  border-radius: 2px;
  color: #ffffff;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1.4px;
  line-height: 27px;
  padding: 0 8px;
  white-space: nowrap;
}

/* Inputs */
.form-input {
  width: 100%;
  height: 44px;
  background: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 0 16px;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 16px;
  color: #2e2d31;
  box-sizing: border-box;
  outline: none;
  transition: box-shadow 0.2s ease;
}
.form-input:focus {
  box-shadow: 0 0 0 2px #50bac8;
}

.form-textarea {
  width: 100%;
  background: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 12px 16px;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 16px;
  color: #2e2d31;
  box-sizing: border-box;
  outline: none;
  resize: vertical;
  transition: box-shadow 0.2s ease;
}
.form-textarea:focus {
  box-shadow: 0 0 0 2px #50bac8;
}

/* ===========================
   Radio Buttons
   =========================== */
.form-radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 16px;
}
.radio-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.radio-input {
  display: none;
}
.radio-custom {
  width: 16px;
  height: 16px;
  border: 1px solid #a18a50;
  border-radius: 50%;
  background: #ffffff;
  position: relative;
}
.radio-input:checked + .radio-custom::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: #a18a50;
  border-radius: 50%;
}
.radio-text {
  color: #4a6671;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 1.8px;
  line-height: 27px;
}

/* ===========================
   Privacy Section
   =========================== */
.form-privacy-section {
  margin-top: 40px;
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
}
.privacy-agreement {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: center;
}
.privacy-link {
  color: #008a95;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 1.6px;
  line-height: 32px;
  text-decoration: none;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  transition: color 0.2s ease;
}
.privacy-link:hover {
  color: #50bac8;
}
.external-icon {
  width: 12px;
  height: 12px;
  object-fit: cover;
  margin-bottom: 8px;
}
.privacy-text {
  color: #4a6671;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 1.6px;
  line-height: 32px;
}

/* ===========================
   Submit Button
   =========================== */
.form-submit-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}
.form-submit-button {
  position: relative;
  background: transparent;
  color: #186a79;
  border: 0.5px solid #50bac8;
  border-radius: 40px;
  width: 240px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  transition: color 0.3s ease;
  font-weight: 700;
}
.form-submit-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #50bac8, #78d5c6);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
  z-index: 0;
}
.form-submit-button::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-radius: 36px;
  background: linear-gradient(90deg, #50bac8, #78d5c6, #50bac8) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: borderFlow 3s linear infinite;
  z-index: 1;
  pointer-events: none;
}
@keyframes borderFlow {
  0% { background-position: 0 0; }
  100% { background-position: 200% 0; }
}
.form-submit-button:hover::before { transform: scaleX(1); }
.form-submit-button:hover { color: #fff; }
.submit-button-text {
  position: relative;
  z-index: 2;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 1.6px;
  line-height: 27px;
}

/* ===========================
   Responsive
   =========================== */

/* Tablet */
@media (max-width: 1024px) {
  .contact-hero-content {
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
  .contact-hero-image {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 280px;
    border-radius: 80px 0 0 0;
    object-fit: cover;
    object-position: left top;
  }
  .contact-hero-text {
    position: relative;
    text-align: center;
    width: 100%;
  }
  .page-header-content {
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .section-label { font-size: 26px; }
  .section-title { font-size: 42px; }
  .contact-info-text {
    font-size: 20px;
    line-height: 48px;
    margin-top: 40px;
    white-space: normal;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .contact-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .contact-hero-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    border-radius: 40px 0 0 0;
    object-fit: cover;
    object-position: left top;
    opacity: 0.35;
  }
  .contact-hero-text {
    text-align: center;
    width: 100%;
    margin-top: 8px;
  }
  .page-header-content {
    max-width: 100%;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .section-label { font-size: 20px; line-height: 1.4; }
  .section-title { font-size: 30px; line-height: 1.4; }
  .contact-info-text {
    font-size: 18px;
    line-height: 42px;
    margin-top: 32px;
    padding: 0 20px;
    white-space: normal;
  }
}

/* Extra Small */
@media (max-width: 480px) {
  .contact-hero-image {
    border-radius: 32px 0 0 0;
    aspect-ratio: 16/9;
    opacity: 0.38;
  }
  .section-label { font-size: 18px; }
  .section-title { font-size: 26px; }
  .contact-info-text {
    font-size: 15px;
    line-height: 36px;
    margin-top: 24px;
  }
}


/* ===========================
   Overlay Header Positioning
   =========================== */
.page-header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;   /* 垂直中央寄せ */
  justify-content: flex-start; /* 左寄せ */
  z-index: 2;
  pointer-events: none; /* 背景と干渉しないように */
}

.page-header-content {
    position: relative;
    left: -25%;
    display: flex;

    flex-direction: column;
   
    align-items: flex-start;
 
    max-width: 1200px;
    margin: 0 auto;
;
   
    gap: 12px;
    pointer-events: auto;
   
}

.section-label {
     color: #50bac8;
  
    font-size: 32px;
 font-weight: 500;
    letter-spacing: 2.4px;
    line-height: 1.2;
    white-space: nowrap;
font-family: "しっぽり明朝-Medium", serif;
}

.section-title {
  font-family: "しっぽり明朝-Medium", serif;
  font-size: 46px;
  font-weight: 600;
  letter-spacing: 2px;
  
  line-height: 1.2;
  background: rgba(255, 255, 255, 0.6);
  padding: 6px 18px;
  border-radius: 8px;
}

/* ラベル横の必須バッジ統一 */
.form-required-badge {
  display: inline-block;
  font-size: 0.85em;       /* 相対サイズ調整 */
  padding: 2px 6px;
  
  color: #fff;
  border-radius: 3px;
  vertical-align: middle;  /* 高さを揃える */
  line-height: 1.4;
}

/* 「お問い合わせの種類」部分の調整（外置き対策） */
.form-item > .form-required-badge {
  margin-left: 6px;
  vertical-align: middle;
}


/* ===========================
   Responsive
   =========================== */
@media (max-width: 1024px) {
  .page-header-content {
    left: 1%;
  }
  .section-label {
    font-size: 22px;
    padding: 4px 12px;
  }
  .section-title {
    font-size: 36px;
    padding: 4px 1
	}
	.contact-form-container {
  
    padding: 4rem 2rem;
   
	}}