/* お問い合わせページ専用CSS */

/* 横スクロール防止とヘッダー修正 */
html,
body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

.header {
  width: 100%;
  overflow-x: hidden;
}

.header__inner {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* ハンバーガーメニューの修正（contactページ専用） */
.hamburger-menu {
  flex-direction: column;
  justify-content: space-around;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .hamburger-menu {
    display: flex;
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    margin-left: auto;
    margin-right: 8px;
    width: 30px;
    height: 30px;
  }

  .header__inner {
    justify-content: space-between;
    padding-right: 16px;
    align-items: center;
  }
}

@media (max-width: 600px) {
  .header__inner {
    padding-right: 16px;
  }
}

/* パンくずリスト */
.breadcrumb {
  margin: 84px 5% 4px 5%;
  font-size: 0.8rem;
  color: #888;
}

.breadcrumb a {
  color: #1e4377;
  text-decoration: underline;
}

/* サービスタイトルエリア */
.services-title-area {
  position: relative;
  width: 100vw;
  min-width: 320px;
  height: auto;
  opacity: 0;
  animation: titleAreaFadeIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s
    forwards;
}

@keyframes titleAreaFadeIn {
  to {
    opacity: 1;
  }
}

.services-title-whiteband {
  position: relative;
  top: 0;
  left: 0;
  width: 95vw;
  background: #fff;
  z-index: 2;
  display: flex;
  align-items: center;
  overflow: hidden;
  height: auto;
  border-radius: 0;
  transform: translateX(-30%);
  opacity: 0;
  animation: whiteBandSlideIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s
    forwards;
}

@keyframes whiteBandSlideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.services-title-blueband {
  position: absolute;
  right: 0%;
  top: 50%;
  width: 95vw;
  height: 100%;
  background: linear-gradient(90deg, #387cdd 0%, #1e4377 100%);
  z-index: 1;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  pointer-events: none;
  transform: translateX(30%);
  opacity: 0;
  animation: blueBandSlideIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s
    forwards;
  padding-right: 150px;
}

@keyframes blueBandSlideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.services-title-blueband-text {
  position: absolute;
  top: 75%;
  left: 5vw;
  transform: translateY(-50%);
  width: 100vw;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 0;
  padding-right: 80px;
  height: auto;
  margin: 0;
  opacity: 0;
  animation: blueTextFadeIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.8s
    forwards;
}

@keyframes blueTextFadeIn {
  to {
    opacity: 1;
  }
}

.services-title-texts {
  margin-left: 10vw;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 80px;
  padding-bottom: 80px;
  opacity: 0;
  transform: translateY(20px);
  animation: whiteTextSlideUp 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s
    forwards;
}

@keyframes whiteTextSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.services-title-bgmark {
  position: absolute;
  right: -333px;
  top: 50%;
  transform: translateY(-50%) scale(0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  height: auto;
  opacity: 0;
  animation: logoScaleIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1s forwards;
}

@keyframes logoScaleIn {
  to {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
}

.services-title-bgmark img {
  width: 55%;
  object-fit: contain;
  display: block;
}

.services-title-ja {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 48px;
  font-weight: bold;
  color: #1e4377;
  line-height: 1.2;
  -webkit-text-stroke-width: 2px;
  -webkit-text-stroke-color: #fff;
  paint-order: stroke;
}

.services-title-en {
  font-family: "Roboto", sans-serif;
  font-size: 24px;
  font-weight: normal;
  color: #1e4377;
  line-height: 1.2;
}

/* 電話番号セクション */
.contact-phone-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 16px;
  margin-top: 160px;
  max-width: 600px;
}

.contact-phone-container {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(30, 67, 119, 0.08);
  padding: 32px;
}

.contact-phone-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  text-align: center;
}

.contact-phone-icon {
  font-size: 1.5rem;
  color: #1e4377;
  margin-right: 8px;
  width: 32px;
}

.contact-phone-content {
  flex: 1;
}

.contact-phone-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e4377;
  margin-bottom: 8px;
}

.contact-form-divider {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 24px 0;
}

.contact-phone-number {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
  justify-content: center;
  gap: 0;
}

.contact-phone-label {
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
}

.contact-phone-tel {
  font-family: "Roboto", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #387cdd;
}

.contact-phone-hours {
  font-size: 0.9rem;
  color: #666;
}

/* お問い合わせフォーム */
.contact-form-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px 80px 16px;
}

.contact-form-container {
  padding: 48px 16px;
}

.contact-form-header {
  text-align: center;
  margin-bottom: 48px;
}

.contact-form-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1e4377;
  margin-bottom: 16px;
}

.contact-form-subtitle {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.6;
  max-width: 1000px;
  margin: auto;
  padding: 0 32px;
}

.contact-form-subtitle span {
  display: inline-block;
}

.contact-form {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(30, 67, 119, 0.15);
  padding: 80px 48px;
  max-width: 1000px;
  margin: auto;
}

.form-group {
  margin-bottom: 32px;
  border-bottom: 1px solid #e0e6f0;
  padding-bottom: 32px;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  align-items: center;
}

.form-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* メッセージ入力欄とプライバシー同意は縦並び */
.form-group:has(.form-textarea),
.form-group:has(.privacy-checkbox) {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.form-group:has(.form-textarea) .form-label,
.form-group:has(.privacy-checkbox) .form-label {
  width: auto;
}

.form-group:has(.privacy-checkbox) {
  text-align: center;
  align-items: center;
  gap: 16px;
}

.form-label {
  display: flex;
  align-items: center;
  margin-bottom: 0;
  flex-shrink: 0;
  width: 200px;
  font-size: 16px;
  font-weight: bold;
  color: #1e4377;
}

.wpcf7-list-item label {
  display: flex;
  align-items: center;
  margin-bottom: 0;
}

.wpcf7-list-item {
  margin-bottom: 8px;
}

.wpcf7-list-item input[type="checkbox"] {
  margin: 0;
  margin-right: 8px;
  width: 18px;
  height: 18px;
  accent-color: #1e4377;
}

.wpcf7-form-control-wrap {
  width: 100%;
}

.wpcf7-spinner {
  display: none;
}

.wpcf7-acceptance {
  /* 中央よせ */
  display: flex;
  align-items: center;
  justify-content: center;
}

.wpcf7 form.sent .wpcf7-response-output{
  display: none;
}
.wpcf7 .wpcf7-submit:disabled {
  background: #6c757d;
}


.required {
  background: #e63946;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 4px;
  margin-left: 12px;
}

.optional {
  background: #6c757d;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 4px;
  margin-left: 12px;
}

.form-input,
.form-select,
.form-textarea {
  flex: 1;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 16px;
  color: #1e4377;
  background: #f8f9fa;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #1e4377;
  box-shadow: 0 0 0 3px rgba(30, 67, 119, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #9ca3af;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.privacy-checkbox {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.form-checkbox-group {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  flex: 1;
}

.form-checkbox-item {
  display: flex;
  align-items: center;
  cursor: pointer;
  margin-bottom: 8px;
}

.form-checkbox {
  margin: 0;
  margin-right: 8px;
  width: 18px;
  height: 18px;
  accent-color: #1e4377;
}

.checkbox-label {
  font-size: 1rem;
  color: #1e4377;
  line-height: 1.5;
  cursor: pointer;
}

.wpcf7-list-item-label {
  font-size: 1rem;
  color: #1e4377;
  line-height: 1.5;
  cursor: pointer;
}

.privacy-link {
  color: #1e4377;
  text-decoration: underline;
}

.privacy-link:hover {
  color: #0f2b4a;
}

.privacy-text {
  font-size: 16px;
  color: #1e4377;
  margin-bottom: 16px;
  text-align: center;
}

.privacy-text span {
  display: inline-block;
}

.form-submit {
  text-align: center;
  margin-top: 0;
  border-bottom: none;
  padding-bottom: 0;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-top: 32px;
}

.submit-btn {
  background: #1e4377;
  color: #fff;
  border: none;
  padding: 16px 48px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.submit-btn:hover {
  background: #16325c;
  transform: translateY(-2px);
}

/* タブレット対応 */
@media (max-width: 900px) {
  .services-title-area {
    position: relative;
    width: 100vw;
    min-width: 320px;
    height: auto;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    opacity: 0;
    animation: titleAreaFadeIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s
      forwards;
  }

  .services-title-whiteband {
    position: relative;
    width: 95vw;
    background: #fff;
    z-index: 2;
    display: flex;
    align-items: center;
    overflow: hidden;
    height: auto;
    border-radius: 0;
    min-height: 80px;
    flex: 1 1 auto;
    transform: translateX(-25%);
    opacity: 0;
    animation: whiteBandSlideIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s
      forwards;
  }

  .services-title-blueband {
    position: absolute;
    right: 0;
    top: 50%;
    width: 95vw;
    height: 100%;
    background: linear-gradient(90deg, #387cdd 0%, #1e4377 100%);
    z-index: 1;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    pointer-events: none;
    transform: translateX(25%);
    opacity: 0;
    animation: blueBandSlideIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s
      forwards;
  }

  .services-title-bgmark {
    position: absolute;
    right: -22rem;
    top: 50%;
    transform: translateY(-50%) scale(0.9);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: unset;
    height: 60px;
    opacity: 0;
    animation: logoScaleIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1s forwards;
  }

  .services-title-bgmark img {
    width: 45%;
  }

  .services-title-texts {
    margin-left: 6vw;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 24px;
    padding-bottom: 24px;
    opacity: 0;
    transform: translateY(15px);
    animation: whiteTextSlideUp 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s
      forwards;
  }

  .services-title-blueband-text {
    opacity: 0;
    animation: blueTextFadeIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.8s
      forwards;
    padding-right: 80px;
  }

  .services-title-ja {
    font-size: 32px;
  }

  .services-title-en {
    font-size: 18px;
  }

  .contact-phone-section {
    padding: 32px 16px;
  }

  .contact-phone-container {
    padding: 24px;
  }

  .contact-phone-box {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .contact-phone-icon {
    flex: none;
  }

  .contact-phone-number {
    justify-content: center;
  }

  .contact-form-section {
    padding: 0 16px 64px 16px;
  }

  .contact-form-container {
    padding: 32px 24px;
  }

  .contact-form-title {
    font-size: 1.5rem;
  }

  .contact-form-subtitle {
    font-size: 1rem;
  }

  /* フォームをレスポンシブ対応 */
  .contact-form {
    padding: 48px 32px;
  }

  .form-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .form-label {
    width: auto;
  }
}

/* スマートフォン対応 */
@media (max-width: 600px) {
  .services-title-blueband-text {
    font-size: 1rem;
    left: 3vw;
    padding-right: 48px;
  }

  .services-title-texts {
    margin-left: 7vw;
  }

  .services-title-ja {
    font-size: 28px;
  }

  .services-title-en {
    font-size: 16px;
  }

  .services-title-bgmark {
    right: -16rem;
  }
  .services-title-bgmark img {
    width: 55%;
    opacity: 0.5;
  }
  .contact-phone-section {
    padding: 24px 16px;
    margin-top: 120px;
  }

  .contact-phone-container {
    padding: 20px;
  }

  .contact-phone-title {
    font-size: 1.3rem;
  }

  .contact-form-section {
    padding: 0 16px 48px 16px;
  }

  .contact-form-container {
    padding: 0;
  }

  .contact-form-title {
    font-size: 1.3rem;
  }

  .contact-form-subtitle {
    padding: 0;
  }

  .form-group {
    margin-bottom: 24px;
  }

  .form-input,
  .form-select,
  .form-textarea {
    padding: 12px;
    font-size: 0.95rem;
  }

  .submit-btn {
    padding: 14px 40px;
    font-size: 1rem;
  }

  /* フォームの更なるレスポンシブ対応 */
  .contact-form {
    padding: 32px 20px;
  }

  .form-checkbox-group {
    flex-direction: column;
    gap: 12px;
  }
}
