/**
 * Fortuna Family Office - Front Page Styles
 * Swell子テーマ用（ffo- プレフィックスで競合回避）
 */

/* ===== VARIABLES ===== */
:root {
  --ffo-gold: #C5A258;
  --ffo-gold-light: #D4B978;
  --ffo-gold-dark: #A88B3D;
  --ffo-navy: #1B365D;
  --ffo-navy-light: #2A4A7A;
  --ffo-white: #FFFFFF;
  --ffo-off-white: #FAFAF8;
  --ffo-cream: #F5F2EC;
  --ffo-text: #333333;
  --ffo-text-light: #666666;
}

/* ===== RESET for front page ===== */
body.fortuna-front-page {
  font-family: "游明朝", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  color: var(--ffo-text);
  background: var(--ffo-white);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
}

body.fortuna-front-page *,
body.fortuna-front-page *::before,
body.fortuna-front-page *::after {
  box-sizing: border-box;
}

body.fortuna-front-page .en {
  font-family: "EB Garamond", "Georgia", serif;
}

/* ===== HEADER ===== */
.ffo-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: transparent;
  border-bottom: 1px solid transparent;
  backdrop-filter: none;
  transition: background 0.4s ease, border-bottom 0.4s ease, backdrop-filter 0.4s ease;
}

.ffo-header.scrolled {
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid rgba(197,162,88,0.15);
  backdrop-filter: blur(10px);
}

.ffo-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: padding 0.4s ease;
}

.ffo-header.scrolled .ffo-header-inner {
  padding: 14px 40px;
}

.ffo-logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
}

.ffo-logo-main {
  font-family: "EB Garamond", serif;
  font-size: 30px;
  font-weight: 500;
  color: var(--ffo-gold-light);
  letter-spacing: 3px;
  line-height: 1.2;
  transition: font-size 0.4s ease, color 0.4s ease;
}

.ffo-header.scrolled .ffo-logo-main {
  font-size: 22px;
  color: var(--ffo-gold);
}

.ffo-logo-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 3px;
  transition: font-size 0.4s ease, color 0.4s ease;
}

.ffo-header.scrolled .ffo-logo-sub {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--ffo-gold);
  opacity: 0.7;
}

.ffo-nav ul {
  display: flex;
  list-style: none;
  gap: 32px;
  margin: 0;
  padding: 0;
}

.ffo-nav a {
  text-decoration: none;
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  letter-spacing: 1px;
  transition: color 0.4s ease;
  position: relative;
}

.ffo-header.scrolled .ffo-nav a {
  color: var(--ffo-text);
}

.ffo-nav a:hover {
  color: var(--ffo-gold-light);
}

.ffo-header.scrolled .ffo-nav a:hover {
  color: var(--ffo-gold);
}

.ffo-nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--ffo-gold-light);
  transition: width 0.3s, background 0.4s;
}

.ffo-header.scrolled .ffo-nav a::after {
  background: var(--ffo-gold);
}

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

/* Hamburger (SP) */
.ffo-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.ffo-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ffo-gold-light);
  transition: background 0.3s;
}

.ffo-header.scrolled .ffo-hamburger span {
  background: var(--ffo-gold);
}

/* ===== HERO ===== */
.ffo-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 40px 80px;
  position: relative;
  overflow: hidden;
  background: #28231e;
}

.ffo-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  /* 画像パスはWordPressメディアライブラリからの絶対URLに変更する */
  background-image: url('../images/hero-rings.jpg');
}

.ffo-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(40, 35, 30, 0.45);
  z-index: 1;
}

.ffo-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.ffo-hero-logo {
  font-family: "EB Garamond", serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--ffo-gold-light);
  letter-spacing: 6px;
  margin-bottom: 40px;
}

.ffo-hero h1 {
  font-size: 28px;
  font-weight: 400;
  line-height: 2;
  letter-spacing: 3px;
  color: var(--ffo-white);
  margin: 0 0 48px;
}

.ffo-hero-desc {
  font-size: 15px;
  line-height: 2.2;
  color: rgba(255,255,255,0.85);
  letter-spacing: 1px;
}

.ffo-gold-line {
  width: 50px;
  height: 1px;
  background: var(--ffo-gold-light);
  margin: 40px auto;
}

/* ===== SECTIONS ===== */
.ffo-section {
  padding: 100px 40px;
}

.ffo-section-inner {
  max-width: 900px;
  margin: 0 auto;
}

.ffo-section-title-en {
  font-family: "EB Garamond", serif;
  font-size: 36px;
  font-weight: 400;
  color: var(--ffo-gold);
  text-align: center;
  letter-spacing: 4px;
  margin-bottom: 8px;
}

.ffo-section-title-ja {
  font-size: 13px;
  color: var(--ffo-text-light);
  text-align: center;
  letter-spacing: 3px;
  margin-bottom: 16px;
}

.ffo-section-text {
  font-size: 15px;
  line-height: 2.2;
  color: var(--ffo-text-light);
  text-align: center;
  letter-spacing: 0.5px;
}

/* ===== ABOUT ===== */
.ffo-about {
  background: var(--ffo-white);
}

/* ===== SERVICES ===== */
.ffo-services {
  background: var(--ffo-cream);
}

.ffo-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 60px;
}

.ffo-service-card {
  background: var(--ffo-white);
  padding: 48px 32px;
  text-align: center;
  border: 1px solid rgba(197,162,88,0.15);
  transition: box-shadow 0.3s, transform 0.3s;
}

.ffo-service-card:hover {
  box-shadow: 0 8px 40px rgba(197,162,88,0.1);
  transform: translateY(-4px);
}

.ffo-service-icon {
  font-family: "EB Garamond", serif;
  font-size: 42px;
  color: var(--ffo-gold);
  margin-bottom: 24px;
  line-height: 1;
}

.ffo-service-card h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 16px;
  color: var(--ffo-navy);
}

.ffo-service-card p {
  font-size: 13px;
  line-height: 2;
  color: var(--ffo-text-light);
}

.ffo-service-link {
  display: inline-block;
  margin-top: 24px;
  font-family: "EB Garamond", serif;
  font-size: 13px;
  color: var(--ffo-gold);
  text-decoration: none;
  letter-spacing: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.ffo-service-link:hover {
  border-bottom-color: var(--ffo-gold);
}

/* ===== NETWORK ===== */
.ffo-network {
  background: var(--ffo-cream);
}

.ffo-network-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 32px;
  margin-top: 40px;
}

.ffo-network-item {
  font-size: 14px;
  color: var(--ffo-text-light);
  letter-spacing: 1px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(197,162,88,0.2);
}

/* ===== COLUMN ===== */
.ffo-column {
  background: var(--ffo-white);
}

.ffo-column-placeholder {
  text-align: center;
  padding: 60px 0;
  color: var(--ffo-text-light);
  font-size: 14px;
  letter-spacing: 1px;
  border: 1px dashed rgba(197,162,88,0.3);
  margin-top: 40px;
}

.ffo-column-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.ffo-column-card {
  text-decoration: none;
  color: var(--ffo-text);
  border: 1px solid rgba(197,162,88,0.15);
  transition: box-shadow 0.3s, transform 0.3s;
  overflow: hidden;
}

.ffo-column-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.ffo-column-thumb img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.ffo-column-card-body {
  padding: 20px;
}

.ffo-column-card-body time {
  font-size: 12px;
  color: var(--ffo-gold);
  letter-spacing: 1px;
}

.ffo-column-card-body h4 {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.8;
  margin-top: 8px;
}

/* ===== MEMBERSHIP ===== */
.ffo-membership {
  background: var(--ffo-navy);
  color: var(--ffo-white);
}

.ffo-membership .ffo-section-title-en {
  color: var(--ffo-gold-light);
}

.ffo-membership .ffo-section-title-ja {
  color: rgba(255,255,255,0.6);
}

.ffo-membership .ffo-section-text {
  color: rgba(255,255,255,0.8);
}

.ffo-cta-button {
  display: inline-block;
  margin-top: 40px;
  padding: 16px 56px;
  font-family: "EB Garamond", serif;
  font-size: 14px;
  letter-spacing: 3px;
  color: var(--ffo-white);
  border: 1px solid var(--ffo-gold);
  text-decoration: none;
  transition: all 0.3s;
}

.ffo-cta-button:hover {
  background: var(--ffo-gold);
  color: var(--ffo-white);
}

/* ===== FOOTER ===== */
.ffo-footer {
  background: #0F1F38;
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 48px 40px;
}

.ffo-footer-logo {
  font-family: "EB Garamond", serif;
  font-size: 18px;
  color: var(--ffo-gold);
  letter-spacing: 3px;
  margin-bottom: 16px;
}

.ffo-footer-company {
  font-size: 11px;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.ffo-footer-copy {
  font-family: "EB Garamond", serif;
  font-size: 11px;
  margin-top: 16px;
  opacity: 0.6;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .ffo-header-inner { padding: 14px 20px; }
  .ffo-logo-main { font-size: 18px !important; }
  .ffo-nav { display: none; }
  .ffo-hamburger { display: flex; }
  .ffo-hero { padding: 100px 24px 60px; }
  .ffo-hero h1 { font-size: 22px; letter-spacing: 2px; }
  .ffo-hero-desc { font-size: 14px; }
  .ffo-section { padding: 70px 24px; }
  .ffo-section-title-en { font-size: 28px; }
  .ffo-services-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .ffo-service-card { padding: 36px 24px; }
  .ffo-network-list { flex-direction: column; align-items: center; }
  .ffo-column-grid { grid-template-columns: 1fr; }

  /* SP Menu overlay */
  .ffo-nav.active {
    display: flex;
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.97);
    z-index: 9998;
    justify-content: center;
    align-items: center;
  }

  .ffo-nav.active ul {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .ffo-nav.active a {
    color: var(--ffo-text);
    font-size: 16px;
    letter-spacing: 2px;
  }
}

@media (max-width: 480px) {
  .ffo-hero h1 { font-size: 19px; }
}

/* ===== Swell競合解消 ===== */
body.fortuna-front-page #body_wrap,
body.fortuna-front-page .l-content {
  padding: 0 !important;
  max-width: 100% !important;
}

body.fortuna-front-page .p-mainVisual,
body.fortuna-front-page .c-postSlider {
  display: none !important;
}
