/*
Theme Name: U HOPE BUSINESS PARTNER
Author: U HOPE BUSINESS PARTNER
Description: 小規模事業者の外部ネット担当会社向け公式サイトテーマ。ホーム、サービス、料金、代表紹介、お問い合わせの固定ページ運用に対応。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: uhope-business-partner
*/

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #60a5fa;
  --text: #1f2937;
  --muted: #667085;
  --line: #e5e7eb;
  --soft: #f8fafc;
  --white: #ffffff;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Hiragino Sans", Meiryo, sans-serif;
  line-height: 1.7;
  background: var(--white);
}

body.admin-bar .site-header {
  top: 32px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(1120px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: grid;
  gap: 0;
  font-weight: 800;
  letter-spacing: 0;
}

.brand span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #344054;
  font-size: 15px;
  font-weight: 600;
}

.nav-links a[aria-current="page"],
.current-menu-item > a {
  color: var(--primary);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--text);
  font-size: 22px;
}

.button,
.wp-block-button__link,
input[type="submit"] {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover {
  transform: translateY(-1px);
}

.button.primary,
.wp-block-button__link,
input[type="submit"] {
  color: var(--white);
  background: var(--primary);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
}

.button.primary:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover {
  background: var(--primary-dark);
}

.button.secondary {
  color: var(--primary);
  border-color: #bfdbfe;
  background: #eff6ff;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 88px 0;
}

.section.soft {
  background: var(--soft);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 800;
}

.section-title {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.18;
  letter-spacing: 0;
}

.section-lead {
  max-width: 720px;
  margin: 0 0 34px;
  color: var(--muted);
  font-size: 18px;
}

.hero {
  position: relative;
  min-height: calc(100svh - 72px);
  padding: 72px 0 48px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #f9fbff;
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.92) 36%, rgba(255,255,255,0.48) 63%, rgba(255,255,255,0.18) 100%),
    var(--hero-image) center right / cover no-repeat;
}

.hero-inner {
  position: relative;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-copy {
  max-width: 650px;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero p {
  max-width: 600px;
  margin: 0 0 30px;
  color: #475467;
  font-size: clamp(17px, 2vw, 21px);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.trust-strip {
  position: relative;
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-strip span {
  padding: 8px 12px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 8px;
  color: #1d4ed8;
  background: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  font-weight: 700;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 24px;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}

.card.featured {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: var(--shadow);
}

.card h2,
.card h3 {
  margin: 0 0 8px;
  font-size: 21px;
  line-height: 1.35;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.check-list,
.plain-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li,
.plain-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.check-list li::before {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 8px;
  content: "✓";
  color: var(--white);
  background: var(--primary);
  font-size: 13px;
  font-weight: 900;
  line-height: 22px;
  text-align: center;
}

.plain-list li::before {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 12px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.statement {
  padding: 34px;
  border-left: 5px solid var(--primary);
  background: #f8fbff;
}

.statement strong {
  display: block;
  margin-bottom: 8px;
  font-size: 24px;
}

.service-number {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 8px;
  color: var(--primary);
  background: #eff6ff;
  font-weight: 900;
}

.page-hero {
  padding: 74px 0 56px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.page-hero h1 {
  max-width: 780px;
  margin: 0 0 18px;
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.12;
}

.page-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.price {
  margin: 18px 0 6px;
  color: var(--text);
  font-size: 34px;
  font-weight: 900;
  line-height: 1.1;
}

.profile-box {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 34px;
  align-items: center;
}

.portrait {
  min-height: 320px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  background: linear-gradient(135deg, #2563eb 0%, #0f766e 100%);
  font-size: 64px;
  font-weight: 900;
}

.contact-band {
  padding: 72px 0;
  color: var(--white);
  background: #0f172a;
}

.contact-band .container {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: center;
}

.contact-band p {
  max-width: 620px;
  margin: 0;
  color: #cbd5e1;
}

.contact-form,
.wpcf7-form {
  display: grid;
  gap: 16px;
}

.field,
.wpcf7-form p {
  display: grid;
  gap: 7px;
  margin: 0;
}

.field label,
.wpcf7-form label {
  font-size: 14px;
  font-weight: 800;
}

.field input,
.field textarea,
.wpcf7-form input,
.wpcf7-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font: inherit;
  background: var(--white);
}

.field textarea,
.wpcf7-form textarea {
  min-height: 170px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
  outline: 3px solid rgba(96, 165, 250, 0.35);
  border-color: var(--primary);
}

.form-note {
  color: var(--muted);
  font-size: 14px;
}

.notice {
  border-radius: 8px;
  padding: 14px 16px;
  font-weight: 700;
}

.notice.error {
  border: 1px solid #fecaca;
  color: #991b1b;
  background: #fef2f2;
}

.site-footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--white);
}

.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
}

.entry-content {
  padding: 72px 0;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 820px) {
  body.admin-bar .site-header {
    top: 46px;
  }

  .menu-button {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    inset: 72px 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 16px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--white);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 13px 2px;
  }

  .nav-links .button {
    margin-top: 8px;
  }

  .hero {
    min-height: auto;
    padding: 64px 0 40px;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.92) 52%, rgba(255,255,255,0.82) 100%),
      var(--hero-image) center / cover no-repeat;
  }

  .section {
    padding: 62px 0;
  }

  .grid.three,
  .grid.two,
  .split,
  .profile-box {
    grid-template-columns: 1fr;
  }

  .contact-band .container {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .cta-row {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .nav,
  .container,
  .hero-inner,
  .footer-inner {
    width: min(100% - 24px, 1120px);
  }

  .hero h1 {
    font-size: 40px;
  }

  .section-title {
    font-size: 30px;
  }

  .card,
  .statement {
    padding: 20px;
  }
}
