/* =============================================
   代表挨拶ページ専用CSS
   ceo-message-style.css
   ============================================= */

:root {
  --color-bg: #faf9f7;
  --color-bg-alt: #f2f0ec;
  --color-text: #1a1a1a;
  --color-text-muted: #555555;
  --color-accent: #c4a574;
  --color-accent-dark: #8b7355;
  --color-line: #e0ddd8;
  --font-en: 'Cormorant Garamond', serif;
  --font-jp: 'Noto Serif JP', serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-jp);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 2;
  font-weight: 300;
  letter-spacing: 0.05em;
  overflow-x: hidden;
}

.en {
  font-family: var(--font-en);
  letter-spacing: 0.15em;
}

/* =============================================
   Navigation
   ============================================= */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0,0,0,0.95);
  backdrop-filter: blur(10px);
  transition: all 0.4s var(--ease-out);
}

nav.scrolled {
  padding: 1rem 4rem;
  background: rgba(0,0,0,0.98);
}

.logo {
  font-family: var(--font-en);
  font-size: 1.25rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: opacity 0.3s ease;
}

.logo:hover {
  opacity: 0.7;
}

.logo-enso {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.nav-links {
  display: flex;
  gap: 3rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-en);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  position: relative;
  transition: opacity 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #fff;
  transition: width 0.4s var(--ease-out);
}

.nav-links a:hover {
  opacity: 0.7;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Mobile menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  z-index: 101;
}

.menu-toggle span {
  width: 24px;
  height: 1px;
  background: #fff;
  transition: all 0.3s ease;
}

/* Mobile menu open state */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* =============================================
   Section Label
   ============================================= */
.section-label {
  font-family: var(--font-en);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 3rem;
}

/* =============================================
   Message Hero
   ============================================= */
.message-hero {
  padding: 12rem 4rem 6rem;
  background: #000;
  text-align: center;
}

.message-hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.message-hero .section-label {
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.5rem;
}

.message-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  letter-spacing: 0.15em;
  color: #fff;
}

/* =============================================
   Message Content
   ============================================= */
.message-content {
  padding: 6rem 4rem 8rem;
}

.message-container {
  max-width: 800px;
  margin: 0 auto;
}

/* Message Profile */
.message-profile {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--color-line);
}

.message-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.message-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.message-name {
  text-align: left;
}

.message-name-jp {
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}

.message-name-en {
  font-family: var(--font-en);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  letter-spacing: 0.2em;
  margin-bottom: 0.5rem;
}

.message-title-text {
  font-size: 0.85rem;
  color: var(--color-accent-dark);
  letter-spacing: 0.1em;
}

/* Message Body */
.message-body {
  margin-bottom: 4rem;
}

.message-text {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 2.4;
  margin-bottom: 2rem;
}

.message-text:last-child {
  margin-bottom: 0;
}

/* Back Link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.back-link:hover {
  color: var(--color-text);
}

.back-link svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.back-link:hover svg {
  transform: translateX(-4px);
}

/* =============================================
   Footer
   ============================================= */
footer {
  padding: 4rem;
  text-align: center;
  background: #1a1a1a;
  color: #fff;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  letter-spacing: 0.3em;
  color: #fff;
  margin-bottom: 2rem;
}

.footer-enso {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  list-style: none;
}

.footer-links a {
  font-family: var(--font-en);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.1em;
}

/* =============================================
   Back to Top
   ============================================= */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: var(--color-text);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ease-out);
  z-index: 99;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--color-accent-dark);
  transform: translateY(-4px);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* =============================================
   Responsive - Tablet
   ============================================= */
@media (max-width: 1024px) {
  nav {
    padding: 1.25rem 2rem;
  }

  nav.scrolled {
    padding: 1rem 2rem;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.98);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 5rem 0 2rem;
    transform: translateY(-100%);
    opacity: 1;
    visibility: visible;
    transition: transform 0.4s var(--ease-out);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  }

  .nav-links.active {
    transform: translateY(0);
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    font-size: 0.9rem;
    display: block;
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }

  .nav-links a::after {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .message-hero {
    padding: 10rem 2rem 4rem;
  }

  .message-content {
    padding: 4rem 2rem 6rem;
  }

  .message-profile {
    gap: 1.5rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
  }

  .message-photo {
    width: 120px;
    height: 120px;
  }

  footer {
    padding: 3rem 2rem;
  }
}

/* =============================================
   Responsive - Mobile
   ============================================= */
@media (max-width: 600px) {
  .message-hero {
    padding: 8rem 1.5rem 3rem;
  }

  .message-title {
    font-size: 1.75rem;
  }

  .message-content {
    padding: 3rem 1.5rem 4rem;
  }

  .message-profile {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .message-photo {
    width: 140px;
    height: 140px;
  }

  .message-name {
    text-align: center;
  }

  .message-name-jp {
    font-size: 1.25rem;
  }

  .message-text {
    font-size: 0.9rem;
    line-height: 2.2;
    margin-bottom: 1.5rem;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 1rem;
  }
}