/*
Theme Name: Buffie Theme
Description: Buffie Inc. custom theme
Version: 1.0.0
Author: Buffie Inc.
Text Domain: buffie-theme
*/
:root {
    --color-primary: #ff1926;
    --color-text:    #3a3a3a;
    --color-bg:      #ffffff;
    --color-border:  #e0e0e0;
    --font-main:     'Noto Sans JP', sans-serif;
    --max-width:     1200px;
    --header-height: 80px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: var(--font-main); color: var(--color-text); background: var(--color-bg); line-height: 1.8; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
/* HEADER */
.site-header, #masthead { position: fixed !important; top: 0 !important; left: 0 !important; width: 100% !important; height: var(--header-height) !important; background: #fff !important; border-bottom: 1px solid var(--color-border) !important; z-index: 1000 !important; display: flex !important; align-items: center !important; padding: 0 !important; }
.header-inner { max-width: 100% !important; margin: 0 !important; padding: 0 40px !important; width: 100% !important; display: flex !important; align-items: center !important; justify-content: space-between !important; }
.site-logo { display: flex !important; align-items: center !important; flex: 0 0 auto !important; }
.site-logo img { height: 32px !important; width: auto !important; display: block !important; }
.site-nav { display: flex !important; align-items: center !important; gap: 32px !important; list-style: none !important; margin: 0 !important; padding: 0 !important; }
.site-nav a { font-size: 13px !important; font-weight: 600 !important; color: var(--color-text) !important; letter-spacing: 0.08em !important; white-space: nowrap !important; }
.site-nav a:hover { color: var(--color-primary) !important; }
.site-nav a.active { color: var(--color-primary) !important; border-bottom: 2px solid var(--color-primary); padding-bottom: 2px; }
.page-body { padding-top: var(--header-height) !important; }
/* HAMBURGER */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--color-text); transition: all 0.3s; }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav { display: none; position: fixed; top: var(--header-height); left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--color-border); z-index: 999; padding: 20px 0; }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 14px 40px; font-size: 15px; font-weight: 500; border-bottom: 1px solid var(--color-border); }
@media (max-width: 768px) { .header-inner { padding: 0 20px !important; } .site-nav { display: none !important; } .hamburger { display: flex !important; } .site-logo img { height: 28px !important; } }
/* CONTACT BANNER */
.contact-banner { position: relative; height: 200px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.contact-banner-bg { position: absolute; inset: 0; }
.contact-banner-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; filter: sepia(60%) saturate(120%) brightness(0.55); }
.contact-banner-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.30); }
.contact-banner-inner { position: relative; z-index: 1; color: #fff; display: flex; justify-content: space-between; align-items: center; width: 1200px; max-width: 100%; padding: 0 48px; box-sizing: border-box; }
.contact-banner-left { display: flex; flex-direction: column; gap: 4px; }
.contact-banner-hours { font-size: 15px; color: rgba(255,255,255,0.90); letter-spacing: 0.08em; }
.contact-banner-right { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.contact-banner-btn { display: inline-flex; align-items: center; gap: 16px; font-size: 36px; font-weight: 700; color: #fff; letter-spacing: 0.18em; transition: opacity 0.2s; line-height: 1; }
.contact-banner-btn:hover { opacity: 0.8; }
.contact-banner-sub { font-size: 13px; color: rgba(255,255,255,0.70); letter-spacing: 0.06em; }
@media (max-width: 768px) { .contact-banner { height: 180px; } .contact-banner-inner { flex-direction: column; justify-content: center; gap: 12px; padding: 0 20px; } .contact-banner-right { align-items: flex-start; } .contact-banner-btn { font-size: 26px; } .contact-banner-hours { font-size: 13px; } }
/* FOOTER */
.site-footer { position: relative; color: #ccc; padding: 48px 0 28px; background: #1a1a1a; }
.site-footer::before { display: none; }
.footer-inner { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 0 48px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 24px; }
.footer-logo { display: flex; flex-direction: row; align-items: center; gap: 16px; }
.footer-logo img { height: 56px; width: auto; display: block; }
.footer-logo p { font-size: 13px; color: #888; margin: 0; line-height: 1; }
.footer-nav { display: flex; flex-direction: column; align-items: flex-start; }
.footer-nav a { display: block; font-size: 15px; color: #bbb; padding: 5px 0; transition: color 0.2s; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal a { font-size: 12px; color: #666; transition: color 0.2s; }
.footer-legal a:hover { color: #aaa; }
.footer-copy { font-size: 12px; color: #555; }
@media (max-width: 768px) { .footer-inner { padding: 0 20px; } .footer-top { flex-direction: column; gap: 24px; } .footer-bottom { flex-direction: column; align-items: flex-start; } }
/* NINJA FORMS */
.nf-form-content .nf-form-title h3 { font-family: 'Noto Sans JP', sans-serif !important; font-size: clamp(20px,2vw,28px) !important; font-weight: 900 !important; color: #3a3a3a !important; margin-bottom: 2rem !important; }
.nf-form-content label { font-family: 'Urbanist', sans-serif !important; font-weight: 900 !important; text-transform: uppercase !important; letter-spacing: 0.15em !important; font-size: clamp(12px,0.85vw,13px) !important; color: #3a3a3a !important; display: block !important; margin-bottom: 0.5rem !important; }
.nf-form-content input[type="text"], .nf-form-content input[type="email"], .nf-form-content input[type="tel"], .nf-form-content textarea, .nf-form-content select { width: 100% !important; border: none !important; border-bottom: 1px solid #d1d5db !important; border-radius: 0 !important; background: transparent !important; padding: 0.75rem 0 !important; font-family: 'Noto Sans JP', sans-serif !important; font-size: clamp(15px,1.2vw,17px) !important; font-weight: 700 !important; color: #3a3a3a !important; outline: none !important; box-shadow: none !important; transition: border-color 0.2s !important; }
.nf-form-content input[type="text"]:focus, .nf-form-content input[type="email"]:focus, .nf-form-content input[type="tel"]:focus, .nf-form-content textarea:focus { border-bottom-color: #ff1926 !important; }
.nf-form-content textarea { min-height: 160px !important; resize: none !important; }
.nf-field-container { margin-bottom: 2.5rem !important; }
.nf-form-content input[type="submit"], .nf-form-content button[type="submit"], .submit-wrap input { width: 100% !important; padding: 1.2rem 2rem !important; background: #ff1926 !important; color: #fff !important; border: none !important; border-radius: 0 !important; font-family: 'Urbanist', sans-serif !important; font-weight: 900 !important; font-size: clamp(13px,1.1vw,16px) !important; text-transform: uppercase !important; letter-spacing: 0.4em !important; cursor: pointer !important; transition: background 0.2s !important; box-shadow: 0 8px 24px rgba(255,25,38,0.25) !important; }
.nf-form-content input[type="submit"]:hover, .nf-form-content button[type="submit"]:hover { background: #cc0f1a !important; }
.nf-error .ninja-forms-field { border-bottom-color: #ff1926 !important; }
.nf-error-msg { color: #ff1926 !important; font-size: 12px !important; font-weight: 700 !important; margin-top: 0.3rem !important; }
.nf-form-content .nf-form-fields-required { font-size: 13px !important; color: #9ca3af !important; margin-bottom: 2rem !important; display: block !important; }
/* PAGE.PHP — 汎用コンテンツページ */
.bfp-wrap { font-family: 'Noto Sans JP', sans-serif; color: #3a3a3a; background: #fff; overflow-x: hidden; }
.bfp-wrap *, .bfp-wrap *::before, .bfp-wrap *::after { box-sizing: border-box; }
.bfp-page-header { padding: calc(var(--header-height, 80px) + 3rem) 8% 3rem; background: #fff; border-bottom: 1px solid #f0f0f0; }
.bfp-page-header-inner { max-width: 1300px; margin: 0 auto; }
.bfp-label-row { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 1.5rem; }
.bfp-label-bar { display: inline-block; width: 3.5rem; height: 4px; background: #ff1926; flex-shrink: 0; border: none; }
.bfp-label-text { font-family: 'Urbanist', sans-serif; font-weight: 900; text-transform: uppercase; letter-spacing: 0.5em; color: #ff1926; font-size: clamp(11px, 1vw, 16px); line-height: 1; }
.bfp-page-title { font-family: 'Noto Sans JP', sans-serif; font-weight: 900; font-size: clamp(32px, 5vw, 72px); letter-spacing: -0.03em; color: #3a3a3a; line-height: 1.1; margin: 0; }
.bfp-content-area { padding: 5rem 8%; background: #fff; }
.bfp-content-inner { max-width: 860px; margin: 0 auto; }
.bfp-content-inner p { font-size: clamp(14px, 1.2vw, 17px); font-weight: 500; color: #4b5563; line-height: 2; margin-bottom: 1.5rem; }
.bfp-content-inner h1,
.bfp-content-inner h2 { font-family: 'Noto Sans JP', sans-serif; font-weight: 900; font-size: clamp(20px, 2.2vw, 30px); color: #3a3a3a; letter-spacing: -0.02em; margin: 3rem 0 1rem; padding-left: 1rem; border-left: 6px solid #ff1926; line-height: 1.3; }
.bfp-content-inner h3 { font-family: 'Noto Sans JP', sans-serif; font-weight: 900; font-size: clamp(15px, 1.5vw, 20px); color: #3a3a3a; margin: 2rem 0 0.75rem; }
.bfp-content-inner h4 { font-family: 'Noto Sans JP', sans-serif; font-weight: 700; font-size: clamp(14px, 1.2vw, 17px); color: #3a3a3a; margin: 1.5rem 0 0.5rem; }
.bfp-content-inner ul,
.bfp-content-inner ol { margin: 0 0 1.5rem 1.5rem; }
.bfp-content-inner ul { list-style: disc; }
.bfp-content-inner ol { list-style: decimal; }
.bfp-content-inner li { font-size: clamp(14px, 1.2vw, 17px); font-weight: 500; color: #4b5563; line-height: 1.9; margin-bottom: 0.4rem; }
.bfp-content-inner a { color: #ff1926; text-decoration: underline; text-underline-offset: 3px; }
.bfp-content-inner a:hover { opacity: 0.8; }
.bfp-content-inner strong { font-weight: 900; color: #3a3a3a; }
.bfp-content-inner hr { border: none; border-top: 1px solid #e5e7eb; margin: 3rem 0; }
.bfp-content-inner table { width: 100%; border-collapse: collapse; margin-bottom: 2rem; font-size: clamp(13px, 1.1vw, 16px); }
.bfp-content-inner th { background: #f9fafb; font-weight: 900; padding: 0.75rem 1rem; border: 1px solid #e5e7eb; text-align: left; }
.bfp-content-inner td { padding: 0.75rem 1rem; border: 1px solid #e5e7eb; color: #4b5563; font-weight: 500; }
@media (max-width: 767px) {
    .bfp-page-header { padding: calc(var(--header-height, 80px) + 1.5rem) 5% 2rem; }
    .bfp-content-area { padding: 3rem 5%; }
    .bfp-content-inner h2 { font-size: clamp(18px, 5vw, 24px); }
}
@media (min-width: 1024px) {
    .bfp-page-header { padding: calc(var(--header-height, 80px) + 4rem) 8% 4rem; }
    .bfp-content-area { padding: 6rem 8%; }
}