/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&family=Noto+Serif+JP:wght@400;700&display=swap');

/* Variables */
:root {
  /* Colors */
  --color-main: #1B3A5C;
  --color-main-light: #2C5681;
  --color-accent: #C4982F;
  --color-accent-light: #D6AB45;
  --color-base: #F5F6F8;
  --color-text: #2D2D2D;
  --color-text-light: #666666;
  --color-white: #FFFFFF;
  --color-border: #E0E0E0;

  /* Typography */
  --font-serif: 'Noto Serif JP', serif;
  --font-sans: 'Noto Sans JP', sans-serif;

  /* Spacing */
  --container-width: 1200px;
  --header-height: 80px;
  --section-padding: 80px 0;

  /* Utilities */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  /* Animation */
  --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  line-height: 1.4;
  font-weight: 700;
  color: var(--color-main);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul,
ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout Utilities */
.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: var(--section-padding);
}

.section-bg {
  background-color: var(--color-base);
}

/* Typography Utilities */
.text-center {
  text-align: center;
}

.text-accent {
  color: var(--color-accent);
}

.fw-bold {
  font-weight: 700;
}

/* Components */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50px;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: var(--color-accent-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--color-white);
  color: var(--color-main);
  border: 2px solid var(--color-main);
}

.btn-secondary:hover {
  background-color: var(--color-main);
  color: var(--color-white);
}

.btn-main {
  background-color: var(--color-main);
  color: var(--color-white);
}

.btn-main:hover {
  background-color: var(--color-main-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Section Headings */
.section-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  /* Center alignment by default */
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--color-accent);
}

.section-subtitle {
  color: var(--color-accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  display: block;
}


/* Form Elements */
input,
textarea,
select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 1rem;
  transition: var(--transition);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-main);
  box-shadow: 0 0 0 3px rgba(27, 58, 92, 0.1);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 1rem;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-menu {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-list {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-link {
  font-weight: 500;
  color: var(--color-main);
  position: relative;
  font-size: 0.9rem;
  /* Reduced font size */
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--color-main);
  background: none;
  border: none;
  cursor: pointer;
}

/* Footer */
.footer {
  background-color: var(--color-main);
  color: var(--color-white);
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-title {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--color-accent);
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a:hover {
  color: var(--color-accent);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Responsive */
/* Responsive */
@media (max-width: 1024px) {
  :root {
    --header-height: 60px;
    --section-padding: 60px 0;
  }

  body {
    overflow-x: hidden;
  }

  .section-title {
    font-size: 2rem;
  }

  .header-container {
    position: relative;
  }

  /* Hamburger menu on left */
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    font-size: 1.8rem;
    order: -1;
    z-index: 1001;
    /* Above mobile menu */
  }

  /* Center Logo on Mobile if desired, or keep right. 
     Since toggle is order -1, logo is order 0. 
     With space-between: [Toggle] ....... [Logo]
  */


  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--color-white);
    flex-direction: column;
    justify-content: flex-start;
    /* Align top */
    padding-top: 60px;
    transform: translateX(-100%);
    /* Slide from left */
    transition: transform 0.3s ease;
    padding: 20px;
    overflow-y: auto;
  }

  .nav-menu.active {
    transform: translateX(0);
    box-shadow: var(--shadow-md);
  }

  .nav-list {
    flex-direction: column;
    width: 100%;
    align-items: center;
    /* Center items horizontally if desired */
    /* Or align-items: stretch if you want full width clickable areas */
    justify-content: flex-start;
  }

  .nav-link {
    font-size: 1.2rem;
    width: 100%;
    display: block;
    /* Ensure width applies */
    text-align: center;
    padding: 10px 0;
  }

  .nav-menu .btn {
    margin-top: 20px;
    width: 100%;
    max-width: 280px;
    padding: 16px 0;
  }
}

/* Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}