/*
Theme Name: SFS Corporate Complete
Theme URI: https://sfs-inc.jp/
Author: OpenAI
Author URI: https://openai.com/
Description: 合同会社SFS向けの完成版コーポレートテーマ。トップページ、固定ページ、投稿、アーカイブ、CTA導線まで一式を実装。
Version: 1.1.0
Text Domain: sfs-corporate-complete
*/

:root {
  --bg: #07101f;
  --bg-2: #0d1830;
  --bg-3: #122443;
  --surface: #ffffff;
  --surface-2: #f4f7fb;
  --surface-3: #eef3f9;
  --text: #0f1f33;
  --text-2: #5d6979;
  --line: #d7e1ee;
  --line-strong: #b8c6da;
  --primary: #1756e8;
  --primary-dark: #0d3ba9;
  --accent: #16b89a;
  --accent-soft: rgba(22, 184, 154, 0.12);
  --danger: #d74b4b;
  --shadow-lg: 0 24px 64px rgba(7, 16, 31, 0.14);
  --shadow-md: 0 16px 40px rgba(7, 16, 31, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1180px;
}

*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--surface-2);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
body.admin-bar .site-header { top: 32px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.2em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.2rem; }
strong { font-weight: 800; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
}
.skip-link:focus {
  left: 8px;
  z-index: 9999;
  background: #fff;
  padding: 10px 12px;
  border-radius: 8px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(215, 225, 238, 0.92);
}
.header-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  letter-spacing: 0.08em;
  box-shadow: var(--shadow-md);
}
.custom-logo-link img { max-height: 42px; width: auto; }
.brand-text { min-width: 0; }
.brand-text strong {
  display: block;
  font-size: 1rem;
  line-height: 1.25;
}
.brand-text span {
  display: block;
  color: var(--text-2);
  font-size: 0.82rem;
}

.main-nav .menu,
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  font-size: 0.95rem;
  color: var(--text-2);
  font-weight: 700;
}
.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a { color: var(--primary); }

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: .2s ease;
}
.header-cta {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.header-cta:hover { background: var(--primary-dark); transform: translateY(-1px); }

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(22,184,154,.25), transparent 26%),
    radial-gradient(circle at left bottom, rgba(23,86,232,.22), transparent 34%),
    linear-gradient(135deg, var(--bg) 0%, var(--bg-2) 52%, var(--bg-3) 100%);
  padding: 96px 0 84px;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -160px auto;
  width: 420px;
  height: 420px;
  background: rgba(255,255,255,0.04);
  filter: blur(20px);
  border-radius: 50%;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: 42px;
  align-items: center;
}
.eyebrow,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .06em;
}
.eyebrow {
  background: rgba(255,255,255,.09);
  color: #dfe8ff;
}
.hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(2.35rem, 5vw, 4.8rem);
  line-height: 1.04;
  letter-spacing: -.04em;
}
.hero .lead {
  max-width: 760px;
  color: rgba(255,255,255,.82);
  font-size: 1.08rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}
.btn-primary {
  background: #fff;
  color: var(--bg);
}
.btn-primary:hover { opacity: .92; transform: translateY(-1px); }
.btn-secondary {
  color: #fff;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.16);
}
.btn-secondary:hover { background: rgba(255,255,255,.1); }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 20px;
  color: rgba(255,255,255,.74);
  font-size: .95rem;
}
.hero-panel {
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-xl);
  padding: 30px;
  box-shadow: 0 30px 90px rgba(0,0,0,.25);
}
.hero-panel h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}
.hero-panel p {
  color: rgba(255,255,255,.74);
  font-size: .96rem;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 22px 0 0;
}
.metric-card {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
}
.metric-card strong {
  display: block;
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 6px;
}
.metric-card span {
  display: block;
  color: rgba(255,255,255,.74);
  font-size: .88rem;
  line-height: 1.5;
}

.section { padding: 92px 0; }
.section.compact { padding: 72px 0; }
.section.band { background: var(--surface); }
.section.dark {
  color: #fff;
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-2) 100%);
}
.section-head {
  max-width: 820px;
  margin-bottom: 38px;
}
.section-head.center {
  text-align: center;
  margin-inline: auto;
  margin-bottom: 46px;
}
.kicker {
  display: inline-block;
  color: var(--primary);
  font-size: .84rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.section.dark .kicker { color: #87afff; }
.section-head h2,
.page-title {
  margin: 10px 0 12px;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.14;
  letter-spacing: -.03em;
}
.section-head p,
.page-intro {
  color: var(--text-2);
  font-size: 1rem;
}
.section.dark .section-head p,
.section.dark .section-head li { color: rgba(255,255,255,.74); }

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 22px;
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card,
.entry-card,
.info-card,
.post-card,
.cta-box,
.contact-card,
.company-table-wrap,
.note-box,
.archive-shell,
.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.card,
.info-card,
.contact-card,
.note-box,
.sidebar-card { padding: 28px; }
.entry-card,
.archive-shell,
.company-table-wrap { padding: 34px; }
.post-card {
  overflow: hidden;
  transition: .2s ease;
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.card h3,
.info-card h3,
.contact-card h3,
.sidebar-card h3,
.post-card h3 {
  margin: 0 0 10px;
  font-size: 1.22rem;
  line-height: 1.35;
}
.card p:last-child,
.info-card p:last-child,
.contact-card p:last-child,
.note-box p:last-child { margin-bottom: 0; }
.tag,
.badge {
  background: var(--accent-soft);
  color: #0b7b67;
  margin-bottom: 14px;
}

.feature-list,
.check-list,
.inline-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.feature-list li,
.check-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
}
.feature-list li::before,
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  transform: translateY(-50%);
}
.inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.inline-list li {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--text-2);
  font-size: .9rem;
  font-weight: 700;
}

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-box {
  padding: 24px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.stat-box strong {
  display: block;
  margin-bottom: 8px;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -.03em;
}
.stat-box span { color: var(--text-2); font-size: .95rem; }

.timeline {
  position: relative;
  list-style: none;
  padding: 0 0 0 18px;
  margin: 0;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(var(--primary), rgba(23,86,232,.1));
}
.timeline li {
  position: relative;
  padding: 0 0 20px 26px;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -18px;
  top: .5em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--primary);
}
.timeline strong { display: block; margin-bottom: 4px; }
.timeline p { color: var(--text-2); }

.cta-box {
  padding: 34px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 26px;
  background: linear-gradient(135deg, #0c1930 0%, #17335f 100%);
  border: 1px solid rgba(255,255,255,.06);
  color: #fff;
}
.cta-box h2,
.cta-box h3 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1.2;
}
.cta-box p { color: rgba(255,255,255,.74); }
.cta-box .btn-secondary { background: rgba(255,255,255,.08); }

.company-table {
  width: 100%;
  border-collapse: collapse;
}
.company-table tr + tr { border-top: 1px solid var(--line); }
.company-table th,
.company-table td {
  padding: 18px 12px;
  text-align: left;
  vertical-align: top;
}
.company-table th {
  width: 220px;
  font-size: .95rem;
  color: var(--text);
}
.company-table td { color: var(--text-2); }

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.post-thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #dfe9fb, #eef5ff);
}
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { padding: 24px; }
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 12px;
  color: var(--text-2);
  font-size: .85rem;
  font-weight: 700;
}
.post-card h3 { margin-bottom: 8px; }
.post-card p { color: var(--text-2); font-size: .95rem; }
.text-link {
  color: var(--primary);
  font-weight: 800;
}
.text-link:hover { color: var(--primary-dark); }

.page-hero {
  padding: 74px 0 34px;
  background: linear-gradient(180deg, rgba(23,86,232,.08), transparent 80%);
}
.breadcrumbs {
  margin-bottom: 14px;
  color: var(--text-2);
  font-size: .88rem;
}
.breadcrumbs span { color: var(--line-strong); margin: 0 8px; }
.page-shell,
.archive-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}
.page-content,
.archive-content { padding: 0 0 88px; }
.entry-card h1,
.entry-card h2,
.entry-card h3,
.entry-card h4,
.entry-card h5,
.entry-card h6 {
  line-height: 1.35;
  margin: 1.4em 0 .7em;
}
.entry-card h1:first-child,
.entry-card h2:first-child,
.entry-card h3:first-child { margin-top: 0; }
.entry-card h2 {
  font-size: 1.8rem;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.entry-card h3 { font-size: 1.35rem; }
.entry-card blockquote {
  margin: 1.5em 0;
  padding: 18px 20px;
  border-left: 4px solid var(--primary);
  background: var(--surface-3);
  border-radius: 0 18px 18px 0;
}
.entry-card table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
}
.entry-card table th,
.entry-card table td {
  border: 1px solid var(--line);
  padding: 12px 14px;
}
.entry-card table th { background: var(--surface-3); }
.entry-card .wp-block-image,
.entry-card .wp-block-gallery { margin: 1.6em 0; }
.entry-card a { color: var(--primary); text-decoration: underline; }
.entry-card ul li,
.entry-card ol li { margin-bottom: .5em; }

.pagination,
.navigation.pagination {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}
.pagination .nav-links,
.navigation.pagination .nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.page-numbers {
  min-width: 42px;
  min-height: 42px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 700;
}
.page-numbers.current {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 24px;
}
.contact-card .wpcf7,
.contact-card form { margin-top: 12px; }
.contact-card input,
.contact-card textarea,
.contact-card select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  font: inherit;
  color: var(--text);
  background: #fff;
}
.contact-card textarea { min-height: 180px; resize: vertical; }
.contact-card input[type="submit"],
.contact-card button,
.contact-card .wp-block-button__link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}

.notice-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.notice-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.notice-list li:last-child { border-bottom: 0; }
.notice-list small {
  display: block;
  color: var(--text-2);
  font-size: .82rem;
  margin-bottom: 4px;
}

.site-footer {
  background: var(--bg);
  color: rgba(255,255,255,.78);
  padding: 28px 0 34px;
}
.footer-top {
  padding: 52px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr .7fr .7fr;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand strong { display: block; font-size: 1.15rem; color: #fff; }
.footer-brand p { color: rgba(255,255,255,.62); }
.footer-title {
  color: #fff;
  font-size: .92rem;
  margin-bottom: 12px;
  font-weight: 800;
}
.footer-menu,
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-menu li,
.footer-links li { margin-bottom: 10px; }
.footer-menu a,
.footer-links a { color: rgba(255,255,255,.72); }
.footer-menu a:hover,
.footer-links a:hover { color: #fff; }
.footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .88rem;
}

.menu-toggle { display: none; }
.screen-reader-text {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}

@media (max-width: 1080px) {
  .hero-grid,
  .page-shell,
  .archive-layout,
  .contact-grid,
  .footer-grid,
  .cta-box { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .posts-grid,
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  body.admin-bar .site-header { top: 46px; }
  .header-inner { min-height: 74px; }
  .main-nav { display: none; }
  .main-nav.is-open {
    display: block;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    background: rgba(255,255,255,.98);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .main-nav.is-open .menu,
  .main-nav.is-open ul {
    display: block;
    padding: 16px;
  }
  .main-nav.is-open li { margin-bottom: 8px; }
  .main-nav.is-open a {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--surface-2);
  }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    font-size: 1rem;
    font-weight: 800;
  }
  .header-cta { display: none; }
  .hero { padding: 76px 0 68px; }
  .section,
  .section.compact { padding: 72px 0; }
  .posts-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .stats-grid,
  .metric-grid { grid-template-columns: 1fr; }
  .entry-card,
  .archive-shell,
  .company-table-wrap,
  .card,
  .info-card,
  .contact-card,
  .note-box,
  .sidebar-card { padding: 24px; }
  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
    padding: 10px 0;
  }
  .company-table th { padding-bottom: 0; }
  .company-table td { padding-top: 6px; }
}
