:root {
  --primary-color: #19ABE2;
  --text-color: #333;
  --text-light: #fff;
  --bg-dark: #000;
  --bg-light: #f4f4f4;
  --font-family: 'Avenir', 'Tsukushi A Round Gothic', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

a {
  text-decoration: none;
  color: inherit;
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 100px;
  background-color: rgba(255, 255, 255, 0.95);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo-container {
  display: flex;
  background: white;
  padding: 10px 20px;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  position: absolute;
  top: 0;
  left: 40px;
}

.logo-container img {
  width: 141px;
  height: auto;
}

nav {
  margin-left: auto;
  display: flex;
  gap: 30px;
  align-items: center;
}

nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-color);
  transition: color 0.3s;
  letter-spacing: 1px;
}

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

.lang-switch {
  display: flex;
  gap: 10px;
  margin-left: 20px;
}

.lang-btn {
  background: none;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 12px;
  transition: all 0.3s;
}

.lang-btn.active {
  background: var(--primary-color);
  color: #fff;
}

/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  height: 700px;
  background-image: url('../image/818d96_cb70e1ae2bfa4eadbf0cc94bcdb4e84c~mv2.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--text-light);
  margin-top: 100px; /* Offset for fixed header */
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.4);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 20px;
}

.hero h1 {
  font-size: 32px;
  font-weight: normal;
  text-shadow: 0 4px 5px rgba(0,0,0,0.4);
  margin-bottom: 40px;
}

.hero-logo-white {
  width: 180px;
  margin: 0 auto;
}

/* Sections */
section {
  padding: 80px 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.section-title {
  font-size: 28px;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: normal;
}

.content-block {
  margin-bottom: 60px;
}

.content-block p {
  font-size: 17px;
  line-height: 1.8;
  text-align: justify;
  margin-bottom: 30px;
}

.content-block img {
  width: 100%;
  max-width: 500px;
  display: block;
  margin: 0 auto;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.affiliate-banner {
  text-align: center;
  margin: 60px 0 0 0;
  padding: 60px 20px;
  background-color: #E6E9EE;
  width: 100vw;
  max-width: none;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.affiliate-banner img {
  width: 248px;
  margin-bottom: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.affiliate-banner p {
  color: var(--text-color);
  font-size: 16px;
  margin-top: 10px;
}

.affiliate-banner a {
  color: var(--primary-color);
  text-decoration: none;
}

.affiliate-banner a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 40px 20px;
  text-align: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 14px;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.footer-bottom {
  font-size: 13px;
  opacity: 0.8;
  margin-bottom: 20px;
}

.p-mark {
  width: 87px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    height: auto;
    padding: 10px;
    align-items: center;
  }
  
  .logo-container {
    position: static;
    box-shadow: none;
    padding: 10px;
  }

  nav {
    margin: 10px 0;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  .lang-switch {
    margin: 10px 0;
  }

  .hero {
    height: 500px;
    margin-top: 140px;
  }
  
  .hero h1 {
    font-size: 20px;
  }
}

/* Content Toggling */
[data-jp] { display: block; }
[data-en] { display: none; }

body.lang-en [data-jp] { display: none; }
body.lang-en [data-en] { display: block; }
