/* =========================================================
   SHISEILABO contact-light
   HRMOS風シンプルフォームデザイン
   ※ /contact-light/ ページでのみ読み込まれます（functions.php で条件付き）
   ========================================================= */

/* ---------- Base ---------- */
:root{
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f9fafb;
  --text: #1f2937;
  --text-sub: #6b7280;
  --line: #d9e0e7;
  --line-strong: #c7d0da;
  --primary: #0f4c81;
  --primary-hover: #0b3d67;
  --primary-soft: #eaf2f8;
  --danger: #c62828;
  --shadow: 0 10px 30px rgba(15, 39, 68, 0.08);
  --radius: 8px;
  --radius-sm: 6px;
  --content-width: 760px;
}

html{
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body{
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    "Inter",
    "Noto Sans JP",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    sans-serif;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

/* ---------- General Layout ---------- */
.site,
.site-content,
.entry-content,
.page-content,
main,
.page-wrapper,
.l-container,
.container{
  box-sizing: border-box;
}

main,
.site-main,
.page-content,
.entry-content{
  width: 100%;
}

body.page,
body.single-page{
  background: var(--bg);
}

/* 中央カード化 */
.page .entry-content,
.page-content > .container,
.site-main > .container,
main > .container,
main > article,
.contact-light,
.contact-page,
.contact-form-wrap,
.wpcf7{
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
}

/* ページ全体余白 */
.site-main,
.page-content,
.entry-content,
main{
  padding-left: 20px;
  padding-right: 20px;
}

/* 中身のカード */
.page .entry-content > *:first-child,
.page-content > .container,
.site-main > .container,
main > article,
.contact-light,
.contact-page,
.contact-form-wrap,
.wpcf7{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* WordPressで本文全体を包めない場合の保険 */
.page .entry-content{
  max-width: calc(var(--content-width) + 40px);
  margin: 56px auto;
}

.page .entry-content > *{
  box-sizing: border-box;
}

/* カード内の標準余白 */
.page .entry-content > .wp-block-group,
.page .entry-content > section,
.page .entry-content > div,
.page-content > .container,
.site-main > .container,
main > article,
.contact-light,
.contact-page,
.contact-form-wrap,
.wpcf7{
  padding: 40px 40px 36px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6{
  margin: 0 0 16px;
  color: var(--text);
  line-height: 1.35;
  font-weight: 700;
}

h1{
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  letter-spacing: 0.01em;
  margin-bottom: 12px;
}

h2{
  font-size: 1.35rem;
  margin-top: 40px;
  padding-top: 0;
}

h3{
  font-size: 1.05rem;
  margin-top: 28px;
}

p{
  margin: 0 0 16px;
  color: var(--text-sub);
  font-size: 0.98rem;
}

.lead,
.page-description,
.entry-content > p:first-of-type{
  font-size: 1rem;
  color: var(--text-sub);
  margin-bottom: 28px;
}

/* HRMOSっぽい見出し下の細線 */
h1 + p,
h1 + .lead,
h1 + .page-description{
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}

/* ---------- Form Blocks ---------- */
form{
  margin: 0;
}

fieldset{
  margin: 0 0 28px;
  padding: 0;
  border: 0;
}

label{
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 600;
}

.required,
.req,
.is-required{
  color: var(--danger);
  margin-left: 6px;
  font-size: 0.82em;
  font-weight: 700;
}

.form-row,
.form-group,
.field,
.input-group,
.wpcf7-form-control-wrap{
  display: block;
  width: 100%;
  margin-bottom: 22px;
}

/* 2カラムを使いたい場合の補助 */
.form-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
}

@media (max-width: 767px){
  .form-grid{
    grid-template-columns: 1fr;
  }
}

/* ---------- Inputs ---------- */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="search"],
input[type="date"],
input[type="password"],
select,
textarea{
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  font-size: 0.96rem;
  line-height: 1.5;
  box-sizing: border-box;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

textarea{
  min-height: 160px;
  resize: vertical;
  padding-top: 14px;
}

select{
  background-image:
    linear-gradient(45deg, transparent 50%, #6b7280 50%),
    linear-gradient(135deg, #6b7280 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}

input::placeholder,
textarea::placeholder{
  color: #9aa5b1;
}

input:focus,
select:focus,
textarea:focus{
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.12);
}

/* ---------- Helper Text / Notes ---------- */
small,
.note,
.help-text,
.description{
  display: block;
  margin-top: 8px;
  color: var(--text-sub);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* ---------- Checkbox / Radio ---------- */
input[type="checkbox"],
input[type="radio"]{
  accent-color: var(--primary);
}

.checkbox,
.radio,
.wpcf7-list-item{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 10px 0;
  color: var(--text-sub);
  font-size: 0.93rem;
  line-height: 1.6;
}

.wpcf7-list-item{
  margin-left: 0;
}

.wpcf7-list-item label{
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 0;
  font-weight: 400;
}

/* ---------- Submit Area ---------- */
.form-actions,
.actions,
.submit-wrap,
.btn-area,
.wpcf7-submit-wrap{
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

button,
input[type="submit"],
input[type="button"],
input[type="reset"],
.button,
.btn,
.wp-block-button__link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 6px 18px rgba(15, 76, 129, 0.18);
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
.button:hover,
.btn:hover,
.wp-block-button__link:hover{
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-1px);
}

button:active,
input[type="submit"]:active,
input[type="button"]:active,
input[type="reset"]:active,
.button:active,
.btn:active,
.wp-block-button__link:active{
  transform: translateY(0);
}

button:disabled,
input[type="submit"]:disabled{
  background: #bfc8d1;
  border-color: #bfc8d1;
  box-shadow: none;
  cursor: not-allowed;
}

/* ---------- Contact Form 7 ---------- */
.wpcf7{
  background: var(--surface);
}

.wpcf7 form{
  position: relative;
}

.wpcf7-spinner{
  vertical-align: middle;
}

.wpcf7-not-valid{
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.08) !important;
}

.wpcf7-not-valid-tip{
  margin-top: 6px;
  color: var(--danger);
  font-size: 0.84rem;
}

.wpcf7 form .wpcf7-response-output{
  margin: 24px 0 0;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  line-height: 1.6;
}

.wpcf7 form.sent .wpcf7-response-output{
  border: 1px solid #b7d8c2;
  background: #effaf3;
  color: #245c37;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output{
  border: 1px solid #efc1c1;
  background: #fff5f5;
  color: #8a1f1f;
}

/* ---------- Table-like sections if used ---------- */
table{
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 28px;
  background: #fff;
}

th, td{
  padding: 14px 16px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 0.94rem;
}

th{
  width: 28%;
  background: var(--surface-soft);
  color: var(--text);
  font-weight: 700;
}

/* ---------- Links ---------- */
a{
  color: var(--primary);
  text-decoration: none;
}

a:hover{
  text-decoration: underline;
}

/* ---------- Section spacing ---------- */
section + section,
.form-section + .form-section,
.block + .block{
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

/* ---------- Mobile ---------- */
@media (max-width: 767px){
  .page .entry-content{
    margin: 24px auto;
  }

  .page .entry-content > .wp-block-group,
  .page .entry-content > section,
  .page .entry-content > div,
  .page-content > .container,
  .site-main > .container,
  main > article,
  .contact-light,
  .contact-page,
  .contact-form-wrap,
  .wpcf7{
    padding: 28px 20px 24px;
    border-radius: 0;
  }

  h1{
    font-size: 1.75rem;
  }

  h2{
    font-size: 1.2rem;
  }

  button,
  input[type="submit"],
  input[type="button"],
  input[type="reset"],
  .button,
  .btn,
  .wp-block-button__link{
    width: 100%;
    min-width: 0;
  }
}
