/* ============================================
   みどりゴルフパーク - Common Stylesheet
   Theme: Pop / Beginner-friendly
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&family=Poppins:wght@400;600;700;800&display=swap');

/* --- CSS Variables --- */
:root {
  --primary: #4ECDC4;
  --primary-dark: #3BAFA8;
  --primary-light: #A8E6E0;
  --secondary-yellow: #FFE66D;
  --secondary-yellow-dark: #F5D84E;
  --secondary-coral: #FF6B6B;
  --secondary-coral-dark: #E85555;
  --white: #FFFFFF;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-500: #6B7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 50px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
  --shadow-pop: 0 6px 0 rgba(0, 0, 0, 0.08);
  --shadow-card: 0 4px 20px rgba(78, 205, 196, 0.15);
  --font-jp: 'Noto Sans JP', sans-serif;
  --font-en: 'Poppins', sans-serif;
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-jp);
  color: var(--gray-700);
  line-height: 1.8;
  background: var(--white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul, ol {
  list-style: none;
}

/* --- Utility Classes --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-family: var(--font-en);
  font-size: 2rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.section-title .subtitle {
  font-size: 1rem;
  color: var(--gray-500);
  font-weight: 500;
}

.section-title .accent-line {
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary-yellow));
  border-radius: 2px;
  margin: 12px auto 0;
}

.highlight {
  background: linear-gradient(transparent 60%, var(--secondary-yellow) 60%);
  padding: 0 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-family: var(--font-jp);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 0 var(--primary-dark), var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--primary-dark), var(--shadow-lg);
}

.btn-primary:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--primary-dark);
}

.btn-coral {
  background: var(--secondary-coral);
  color: var(--white);
  box-shadow: 0 4px 0 var(--secondary-coral-dark), var(--shadow-md);
}

.btn-coral:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--secondary-coral-dark), var(--shadow-lg);
}

.btn-coral:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--secondary-coral-dark);
}

.btn-yellow {
  background: var(--secondary-yellow);
  color: var(--gray-900);
  box-shadow: 0 4px 0 var(--secondary-yellow-dark), var(--shadow-md);
}

.btn-yellow:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--secondary-yellow-dark), var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--primary);
}

.logo .logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.logo span {
  color: var(--gray-700);
  font-family: var(--font-jp);
  font-size: 0.85rem;
  font-weight: 700;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-desktop a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-700);
  position: relative;
  padding: 4px 0;
}

.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-desktop a:hover::after,
.nav-desktop a.active::after {
  width: 100%;
}

.nav-desktop a:hover {
  color: var(--primary);
}

.nav-desktop a.active {
  color: var(--primary);
}

.nav-cta {
  padding: 10px 24px !important;
  font-size: 0.85rem !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
  z-index: 1001;
}

.hamburger span {
  width: 24px;
  height: 2.5px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav */
.nav-mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.nav-mobile.open {
  opacity: 1;
  visibility: visible;
}

.nav-mobile a {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gray-700);
  padding: 8px 24px;
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.nav-mobile a:hover,
.nav-mobile a.active {
  color: var(--primary);
  background: rgba(78, 205, 196, 0.1);
}

/* --- Footer --- */
.footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 60px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 40px;
}

.footer-brand .logo {
  color: var(--primary-light);
  margin-bottom: 16px;
}

.footer-brand .logo span {
  color: var(--gray-300);
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--gray-500);
}

.footer-nav h4 {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 16px;
  font-family: var(--font-en);
}

.footer-nav a {
  display: block;
  font-size: 0.85rem;
  color: var(--gray-500);
  padding: 4px 0;
  transition: var(--transition);
}

.footer-nav a:hover {
  color: var(--primary-light);
  padding-left: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 24px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--gray-500);
}

.footer-bottom .demo-label {
  color: var(--primary-light);
  font-weight: 600;
}

/* --- Page Hero (Sub Pages) --- */
.page-hero {
  padding: 120px 0 60px;
  background: linear-gradient(135deg, #E8FAF8 0%, #FFF9E0 50%, #FFE8E8 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: rgba(78, 205, 196, 0.1);
  border-radius: 50%;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: -50px;
  width: 200px;
  height: 200px;
  background: rgba(255, 230, 109, 0.15);
  border-radius: 50%;
}

.page-hero h1 {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--gray-900);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.page-hero .breadcrumb {
  font-size: 0.85rem;
  color: var(--gray-500);
  position: relative;
  z-index: 1;
}

.page-hero .breadcrumb a {
  color: var(--primary);
}

.page-hero .breadcrumb a:hover {
  text-decoration: underline;
}

/* --- Card Styles --- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-pop {
  border: 3px solid var(--gray-100);
  box-shadow: var(--shadow-pop);
}

.card-pop:hover {
  border-color: var(--primary-light);
  box-shadow: 0 8px 0 rgba(78, 205, 196, 0.15);
}

/* --- Badge --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
}

.badge-primary {
  background: rgba(78, 205, 196, 0.15);
  color: var(--primary-dark);
}

.badge-yellow {
  background: rgba(255, 230, 109, 0.3);
  color: #B8960E;
}

.badge-coral {
  background: rgba(255, 107, 107, 0.15);
  color: var(--secondary-coral-dark);
}

/* --- Placeholder Image --- */
.placeholder-img {
  background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  font-size: 0.85rem;
  overflow: hidden;
  position: relative;
}

.placeholder-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(0, 0, 0, 0.02) 10px,
    rgba(0, 0, 0, 0.02) 20px
  );
}

.placeholder-img .icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

/* --- Unsplash Photo Styles --- */
.photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-lg);
  filter: brightness(1.05) saturate(1.15);
  transition: transform 0.4s ease, filter 0.4s ease;
}

.photo-img:hover {
  transform: scale(1.03);
  filter: brightness(1.1) saturate(1.2);
}

.photo-img.no-radius {
  border-radius: 0;
}

.photo-img.radius-xl {
  border-radius: var(--radius-xl);
}

.photo-img.radius-full {
  border-radius: 50%;
}

.photo-banner {
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
}

.photo-banner img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  filter: brightness(1.08) saturate(1.1);
}

.photo-banner .photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(78,205,196,0.15) 0%, rgba(255,230,109,0.1) 50%, rgba(255,107,107,0.1) 100%);
  pointer-events: none;
}

.feature-card .feature-photo {
  width: 100%;
  height: 160px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 20px;
}

.feature-card .feature-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.05) saturate(1.15);
  transition: transform 0.4s ease;
}

.feature-card:hover .feature-photo img {
  transform: scale(1.05);
}

/* --- Form Styles --- */
.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.form-group label .required {
  color: var(--secondary-coral);
  font-size: 0.75rem;
  margin-left: 4px;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-family: var(--font-jp);
  font-size: 1rem;
  color: var(--gray-700);
  transition: var(--transition);
  background: var(--white);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(78, 205, 196, 0.15);
}

.form-control::placeholder {
  color: var(--gray-300);
}

textarea.form-control {
  resize: vertical;
  min-height: 140px;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%236B7280'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* --- Table Styles --- */
.styled-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.styled-table th {
  background: var(--primary);
  color: var(--white);
  padding: 14px 20px;
  font-weight: 700;
  font-size: 0.9rem;
  text-align: left;
}

.styled-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.9rem;
}

.styled-table tr:nth-child(even) td {
  background: var(--gray-50);
}

.styled-table tr:hover td {
  background: rgba(78, 205, 196, 0.05);
}

/* --- Animation Classes --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  html { font-size: 15px; }

  .section { padding: 60px 0; }

  .section-title h2 { font-size: 1.6rem; }

  .nav-desktop { display: none; }

  .hamburger { display: flex; }

  .nav-mobile { display: flex; }

  .header-inner { height: 64px; }

  .page-hero { padding: 100px 0 40px; }

  .page-hero h1 { font-size: 1.6rem; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .footer-nav a:hover {
    padding-left: 0;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  html { font-size: 14px; }

  .container { padding: 0 16px; }

  .card { padding: 24px; }
}
