/* ================================================================
   ハイコムグループ B2B事業紹介サイト
   haikom.css  v3.0.0  — 一画面完結レイアウト
   ================================================================ */

/* ── Variables ──────────────────────────────────────────── */
:root {
  --hk-font:   'Noto Sans JP', -apple-system, 'Hiragino Sans', sans-serif;
  --hk-dark:   rgba(0, 0, 0, 0.87);
  --hk-mid:    rgba(0, 0, 0, 0.54);
  --hk-light:  #f5f6f6;
  --hk-white:  #ffffff;
  --hk-border: #e0e0e0;
  --hk-radius: 4px;
  --hk-ease:   cubic-bezier(0.4, 0, 0.2, 1);

  /* Service colors */
  --corp:   #1565c0;
  --estate: #2e7d32;
  --post:   #bf360c;
  --web:    #6a1b9a;
  --ses:    #00695c;
  --pet:    #0277bd;
  --water:  #1a3a6b;
}

/* ── Service color shorthand (set per slide) ───────────── */
.hk-slide--corp   { --sc: var(--corp);   }
.hk-slide--estate { --sc: var(--estate); }
.hk-slide--post   { --sc: var(--post);   }
.hk-slide--web    { --sc: var(--web);    }
.hk-slide--ses    { --sc: var(--ses);    }
.hk-slide--pet    { --sc: var(--pet);    }
.hk-slide--water  { --sc: var(--water);  }

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

/* ── ONE-SCREEN LAYOUT ─────────────────────────────────── */
html {
  height: 100%;
  margin: 0;
  padding: 0;
}

body.haikom-lp {
  height: var(--app-height, 100dvh);
  margin: 0;
  padding: 0;
  overflow: hidden;
}

body.haikom-lp {
  font-family: var(--hk-font);
  font-size: 16px;
  line-height: 1.8;
  color: var(--hk-dark);
  background: #1a1a2e;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

#haikom-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

#haikom-page a { text-decoration: none; color: inherit; }
#haikom-page h1, #haikom-page h2,
#haikom-page h3, #haikom-page h4,
#haikom-page p, #haikom-page ul {
  margin: 0;
}
#haikom-page ul { list-style: none; padding: 0; }

/* ================================================================
   PHOTO PLACEHOLDER
   ================================================================ */
.hk-photo {
  position: relative;
  overflow: hidden;
  background: #cdd5e0;
  flex-shrink: 0;
}

.hk-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent, transparent 10px,
    rgba(255,255,255,0.18) 10px,
    rgba(255,255,255,0.18) 11px
  );
  z-index: 0;
}

.hk-photo-inner {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(0,0,0,0.28);
  pointer-events: none;
}

.hk-photo-inner i    { font-size: 22px; }
.hk-photo-inner span { font-size: 11px; font-weight: 500; letter-spacing: 0.8px; }

/* Fill parent completely */
.hk-photo--fill {
  position: absolute;
  inset: 0;
}

/* Compact horizontal photo inside right panel */
.hk-photo--panel {
  width: 100%;
  height: 96px;
  border-radius: var(--hk-radius);
}

/* ================================================================
   SLIDER
   ================================================================ */
.hk-slider-wrap {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
  touch-action: pan-y;
}

.hk-slider-track {
  display: flex;
  width: calc(100% * 7);
  height: 100%;
  transition: transform 0.55s var(--hk-ease);
  will-change: transform;
}

.hk-slide {
  flex: 0 0 calc(100% / 7);
  height: 100%;
  display: flex;
}

/* ── Left: Photo area ─────────────────────── */
.hk-slide-photo {
  flex: 0 0 56%;
  position: relative;
  overflow: hidden;
}

/* Color strip at photo bottom */
.hk-slide-color-strip {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 5px;
  background: var(--sc);
  z-index: 2;
}

/* ── Right: Content panel ─────────────────── */
.hk-slide-panel {
  flex: 0 0 44%;
  background: var(--hk-white);
  padding: 28px 36px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  scrollbar-width: none;
  border-left: 1px solid var(--hk-border);
}

.hk-slide-panel::-webkit-scrollbar { display: none; }

/* Service number */
.hk-slide-num {
  font-size: 52px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--sc);
}

.hk-slide-en {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--hk-mid);
  margin-top: -4px;
}

/* Brand badge */
.hk-slide-brand {
  display: inline-block;
  background: var(--sc);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 50px;
  width: fit-content;
}

.hk-slide-title {
  font-size: 21px;
  font-weight: 900;
  color: var(--hk-dark);
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.hk-slide-desc {
  font-size: 13px;
  color: var(--hk-mid);
  line-height: 1.9;
}

/* ── Feature grid ─────────────────────────── */
.hk-slide-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.hk-slide-feature {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px 10px;
  background: var(--hk-white);
  border: 1px solid var(--hk-border);
  border-left: 3px solid var(--sc);
  border-radius: var(--hk-radius);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--hk-dark);
  line-height: 1.45;
}

.hk-slide-feature i {
  font-size: 13px;
  color: var(--sc);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── Area badge (corp only) ───────────────── */
.hk-slide-area-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e8f0fe;
  color: var(--corp);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--hk-radius);
  border: 1px solid rgba(21,101,192,0.14);
  width: fit-content;
}

/* ── Action buttons ───────────────────────── */
.hk-slide-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.hk-slide-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: var(--hk-radius);
  font-size: 13px;
  font-weight: 700;
  font-family: var(--hk-font);
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
}

.hk-slide-cta:hover { opacity: 0.83; transform: translateY(-1px); }

.hk-slide-cta--primary {
  background: var(--sc);
  color: #fff;
}

.hk-slide-cta--ghost {
  background: transparent;
  color: var(--hk-mid);
  border: 1px solid var(--hk-border);
}

.hk-slide-cta--ghost:hover {
  border-color: rgba(0,0,0,0.32);
  opacity: 1;
  transform: translateY(-1px);
}

/* External mini links */
.hk-slide-extlinks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2px;
}

.hk-slide-extlink {
  font-size: 11.5px;
  color: var(--hk-mid);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.18s;
}

.hk-slide-extlink:hover { color: #1565c0; }

/* ── Prev/Next arrows ─────────────────────── */
.hk-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.88);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--hk-dark);
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
  transition: background 0.18s, transform 0.18s;
  -webkit-tap-highlight-color: transparent;
}

.hk-arrow:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.08);
}

.hk-arrow--prev { left: 14px; }
.hk-arrow--next { right: calc(44% + 14px); }

/* ── Progress bar ─────────────────────────── */
.hk-progress {
  position: absolute;
  bottom: 0; left: 0; right: calc(44%);
  height: 3px;
  background: rgba(255,255,255,0.15);
  z-index: 5;
}

.hk-progress-bar {
  height: 100%;
  background: rgba(255,255,255,0.55);
  transition: width 0.1s linear;
  width: 0%;
}

/* ================================================================
   SERVICE NAVIGATION BAR（7ボタン）
   ================================================================ */
.hk-service-nav {
  flex-shrink: 0;
  display: flex;
  background: var(--hk-white);
  border-top: 1px solid var(--hk-border);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.hk-service-nav::-webkit-scrollbar { display: none; }

.hk-nav-btn {
  flex: 1;
  min-width: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 11px 8px 10px;
  border: none;
  border-right: 1px solid var(--hk-border);
  background: transparent;
  cursor: pointer;
  font-family: var(--hk-font);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--hk-mid);
  line-height: 1.3;
  transition: background 0.18s, color 0.18s;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}

.hk-nav-btn:last-child { border-right: none; }

.hk-nav-btn i {
  font-size: 17px;
  transition: transform 0.2s;
}

.hk-nav-btn:hover i { transform: translateY(-2px); }
.hk-nav-btn:not(.is-active):hover { background: var(--hk-light); }

/* Active = service color */
.hk-nav-btn.is-active { color: #fff; }

.hk-nav--corp.is-active   { background: var(--corp);   }
.hk-nav--estate.is-active { background: var(--estate); }
.hk-nav--post.is-active   { background: var(--post);   }
.hk-nav--web.is-active    { background: var(--web);    }
.hk-nav--ses.is-active    { background: var(--ses);    }
.hk-nav--pet.is-active    { background: var(--pet);    }
.hk-nav--water.is-active  { background: var(--water);  }

/* ================================================================
   RESPONSIVE
   ================================================================ */

/* Laptop wide (1280px+): larger panel text */
@media (min-width: 1280px) {
  .hk-slide-panel   { padding: 36px 44px 28px; gap: 14px; }
  .hk-slide-num     { font-size: 60px; }
  .hk-slide-title   { font-size: 24px; }
  .hk-slide-feature { font-size: 12px; padding: 10px 12px; }
  .hk-photo--panel  { height: 110px; }
}

/* Tablet landscape 1024px */
@media (max-width: 1024px) {
  .hk-slide-photo { flex: 0 0 52%; }
  .hk-slide-panel { flex: 0 0 48%; padding: 24px 28px 20px; gap: 10px; }
  .hk-slide-num   { font-size: 44px; }
  .hk-slide-title { font-size: 19px; }
  .hk-arrow--next { right: calc(48% + 14px); }
  .hk-progress    { right: calc(48%); }
}

/* Tablet portrait 768px - allow vertical scroll on panel */
@media (max-width: 768px) {
  .hk-slide       { flex-direction: column; }
  .hk-slide-photo { flex: 0 0 40%; }
  .hk-slide-panel { flex: 1; padding: 18px 20px 16px; gap: 8px; }
  .hk-slide-num   { font-size: 36px; }
  .hk-slide-title { font-size: 17px; }
  .hk-slide-features { grid-template-columns: 1fr 1fr; gap: 6px; }
  .hk-slide-feature  { font-size: 10.5px; padding: 7px 8px; }
  .hk-arrow--next { right: 14px; }
  .hk-progress    { right: 0; }
  .hk-nav-btn     { font-size: 9.5px; min-width: 70px; padding: 10px 4px 8px; }
  .hk-nav-btn i   { font-size: 15px; }
}
