@charset "utf-8";

/* =========================================
   Contact Common
========================================= */

.contact-eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: .22em;
  color: rgba(255,255,255,.72);
}

.contact-hero {
  max-width: 760px;
  margin-bottom: 34px;
}

.contact-hero h1,
.contact-hero h2,
.contact-complete h2 {
  margin: 0;
  font-family: "Shippori Mincho", serif;
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: .08em;
}

.contact-hero h1,
.contact-hero h2 {
  font-size: clamp(20px, 3.5vw, 32px);
}

.contact-hero p,
.contact-complete p {
  margin: 20px 0 0;
  font-size: 14px;
  line-height: 2;
  letter-spacing: .08em;
  color: rgba(255,255,255,.82);
}

/* =========================================
   Contact Form
========================================= */

.contact-form {
  display: grid;
  gap: 22px;
}

.contact-form label {
  display: grid;
  gap: 9px;
}

.contact-form label > span {
  font-size: 12px;
  letter-spacing: .12em;
  color: rgba(255,255,255,.8);
}

.contact-form em {
  margin-left: 8px;
  font-style: normal;
  font-size: 10px;
  color: rgba(255,255,255,.55);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 16px;
  background: rgba(255,255,255,.08);
  color: #fff;
  padding: 15px 16px;
  font: inherit;
  outline: none;
}

.contact-form select option {
  color: #111;
}

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

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(255,255,255,.58);
  background: rgba(255,255,255,.12);
}

.contact-agree {
  display: flex !important;
  align-items: center;
  gap: 12px !important;
  margin-top: 4px;
}

.contact-agree input {
  width: 18px;
  height: 18px;
  accent-color: #fff;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(260px, 100%);
  min-height: 54px;
  margin-top: 10px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: .16em;
  transition: background .3s ease, transform .3s ease;
}

.contact-button:hover {
  background: rgba(255,255,255,.2);
  transform: translateY(-2px);
}

/* =========================================
   Hidden Contact Page Fallback
   ※ /contact/ は直接表示せず送信処理用
========================================= */

body.contact-page {
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  background:
    linear-gradient(120deg, rgba(0,0,0,.72), rgba(0,0,0,.36)),
    url("../images/concept00.webp") center / cover no-repeat fixed;
  color: #fff;
}

.contact-shell {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(72px, 10vw, 120px) 0;
}

.contact-card {
  width: min(760px, 100%);
  padding: clamp(26px, 4vw, 46px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 28px;
  background: rgba(8,8,10,.58);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 30px 90px rgba(0,0,0,.35);
}

.contact-errors {
  margin-bottom: 24px;
  padding: 16px 18px;
  border: 1px solid rgba(255,120,120,.38);
  border-radius: 18px;
  background: rgba(120,0,0,.22);
}

.contact-errors p {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255,255,255,.9);
}

/* =========================================
   Modal Base
========================================= */

html.is-contact-modal-open,
html.is-contact-thanks-open {
  overflow: hidden !important;
}

html.is-contact-modal-open body,
html.is-contact-thanks-open body {
  overflow: hidden !important;
}

.contact-modal,
.contact-thanks-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.is-contact-modal-open .contact-modal {
  display: block;
}

.is-contact-thanks-open .contact-thanks-modal {
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-modal__bg {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.contact-modal__panel {
  position: relative;
  width: min(720px, calc(100% - 32px));
  max-height: calc(100svh - 40px);
  margin: 20px auto;
  padding: clamp(24px, 4vw, 42px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 28px;
  background: rgba(8,8,10,.88);
  box-shadow: 0 30px 90px rgba(0,0,0,.45);
}

.contact-modal__close {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
}

/* =========================================
   Thanks Modal
========================================= */

.contact-thanks-modal .contact-modal__panel {
  width: min(620px, calc(100% - 32px));
  max-height: none;
  margin: 0;
  text-align: center;
}

.contact-thanks-modal .contact-complete {
  text-align: center;
}

.contact-thanks-modal .contact-eyebrow {
  text-align: center;
  font-size: 11px;
  letter-spacing: .28em;
  margin-bottom: 12px;
}

.contact-thanks-modal .contact-complete h2 {
  text-align: center;
  font-size: clamp(16px, 2vw, 24px);
  line-height: 1.4;
  letter-spacing: .08em;
  margin: 0 0 20px;
}

.contact-thanks-modal .contact-complete p {
  max-width: 520px;
  margin: 0 auto 28px;
  text-align: center;
  font-size: 13px;
  line-height: 2;
}

.contact-thanks-modal .contact-button {
  display: flex;
  margin: 0 auto;
}

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

@media (max-width: 640px) {
  .contact-shell {
    width: calc(100% - 28px);
    padding: 58px 0;
  }

  .contact-card {
    padding: 24px 18px;
    border-radius: 22px;
  }

  .contact-hero {
    margin-bottom: 26px;
  }

  .contact-hero p,
  .contact-complete p {
    font-size: 11px;
  }

  .contact-form {
    gap: 18px;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    border-radius: 14px;
    padding: 14px;
  }

  .contact-button {
    width: 100%;
  }

  .contact-modal__panel {
    max-height: calc(100svh - 24px);
    margin: 12px auto;
    border-radius: 22px;
  }

  .contact-thanks-modal .contact-modal__panel {
    width: calc(100% - 28px);
  }
}
