:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --accent-color: #333333;
  --border-color: #eeeeee;
  --max-width: 1000px;
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.8;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
}

img {
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

img:hover {
  filter: grayscale(0%); /* Optional: hover for color */
}

/* Utils */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 6rem 0;
}

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.25;
}

h2 {
  font-size: 2.2rem;
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
}

h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: var(--accent-color);
  margin: 1.5rem auto 0;
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* height: 70px; ←固定値を削除し、中身（ロゴ80px）で高さを決める */
  padding: 0.5rem 2rem;
}

.logo {
  display: flex; /* 画像の上下余白調整のため */
  align-items: center;
}

.logo a {
  display: block;
  line-height: 0; /* 画像の下の余白を消す */
}

.logo img {
  height: 80px; /* ヘッダーの高さに合わせて調整 */
  width: auto;
  filter: grayscale(100%); /* ロゴもモノクロ化 */
  transition: filter 0.3s ease;
}

.logo img:hover {
  filter: grayscale(0%);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

nav a {
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
}

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

/* Hero */
.hero {
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4)), url('assets/hero_sea.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero h1 {
  font-size: 3.2rem;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto 3rem;
}

/* Content Blocks */
.content-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
}

.content-block.reverse {
  direction: rtl;
}

.content-block.reverse > * {
  direction: ltr;
}

.image-wrapper img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.06);
}

.image-wrapper img.natural-size {
  width: auto;
  max-width: 350px; /* 掲載サイズを小さく制限 */
  height: auto;
  display: block;
  margin: 0 auto;
  box-shadow: none;
}

/* 支払いサイクルセクションの調整 */
#payment .content-block {
  grid-template-columns: 1fr 1.2fr; /* 画像を少し小さめの比率に */
  gap: 2rem;
}

#payment .image-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.text-wrapper h3 {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}

/* Flow Cards */
.flow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.flow-card {
  background: var(--bg-secondary);
  padding: 3rem 1.5rem;
  border-radius: 12px;
  text-align: center;
  transition: var(--transition);
}

.flow-card:hover {
  transform: translateY(-5px);
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.flow-card .number {
  font-size: 0.8rem;
  font-weight: 700;
  color: #ccc;
  display: block;
  margin-bottom: 1rem;
}

.flow-card h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.flow-card p {
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Profile */
.profile {
  background: var(--bg-secondary);
}

.profile-content {
  display: flex;
  gap: 3rem;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
}

.profile-image {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-text h3 {
  margin-bottom: 1rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
}

.social-link:hover {
  background: var(--bg-primary);
  border-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* FAQ */
.faq-list {
  max-width: 750px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.faq-item p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Contact / Stripe */
.cta-box {
  background: var(--accent-color);
  color: white;
  padding: 5rem 2rem;
  border-radius: 16px;
  text-align: center;
}

.cta-box h2 {
  color: white;
  border-bottom: none;
}

.cta-box h2::after {
  background: white;
}

.cta-box p {
  margin-bottom: 3rem;
}

.btn-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.btn {
  display: inline-block;
  padding: 1.1rem 2rem;
  background: white;
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 700;
  border-radius: 12px;
  transition: var(--transition);
  font-size: 1rem;
}

.btn:hover {
  background: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Footer */
footer {
  padding: 3rem 0;
  text-align: center;
  border-top: 1px solid var(--border-color);
  font-size: 0.85rem;
  color: #888;
}

@media (max-width: 840px) {
  .hero h1 { font-size: 2.22rem; }
  .hero p { font-size: 1rem; }
  .content-block { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .content-block.reverse { direction: ltr; }
  .profile-content { flex-direction: column; text-align: center; }
  section { padding: 4rem 0; }
  
  header .container {
    flex-direction: column;
    height: auto;
    padding: 1rem;
    gap: 1rem;
  }
  
  nav ul {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .logo img {
    height: 50px; /* スマホでは小さめに */
  }
  
  nav a {
    font-size: 0.8rem;
  }

  .cta-box { padding: 3rem 1.5rem; }
  .btn { width: 100%; margin: 0 !important; }
}
