/*
Theme Name: 弥生法務サポート
Theme URI: https://yayoi-legal.com
Author: 弥生法務サポート
Description: 行政書士向けアウトソーシングサービスサイト用テーマ
Version: 1.2.0
License: GNU General Public License v2 or later
Text Domain: yayoi-legal
*/

/* ======================================================
   CSS Variables
====================================================== */
:root {
  --color-bg: #f5f7f4;
  --color-surface: #f5f7f4;
  --color-text-primary: #2a2a28;
  --color-text-secondary: #5a5a56;
  --color-text-muted: #9a9a94;
  --color-border: #deded8;
  --color-border-light: #eaeae4;
  --color-accent: #4a7a40;
  --color-link: #4a7a40;
  --color-hero-bg: #eef2eb;
  --font-serif: 'Noto Serif JP', serif;
  --font-sans: 'Noto Sans JP', sans-serif;
  --max-width: 820px;
  --spacing-section: 80px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: #f5f7f4 !important;
  color: var(--color-text-primary);
  line-height: 1.85;
  font-size: 15px;
  font-weight: 300;
}

a { color: var(--color-link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ======================================================
   Navigation
====================================================== */
nav#site-nav {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo-icon {
  height: 36px;
  width: 36px;
  object-fit: contain;
  flex-shrink: 0;
}
.nav-logo-text {
  height: 22px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  flex-shrink: 0;
  mix-blend-mode: multiply;
}
.nav-logo:hover { text-decoration: none; opacity: 0.85; }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.nav-links a {
  font-size: 13px;
  color: var(--color-text-secondary);
  letter-spacing: 0.03em;
  font-weight: 300;
}

.nav-links a:hover {
  color: var(--color-text-primary);
  text-decoration: none;
}

/* ======================================================
   News Bar
====================================================== */
.news-bar {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 60px;
  z-index: 90;
}

/* トップページ：ヒーロー下のインライン配置（sticky解除） */
.news-bar--inline {
  position: static;
  top: auto;
  border-top: 1px solid var(--color-border-light);
}

.news-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 0;
  align-items: start;
}

.news-bar-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
  text-transform: uppercase;
  font-weight: 400;
  padding: 14px 0 0;
  border-right: 1px solid var(--color-border-light);
  display: block;
}

.news-bar-body { padding-left: 24px; }

.news-item {
  display: grid;
  grid-template-columns: 96px 56px 1fr;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border-light);
  align-items: baseline;
}

.news-item:last-of-type { border-bottom: none; }

.news-date {
  font-size: 11px;
  color: var(--color-text-muted);
  font-weight: 300;
  letter-spacing: 0.03em;
  white-space: nowrap;
  padding-top: 1px;
}

.news-badge {
  font-size: 10px;
  padding: 1px 7px;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-weight: 300;
  white-space: nowrap;
  letter-spacing: 0.04em;
  border-radius: 2px;
}

.news-badge.badge-info  { border-color: #4a6741; color: #4a6741; }
.news-badge.badge-alert { border-color: #8a6030; color: #8a6030; }

.news-text {
  font-size: 13px;
  color: var(--color-text-secondary);
  font-weight: 300;
  line-height: 1.65;
}

.news-empty {
  padding: 12px 0;
  font-size: 12px;
  color: var(--color-text-muted);
  font-weight: 300;
}

.news-item.news-hidden { display: none; }
.news-item.news-hidden.news-expanded { display: grid; }

.news-more-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-top: 1px solid var(--color-border-light);
  padding: 8px 0;
  font-size: 11px;
  color: var(--color-text-muted);
  font-family: var(--font-sans);
  font-weight: 300;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: color 0.15s;
}
.news-more-btn:hover { color: var(--color-text-secondary); }

/* ======================================================
   Layout
====================================================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  background: #f5f7f4;
}

/* ======================================================
   Hero
====================================================== */
.hero-image-wrap {
  position: relative;
  width: 100%;
  height: clamp(160px, 30vw, 340px);
  overflow: hidden;
  background: var(--color-hero-bg);
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.75;
  display: block;
}

.hero-image-caption {
  position: absolute;
  bottom: 12px;
  right: 16px;
  font-size: 10px;
  color: rgba(255,255,255,0.8);
  font-weight: 300;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.hero-wrap {
  width: 100%;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border-light);
}

.hero {
  padding: 64px 32px 64px;
  max-width: var(--max-width);
  margin: 0 auto;
  background: transparent;
}

.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
  font-weight: 300;
  margin-bottom: 28px;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--color-text-primary);
  margin-bottom: 32px;
  letter-spacing: 0.02em;
}

.hero-body {
  font-size: 15px;
  color: var(--color-text-secondary);
  max-width: 540px;
  line-height: 2;
  font-weight: 300;
}

/* ======================================================
   Sections
====================================================== */
section {
  padding: var(--spacing-section) 0;
  border-bottom: 1px solid var(--color-border-light);
}

section:last-of-type { border-bottom: none; }

.section-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
  text-transform: uppercase;
  margin-bottom: 36px;
  font-weight: 400;
}

h1.page-title,
h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 300;
  color: var(--color-text-primary);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
  line-height: 1.6;
}

h1.page-title {
  font-size: 28px;
  margin-bottom: 12px;
  line-height: 1.5;
}

h3 {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

p {
  color: var(--color-text-secondary);
  margin-bottom: 16px;
  font-weight: 300;
}

p:last-child { margin-bottom: 0; }

.page-subtitle {
  font-size: 14px;
  color: var(--color-text-muted);
  font-weight: 300;
  margin-bottom: 56px;
}

/* ======================================================
   Strengths Grid
====================================================== */
.strengths-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  margin-top: 40px;
}

.strength-item {
  background: var(--color-surface);
  padding: 32px 28px;
}

.strength-number {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 300;
  color: var(--color-text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.strength-unit {
  font-size: 13px;
  color: var(--color-text-muted);
  font-weight: 300;
}

.strength-desc {
  font-size: 13px;
  color: var(--color-text-secondary);
  font-weight: 300;
  line-height: 1.7;
  margin-top: 8px;
}

/* ======================================================
   Service List
====================================================== */
.service-list {
  margin-top: 36px;
  border-top: 1px solid var(--color-border);
}

.service-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border-light);
  align-items: baseline;
}

.service-category {
  font-size: 12px;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  font-weight: 300;
  padding-top: 2px;
}

.service-detail {
  font-size: 14px;
  color: var(--color-text-secondary);
  font-weight: 300;
  line-height: 1.75;
}

/* ======================================================
   CTA
====================================================== */
.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-link);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: opacity 0.2s;
}

.cta-link:hover { opacity: 0.7; text-decoration: none; }
.cta-link::after { content: '→'; font-size: 12px; }

.cta-box {
  margin-top: 56px;
  padding: 36px 32px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

.cta-box p {
  font-size: 13px;
  margin-bottom: 16px;
  color: var(--color-text-secondary);
}

/* ======================================================
   Flow
====================================================== */
.flow-list {
  margin-top: 36px;
  counter-reset: flow;
}

.flow-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--color-border-light);
  align-items: start;
}

.flow-num {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 300;
  color: var(--color-text-muted);
  padding-top: 2px;
}

/* ======================================================
   Price Table
====================================================== */
.price-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 32px;
  font-size: 14px;
}

.price-table th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 400;
  color: var(--color-text-muted);
  font-size: 12px;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
}

.price-table td {
  padding: 16px 16px;
  border-bottom: 1px solid var(--color-border-light);
  vertical-align: top;
  font-weight: 300;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.price-table tr:last-child td { border-bottom: none; }

.price-note {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 16px;
  font-weight: 300;
  line-height: 1.9;
}

/* ======================================================
   FAQ
====================================================== */
.faq-list { margin-top: 36px; }

.faq-item {
  padding: 28px 0;
  border-bottom: 1px solid var(--color-border-light);
}

.faq-q {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: 14px;
  line-height: 1.6;
}

.faq-a {
  font-size: 14px;
  color: var(--color-text-secondary);
  font-weight: 300;
  line-height: 1.9;
}

/* ======================================================
   Profile
====================================================== */
.profile-block { margin-top: 40px; }

.profile-name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 300;
  margin-bottom: 4px;
}

.profile-title {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 32px;
  font-weight: 300;
}

/* ======================================================
   Contact
====================================================== */
.contact-intro {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 40px;
  font-weight: 300;
  line-height: 2;
  max-width: 520px;
}

.contact-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
}

.contact-option {
  background: var(--color-surface);
  padding: 36px 28px;
}

.contact-option h3 { margin-bottom: 12px; }
.contact-option p { font-size: 13px; margin-bottom: 20px; }

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--color-text-primary);
  color: white;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.05em;
  transition: opacity 0.2s;
}

.contact-btn:hover { opacity: 0.75; text-decoration: none; color: white; }
.contact-btn.line { background: #06C755; }

.notice-text {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 28px;
  font-weight: 300;
  line-height: 1.9;
}

/* ======================================================
   Privacy
====================================================== */
.privacy-content h3 {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 400;
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--color-text-primary);
}

.privacy-content p,
.privacy-content li {
  font-size: 14px;
  color: var(--color-text-secondary);
  font-weight: 300;
  line-height: 2;
  margin-bottom: 12px;
}

.privacy-content ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

/* ======================================================
   Divider
====================================================== */
.divider {
  height: 1px;
  background: var(--color-border-light);
  margin: 40px 0;
}

/* ======================================================
   Footer
====================================================== */
footer#site-footer {
  background: #f0f2ee;
  border-top: 1px solid var(--color-border);
  padding: 48px 32px 32px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.footer-left {}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--color-text-primary);
  font-weight: 400;
  display: block;
  margin-bottom: 16px;
}

.footer-address {
  font-size: 12px;
  color: var(--color-text-muted);
  font-weight: 300;
  line-height: 2;
}

.footer-address a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.footer-privacy {
  font-size: 12px;
  color: var(--color-text-muted);
  font-weight: 300;
  text-decoration: none;
  letter-spacing: 0.03em;
  margin-top: 4px;
  display: inline-block;
}
.footer-privacy:hover { color: var(--color-text-secondary); text-decoration: none; }

.footer-nav {
  max-width: var(--max-width);
  margin: 20px auto 0;
  border-top: 1px solid var(--color-border-light);
  padding-top: 20px;
}

.footer-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  list-style: none;
}

.footer-nav-links a {
  font-size: 12px;
  color: var(--color-text-muted);
  font-weight: 300;
  text-decoration: none;
}
.footer-nav-links a:hover { color: var(--color-text-secondary); }

.footer-copy {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-top: 24px;
  text-align: center;
  font-weight: 300;
}

/* ======================================================
   Toast
====================================================== */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--color-text-primary);
  color: white;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 999;
  border-radius: 2px;
}
.toast.show { opacity: 1; }

/* ======================================================
   Page layout (WordPress pages)
====================================================== */
.page-wrap {
  padding-top: 64px;
  padding-bottom: 80px;
}

/* ======================================================
   Responsive
====================================================== */
@media (max-width: 640px) {
  .strengths-grid { grid-template-columns: 1fr; }
  .contact-options { grid-template-columns: 1fr; }
  .service-item { grid-template-columns: 1fr; gap: 6px; }
  .hero-title { font-size: 24px; }

  /* ヘッダー：ロゴ上段・メニュー下段の2段構造 */
  .nav-inner {
    flex-direction: column;
    height: auto;
    padding: 12px 16px 0;
    align-items: flex-start;
  }
  .nav-logo {
    padding: 0 0 10px;
  }
  .nav-links {
    display: flex !important;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 20px;
    padding: 10px 0 12px;
    width: 100%;
    border-top: 1px solid var(--color-border-light);
  }
  .nav-links::-webkit-scrollbar { display: none; }

  .news-item { grid-template-columns: 90px 1fr; }
  .news-badge { display: none; }

  .footer-inner { flex-direction: column; gap: 16px; }
}

/* ── 依頼フォームCTAボックス ─────────────────── */
.request-cta-box {
  text-align: center;
  padding: 56px 32px;
  border: 1px solid var(--color-border);
  background: #fff;
}
.request-cta-label {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--color-text-muted);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.request-cta-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 300;
  color: var(--color-text-primary);
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}
.request-cta-desc {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 2;
  margin-bottom: 28px;
}
.request-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 40px;
  background: var(--color-text-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-decoration: none;
  border-radius: 2px;
  transition: opacity 0.2s;
}
.request-cta-btn:hover { opacity: 0.75; color: #fff; text-decoration: none; }
.request-cta-btn::after { content: '→'; font-size: 12px; }

/* ── お問い合わせページ 依頼フォーム導線 ────── */
.yc-request-lead {
  margin-top: 2.5rem;
  padding: 2rem 2rem;
  background: #f5f7f4;
  border: 1px solid #deded8;
  border-radius: 4px;
  text-align: center;
}
.yc-request-lead p {
  font-size: 13px;
  color: #5a5a56;
  line-height: 2;
  margin-bottom: 16px;
}
.yc-request-lead-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 32px;
  background: #2a2a28;
  color: #fff;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-decoration: none;
  border-radius: 2px;
  transition: opacity 0.2s;
}
.yc-request-lead-btn:hover { opacity: 0.75; color: #fff; text-decoration: none; }
.yc-request-lead-btn::after { content: '→'; font-size: 12px; }

@media (max-width: 640px) {
  .request-cta-box { padding: 40px 20px; }
  .request-cta-btn { width: 100%; justify-content: center; }
  .yc-request-lead-btn { width: 100%; justify-content: center; }
}
