/* ============================================
   リフォーム・プラス 共通スタイル
   css/style.css
   ============================================ */

/* ============================================
   Base / Reset
   ============================================ */
html {
  font-size: 15px; /* モバイル基準サイズ */
  scroll-behavior: smooth;
}
@media (min-width: 1024px) {
  html {
    font-size: 16px; /* PC 基準サイズ */
  }
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  color: #333333;
  background-color: #ffffff;
}

#root {
  min-height: 100vh;
}

/* ============================================
   Typography Utilities
   ============================================ */
.font-eng {
  font-family: 'Montserrat', sans-serif;
}

.font-brush {
  font-family: 'Potta One', cursive;
}

/* テキストクランプ */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================
   Text Shadow Utilities
   ============================================ */
.text-shadow-lg {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.text-shadow-md {
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.text-shadow-sm {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* ============================================
   Writing Mode
   ============================================ */
.vertical-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

/* ============================================
   Scrollbar Utilities
   ============================================ */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ============================================
   Color Variables (CSS Custom Properties)
   ============================================ */
:root {
  --color-primary: #A2D163;
  --color-primary-dark: #769E3D;
  --color-accent: #E86A15;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-bg-light: #F9FDF7;
  --color-line: #06c755;
}

/* ============================================
   Animations
   ============================================ */

/* フェードイン（上から） */
@keyframes fade-in-down {
  0% { opacity: 0; transform: translateY(-10px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* フェードイン（下から） */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* 左からスライド */
@keyframes slideRight {
  0% { opacity: 0; transform: translateX(-100px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* ズームアウト */
@keyframes zoomOut {
  0% { opacity: 0; transform: scale(1.2); }
  100% { opacity: 1; transform: scale(1); }
}

/* ブラー解除 */
@keyframes blurIn {
  0% { opacity: 0; filter: blur(20px); transform: scale(1.05); }
  100% { opacity: 1; filter: blur(0); transform: scale(1); }
}

/* フェードイン */
@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* マーキー (横スクロール) */
@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

/* スライドショー */
@keyframes slideShow {
  0%, 45% { transform: translateX(0); }
  50%, 95% { transform: translateX(-33.333333%); }
  100% { transform: translateX(-66.666666%); }
}

/* アニメーションクラス */
.animate-fade-in-down {
  animation: fade-in-down 1.5s ease-out forwards;
}

.animate-fade-then-marquee {
  animation: fade-in-down 1.5s ease-out forwards, marquee 40s linear 1.5s infinite;
}

.animate-fade-in-up {
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-slide-right {
  animation: slideRight 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-zoom-out {
  animation: zoomOut 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-blur-in {
  animation: blurIn 1.2s ease-out forwards;
}

.animate-fade-in {
  animation: fadeIn 1.2s ease-out forwards;
}

.animate-marquee {
  animation: marquee 40s linear infinite;
}

.animate-slide-show {
  animation: slideShow 10s infinite;
}

/* ============================================
   Hero / Slider
   ============================================ */
.hero-slide {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.hero-slide img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* ============================================
   Breadcrumbs
   ============================================ */
.breadcrumbs-nav {
  background-color: #fff;
  border-bottom: 1px solid #f0f0f0;
  padding: 1rem 1.5rem;
}

/* ============================================
   Cards & Sections
   ============================================ */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* ============================================
   Form Elements
   ============================================ */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea,
select {
  appearance: none;
  -webkit-appearance: none;
  background-color: #f3f4f6;
  border: none;
  border-radius: 2px;
  padding: 1rem;
  width: 100%;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.9375rem;
  color: #333333;
  transition: box-shadow 0.2s ease;
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  box-shadow: 0 0 0 2px var(--color-primary);
}

/* チェックボックス・ラジオボタン */
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--color-primary);
  cursor: pointer;
}

/* ============================================
   Buttons
   ============================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  background-color: var(--color-primary);
  color: #fff;
  font-weight: 700;
  border-radius: 9999px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  background-color: transparent;
  color: #333333;
  font-weight: 700;
  border: 2px solid #333333;
  border-radius: 9999px;
  transition: background-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
}

.btn-outline:hover {
  background-color: #333333;
  color: #fff;
}

/* ============================================
   Section Titles
   ============================================ */
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
}

.section-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--color-primary-dark);
  font-size: 0.8125rem;
  text-transform: uppercase;
}

/* ============================================
   Page Header Background Text
   ============================================ */
.page-header-bg-text {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(6rem, 15vw, 18rem);
  line-height: 1;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.04);
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}

/* ============================================
   Mobile Sticky Footer
   ============================================ */
@media (max-width: 1023px) {
  body {
    padding-bottom: 60px;
  }
}

/* ============================================
   Prose / Article Body
   ============================================ */
.prose-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-primary);
  color: var(--color-text);
}

.prose-content p {
  line-height: 1.9;
  margin-bottom: 1.25rem;
  color: var(--color-text-light);
}

.prose-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.prose-content li {
  line-height: 1.8;
  color: var(--color-text-light);
}

/* ============================================
   Table of Contents
   ============================================ */
.toc-item {
  padding: 0.5rem 0.75rem;
  border-left: 3px solid transparent;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  font-size: 0.875rem;
  color: var(--color-text-light);
  cursor: pointer;
}

.toc-item:hover,
.toc-item.active {
  border-left-color: var(--color-primary);
  background-color: var(--color-bg-light);
  color: var(--color-text);
}

/* ============================================
   Category Badge
   ============================================ */
.category-badge {
  display: inline-block;
  padding: 0.2em 0.75em;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: var(--color-primary);
  color: #fff;
  border-radius: 2px;
}

.category-badge-dark {
  background-color: var(--color-text);
}

/* ============================================
   Price Table
   ============================================ */
.price-table {
  width: 100%;
  border-collapse: collapse;
}

.price-table th {
  background-color: var(--color-bg-light);
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-text);
  border-bottom: 2px solid #e5e7eb;
}

.price-table td {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--color-text-light);
  border-bottom: 1px solid #f0f0f0;
}

.price-table tr:hover td {
  background-color: var(--color-bg-light);
}

/* ============================================
   Responsive Image
   ============================================ */
img {
  max-width: 100%;
  height: auto;
}

.aspect-video {
  aspect-ratio: 16 / 9;
}

.aspect-4-3 {
  aspect-ratio: 4 / 3;
}

/* ============================================
   Utility
   ============================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
  header,
  footer,
  .mobile-sticky-footer,
  .lg\:hidden {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
    padding-bottom: 0;
  }
}
