/*
Theme Name: CREO Theme
Theme URI: https://creo.salonweb.works/
Description: CREO（クレオ／愛知県岡崎市柱）美容室 カスタムWordPressテーマ。トップページ（https://creo.salonweb.works/）とヘッダー・フッター・配色・タイポを揃えたブログ用テーマ。
Version: 1.0
Author: graciauto
Text Domain: creo-theme
*/

/* ============================================================
   トークン（トップページ prototype_creo.html と同じ値に揃えること）
   ============================================================ */
:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f6f5f3;          /* グレージュ */
  --color-text: #1a1a1a;            /* 墨 */
  --color-text-sub: #4a4a4a;        /* 本文（濃いめ） */
  --color-text-mute: #767676;       /* 英字ラベル・注記のみ */
  --color-line: #e5e3e0;
  --color-accent: #5C88C0;          /* CREO ブランドカラー＝正式ロゴデータ(.ai)の実測値 */
  --color-accent-dark: #48709F;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans JP", sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  font-feature-settings: "palt";
  letter-spacing: 0.02em;
  line-height: 1.8;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* Typography utilities（トップページと同名・同値） */
.font-serif-ja { font-family: "Noto Serif JP", serif; font-weight: 400; }
.font-en { font-family: "Inter", sans-serif; }
/* ロゴは画像だが、トップページの markup を貼り込んでも崩れないようクラスは残す */
.logo-creo { font-family: "Archivo Black", "Inter", sans-serif; letter-spacing: 0.06em; }
.tracking-wider-en { letter-spacing: 0.18em; }
.tracking-widest-en { letter-spacing: 0.28em; }
.text-accent { color: var(--color-accent); }
.bg-accent { background: var(--color-accent); }

.section-divider {
  display: block;
  width: 2rem;
  height: 1px;
  background: var(--color-text);
  margin: 1.5rem auto;
}

/* Fade-in（トップと同じ極小アニメーション） */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

.is-hidden { display: none !important; }

/* ============================================================
   Header
   トップページのスクロール後ヘッダー（.header-scrolled）と同一の値にすること
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: 72px;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-line);
}
.site-header .inner {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
}

/* ロゴ＝画像。letter-spacing や transform は掛けないこと（文字詰めが独自のため） */
.site-logo { display: block; flex-shrink: 0; padding-right: 1rem; transition: opacity .2s; }
.site-logo img { height: 28px; width: auto; }
.site-logo:hover { opacity: 0.8; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  letter-spacing: 0.28em;
}
@media (min-width: 1400px) { .site-nav { gap: 2.25rem; } }
.site-nav a { color: var(--color-text); transition: color .2s; }
.site-nav a:hover,
.site-nav a.current { color: var(--color-accent); }

.header-cta { display: flex; align-items: center; gap: 6px; }

/* 予約導線は電話1本（ネット予約・LINEはURL未入手のため置かない） */
.btn-tel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 500;
  color: #fff;
  background: var(--color-accent);
  transition: opacity .2s;
}
.btn-tel:hover { opacity: 0.85; }
.btn-tel .num { font-family: "Inter", sans-serif; letter-spacing: 0.04em; }

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  margin-left: 4px;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text);
}

/* モバイルメニュー（トップページと同一挙動） */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.mobile-menu.is-open { opacity: 1; pointer-events: auto; }
.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  letter-spacing: 0.28em;
}
.mobile-menu-nav a { color: var(--color-text); transition: color .2s; }
.mobile-menu-nav a:hover,
.mobile-menu-nav a.current { color: var(--color-accent); }
.mobile-menu-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.5rem;
  width: 240px;
}
.mobile-btn-tel {
  width: 100%;
  text-align: center;
  padding: 12px 0;
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  background: var(--color-accent);
}

/* 2026-11-05 RECRUIT追加でナビ9項目に。1280px未満はハンバーガー（静的ページの xl と同じ境目） */
@media (max-width: 1279px) {
  .site-nav { display: none; }
  .btn-tel .num { display: none; }
  .site-header .inner { padding: 0 1.5rem; }
  .menu-toggle { display: flex; }
}
@media (min-width: 1280px) {
  .mobile-menu { display: none; }
}

/* ============================================================
   Page hero（ブログ一覧の見出し）
   ============================================================ */
.page-hero {
  padding-top: 72px;
  background: var(--color-bg-alt);
  padding-bottom: 5rem;
  text-align: center;
}
.page-hero-inner { padding-top: 5rem; }
.page-hero .en-label {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--color-text-mute);
}
.page-hero h1 {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 300;
  margin-top: 1.5rem;
  line-height: 1.5;
}

/* パンくず */
.breadcrumb-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 2.5rem 0;
}
@media (max-width: 580px) { .breadcrumb-wrap { padding: 1.5rem 1.5rem 0; } }
.breadcrumb { font-size: 12px; line-height: 1.8; color: var(--color-text-mute); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5em; }
.breadcrumb li + li::before { content: "›"; margin-right: 0.5em; color: var(--color-line); }
.breadcrumb a { color: var(--color-text-mute); transition: color .2s; }
.breadcrumb a:hover { color: var(--color-accent); }
.breadcrumb [aria-current] { color: var(--color-text-sub); }
.single-content-wrap .breadcrumb { margin-bottom: 1.75rem; }

/* ============================================================
   記事一覧
   ============================================================ */
.post-grid-section {
  padding: 6rem 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}
@media (max-width: 900px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .post-grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .post-grid-section { padding: 4rem 1.5rem; }
}

.post-card { display: block; }
.post-card-thumb {
  aspect-ratio: 4/3;
  overflow: hidden;
  margin-bottom: 1.25rem;
  background: var(--color-bg-alt);
}
.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s ease;
}
.post-card:hover .post-card-thumb img { transform: scale(1.04); }
.post-card-thumb .no-thumb {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-alt);
  color: var(--color-text-mute);
  font-family: "Inter", sans-serif;
  font-size: 10px;
  letter-spacing: 0.28em;
}
.post-card-meta {
  font-family: "Inter", sans-serif;
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--color-text-mute);
  margin-bottom: 0.5rem;
}
.post-card-title {
  font-family: "Noto Serif JP", serif;
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.7;
  transition: color .2s;
}
.post-card:hover .post-card-title { color: var(--color-accent); }
.post-card-excerpt {
  margin-top: 0.75rem;
  font-size: 14px;
  line-height: 1.9;
  color: var(--color-text-sub);
}

/* 記事ゼロのとき */
.no-posts {
  text-align: center;
  padding: 5rem 0 6rem;
}
.no-posts p {
  color: var(--color-text-sub);
  font-size: 16px;
}
.no-posts-link { margin-top: 0.5rem; }
.no-posts .en-label {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--color-text-mute);
  margin-bottom: 1.25rem;
}

/* ページネーション */
.pagination { text-align: center; padding: 3rem 0 0; }
.pagination ul { list-style: none; display: inline-flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; }
.pagination .page-numbers {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-line);
  color: var(--color-text);
  font-family: "Inter", sans-serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  transition: all .2s;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* ============================================================
   記事個別 / 固定ページ
   ============================================================ */
.single-post { padding-top: 72px; }
.single-hero {
  width: 100%;
  aspect-ratio: 16/7;
  overflow: hidden;
  background: var(--color-bg-alt);
}
.single-hero img { width: 100%; height: 100%; object-fit: cover; }
.single-content-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 5rem 2.5rem 6rem;
}
@media (max-width: 580px) {
  .single-content-wrap { padding: 3.5rem 1.5rem 4rem; }
}
.single-meta {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--color-text-mute);
  margin-bottom: 1.5rem;
}
.single-title {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-line);
}

/* 本文タイポ（トップページと同じスケール＝16〜17px・#4a4a4a） */
.post-body {
  font-size: 16px;
  line-height: 2.1;
  color: var(--color-text-sub);
}
@media (min-width: 1024px) { .post-body { font-size: 17px; } }
.post-body p { margin-bottom: 1.8em; }
/* 見出しの装飾に左辺・上辺のカラー線は使わない（中立色の下罫線で区切る） */
.post-body h2 {
  font-family: "Noto Serif JP", serif;
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--color-text);
  margin: 3em 0 1.2em;
  padding-bottom: 0.6em;
  border-bottom: 1px solid var(--color-line);
}
.post-body h3 {
  font-family: "Noto Serif JP", serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--color-text);
  margin: 2.5em 0 0.8em;
}
.post-body h4 {
  font-family: "Noto Serif JP", serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-text);
  margin: 2em 0 0.7em;
}
.post-body ul, .post-body ol { margin: 1em 0 2em 1.5em; }
.post-body li { margin-bottom: 0.5em; }
.post-body img { width: 100%; height: auto; margin: 2em 0; }
.post-body figure { margin: 2em 0; }
.post-body figcaption {
  font-size: 12px;
  color: var(--color-text-mute);
  margin-top: 0.75em;
  text-align: center;
}
.post-body a { color: var(--color-accent); text-decoration: underline; }
.post-body a:hover { color: var(--color-accent-dark); }
.post-body strong { font-weight: 600; color: var(--color-text); }
.post-body blockquote {
  border-left: 2px solid var(--color-line);
  padding-left: 1.5em;
  color: var(--color-text-mute);
  margin: 2em 0;
}
.post-body table { width: 100%; border-collapse: collapse; margin: 2em 0; font-size: 15px; }
.post-body th, .post-body td { border: 1px solid var(--color-line); padding: 0.75em 1em; text-align: left; }
.post-body th { background: var(--color-bg-alt); font-weight: 500; }

/* 記事末尾：トップページへの導線 */
.post-cta {
  margin-top: 4.5rem;
  padding: 2.75rem 2rem;
  background: var(--color-bg-alt);
  text-align: center;
}
.post-cta .en-label {
  font-family: "Inter", sans-serif;
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--color-text-mute);
}
.post-cta-title {
  font-family: "Noto Serif JP", serif;
  font-size: 1.15rem;
  font-weight: 400;
  margin: 1rem 0 0.75rem;
}
.post-cta-note { font-size: 13px; line-height: 1.9; color: var(--color-text-sub); }
.post-cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.75rem;
}
.post-cta-top {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  font-size: 13px;
  color: #fff;
  background: var(--color-accent);
  transition: opacity .2s;
}
.post-cta-top:hover { opacity: 0.85; }
.post-cta-tel {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 13px;
  color: var(--color-text);
  border: 1px solid var(--color-text);
  transition: all .2s;
}
.post-cta-tel:hover { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.post-cta-tel .num { font-family: "Inter", sans-serif; letter-spacing: 0.06em; }

.back-link {
  display: inline-block;
  margin-top: 3rem;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--color-text-mute);
  border-bottom: 1px solid var(--color-line);
  padding-bottom: 2px;
  transition: color .2s, border-color .2s;
}
.back-link:hover { color: var(--color-accent); border-color: var(--color-accent); }

/* ============================================================
   Footer（トップページと同一仕様＝墨ベース。青は面で塗らない）
   ============================================================ */
.site-footer {
  background: #1a1a1a;
  color: #fff;
  padding: 5rem 2.5rem 2.5rem;
}
.site-footer .inner { max-width: 1280px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .site-footer { padding: 4rem 1.5rem 2rem; }
}

.footer-brand { margin-bottom: 1.5rem; }
.footer-brand img { height: 36px; width: auto; }
.footer-address {
  font-size: 13px;
  line-height: 2;
  color: rgba(255,255,255,0.75);
}
.footer-address a:hover { color: var(--color-accent); }
.footer-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.footer-btn-tel {
  background: var(--color-accent);
  color: #fff;
  padding: 10px 20px;
  font-size: 12px;
  transition: opacity .2s;
}
.footer-btn-tel:hover { opacity: 0.85; }

.footer-col-label {
  font-family: "Inter", sans-serif;
  font-size: 10px;
  letter-spacing: 0.28em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.25rem;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 13px;
}
.footer-col ul a { transition: color .2s; }
.footer-col ul a:hover { color: var(--color-accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.footer-copy {
  font-family: "Inter", sans-serif;
  font-size: 10px;
  letter-spacing: 0.28em;
  color: rgba(255,255,255,0.4);
}
.footer-sns { display: flex; gap: 1rem; }
.footer-sns a {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}
.footer-sns a:hover { border-color: var(--color-accent); color: var(--color-accent); }

@media (max-width: 640px) {
  .footer-bottom { flex-direction: column; gap: 1rem; align-items: flex-start; }
}

/* ネット予約（ホットペッパー）2026-09-24 */
.btn-web { display:inline-flex; align-items:center; padding:10px 16px; font-size:11px; font-weight:500; color:#fff; background:#1a1a1a; transition:opacity .2s; }
.btn-web:hover { opacity:.85; }
@media (max-width: 640px) { .btn-web { display:none; } }
.mobile-btn-web { width:100%; text-align:center; padding:12px 0; font-size:12px; font-weight:500; color:#fff; background:#1a1a1a; }
.footer-btn-web { border:1px solid rgba(255,255,255,.4); color:#fff; padding:9px 20px; font-size:12px; transition:all .2s; }
.footer-btn-web:hover { background:#fff; color:#1a1a1a; }
