@charset "UTF-8";

/* ====================================================================================================
   0. ベース設定・共通スタイル
   ==================================================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  color: #222222;
  background-color: #f2f5f9;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.pc_br {
  display: block;
}

.sp_br {
  display: none;
}

@media screen and (max-width: 450px) {
  .pc_br {
    display: none;
  }
  .sp_br {
    display: block;
  }
}

.bg-pattern-grid {
  position: absolute;
  top: 20px;
  left: 3%;
  width: 220px;
  height: 220px;
  background-image: 
    linear-gradient(to right, rgba(11, 26, 48, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11, 26, 48, 0.08) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 1;
}

.bg-pattern-circles {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 380px;
  height: 380px;
  background: 
    radial-gradient(circle at center, transparent 0, transparent 40px, rgba(11, 26, 48, 0.06) 41px, transparent 42px),
    radial-gradient(circle at center, transparent 0, transparent 80px, rgba(11, 26, 48, 0.06) 81px, transparent 82px),
    radial-gradient(circle at center, transparent 0, transparent 120px, rgba(11, 26, 48, 0.06) 121px, transparent 122px),
    radial-gradient(circle at center, transparent 0, transparent 160px, rgba(11, 26, 48, 0.06) 161px, transparent 162px);
  pointer-events: none;
  z-index: 1;
}

/* ====================================================================================================
   1. ヘッダー
   ==================================================================================================== */
.header {
  width: 100%;
  background-color: #0b1a30;
  color: #ffffff;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.header.header-hidden {
  transform: translateY(-100%);
}

.header-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.05em;
  z-index: 1003;
}

.site-title a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.25s ease;
}

.site-title a:hover {
  opacity: 0.85;
}

.site-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav {
  display: flex;
  align-items: center;
  position: relative;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 28px;
  align-items: center;
}

.nav-item a {
  color: #e0e6ed;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 6px 0;
}

.nav-item a:hover {
  color: #d4af37;
}

.nav-toggle-btn {
  display: none;
}

@media screen and (max-width: 1080px) {
  .header-container {
    padding: 16px 20px;
  }
}

@media screen and (max-width: 915px) {
  .header-container {
    padding: 14px 20px;
  }

  .site-logo {
    width: 28px;
    height: 28px;
  }

  .nav-toggle-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1005;
    -webkit-tap-highlight-color: transparent;
  }

  .nav-toggle-btn span {
    width: 100%;
    height: 2.5px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, background-color 0.3s ease;
  }

  .nav.is-open .nav-toggle-btn span:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
    background-color: #f1d78a;
  }

  .nav.is-open .nav-toggle-btn span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .nav.is-open .nav-toggle-btn span:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
    background-color: #f1d78a;
  }

  .nav-list {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: linear-gradient(135deg, #071222 0%, #0b1a30 50%, #0d2240 100%);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 80px 20px 40px;
    box-shadow: none;
    border-radius: 0;
    border: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(1.05);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, visibility 0.4s ease;
    z-index: 1000;
  }

  .nav.is-open .nav-list {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: scale(1);
  }

  .nav-item {
    width: 100%;
    max-width: 320px;
    text-align: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  }

  .nav-item:last-child {
    border-bottom: none;
  }

  .nav-item a {
    display: inline-block;
    padding: 12px 20px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.08em;
    width: 100%;
    transition: all 0.25s ease;
    position: relative;
  }

  .nav-item a::after {
    content: "";
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #f1d78a 0%, #d4af37 100%);
    transition: all 0.3s ease;
    transform: translateX(-50%);
  }

  .nav-item a:hover,
  .nav-item a:focus {
    color: #f1d78a;
  }

  .nav-item a:hover::after {
    width: 60%;
  }
}

@media screen and (max-width: 768px) {
  .site-title {
    font-size: 1.35rem;
  }
}

@media screen and (max-width: 450px) {
  .site-title {
    font-size: 1.25rem;
  }

  .site-logo {
    width: 24px;
    height: 24px;
  }

  .header-container {
    padding: 12px 15px;
  }

  .nav-toggle-btn {
    width: 28px;
    height: 20px;
  }

  .nav-item {
    max-width: 280px;
  }

  .nav-item a {
    font-size: 1.02rem;
    padding: 10px 16px;
  }
}

/* ====================================================================================================
   2. メインコンテンツ・フォームエリア
   ==================================================================================================== */
.main-content {
  width: 100%;
  min-height: 100vh;
  padding-top: 70px;
}

.contact-section {
  position: relative;
  width: 100%;
  padding: 80px 20px 100px;
  background-color: #f2f5f9;
  overflow: hidden;
}

.contact-container {
  position: relative;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  z-index: 2;
}

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

.contact-badge-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.shield-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  background-image: url("img/icon-shield-gold.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.contact-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #0b1a30;
  letter-spacing: 0.04em;
  margin: 0;
  line-height: 1.3;
}

.contact-subtitle {
  font-size: 1.02rem;
  font-weight: 700;
  color: #333333;
  line-height: 1.6;
  letter-spacing: 0.01em;
  margin: 0;
}

.contact-form {
  background: #ffffff;
  border-radius: 16px;
  padding: 50px 45px;
  box-shadow: 0 12px 35px rgba(11, 26, 48, 0.08);
  border: 1px solid #e2e8f0;
}

.contact-form-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 40px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-form-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-form-heading label,
.confirm-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0b1a30;
  letter-spacing: 0.02em;
}

.form-label-required {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #c0392b;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.form-label-optional {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #718096;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.contact-form-detail {
  width: 100%;
}

.select-wrapper {
  position: relative;
  width: 100%;
}

.select-wrapper::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid #0b1a30;
  pointer-events: none;
}

.contact-form-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  height: 52px;
  padding: 12px 40px 12px 16px;
  font-size: 1rem;
  font-weight: 500;
  color: #222222;
  background-color: #f8fafc;
  border: 1.5px solid #dcdfe6;
  border-radius: 8px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
  outline: none;
  cursor: pointer;
}

.contact-form-select:focus {
  border-color: #0b1a30;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(11, 26, 48, 0.12);
}

.contact-form-input {
  width: 100%;
  height: 52px;
  padding: 12px 16px;
  font-size: 1rem;
  font-weight: 500;
  color: #222222;
  background-color: #f8fafc;
  border: 1.5px solid #dcdfe6;
  border-radius: 8px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
  outline: none;
}

.contact-form-input::placeholder {
  color: #a0aec0;
}

.contact-form-input:focus {
  border-color: #0b1a30;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(11, 26, 48, 0.12);
}

.input-unit-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 320px;
  width: 100%;
}

.input-number {
  text-align: right;
  font-size: 1.1rem;
  font-weight: 700;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.input-unit {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0b1a30;
  white-space: nowrap;
}

.contact-form-note {
  font-size: 0.85rem;
  font-weight: 500;
  color: #666666;
  margin-top: 8px;
  line-height: 1.5;
}

.contact-form-error {
  font-size: 0.88rem;
  font-weight: 700;
  color: #c0392b;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.contact-form-error::before {
  content: "⚠";
  font-size: 0.95rem;
}

.privacy-box {
  background-color: #f8fafc;
  border: 1px solid #dcdfe6;
  border-radius: 8px;
  padding: 20px;
  max-height: 220px;
  overflow-y: auto;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03);
}

.privacy-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0b1a30;
  margin-bottom: 10px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 6px;
}

.privacy-text {
  font-size: 0.85rem;
  color: #444444;
  line-height: 1.65;
}

.privacy-text strong {
  color: #0b1a30;
}

.contact-agreement-block {
  background-color: #f7f9fc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.agreement-desc {
  font-size: 0.95rem;
  font-weight: 700;
  color: #222222;
  margin: 0;
  line-height: 1.5;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  padding: 8px 16px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.checkbox-label:hover {
  background-color: #edf2f7;
}

.contact-checkbox {
  width: 22px;
  height: 22px;
  cursor: pointer;
  accent-color: #0b1a30;
  flex-shrink: 0;
}

.checkbox-text {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0b1a30;
  letter-spacing: 0.02em;
}

.form-submit-wrapper {
  text-align: center;
  width: 100%;
}

.submit-btn {
  display: inline-block;
  width: 100%;
  max-width: 480px;
  background: linear-gradient(180deg, #ff7e00 0%, #ee6d17 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.15rem;
  padding: 18px 30px;
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(230, 92, 0, 0.4);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  letter-spacing: 0.05em;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(230, 92, 0, 0.6);
  filter: brightness(1.05);
}

.confirm-value-box {
  width: 100%;
  padding: 14px 18px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #111111;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  line-height: 1.6;
  word-break: break-all;
}

.confirm-value-box.highlight-value {
  color: #0b1a30;
  font-weight: 800;
  background-color: #f0f4f9;
  border-color: #cbd5e1;
}

.empty-text {
  color: #a0aec0;
  font-weight: 500;
  font-size: 0.92rem;
}

.confirm-btn-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  max-width: 220px;
  height: 54px;
  background-color: #ffffff;
  color: #4a5568;
  font-size: 1rem;
  font-weight: 700;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  text-decoration: none;
  box-sizing: border-box;
}

.btn-back:hover {
  background-color: #f1f5f9;
  border-color: #94a3b8;
  color: #0b1a30;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 2;
  max-width: 360px;
  height: 54px;
  background: linear-gradient(180deg, #ff7e00 0%, #ee6d17 100%);
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(230, 92, 0, 0.4);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  letter-spacing: 0.03em;
  box-sizing: border-box;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(230, 92, 0, 0.6);
  filter: brightness(1.05);
}

.send-result-wrapper {
  text-align: center;
  padding: 60px 40px;
}

.send-success-box,
.send-error-box {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 30px 24px;
  margin-bottom: 10px;
}

.send-error-box {
  border-color: #fca5a5;
  background-color: #fef2f2;
}

.send-message-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0b1a30;
  margin-bottom: 16px;
  line-height: 1.4;
}

.send-error-box .send-message-title {
  color: #c0392b;
}

.send-message-desc {
  font-size: 1rem;
  font-weight: 500;
  color: #333333;
  line-height: 1.7;
}

@media screen and (max-width: 1080px) {
  .contact-title {
    font-size: 2rem;
  }
  .contact-subtitle {
    font-size: 0.98rem;
  }
  .contact-form {
    padding: 40px 30px;
  }
  .submit-btn {
    font-size: 1.08rem;
  }
}

@media screen and (max-width: 768px) {
  .contact-section {
    padding: 60px 16px 80px;
  }
  .contact-title {
    font-size: 1.75rem;
  }
  .contact-subtitle {
    font-size: 0.92rem;
  }
  .contact-form {
    padding: 30px 20px;
    border-radius: 12px;
  }
  .contact-form-heading label,
  .confirm-label {
    font-size: 1rem;
  }
  .contact-form-select,
  .contact-form-input {
    height: 48px;
    font-size: 0.95rem;
  }
  .input-unit-wrap {
    max-width: 280px;
  }
  .submit-btn {
    max-width: 100%;
    font-size: 1.02rem;
    padding: 16px 20px;
  }
  .confirm-btn-container {
    flex-direction: column-reverse;
    gap: 16px;
  }
  .btn-back,
  .btn-submit {
    max-width: 100%;
    width: 100%;
    height: 54px;
  }
  .send-result-wrapper {
    padding: 40px 20px;
  }
  .send-message-title {
    font-size: 1.25rem;
  }
  .send-message-desc {
    font-size: 0.92rem;
  }
}

@media screen and (max-width: 450px) {
  .contact-section {
    padding: 45px 12px 60px;
  }
  .contact-badge-title {
    flex-direction: column;
    gap: 8px;
  }
  .shield-icon {
    width: 26px;
    height: 26px;
  }
  .contact-title {
    font-size: 1.35rem;
  }
  .contact-subtitle {
    font-size: 0.85rem;
    line-height: 1.55;
  }
  .contact-form {
    padding: 22px 14px;
  }
  .contact-form-list {
    gap: 24px;
  }
  .contact-form-heading label,
  .confirm-label {
    font-size: 0.95rem;
  }
  .form-label-required,
  .form-label-optional {
    font-size: 0.7rem;
    padding: 2px 8px;
  }
  .contact-form-select,
  .contact-form-input {
    height: 46px;
    font-size: 0.9rem;
    padding: 10px 12px;
  }
  .input-unit-wrap {
    max-width: 100%;
  }
  .input-unit {
    font-size: 0.95rem;
  }
  .contact-form-note {
    font-size: 0.78rem;
  }
  .privacy-box {
    padding: 14px;
    max-height: 180px;
  }
  .privacy-text {
    font-size: 0.78rem;
  }
  .contact-agreement-block {
    padding: 20px 14px;
    margin-bottom: 24px;
    gap: 12px;
  }
  .agreement-desc {
    font-size: 0.88rem;
  }
  .checkbox-label {
    padding: 6px 12px;
  }
  .checkbox-text {
    font-size: 0.92rem;
  }
  .submit-btn {
    font-size: 0.95rem;
    padding: 14px 16px;
  }
  .confirm-value-box {
    padding: 12px 14px;
    font-size: 0.95rem;
  }
  .confirm-btn-container {
    gap: 14px;
  }
  .btn-back {
    font-size: 0.95rem;
    height: 52px;
    padding: 12px;
  }
  .btn-submit {
    font-size: 1.05rem;
    height: 54px;
    padding: 14px;
  }
  .send-result-wrapper {
    padding: 25px 12px;
  }
  .send-message-title {
    font-size: 1.15rem;
  }
  .send-message-desc {
    font-size: 0.85rem;
  }
}

/* ====================================================================================================
   3. フッター
   ==================================================================================================== */
.footer {
  width: 100%;
  background-color: #071222;
  color: #ffffff;
  padding: 35px 20px;
  text-align: center;
  border-top: 3px solid #d4af37;
}

.footer-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.copyright {
  font-size: 0.85rem;
  color: #a0aec0;
  letter-spacing: 0.05em;
  margin: 0;
}

@media screen and (max-width: 768px) {
  .footer {
    padding: 28px 16px;
  }
  .copyright {
    font-size: 0.8rem;
  }
}

@media screen and (max-width: 450px) {
  .footer {
    padding: 22px 12px;
  }
  .copyright {
    font-size: 0.75rem;
  }
}