
/* =================================================================
   絆企画グループ Corporate Site - Stylesheet
   ================================================================= */

/* ---------- Custom Properties ---------- */
:root {
  /* Colors */
  /* Base */
  --bg: #ffffff;
  --bg-subtle: #f8fafc;
  --card: #ffffff;
  --card-hover: #f1f5f9;

  /* Text */
  --text: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;

  /* Brand Blue */
  --brand: #0284c7;        /* 通常のボタン色（合う青） */
  --brand-light: #38bdf8;
  --brand-dark: #1e40af;

  /* Line */
  --line: #e5e7eb;
  --line-subtle: #f1f5f9;
  --surface: #0d0d0f;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(229, 57, 53, 0.15);
  
  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Layout */
  --max-width: 1200px;
  --header-height: 72px;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* ===== HERO touka_logo 調整用 ===== */
  --hero-logo-x: 50%;     /* X軸（左右） */
  --hero-logo-y: 25%;     /* Y軸（上下） */
  --hero-logo-size: 400px; /* ロゴサイズ */
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "Noto Sans JP", "Inter", system-ui, -apple-system, sans-serif;
  background: #ffffff url('../img/bg-lines8.png') center top / cover;
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: transparent;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #ffffff;
  backdrop-filter: none;
  border-bottom: 1px solid var(--line);
  border-bottom: 1px solid transparent;
  transition: var(--transition-base);
}

.site-header.is-scrolled {
  background: #ffffff;
  border-bottom-color: var(--line-subtle);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  transition: opacity var(--transition-fast);
}

.brand:hover {
  opacity: 0.8;
}

.brand__logo {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

.brand__name {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav a {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.nav a:hover {
  background: #eff6ff;
  color: #1d4ed8;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition-fast);
}

.mobile-menu-btn.is-active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.mobile-menu-btn.is-active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

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

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: transparent;
  opacity: 0.7;
}

.hero__gradient {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 40%, rgba(37,99,235,0.06), transparent 60%),
    linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.95) 100%);
}

.hero-inner {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-lg);
}

.hero-content {
  max-width: 800px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  padding-right: var(--space-lg);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  backdrop-filter: blur(10px);
  margin-bottom: var(--space-xl);
}

.kicker__logo {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.hero-title {
  margin-bottom: var(--space-lg);
}

.hero-title__main {
  display: block;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.hero-title__main:first-child {
  background: linear-gradient(135deg, var(--text) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.hero-tagline {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: bold;
  padding-left: var(--space-md);
  border-left: 3px solid var(--brand);
  margin-bottom: var(--space-2xl);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, var(--brand), 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); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition-base);
  cursor: pointer;
}

.btn-primary {
  background: var(--brand);
  background: var(--brand);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  background: var(--brand-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229, 57, 53, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-outline:hover {
  background: var(--card);
  border-color: var(--text-muted);
}

.btn-lg {
  padding: var(--space-lg) var(--space-2xl);
  font-size: 1rem;
}

/* ---------- Sections ---------- */
section {
  padding: var(--space-4xl) var(--space-lg);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-kicker {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-sm);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: var(--space-md);
  letter-spacing: -0.01em;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- Business Section ---------- */
.section-business {
  background: rgba(255, 255, 255, 0.90);
}

.section-business::before,
.section-business::after {
  background: transparent;
}

.business-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.business-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-base);
}

.business-card:hover {
  background: var(--card-hover);
  border-color: var(--line);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.business-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.business-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.business-card:hover .business-card__media img {
  transform: scale(1.05);
}

.business-card__content {
  padding: var(--space-lg);
}

.business-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.business-card__title::before {
  content: '';
  width: 4px;
  height: 20px;
  background: var(--brand);
  border-radius: 2px;
}

.business-card__summary {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Business Details (Accordion) */
.business-details {
  margin-top: var(--space-md);
}

.business-details__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-sm) 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand);
  cursor: pointer;
  list-style: none;
  border-top: 1px solid var(--line-subtle);
}

.business-details__toggle::-webkit-details-marker {
  display: none;
}

.toggle-icon {
  transition: transform var(--transition-fast);
}

.business-details[open] .toggle-icon {
  transform: rotate(180deg);
}

.business-details__content {
  padding: var(--space-md) 0;
  animation: fadeIn var(--transition-base);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.business-list {
  list-style: none;
  margin-bottom: var(--space-md);
}

.business-list li {
  position: relative;
  padding-left: var(--space-lg);
  margin-bottom: var(--space-sm);
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.business-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--brand);
  border-radius: 50%;
}

.business-products {
  background: rgba(229, 57, 53, 0.08);
  border-radius: var(--radius-sm);
  padding: var(--space-md);
}

.products-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xs);
}

.business-products p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

.business-details__placeholder {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

.business-link {
  margin-top: var(--space-md);
}

.external-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: rgba(229, 57, 53, 0.1);
  border: 1px solid rgba(229, 57, 53, 0.3);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-light);
  transition: var(--transition-fast);
}

.external-link:hover {
  background: rgba(229, 57, 53, 0.2);
  border-color: var(--brand);
  transform: translateX(4px);
}

.external-link svg {
  flex-shrink: 0;
}

/* ---------- Corporate Section ---------- */
.section-corporate {
  background: rgba(248, 250, 252, 0.90);
}

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

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-md);
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.info-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--line-subtle);
}

.info-item:last-child {
  border-bottom: none;
}

.info-item dt {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.info-item dd {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.6;
}

/* ---------- Contact Section ---------- */
.section-contact {
  background: rgba(255, 255, 255, 0.90);
  padding: var(--space-3xl) var(--space-lg);
}

.contact-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-xl);
  padding: var(--space-3xl);
  background: linear-gradient(135deg, var(--card) 0%, rgba(229, 57, 53, 0.05) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.contact-cta h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.contact-cta p {
  color: var(--text-secondary);
  max-width: 400px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--line);
  padding: var(--space-2xl) var(--space-lg);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.footer-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.footer-name {
  font-size: 1.1rem;
  font-weight: 700;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-lg);
}

.footer-nav a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-nav a:hover {
  color: var(--text);
}

.copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- Page Top Button ---------- */
.pagetop {
  position: fixed;
  right: var(--space-lg);
  bottom: var(--space-lg);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition-base);
}

.pagetop.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.pagetop:hover {
  background: var(--brand-light);
  transform: translateY(-4px);
}

/* ---------- Responsive ---------- */

/* Tablet */
@media (max-width: 1024px) {
  .business-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-lg);
    background: var(--bg);
    border-top: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform var(--transition-base);
  }

  .nav--open {
    transform: translateX(0);
  }

  .nav a {
    color: #1e3a8a;
    padding: var(--space-md);
    font-size: 1.1rem;
    border-bottom: 1px solid var(--line-subtle);
  }

  .hero-title__main {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }

  .business-grid {
    grid-template-columns: 1fr;
  }

  .info-item {
    grid-template-columns: 1fr;
    gap: var(--space-xs);
  }

  .info-item dt {
    font-weight: 700;
    color: var(--text);
  }

  .panel {
    padding: var(--space-lg);
  }

  .contact-cta {
    padding: var(--space-xl);
  }

  .scroll-indicator {
    display: none;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  section {
    padding: var(--space-3xl) var(--space-md);
  }

  .hero-inner {
    padding: var(--space-2xl) var(--space-md);
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .brand__name {
    display: none;
  }
}

/* =========================
   Hero Logo Centering
========================= */
.kicker--logo-only {
  position: absolute;

  /* ← ここだけ触ればOK */
  left: var(--hero-logo-x);
  top: var(--hero-logo-y);

  transform: translate(-50%, -50%);
  z-index: 3;

  /* 枠・背景・効果は完全排除 */
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;

  justify-content: center;      /* 横中央 */
  padding: 16px 28px;           /* 余白を増やす */
}

.kicker--logo-only img {
  width: 120px;                 /* ← サイズ調整はここ */
  height: auto;

  width: var(--hero-logo-size);
  height: auto;

  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* 2枚目の378896.jpg（ヒーロー内）を「画面のX軸ど真ん中」にする */
.kicker--logo-only {
  width: 100vw;                          /* 画面幅にする */
  margin-left: calc(50% - 50vw);         /* 親要素の左寄せ影響を相殺して画面基準へ */
  display: flex;
  justify-content: center;               /* X軸ど真ん中 */
  padding: 16px 28px;                    /* 見た目用（元のままでOK） */
}

.kicker--logo-only img {
  display: block;
  width: 120px;                          /* 好きに */
  height: auto;
} block;

/* =========================
   HERO LOGO MANUAL POSITION
   （2枚目の 378896.jpg 用）
========================= */
.kicker--logo-only {
  position: absolute;
  left: 500%;          /* ← X軸：ここを % で動かす */
  top: 50%;           /* ← Y軸：ここを % で動かす */

  transform: translate(-50%, -50%);
  z-index: 3;
}

/* ロゴ周りの線・背景を完全に消す */
.kicker--logo-only {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;   /* 余白も不要なら */
}

/* =========================
   2枚目ロゴを「画像だけ」にする
========================= */

/* 親要素（枠・背景・効果を全殺し） */
.kicker--logo-only {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
  padding: 0 !important;
}

/* 擬似要素が原因だった場合も殺す */
.kicker--logo-only::before,
.kicker--logo-only::after {
  content: none !important;
  display: none !important;
}

/* 画像自体にも何も残さない */
.kicker--logo-only img {
  display: block;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  filter: none !important;
}

.btn-primary {
  background: var(--brand);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.btn-primary:hover {
  background: var(--brand-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.45);
}

/* =========================
   WHITE BASE BUTTON
========================= */

.btn-white {
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);

  transition:
    background var(--transition-base),
    color var(--transition-base),
    transform var(--transition-base),
    box-shadow var(--transition-base);
}

.btn-white:hover {
  background: var(--brand);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45);
}

/* =========================
   body内「会社概要」ボタン調整
========================= */

/* ▼ 白抜き（透過）だったボタンを白に */
.btn-outline,
.btn.secondary,
.button-group .btn:not(.btn-primary) {
  background: #ffffff;                 /* 透過 → 白 */
  color: #1f2937;                      /* 濃いグレーで可読性UP */
  border: 1px solid rgba(0,0,0,0.12);
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

/* ポップアップ用アニメ */
@keyframes popUpSoft {
  from {
    transform: translateY(0) scale(1);
  }
  to {
    transform: translateY(-3px) scale(1.02);
  }
}

/* ▼ hover中：色変化 + 影 + 浮く */
.btn-outline:hover,
.btn.secondary:hover,
.button-group .btn:not(.btn-primary):hover {
  background: #f0f9ff;                 /* やさしい青（好みで変更OK） */
  color: #0369a1;
  border-color: rgba(2, 132, 199, 0.4);
  box-shadow: 0 12px 26px rgba(2, 132, 199, 0.25);
  animation: popUpSoft 0.2s ease-out both;
}
