/* corporate — 企業・店舗・事業向けテーマ。色はCSS変数（var(--accent)等）で注入される */

body {
  --shell: 1120px;
  --read: 780px;
  --hero-from: #17202e;
  --hero-to: #2b3a54;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
    "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-size-adjust: 100%;
}
* { box-sizing: border-box; }
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============ ヘッダー ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  max-width: var(--shell); margin: 0 auto; padding: 0 24px;
  min-height: 66px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.site-title {
  font-size: 22px; font-weight: 800; letter-spacing: 0.04em;
  color: var(--text); text-decoration: none; padding: 14px 0;
}
.site-title:hover { text-decoration: none; opacity: 0.75; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px; }
.site-nav a {
  color: var(--text); font-size: 15px; font-weight: 600;
  padding: 10px 14px; border-radius: 6px; text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.site-nav a:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent); text-decoration: none; }

/* ============ ヒーロー ============ */
.hero {
  background: linear-gradient(135deg, var(--hero-from), var(--hero-to));
  background-size: cover; background-position: center;
  color: #fff; text-align: left;
}
.hero-inner {
  max-width: var(--shell); margin: 0 auto; padding: clamp(64px, 12vw, 128px) 24px;
}
.hero-title, .hero-sub { max-width: 30em; }
.hero-title {
  font-size: clamp(26px, 4.4vw, 46px); line-height: 1.35; font-weight: 800;
  margin: 0 0 18px; letter-spacing: 0.01em; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
}
.hero-sub { font-size: clamp(15px, 2vw, 19px); margin: 0 0 28px; opacity: 0.94; }
.hero-cta { margin: 8px 0 0; }

.btn-cta {
  display: inline-block; background: var(--accent); color: #fff;
  font-weight: 700; font-size: 16px; text-decoration: none;
  padding: 15px 40px; border-radius: 999px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18); transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}
.btn-cta:hover { transform: translateY(-2px); filter: brightness(1.07); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24); text-decoration: none; color: #fff; }

/* ============ 本体コンテナ ============ */
.wrapper { max-width: var(--shell); margin: 0 auto; padding: 64px 24px 88px; }
.is-page .wrapper { max-width: 860px; }

.section-head { text-align: left; margin: 0 0 32px; }
.section-head h1, .section-head h2 {
  display: inline-block; font-size: clamp(20px, 3vw, 28px); font-weight: 800; margin: 0; padding-bottom: 12px;
  position: relative;
}
.section-head h1::after, .section-head h2::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 48px; height: 3px; background: var(--accent); border-radius: 2px;
}
.page-heading { font-size: clamp(20px, 3vw, 28px); font-weight: 800; }

/* ============ ホームのLP本文 ============ */
.front-profile { text-align: left; color: var(--muted); max-width: var(--read); margin: 0 0 40px; }
.lead {
  font-size: clamp(16px, 2.2vw, 20px); font-weight: 600; text-align: left;
  max-width: var(--read); margin: 0 0 8px; color: var(--text); line-height: 1.9;
}
.is-home .wrapper > article > .prose { margin-top: 8px; }
.is-home .prose > h2 {
  text-align: left; font-size: clamp(20px, 3vw, 28px); margin: 72px 0 24px; padding-bottom: 12px; position: relative;
}
.is-home .prose > h2::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 48px; height: 3px; background: var(--accent); border-radius: 2px;
}
.is-home .prose > :where(p, ul, ol, blockquote, h3) { max-width: var(--read); }

/* サービスカード（feature-grid はホーム本文のHTMLで使うヘルパー） */
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px; max-width: var(--shell); margin: 8px auto 0;
}
.feature-card {
  border: 1px solid var(--rule); border-radius: 14px; padding: 28px 26px;
  background: #fff; box-shadow: 0 2px 10px rgba(20, 30, 50, 0.04);
  transition: transform 0.18s, box-shadow 0.18s; text-align: left;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(20, 30, 50, 0.1); }
.feature-card h3 { margin: 0 0 12px; font-size: 18px; color: var(--text); }
.feature-card p { margin: 0 0 10px; color: var(--muted); font-size: 15px; line-height: 1.8; }
.feature-price { color: var(--accent) !important; font-weight: 800; font-size: 18px; }

/* CTAバンド */
.cta-band {
  margin: 76px auto 0; max-width: var(--shell); text-align: center;
  background: linear-gradient(135deg, var(--hero-from), var(--hero-to)); color: #fff;
  border-radius: 18px; padding: 52px 28px;
}
.cta-band p { font-size: clamp(17px, 2.4vw, 22px); font-weight: 700; margin: 0 0 24px; }

/* ============ お知らせ／記事一覧（news・post-list カード） ============ */
.news { max-width: var(--shell); margin: 84px auto 0; padding-top: 8px; }
.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.news-item a {
  display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap;
  padding: 18px 8px; border-bottom: 1px solid var(--rule);
  color: var(--text); text-decoration: none; transition: background 0.15s;
}
.news-item a:hover { background: color-mix(in srgb, var(--accent) 6%, transparent); text-decoration: none; }
.news-date { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; min-width: 92px; }
.news-cat {
  font-size: 12px; font-weight: 700; color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--rule)); border-radius: 999px; padding: 2px 12px;
}
.news-title { font-weight: 600; flex: 1 1 240px; }

.post-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.post-card { border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; background: #fff; transition: transform 0.18s, box-shadow 0.18s; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(20, 30, 50, 0.1); }
.post-card-link { display: block; padding: 24px 24px 26px; color: var(--text); text-decoration: none; }
.post-card-link:hover { text-decoration: none; }
.post-meta { color: var(--muted); font-size: 13px; margin: 0 0 10px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.post-meta time { font-variant-numeric: tabular-nums; }
.post-cat { font-weight: 700; color: var(--accent); }
.card-title { font-size: 18px; font-weight: 700; margin: 0 0 10px; line-height: 1.5; }
.post-excerpt { color: var(--muted); font-size: 14px; margin: 0; line-height: 1.8; }
.more-link { text-align: center; margin: 32px 0 0; }
.more-link a { font-weight: 700; }

/* ============ 記事・固定ページ本文 ============ */
.post-header { text-align: left; margin: 0 0 28px; }
.post-header h1 { font-size: clamp(23px, 3.4vw, 34px); font-weight: 800; line-height: 1.45; margin: 6px 0 0; }
.post-header .post-meta { justify-content: flex-start; }
.pr-note { color: var(--muted); font-size: 13px; text-align: center; background: color-mix(in srgb, var(--accent) 5%, transparent); padding: 8px; border-radius: 8px; }

.prose { font-size: 16.5px; }
.prose h2 { font-size: 24px; font-weight: 800; margin: 52px 0 18px; padding-left: 14px; border-left: 5px solid var(--accent); line-height: 1.5; }
.prose h3 { font-size: 19px; font-weight: 700; margin: 36px 0 12px; }
.prose h4 { font-size: 16px; font-weight: 700; margin: 28px 0 10px; color: var(--muted); }
.prose p { margin: 0 0 20px; }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 1.5em; }
.prose li { margin: 6px 0; }
.prose blockquote { margin: 24px 0; padding: 14px 20px; border-left: 4px solid var(--accent); background: color-mix(in srgb, var(--accent) 5%, transparent); color: var(--muted); border-radius: 0 8px 8px 0; }
.prose blockquote p:last-child { margin: 0; }
.prose hr { border: none; border-top: 1px solid var(--rule); margin: 40px 0; }
.prose img { border-radius: 10px; margin: 10px 0; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose code { background: color-mix(in srgb, var(--text) 7%, transparent); padding: 2px 6px; border-radius: 5px; font-size: 0.9em; }
.prose pre { background: #1c2430; color: #eaeef4; padding: 18px 20px; border-radius: 10px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose table { border-collapse: collapse; width: 100%; margin: 24px 0; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--rule); padding: 11px 14px; text-align: left; }
.prose th { background: color-mix(in srgb, var(--accent) 8%, transparent); font-weight: 700; }

/* 埋め込み */
.embed-youtube, .embed-map { position: relative; width: 100%; aspect-ratio: 16 / 9; margin: 24px 0; }
.embed-youtube iframe, .embed-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 10px; }
.embed-form { margin: 24px 0; }
.embed-form iframe { width: 100%; min-height: 720px; border: 0; }
.twitter-tweet, .instagram-media { margin: 24px auto !important; }

/* 目次 */
.toc { border: 1px solid var(--rule); border-radius: 12px; padding: 20px 24px; margin: 0 0 36px; background: color-mix(in srgb, var(--accent) 3%, #fff); max-width: var(--read); }
.toc-title { font-weight: 800; margin: 0 0 10px; }
.toc ol { margin: 0; padding-left: 1.4em; }
.toc li { margin: 5px 0; }
.toc-sub { margin-left: 1.1em; list-style: circle; font-size: 0.95em; }

/* シェア */
.share { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0; }
.share a, .share-copy {
  font-size: 13px; font-weight: 600; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--rule); background: #fff; color: var(--text); cursor: pointer; text-decoration: none;
}
.share a:hover, .share-copy:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* 書いた人 */
.author-box { display: flex; gap: 18px; align-items: flex-start; border: 1px solid var(--rule); border-radius: 14px; padding: 24px; margin: 40px 0; background: color-mix(in srgb, var(--accent) 3%, #fff); }
.author-icon { width: 66px; height: 66px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-label { display: block; font-size: 12px; color: var(--muted); }
.author-name { display: block; font-size: 18px; font-weight: 800; margin: 2px 0 8px; }
.author-bio { margin: 0 0 8px; font-size: 14px; color: var(--muted); line-height: 1.8; }
.author-links { margin: 0; display: flex; gap: 14px; flex-wrap: wrap; }
.author-links a { font-size: 13px; font-weight: 600; }

/* 関連・前後ナビ */
.related { margin: 48px 0 0; border-top: 1px solid var(--rule); padding-top: 28px; }
.related-title { font-weight: 800; margin: 0 0 14px; }
.related ul { list-style: none; margin: 0; padding: 0; }
.related li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--rule); }
.related li .post-meta { margin: 0; white-space: nowrap; }
.post-nav { display: flex; justify-content: space-between; gap: 16px; margin: 36px 0 0; font-size: 14px; }
.post-nav-next { text-align: right; margin-left: auto; }

.post-footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 36px 0 0; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 14px; }
.post-footer a { margin-right: 10px; }

.ad-slot { margin: 28px 0; text-align: center; }

/* ============ フッター ============ */
.site-footer { background: #141b26; color: #c7cad2; margin-top: 96px; }
.footer-inner { max-width: var(--shell); margin: 0 auto; padding: 54px 24px 26px; display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-title { font-size: 20px; font-weight: 800; color: #fff; margin: 0 0 10px; letter-spacing: 0.04em; }
.footer-desc { margin: 0 0 14px; font-size: 14px; color: #99a1ad; max-width: 460px; line-height: 1.8; }
.footer-brand .site-social { display: flex; gap: 16px; flex-wrap: wrap; margin: 0; }
.footer-brand .site-social a { color: #c7cad2; font-size: 14px; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { color: #c7cad2; font-size: 14px; }
.footer-nav a:hover, .footer-brand .site-social a:hover { color: #fff; }
.footer-copy { text-align: center; color: #7c8593; font-size: 12px; margin: 0; padding: 18px 24px 26px; border-top: 1px solid rgba(255, 255, 255, 0.08); }

/* site-tagline / site-social（ヘッダー側の必須クラス。当テーマは主にフッターとヒーローで表現） */
.site-tagline { color: var(--muted); font-size: 14px; margin: 4px 0 0; }
.site-header .site-social { display: none; }

/* カード画像系（他テーマ互換の必須クラス。当テーマの一覧はテキストカード主体） */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.card { border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; background: #fff; }
.card-image { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card-image-empty { width: 100%; aspect-ratio: 16 / 10; background: color-mix(in srgb, var(--accent) 10%, #eef1f4); }
.card-body { padding: 20px; }

/* ============ レスポンシブ ============ */
@media (max-width: 720px) {
  .header-inner { min-height: 0; padding: 10px 18px; }
  .site-title { padding: 4px 0; }
  .site-nav { justify-content: flex-start; }
  .wrapper { padding: 44px 18px 64px; }
  .post-nav { flex-direction: column; }
  .post-nav-next { text-align: left; }
  .footer-inner { flex-direction: column; gap: 24px; }
}
