/* ============================================
   Design Tokens
   ============================================ */
:root {
  --primary:       #9b826b;
  --primary-dark:  #7d6854;
  --primary-light: #b8a893;
  --bg:            #ffffff;
  --bg-light:      #faf8f5;
  --bg-dark:       #f5f1eb;
  --text:          #3d3d3d;
  --text-muted:    #666666;
  --text-light:    #999999;
  --border:        #e1d2c4;
  --border-light:  #f0e8df;
  --shadow:        rgba(155, 130, 107, 0.15);
  --shadow-lg:     rgba(155, 130, 107, 0.28);
  --radius:        16px;
  --radius-sm:     12px;
  --radius-lg:     24px;
  --max-width:     1200px;
  --spacing:       24px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  font-size: 1rem;
}

img { max-width: 100%; height: auto; display: block; }
a   { text-decoration: none; }

/* ============================================
   Header
   ============================================ */
header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 2px 16px var(--shadow);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing);
  height: 68px;
}

.logo {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary-dark);
  white-space: nowrap;
  letter-spacing: -0.01em;
  line-height: 1;
}

.nav-links ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links ul li a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s;
}

.nav-links ul li a:hover { color: var(--primary); }

.cta-button {
  background: var(--primary) !important;
  color: #fff !important;
  padding: 9px 20px !important;
  border-radius: 50px !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  transition: background 0.2s, transform 0.2s !important;
  white-space: nowrap;
}

.cta-button:hover {
  background: var(--primary-dark) !important;
  transform: translateY(-1px) !important;
  color: #fff !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
  padding: 4px 6px;
  line-height: 1;
}

/* ============================================
   Hero
   ============================================ */
.hero-section {
  background: linear-gradient(140deg, var(--bg-dark) 0%, var(--bg-light) 55%, #fff 100%);
  padding: 80px 0 64px;
  overflow: hidden;
}

.hero-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing);
  display: flex;
  align-items: center;
  gap: 64px;
}

.hero-content { flex: 1; max-width: 560px; }

.hero-badge {
  display: inline-block;
  background: rgba(155, 130, 107, 0.12);
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 50px;
  border: 1px solid var(--border);
  margin-bottom: 22px;
  letter-spacing: 0.03em;
}

.hero-title {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 900;
  color: var(--text);
  line-height: 1.35;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}

.hero-title .accent { color: var(--primary); }

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 36px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #fff;
  padding: 16px 38px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 4px 20px rgba(155,130,107,0.38);
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}

.hero-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(155,130,107,0.48);
}

.hero-image { flex: 1; max-width: 500px; }

.hero-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 48px rgba(0,0,0,0.12);
}

/* ============================================
   Stats Bar
   ============================================ */
.stats-section {
  background: #231f1c;
  padding: 0;
}

.stats-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  text-align: center;
  padding: 40px 20px;
  border-right: 1px solid rgba(255,255,255,0.07);
  transition: background 0.3s;
}

.stat-item:last-child { border-right: none; }
.stat-item:hover { background: rgba(155,130,107,0.18); }

.stat-value {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  color: #e8d5c0;
  line-height: 1.15;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ============================================
   Section Base
   ============================================ */
.section {
  padding: 80px var(--spacing);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.85;
  max-width: 560px;
  margin: 0 auto;
}

/* ============================================
   Services
   ============================================ */
#services { background: var(--bg); }

.service-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-item {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-item:hover {
  transform: translateY(-7px);
  box-shadow: 0 16px 48px var(--shadow-lg);
}

.service-item-image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.service-item-body {
  padding: 28px 24px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-item-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--primary);
  background: rgba(155,130,107,0.1);
  padding: 3px 10px;
  border-radius: 50px;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.service-item-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.45;
}

.service-item-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.85;
  flex: 1;
}

.service-item-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 18px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  transition: gap 0.2s;
}

.service-item-link:hover { gap: 8px; }

/* ============================================
   Results Gallery
   ============================================ */
.results-section {
  background: #0e0c0b;
  padding: 80px 0 60px;
}

.results-section .section-header { padding: 0 var(--spacing); margin-bottom: 48px; }
.results-section .section-title  { color: #fff; }
.results-section .section-subtitle { color: rgba(255,255,255,0.55); }

.results-gallery-wrapper {
  overflow: hidden;
  position: relative;
  margin-bottom: 18px;
}

.results-gallery {
  display: flex;
  gap: 16px;
  width: max-content;
  animation-duration: 65s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-play-state: paused;
  user-select: none;
  -webkit-user-select: none;
}

.results-gallery-right { animation-name: marqueeLeft; }
.results-gallery-left  { animation-name: marqueeRight; }

@keyframes marqueeLeft  { from { transform: translateX(0);    } to { transform: translateX(-50%); } }
@keyframes marqueeRight { from { transform: translateX(-50%); } to { transform: translateX(0);    } }

.result-image {
  flex: 0 0 auto;
  width: 220px;
  height: 330px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 6px 24px rgba(0,0,0,0.45);
  transition: transform 0.3s;
}

/* ============================================
   Profile
   ============================================ */
#profile { background: var(--bg); }

.profile-container {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 64px;
  align-items: start;
}

.profile-image {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 36px var(--shadow-lg);
}

.profile-name {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1.2;
}

.profile-name-kana {
  font-size: 0.82rem;
  color: var(--text-light);
  margin: 4px 0 20px;
  letter-spacing: 0.06em;
}

.profile-description {
  font-size: 0.97rem;
  color: var(--text);
  line-height: 2;
  margin-bottom: 24px;
}

.profile-history {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-history li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding-left: 1.2em;
  position: relative;
  line-height: 1.6;
}

.profile-history li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--primary);
}

/* ============================================
   Support Gallery
   ============================================ */
#support {
  background: var(--bg-light);
  padding: 80px 0;
}

#support .section-header { padding: 0 var(--spacing); margin-bottom: 48px; }

.support-gallery-wrapper {
  overflow: hidden;
  position: relative;
  margin-bottom: 14px;
}

.support-gallery {
  display: flex;
  gap: 14px;
  width: max-content;
  animation-duration: 55s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-play-state: paused;
  user-select: none;
  -webkit-user-select: none;
}

.support-gallery-right { animation-name: marqueeLeft; }
.support-gallery-left  { animation-name: marqueeRight; }

.support-image {
  flex: 0 0 auto;
  width: 260px;
  height: 195px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 3px 14px var(--shadow);
}

/* ============================================
   News – Coming Soon
   ============================================ */
#news { background: var(--bg); }

.news-coming-soon {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: 64px 40px;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--border);
}

.news-coming-soon-icon {
  font-size: 2.8rem;
  margin-bottom: 18px;
  color: var(--primary-light);
}

.news-coming-soon-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}

.news-coming-soon-text {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.9;
}

.news-coming-soon-sns {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  border: 1px solid var(--primary-light);
  padding: 9px 20px;
  border-radius: 50px;
  transition: background 0.2s;
}

.news-coming-soon-sns:hover {
  background: rgba(155,130,107,0.08);
}

/* ============================================
   Final CTA Section
   ============================================ */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 88px var(--spacing);
  text-align: center;
}

.cta-section .section-title    { color: #fff; }
.cta-section .section-subtitle { color: rgba(255,255,255,0.82); }

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--primary-dark);
  padding: 18px 52px;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 800;
  box-shadow: 0 4px 28px rgba(0,0,0,0.2);
  margin-top: 36px;
  transition: transform 0.25s, box-shadow 0.25s;
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 36px rgba(0,0,0,0.3);
  color: var(--primary-dark);
}

/* ============================================
   Footer
   ============================================ */
footer {
  background: #1c1814;
  color: rgba(255,255,255,0.65);
  padding: 64px var(--spacing) 36px;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: rgba(255,255,255,0.9);
  margin-bottom: 10px;
}

.footer-brand-desc {
  font-size: 0.85rem;
  line-height: 1.9;
  color: rgba(255,255,255,0.5);
}

.footer-section h3 {
  font-size: 0.78rem;
  font-weight: 800;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-left: 0;
  border-left: none;
}

.footer-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-section ul li {
  font-size: 0.88rem;
  display: block;
  margin: 0;
}

.footer-section ul li a {
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}

.footer-section ul li a:hover { color: rgba(255,255,255,0.95); }

.footer-bottom {
  max-width: var(--max-width);
  margin: 28px auto 0;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

/* ============================================
   Animations
   ============================================ */
.will-inview {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.inview {
  opacity: 1;
  transform: none;
}

/* ============================================
   Utility / Shared
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  padding: 14px 32px;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

h2 {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
}

/* ============================================
   Other pages (company / contact / greeting)
   ============================================ */
.company-header {
  background: var(--primary-dark);
  color: #fff;
  text-align: center;
  padding: 60px 20px;
}
.company-header h2 { color: #fff; font-size: 2rem; }

.subtitle { color: rgba(255,255,255,0.8); }

.company-info {
  max-width: 800px;
  margin: 40px auto;
  background: #fff;
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: 0 2px 16px var(--shadow);
}
.company-info table { width: 100%; border-collapse: collapse; }
.company-info th,
.company-info td {
  padding: 14px 16px;
  border: 1px solid var(--border-light);
  text-align: left;
  font-size: 0.95rem;
}
.company-info th {
  background: var(--bg-light);
  font-weight: 700;
  width: 30%;
}

.greeting-section {
  text-align: center;
  padding: 80px 20px;
  background: var(--bg-light);
}
.greeting-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 48px;
  max-width: 900px;
  margin: 40px auto 0;
  text-align: left;
}
.ceo-photo {
  width: 220px;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px var(--shadow);
  flex-shrink: 0;
}
.message-box {
  background: #fff;
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px var(--shadow);
  line-height: 1.9;
}

.contact-section {
  text-align: center;
  padding: 80px 20px;
  background: var(--bg-light);
}
.contact-form {
  max-width: 560px;
  margin: 40px auto 0;
  background: #fff;
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 24px var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}
.contact-form label { font-weight: 700; font-size: 0.9rem; display: block; margin-bottom: 6px; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--primary); }
.contact-form textarea { resize: vertical; min-height: 120px; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 960px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item  { border-right: 1px solid rgba(255,255,255,0.07); border-bottom: 1px solid rgba(255,255,255,0.07); }

  .service-container { grid-template-columns: 1fr 1fr; max-width: 720px; margin: 0 auto; }

  .profile-container { grid-template-columns: 1fr; max-width: 600px; text-align: center; }
  .profile-image { max-width: 200px; margin: 0 auto; }
  .profile-history { text-align: left; }
}

@media (max-width: 768px) {
  .hero-section { padding: 56px 0 44px; }
  .hero-container { flex-direction: column; gap: 36px; text-align: center; }
  .hero-content { max-width: 100%; }
  .hero-image   { max-width: 100%; }

  .menu-toggle { display: inline-block; }
  .nav-links   { display: none; }
  .nav-links.open {
    display: block;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 6px 24px var(--shadow-lg);
    padding: 8px 0 16px;
  }
  .nav-links.open ul { flex-direction: column; gap: 0; padding: 0 var(--spacing); }
  .nav-links.open ul li a { display: block; padding: 13px 0; border-bottom: 1px solid var(--border-light); font-size: 1rem; }
  .nav-links.open ul li:last-child a { border-bottom: none; }

  .section { padding: 60px var(--spacing); }

  .service-container { grid-template-columns: 1fr; max-width: 420px; }

  .footer-container { grid-template-columns: 1fr; gap: 32px; }

  .result-image  { width: 160px; height: 240px; }
  .support-image { width: 200px; height: 150px; }
}

@media (max-width: 480px) {
  :root { --spacing: 16px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: 1.7rem; }
  .news-coming-soon { padding: 48px 24px; }
}
