/*
Theme Name: ShiftGram for Sales
Theme URI: https://shiftgram.ai/
Author: ShiftGram, Inc.
Author URI: https://shiftgram.ai/
Description: ShiftGram for Sales LPとブログを同居させるクラシックテーマです。
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: shiftgram-sales
*/

:root {
  --sg-ink: #0b1730;
  --sg-muted: #66738a;
  --sg-blue: #2864ef;
  --sg-blue-dark: #092b73;
  --sg-line: #dce5f2;
  --sg-surface: #f5f8fc;
  --sg-white: #fff;
  --sg-content: 760px;
  --sg-wide: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--sg-surface);
  color: var(--sg-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--sg-blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 3px;
}

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

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

.screen-reader-text:focus,
.skip-link:focus {
  position: fixed !important;
  z-index: 100000;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 10px 16px;
  clip: auto;
  background: var(--sg-white);
  color: var(--sg-ink);
  font-weight: 700;
}

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: #071a3b;
  color: var(--sg-white);
}

.site-header__inner,
.site-footer__inner,
.content-shell {
  width: min(calc(100% - 40px), var(--sg-wide));
  margin-inline: auto;
}

.site-header__inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.site-branding {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
}

.custom-logo-link {
  display: inline-flex;
}

.custom-logo {
  width: auto;
  max-height: 40px;
}

.site-title {
  margin: 0;
  color: var(--sg-white);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.site-description {
  margin: 2px 0 0;
  color: #b8c8e8;
  font-size: 12px;
  line-height: 1.4;
}

.primary-menu,
.footer-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-menu a {
  color: var(--sg-white);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.content-shell {
  padding-block: clamp(48px, 7vw, 92px);
}

.page-header {
  width: min(100%, var(--sg-content));
  margin: 0 auto clamp(28px, 4vw, 48px);
}

.page-title {
  margin: 0;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.archive-description {
  margin-top: 14px;
  color: var(--sg-muted);
}

.post-list {
  display: grid;
  width: min(100%, var(--sg-content));
  margin-inline: auto;
  gap: 24px;
}

.post-card,
.entry-single,
.page-entry,
.comments-area,
.no-results {
  border: 1px solid var(--sg-line);
  border-radius: 18px;
  background: var(--sg-white);
  box-shadow: 0 14px 45px rgba(26, 57, 106, 0.06);
}

.post-card {
  padding: clamp(24px, 5vw, 42px);
}

.entry-single,
.page-entry {
  width: min(100%, var(--sg-content));
  margin-inline: auto;
  padding: clamp(28px, 6vw, 64px);
}

.entry-title {
  margin: 0;
  font-size: clamp(27px, 4vw, 42px);
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.post-card .entry-title {
  font-size: clamp(23px, 3vw, 32px);
}

.entry-title a {
  color: var(--sg-ink);
  text-decoration: none;
}

.entry-meta,
.entry-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  color: var(--sg-muted);
  font-size: 13px;
}

.entry-meta {
  margin-top: 12px;
}

.entry-thumbnail {
  margin: 28px 0;
  overflow: hidden;
  border-radius: 12px;
}

.entry-thumbnail img {
  display: block;
  width: 100%;
}

.entry-summary,
.entry-content {
  margin-top: 28px;
}

.entry-content > :first-child,
.entry-summary > :first-child {
  margin-top: 0;
}

.entry-content > :last-child,
.entry-summary > :last-child {
  margin-bottom: 0;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin: 2.2em 0 0.8em;
  line-height: 1.45;
}

.entry-content h2 {
  padding-bottom: 0.35em;
  border-bottom: 2px solid var(--sg-line);
  font-size: clamp(24px, 3vw, 31px);
}

.entry-content blockquote {
  margin: 2em 0;
  padding: 18px 24px;
  border-left: 4px solid var(--sg-blue);
  background: #f0f5ff;
}

.entry-content pre,
.entry-content table {
  overflow-x: auto;
}

.entry-content table {
  display: block;
  width: 100%;
  border-collapse: collapse;
}

.entry-content th,
.entry-content td {
  padding: 10px 12px;
  border: 1px solid var(--sg-line);
}

.entry-footer {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--sg-line);
}

.read-more {
  display: inline-flex;
  margin-top: 18px;
  align-items: center;
  font-weight: 800;
}

.pagination,
.post-navigation {
  width: min(100%, var(--sg-content));
  margin: 40px auto 0;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.page-numbers {
  display: inline-grid;
  min-width: 42px;
  min-height: 42px;
  place-items: center;
  border: 1px solid var(--sg-line);
  border-radius: 999px;
  background: var(--sg-white);
  text-decoration: none;
}

.page-numbers.current {
  border-color: var(--sg-blue);
  background: var(--sg-blue);
  color: var(--sg-white);
}

.post-navigation .nav-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.post-navigation a {
  display: block;
  height: 100%;
  padding: 18px 20px;
  border: 1px solid var(--sg-line);
  border-radius: 12px;
  background: var(--sg-white);
  text-decoration: none;
}

.nav-subtitle {
  display: block;
  color: var(--sg-muted);
  font-size: 12px;
}

.nav-title {
  display: block;
  margin-top: 4px;
  color: var(--sg-ink);
  font-weight: 800;
}

.comments-area {
  width: min(100%, var(--sg-content));
  margin: 32px auto 0;
  padding: clamp(24px, 5vw, 42px);
}

.comment-list {
  padding-left: 20px;
}

.comment-list .children {
  padding-left: 24px;
}

.comment-body {
  margin-block: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--sg-line);
}

input:not([type="checkbox"]):not([type="radio"]),
textarea,
select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #aebbd0;
  border-radius: 8px;
  background: var(--sg-white);
  color: var(--sg-ink);
  font: inherit;
}

button,
input[type="submit"] {
  min-height: 44px;
  padding: 10px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--sg-blue);
  color: var(--sg-white);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.site-footer {
  padding-block: 38px;
  background: #071a3b;
  color: #b8c8e8;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-menu {
  flex-wrap: wrap;
  gap: 10px 20px;
}

.footer-menu a {
  color: var(--sg-white);
  text-decoration: none;
}

.site-info {
  margin: 0;
  font-size: 13px;
}

@media (max-width: 720px) {
  .site-header__inner,
  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header__inner {
    padding-block: 18px;
  }

  .primary-menu {
    flex-wrap: wrap;
    gap: 8px 18px;
  }

  .post-navigation .nav-links {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
