/*
Theme Name: Quick Start Corporate
Theme URI: https://quickstart.co.jp/
Author: Quick Start株式会社
Description: Quick Start株式会社のServiceNow内製化・運用定着支援サイト用オリジナルテーマ。
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: quickstart
*/

:root {
  --ink: #16242a;
  --muted: #5d6a6f;
  --line: #d8e1e0;
  --paper: #fbfcfa;
  --teal: #126a68;
  --lime: #d9ef69;
  --amber: #e7b05f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.shell { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }

.site-header {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1280px, calc(100% - 48px));
  margin: auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 6px;
  color: #fff;
  background: var(--teal);
  font-size: 12px;
}
.brand-jp { margin-left: 4px; font-size: 11px; font-weight: 500; }
.site-nav { display: flex; gap: 26px; font-size: 13px; font-weight: 700; }
.site-nav a { color: #3e4b50; }
.site-nav a:hover, .text-link:hover { color: var(--teal); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 51px;
  padding: 12px 20px;
  border: 1px solid var(--teal);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  transition: .2s ease;
}
.button-primary { color: #fff; background: var(--teal); }
.button-primary:hover { background: #0b5554; transform: translateY(-1px); }
.header-cta { min-height: 40px; padding: 8px 14px; font-size: 12px; }

.hero { position: relative; min-height: 610px; overflow: hidden; background: #e9f0ee; }
.hero-image {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(251, 252, 250, 0.98) 0%,
      rgba(251, 252, 250, 0.89) 33%,
      rgba(251, 252, 250, 0.1) 70%
    ),
    url('https://quickstart.co.jp/wp-content/uploads/2026/07/exec-d211a80d-24c4-4755-b676-7a9fefab3057.png')
      center / cover no-repeat;
}
.hero-content { position: relative; padding-top: 115px; }
.eyebrow { margin: 0 0 14px; color: var(--teal); font-size: 12px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: 0; line-height: 1.3; }
h1 { max-width: 760px; margin-bottom: 25px; font-size: clamp(39px, 5.1vw, 68px); font-weight: 700; }
.hero-copy { max-width: 620px; margin-bottom: 32px; font-size: 16px; font-weight: 500; }
.hero-actions { display: flex; align-items: center; gap: 28px; }
.text-link { color: var(--teal); font-size: 14px; font-weight: 700; }


.section { padding-block: 108px; }
section[id] { scroll-margin-top: 96px; }
.section-heading { margin-bottom: 45px; }
.section-heading h2 { margin-bottom: 0; font-size: clamp(31px, 3.6vw, 48px); }
.split-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.split-heading > p { margin: 0; color: var(--muted); font-size: 14px; }

.pain { display: grid; grid-template-columns: .9fr 1.5fr; gap: 65px; align-items: center; }
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.pain-grid p { min-height: 158px; margin: 0; padding: 26px 20px; background: var(--paper); font-size: 14px; line-height: 1.8; }
.pain-grid strong { font-size: 16px; }

.dark-section { color: #ecf4f1; background: #1c3537; }
.dark-section .eyebrow { color: var(--lime); }
.approach-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 120px; }
.approach h2 { margin: 0; font-size: clamp(31px, 3.6vw, 48px); }
.approach-copy { color: #c8d8d5; font-size: 17px; }
.approach-copy p + p { margin-top: 26px; }

.service-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service-card { display: flex; min-height: 390px; flex-direction: column; padding: 30px; border: 1px solid var(--line); background: #fff; }
.service-card h3 { margin: 45px 0 19px; font-size: 23px; }
.service-card p { color: var(--muted); font-size: 14px; }
.card-number { color: var(--teal); font-size: 12px; font-weight: 700; }
.service-card a { margin-top: auto; color: var(--teal); font-size: 13px; font-weight: 700; }
.accent-card { border-color: #b9c884; background: #f5f9e9; }
.process-block { margin-top: 72px; padding: 38px; background: #eef5f3; }
.process-block h3 { margin: 0 0 24px; font-size: 28px; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.process-grid p { margin: 0; font-size: 13px; }
.process-grid b, .process-grid span { display: block; }
.process-grid b { margin-bottom: 8px; color: var(--teal); }
.process-grid span { color: var(--muted); }

.credentials { background: #edf5f2; }
.credential-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 120px; }
.credential-layout h2 { margin: 0; font-size: clamp(31px, 3.6vw, 48px); }
.experience { display: flex; align-items: center; gap: 17px; margin-bottom: 22px; }
.experience strong { color: var(--teal); font-size: 88px; line-height: .8; }
.experience span { font-size: 12px; line-height: 1.35; letter-spacing: .08em; text-transform: uppercase; }
.credential-details > p { max-width: 500px; color: #43575a; }
.credential-label { margin: 22px 0 8px !important; color: var(--ink) !important; font-size: 12px !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.qualifications { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.qualifications span { padding: 5px 11px; border: 1px solid #a7c2bd; border-radius: 20px; color: #315b59; font-size: 12px; font-weight: 700; }

.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.case-card { min-height: 330px; padding: 34px; background: #fff; border-top: 4px solid var(--teal); }
.case-card:nth-child(2) { border-top-color: var(--amber); }
.case-tag { color: var(--teal); font-size: 12px; font-weight: 700; }
.case-card:nth-child(2) .case-tag { color: #9b6522; }
.case-card h3 { margin: 24px 0 19px; font-size: 27px; }
.case-card > p:not(.case-tag) { color: var(--muted); font-size: 14px; }
.case-card span { display: inline-block; margin-top: 13px; color: #617275; font-size: 12px; font-weight: 700; }

.about { display: grid; grid-template-columns: .84fr 1.16fr; align-items: stretch; padding-block: 108px; }
.about-image {
  min-height: 430px;
  background-image: url('https://quickstart.co.jp/wp-content/uploads/2026/07/7966bae78213db11914ad7af893f8431-1.png');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}
.about-content { padding: 62px 70px; background: #fff; }
.about-content h2 { margin-bottom: 27px; font-size: clamp(28px, 3vw, 40px); }
.about-content p:not(.eyebrow) { color: var(--muted); font-size: 14px; }

.consultation { color: #fff; background: var(--teal); }
.consultation-layout { display: flex; justify-content: space-between; gap: 60px; padding-block: 82px; }
.consultation .eyebrow { color: var(--lime); }
.consultation h2 { margin-bottom: 16px; font-size: clamp(29px, 3.4vw, 44px); }
.consultation p:not(.eyebrow) { margin-bottom: 0; color: #d5e6e2; font-size: 14px; }
.consultation-actions { display: flex; min-width: 282px; flex-direction: column; justify-content: center; gap: 10px; }
.consultation .button-primary { color: var(--teal); background: var(--lime); border-color: var(--lime); }
.consultation .button-primary:hover { background: #e6f695; }
.consultation-mail { color: #fff; }
.consultation-mail:hover { color: var(--lime); }
.consultation-actions small { color: #c4d8d4; font-size: 11px; text-align: center; }

.site-footer { padding-top: 67px; color: #c7d3d1; background: #172628; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 50px; }
.footer-brand { color: #fff; }
.footer-grid p { margin: 18px 0 0; font-size: 13px; }
.footer-grid a:not(.brand) { display: block; width: max-content; max-width: 100%; margin: 10px 0; font-size: 13px; }
.footer-grid a:not(.brand):hover { color: var(--lime); }
.footer-label { color: #f3f7f6; font-weight: 700; }
.copyright { margin-top: 55px; padding-block: 17px; border-top: 1px solid #3b4b4d; color: #829190; font-size: 11px; }

/* CTA */
.button {
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.4;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.hero-actions .button {
  width: auto;
  min-width: 260px;
}

.hero-actions .text-link {
  display: inline-block;
  width: auto;
  flex-shrink: 0;
  white-space: nowrap;
}

/* 2行見出し */
.fixed-heading > span {
  display: block;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .shell,
  .site-header {
    width: min(100% - 32px, 1160px);
  }

  .site-header {
    height: 68px;
  }

  .site-nav,
  .header-cta {
    display: none;
  }

  .hero {
    min-height: 630px;
  }

  .hero-image {
    background:
      linear-gradient(
        180deg,
        rgba(251, 252, 250, 0.98) 0%,
        rgba(251, 252, 250, 0.88) 52%,
        rgba(251, 252, 250, 0.2) 100%
      ),
      url('https://quickstart.co.jp/wp-content/uploads/2026/07/exec-d211a80d-24c4-4755-b676-7a9fefab3057.png')
        64% center / cover no-repeat;
  }

  .hero-content {
    padding-top: 73px;
  }

  .hero-copy {
    font-size: 14px;
  }

  .hero-copy br {
    display: none;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 19px;
  }

  .hero-actions .button {
    width: 100%;
    min-width: 0;
  }

  .hero-actions .text-link {
    width: auto;
  }

  .section {
    padding-block: 70px;
  }

  .pain,
  .approach-layout,
  .credential-layout,
  .about {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .pain-grid,
  .service-list {
    grid-template-columns: 1fr;
  }

  .pain-grid p {
    min-height: auto;
  }

  .split-heading,
  .consultation-layout {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .process-grid {
    grid-template-columns: 1fr 1fr;
  }

  .process-block {
    margin-top: 40px;
  }

  .case-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 280px;
  }

  .credential-layout {
    gap: 30px;
  }

  .about {
    padding-block: 70px;
  }

  .about-image {
    min-height: 300px;
  }

  .about-content {
    padding: 42px 28px;
  }

  .consultation-layout {
    padding-block: 64px;
  }

  .consultation-actions {
    width: 100%;
    min-width: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  h1 {
    font-size: 42px;
  }

  .section-heading h2,
  .approach h2,
  .credential-layout h2 {
    font-size: 34px;
  }
}

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

  h1 {
    font-size: 36px;
  }

  .fixed-heading > span {
    white-space: normal;
  }
}

/* Contact Form 7 */
.contact-form-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px;
  background: #fff;
  border: 1px solid var(--line);
}

.contact-form .form-field {
  margin-bottom: 26px;
}

.contact-form label {
  display: block;
  margin-bottom: 9px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.contact-form .required {
  display: inline-block;
  margin-left: 7px;
  padding: 2px 7px;
  border-radius: 3px;
  color: #fff;
  background: var(--teal);
  font-size: 10px;
  font-weight: 700;
  vertical-align: 1px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #cbd7d5;
  border-radius: 4px;
  color: var(--ink);
  background: #fbfcfa;
  font: inherit;
  font-size: 15px;
  line-height: 1.6;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form input[type="tel"]:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(18, 106, 104, 0.12);
}

.contact-form textarea {
  min-height: 190px;
  resize: vertical;
}

.contact-form select {
  appearance: auto;
}

.contact-form .form-privacy {
  margin: 8px 0 30px;
  color: var(--muted);
  font-size: 13px;
}

.contact-form .form-privacy a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-form .wpcf7-list-item {
  margin: 0;
}

.contact-form input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin-right: 8px;
  vertical-align: -3px;
  accent-color: var(--teal);
}

.contact-form .form-submit {
  margin-top: 10px;
}

.contact-form input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  width: 100%;
  padding: 14px 24px;
  border: 1px solid var(--teal);
  border-radius: 4px;
  color: #fff;
  background: var(--teal);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.contact-form input[type="submit"]:hover {
  background: #0b5554;
  transform: translateY(-1px);
}

.contact-form input[type="submit"]:disabled {
  cursor: not-allowed;
  opacity: 0.65;
  transform: none;
}

/* 入力エラー */
.contact-form .wpcf7-not-valid {
  border-color: #b94a48 !important;
}

.contact-form .wpcf7-not-valid-tip {
  margin-top: 7px;
  color: #a33c3a;
  font-size: 12px;
}

/* 送信結果メッセージ */
.contact-form-wrap .wpcf7 form .wpcf7-response-output {
  margin: 24px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 13px;
}

.contact-form-wrap .wpcf7 form.sent .wpcf7-response-output {
  border-color: var(--teal);
  background: #edf5f2;
}

.contact-form-wrap .wpcf7 form.invalid .wpcf7-response-output,
.contact-form-wrap .wpcf7 form.failed .wpcf7-response-output {
  border-color: #b94a48;
  background: #fff5f5;
}

.contact-form .wpcf7-spinner {
  margin: 14px auto 0;
  display: block;
}

@media (max-width: 640px) {
  .contact-form-wrap {
    padding: 28px 20px;
  }

  .contact-form input[type="text"],
  .contact-form input[type="email"],
  .contact-form input[type="tel"],
  .contact-form select,
  .contact-form textarea {
    font-size: 16px;
  }
}
