/*
Theme Name: sync
Theme URI: https://syncinc.jp/
Author: 株式会社sync
Description: 株式会社sync コーポレートサイト用オリジナルテーマ
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: sync
*/

:root {
  --accent: #C2410C;          /* 明るい背景上のオレンジ（文字・番号） */
  --accent-bright: #F26B1D;   /* ネイビー上のオレンジ（小見出し・図形） */
  --cta: #CF4510;             /* ボタン（白文字） */
  --ink: #0F1E3D;
  --ink-2: #3A4560;
  --ink-3: #56617A;
  --ground: #F3F4F7;
  --white: #FFFFFF;
  --line: #DDE1EA;
  --line-2: #C5CBD8;
  --navy: #0F1E3D;
  --navy-line: #23345A;
  --dark: #0F1E3D;
  --dark-2: #0A1530;
  --on-dark: #C9D1E3;
  --accent-on-dark: #F26B1D;
  --radius: 16px;
  --font-ja: 'Zen Kaku Gothic New', system-ui, sans-serif;
  --font-en: 'Space Grotesk', 'Zen Kaku Gothic New', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-ja);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }
a:hover { color: var(--accent); }
h1, h2, h3, p { margin: 0; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { max-width: 1240px; margin: 0 auto; padding-inline: 32px; }
.section { padding-block: 120px; }
.section--white { background: var(--white); }
.section--dark { background: var(--dark); color: var(--white); }
.stack { display: flex; flex-direction: column; }
.wrap { display: flex; flex-wrap: wrap; }

.eyebrow { font-family: var(--font-en); font-size: 14px; font-weight: 500; letter-spacing: .16em; color: var(--accent); }
.section--dark .eyebrow { color: var(--accent-on-dark); }
.h2 { font-size: clamp(28px, 3.4vw, 44px); font-weight: 900; line-height: 1.45; }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 56px; }
.section-head--row { flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.muted { color: var(--ink-2); }
.text-link { font-weight: 700; font-size: 15px; min-height: 44px; display: inline-flex; align-items: center; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 14px 32px; border-radius: 999px; font-weight: 700; text-decoration: none; font-family: inherit; font-size: 16px; border: 1.5px solid transparent; cursor: pointer; }
.btn--primary { background: var(--cta); color: var(--white); }
.btn--primary:hover { color: var(--white); filter: brightness(1.08); }
.btn--outline-light { border-color: var(--white); color: var(--white); background: transparent; }
.btn--outline-light:hover { color: var(--accent-bright); border-color: var(--accent-bright); }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--dark { background: var(--cta); color: var(--white); min-height: 44px; padding: 10px 22px; font-size: 14px; }
.btn--dark:hover { color: var(--white); filter: brightness(1.08); }

/* Header */
.site-header { border-bottom: 1px solid var(--navy-line); background: var(--navy); position: relative; z-index: 10; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); }
.logo:hover { color: var(--white); }
.logo__mark { width: 40px; height: 24px; flex: none; }
.logo__text { font-family: var(--font-en); font-weight: 700; font-size: 26px; letter-spacing: -.02em; line-height: 1; }
.gnav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 500; }
.gnav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 28px; }
.gnav a { text-decoration: none; color: var(--white); }
.gnav a:hover { color: var(--accent-bright); }
.gnav .btn--dark:hover { color: var(--white); }
.nav-toggle { display: none; background: none; border: 1px solid var(--white); border-radius: 999px; min-height: 44px; min-width: 44px; padding: 0 14px; font-family: inherit; font-size: 14px; font-weight: 700; color: var(--white); cursor: pointer; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .gnav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--navy); border-bottom: 1px solid var(--navy-line); flex-direction: column; align-items: stretch; padding: 16px 32px 24px; gap: 16px; }
  .gnav.is-open { display: flex; }
  .gnav ul { flex-direction: column; gap: 0; }
  .gnav ul a { display: block; padding: 12px 0; border-bottom: 1px solid var(--navy-line); }
  .gnav .btn--dark { align-self: flex-start; }
}

/* Hero */
.hero { padding-block: 104px 120px; background: var(--navy); color: var(--white); }
.hero .eyebrow { color: var(--accent-bright); }
.hero__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 64px; }
.hero__body { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.hero__title { font-size: clamp(40px, 5.6vw, 76px); font-weight: 900; line-height: 1.3; letter-spacing: -.01em; color: var(--white); }
.hero__lead { font-size: 18px; line-height: 2; color: var(--on-dark); max-width: 640px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; }
.hero__visual { flex: 1 1 360px; min-width: 0; display: flex; justify-content: center; }
.hero__visual svg { width: 100%; max-width: 440px; height: auto; }

/* Facts */
.facts { background: var(--dark); color: var(--white); padding-block: 48px; border-top: 1px solid var(--navy-line); }
.facts__inner { display: flex; flex-wrap: wrap; gap: 32px 64px; }
.fact { flex: 1 1 220px; display: flex; flex-direction: column; gap: 4px; }
.fact__num { font-family: var(--font-en); font-size: 48px; font-weight: 700; line-height: 1.1; }
.fact__num small { font-size: 20px; margin-left: 4px; }
.fact__title { font-size: 28px; font-weight: 700; line-height: 1.5; }
.fact__note { font-size: 14px; color: var(--on-dark); }

/* Concept */
.concept__top { display: flex; flex-wrap: wrap; gap: 32px 64px; margin-bottom: 64px; }
.concept__head { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.concept__text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; padding-top: 36px; color: var(--ink-2); line-height: 2; }
.steps3 { display: flex; flex-wrap: wrap; gap: 16px; }
.step3 { flex: 1 1 260px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 10px; }
.step3__label { font-family: var(--font-en); font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--ink-3); }
.step3 h3 { font-size: 21px; font-weight: 700; line-height: 1.5; }
.step3 p { font-size: 14px; color: var(--ink-2); }
.step3--accent { background: var(--accent); border-color: var(--accent); color: var(--white); }
.step3--accent .step3__label, .step3--accent p { color: var(--white); }

/* Service */
.services { display: flex; flex-wrap: wrap; gap: 24px; }
.service { flex: 1 1 480px; background: var(--ground); border-radius: var(--radius); padding: 40px 36px; display: flex; flex-direction: column; gap: 16px; }
.service__num { font-family: var(--font-en); font-size: 14px; font-weight: 700; color: var(--accent); }
.service h3 { font-size: 24px; font-weight: 700; line-height: 1.5; }
.service p { font-size: 15px; color: var(--ink-2); }
.service .service__tags { font-size: 13px; color: var(--ink-3); }

/* Works */
.works { display: flex; flex-wrap: wrap; gap: 32px; }
.work { flex: 1 1 320px; display: flex; flex-direction: column; gap: 16px; text-decoration: none; color: var(--ink); }
.work__thumb { aspect-ratio: 4 / 3; border-radius: 12px; background: #DCE2F2; overflow: hidden; display: flex; align-items: center; justify-content: center; color: #3A4670; font-size: 14px; font-weight: 500; }
.work__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.work:hover .work__thumb img { transform: scale(1.03); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 12px; font-weight: 500; border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 12px; }
.work h3 { font-size: 20px; font-weight: 700; line-height: 1.5; }
.work p { font-size: 14px; color: var(--ink-2); }
.empty { color: var(--ink-3); font-size: 15px; }

/* Why */
.why { display: flex; flex-wrap: wrap; gap: 64px; }
.why__head { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.why__list { flex: 999 1 560px; min-width: 0; }
.why__item { display: flex; flex-wrap: wrap; gap: 8px 32px; padding-block: 32px; border-top: 1px solid var(--line-2); }
.why__item:last-child { border-bottom: 1px solid var(--line-2); }
.why__num { flex: 0 0 56px; font-family: var(--font-en); font-size: 32px; font-weight: 700; line-height: 1.2; color: var(--accent); }
.why__body { flex: 1 1 320px; display: flex; flex-direction: column; gap: 8px; }
.why__body h3 { font-size: 22px; font-weight: 700; line-height: 1.5; }
.why__body p { font-size: 15px; color: var(--ink-2); }

/* Flow */
.flow { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 16px; }
.flow li { flex: 1 1 200px; border-top: 3px solid var(--accent); padding-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.flow__step { font-family: var(--font-en); font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--ink-3); }
.flow h3 { font-size: 19px; font-weight: 700; }
.flow p { font-size: 14px; color: var(--ink-2); }

/* Price */
.prices { display: flex; flex-wrap: wrap; gap: 24px; margin-bottom: 24px; }
.price { flex: 1 1 280px; background: var(--ground); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 32px; display: flex; flex-direction: column; gap: 12px; }
.price--featured { border: 2px solid var(--accent); }
.price__type { font-size: 13px; font-weight: 700; color: var(--ink-3); }
.price--featured .price__type { color: var(--accent); }
.price h3 { font-size: 20px; font-weight: 700; }
.price__amount { font-family: var(--font-en); font-size: 32px; font-weight: 700; line-height: 1.3; }
.price__note { font-size: 14px; color: var(--ink-2); }
.note { font-size: 14px; color: var(--ink-3); }

/* News */
.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.news-list li { border-bottom: 1px solid var(--line-2); }
.news-list a { display: flex; flex-wrap: wrap; gap: 4px 32px; padding-block: 20px; text-decoration: none; }
.news-list time { font-family: var(--font-en); font-size: 14px; color: var(--ink-3); flex: 0 0 120px; }
.news-list span { flex: 1 1 300px; font-weight: 500; }

/* Message */
.message { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.message__photo { flex: 0 1 320px; aspect-ratio: 1 / 1; border-radius: var(--radius); background: #E3E7EF; overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--ink-3); font-size: 14px; }
.message__photo img { width: 100%; height: 100%; object-fit: cover; }
.message__body { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.message__title { font-size: clamp(24px, 2.6vw, 34px); font-weight: 900; line-height: 1.5; }
.message__body p { font-size: 15px; color: var(--ink-2); }
.message__sign { font-weight: 700; color: var(--ink) !important; }

/* Contact */
.contact { display: flex; flex-wrap: wrap; gap: 64px; }
.contact__head { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.contact__head p { font-size: 15px; color: var(--on-dark); }
.contact__form { flex: 999 1 520px; min-width: 0; }
.contact__form label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.contact__form p { margin: 0 0 20px; }
.contact__form input[type="text"],
.contact__form input[type="email"],
.contact__form input[type="tel"],
.contact__form select,
.contact__form textarea {
  width: 100%; min-height: 48px; border-radius: 8px; border: 1px solid #3A4C75; background: #1A2B50; color: var(--white);
  padding: 10px 16px; font-size: 16px; font-family: inherit;
}
.contact__form textarea { min-height: 160px; resize: vertical; }
.contact__form input[type="submit"], .contact__form button[type="submit"] {
  min-height: 52px; padding: 0 40px; border: none; border-radius: 999px; background: var(--cta); color: var(--white); font-size: 16px; font-weight: 700; font-family: inherit; cursor: pointer;
}
.contact__form .wpcf7-not-valid-tip { color: #FFB4A8; font-size: 13px; }
.contact__form .wpcf7-response-output { border-radius: 8px; color: var(--white); }
.contact__placeholder { border: 1px dashed #3A4C75; border-radius: 12px; padding: 32px; color: var(--on-dark); font-size: 14px; }

/* Footer */
.site-footer { background: var(--dark-2); color: var(--on-dark); padding-block: 56px 40px; }
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; margin-bottom: 40px; }
.site-footer .logo { color: var(--white); margin-bottom: 12px; }
.site-footer .logo__text { font-size: 24px; }
.site-footer p { font-size: 14px; }
.fnav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 32px; font-size: 14px; }
.fnav a, .site-footer a { color: var(--on-dark); text-decoration: none; }
.fnav a:hover { color: var(--white); }
.copyright { font-family: var(--font-en); font-size: 13px; color: #8E9AB5; }

/* Sub pages */
.page-hero { padding-block: 96px 64px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(32px, 4.4vw, 56px); font-weight: 900; line-height: 1.35; margin-top: 12px; }
.entry { max-width: 800px; margin: 0 auto; padding-block: 72px 120px; }
.entry__meta { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-bottom: 32px; color: var(--ink-3); font-size: 14px; }
.entry__thumb { border-radius: var(--radius); overflow: hidden; margin-bottom: 48px; }
.entry-content { font-size: 16px; line-height: 2; }
.entry-content > * + * { margin-top: 1.4em; }
.entry-content h2 { font-size: 26px; font-weight: 700; line-height: 1.5; margin-top: 2.4em; padding-bottom: 12px; border-bottom: 1px solid var(--line-2); }
.entry-content h3 { font-size: 20px; font-weight: 700; margin-top: 2em; }
.entry-content a { color: var(--accent); }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content img { border-radius: 12px; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { border: 1px solid var(--line-2); padding: 12px 16px; text-align: left; vertical-align: top; }
.entry-content th { background: var(--white); width: 30%; }
.back { margin-top: 64px; }
.pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 64px; }
.pagination .page-numbers { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-2); border-radius: 999px; padding: 0 14px; text-decoration: none; }
.pagination .current { background: var(--ink); color: var(--white); border-color: var(--ink); }

@media (max-width: 600px) {
  .container { padding-inline: 20px; }
  .section { padding-block: 80px; }
  .hero { padding-block: 64px 80px; }
  .service, .price, .step3 { padding: 28px 24px; }
}
