/* ==========================================================================
   Design System & Variables
   ========================================================================== */
:root {
  /* Colors - "Snow Country Serenity x Melting Passion" */
  --color-snow-light: #F8FBFC;
  --color-snow-mid: #E8EFF2;
  --color-snow-dark: #D4DFE5;

  --color-text-main: #2D3748;
  /* Deep grey-blue */
  --color-text-muted: #718096;

  --color-passion-primary: #E63946;
  /* Crimson red */
  --color-passion-hover: #D62828;
  --color-passion-light: #FFECEE;

  --color-accent-gold: #F4A261;
  /* Warmth */

  --color-surface: #FFFFFF;
  --color-surface-glass: rgba(255, 255, 255, 0.85);

  /* Typography */
  --font-main: 'Noto Sans JP', sans-serif;
  --font-heading: 'Shippori Mincho', serif;

  /* Layout */
  --container-width: 1200px;
  --header-height: 80px;

  /* Shadows */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  --shadow-glow: 0 0 20px rgba(230, 57, 70, 0.2);

  /* Transitions */
  --trans-fast: 0.2s ease;
  --trans-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --trans-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Reset & Base Setup
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--color-text-main);
  background-color: var(--color-snow-light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
}

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

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

/* ==========================================================================
   Typography Utilities
   ========================================================================== */
.text-center {
  text-align: center;
}

.text-passion {
  color: var(--color-passion-primary);
}

.text-muted {
  color: var(--color-text-muted);
}

.text-heading {
  font-family: var(--font-heading);
}

.text-white {
  color: white;
}

/* ==========================================================================
   Layout Containers
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 100px 0;
  position: relative;
}

/* ==========================================================================
   Components
   ========================================================================== */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: all var(--trans-normal);
  cursor: pointer;
  border: none;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-passion-primary);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background-color: var(--color-passion-hover);
  transform: translateY(-2px);
  box-shadow: 0 15px 25px -5px rgba(230, 57, 70, 0.4);
}

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

.btn-outline:hover {
  background-color: var(--color-passion-primary);
  color: #fff;
}

.btn-icon {
  margin-left: 10px;
  transition: transform var(--trans-fast);
}

.btn:hover .btn-icon {
  transform: translateX(4px);
}

/* Header / Navigation (Glassmorphism) */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--color-surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  z-index: 1000;
  transition: transform var(--trans-normal), background var(--trans-normal);
  display: flex;
  align-items: center;
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.95);
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 20px;
}

.header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header__logo img {
  height: 40px;
  /* Reduced from 60px to about 2/3 size */
  width: auto;
  max-width: 100%;
}

.nav {
  flex-grow: 1;
  display: flex;
  justify-content: flex-end;
}

.nav__list {
  display: flex;
  list-style: none;
  gap: 2vw;
  /* Use vw for gap to make it responsive and prevent wrapping on slightly smaller screens */
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.nav__link {
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 8px 0;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--color-passion-primary);
  transition: width var(--trans-fast);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

/* Mobile Header Hamburger Button */
.mobile-header-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
  margin-left: auto;
  z-index: 1010;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  box-sizing: border-box;
}

.mobile-header-toggle span {
  display: block;
  width: 26px !important;
  height: 2px !important;
  background-color: var(--color-text-main);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  padding-top: var(--header-height);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-snow-light) 0%, var(--color-snow-dark) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 57, 70, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
  z-index: 0;
}

.hero__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__content h1,
.hero__title {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 24px;
}

.hero__content p {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: 40px;
  max-width: 500px;
}

.hero__badge {
  display: inline-block;
  padding: 6px 16px;
  background-color: var(--color-passion-light);
  color: var(--color-passion-primary);
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.hero__image-wrapper {
  position: relative;
  height: 600px;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: perspectiva(1000px);
}

.hero__image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--trans-slow);
}

.hero__image-wrapper:hover img {
  transform: scale(1.05);
}

/* Animations */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--trans-normal), transform var(--trans-normal);
}

.reveal-up.active {
  opacity: 1;
  transform: translateY(0);
}

/* Campaign Banner */
.campaign-banner {
  background: linear-gradient(90deg, var(--color-passion-primary) 0%, var(--color-accent-gold) 100%);
  color: white;
  padding: 12px 0;
  text-align: center;
  position: relative;
  z-index: 1001;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

/* Section Titles */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
  color: var(--color-text-main);
}

.section-subtitle {
  color: var(--color-passion-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.9rem;
  margin-bottom: 8px;
  display: block;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Feature Cards */
.feature-card {
  background: var(--color-surface);
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: var(--shadow-sm);
  transition: all var(--trans-normal);
  border: 1px solid rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(230, 57, 70, 0.1);
}

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  background: var(--color-snow-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--color-passion-primary);
  font-size: 1.5rem;
  transition: var(--trans-fast);
}

.feature-card:hover .card-icon {
  background: var(--color-passion-primary);
  color: white;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 16px;
  font-family: var(--font-heading);
}

.card-text {
  color: var(--color-text-muted);
  flex-grow: 1;
}

/* Page Header (Inner pages) */
.page-header {
  padding: 160px 0 80px;
  background: linear-gradient(135deg, var(--color-snow-dark) 0%, var(--color-snow-light) 100%);
  text-align: center;
}

.page-title {
  font-size: 3rem;
  margin-bottom: 16px;
}

.page-description {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Profile Specific */
.profile-hero {
  padding: 160px 0 100px;
  background: var(--color-snow-light);
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 50px;
  align-items: center;
}

.profile-image-container {
  position: relative;
  max-width: 350px;
  margin: 0 auto;
}

.profile-image-container::after {
  content: '';
  position: absolute;
  top: 15px;
  right: -15px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--color-accent-gold);
  border-radius: 20px;
  z-index: 0;
}

.profile-image {
  border-radius: 20px;
  position: relative;
  z-index: 1;
  width: 100%;
  box-shadow: var(--shadow-md);
}

.philosophy-card {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  border-left: 5px solid var(--color-passion-primary);
  position: relative;
  z-index: 2;
  backdrop-filter: blur(10px);
}

.philosophy-bg-container {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
}

.philosophy-bg-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../img/img02.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.15;
  z-index: 1;
}

.profile-table th {
  width: 5em;
  font-size: 0.95rem;
  white-space: nowrap;
}

/* Footer */
.footer {
  background-color: var(--color-text-main);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 40px;
  margin-top: 100px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: white;
  margin-bottom: 20px;
  display: block;
}

.footer-title {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a:hover {
  color: white;
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
  .hero__container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__content p {
    margin-left: auto;
    margin-right: auto;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }

  .nav__list {
    display: none;
    /* simple mobile menu can be added */
  }

  .hero__title {
    font-size: 1.1rem;
    letter-spacing: -0.08em;
  }

  /* Minimize padding/margin on mobile hero */
  .hero {
    padding-top: calc(var(--header-height) + 10px);
  }

  .hero__container {
    gap: 15px;
  }
}

/* Mobile Footer Menu (Bottom Navigation) */
.mobile-footer-menu {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: var(--color-surface);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1500;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-footer-menu__inner {
  display: flex;
  height: 100%;
}

.mobile-footer-menu__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  border-right: 1px solid rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: background var(--trans-fast), color var(--trans-fast);
}

.mobile-footer-menu__item:last-child {
  border-right: none;
}

.mobile-footer-menu__item:hover,
.mobile-footer-menu__item:active {
  background: var(--color-snow-light);
  color: var(--color-passion-primary);
}

.mobile-footer-menu__icon {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.mobile-footer-menu__item--primary {
  background: var(--color-passion-primary);
  color: white;
}

.mobile-footer-menu__item--primary:hover,
.mobile-footer-menu__item--primary:active {
  background: var(--color-passion-hover);
  color: white;
}

@media (max-width: 768px) {
  .mobile-footer-menu {
    display: block;
  }

  /* Add padding to body to prevent content from hiding behind mobile footer */
  body {
    padding-bottom: 60px;
  }

  /* Hide the desktop header contact button on mobile, if it was going to show anyway */
  #header-contact-btn {
    display: none !important;
  }

  /* Show the mobile header hamburger toggle */
  .mobile-header-toggle {
    display: flex;
  }
}

/* Drawer Menu (Mobile) */
.drawer-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 250px;
  height: 100vh;
  background: var(--color-surface);
  z-index: 2000;
  box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1);
  transition: left var(--trans-normal);
  display: flex;
  flex-direction: column;
}

.drawer-menu.active {
  left: 0;
}

.drawer-menu__header {
  padding: 20px;
  border-bottom: 1px solid var(--color-snow-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-menu__title {
  font-weight: bold;
  font-size: 1.1rem;
}

.drawer-menu__close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-text-muted);
}

.drawer-menu__list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-grow: 1;
  overflow-y: auto;
}

.drawer-menu__list li {
  border-bottom: 1px solid var(--color-snow-dark);
}

.drawer-menu__list a {
  display: block;
  padding: 15px 20px;
  color: var(--color-text-main);
  font-weight: 500;
  transition: background var(--trans-fast);
}

.drawer-menu__list a:hover {
  background: var(--color-snow-light);
  color: var(--color-passion-primary);
}

/* Drawer overlay */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--trans-normal);
}

.drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Contact Form Styles */
.contact-form {
  max-width: 800px;
  margin: 0 auto;
  background: var(--color-surface);
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.form-group {
  margin-bottom: 32px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--color-text-main);
}

.form-control {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid var(--color-snow-dark);
  border-radius: 8px;
  font-size: 1rem;
  font-family: var(--font-main);
  transition: border-color var(--trans-fast);
  background: var(--color-snow-light);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-passion-primary);
  background: var(--color-surface);
}

.error-message {
  color: var(--color-passion-hover);
  background: var(--color-passion-light);
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 24px;
}

.success-message {
  color: #2F855A;
  background: #F0FFF4;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 24px;
  text-align: center;
  font-weight: 500;
}
/* Ensure header contact button is visible on desktop */
@media (min-width: 993px) {
  #header-contact-btn {
    display: inline-flex !important;
  }
}
