/* ===== CONTACT PAGE ===== */
#header{
  opacity: 1;
  pointer-events:all;
}
.header-nav .btn-contact{
  background: #b3b3b3;
  pointer-events: none;
}
  /* ===== MAIN ===== */
  main { padding-top: 64px; }

  /* ===== PAGE TITLE ===== */
  .page-title-area {
    padding: 60px 80px 30px;
  }
  .section-title-wrap {
    overflow: hidden;
    display: inline-block;
    position: relative;
  }
  .page-title {
    font-family: "avenir-next-lt-pro", sans-serif;
    font-size: clamp(40px, 13vw, 110px);
    font-weight: 400;
    letter-spacing: 0.04em;
    line-height: 1;
    display: block;
    position: relative;
    opacity: 0;
  }

  /* ===== MASK REVEAL ===== */
  .reveal-wrap {
    position: relative;
    overflow: hidden;
  }
  .reveal-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--white);
    transform: scaleX(1);
    transform-origin: left center;
    z-index: 2;
    transition: transform 0.75s cubic-bezier(0.76, 0, 0.24, 1);
  }
  .reveal-inner {
    width: 100%;
    height: 100%;
    transform: scale(1.04);
    transition: transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  /* object-fit: cover を使わず画像をそのまま表示 */
  .reveal-inner img {
    width: 100%;
    height: auto;
    display: block;
  }
  .reveal-wrap.revealed::after {
    transform: scaleX(0);
    transform-origin: right center;
  }
  .reveal-wrap.revealed .reveal-inner {
    transform: scale(1);
  }

  /* ===== HERO IMAGE ===== */
  .contact-hero {
    margin: 0 auto 0;
    padding: 0 80px;
    width: 100%;
    overflow: hidden;
  }

  /* ===== FORM AREA ===== */
  .contact-form {
    max-width: 840px;
    margin: auto;
  }
  .contact-form-area {
    padding: 60px 80px 80px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s 0.4s, transform 0.6s 0.4s;
  }
  .contact-form-area.visible { opacity: 1; transform: none; }
  .contact-lead {
    text-align: center;
    font-size: 19px;
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 40px;

  }
  .contact-lead .required-note { color: red; font-weight: 700; }
  .form-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    align-items: start;
    margin-bottom: 35px;
    gap: 0 24px;
    &.last{
      margin-bottom: 45px;
      margin-top: 70px;
    }
  }
  .form-label {
    font-size: 14px;
    font-weight: 500;
    padding-top: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .form-label .req { color: red; font-size: 14px; font-weight: 700; }
  .form-input, .form-textarea {
    width: 100%;
    border: 1px solid var(--black);
    padding: 15px 14px;
    font-size: 14px;
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--black);
    background: var(--white);
    outline: none;
    transition: border-color 0.2s;
    -webkit-appearance: none;
    appearance: none;
    -webkit-border-radius: 0;
    border-radius: 0;
    @media(max-width:768px){
      padding: 10px;
    }
  }
  .form-input:focus, .form-textarea:focus { border-color: var(--blue); }
  .form-input::placeholder, .form-textarea::placeholder { color: #ccc; }
  .form-textarea { resize: vertical; height: 160px; min-height: 160px; line-height: 1.7; }
  .form-checks { padding-top: 6px; }
  .form-checks .wpcf7-form-control { display: flex; flex-direction: column; gap: 12px; }
  .form-checks label {
    display: flex; align-items: center; gap: 10px;
    font-size: 14px; cursor: pointer; user-select: none;
  }
  .form-checks label input[type="checkbox"] {
    width: 16px; height: 16px;
    border: 1px solid var(--black);
    appearance: none; -webkit-appearance: none; cursor: pointer; position: relative;
    flex-shrink: 0; transition: border-color 0.2s, background 0.2s;
    top: 1px; border-radius: 0;
  }
  .form-checks label input[type="checkbox"]:checked {
    background: var(--blue); border-color: var(--blue);
  }
  .form-checks label input[type="checkbox"]:checked::after {
    content: ''; position: absolute;
    top: 2px; left: 5px; width: 4px; height: 8px;
    border-right: 2px solid white; border-bottom: 2px solid white;
    transform: rotate(45deg);
  }
  .form-divider { border: none; border-top: 1px solid #000; margin: 8px 0 32px; }
  .privacy-agree-row {
    display: flex; align-items: center;justify-content: center; gap: 10px; margin-bottom: 20px;
  }
  .privacy-agree-row input[type="checkbox"] {
    width: 16px; height: 16px;
    border: 1px solid var(--black); appearance: none; -webkit-appearance: none;
    cursor: pointer; position: relative; flex-shrink: 0;
    transition: border-color 0.2s, background 0.2s;
    position: relative;
    top: 2px; border-radius: 0;
  }
  .privacy-agree-row input[type="checkbox"]:checked {
    background: var(--blue); border-color: var(--blue);
  }
  .privacy-agree-row input[type="checkbox"]:checked::after {
    content: ''; position: absolute;
    top: 2px; left: 5px; width: 4px; height: 8px;
    border-right: 2px solid white; border-bottom: 2px solid white;
    transform: rotate(45deg);
  }
  .privacy-agree-text { font-size: 13px; }
  .privacy-agree-text a { text-decoration: underline; color: var(--black); transition: color 0.2s; }
  .privacy-agree-text a:hover { color: var(--blue); }
  .submit-wrap { display: flex; justify-content: center; }
  .btn-submit {
    position: relative;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 360px; padding: 20px 24px 23px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 14px; letter-spacing: 0; font-weight: 500;
    background: #aaa; color: var(--white);
    border: none; cursor: not-allowed;
    transition: background 0.25s; pointer-events: none;
  }
  .btn-more-arrow {
    display: block;
    width: 8px;
    height: 8px;
    border-right: 1px solid #fff;
    border-top: 1px solid #fff;
    transform: rotate(45deg);
    flex-shrink: 0;
    position: relative;
    top: 1px;
  }
  .btn-submit.active { background-color: var(--blue); cursor: pointer; pointer-events: all; }
  .btn-submit.active:hover { background-color: var(--blue-dark); }

  /* ===== ANIMATIONS ===== */
  @keyframes barReveal2 {
    from { opacity: 0; } to { opacity: 1; }
  }

  /* ===== SP ===== */
  @media (max-width: 768px) {
    main { padding-top: 52px; }
    .page-title-area { padding: 28px 20px 0; }
    .page-title { font-size: clamp(32px, 14vw, 72px);letter-spacing: 0.08em; }
    .contact-hero { padding: 0 20px;margin: 20px auto 0; }
    .contact-form-area { padding: 32px 20px 60px; }
    .contact-lead { font-size: 12px; }
    .form-row { grid-template-columns: 1fr; gap: 8px 0; margin-bottom: 30px; }
    .form-row.last{margin-top: 50px;}
    .form-label { padding-top: 0; }
    .privacy-agree-row { justify-content: center;flex-wrap: wrap;
     }
    .privacy-agree-row input[type="checkbox"]{margin:0 auto 5px;}
    .privacy-agree-text { font-size: 12px;width: 100%;text-align: center; }
    .btn-submit { width: 100%; }
    .form-divider{display: none;}
  }

/* CF7 submit ボタン上書き */
.wpcf7-submit {
  display: block;
  text-align: center;
  padding-left: 0; /* 矢印分だけテキストを中央寄りにオフセット */
  background-color: #aaa;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='14' viewBox='0 0 8 14'%3E%3Cpath d='M1 0.5 L7 7 L1 13.5' stroke='white' stroke-width='1' fill='none' stroke-linecap='butt' stroke-linejoin='miter'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(50% + 33px) center;
  cursor: not-allowed;
  pointer-events: none;
}
.wpcf7-submit.active {
  background-color: var(--blue);
  cursor: pointer;
  pointer-events: all;
}
.wpcf7-submit.active:hover {
  background-color: var(--blue-dark);
}
/* CF7が挿入するスピナーを非表示・ボタンのズレ防止 */
.submit-wrap .wpcf7-spinner { display: none; }

.wpcf7-list-item{
  margin: 0!important;
}