/* File: styles.css */
/* ════════════════════════════════════════
   FMC株式会社 — Sunset Lifestyle Edition
   Mobile-first
════════════════════════════════════════ */

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

:root {
  /* Sunset palette */
  --sunset-cream: #fff8e7;
  --sunset-yellow: #ffd89b;
  --sunset-orange: #ff9a76;
  --sunset-coral: #ff6b6b;
  --sunset-pink: #c44569;
  --bg-cream: #fef6f0;
  --text-dark: #2d2d2d;
  --text-mid: #555;
  --text-light: #888;
  --border-soft: #f0d8c8;

  --shadow-sm: 0 4px 12px rgba(196,69,105,0.08);
  --shadow-md: 0 10px 30px rgba(196,69,105,0.18);
  --shadow-lg: 0 20px 50px rgba(196,69,105,0.25);

  --radius: 20px;
  --radius-lg: 24px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text-dark);
  background: var(--bg-cream);
  line-height: 1.75;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }

/* ── Layout ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 60px 0; }

/* ── Typography ── */
h1, h2, h3 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-dark);
}

h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 6vw, 42px);
  line-height: 1.3;
  font-weight: 700;
}

h2 em {
  font-style: italic;
  color: var(--sunset-pink);
}

p { color: var(--text-mid); line-height: 1.85; }

.sp-br { display: block; }

/* ── Section Labels ── */
.section-label {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--sunset-pink);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-label-center {
  display: block;
  text-align: center;
}

.section-label-light {
  color: var(--sunset-yellow);
}

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

/* ── Buttons ── */
.btn {
  display: inline-block;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: 50px;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  text-align: center;
  letter-spacing: 0.02em;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.18);
}

.btn-white {
  background: #fff;
  color: var(--sunset-pink);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.btn-outline-white {
  border: 1.5px solid rgba(255,255,255,0.7);
  color: #fff;
  background: transparent;
}
.btn-outline-white:hover {
  background: #fff;
  color: var(--sunset-pink);
}

.btn-outline-pink {
  border: 1.5px solid var(--sunset-pink);
  color: var(--sunset-pink);
  background: transparent;
}
.btn-outline-pink:hover {
  background: var(--sunset-pink);
  color: #fff;
}

/* ── Fade-in ── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ════════════════════════
   HEADER
════════════════════════ */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
#header.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #fff;
  line-height: 1;
  flex-shrink: 0;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: color 0.3s ease, text-shadow 0.3s ease;
}
.logo span { color: var(--sunset-yellow); }

#header.scrolled .logo {
  color: var(--sunset-pink);
  text-shadow: none;
}
#header.scrolled .logo span { color: var(--sunset-pink); }

.nav {
  display: none;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
  transition: opacity 0.2s;
}
.nav-link:hover { opacity: 0.7; }

#header.scrolled .nav-link {
  color: var(--text-dark);
  text-shadow: none;
}

.nav-cta-btn {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--sunset-pink);
  background: #fff;
  padding: 10px 22px;
  border-radius: 50px;
  margin-left: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 101;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.28s ease, opacity 0.2s ease, background 0.3s ease;
}
#header.scrolled .hamburger span { background: var(--text-dark); }

.hamburger.open span { background: var(--text-dark); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav overlay */
.nav.open {
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 64px 0 0 0;
  background: #fff;
  padding: 32px 24px 40px;
  gap: 6px;
  z-index: 99;
  overflow-y: auto;
  animation: slideDown 0.25s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nav.open .nav-link,
.nav.open .nav-cta-btn {
  font-size: 17px;
  padding: 16px 18px;
  margin: 0;
  color: var(--text-dark);
  background: transparent;
  text-shadow: none;
  border-radius: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.nav.open .nav-link:hover,
.nav.open .nav-cta-btn:hover {
  background: var(--bg-cream);
  color: var(--sunset-pink);
}

/* ════════════════════════
   HERO
════════════════════════ */
#hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background-image:
    linear-gradient(180deg,
      rgba(255, 216, 155, 0.35) 0%,
      rgba(255, 154, 118, 0.40) 40%,
      rgba(255, 107, 107, 0.55) 75%,
      rgba(196, 69, 105, 0.75) 100%),
    url('uploads/01_sunset_ocean.png');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 120px;
}

.hero-inner {
  width: 100%;
  max-width: 900px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(48px, 11vw, 88px);
  line-height: 1;
  color: #fff;
  letter-spacing: 2px;
  margin-bottom: 24px;
  text-shadow: 0 4px 24px rgba(0,0,0,0.25);
}

.hero-content h1 .accent {
  display: block;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(32px, 7.5vw, 64px);
  color: var(--sunset-cream);
  letter-spacing: 0;
  margin-top: 12px;
}

.hero-sub {
  font-size: clamp(15px, 4vw, 18px);
  color: #fff;
  max-width: 640px;
  margin: 0 auto 40px;
  opacity: 0.95;
  line-height: 1.85;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}
.hero-cta .btn { min-width: 240px; }

/* Wave divider */
.wave-divider {
  height: 80px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'><path d='M0,40 C360,80 720,0 1440,40 L1440,80 L0,80 Z' fill='%23fef6f0'/></svg>") no-repeat bottom;
  background-size: cover;
  margin-top: -80px;
  position: relative;
  z-index: 5;
}

/* ════════════════════════
   ABOUT
════════════════════════ */
#about {
  padding: 60px 0 60px;
}

.about-grid {
  display: flex;
  flex-direction: column;
  gap: 36px;
  margin-bottom: 50px;
}

.about-image {
  width: 100%;
  height: 360px;
  border-radius: var(--radius-lg);
  background-image: url('uploads/05_surfer_silhouette.png');
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-lg);
}

.about-text h2 {
  margin: 8px 0 24px;
}

.about-text p {
  font-size: 15px;
  margin-bottom: 14px;
  line-height: 1.9;
}
.about-text p:last-of-type { margin-bottom: 0; }

.about-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border-soft);
}
.meta-item h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  color: var(--sunset-pink);
  letter-spacing: 1px;
  line-height: 1;
}
.meta-item p {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 6px;
}

/* Philosophy cards */
.philosophy-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.philosophy-card {
  border-radius: var(--radius);
  padding: 28px 26px;
}

.philosophy-mgmt {
  background: linear-gradient(135deg, var(--sunset-cream) 0%, var(--sunset-yellow) 100%);
}
.philosophy-corp {
  background: linear-gradient(135deg, var(--sunset-yellow) 0%, var(--sunset-orange) 100%);
  color: #fff;
}

.philosophy-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 14px;
  opacity: 0.7;
}

.philosophy-quote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 28px;
  font-weight: 700;
  color: var(--sunset-pink);
  line-height: 1.3;
}

.philosophy-corp p {
  font-size: 14px;
  color: #fff;
  opacity: 0.95;
  line-height: 1.9;
}

/* ════════════════════════
   IMAGE STRIP
════════════════════════ */
.strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.strip-img {
  position: relative;
  height: 280px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.strip-left  { background-image: url('uploads/03_surfboard.png'); }
.strip-right { background-image: url('uploads/04_wave_aerial.png'); }

.strip-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.45) 100%);
}

.strip-label {
  position: absolute;
  bottom: 28px;
  left: 28px;
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 26px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  z-index: 2;
}

/* ════════════════════════
   SERVICES
════════════════════════ */
#services { background: #fff; }

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.service-card {
  padding: 36px 28px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--sunset-cream) 0%, var(--sunset-yellow) 100%);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-dark);
}
.service-card:nth-child(2) {
  background: linear-gradient(135deg, var(--sunset-yellow) 0%, var(--sunset-orange) 100%);
  color: #fff;
}
.service-card:nth-child(3) {
  background: linear-gradient(135deg, var(--sunset-orange) 0%, var(--sunset-pink) 100%);
  color: #fff;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.service-card .num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 56px;
  line-height: 1;
  opacity: 0.55;
  letter-spacing: 2px;
}

.service-card h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  letter-spacing: 3px;
  margin: 16px 0 4px;
  color: inherit;
}

.service-card .card-jp {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
  color: inherit;
  opacity: 0.85;
}

.service-card p {
  font-size: 14px;
  color: inherit;
  opacity: 0.9;
  line-height: 1.85;
}

/* ════════════════════════
   FEATURE (Phone Deck)
════════════════════════ */
.feature {
  position: relative;
  min-height: 520px;
  background-image:
    linear-gradient(90deg, rgba(45, 45, 45, 0.78) 0%, rgba(45, 45, 45, 0.35) 60%, transparent 100%),
    url('uploads/02_phone_deck.png');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  padding: 80px 24px;
}

.feature-content {
  max-width: 560px;
  color: #fff;
}

.feature-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 5.5vw, 44px);
  margin: 16px 0 24px;
  line-height: 1.3;
  color: #fff;
}
.feature-content h2 em {
  font-style: italic;
  color: var(--sunset-yellow);
}

.feature-content p {
  font-size: 16px;
  color: rgba(255,255,255,0.92);
  line-height: 1.9;
  margin-bottom: 28px;
}

/* ════════════════════════
   STRENGTHS
════════════════════════ */
#strengths { background: #fff; }

.strengths-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.strength-card {
  padding: 32px 26px;
  border-radius: var(--radius);
  background: var(--bg-cream);
  border: 1px solid var(--border-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.strength-card:hover {
  transform: translateY(-6px);
  border-color: var(--sunset-pink);
  box-shadow: var(--shadow-md);
}

.strength-card .num {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 32px;
  color: var(--sunset-pink);
  line-height: 1;
}

.strength-card h3 {
  font-size: 19px;
  margin: 14px 0 10px;
  color: var(--text-dark);
}

.strength-card p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.85;
}

/* ════════════════════════
   RECRUIT
════════════════════════ */
#recruit {
  background: var(--bg-cream);
}

.recruit-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.recruit-card {
  border-radius: var(--radius);
  padding: 32px 28px;
}

.recruit-primary {
  background: linear-gradient(135deg, var(--sunset-orange) 0%, var(--sunset-pink) 100%);
  color: #fff;
}
.recruit-secondary {
  background: #fff;
  border: 1px solid var(--border-soft);
}

.recruit-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.45;
}
.recruit-primary h3 { color: #fff; }
.recruit-secondary h3 { color: var(--text-dark); }

.recruit-card p {
  font-size: 14px;
  line-height: 1.9;
  margin-bottom: 22px;
}
.recruit-primary p { color: rgba(255,255,255,0.92); }
.recruit-secondary p { color: var(--text-mid); }

.recruit-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.tag {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: rgba(255,255,255,0.22);
  border-radius: 50px;
  padding: 5px 14px;
  letter-spacing: 0.04em;
}

.recruit-card .btn {
  display: block;
  width: 100%;
}

/* ════════════════════════
   COMPANY
════════════════════════ */
#company { background: #fff; }

.company-wrap {
  background: var(--bg-cream);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 820px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}

.company-table {
  width: 100%;
  border-collapse: collapse;
}

.company-table th,
.company-table td {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border-soft);
  text-align: left;
  font-size: 14px;
  vertical-align: top;
  line-height: 1.7;
}

.company-table tr:last-child th,
.company-table tr:last-child td { border-bottom: none; }

.company-table th {
  width: 36%;
  color: var(--sunset-pink);
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.04em;
}
.company-table td { color: var(--text-dark); }

/* ════════════════════════
   CONTACT
════════════════════════ */
.contact-section {
  position: relative;
  padding: 100px 24px;
  text-align: center;
  color: #fff;
  background-image:
    linear-gradient(180deg, rgba(196, 69, 105, 0.85) 0%, rgba(45, 45, 45, 0.95) 100%),
    url('uploads/01_sunset_ocean.png');
  background-size: cover;
  background-position: center;
}

.contact-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.contact-content h2 {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(28px, 6vw, 42px);
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.3;
}
.contact-content h2 em {
  font-style: italic;
  color: var(--sunset-yellow);
}

.contact-content p {
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  margin-bottom: 8px;
}

.contact-tagline {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: rgba(255,255,255,0.7) !important;
  font-size: 15px !important;
  margin-bottom: 32px !important;
  letter-spacing: 0.02em;
}

.contact-content .btn { min-width: 240px; }

/* ════════════════════════
   FOOTER
════════════════════════ */
#footer {
  background: #2d2d2d;
  padding: 48px 0 30px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.logo-light {
  color: #fff;
}
.logo-light span { color: var(--sunset-yellow); }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-nav a {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.04em;
  padding: 4px 0;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--sunset-yellow); }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.copyright {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.04em;
}

/* ════════════════════════
   DESKTOP (768px+)
════════════════════════ */
@media (min-width: 768px) {

  section { padding: 100px 0; }

  .sp-br { display: inline; }

  /* Header */
  .header-inner { height: 76px; }
  .nav { display: flex; }
  .hamburger { display: none; }

  /* About */
  .about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
  }
  .about-image { height: 520px; }
  .about-text p { font-size: 15px; }

  .philosophy-grid {
    flex-direction: row;
    gap: 20px;
  }
  .philosophy-card { flex: 1; }

  /* Strip */
  .strip { grid-template-columns: 1fr 1fr; }
  .strip-img { height: 380px; }
  .strip-label { font-size: 28px; bottom: 30px; left: 30px; }

  /* Services */
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  /* Feature */
  .feature { padding: 100px 60px; }

  /* Strengths */
  .strengths-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  .strength-card { padding: 36px 30px; }

  /* Recruit */
  .recruit-grid {
    flex-direction: row;
    gap: 24px;
    align-items: stretch;
  }
  .recruit-card {
    flex: 1;
    padding: 40px 36px;
  }
  .recruit-card .btn {
    display: inline-block;
    width: auto;
  }

  /* Company */
  .company-table th,
  .company-table td {
    padding: 18px 28px;
    font-size: 15px;
  }

  /* Hero CTA: 横並び */
  .hero-cta {
    flex-direction: row;
    justify-content: center;
  }
  .hero-cta .btn { min-width: 220px; }

  /* Footer */
  .footer-top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 1100px) {
  .about-image { height: 560px; }
  .feature { min-height: 600px; }
}