/* ============================================================
   Abelia Capital — style.css
   ============================================================ */

/* ------------------------------------------------------------
   Variables
------------------------------------------------------------ */
:root {
  --color-primary:   #2B6CB0;   /* ロゴの青 */
  --color-primary-dark: #1A4A80;
  --color-navy:      #1A2E4A;   /* Hero/Contact背景 */
  --color-charcoal:  #2D3748;   /* ロゴのチャコール */
  --color-text:      #1E293B;
  --color-text-sub:  #64748B;
  --color-bg:        #FFFFFF;
  --color-bg-gray:   #F7F9FC;
  --color-border:    #E2E8F0;
  --color-accent:    #3B82F6;

  --font-ja: 'Noto Sans JP', sans-serif;
  --font-en: 'Inter', sans-serif;

  --max-width: 1100px;
  --header-h: 72px;

  --ease: cubic-bezier(.25,.46,.45,.94);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-ja);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; background: none; border: none; font: inherit; }

/* ------------------------------------------------------------
   Utility
------------------------------------------------------------ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }
.bg-gray  { background: var(--color-bg-gray); }
.bg-navy  { background: var(--color-navy); }

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-label {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  color: var(--color-charcoal);
  line-height: 1.3;
  margin-bottom: 16px;
}
.section-desc {
  font-size: 16px;
  color: var(--color-text-sub);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.9;
}
.section-header--light .section-label { color: rgba(255,255,255,.65); }
.section-header--light .section-title { color: #fff; }
.section-header--light .section-desc  { color: rgba(255,255,255,.75); }

.subsection-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-charcoal);
  margin-bottom: 28px;
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  transition: all .2s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover { background: var(--color-primary-dark); }

.btn-white {
  background: #fff;
  color: var(--color-navy);
}
.btn-white:hover { background: #f0f4f8; }

.btn-outline-white {
  border: 2px solid rgba(255,255,255,.7);
  color: #fff;
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.1);
  border-color: #fff;
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------------
   Header
------------------------------------------------------------ */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
#header.scrolled {
  border-color: var(--color-border);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-link {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: .02em;
  transition: color .18s;
}
.nav-link:hover { color: var(--color-primary); }
.nav-link.nav-cta {
  background: var(--color-primary);
  color: #fff;
  padding: 9px 20px;
  border-radius: 4px;
  font-weight: 600;
}
.nav-link.nav-cta:hover { background: var(--color-primary-dark); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 4px;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--color-charcoal);
  border-radius: 2px;
  transition: all .25s var(--ease);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------
   Hero
------------------------------------------------------------ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--header-h);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0f2744 0%, #1a3a6b 45%, #2B6CB0 100%);
  z-index: 0;
}

/* Background photo layer */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1518770660439-4636190af475?w=1920&q=80');
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  z-index: 0;
}

/* Subtle geometric overlay */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 70% 30%, rgba(59,130,246,.15) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(255,255,255,.04) 0%, transparent 40%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 24px;
  width: 100%;
}

.hero-eyebrow {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -.01em;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 18px);
  color: rgba(255,255,255,.75);
  line-height: 1.9;
  margin-bottom: 44px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-actions .btn {
  flex: 1;
  text-align: center;
}

/* ------------------------------------------------------------
   About
------------------------------------------------------------ */
.about-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-text p {
  font-size: 16px;
  color: var(--color-text);
  line-height: 1.9;
  margin-bottom: 18px;
}
.about-text p:last-child { margin-bottom: 0; }

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.stat {
  display: flex;
  flex-direction: column;
  padding-left: 24px;
  border-left: 3px solid var(--color-primary);
}
.stat-number {
  font-family: var(--font-en);
  font-size: 44px;
  font-weight: 700;
  color: var(--color-charcoal);
  line-height: 1;
}
.stat-unit {
  font-size: 20px;
  font-weight: 600;
}
.stat-label {
  font-size: 14px;
  color: var(--color-text-sub);
  margin-top: 6px;
}

/* ------------------------------------------------------------
   Strategy
------------------------------------------------------------ */
.strategy-overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}

.strategy-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 24px;
}
.strategy-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(43,108,176,.08);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.strategy-label {
  font-size: 13px;
  color: var(--color-text-sub);
  margin-bottom: 4px;
}
.strategy-value {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-charcoal);
  line-height: 1.3;
}

.domain-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.domain-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 24px 16px;
  text-align: center;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.domain-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 16px rgba(43,108,176,.1);
  transform: translateY(-3px);
}
.domain-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(43,108,176,.08);
  color: var(--color-primary);
  margin: 0 auto 14px;
}
.domain-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-charcoal);
  line-height: 1.4;
}

/* ------------------------------------------------------------
   Support
------------------------------------------------------------ */
.support-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 40px;
}

.support-step {
  flex: 1;
  background: var(--color-bg-gray);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 32px 28px;
}

.support-connector {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  color: var(--color-primary);
  margin-top: 40px;
}

.step-number {
  font-family: var(--font-en);
  font-size: 36px;
  font-weight: 700;
  color: var(--color-primary);
  opacity: .25;
  line-height: 1;
  margin-bottom: 16px;
}
.step-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-charcoal);
  margin-bottom: 10px;
}
.step-desc {
  font-size: 14px;
  color: var(--color-text-sub);
  line-height: 1.8;
}

.support-note {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(43,108,176,.06);
  border: 1px solid rgba(43,108,176,.15);
  border-radius: 6px;
  padding: 14px 20px;
  font-size: 14px;
  color: var(--color-primary);
}

/* ------------------------------------------------------------
   Portfolio
------------------------------------------------------------ */
#portfolio {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, #0d1f3c 0%, #0f2744 40%, #1a3a6b 100%) !important;
}
#portfolio::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  z-index: 0;
}
#portfolio::after {
  content: '';
  position: absolute;
  bottom: -160px;
  left: -160px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.18) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}
#portfolio .container {
  position: relative;
  z-index: 1;
}
#portfolio .section-label {
  color: rgba(255,255,255,.55);
}
#portfolio .section-title {
  color: #fff;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.portfolio-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 28px 24px;
  transition: box-shadow .2s, transform .2s;
}
.portfolio-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.08);
  transform: translateY(-3px);
}

.portfolio-logo-wrap {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 18px;
  padding-bottom: 18px;
}
.portfolio-logo-wrap img {
  max-height: 52px;
  max-width: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: .7;
  transition: filter .2s, opacity .2s;
}
/* ビーフソムリエはロゴが大きいので個別に制限 */
.portfolio-logo-wrap img[alt="ビーフソムリエ"] {
  max-height: 32px;
  max-width: 110px;
}
.portfolio-card:hover .portfolio-logo-wrap img {
  filter: grayscale(0%);
  opacity: 1;
}

/* ロゴ画像がない場合のテキストプレースホルダー */
.portfolio-logo-text {
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-sub);
  letter-spacing: .03em;
}

.portfolio-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-charcoal);
  margin-bottom: 8px;
}
.portfolio-desc {
  font-size: 13px;
  color: var(--color-text-sub);
  line-height: 1.7;
}

/* ------------------------------------------------------------
   Team
------------------------------------------------------------ */
.team-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 56px;
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
}

.team-photo-wrap {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 3/4;
}
.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-role {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 8px;
}
.team-name {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-charcoal);
  line-height: 1.2;
}
.team-name-en {
  font-family: var(--font-en);
  font-size: 16px;
  color: var(--color-text-sub);
  margin-top: 4px;
  margin-bottom: 24px;
}

.team-career {
  margin-bottom: 24px;
}
.team-career li {
  font-size: 14px;
  color: var(--color-text-sub);
  padding: 6px 0 6px 18px;
  border-bottom: 1px solid var(--color-border);
  position: relative;
}
.team-career li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}

.team-bio {
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.9;
  margin-bottom: 20px;
}

.team-comment {
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.9;
  border-left: 3px solid var(--color-primary);
  padding-left: 18px;
  margin-bottom: 24px;
  font-style: italic;
}

.team-links {
  display: flex;
  gap: 12px;
}
.team-link {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  padding: 6px 16px;
  border-radius: 4px;
  transition: background .18s, color .18s;
}
.team-link:hover {
  background: var(--color-primary);
  color: #fff;
}

/* ------------------------------------------------------------
   News
------------------------------------------------------------ */
.news-list {
  max-width: 720px;
  margin: 0 auto;
}

.news-item {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--color-border);
}
.news-item:first-child { border-top: 1px solid var(--color-border); }

.news-date {
  font-family: var(--font-en);
  font-size: 13px;
  color: var(--color-text-sub);
  white-space: nowrap;
  flex-shrink: 0;
}
.news-title {
  font-size: 15px;
  color: var(--color-text);
  flex: 1;
  line-height: 1.6;
}
.news-link {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-primary);
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity .18s;
}
.news-link:hover { opacity: .7; }

/* ------------------------------------------------------------
   Contact
------------------------------------------------------------ */
.contact-form {
  max-width: 640px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  margin-bottom: 8px;
}
.required {
  color: #F87171;
  font-size: 12px;
  margin-left: 2px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 4px;
  font-size: 15px;
  font-family: var(--font-ja);
  color: #fff;
  transition: border-color .2s, background .2s;
  outline: none;
  -webkit-appearance: none;
}
.form-input::placeholder { color: rgba(255,255,255,.35); }
.form-input:focus {
  border-color: rgba(255,255,255,.6);
  background: rgba(255,255,255,.15);
}

.form-select { cursor: pointer; }
.form-select option { color: var(--color-text); background: #fff; }

.form-textarea { resize: vertical; min-height: 140px; }

.form-submit { text-align: center; margin-top: 8px; }

/* ------------------------------------------------------------
   Footer
------------------------------------------------------------ */
#footer {
  background: #0f1e2e;
  padding: 40px 24px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-logo img {
  height: 44px;
  width: auto;
  opacity: .75;
  filter: brightness(0) invert(1);
}
.footer-info p {
  font-size: 13px;
  color: rgba(255,255,255,.4);
  line-height: 1.7;
}
.footer-nav {
  display: flex;
  gap: 24px;
}
.footer-nav a {
  font-family: var(--font-en);
  font-size: 13px;
  color: rgba(255,255,255,.45);
  transition: color .18s;
}
.footer-nav a:hover { color: rgba(255,255,255,.85); }

/* ------------------------------------------------------------
   Responsive — Tablet (≤ 900px)
------------------------------------------------------------ */
@media (max-width: 900px) {
  .about-body { grid-template-columns: 1fr; gap: 40px; }
  .about-stats { flex-direction: row; gap: 24px; }
  .stat { flex: 1; }

  .strategy-overview { grid-template-columns: 1fr; gap: 16px; }

  .domain-grid { grid-template-columns: repeat(4, 1fr); }

  .support-steps { flex-direction: column; gap: 0; }
  .support-connector { transform: rotate(90deg); margin: 4px auto; padding: 4px 0; }

  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }

  .team-card { grid-template-columns: 220px 1fr; gap: 36px; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ------------------------------------------------------------
   Responsive — Mobile (≤ 640px)
------------------------------------------------------------ */
@media (max-width: 640px) {
  :root { --header-h: 60px; }

  .section { padding: 72px 0; }

  /* Nav */
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    padding: 20px 24px;
    display: none;
  }
  .nav.open { display: block; }
  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .nav-link {
    display: block;
    padding: 10px 0;
    font-size: 16px;
  }
  .nav-link.nav-cta {
    padding: 12px 24px;
    margin-top: 8px;
    display: inline-block;
  }
  .hamburger { display: flex; }

  /* Hero */
  .hero-content { padding: 60px 24px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; }

  /* About */
  .about-stats { flex-direction: column; gap: 20px; }

  /* Strategy */
  .domain-grid { grid-template-columns: repeat(2, 1fr); }

  /* Portfolio */
  .portfolio-grid { grid-template-columns: 1fr; }

  /* Team */
  .team-card { grid-template-columns: 1fr; gap: 32px; }
  .team-photo-wrap { max-width: 240px; aspect-ratio: 1/1; }

  /* Form */
  .form-row { grid-template-columns: 1fr; }

  /* Footer */
  .footer-nav { flex-wrap: wrap; gap: 16px; }
}
