/* Variables */
:root {
  --color-base: #FFFFFF;
  --color-bg-light: #F8F9FA;
  --color-text-main: #212529;
  --color-text-sub: #495057;
  --color-accent: #E5C07B;
  /* Soft Gold */
  --color-accent-light: #F9E79F;
  /* Pale Yellow */
  --font-main: 'Noto Sans JP', 'Inter', sans-serif;
  --content-width: 1000px;
}

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

body {
  font-family: var(--font-main);
  color: var(--color-text-main);
  background-color: var(--color-base);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  padding-top: 70px;
  /* Header height offset */
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s ease, color 0.3s ease;
}

a:hover {
  opacity: 0.7;
}

ul,
ol {
  list-style: none;
}

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

/* Layout */
.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 5%;
}

.section {
  padding: 80px 0;
}

/* Subpage background and content container */
main.subpage-main {
  background-image: url('../assets/hero_bg.png');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  min-height: calc(100vh - 70px);
}

main.subpage-main>.container {
  padding: 60px 0;
  /* Boxを取り除き、余白のみ少し確保 */
}

@media(max-width: 768px) {
  main.subpage-main>.container {
    padding: 40px 20px;
  }
}

main.section>.container {
  padding: 60px 0;
  /* Boxを取り除き、余白のみ少し確保 */
}

@media(max-width: 768px) {
  main.section>.container {
    padding: 40px 20px;
  }
}

.section-title {
  text-align: center;
  font-size: 2rem;
  letter-spacing: 0.1em;
  margin-bottom: 50px;
  color: var(--color-text-main);
  font-weight: 500;
  font-family: 'Inter', sans-serif;
}

.page-title {
  text-align: center;
  font-size: 2.5rem;
  letter-spacing: 0.05em;
  margin: 10px 0 40px;
  /* 上部のmarginを60pxから10pxに縮小 */
  color: var(--color-text-main);
  font-weight: 500;
  font-family: 'Inter', sans-serif;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(17, 17, 17, 0.95);
  backdrop-filter: blur(5px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 15px 0;
  height: 70px;
  /* fixed height */
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  max-width: 100%;
  /* 全幅にしてなるべく左に寄せる */
  padding: 0 30px;
  /* 左右の余白を固定値に */
}

.header-logo {
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  font-family: 'Inter', serif;
  color: #ffffff;
  /* 白抜き文字に設定 */
}

.global-nav ul {
  display: flex;
  gap: 25px;
}

.global-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.global-nav a:hover {
  color: #e5e5e5;
  opacity: 1;
}

/* Mobile Menu Button */
.menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.menu-btn span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: #ffffff;
  margin: 5px 0;
  transition: 0.3s;
}

/* Footer */
.footer {
  background-color: var(--color-bg-light);
  padding: 60px 0 30px;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-info {
  margin-bottom: 30px;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 15px;
  letter-spacing: 0.1em;
  font-family: 'Inter', serif;
}

.footer-address {
  color: var(--color-text-sub);
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-links {
  margin-bottom: 20px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--color-text-sub);
  letter-spacing: 0.05em;
}

.footer-links a:hover {
  color: var(--color-text-main);
}

.footer-copy {
  font-size: 0.75rem;
  color: #999;
}

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

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

/* Base Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--color-text-main);
  color: #fff;
  border-radius: 4px;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  border: 1px solid var(--color-text-main);
}

.btn:hover {
  background-color: #fff;
  color: var(--color-text-main);
  opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .header .container {
    padding: 0 15px;
    /* スマホではさらに左寄せになるよう余白を狭める */
  }

  .header-logo {
    font-size: 1.4rem;
    /* スマホでバランスが良くなるよう少し縮小 */
  }

  .global-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: rgba(17, 17, 17, 0.98);
    padding: 20px 0;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.2);
    border-top: 1px solid #333;
  }

  .global-nav.is-open {
    display: block;
    animation: slideDown 0.3s ease forwards;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .global-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .menu-btn {
    display: block;
  }
}