/* ========================================
   株式会社フルラフ コーポレートサイト
   ======================================== */

/* --- リセット・基本 --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Full Life グリーン系 */
  --green-500: #48a75f;
  --green-600: #3a8f4f;
  --green-700: #2d7740;
  --green-50: #f0faf3;

  /* NICO コーラル系 */
  --coral-500: #ff7f50;
  --coral-600: #e66a3e;
  --coral-700: #cc5a30;
  --coral-50: #fff5f0;

  /* DX支援 ブルー系（endai-systemカラー） */
  --blue-500: #2B5797;
  --blue-600: #234a82;
  --blue-700: #1c3d6d;
  --blue-50: #f0f4fa;
  --blue-accent: #E8941C;

  /* コーポレート ネイビー系 */
  --navy-900: #0f172a;
  --navy-800: #1e293b;
  --navy-700: #334155;
  --navy-600: #475569;
  --navy-100: #f1f5f9;
  --navy-50: #f8fafc;

  /* テキスト */
  --text-primary: #1a1a2e;
  --text-secondary: #4a5568;
  --text-muted: #718096;

  /* その他 */
  --white: #ffffff;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-primary);
  line-height: 1.8;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.sp-only {
  display: none;
}

/* --- ヘッダー --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.header__logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo__main {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 2px;
  color: var(--navy-900);
}

.logo__sub {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.header__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.header__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy-900);
  transition: var(--transition);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green-500);
  transition: var(--transition);
}

.nav__link:hover {
  color: var(--text-primary);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__link--cta {
  background: var(--navy-900);
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: 100px;
  font-weight: 600;
}

.nav__link--cta::after {
  display: none;
}

.nav__link--cta:hover {
  background: var(--navy-700);
}

/* --- ヒーロー --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 40%, #2d5a3f 70%, #1e293b 100%);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(72, 167, 95, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(255, 127, 80, 0.1) 0%, transparent 60%);
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 120px 24px 80px;
  max-width: 800px;
}

.hero__catch {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 4px;
  margin-bottom: 16px;
}

.hero__title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.4;
  margin-bottom: 24px;
}

.hero__accent {
  background: linear-gradient(90deg, var(--green-500), var(--coral-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__desc {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  margin-bottom: 40px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  letter-spacing: 2px;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* --- ボタン --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: var(--green-500);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--green-600);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(72, 167, 95, 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn--outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.btn--green {
  background: var(--green-500);
  color: var(--white);
}

.btn--green:hover {
  background: var(--green-600);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(72, 167, 95, 0.3);
}

.btn--coral {
  background: var(--coral-500);
  color: var(--white);
}

.btn--coral:hover {
  background: var(--coral-600);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 127, 80, 0.3);
}

.btn--navy {
  background: var(--blue-500);
  color: var(--white);
}

.btn--navy:hover {
  background: var(--blue-600);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(43, 87, 151, 0.3);
}

/* --- セクション共通 --- */
.section {
  padding: 100px 0;
}

.section__header {
  text-align: center;
  margin-bottom: 60px;
}

.section__label {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--green-500);
  display: block;
  margin-bottom: 12px;
}

.section__title {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 900;
  color: var(--navy-900);
  position: relative;
}

.section__title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--green-500), var(--coral-500));
  margin: 16px auto 0;
  border-radius: 2px;
}

/* --- 私たちについて --- */
.about {
  background: var(--navy-50);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about__lead {
  font-size: 20px;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--navy-900);
}

.about__text p {
  margin-bottom: 16px;
  color: var(--text-secondary);
  font-size: 16px;
}

.about__numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.number-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.number-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.number-card__value {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 42px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--green-500), var(--coral-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.number-card__label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* --- 経営理念 --- */
.mission {
  background: var(--white);
}

.mission__statement {
  text-align: center;
  margin-bottom: 60px;
}

.mission__quote {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  color: var(--navy-900);
  line-height: 2;
  position: relative;
  padding: 40px;
  border: none;
}

.mission__quote::before,
.mission__quote::after {
  font-family: 'Montserrat', serif;
  font-size: 80px;
  color: var(--green-500);
  opacity: 0.15;
  position: absolute;
  line-height: 1;
}

.mission__quote::before {
  content: '\201C';
  top: 0;
  left: 0;
}

.mission__quote::after {
  content: '\201D';
  bottom: 0;
  right: 0;
}

.mission__quote em {
  font-style: normal;
  background: linear-gradient(90deg, var(--green-500), var(--coral-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.vision__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.vision-card {
  background: var(--navy-50);
  border-radius: var(--radius-md);
  padding: 36px 24px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid transparent;
}

.vision-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-500);
}

.vision-card__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: var(--green-500);
}

.vision-card__title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--navy-900);
}

.vision-card__text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* --- 事業紹介 --- */
.services {
  background: var(--navy-50);
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.service-card__badge {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 12px 24px;
  color: var(--white);
}

.service-card--green .service-card__badge {
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
}

.service-card--coral .service-card__badge {
  background: linear-gradient(135deg, var(--coral-500), var(--coral-700));
}

.service-card__content {
  padding: 32px;
}

.service-card__name {
  font-family: 'Montserrat', sans-serif;
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--navy-900);
}

.service-card__tagline {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.service-card__desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

.service-card__features {
  margin-bottom: 24px;
  padding-left: 0;
}

.service-card__features li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}

.service-card--green .service-card__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-500);
}

.service-card--coral .service-card__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral-500);
}

/* DX支援事業 ネイビーテーマ */
.service-card--navy .service-card__badge {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
}

.service-card--navy .service-card__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue-500);
}

.service-card--navy .service-card__info {
  background: var(--blue-50);
  border-left: 3px solid var(--blue-accent);
}

/* フルワイドカード（3つ目の事業） */
.service-card--full {
  grid-column: 1 / -1;
}

.service-card--full .service-card__content {
  padding: 40px;
}

.service-card__features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.feature-group__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--blue-500);
  margin-bottom: 12px;
}

.feature-group__title svg {
  flex-shrink: 0;
}

.service-card--full .service-card__features {
  margin-bottom: 0;
}

.service-card__info {
  padding: 16px;
  background: var(--navy-50);
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
}

.service-card__info p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.service-card__info p:last-child {
  margin-bottom: 0;
}

/* --- 会社概要 --- */
.company {
  background: var(--white);
}

.company__table-wrap {
  max-width: 800px;
  margin: 0 auto;
}

.company__table {
  width: 100%;
  border-collapse: collapse;
}

.company__table tr {
  border-bottom: 1px solid var(--border);
}

.company__table th,
.company__table td {
  padding: 20px 16px;
  text-align: left;
  vertical-align: top;
  font-size: 15px;
}

.company__table th {
  width: 160px;
  font-weight: 700;
  color: var(--navy-900);
  white-space: nowrap;
}

.company__table td {
  color: var(--text-secondary);
}

.company__table td ul {
  padding-left: 0;
}

.company__table td li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 4px;
}

.company__table td li::before {
  content: '・';
  position: absolute;
  left: 0;
}

.company__table td a {
  color: var(--green-600);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.company__table td a:hover {
  color: var(--green-500);
}

/* --- お問い合わせ --- */
.contact {
  background: var(--navy-900);
  color: var(--white);
}

.contact .section__label {
  color: var(--coral-500);
}

.contact .section__title {
  color: var(--white);
}

.contact__lead {
  text-align: center;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 48px;
}

.contact__methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.contact-method {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  text-align: center;
  transition: var(--transition);
}

.contact-method:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.contact-method__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  color: var(--green-500);
}

.contact-method h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.contact-method p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  margin-bottom: 20px;
}

.contact-method__phone a {
  font-family: 'Montserrat', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 2px;
}

.contact-method__phone a:hover {
  color: var(--green-500);
}

.contact-method__note {
  font-size: 13px !important;
  color: rgba(255, 255, 255, 0.4) !important;
}

/* --- フッター --- */
.footer {
  background: #0a0f1a;
  color: rgba(255, 255, 255, 0.6);
  padding: 60px 0 0;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__brand .logo__main {
  color: var(--white);
}

.footer__brand .logo__sub {
  color: rgba(255, 255, 255, 0.5);
}

.footer__address {
  margin-top: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

.footer__links {
  display: flex;
  gap: 60px;
}

.footer__col h4 {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.footer__col li {
  margin-bottom: 8px;
}

.footer__col a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  transition: var(--transition);
}

.footer__col a:hover {
  color: var(--white);
}

.footer__bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
}

/* --- ページトップ --- */
.page-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--navy-900);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  z-index: 999;
}

.page-top.visible {
  opacity: 1;
  visibility: visible;
}

.page-top:hover {
  background: var(--green-500);
  transform: translateY(-2px);
}

.page-top svg {
  width: 20px;
  height: 20px;
}

/* --- フェードアニメーション --- */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scroll-fade {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   レスポンシブ
   ======================================== */

@media (max-width: 1024px) {
  .vision__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .sp-only {
    display: inline;
  }

  .header__toggle {
    display: flex;
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    padding: 80px 32px 32px;
    z-index: 1000;
  }

  .header__nav.open {
    right: 0;
  }

  .nav__list {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }

  .nav__link {
    font-size: 16px;
  }

  .nav__link--cta {
    width: 100%;
    text-align: center;
  }

  .header__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .header__toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .header__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* ヒーロー */
  .hero__content {
    padding: 100px 20px 60px;
  }

  .hero__catch {
    font-size: 15px;
  }

  .hero__desc {
    font-size: 15px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .hero__actions .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  /* セクション */
  .section {
    padding: 64px 0;
  }

  .section__header {
    margin-bottom: 40px;
  }

  /* About */
  .about__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about__numbers {
    grid-template-columns: repeat(3, 1fr);
  }

  /* ビジョン */
  .vision__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .mission__quote {
    font-size: 20px;
    padding: 24px 16px;
  }

  /* サービス */
  .services__grid {
    grid-template-columns: 1fr;
  }

  .service-card--full .service-card__content {
    padding: 24px;
  }

  .service-card__features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* 会社概要 */
  .company__table th,
  .company__table td {
    display: block;
    width: 100%;
  }

  .company__table th {
    padding-bottom: 4px;
    border-bottom: none;
  }

  .company__table td {
    padding-top: 4px;
  }

  /* お問い合わせ */
  .contact__methods {
    grid-template-columns: 1fr;
  }

  /* フッター */
  .footer__inner {
    flex-direction: column;
    gap: 32px;
  }

  .footer__links {
    gap: 40px;
  }
}

@media (max-width: 480px) {
  .about__numbers {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .number-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    text-align: left;
  }

  .number-card__value {
    font-size: 32px;
    min-width: 60px;
  }

  .number-card__label {
    margin-top: 0;
  }
}
