@charset "utf-8";
/* CSS Document */
/* =========================================
   Product page styles (companyに準拠)
   ========================================= */
:root{
  --company-wrap: min(1200px, 92vw);
  --company-ink: #141414;
  --company-blue: #0e5fbe;
}

/* セクション余白 */
.main{
  padding: clamp(48px, 7vw, 100px) 0 clamp(36px, 5vw, 80px);
}

/* 見出しボックス（今回はh1のみ） */
.main .box{
  width: var(--company-wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
  gap: clamp(20px, 4vw, 64px);
}

/* 見出し（companyと統一） */
.main h1{
  margin: 0;
  font-family: "Times New Roman","Yu Mincho","Hiragino Mincho ProN","Noto Serif JP",serif;
  font-weight: 500;
  font-size: clamp(48px, 14vw, 162px);
  line-height: 1;
  letter-spacing: .06em;
  color: var(--company-ink);
}

/* リード文（companyと統一） */
.main > p{
  width: var(--company-wrap);
  margin: clamp(18px, 3vw, 36px) auto 0;
  font-size: clamp(18px, 2.4vw, 30px);
  line-height: 1.75;
  font-weight: bold;
  letter-spacing: .05em;
  color: var(--company-ink);
}
.main > p span{ color: var(--company-blue); }



.contact-wrap {
	max-width: 1080px;
	margin: 40px auto;
}

/* ===== CF7 Modern ===== */
.cf7-modern {
  --c-primary: #0b5fc8;        /* ブランドに合わせて変更可 */
  --c-bg: #f6f7fb;
  --c-border: #dfe3ea;
  --c-text: #1f2937;
  --c-muted: #6b7280;

  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 16px;
  padding: clamp(16px, 3vw, 32px);
  box-shadow: 0 6px 20px rgba(0,0,0,.04);
}

.cf7-title {
  margin: 0 0 12px;
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 700;
  color: var(--c-text);
}

.cf7-fieldset {
  border: 0;
  padding: 0;
  margin: 8px 0 20px;
}
.cf7-fieldset > legend {
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 8px;
}
.req {
  display: inline-block;
  margin-left: .5em;
  padding: .1em .5em;
  font-size: .8em;
  color: #fff;
  background: var(--c-primary);
  border-radius: 999px;
}

/* ラジオをピルUIに */
.cf7-radio-pills label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1rem;
  margin-right: .5rem;
  margin-bottom: .5rem;
  border: 1.5px solid var(--c-border);
  border-radius: 999px;
  cursor: pointer;
  user-select: none;
  transition: .2s ease;
  background: #fff;
}
.cf7-radio-pills input[type="radio"] {
  accent-color: var(--c-primary);
}
.cf7-radio-pills label:hover {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(11,95,200,.12);
}
.cf7-radio-pills input:checked + span,
.cf7-radio-pills input:checked + label {
  /* CF7の構造差異を吸収するため双方に指定 */
}
.cf7-radio-pills input[type="radio"]:checked ~ .wpcf7-list-item-label,
.cf7-radio-pills .wpcf7-list-item input:checked + span {
  color: var(--c-primary);
  font-weight: 700;
}

/* 2カラム → スマホ1カラム */
.cf7-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px 18px;
}
.cf7-col { grid-column: span 6; }
.cf7-col-12 { grid-column: 1 / -1; }

@media (max-width: 768px) {
  .cf7-col { grid-column: 1 / -1; }
}

/* ラベル & コントロール */
.cf7-label {
  display: block;
  font-weight: 700;
  color: var(--c-text);
}
.cf7-input,
.cf7-textarea {
  width: 100%;
  box-sizing: border-box;
  margin-top: 8px;
  padding: 12px 14px;
  font-size: 16px;
  color: var(--c-text);
  background: var(--c-bg);
  border: 1.5px solid var(--c-border);
  border-radius: 10px;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.cf7-textarea { min-height: 160px; resize: vertical; }

.cf7-input:focus,
.cf7-textarea:focus {
  outline: none;
  border-color: var(--c-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(11,95,200,.15);
}

/* 送信ボタン */
.cf7-actions {
  margin-top: 18px;
  text-align: center;
}
.cf7-button {
  display: inline-block;
  padding: 12px 28px;
  background: var(--c-primary);
  color: #fff;
  font-weight: 700;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .05s ease, box-shadow .2s ease, opacity .2s ease;
}
.cf7-button:hover {
  box-shadow: 0 8px 22px rgba(11,95,200,.22);
}
.cf7-button:active {
  transform: translateY(1px);
}

/* CF7バリデーション/完了メッセージの調整（任意） */
.wpcf7 form .wpcf7-response-output {
  margin: 16px 0 0;
  border-radius: 10px;
  border-width: 2px;
}
.wpcf7-not-valid-tip {
  margin-top: 6px;
  font-size: .9rem;
  color: #b91c1c; /* 赤 */
}

/* 条件グループのラッパを透明化して中の .cf7-col を直にグリッドへ参加させる */
.cf7-grid > [data-class="wpcf7cf_group"] {
  display: contents;           /* 一番きれいに直る */
}

/* 非表示化されたときはスペースを取らない */
.cf7-grid > [data-class="wpcf7cf_group"].wpcf7cf-hidden {
  display: none !important;
}

/* display:contents に不安がある場合のフォールバック（任意で併用可） */
@supports not (display: contents) {
  .cf7-grid > [data-class="wpcf7cf_group"] { 
    display: block; 
    grid-column: 1 / -1;
  }
  .cf7-grid > [data-class="wpcf7cf_group"] .cf7-col { 
    grid-column: 1 / -1;
  }
}

/* 念のため：inputのsize属性に影響されないよう幅100%を強制 */
.wpcf7 form input[type="text"].cf7-input { width: 100%; max-width: 100%; box-sizing: border-box; }


