@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Cormorant:wght@300;400;500;600;700&family=Noto+Serif+JP:wght@200;300;400;500&display=swap');

/*
Theme Name: Affipro Systems
Theme URI: https://affipro.jp
Author: アフィプロシステムズ合同会社
Author URI: https://affipro.jp
Description: アフィプロシステムズ合同会社 公式サイト カスタムテーマ
Version: 1.0.0
License: Private
Text Domain: affipro
*/

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --white:    #ffffff;
  --bg:       #faf9f7;
  --bg2:      #f4f1ed;
  --bg3:      #ede9e3;
  --red:      #c0271a;
  --red-l:    #d93a2b;
  --red-d:    #8c1a10;
  --orange:   #c96e14;
  --orange-l: #e08020;
  --text:     #1a1008;
  --text2:    #6b5a42;
  --text3:    #9c8a72;
  --border:   rgba(192,39,26,0.12);
  --borderO:  rgba(201,110,20,0.15);
  --sh:       0 2px 12px rgba(26,16,8,0.08);
  --shL:      0 4px 24px rgba(26,16,8,0.12);
  --radius:   12px;
  --radius-l: 16px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Noto Serif JP', 'Cormorant Garamond', serif;
  font-size: 15px;
  line-height: 1.85;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
ul { list-style: none; }

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4,
.en { font-family: 'Cormorant', 'Cormorant Garamond', serif; }

h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  font-weight: 500;
  line-height: 1.22;
  color: var(--text);
  letter-spacing: 0.02em;
}
h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 500;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}
h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}
h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.c-red    { color: var(--red); }
.c-orange { color: var(--orange); }
.c-ora-l  { color: var(--orange-l); }

/* ============================================
   LAYOUT HELPERS
   ============================================ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

section { padding: 5rem 0; }

.bg-white { background: var(--white); }
.bg2      { background: var(--bg2); }
.bg3      { background: var(--bg3); }
.bg-red   { background: var(--red); }

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--borderO), transparent);
  margin: 0 2rem;
}

/* ============================================
   SECTION LABELS
   ============================================ */
.section-tag {
  font-family: 'Cormorant Garamond', serif;
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  display: block;
  font-weight: 400;
}

.section-lead {
  color: var(--text2);
  max-width: 540px;
  margin-bottom: 3rem;
  font-size: 15px;
  line-height: 1.9;
}

/* ============================================
   BADGES
   ============================================ */
.badge {
  display: inline-block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 10px;
  padding: 3px 12px;
  border-radius: 2px;
  letter-spacing: 0.14em;
  margin-bottom: 0.9rem;
  font-weight: 400;
}
.badge-red    { background: rgba(192,39,26,0.1);  color: var(--red);    border: 1px solid rgba(192,39,26,0.25); }
.badge-orange { background: rgba(201,110,20,0.1); color: var(--orange); border: 1px solid rgba(201,110,20,0.3);  }
.badge-gray   { background: var(--bg3);           color: var(--text3);  border: 1px solid var(--borderO);        }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  font-weight: 400;
  padding: 13px 28px;
  border-radius: 4px;
  transition: opacity 0.2s, transform 0.15s;
  cursor: pointer;
  border: none;
  letter-spacing: 0.1em;
}
.btn:hover  { opacity: 0.88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary   { background: var(--red);    color: #fff; }
.btn-secondary { background: rgba(201,110,20,0.06); color: var(--orange); border: 1px solid rgba(201,110,20,0.4); }
.btn-white     { background: #fff;          color: var(--red); }
.btn-outline-white { background: rgba(255,255,255,0.08); color: #fff; border: 1.5px solid rgba(255,255,255,0.55); }

/* ============================================
   TAGS (chip)
   ============================================ */
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 1rem; }
.tag  {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid var(--borderO);
  color: var(--text3);
  background: var(--bg);
}

/* ============================================
   HEADER / NAV
   ============================================ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(26,16,8,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  gap: 1.5rem;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}
.site-logo img {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
}
.logo-texts .logo-name {
  font-family: 'Cormorant', serif;
  font-weight: 600;
  font-size: 17px;
  color: var(--text);
  letter-spacing: 0.12em;
  line-height: 1.2;
}
.logo-texts .logo-sub {
  font-size: 9.5px;
  color: var(--text3);
  letter-spacing: 0.06em;
  font-family: 'Noto Serif JP', serif;
  font-weight: 200;
}

/* Primary nav */
#primary-nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}
#primary-nav a {
  color: var(--text2);
  font-size: 13px;
  white-space: nowrap;
  transition: color 0.2s;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  letter-spacing: 0.05em;
}
#primary-nav a:hover,
#primary-nav a.current { color: var(--red); }

.header-cta {
  background: var(--red);
  color: #fff !important;
  padding: 9px 22px;
  border-radius: 4px;
  font-size: 12.5px;
  font-weight: 400;
  font-family: 'Cormorant Garamond', serif;
  white-space: nowrap;
  letter-spacing: 0.1em;
  transition: background 0.2s;
}
.header-cta:hover { background: var(--red-l) !important; color: #fff !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
#mobile-nav {
  display: none;
  position: fixed;
  inset: 68px 0 0 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(12px);
  z-index: 99;
  padding: 2rem;
  flex-direction: column;
  gap: 1.2rem;
  border-top: 1px solid var(--border);
}
#mobile-nav.open { display: flex; }
#mobile-nav a {
  font-size: 16px;
  color: var(--text2);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--borderO);
}
#mobile-nav .mobile-cta {
  display: inline-block;
  margin-top: 0.5rem;
  background: var(--red);
  color: #fff !important;
  padding: 13px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-family: 'Syne', sans-serif;
  text-align: center;
}

/* ============================================
   HERO
   ============================================ */
#hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 5rem 2rem;
  background: var(--white);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 65% at 18% 50%, rgba(192,39,26,0.07), transparent 60%),
    radial-gradient(ellipse 40% 45% at 85% 30%, rgba(201,110,20,0.06), transparent 55%);
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg,   transparent, transparent 59px, rgba(192,39,26,0.035) 59px, rgba(192,39,26,0.035) 60px),
    repeating-linear-gradient(90deg,  transparent, transparent 59px, rgba(201,110,20,0.025) 59px, rgba(201,110,20,0.025) 60px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.hero-content { max-width: 600px; flex: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(192,39,26,0.07);
  border: 1px solid rgba(192,39,26,0.2);
  border-radius: 2px;
  padding: 6px 18px;
  font-size: 10.5px;
  color: var(--red);
  margin-bottom: 1.8rem;
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 0.18em;
  font-weight: 400;
}
.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red-l);
  flex-shrink: 0;
}

.hero-title { margin-bottom: 1.2rem; }

.hero-sub {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.95;
  margin-bottom: 2rem;
  max-width: 490px;
}

.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero cards */
.hero-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-shrink: 0;
}
.hero-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px;
  min-width: 210px;
  box-shadow: var(--sh);
}
.hero-card-label {
  font-size: 9.5px;
  color: var(--text3);
  margin-bottom: 5px;
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 400;
}
.hero-card-val {
  font-family: 'Cormorant', serif;
  font-size: 23px;
  font-weight: 600;
  color: var(--orange-l);
}
.hero-card-val.red { color: var(--red); }
.hero-card-sub {
  font-size: 11px;
  color: var(--text3);
  margin-top: 3px;
  font-family: 'Noto Serif JP', serif;
  font-weight: 200;
}

/* ============================================
   SERVICE CARDS (3-col)
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--borderO);
  border-radius: var(--radius-l);
  padding: 1.8rem;
  box-shadow: var(--sh);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.service-card:hover {
  box-shadow: var(--shL);
  border-color: rgba(192,39,26,0.3);
}
.service-card.featured {
  border-color: rgba(192,39,26,0.35);
  border-width: 1.5px;
}

.service-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 1rem;
}
.icon-ai  { background: rgba(192,39,26,0.1); }
.icon-vx  { background: rgba(201,110,20,0.1); }
.icon-pc  { background: var(--bg3); }

.service-card h3 { margin-bottom: 0.7rem; font-size: 18px; font-family: 'Cormorant', serif; font-weight: 500; letter-spacing: 0.02em; }
.service-card p  { color: var(--text2); font-size: 13.5px; line-height: 1.9; font-weight: 300; font-family: 'Noto Serif JP', serif; }

/* ============================================
   VENDEX SECTION
   ============================================ */
.vendex-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.vendex-box {
  background: var(--white);
  border-radius: var(--radius-l);
  border: 1px solid var(--borderO);
  padding: 2rem;
  box-shadow: var(--sh);
}
.vendex-box h3 {
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  padding-bottom: 0.6rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.vendex-box.problem h3 { color: var(--red); border-color: var(--border); }
.vendex-box.flow    h3 { color: var(--orange); border-color: var(--borderO); }

/* Problem list */
.problem-list { display: flex; flex-direction: column; gap: 10px; }
.problem-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--text2);
}
.problem-x { color: var(--red); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.problem-note {
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--borderO);
  font-size: 14px;
  color: var(--text2);
}

/* Flow steps */
.flow-list  { display: flex; flex-direction: column; gap: 8px; }
.flow-step  {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg);
  border: 1px solid var(--borderO);
  border-radius: 10px;
  padding: 12px 14px;
}
.flow-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(192,39,26,0.12);
  border: 1px solid rgba(192,39,26,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  color: var(--red);
  flex-shrink: 0;
}
.flow-text strong { display: block; font-size: 13px; color: var(--text); }
.flow-text span   { font-size: 12px; color: var(--text3); }
.flow-arrow { text-align: center; color: var(--orange); font-size: 13px; margin: -2px 0; }

/* Vendex features 3-col */
.vendex-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 2.5rem;
}
.vendex-feat {
  background: var(--white);
  border: 1px solid var(--borderO);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--sh);
}
.vendex-feat-icon { font-size: 22px; margin-bottom: 0.6rem; }
.vendex-feat h4   { font-size: 14px; margin-bottom: 0.4rem; }
.vendex-feat p    { font-size: 13px; color: var(--text2); line-height: 1.65; }

/* Vendex pricing */
.vendex-pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.price-card {
  background: var(--white);
  border-radius: 14px;
  padding: 1.8rem;
  box-shadow: var(--sh);
}
.price-card.main { border: 1.5px solid rgba(192,39,26,0.35); }
.price-card.sub  { border: 1px solid var(--borderO); }

.price-card-label {
  font-size: 11px;
  color: var(--text3);
  font-family: 'Syne', sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}
.price-card-name {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.6rem;
}
.price-card-amount {
  font-family: 'Syne', sans-serif;
  font-size: 30px;
  font-weight: 800;
  color: var(--red);
}
.price-card-amount.orange { color: var(--orange); font-size: 22px; }
.price-card-unit { font-size: 13px; color: var(--text3); }
.price-card-desc { font-size: 13px; color: var(--text2); margin-top: 0.8rem; line-height: 1.7; }

.price-card-items { margin-top: 1rem; display: flex; flex-direction: column; gap: 6px; }
.price-card-item  {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--text2);
}
.price-card-item::before { content: "✓"; color: var(--orange); font-weight: 700; flex-shrink: 0; }

/* ============================================
   AI HP SECTION
   ============================================ */
.ai-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 2rem;
}
.ai-feat {
  background: var(--white);
  border: 1px solid var(--borderO);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--sh);
}
.ai-feat-icon { font-size: 22px; margin-bottom: 0.7rem; }
.ai-feat h4   { font-size: 14px; margin-bottom: 0.4rem; }
.ai-feat p    { font-size: 13px; color: var(--text2); line-height: 1.6; }

/* Price row */
.price-row {
  background: var(--white);
  border: 1.5px solid rgba(192,39,26,0.2);
  border-radius: var(--radius-l);
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  box-shadow: var(--sh);
}
.price-row-item { flex: 1; min-width: 150px; }
.price-row-label { font-size: 12px; color: var(--text3); margin-bottom: 4px; }
.price-row-val  {
  font-family: 'Syne', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--red);
}
.price-row-unit { font-size: 13px; color: var(--text3); }
.price-row-div  { width: 1px; height: 52px; background: var(--borderO); }

/* ============================================
   WORKS GRID
   ============================================ */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.work-card {
  background: var(--white);
  border: 1px solid var(--borderO);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--sh);
  transition: box-shadow 0.2s;
}
.work-card:hover { box-shadow: var(--shL); }
.work-thumb {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: var(--bg2);
  overflow: hidden;
}
.work-thumb img { width: 100%; height: 100%; object-fit: cover; }
.work-info      { padding: 12px 14px; }
.work-info strong { display: block; font-size: 13px; margin-bottom: 2px; color: var(--text); }
.work-info p      { font-size: 12px; color: var(--text3); }

/* ============================================
   PC DOCK SECTION
   ============================================ */
.pc-wrap {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: start;
}
.pc-label {
  display: inline-block;
  background: rgba(201,110,20,0.1);
  border: 1px solid rgba(201,110,20,0.3);
  color: var(--orange);
  font-size: 11px;
  padding: 5px 14px;
  border-radius: 20px;
  font-family: 'Syne', sans-serif;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.pc-list { display: flex; flex-direction: column; gap: 9px; margin-top: 0.5rem; }
.pc-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text2);
}
.pc-list-item::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}
.pc-note { margin-top: 1.4rem; font-size: 13px; color: var(--text3); line-height: 1.9; }

/* ============================================
   CTA SECTION
   ============================================ */
#cta {
  background: var(--red);
  text-align: center;
  padding: 5rem 2rem;
}
#cta .section-tag { color: rgba(255,255,255,0.6); }
#cta h2 { color: #fff; }
#cta p  { color: rgba(255,255,255,0.82); margin-bottom: 2rem; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================
   FOOTER
   ============================================ */
#site-footer {
  background: var(--text);
  padding: 3.5rem 0 1.5rem;
  color: #f0ebe4;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
}
.footer-logo img    { width: 38px; height: 38px; border-radius: 4px; }
.footer-logo-name   { font-family: 'Cormorant', serif; font-weight: 600; font-size: 15px; color: #f0ebe4; line-height: 1.2; letter-spacing: 0.1em; }
.footer-logo-sub    { font-size: 9.5px; color: var(--text3); font-weight: 200; font-family: 'Noto Serif JP', serif; }
.footer-about p     { font-size: 13px; color: var(--text3); line-height: 2; font-weight: 200; font-family: 'Noto Serif JP', serif; }

.footer-col h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 10px;
  font-weight: 500;
  margin-bottom: 1.1rem;
  color: var(--orange-l);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.footer-col ul  { display: flex; flex-direction: column; gap: 8px; }
.footer-col a   { color: var(--text3); font-size: 13px; font-weight: 200; font-family: 'Noto Serif JP', serif; }
.footer-col a:hover { color: var(--orange-l); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom p { font-size: 12px; color: #6b5a42; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 960px) {
  .services-grid,
  .vendex-features,
  .works-grid,
  .footer-top { grid-template-columns: repeat(2, 1fr); }

  .vendex-top,
  .vendex-pricing,
  .pc-wrap { grid-template-columns: 1fr; }

  .ai-features { grid-template-columns: repeat(2, 1fr); }

  .hero-cards { display: none; }
  .hero-inner { display: block; }

  .price-row { flex-direction: column; gap: 1.2rem; }
  .price-row-div { display: none; }
}

@media (max-width: 640px) {
  #primary-nav { display: none; }
  .header-cta  { display: none; }
  .hamburger   { display: flex; }

  .services-grid,
  .vendex-features,
  .ai-features,
  .works-grid,
  .footer-top { grid-template-columns: 1fr; }

  section { padding: 3.5rem 0; }
  #hero   { padding: 4rem 1.5rem; min-height: auto; }
  .container { padding: 0 1.5rem; }
}

/* ============================================
   PAGE HERO（内部ページ共通）
   ============================================ */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 2rem 4rem;
  background: var(--white);
  border-bottom: 1px solid var(--borderO);
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 10% 60%, rgba(176,32,24,0.06), transparent 60%),
    radial-gradient(ellipse 40% 50% at 90% 20%, rgba(184,96,16,0.05), transparent 55%);
  pointer-events: none;
}
.page-hero-inner { position: relative; }
.page-hero-title {
  font-family: 'Cormorant', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.02em;
  margin-bottom: 0.8rem;
}
.page-hero-sub {
  font-size: 15px;
  color: var(--text2);
  font-family: 'Noto Serif JP', serif;
  font-weight: 300;
  line-height: 1.9;
}

/* ============================================
   TOPページ追加スタイル
   ============================================ */
/* お知らせ */
.news-list { display: flex; flex-direction: column; gap: 0; }
.news-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--borderO);
  text-decoration: none;
  color: var(--text);
  transition: color 0.2s;
  flex-wrap: wrap;
}
.news-item:hover { color: var(--red); }
.news-date {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  color: var(--text3);
  white-space: nowrap;
  letter-spacing: 0.05em;
}
.news-cat {
  font-size: 10px;
  padding: 2px 10px;
  border-radius: 2px;
  background: rgba(184,96,16,0.09);
  color: var(--orange);
  border: 1px solid rgba(184,96,16,0.25);
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.news-title {
  flex: 1;
  font-size: 14px;
  font-family: 'Noto Serif JP', serif;
  font-weight: 300;
}
.news-arrow {
  color: var(--orange);
  font-size: 13px;
  flex-shrink: 0;
  font-family: 'Cormorant Garamond', serif;
}

/* 選ばれる理由 */
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.reason-card {
  background: var(--white);
  border: 1px solid var(--borderO);
  border-radius: 4px;
  padding: 1.8rem 1.5rem;
  box-shadow: var(--sh);
  transition: box-shadow 0.2s;
}
.reason-card:hover { box-shadow: var(--shL); }
.reason-num {
  font-family: 'Cormorant', serif;
  font-size: 36px;
  font-weight: 300;
  color: var(--red);
  opacity: 0.35;
  line-height: 1;
  margin-bottom: 0.8rem;
  letter-spacing: -0.02em;
}
.reason-card h3 {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 0.6rem;
  font-family: 'Cormorant', serif;
  letter-spacing: 0.02em;
}
.reason-card p {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.85;
  font-family: 'Noto Serif JP', serif;
  font-weight: 300;
}

/* サービスカード（4枚グリッド対応）*/
.services-grid {
  grid-template-columns: repeat(4, 1fr);
}
.card-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 12.5px;
  color: var(--orange);
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.card-link:hover { color: var(--red); }
.center-link { text-align: center; }
.text-link {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  color: var(--orange);
  letter-spacing: 0.06em;
  transition: color 0.2s;
}
.text-link:hover { color: var(--red); }

/* ============================================
   サービス詳細ページ
   ============================================ */
.service-detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3.5rem;
  align-items: start;
}
.service-detail-layout.reverse { grid-template-columns: 1fr; }

.detail-features { display: flex; flex-direction: column; gap: 1.2rem; margin: 2rem 0; }
.detail-feat {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.2rem;
  background: var(--bg);
  border: 1px solid var(--borderO);
  border-radius: 4px;
}
.feat-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.detail-feat h4 { font-size: 14px; font-weight: 500; margin-bottom: 0.3rem; font-family: 'Cormorant', serif; letter-spacing: 0.02em; }
.detail-feat p  { font-size: 13px; color: var(--text2); line-height: 1.75; font-family: 'Noto Serif JP', serif; font-weight: 300; }

.price-box-sm {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  background: var(--white);
  border: 1.5px solid rgba(176,32,24,0.2);
  border-radius: 4px;
  padding: 1.5rem 2rem;
  box-shadow: var(--sh);
}
.pbsm-item { flex: 1; min-width: 120px; }
.pbsm-label { display: block; font-size: 11px; color: var(--text3); font-family: 'Cormorant Garamond', serif; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 4px; }
.pbsm-val { font-family: 'Cormorant', serif; font-size: 22px; font-weight: 600; color: var(--red); }

.visual-card {
  background: var(--bg2);
  border: 1px solid var(--borderO);
  border-radius: 4px;
  padding: 2.5rem 2rem;
  box-shadow: var(--sh);
}

/* ============================================
   会社情報ページ
   ============================================ */
.greeting-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3.5rem;
  align-items: start;
}
.photo-placeholder {
  background: var(--bg2);
  border: 1px solid var(--borderO);
  border-radius: 4px;
  padding: 3rem 2rem;
  text-align: center;
  margin-bottom: 1rem;
}
.greeting-name { text-align: center; }
.greeting-pos { display: block; font-size: 11px; color: var(--text3); font-family: 'Cormorant Garamond', serif; letter-spacing: 0.1em; margin-bottom: 4px; }
.greeting-nm  { display: block; font-family: 'Cormorant', serif; font-size: 20px; font-weight: 500; color: var(--text); letter-spacing: 0.06em; }
.greeting-text p { font-size: 14.5px; color: var(--text2); line-height: 2.1; margin-bottom: 1.2rem; font-family: 'Noto Serif JP', serif; font-weight: 300; }
.greeting-sign { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--borderO); font-size: 13.5px; color: var(--text2); font-family: 'Noto Serif JP', serif; font-weight: 300; line-height: 1.9; }
.greeting-sign strong { font-family: 'Cormorant', serif; font-weight: 500; font-size: 16px; }

.philosophy-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
.philosophy-catch {
  font-family: 'Cormorant', serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 500;
  color: var(--red);
  line-height: 1.4;
  margin-bottom: 1.2rem;
  letter-spacing: 0.02em;
  border-left: 3px solid var(--red);
  padding-left: 1rem;
}
.philosophy-values { display: flex; flex-direction: column; gap: 16px; }
.value-card {
  background: var(--white);
  border: 1px solid var(--borderO);
  border-radius: 4px;
  padding: 1.4rem 1.6rem;
  box-shadow: var(--sh);
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}
.value-num { font-family: 'Cormorant', serif; font-size: 28px; font-weight: 300; color: var(--orange); opacity: 0.5; line-height: 1; flex-shrink: 0; }
.value-card h4 { font-size: 15px; font-weight: 500; margin-bottom: 0.3rem; font-family: 'Cormorant', serif; }
.value-card p  { font-size: 13px; color: var(--text2); line-height: 1.8; font-family: 'Noto Serif JP', serif; font-weight: 300; }

.company-table-wrap { overflow-x: auto; }
.company-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Noto Serif JP', serif;
  font-size: 14px;
  font-weight: 300;
}
.company-table th, .company-table td {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--borderO);
  text-align: left;
  vertical-align: top;
  line-height: 1.8;
}
.company-table th {
  width: 180px;
  color: var(--text3);
  font-weight: 400;
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 0.04em;
  background: var(--bg2);
  white-space: nowrap;
}
.company-table td { color: var(--text2); }
.company-table a { color: var(--orange); }

/* ============================================
   修理事例グリッド
   ============================================ */
.repair-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.repair-card {
  background: var(--white);
  border: 1px solid var(--borderO);
  border-radius: 4px;
  padding: 1.6rem;
  box-shadow: var(--sh);
}
.repair-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.repair-card-header h3 { font-family: 'Cormorant', serif; font-size: 16px; font-weight: 500; letter-spacing: 0.02em; }
.repair-date { font-size: 11px; color: var(--text3); font-family: 'Cormorant Garamond', serif; white-space: nowrap; }
.repair-meta { display: flex; gap: 0.8rem; margin-bottom: 0.5rem; font-size: 13px; }
.repair-label { font-size: 10px; color: var(--orange); border: 1px solid rgba(184,96,16,0.3); padding: 1px 8px; border-radius: 2px; font-family: 'Cormorant Garamond', serif; letter-spacing: 0.06em; white-space: nowrap; align-self: flex-start; margin-top: 1px; }
.repair-excerpt { font-size: 13px; color: var(--text2); line-height: 1.8; font-family: 'Noto Serif JP', serif; font-weight: 300; margin-top: 0.8rem; }

/* ============================================
   お知らせ詳細ページ
   ============================================ */
.news-list-full { display: flex; flex-direction: column; gap: 0; }
.news-article { border-bottom: 1px solid var(--borderO); }
.news-article-link { display: block; padding: 1.8rem 0; text-decoration: none; color: var(--text); transition: color 0.2s; }
.news-article-link:hover { color: var(--red); }
.news-article-meta { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.5rem; }
.news-article-title { font-family: 'Cormorant', serif; font-size: 18px; font-weight: 500; letter-spacing: 0.02em; margin-bottom: 0.5rem; line-height: 1.4; }
.news-article-excerpt { font-size: 13px; color: var(--text2); line-height: 1.85; font-family: 'Noto Serif JP', serif; font-weight: 300; }

.single-content {
  font-family: 'Noto Serif JP', serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 2;
  color: var(--text2);
}
.single-content h2 { font-family: 'Cormorant', serif; font-size: 22px; font-weight: 500; color: var(--text); margin: 2rem 0 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--borderO); }
.single-content h3 { font-family: 'Cormorant', serif; font-size: 18px; font-weight: 500; color: var(--text); margin: 1.5rem 0 0.8rem; }
.single-content p  { margin-bottom: 1.2rem; }
.single-content a  { color: var(--orange); }

/* ============================================
   お問い合わせページ
   ============================================ */
.contact-info-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 3rem;
}
.contact-info-card {
  background: var(--bg2);
  border: 1px solid var(--borderO);
  border-radius: 4px;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--sh);
}
.contact-info-label { font-size: 11px; color: var(--text3); font-family: 'Cormorant Garamond', serif; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.5rem; display: block; }
.contact-tel  { display: block; font-family: 'Cormorant', serif; font-size: 28px; font-weight: 600; color: var(--red); letter-spacing: 0.04em; margin-bottom: 0.3rem; }
.contact-mail { display: block; font-family: 'Cormorant Garamond', serif; font-size: 16px; color: var(--orange); margin-bottom: 0.3rem; }
.contact-info-note { font-size: 12px; color: var(--text3); font-family: 'Noto Serif JP', serif; font-weight: 200; }

.contact-form-wrap { background: var(--white); border: 1px solid var(--borderO); border-radius: 4px; padding: 2.5rem; box-shadow: var(--sh); }

/* フォームスタイル */
.fallback-form .form-group { margin-bottom: 1.4rem; }
.fallback-form label { display: block; font-size: 13px; color: var(--text2); font-family: 'Noto Serif JP', serif; font-weight: 300; margin-bottom: 0.4rem; }
.fallback-form .required { color: var(--red); }
.fallback-form input[type="text"],
.fallback-form input[type="email"],
.fallback-form input[type="tel"],
.fallback-form input[type="url"],
.fallback-form select,
.fallback-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--borderO);
  border-radius: 4px;
  font-size: 14px;
  font-family: 'Noto Serif JP', serif;
  font-weight: 300;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s;
  -webkit-appearance: none;
}
.fallback-form input:focus,
.fallback-form select:focus,
.fallback-form textarea:focus { outline: none; border-color: rgba(184,96,16,0.5); background: var(--white); }
.fallback-form textarea { resize: vertical; }
.form-check { margin-bottom: 1.4rem; font-size: 13px; color: var(--text2); font-family: 'Noto Serif JP', serif; font-weight: 300; display: flex; align-items: flex-start; gap: 8px; }
.form-check input { margin-top: 3px; flex-shrink: 0; }
.form-check a { color: var(--orange); }

/* プライバシーポリシー */
.privacy-content h3 { font-family: 'Cormorant', serif; font-size: 18px; font-weight: 500; color: var(--text); margin: 2rem 0 0.8rem; padding-left: 0.8rem; border-left: 3px solid var(--orange); }
.privacy-content p  { font-size: 14px; color: var(--text2); line-height: 2.1; margin-bottom: 1rem; font-family: 'Noto Serif JP', serif; font-weight: 300; }

/* ページネーション */
.pagination { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 3rem; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 4px;
  border: 1px solid var(--borderO);
  font-size: 13px; font-family: 'Cormorant Garamond', serif;
  color: var(--text2); text-decoration: none;
  transition: all 0.2s;
}
.pagination .current { background: var(--red); color: #fff; border-color: var(--red); }
.pagination a:hover  { border-color: var(--orange); color: var(--orange); }

/* ============================================
   RESPONSIVE 追加
   ============================================ */
@media (max-width: 960px) {
  .reasons-grid     { grid-template-columns: repeat(2, 1fr); }
  .services-grid    { grid-template-columns: repeat(2, 1fr); }
  .repair-grid      { grid-template-columns: repeat(2, 1fr); }
  .greeting-layout  { grid-template-columns: 1fr; }
  .philosophy-layout { grid-template-columns: 1fr; }
  .contact-info-row { grid-template-columns: 1fr; }
  .service-detail-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .reasons-grid   { grid-template-columns: 1fr; }
  .services-grid  { grid-template-columns: 1fr; }
  .repair-grid    { grid-template-columns: 1fr; }
  .price-box-sm   { flex-direction: column; gap: 0.8rem; }
}
