/*
Theme Name: アサヒリフォーム
Theme URI: https://www.asahireform-komoro.jp/
Author: Asahi Reform
Description: 長野県小諸市・佐久地域のリフォーム専門店 アサヒリフォームの公式テーマ
Version: 1.0.0
License: GNU General Public License v2 or later
Tags: japanese, reform, construction, one-page
*/

/* ===== CSS Variables ===== */
:root {
  --orange-primary: #f97316;
  --orange-dark: #ea580c;
  --orange-light: #fed7aa;
  --orange-pale: #fff7ed;
  --text-dark: #2d2d2d;
  --text-medium: #4a4a4a;
  --text-light: #6b7280;
  --white: #ffffff;
  --gray-bg: #f8f8f6;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Zen Maru Gothic', sans-serif;
  color: var(--text-dark);
  overflow-x: hidden;
  background: var(--white);
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* ===== Header ===== */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: transparent;
  transition: all 0.4s ease;
  z-index: 100;
}
#site-header.scrolled {
  background: rgba(249, 115, 22, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-logo img { height: 42px; object-fit: contain; }
.header-logo .site-name {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.05em;
}
.header-nav {
  display: none;
  align-items: center;
  gap: 28px;
}
.header-nav a {
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  transition: opacity 0.2s;
  letter-spacing: 0.02em;
}
.header-nav a:hover { opacity: 0.75; }
.header-nav .nav-cta {
  background: var(--white);
  color: var(--orange-primary);
  padding: 10px 22px;
  border-radius: 100px;
  font-weight: 800;
  font-size: 0.85rem;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.header-nav .nav-cta:hover {
  background: #fff7ed;
  transform: translateY(-1px);
}
.menu-toggle {
  display: flex;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
}
.mobile-menu {
  display: none;
  background: var(--orange-primary);
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  color: var(--white);
  font-weight: 600;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  transition: background 0.2s;
}
.mobile-menu a:hover { background: var(--orange-dark); }
.mobile-menu .mobile-cta {
  background: var(--white);
  color: var(--orange-primary);
  font-weight: 800;
  text-align: center;
}

@media (min-width: 768px) {
  .header-nav { display: flex; }
  .menu-toggle { display: none; }
}

/* ===== Hero ===== */
#hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 500px;
  overflow: hidden;
}
#hero-video {
  position: absolute;
  top: 50%; left: 50%;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: 1;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  
  z-index: 2;
}
.hero-content {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--white);
  z-index: 10;
  opacity: 0;
  animation: fadeInHero 2s ease forwards;
  animation-delay: 7s;
  width: 90%;
  max-width: 900px;
}
@keyframes fadeInHero { to { opacity: 1; } }
.hero-title {
  font-size: clamp(1.8rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.2;
  text-shadow: 2px 4px 12px rgba(0,0,0,0.7);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}
.hero-subtitle {
  font-size: clamp(1rem, 3.5vw, 2.2rem);
  font-weight: 600;
  line-height: 1.4;
  text-shadow: 1px 2px 8px rgba(0,0,0,0.6);
}
@media (min-width: 768px) {
  #hero { height: 80vh; max-height: 800px; }
}

/* ===== Section Commons ===== */
.section-title {
  font-size: clamp(1.6rem, 4vw, 3.5rem);
  font-weight: 900;
  text-align: center;
  color: var(--text-dark);
  letter-spacing: 0.03em;
  line-height: 1.2;
}
.section-title .accent { color: var(--orange-primary); }

/* ===== About ===== */
#about {
  background: var(--white);
  padding: 80px 24px;
}
.about-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.about-body {
  background: linear-gradient(135deg, var(--orange-pale), #fffbf5);
  border-radius: 24px;
  padding: 48px 40px;
  max-width: 860px;
  margin: 40px auto 0;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  line-height: 1.9;
  color: var(--text-medium);
}
.about-body .highlight {
  color: var(--orange-dark);
  font-weight: 800;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
}
.about-body .cta-text {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 900;
  color: var(--orange-primary);
  margin-top: 20px;
}

/* ===== Reform Menu ===== */
#reform {
  background: var(--gray-bg);
  padding: 80px 24px;
}
.reform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  max-width: 1280px;
  margin: 48px auto 0;
}
.reform-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.reform-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}
.reform-card img {
  width: 100%; height: 180px;
  object-fit: cover;
}
.reform-card-body { padding: 20px; }
.reform-card-body h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--orange-primary);
  margin-bottom: 8px;
}
.reform-card-body p {
  font-size: 0.85rem;
  color: var(--text-medium);
  line-height: 1.7;
}

/* ===== Exterior ===== */
#exterior {
  background: var(--white);
  padding: 80px 24px;
}
.exterior-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.exterior-text {
  max-width: 800px;
  margin: 32px auto;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--text-medium);
  line-height: 1.9;
}
.exterior-accent {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 800;
  color: var(--orange-primary);
  margin: 12px 0;
}
.btn-orange {
  display: inline-block;
  background: var(--orange-primary);
  color: var(--white);
  padding: 18px 48px;
  border-radius: 100px;
  font-weight: 800;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  transition: all 0.25s;
  box-shadow: 0 6px 20px rgba(249,115,22,0.35);
  margin-top: 32px;
  letter-spacing: 0.02em;
}
.btn-orange:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(249,115,22,0.4);
}

/* ===== Examples（施工事例）明るく温かみのあるデザイン ===== */
#examples {
  background: linear-gradient(160deg, #fff7ed 0%, #fffbf5 50%, #fef3e2 100%);
  padding: 90px 24px;
  position: relative;
  overflow: hidden;
}
/* 装飾：ふんわりした丸い光彩 */
#examples::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(249,115,22,0.10) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
#examples::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 440px; height: 440px;
  background: radial-gradient(circle, rgba(251,191,36,0.10) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.examples-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.examples-label {
  display: inline-block;
  background: var(--orange-primary);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 6px 18px;
  border-radius: 100px;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}
.examples-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 12px;
  letter-spacing: 0.03em;
}
.examples-subtitle {
  color: var(--text-light);
  font-size: clamp(0.9rem, 2vw, 1rem);
  margin-bottom: 56px;
}
.examples-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) {
  .examples-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .examples-grid { grid-template-columns: repeat(4, 1fr); }
}
.example-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(249,115,22,0.08), 0 1px 4px rgba(0,0,0,0.05);
  border: 1.5px solid rgba(249,115,22,0.12);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
}
.example-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(249,115,22,0.18), 0 4px 12px rgba(0,0,0,0.06);
}
.example-card-icon {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  border-bottom: 1.5px solid rgba(249,115,22,0.10);
}
.example-card-body {
  padding: 22px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.example-card-type {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--orange-primary);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 7px;
}
.example-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 12px;
  line-height: 1.35;
}
.example-card-customer {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(249,115,22,0.2);
}
.example-card-quote {
  font-size: 0.86rem;
  color: var(--text-medium);
  line-height: 1.75;
  flex: 1;
  font-style: italic;
}
.example-card-period {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--orange-pale);
  color: var(--orange-dark);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 100px;
  margin-top: 16px;
  align-self: flex-start;
  border: 1px solid rgba(249,115,22,0.2);
}
.examples-cta {
  text-align: center;
  margin-top: 56px;
}
.btn-orange-outline {
  display: inline-block;
  border: 2.5px solid var(--orange-primary);
  color: var(--orange-primary);
  padding: 18px 48px;
  border-radius: 100px;
  font-weight: 800;
  font-size: clamp(1rem, 2vw, 1.15rem);
  transition: all 0.25s;
  letter-spacing: 0.02em;
  background: var(--white);
}
.btn-orange-outline:hover {
  background: var(--orange-primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(249,115,22,0.3);
}

/* ===== Rescue ===== */
#rescue {
  background: var(--orange-pale);
  padding: 80px 24px;
}
.rescue-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.rescue-subtitle {
  text-align: center;
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  color: var(--text-medium);
  margin: 16px 0 40px;
  font-weight: 500;
}
.rescue-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}
@media (min-width: 640px) {
  .rescue-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
@media (min-width: 1024px) {
  .rescue-grid { grid-template-columns: repeat(4, 1fr); }
}
.rescue-item {
  background: var(--white);
  border-radius: 12px;
  padding: 18px 14px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: all 0.25s;
}
.rescue-item:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}
.rescue-item-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.rescue-item-price {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--orange-primary);
}
.rescue-cta {
  text-align: center;
  margin-top: 48px;
}
.rescue-urgent {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 800;
  color: var(--orange-dark);
  margin-bottom: 20px;
}
.btn-phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--orange-primary);
  color: var(--white);
  padding: 18px 48px;
  border-radius: 100px;
  font-weight: 800;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  transition: all 0.25s;
  box-shadow: 0 6px 20px rgba(249,115,22,0.35);
}
.btn-phone:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
}

/* ===== Contact ===== */
#contact {
  background: linear-gradient(135deg, var(--orange-primary) 0%, #dc2626 100%);
  padding: 80px 24px;
  color: var(--white);
  text-align: center;
}
.contact-inner { max-width: 860px; margin: 0 auto; }
.contact-title {
  font-size: clamp(1.6rem, 4vw, 3rem);
  font-weight: 900;
  margin-bottom: 16px;
  letter-spacing: 0.03em;
}
.contact-sub {
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  opacity: 0.9;
  margin-bottom: 44px;
}
.contact-btns {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}
@media (min-width: 640px) {
  .contact-btns { flex-direction: row; justify-content: center; }
}
.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  color: var(--orange-primary);
  padding: 18px 40px;
  border-radius: 100px;
  font-weight: 800;
  font-size: clamp(1rem, 2vw, 1.2rem);
  transition: all 0.25s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.btn-white:hover {
  background: #fff7ed;
  transform: translateY(-2px);
}
.btn-white-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 3px solid rgba(255,255,255,0.8);
  color: var(--white);
  padding: 18px 40px;
  border-radius: 100px;
  font-weight: 800;
  font-size: clamp(1rem, 2vw, 1.2rem);
  transition: all 0.25s;
}
.btn-white-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
  transform: translateY(-2px);
}

/* ===== Footer ===== */
#site-footer {
  background: #111111;
  color: #d1d5db;
  padding: 56px 24px;
  text-align: center;
}
.footer-name {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 20px;
}
.footer-info {
  font-size: 0.9rem;
  line-height: 2;
}
.footer-info a { color: var(--orange-light); }
.footer-copyright {
  margin-top: 32px;
  font-size: 0.78rem;
  color: #6b7280;
  border-top: 1px solid #2d2d2d;
  padding-top: 24px;
}

/* ===== Fade-up animation ===== */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
