/* ===========================================================
   AI Booth Studio — Inner page templates
   （page-company, page-service, etc.）
   =========================================================== */

.svc {
  display: block;
  width: 100%;
  background: var(--c-bg);
}


/* ===========================================================
   Page hero band — slim, refined
   =========================================================== */
.svc-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--c-ink);
  padding: clamp(64px, 9vw, 120px) 0 clamp(56px, 8vw, 100px);
}
.svc-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 480px at 25% 30%, rgba(30, 58, 255, .35), transparent 60%),
    radial-gradient(700px 420px at 80% 70%, rgba(106, 130, 255, .18), transparent 65%),
    linear-gradient(180deg, rgba(14, 20, 36, .2) 0%, rgba(14, 20, 36, .55) 100%);
  pointer-events: none;
}

.svc-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: clamp(20px, 4vw, 40px);
  text-align: center;
}

.svc-hero__sub {
  margin: 0 0 16px;
  font-family: var(--ff-en);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(191, 200, 255, .85);
  /* 元のハイフン記号を非表示にしてCSSで装飾 */
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.svc-hero__sub::before,
.svc-hero__sub::after {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: rgba(191, 200, 255, .6);
}

.svc-hero__title {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.06em;
  color: #fff;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}


/* ===========================================================
   Container helper
   =========================================================== */
.svc-container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: clamp(20px, 4vw, 40px);
}


/* ===========================================================
   Lead / Intro section
   =========================================================== */
.svc-lead {
  padding: clamp(56px, 7vw, 96px) 0;
  background: var(--c-bg);
}

.svc-lead__text {
  margin: 0 auto;
  max-width: 720px;
  text-align: center;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 2;
  letter-spacing: 0.04em;
  color: var(--c-ink-2);
}


/* ===========================================================
   Company info table (#table01)
   =========================================================== */
#table01 {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-2);
}

#table01 tr + tr th,
#table01 tr + tr td {
  border-top: 1px solid var(--c-line);
}

#table01 th,
#table01 td {
  padding: 20px 24px;
  font-size: 15px;
  line-height: 1.85;
  text-align: left;
  vertical-align: top;
  letter-spacing: 0.02em;
}

#table01 th {
  width: 200px;
  background: var(--c-bg-soft);
  color: var(--c-ink);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
}

#table01 td {
  color: var(--c-ink-2);
}

@media (max-width: 720px) {
  #table01 {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  #table01,
  #table01 tbody,
  #table01 tr,
  #table01 th,
  #table01 td {
    display: block;
    width: auto;
  }
  #table01 tr {
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--r-md);
    margin-bottom: 12px;
    padding: 4px 0;
    box-shadow: var(--sh-1);
  }
  #table01 tr + tr th,
  #table01 tr + tr td {
    border-top: 0;
  }
  #table01 th {
    background: transparent;
    color: var(--c-brand);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 14px 18px 4px;
  }
  #table01 td {
    padding: 0 18px 16px;
    font-size: 15px;
  }
}


/* ===========================================================
   Map embed
   =========================================================== */
.gmap {
  margin: clamp(40px, 5vw, 64px) auto 0;
  max-width: 820px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--c-line);
  box-shadow: var(--sh-2);
}
.gmap iframe {
  display: block;
  width: 100%;
  height: clamp(280px, 40vw, 420px);
  border: 0;
}


/* ===========================================================
   Service grid (svc-cards)
   =========================================================== */
.svc-cards {
  padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 112px);
  background: var(--c-bg);
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 2.4vw, 28px);
}

.svc-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-1);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.svc-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-3);
  border-color: var(--c-brand-line);
}

.svc-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--c-bg-tint);
}
.svc-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--t-base);
}
.svc-card:hover .svc-card__media img {
  transform: scale(1.04);
}

.svc-card__body {
  padding: clamp(20px, 2vw, 24px) clamp(18px, 1.8vw, 22px) clamp(22px, 2.2vw, 26px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  flex: 1;
}

.svc-card__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: var(--c-brand-soft);
  margin-bottom: 4px;
}
.svc-card__icon img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.svc-card__title {
  margin: 0;
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--c-ink);
  line-height: 1.45;
}

.svc-card__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.85;
  color: var(--c-ink-2);
  letter-spacing: 0.02em;
  flex: 1;
}

.svc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 8px;
  padding: 10px 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--c-brand);
  text-decoration: none;
  border-top: 1px solid var(--c-line);
  width: 100%;
  transition: color var(--t-fast);
}
.svc-btn:hover {
  color: var(--c-brand-deep);
  opacity: 1;
}
.svc-btn__arrow {
  font-size: 18px;
  line-height: 1;
  transition: transform var(--t-fast);
}
.svc-btn:hover .svc-btn__arrow {
  transform: translateX(4px);
}

/* Responsive */
@media (max-width: 1024px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .svc-grid { grid-template-columns: 1fr; }
}


/* ===========================================================
   Contact Form 7 (.cf7-*)
   =========================================================== */
.cf7-form {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 40px);
  background: var(--c-bg);
}

.cf7-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 2.6vw, 28px);
}

.cf7-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cf7-field--full {
  grid-column: 1 / -1;
}

/* Label + badge ------------------------------------------ */
.cf7-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--c-ink);
  line-height: 1.5;
}

.cf7-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: var(--r-sm);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.4;
  color: #fff;
  background: var(--c-brand);
}

/* Inputs -------------------------------------------------- */
.cf7-input,
.cf7-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r-md);
  background: #fff;
  font-family: var(--ff);
  font-size: 15px;
  line-height: 1.6;
  color: var(--c-ink);
  letter-spacing: 0.02em;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
  -webkit-appearance: none;
  appearance: none;
}

.cf7-input::placeholder,
.cf7-textarea::placeholder {
  color: var(--c-ink-3);
  opacity: 0.7;
}

.cf7-input:hover,
.cf7-textarea:hover {
  border-color: var(--c-brand-line);
}

.cf7-input:focus,
.cf7-textarea:focus {
  outline: none;
  border-color: var(--c-brand);
  box-shadow: 0 0 0 4px rgba(30, 58, 255, 0.12);
  background: #fff;
}

.cf7-textarea {
  min-height: 180px;
  resize: vertical;
}

/* CF7 wraps inputs in <span class="wpcf7-form-control-wrap"> */
.cf7-form .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

/* Validation error styling */
.cf7-form .wpcf7-not-valid-tip {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #d23a3a;
}
.cf7-input.wpcf7-not-valid,
.cf7-textarea.wpcf7-not-valid {
  border-color: #d23a3a;
}
.cf7-form .wpcf7-response-output {
  margin: 24px 0 0;
  padding: 14px 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--c-line);
  font-size: 14px;
  line-height: 1.7;
  background: var(--c-bg-soft);
}
.cf7-form .wpcf7 form.invalid .wpcf7-response-output,
.cf7-form .wpcf7 form.unaccepted .wpcf7-response-output {
  border-color: #d23a3a;
  background: rgba(210, 58, 58, 0.06);
  color: #8a2727;
}
.cf7-form .wpcf7 form.sent .wpcf7-response-output {
  border-color: var(--c-brand);
  background: var(--c-brand-soft);
  color: var(--c-ink);
}

/* Checkbox group ----------------------------------------- */
.cf7-check {
  margin-top: 4px;
}
.cf7-check .wpcf7-list-item {
  display: inline-block;
  margin: 0 10px 10px 0;
}
.cf7-check .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: #fff;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--c-ink);
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast);
  user-select: none;
}
.cf7-check .wpcf7-list-item label:hover {
  border-color: var(--c-brand-line);
  background: var(--c-brand-soft);
}
.cf7-check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--c-line-strong);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.cf7-check input[type="checkbox"]:hover {
  border-color: var(--c-brand);
}
.cf7-check input[type="checkbox"]:checked {
  background: var(--c-brand);
  border-color: var(--c-brand);
}
.cf7-check input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 6px;
  height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}
.cf7-check .wpcf7-list-item input[type="checkbox"]:checked + .wpcf7-list-item-label,
.cf7-check label:has(input[type="checkbox"]:checked) {
  border-color: var(--c-brand);
  background: var(--c-brand-soft);
  color: var(--c-brand);
}

/* Help text ---------------------------------------------- */
.cf7-help {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--c-ink-3);
  letter-spacing: 0.02em;
}

/* Actions / Submit --------------------------------------- */
.cf7-actions {
  margin-top: clamp(8px, 2vw, 16px);
  text-align: center;
  align-items: center;
}

.cf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(360px, 100%);
  height: 60px;
  padding: 0 36px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--c-brand);
  color: #fff;
  font-family: var(--ff);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: var(--sh-brand);
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  -webkit-appearance: none;
  appearance: none;
}
.cf7-submit:hover {
  background: var(--c-brand-deep);
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(30, 58, 255, .24);
}
.cf7-submit:active {
  transform: translateY(0);
}
.cf7-submit:disabled,
.cf7-submit.wpcf7-submitting {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

/* CF7 loading spinner */
.cf7-form .wpcf7-spinner {
  margin-left: 12px;
}

.cf7-privacy {
  margin: 16px 0 0;
  font-size: 12px;
  line-height: 1.8;
  color: var(--c-ink-3);
  text-align: center;
  letter-spacing: 0.02em;
}

/* Responsive --------------------------------------------- */
@media (max-width: 640px) {
  .cf7-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .cf7-submit {
    width: 100%;
    min-width: 0;
  }
}
