/* =============================================
   WebFactory Theme – Main CSS
   ============================================= */

:root {
  --bg: #f8f7f3;
  --bg2: #ffffff;
  --ink: #1a1a18;
  --ink-mid: #555550;
  --ink-light: #999990;
  --accent: #ff6b2b;
  --accent-light: #fff0ea;
  --accent-hover: #e05520;
  --border: rgba(26,26,24,0.1);
  --border-strong: rgba(26,26,24,0.18);
  --shadow: 0 4px 24px rgba(26,26,24,0.08);
  --shadow-lg: 0 20px 60px rgba(26,26,24,0.12);
  --radius: 12px;
  --header-h: 68px;
}

/* WordPress管理バー対応 */
.admin-bar .site-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }

/* ======== HEADER ======== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(248,247,243,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.site-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.75rem;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-decoration: none;
}
.site-logo .dot { color: var(--accent); }

.site-nav { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ink-mid);
  text-decoration: none;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--ink); background: rgba(26,26,24,0.05); }
.nav-arrow { font-size: 0.55rem; opacity: 0.45; transition: transform 0.2s; }
.nav-item:hover .nav-arrow { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--bg2);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 8px;
  min-width: 210px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: var(--shadow-lg);
}
.nav-item:hover .nav-dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  font-size: 0.82rem;
  color: var(--ink-mid);
  text-decoration: none;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.nav-dropdown a:hover { color: var(--accent); background: var(--accent-light); }
.nav-tag {
  font-size: 0.6rem;
  font-family: 'Space Mono', monospace;
  padding: 2px 7px;
  background: var(--accent);
  color: #fff;
  border-radius: 3px;
}
.nav-soon {
  font-size: 0.6rem;
  color: var(--ink-light);
  font-family: 'Space Mono', monospace;
}

.nav-cta {
  margin-left: 8px;
  padding: 9px 22px;
  background: var(--accent);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(255,107,43,0.3);
}
.nav-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255,107,43,0.35);
}

/* ======== SITE MAIN (非トップページ共通) ======== */
.site-main {
  padding-top: var(--header-h);
  min-height: 70vh;
}

/* ======== PAGE HERO (内部ページ用) ======== */
.page-hero {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 64px 48px 48px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,43,0.1) 0%, transparent 70%);
  top: -150px; right: -80px;
  pointer-events: none;
}
.page-hero-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.page-hero-eyebrow::before {
  content: '';
  display: block;
  width: 20px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.page-hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: 0.04em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 16px;
}
.page-hero-desc {
  font-size: 0.95rem;
  color: var(--ink-mid);
  line-height: 1.85;
  max-width: 560px;
}

/* ======== CONTENT AREA ======== */
.content-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 72px 48px;
}
.content-wrap.wide {
  max-width: 1100px;
}

/* WP本文の基本スタイル */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  color: var(--ink);
  margin: 2em 0 0.75em;
  line-height: 1.4;
}
.entry-content h2 { font-size: 1.5rem; border-left: 3px solid var(--accent); padding-left: 14px; }
.entry-content h3 { font-size: 1.2rem; }
.entry-content p { margin-bottom: 1.4em; line-height: 1.9; color: var(--ink-mid); }
.entry-content a { color: var(--accent); }
.entry-content a:hover { text-decoration: underline; }
.entry-content ul, .entry-content ol { margin: 0 0 1.4em 1.5em; color: var(--ink-mid); }
.entry-content li { margin-bottom: 0.5em; line-height: 1.8; }
.entry-content img { border-radius: 8px; margin: 1.5em 0; }
.entry-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 16px 24px;
  background: var(--accent-light);
  border-radius: 0 8px 8px 0;
  margin: 1.5em 0;
  color: var(--ink-mid);
  font-style: italic;
}

/* ======== BLOG LIST ======== */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  padding: 64px 48px;
}
.post-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card-thumb {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--bg);
}
.post-card-thumb-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--accent-light), var(--bg));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.post-card-body { padding: 24px; }
.post-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.post-card-date {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  color: var(--ink-light);
  letter-spacing: 0.08em;
}
.post-card-cat {
  font-size: 0.62rem;
  font-family: 'Space Mono', monospace;
  padding: 2px 8px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 20px;
}
.post-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 10px;
}
.post-card-excerpt {
  font-size: 0.8rem;
  color: var(--ink-mid);
  line-height: 1.75;
}

/* ======== PAGINATION ======== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0 48px 72px;
}
.pagination a, .pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 8px;
  font-size: 0.85rem;
  text-decoration: none;
  border: 1px solid var(--border);
  color: var(--ink-mid);
  transition: all 0.2s;
}
.pagination a:hover, .pagination .current {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ======== SINGLE POST ======== */
.post-header { padding: 64px 48px 48px; background: var(--bg2); border-bottom: 1px solid var(--border); }
.post-header-meta { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.post-header-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  max-width: 800px;
}
.post-eye { width: 100%; max-height: 440px; object-fit: cover; border-radius: var(--radius); margin-bottom: 48px; }

/* ======== BUTTONS ======== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(255,107,43,0.32);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255,107,43,0.38); color: #fff; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border: 1.5px solid var(--border-strong);
  color: var(--ink-mid);
  font-size: 0.88rem;
  text-decoration: none;
  border-radius: 10px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }

/* ======== SECTION COMMON ======== */
.section-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-eyebrow::before {
  content: '';
  display: block;
  width: 20px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.4rem, 3.5vw, 3.6rem);
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: 14px;
  line-height: 1;
}
.section-sub {
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--ink-mid);
  max-width: 480px;
  margin-bottom: 56px;
}

/* ======== FOOTER ======== */
.site-footer {
  background: var(--ink);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  color: #fff;
  text-decoration: none;
}
.footer-logo .dot { color: var(--accent); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a {
  font-size: 0.75rem;
  color: rgba(248,247,243,0.4);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.04em;
}
.footer-links a:hover { color: #fff; }
.footer-copy {
  font-size: 0.7rem;
  color: rgba(248,247,243,0.22);
  font-family: 'Space Mono', monospace;
  width: 100%;
  text-align: right;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 20px;
}

/* ======== CONTACT FORM ======== */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg);
  border: 1.5px solid var(--border-strong);
  border-radius: 8px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.9rem;
  color: var(--ink);
  transition: border-color 0.2s;
  margin-bottom: 16px;
}
.wpcf7-form input:focus,
.wpcf7-form textarea:focus { outline: none; border-color: var(--accent); }
.wpcf7-form input[type="submit"] {
  padding: 14px 36px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 6px 20px rgba(255,107,43,0.32);
}
.wpcf7-form input[type="submit"]:hover { background: var(--accent-hover); transform: translateY(-2px); }

/* ======== SCROLL REVEAL ======== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ======== ANIMATIONS ======== */
@keyframes fadeUp { from { opacity:0; transform:translateY(22px); } to { opacity:1; transform:translateY(0); } }
@keyframes slideUp { from { opacity:0; transform:translateY(36px); } to { opacity:1; transform:translateY(0); } }
@keyframes float { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-8px); } }
@keyframes pulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:0.5; transform:scale(0.85); } }

/* ======== RESPONSIVE ======== */
@media (max-width: 960px) {
  .site-header { padding: 0 24px; }
  .page-hero { padding: 48px 24px 36px; }
  .content-wrap { padding: 48px 24px; }
  .posts-grid { padding: 48px 24px; grid-template-columns: 1fr; }
  .pagination { padding: 0 24px 48px; }
  .post-header { padding: 48px 24px 36px; }
  .site-footer { padding: 36px 24px; }
  .footer-copy { text-align: left; }
}
@media (max-width: 600px) {
  .site-nav .nav-link span:not(.nav-arrow) { display: none; }
  .site-nav .nav-cta { padding: 8px 14px; font-size: 0.78rem; }
}
