/* お問い合わせのページ (contact.html) と、トップページからの案内 (2026-11-13)。色と書体は styles.production.css に合わせる。 */

/* ===== ページの上部：白いロゴが見えるよう、紺の帯の上にヘッダーを重ねる ===== */
.contact-hero {
  background: var(--nav-bg);
  color: #fff;
  padding: 104px 20px 48px;
}
.contact-hero__inner {
  max-width: 760px;
  margin: 0 auto;
}
.contact-hero__eyebrow {
  display: flex;
  align-items: baseline;
  gap: 0.75em;
  margin: 0 0 10px;
  color: var(--nav-fg-weak);
  letter-spacing: 0.04em;
}
.contact-hero__eyebrow .en {
  font-family: var(--latin);
  font-weight: 600;
  font-size: clamp(18px, 2.4vw, 24px);
}
.contact-hero__eyebrow .jp {
  font-family: var(--jp);
  font-weight: 500;
  font-size: clamp(12px, 1.4vw, 14px);
  opacity: 0.9;
}
.contact-hero__title {
  margin: 0;
  font-family: var(--jp);
  font-weight: 900;
  font-size: clamp(26px, 4.2vw, 40px);
  line-height: 1.35;
  letter-spacing: 0.01em;
}

/* ===== 本文 ===== */
.contact-main {
  padding: clamp(32px, 6vw, 64px) 20px clamp(56px, 9vw, 96px);
}
.contact-wrap {
  max-width: 760px;
  margin: 0 auto;
}
.contact-page .nowrap {
  white-space: nowrap;
}
.contact-intro p {
  margin: 0 0 1em;
  font-size: clamp(16px, 0.6vw + 14px, 18px);
  line-height: 1.95;
  color: #333;
}
.contact-form {
  margin-top: clamp(24px, 4vw, 36px);
  padding: clamp(20px, 4vw, 40px);
  background: #fff;
  border: 1px solid #e3e8f0;
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(4, 18, 77, 0.06);
}
.cf-types {
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  min-width: 0;
}
.cf-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 22px 0 8px;
  padding: 0;
  font-family: var(--jp);
  font-weight: 700;
  font-size: 16px;
  color: #1f2937;
}
.cf-types .cf-label {
  margin-top: 0;
}
.cf-label .tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  color: #4b5563;
  background: #eef1f6;
}
.cf-label .tag.is-required {
  color: #fff;
  background: #b42318;
}
.cf-type {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 8px 0 0;
  padding: 14px 16px;
  border: 1px solid #d5dbe5;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.cf-type:hover {
  border-color: #8a97b8;
}
.cf-type:has(input:checked) {
  border-color: var(--nav-bg);
  background: #f0f3fb;
  box-shadow: inset 0 0 0 1px var(--nav-bg);
}
.cf-type input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 4px 0 0;
  accent-color: var(--nav-bg);
}
.cf-type__text {
  font-family: var(--jp);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.6;
  color: #1f2937;
}
.cf-type__text small {
  display: block;
  font-weight: 400;
  font-size: 13px;
  color: #5b6474;
}
.cf-input {
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #c9d1de;
  border-radius: 8px;
  background: #fff;
  font: 16px/1.6 var(--jp); /* 16px より小さいと iPhone で拡大される */
  color: #111;
}
.cf-textarea {
  min-height: 9em;
  resize: vertical;
}
.cf-input:focus,
.cf-type:has(input:focus-visible) {
  outline: 3px solid rgba(4, 18, 77, 0.25);
  outline-offset: 1px;
  border-color: var(--nav-bg);
}
.cf-input[aria-invalid="true"] {
  border-color: #b42318;
}
.cf-hint {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: #5b6474;
}
.cf-hint[hidden] {
  display: none;
}
.form-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.cf-note {
  margin: 24px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: #5b6474;
}
.cf-submit {
  display: block;
  margin: 24px auto 0;
  min-width: min(100%, 280px);
  padding: 15px 40px;
  border: 0;
  border-radius: 999px;
  background: var(--nav-bg);
  color: #fff;
  font: 700 17px/1.4 var(--jp);
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(4, 18, 77, 0.25);
  transition: background 0.2s, transform 0.2s;
}
.cf-submit:hover {
  background: #0b1e83;
  transform: translateY(-1px);
}
.cf-submit:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}
.cf-status {
  margin: 18px 0 0;
  font-size: 15px;
  line-height: 1.8;
}
.cf-status:empty {
  display: none;
}
.cf-status[data-state="success"] {
  padding: 14px 16px;
  border-radius: 10px;
  background: #ecf7ef;
  color: #14532d;
}
.cf-status[data-state="error"] {
  padding: 14px 16px;
  border-radius: 10px;
  background: #fdf0ef;
  color: #8a1c13;
}

/* ===== サイドメニューの今いるページ ===== */
.side-list a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* ===== トップページ (index.html) からの案内 ===== */
#our-services .services-optout {
  max-width: 800px;
  margin: clamp(18px, 3vw, 28px) auto 0;
  padding: 14px 18px;
  border-left: 4px solid var(--nav-bg);
  background: #fff;
  font-size: clamp(15px, 0.5vw + 13px, 17px);
  line-height: 1.8;
  color: #333;
}
#our-services .services-optout a,
.contact-cta__link {
  color: var(--nav-bg);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.contact-cta__inner {
  width: min(760px, 92vw);
  margin: 0 auto;
  text-align: center;
}
.contact-cta__eyebrow {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.75em;
  margin: 0 0 clamp(10px, 2vw, 16px);
  color: #1e3a8a;
  letter-spacing: 0.04em;
}
.contact-cta__eyebrow .en {
  font-size: var(--eyebrow-en-dsk, clamp(18px, 2.4vw, 26px));
  font-weight: 800;
}
.contact-cta__eyebrow .jp {
  font-size: var(--eyebrow-jp-dsk, clamp(12px, 1.4vw, 14px));
  font-weight: 600;
  opacity: 0.9;
}
.contact-cta__title {
  margin: 0 0 14px;
  font-family: var(--jp);
  font-weight: 800;
  font-size: clamp(22px, 2.4vw, 30px);
  color: #1f2937;
}
.content-area .contact-cta .contact-cta__text {
  text-align: left;
}
.contact-cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 28px;
  margin-top: 22px !important;
}
.contact-cta__button {
  display: inline-block;
  padding: 15px 40px;
  border-radius: 999px;
  background: var(--nav-bg);
  color: #fff;
  font: 700 17px/1.4 var(--jp);
  letter-spacing: 0.06em;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(4, 18, 77, 0.25);
  transition: background 0.2s, transform 0.2s;
}
.contact-cta__button:hover {
  background: #0b1e83;
  transform: translateY(-1px);
}

/* ===== サイドメニューの影は、開いているときだけ出す (閉じているときも右端に灰色の帯が出ていた、2026-11-13) ===== */
.side-drawer {
  box-shadow: none;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
body.menu-open .side-drawer {
  box-shadow: -20px 0 40px rgba(0, 0, 0, 0.25);
}
