/**
 * アクセス・お問い合わせページ - ラグジュアリーデザイン
 * テンプレート専用CSS
 */

/* ========================================
   CSS変数 - カラースキーム
   ======================================== */

:root {
  --luxury-gold: #D4AF37;
  --luxury-dark: #2C2C2C;
  --luxury-text: #333333;
  --luxury-bg: #FAFAFA;
}

/* ========================================
   ページ全体の設定
   ======================================== */

.page-contact-template {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--luxury-text);
  position: relative;
}

.page-contact-template::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(212, 175, 55, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.page-contact-template > * {
  position: relative;
  z-index: 1;
}

/* ========================================
   ヒーローセクション - 下層ページ統一デザイン
   ======================================== */

.page-contact-template .wp-block-cover {
  min-height: 70vh !important;
}

.page-contact-template .wp-block-cover__background {
  opacity: 0.5 !important;
}

.page-contact-template .wp-block-cover h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 300;
  letter-spacing: 0.2em;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.page-contact-template .wp-block-cover p {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(12px, 2vw, 14px);
  letter-spacing: 0.1em;
}

/* ========================================
   見出しスタイル
   ======================================== */

.page-contact-template h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--luxury-dark);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  position: relative;
  text-align: center;
}

.page-contact-template h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--luxury-gold) 50%,
    transparent 100%
  );
}

.page-contact-template > p {
  text-align: center;
  font-size: clamp(15px, 2vw, 18px);
  line-height: 2;
  letter-spacing: 0.08em;
  color: #666;
  margin-bottom: 5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-contact-template h3:not(.swell-block-box h3) {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--luxury-dark);
  margin: 5rem 0 3rem 0;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(212, 175, 55, 0.03) 100%);
  border-left: 5px solid var(--luxury-gold);
  border-radius: 8px;
  position: relative;
}

.page-contact-template h3:not(.swell-block-box h3)::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 2rem;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--luxury-gold) 0%, #B8941E 100%);
  border-radius: 50%;
  opacity: 0.2;
}

/* CTAセクション内のボックスとh3スタイル */
.page-contact-template .swell-block-fullWide .swell-block-box {
  background-color: #ffffff !important;
}

.page-contact-template .swell-block-box h3 {
  background: none !important;
  border-left: none !important;
  padding: 0 !important;
  margin: 0 0 1rem 0 !important;
  font-family: inherit !important;
  font-size: inherit !important;
  color: #2C2C2C !important;
}

.page-contact-template .swell-block-box h3::before {
  display: none !important;
}

.page-contact-template h4 {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(18px, 3vw, 22px);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--luxury-dark);
  margin: 2rem 0 1.5rem 0;
}

/* ========================================
   テーブルスタイル
   ======================================== */

.page-contact-template .wp-block-table {
  margin: 3rem 0;
  overflow: hidden;
}

.page-contact-template .wp-block-table table {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  border-collapse: separate;
  border-spacing: 0;
  background: white;
}

.page-contact-template .wp-block-table td {
  padding: 2rem 2.5rem;
  font-size: clamp(15px, 2vw, 16px);
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  vertical-align: top;
}

.page-contact-template .wp-block-table td:first-child {
  background: linear-gradient(135deg, var(--luxury-dark) 0%, #1a1a1a 100%);
  color: white;
  font-weight: 600;
  width: 150px;
  letter-spacing: 0.1em;
}

.page-contact-template .wp-block-table td:last-child {
  line-height: 2;
}

.page-contact-template .wp-block-table tr:last-child td {
  border-bottom: none;
}

.page-contact-template .wp-block-table a {
  color: var(--luxury-gold);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.page-contact-template .wp-block-table a:hover {
  color: var(--luxury-dark);
  text-decoration: underline;
}

/* ========================================
   STEPブロック
   ======================================== */

.page-contact-template .swell-block-step {
  margin: 4rem 0;
}

.page-contact-template .step-item {
  background: white;
  border-radius: 16px;
  padding: 3rem;
  margin-bottom: 3rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border-left: 4px solid var(--luxury-gold);
}

.page-contact-template .step-item:hover {
  transform: translateX(8px);
  box-shadow: 0 15px 50px rgba(212, 175, 55, 0.25);
}

.page-contact-template .step-number {
  display: inline-block;
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: white;
  background: linear-gradient(135deg, var(--luxury-dark) 0%, #1a1a1a 100%);
  padding: 0.8rem 2rem;
  border-radius: 50px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-contact-template .step-content h4 {
  font-size: clamp(20px, 4vw, 26px);
  margin-bottom: 1.5rem;
  color: var(--luxury-dark);
  position: relative;
  padding-bottom: 1rem;
}

.page-contact-template .step-content h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--luxury-gold);
}

.page-contact-template .step-content p {
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.page-contact-template .step-content .station-note {
  font-size: 14px;
  color: #888;
}

.page-contact-template .step-content .note {
  background: rgba(212, 175, 55, 0.05);
  border-left: 3px solid var(--luxury-gold);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border-radius: 8px;
  font-size: 14px;
  line-height: 2;
}

.page-contact-template .image-placeholder {
  background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem 0;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  color: #999;
  font-size: 14px;
}

/* ========================================
   カラムレイアウト
   ======================================== */

.page-contact-template .wp-block-columns {
  gap: 3rem !important;
  margin-top: 3rem !important;
}

.page-contact-template .wp-block-column {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.page-contact-template .wp-block-column:hover {
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.2);
  transform: translateY(-4px);
}

/* ========================================
   リストスタイル
   ======================================== */

.page-contact-template ul {
  list-style: none;
  padding-left: 0;
}

.page-contact-template ul li {
  position: relative;
  padding-left: 2em;
  line-height: 2;
  margin-bottom: 1rem;
  font-size: 16px;
  letter-spacing: 0.04em;
}

.page-contact-template ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 8px;
  height: 8px;
  background: var(--luxury-gold);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

/* ========================================
   セパレーター
   ======================================== */

.page-contact-template .wp-block-separator {
  border: none;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(212, 175, 55, 0.3) 50%,
    transparent 100%
  );
  margin: 6rem 0;
}

/* ========================================
   SWELLボックスブロック
   ======================================== */

.page-contact-template .swell-block-box {
  border-radius: 16px;
  padding: 3rem;
  margin: 3rem 0;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.page-contact-template .swell-block-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(212, 175, 55, 0.15);
}

.page-contact-template .swell-block-box strong {
  font-size: clamp(18px, 3vw, 22px);
  letter-spacing: 0.1em;
  color: var(--luxury-dark);
  font-weight: 700;
  display: block;
  margin-bottom: 1rem;
}

.page-contact-template .swell-block-box p {
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0.05em;
  color: #555;
  margin-bottom: 1rem;
}

.page-contact-template .swell-block-box a {
  color: var(--luxury-gold);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.page-contact-template .swell-block-box a:hover {
  color: var(--luxury-dark);
  text-decoration: underline;
}

/* 電話番号ボックス専用スタイル */
.page-contact-template .swell-block-box[style*="#FFF5E6"] {
  text-align: center;
  background: linear-gradient(135deg, #FFF5E6 0%, #FFF9F0 100%) !important;
  border: 2px solid var(--luxury-gold) !important;
}

.page-contact-template .swell-block-box[style*="#FFF5E6"] a {
  font-size: clamp(24px, 5vw, 36px);
  color: var(--luxury-dark);
  letter-spacing: 0.08em;
}

.page-contact-template .swell-block-box[style*="#FFF5E6"] a:hover {
  color: var(--luxury-gold);
}

/* ========================================
   FAQブロック
   ======================================== */

.page-contact-template .swell-block-faq {
  margin: 3rem 0 5rem 0;
}

.page-contact-template .faq-item {
  background: white;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
}

.page-contact-template .faq-item:hover {
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.2);
  border-color: rgba(212, 175, 55, 0.2);
  transform: translateY(-2px);
}

.page-contact-template .faq-q {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(16px, 3vw, 18px);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--luxury-dark);
  padding: 2rem 3rem 2rem 4.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.page-contact-template .faq-q::before {
  content: 'Q';
  position: absolute;
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--luxury-gold);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 50%;
}

.page-contact-template .faq-q::after {
  content: '+';
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
  font-weight: 300;
  color: var(--luxury-gold);
  transition: all 0.3s ease;
}

.page-contact-template .faq-item.is-open .faq-q::after {
  content: '−';
  transform: translateY(-50%) rotate(180deg);
}

.page-contact-template .faq-item:hover .faq-q {
  background: linear-gradient(135deg, #ffffff 0%, rgba(212, 175, 55, 0.03) 100%);
}

.page-contact-template .faq-a {
  font-size: clamp(15px, 2vw, 16px);
  line-height: 2;
  letter-spacing: 0.05em;
  color: #555;
  padding: 0 3rem 0 4.5rem;
  background: white;
  position: relative;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.3s ease;
}

.page-contact-template .faq-item.is-open .faq-a {
  max-height: 2000px;
  padding: 2rem 3rem 2rem 4.5rem;
  opacity: 1;
}

.page-contact-template .faq-a::before {
  content: 'A';
  position: absolute;
  left: 2rem;
  top: 2rem;
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--luxury-dark);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(44, 44, 44, 0.05);
  border-radius: 50%;
}

.page-contact-template .faq-a p {
  margin-bottom: 1.5rem;
}

.page-contact-template .faq-a p:last-child {
  margin-bottom: 0;
}

/* ========================================
   CTAボタン
   ======================================== */

.page-contact-template .swell-block-cta {
  margin: 5rem 0;
  padding: 4rem 2rem;
  border-radius: 16px;
  text-align: center;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, rgba(212, 175, 55, 0.1) 100%) !important;
  border: 2px solid rgba(212, 175, 55, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.page-contact-template .cta-button {
  display: inline-block;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 1.8rem 4.5rem;
  border-radius: 50px;
  background: linear-gradient(135deg, #2C2C2C 0%, #1a1a1a 100%);
  color: white;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.page-contact-template .cta-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
  z-index: 0;
}

.page-contact-template .cta-button:hover::before {
  width: 500px;
  height: 500px;
}

.page-contact-template .cta-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  border-color: var(--luxury-gold);
  color: white;
}

/* ========================================
   Contact Form 7 スタイル
   ======================================== */

.page-contact-template .wpcf7 {
  background: white;
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  margin: 2rem 0;
}

.page-contact-template .wpcf7 form {
  margin: 0;
}

.page-contact-template .wpcf7 p {
  margin-bottom: 2rem;
}

.page-contact-template .wpcf7 label {
  display: block;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--luxury-dark);
  margin-bottom: 0.5rem;
  font-size: 15px;
}

.page-contact-template .wpcf7 .wpcf7-form-control-wrap {
  display: block;
}

.page-contact-template .wpcf7 input[type="text"],
.page-contact-template .wpcf7 input[type="email"],
.page-contact-template .wpcf7 input[type="tel"],
.page-contact-template .wpcf7 input[type="url"],
.page-contact-template .wpcf7 textarea,
.page-contact-template .wpcf7 select {
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 16px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  background: #fafafa;
  transition: all 0.3s ease;
  font-family: 'Noto Sans JP', sans-serif;
  letter-spacing: 0.04em;
}

.page-contact-template .wpcf7 input[type="text"]:focus,
.page-contact-template .wpcf7 input[type="email"]:focus,
.page-contact-template .wpcf7 input[type="tel"]:focus,
.page-contact-template .wpcf7 input[type="url"]:focus,
.page-contact-template .wpcf7 textarea:focus,
.page-contact-template .wpcf7 select:focus {
  outline: none;
  border-color: var(--luxury-gold);
  background: white;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.page-contact-template .wpcf7 textarea {
  min-height: 200px;
  resize: vertical;
}

.page-contact-template .wpcf7 select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%23333' d='M0 0l6 8 6-8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 3rem;
}

.page-contact-template .wpcf7 input[type="submit"] {
  display: block;
  width: 100%;
  max-width: 400px;
  margin: 2rem auto 0;
  padding: 1.5rem 3rem;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: white;
  background: linear-gradient(135deg, #2C2C2C 0%, #1a1a1a 100%);
  border: 2px solid transparent;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.page-contact-template .wpcf7 input[type="submit"]:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  border-color: var(--luxury-gold);
}

.page-contact-template .wpcf7 input[type="submit"]:active {
  transform: translateY(-2px);
}

/* 必須マーク */
.page-contact-template .wpcf7 .wpcf7-form-control.wpcf7-validates-as-required {
  border-left: 3px solid var(--luxury-gold);
}

/* バリデーションエラー */
.page-contact-template .wpcf7 .wpcf7-not-valid-tip {
  color: #dc3545;
  font-size: 14px;
  margin-top: 0.5rem;
  display: block;
}

.page-contact-template .wpcf7 .wpcf7-not-valid {
  border-color: #dc3545 !important;
}

/* 送信完了・エラーメッセージ */
.page-contact-template .wpcf7 .wpcf7-response-output {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.page-contact-template .wpcf7 .wpcf7-mail-sent-ok {
  background: #d4edda;
  border: 2px solid #28a745;
  color: #155724;
}

.page-contact-template .wpcf7 .wpcf7-validation-errors,
.page-contact-template .wpcf7 .wpcf7-mail-sent-ng {
  background: #f8d7da;
  border: 2px solid #dc3545;
  color: #721c24;
}

.page-contact-template .wpcf7 .wpcf7-spam-blocked {
  background: #fff3cd;
  border: 2px solid #ffc107;
  color: #856404;
}

/* ローディング */
.page-contact-template .wpcf7 .ajax-loader {
  display: none;
}

.page-contact-template .wpcf7 form.submitting input[type="submit"] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ========================================
   レスポンシブ
   ======================================== */

@media (max-width: 768px) {
  .page-contact-template h3 {
    padding: 1.2rem 1.5rem;
    margin: 3rem 0 2rem 0;
  }

  .page-contact-template h3::before {
    width: 30px;
    height: 30px;
    right: 1.5rem;
  }

  .page-contact-template .wp-block-table td {
    padding: 1.5rem 1.5rem;
    font-size: 14px;
  }

  .page-contact-template .wp-block-table td:first-child {
    width: 100px;
  }

  .page-contact-template .step-item {
    padding: 2rem 1.5rem;
  }

  .page-contact-template .step-number {
    font-size: 12px;
    padding: 0.6rem 1.5rem;
  }

  .page-contact-template .swell-block-box {
    padding: 2rem 1.5rem;
  }

  .page-contact-template .faq-q {
    padding: 1.5rem 3rem 1.5rem 3.5rem;
    font-size: 16px;
  }

  .page-contact-template .faq-q::before {
    left: 1.2rem;
    width: 32px;
    height: 32px;
    font-size: 20px;
  }

  .page-contact-template .faq-q::after {
    right: 1.5rem;
    font-size: 24px;
  }

  .page-contact-template .faq-a {
    padding: 0 2rem 0 3.5rem;
    font-size: 15px;
  }

  .page-contact-template .faq-item.is-open .faq-a {
    padding: 1.5rem 2rem 1.5rem 3.5rem;
  }

  .page-contact-template .faq-a::before {
    left: 1.2rem;
    top: 1.5rem;
    width: 32px;
    height: 32px;
    font-size: 18px;
  }

  .page-contact-template .cta-button {
    padding: 1.5rem 3rem;
    font-size: 16px;
  }
}

/* ========================================
   320px幅対応 - 超小型スマートフォン
   ======================================== */

@media (max-width: 375px) {
  /* 見出しサイズ調整 */
  .page-contact-template h2 {
    font-size: 1.6rem !important;
    letter-spacing: 0.08em !important;
    margin-bottom: 1.5rem !important;
    padding-bottom: 1rem !important;
  }

  .page-contact-template > p {
    font-size: 14px !important;
    margin-bottom: 3rem;
    padding: 0 10px;
  }

  .page-contact-template h3 {
    font-size: 1.15rem !important;
    letter-spacing: 0.08em !important;
    padding: 1rem 1rem 1rem 1.2rem !important;
    margin: 2rem 0 1.5rem 0 !important;
    border-left-width: 3px;
  }

  .page-contact-template h3::before {
    width: 25px !important;
    height: 25px !important;
    right: 1rem !important;
  }

  .page-contact-template h4 {
    font-size: 1rem !important;
    margin: 1.5rem 0 1rem 0;
  }

  /* テーブル調整 */
  .page-contact-template .wp-block-table {
    margin: 2rem 0;
  }

  .page-contact-template .wp-block-table td {
    padding: 1rem !important;
    font-size: 13px !important;
    display: block;
    width: 100% !important;
  }

  .page-contact-template .wp-block-table td:first-child {
    width: 100% !important;
    border-bottom: none;
    padding-bottom: 0.5rem !important;
  }

  .page-contact-template .wp-block-table td:last-child {
    padding-top: 0.5rem !important;
  }

  /* STEPブロック調整 */
  .page-contact-template .swell-block-step {
    margin: 2rem 0;
  }

  .page-contact-template .step-item {
    padding: 1.5rem 1rem !important;
    margin-bottom: 2rem;
    border-left-width: 3px;
  }

  .page-contact-template .step-number {
    font-size: 11px !important;
    padding: 0.6rem 1.2rem !important;
    margin-bottom: 1.2rem;
  }

  .page-contact-template .step-content h4 {
    font-size: 1.1rem !important;
    margin-bottom: 1rem !important;
  }

  .page-contact-template .step-content p {
    font-size: 14px !important;
    line-height: 1.8 !important;
    margin-bottom: 1rem;
  }

  .page-contact-template .step-content .station-note {
    font-size: 12px;
  }

  .page-contact-template .step-content .note {
    padding: 1rem 1.2rem;
    margin: 1.5rem 0;
    font-size: 12px;
  }

  /* セパレーター */
  .page-contact-template .wp-block-separator {
    margin: 4rem 0;
  }

  /* ボックス調整 */
  .page-contact-template .swell-block-box {
    padding: 1.5rem 1rem !important;
    margin: 2rem 0 !important;
  }

  .page-contact-template .swell-block-box strong {
    font-size: 15px !important;
    margin-bottom: 0.8rem;
  }

  .page-contact-template .swell-block-box p {
    font-size: 14px;
    line-height: 1.8;
  }

  .page-contact-template .swell-block-box[style*="#FFF5E6"] {
    padding: 2rem 1rem !important;
  }

  .page-contact-template .swell-block-box[style*="#FFF5E6"] a {
    font-size: 1.5rem !important;
  }

  /* カラム調整 */
  .page-contact-template .wp-block-columns {
    gap: 1.5rem !important;
    margin-top: 2rem !important;
  }

  .page-contact-template .wp-block-column {
    padding: 1.5rem 1rem !important;
  }

  /* FAQブロック調整 */
  .page-contact-template .swell-block-faq {
    margin: 2rem 0 3rem 0;
  }

  .page-contact-template .faq-item {
    margin-bottom: 1rem;
  }

  .page-contact-template .faq-q {
    padding: 1.2rem 2.5rem 1.2rem 3rem !important;
    font-size: 14px !important;
  }

  .page-contact-template .faq-q::before {
    left: 0.8rem !important;
    width: 28px !important;
    height: 28px !important;
    font-size: 18px !important;
  }

  .page-contact-template .faq-q::after {
    right: 1rem !important;
    font-size: 22px !important;
  }

  .page-contact-template .faq-a {
    padding: 0 1.5rem 0 3rem !important;
    font-size: 13px !important;
  }

  .page-contact-template .faq-item.is-open .faq-a {
    padding: 1.2rem 1.5rem 1.2rem 3rem !important;
  }

  .page-contact-template .faq-a::before {
    left: 0.8rem !important;
    top: 1.2rem !important;
    width: 28px !important;
    height: 28px !important;
    font-size: 16px !important;
  }

  /* CTA調整 */
  .page-contact-template .swell-block-cta {
    padding: 2rem 1rem !important;
    margin: 3rem 0 !important;
  }

  .page-contact-template .cta-button {
    padding: 1rem 2rem !important;
    font-size: 14px !important;
  }

  /* リスト調整 */
  .page-contact-template ul li {
    font-size: 14px !important;
    padding-left: 1.5em;
    margin-bottom: 0.8rem;
  }

  .page-contact-template ul li::before {
    width: 6px;
    height: 6px;
  }

  /* Contact Form 7 調整 */
  .page-contact-template .wpcf7 {
    padding: 1.5rem 1rem !important;
    margin: 1.5rem 0;
  }

  .page-contact-template .wpcf7 p {
    margin-bottom: 1.5rem;
  }

  .page-contact-template .wpcf7 label {
    font-size: 14px;
    margin-bottom: 0.4rem;
  }

  .page-contact-template .wpcf7 input[type="text"],
  .page-contact-template .wpcf7 input[type="email"],
  .page-contact-template .wpcf7 input[type="tel"],
  .page-contact-template .wpcf7 input[type="url"],
  .page-contact-template .wpcf7 textarea,
  .page-contact-template .wpcf7 select {
    padding: 0.8rem 1rem !important;
    font-size: 14px !important;
  }

  .page-contact-template .wpcf7 textarea {
    min-height: 150px;
  }

  .page-contact-template .wpcf7 input[type="submit"] {
    max-width: 100%;
    padding: 1rem 2rem !important;
    font-size: 14px !important;
    margin-top: 1.5rem;
  }
}

/* 320px幅での特別な調整 */
@media (max-width: 320px) {
  .page-contact-template h2 {
    font-size: 1.4rem !important;
  }

  .page-contact-template h3 {
    font-size: 1.05rem !important;
    padding: 0.9rem 0.8rem 0.9rem 1rem !important;
  }

  .page-contact-template .wp-block-table td {
    padding: 0.8rem !important;
    font-size: 12px !important;
  }

  .page-contact-template .step-item {
    padding: 1.2rem 0.8rem !important;
  }

  .page-contact-template .step-content .note {
    padding: 0.8rem 1rem;
  }

  .page-contact-template .swell-block-box {
    padding: 1.2rem 0.8rem !important;
  }

  .page-contact-template .swell-block-box[style*="#FFF5E6"] {
    padding: 1.5rem 0.8rem !important;
  }

  .page-contact-template .swell-block-box[style*="#FFF5E6"] a {
    font-size: 1.3rem !important;
  }

  .page-contact-template .wp-block-column {
    padding: 1.2rem 0.8rem !important;
  }

  .page-contact-template .faq-q {
    padding: 1rem 2rem 1rem 2.8rem !important;
    font-size: 13px !important;
  }

  .page-contact-template .faq-q::before {
    left: 0.6rem !important;
    width: 26px !important;
    height: 26px !important;
    font-size: 16px !important;
  }

  .page-contact-template .faq-a {
    padding: 0 1.2rem 0 2.8rem !important;
    font-size: 12px !important;
  }

  .page-contact-template .faq-item.is-open .faq-a {
    padding: 1rem 1.2rem 1rem 2.8rem !important;
  }

  .page-contact-template .faq-a::before {
    left: 0.6rem !important;
    width: 26px !important;
    height: 26px !important;
  }

  .page-contact-template .cta-button {
    padding: 0.9rem 1.5rem !important;
    font-size: 13px !important;
  }

  .page-contact-template .wpcf7 {
    padding: 1.2rem 0.8rem !important;
  }

  .page-contact-template .wpcf7 input[type="text"],
  .page-contact-template .wpcf7 input[type="email"],
  .page-contact-template .wpcf7 input[type="tel"],
  .page-contact-template .wpcf7 input[type="url"],
  .page-contact-template .wpcf7 textarea,
  .page-contact-template .wpcf7 select {
    padding: 0.7rem 0.9rem !important;
    font-size: 13px !important;
  }

  .page-contact-template .wpcf7 input[type="submit"] {
    padding: 0.9rem 1.5rem !important;
    font-size: 13px !important;
  }
}
