/* ============================================================
   1カラムの固定ページ（template-parts/simple-page.php）
   運営会社について・お問い合わせ・プライバシーポリシー・利用規約・404 など

   目次
    1. 本文の基本スタイル
    2. 運営会社について（会社概要）
    3. お問い合わせフォーム（Contact Form 7）
    4. レスポンシブ
   ============================================================ */

/* ---------- 1. 本文の基本スタイル ---------- */
.page-main {
  padding: 48px 0 90px;
}

.page-lead {
  font-size: 15px;
  line-height: 2;
  color: #1c2b21;
  background: #f3f8f2;
  border: 1px solid #cfe0ce;
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 0 0 8px;
}
.page-lead p {
  margin: 0 0 14px;
}
.page-lead p:last-child {
  margin-bottom: 0;
}

.page-narrow h2 {
  font-size: 20.5px;
  line-height: 1.5;
  margin: 46px 0 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--green);
  color: var(--ink);
  font-weight: 800;
}
.page-narrow > section:first-child > h2 {
  margin-top: 0;
}
.page-narrow p {
  font-size: 15px;
  line-height: 2;
  color: #243228;
  margin: 0 0 16px;
}
.page-narrow ul {
  margin: 0 0 18px;
  padding-left: 1.3em;
}
.page-narrow li {
  margin: 0 0 9px;
  font-size: 14.5px;
  line-height: 1.9;
  color: #243228;
}

/* ---------- 2. 運営会社について ---------- */
.company-profile {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: stretch;
}
.company-photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(26, 54, 31, 0.1);
}
.company-photo img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  display: block;
}
.company-profile .company-table {
  margin: 0;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.company-table th,
.company-table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}
.company-table tr:last-child th,
.company-table tr:last-child td {
  border-bottom: 0;
}
.company-table th {
  width: 180px;
  background: #f6f9f6;
  color: var(--green-2);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.02em;
}
.company-table td {
  font-size: 14.5px;
  line-height: 1.9;
  color: #1e2c22;
}
.company-table td a {
  color: var(--green);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.company-table td a:hover {
  color: var(--green-2);
}

/* 本文で使えるボックス・更新日表示 */
.page-cta {
  margin-top: 40px;
  padding: 28px;
  background: #f3f8f2;
  border: 1px solid #cfe0ce;
  border-radius: var(--radius);
  text-align: center;
}
.page-cta p {
  margin: 0 0 16px;
  font-size: 14.5px;
}
.page-cta .button {
  min-height: 48px;
  padding: 0 30px;
}

.page-updated {
  margin-top: 36px;
  font-size: 12.5px;
  color: #5c6b61;
  text-align: right;
}

/* ---------- 3. お問い合わせフォーム ---------- */
.contact-form {
  display: flex;
  flex-direction: column;
  max-width: none;
  margin-top: 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(21, 58, 29, 0.07);
  padding: 6px 44px;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.form-row:last-of-type {
  border-bottom: 0;
}
.form-row label {
  font-size: 14px;
  font-weight: 800;
  color: var(--green-2);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.01em;
}
.form-required,
.form-optional {
  font-size: 10.5px;
  font-weight: 700;
  border-radius: 20px;
  padding: 3px 11px;
  letter-spacing: 0.03em;
}
.form-required {
  color: #fff;
  background: #c0392b;
}
.form-optional {
  color: #5c6b61;
  background: #eef2ee;
}
.form-row input,
.form-row textarea {
  font: inherit;
  font-size: 15px;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #f7faf7;
  color: var(--ink);
  width: 100%;
  box-sizing: border-box;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background 0.2s;
}
.form-row input:hover,
.form-row textarea:hover {
  border-color: #c3d4c5;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--green);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(21, 88, 41, 0.1);
}
.form-row textarea {
  resize: vertical;
  min-height: 150px;
  font-family: inherit;
  line-height: 1.7;
}
.form-actions {
  padding: 28px 0 0;
  text-align: center;
}
.form-actions .button {
  min-height: 52px;
  padding: 0 40px;
  font-size: 14.5px;
  letter-spacing: 0.02em;
}

/* ============================================================
   Contact Form 7 送信ボタンの再スタイル
   [submit "この内容で送信する"] は <input type="submit" class="wpcf7-submit">
   として出力され、元デザインの .button.button-primary クラスが付かないため、
   同じクラス名(.wpcf7-submit)・要素(input[type=submit])を直接対象にして
   見た目を合わせる。<input> には ::after で矢印を追加できないので、
   矢印はSVGの背景画像を右側に配置して再現している。
   ============================================================ */
.form-actions input[type="submit"],
.form-actions .wpcf7-submit,
.contact-form input[type="submit"],
.contact-form .wpcf7-submit {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex !important;
  flex: none !important;
  width: auto !important;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 58px 0 32px;
  border: 0;
  border-radius: 28px;
  background-color: #135522;
  background-image:
    linear-gradient(135deg, #387b32, #135522),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13m-6-6 6 6-6 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-position:
    0 0,
    right 26px center;
  background-size:
    100% 100%,
    18px 18px;
  color: #fff;
  font: inherit;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(21, 88, 41, 0.2);
  transition:
    transform 0.25s,
    box-shadow 0.25s,
    background 0.25s;
}
.form-actions input[type="submit"]::-moz-focus-inner,
.form-actions .wpcf7-submit::-moz-focus-inner,
.contact-form input[type="submit"]::-moz-focus-inner,
.contact-form .wpcf7-submit::-moz-focus-inner {
  border: 0;
  padding: 0;
}
.form-actions input[type="submit"]:hover,
.form-actions .wpcf7-submit:hover,
.contact-form input[type="submit"]:hover,
.contact-form .wpcf7-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(21, 88, 41, 0.3);
}
.form-actions input[type="submit"]:focus-visible,
.form-actions .wpcf7-submit:focus-visible,
.contact-form input[type="submit"]:focus-visible,
.contact-form .wpcf7-submit:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
.form-actions input[type="submit"]:disabled,
.form-actions .wpcf7-submit:disabled,
.form-actions .wpcf7-submit.disabled,
.contact-form input[type="submit"]:disabled,
.contact-form .wpcf7-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 8px 20px rgba(21, 88, 41, 0.2);
}

/* CF7が挿入するラップ用span・送信中スピナーの見た目調整 */
.form-actions .wpcf7-form-control-wrap {
  display: inline-flex;
  justify-content: center;
}
.form-actions .wpcf7-spinner {
  margin: 0 0 0 14px;
  vertical-align: middle;
}


/* ---------- 4. レスポンシブ ---------- */
@media (max-width: 820px) {
  .page-main {
    padding: 36px 0 60px;
  }
  .page-narrow h2 {
    font-size: 18.5px;
    margin: 36px 0 14px;
  }
  .company-profile {
    grid-template-columns: 1fr;
  }
  .company-photo img {
    min-height: 0;
    max-height: 260px;
  }
  .contact-form {
    padding: 4px 28px;
    margin-top: 26px;
  }
}
@media (max-width: 600px) {
  .page-lead {
    font-size: 14px;
    line-height: 1.85;
    padding: 20px 20px;
  }
  .page-narrow p {
    font-size: 14px;
  }
  .company-table {
    display: block;
  }
  .company-table tbody,
  .company-table tr {
    display: block;
  }
  .company-table th,
  .company-table td {
    display: block;
    width: auto;
    padding: 0 14px;
  }
  .company-table th {
    padding-top: 14px;
    padding-bottom: 4px;
    border-bottom: 0;
    font-size: 12.5px;
  }
  .company-table td {
    padding-top: 0;
    padding-bottom: 16px;
  }
  .company-table tr:not(:last-child) td {
    border-bottom: 1px solid var(--line);
  }
  .contact-form {
    padding: 4px 20px;
    border-radius: 12px;
  }
  .form-row {
    padding: 20px 0;
  }
  .form-actions {
    padding: 22px 0 0;
  }
  .page-main {
    padding-bottom: 40px;
  }
  .form-actions input[type="submit"],
  .form-actions .wpcf7-submit,
  .contact-form input[type="submit"],
  .contact-form .wpcf7-submit {
    width: 100% !important;
    padding: 0 48px 0 24px;
  }
}

/* Contact Form 7: response styling and successful submission. */
.wpcf7 .wpcf7-response-output {
  box-sizing: border-box;
  margin: 18px 0 0 !important;
  padding: 20px 24px !important;
  border: 0 !important;
  border-radius: 12px;
  background: #234e71;
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.9;
  text-align: center;
  overflow-wrap: anywhere;
}
.wpcf7 .oc-contact-sent input[type="submit"],
.wpcf7 .oc-contact-sent button[type="submit"],
.wpcf7 .oc-contact-sent .wpcf7-submit,
.wpcf7 .oc-contact-sent .wpcf7-spinner {
  display: none !important;
}
.wpcf7 .oc-contact-sent .wpcf7-response-output {
  display: block !important;
  width: 100%;
  margin: 0 !important;
  background: linear-gradient(125deg, #1d4c74 0%, #286f9b 55%, #368eaf 100%);
  white-space: pre-line;
  box-shadow: 0 8px 20px rgba(29, 76, 116, .16);
}
.wpcf7 .wpcf7-form.invalid .wpcf7-response-output,
.wpcf7 .wpcf7-form.unaccepted .wpcf7-response-output {
  background: #f5ce65;
  color: #30351f !important;
}
.wpcf7 .wpcf7-spinner { display: none; }
.wpcf7 .wpcf7-form.submitting .wpcf7-spinner { display: inline-block; }
.form-actions > p { margin-bottom: 0; }
.form-actions { padding-bottom: 20px; }
@media (max-width: 820px) {
  .form-actions { padding-bottom: 16px; }
  .wpcf7 .wpcf7-response-output { padding: 18px 16px !important; font-size: 13px; }
}
