/* 100均活用術 teaser LP — design-comp layout (scoped) */

.hyakkin-page {
  --hk-ivory: #f7f4ee;
  --hk-ivory-deep: #efeae1;
  --hk-paper: #fbfaf7;
  --hk-green: #6f8f74;
  --hk-green-deep: #55745c;
  --hk-green-soft: #e4eee6;
  --hk-green-mist: #f0f5f1;
  --hk-ink: #2a2f2c;
  --hk-muted: #6a726c;
  --hk-line: #e2e6e1;
  --hk-white: #ffffff;
  --hk-shadow: 0 18px 40px rgba(55, 70, 58, 0.1);
  --hk-shadow-sm: 0 6px 18px rgba(55, 70, 58, 0.08);
  --hk-radius: 18px;
  --hk-max: 1120px;
  background: var(--hk-ivory);
  color: var(--hk-ink);
}

.hyakkin-page .site-header {
  background: rgba(251, 250, 247, 0.92);
  border-bottom-color: var(--hk-line);
}

.hyakkin-page .site-footer {
  background: var(--hk-paper);
  border-top: 1px solid var(--hk-line);
}

/* ---------- Hero (viewport 1) ---------- */
.hk-hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  background:
    radial-gradient(900px 420px at 88% 18%, rgba(111, 143, 116, 0.12), transparent 60%),
    linear-gradient(180deg, var(--hk-paper) 0%, var(--hk-ivory) 100%);
  border-bottom: 1px solid var(--hk-line);
}

.hk-hero-inner {
  width: min(100%, var(--hk-max));
  margin: 0 auto;
  padding: 48px 24px 56px;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 28px 40px;
  align-items: center;
}

.hk-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.hk-brand-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  box-shadow: var(--hk-shadow-sm);
  border: 1px solid var(--hk-line);
  background: var(--hk-white);
}

.hk-brand-name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--hk-ink);
  line-height: 1.2;
}

.hk-brand-sub {
  margin-top: 2px;
  font-size: 0.78rem;
  color: var(--hk-muted);
}

.hk-hero-title {
  font-size: clamp(1.85rem, 3.4vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.28;
  color: var(--hk-ink);
  margin-bottom: 18px;
}

.hk-hero-lead {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--hk-green-deep);
  font-weight: 500;
  max-width: 34em;
  margin-bottom: 12px;
}

.hk-hero-note {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--hk-muted);
  max-width: 36em;
  margin-bottom: 28px;
}

.hk-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
}

.hyakkin-store-slot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hk-coming-soon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--hk-green);
  color: var(--hk-white);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 18px rgba(111, 143, 116, 0.28);
}

.hk-store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--hk-ink);
  color: var(--hk-white);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.hk-store-btn:hover {
  background: var(--hk-green-deep);
  color: var(--hk-white);
}

.hk-platform {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: var(--hk-muted);
  font-size: 0.86rem;
  font-weight: 500;
}

.hk-platform-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hk-platform-item svg {
  color: var(--hk-green);
}

/* Phone stack */
.hk-hero-visual {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hk-phone-stack {
  position: relative;
  width: min(100%, 460px);
  height: 450px;
  margin: 0 auto;
}

.hk-phone {
  position: absolute;
  width: 178px;
  height: 364px;
  border-radius: 30px;
  background: linear-gradient(160deg, #f7f8f6, #e4e9e5);
  border: 1px solid rgba(90, 110, 95, 0.18);
  box-shadow: var(--hk-shadow);
  padding: 11px;
}

.hk-phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 22px;
  overflow: hidden;
}

.hk-phone--left {
  left: 18px;
  top: 78px;
  transform: translateX(-6px) scale(0.84);
  z-index: 1;
  opacity: 0.9;
  animation: hk-phone-in-left 720ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 90ms;
}

.hk-phone--right {
  right: 18px;
  top: 78px;
  transform: translateX(6px) scale(0.84);
  z-index: 1;
  opacity: 0.9;
  animation: hk-phone-in-right 720ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 160ms;
}

.hk-phone--center {
  left: 50%;
  top: 12px;
  width: 210px;
  height: 430px;
  margin-left: -105px;
  z-index: 3;
  transform: none;
  box-shadow: 0 28px 56px rgba(55, 70, 58, 0.18);
  animation: hk-phone-in-center 720ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hk-leaf {
  position: absolute;
  right: -8px;
  bottom: 8px;
  width: min(42%, 180px);
  color: var(--hk-green);
  pointer-events: none;
  z-index: 0;
}

@keyframes hk-phone-in-left {
  from { opacity: 0; transform: translate(-24px, 28px) scale(0.78); }
  to { opacity: 0.9; transform: translateX(-6px) scale(0.84); }
}

@keyframes hk-phone-in-right {
  from { opacity: 0; transform: translate(24px, 28px) scale(0.78); }
  to { opacity: 0.9; transform: translateX(6px) scale(0.84); }
}

@keyframes hk-phone-in-center {
  from { opacity: 0; transform: translateY(24px) scale(0.94); }
  to { opacity: 1; transform: none; }
}

/* Placeholder surfaces (swap later with Simulator shots) */
.hk-ph {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.15)),
    repeating-linear-gradient(
      -18deg,
      rgba(111, 143, 116, 0.05) 0 10px,
      rgba(111, 143, 116, 0.09) 10px 20px
    ),
    var(--hk-green-mist);
}

.hk-ph::after {
  content: attr(data-label);
  position: absolute;
  inset: auto 12px 14px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(85, 116, 92, 0.72);
}

.hk-phone-screen.hk-ph::after {
  inset: 50% 10px auto;
  transform: translateY(-50%);
}

/* ---------- Features (viewport 2) ---------- */
.hk-features {
  padding: 56px 24px 64px;
  background: var(--hk-ivory);
}

.hk-features-inner {
  width: min(100%, var(--hk-max));
  margin: 0 auto;
}

.hk-features-head {
  text-align: center;
  margin-bottom: 28px;
}

.hk-features-title {
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--hk-ink);
  margin-bottom: 8px;
}

.hk-features-desc {
  font-size: 0.98rem;
  color: var(--hk-muted);
}

.hk-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.hk-feature-card {
  background: var(--hk-white);
  border: 1px solid var(--hk-line);
  border-radius: var(--hk-radius);
  padding: 16px 14px 18px;
  box-shadow: var(--hk-shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.hk-feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--hk-shadow);
}

.hk-feature-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hk-feature-num {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--hk-green);
  letter-spacing: 0.04em;
}

.hk-feature-icon {
  width: 28px;
  height: 28px;
  color: var(--hk-green);
}

.hk-feature-icon svg {
  width: 100%;
  height: 100%;
}

.hk-feature-name {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--hk-ink);
  line-height: 1.35;
}

.hk-feature-media {
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  border: 1px solid var(--hk-line);
}

.hk-feature-text {
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--hk-muted);
}

/* Rank auxiliary bar */
.hk-rank-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 20px;
  border-radius: 16px;
  background: var(--hk-green-soft);
  border: 1px solid rgba(111, 143, 116, 0.18);
  margin-bottom: 28px;
}

.hk-rank-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--hk-green-deep);
}

.hk-rank-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hk-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--hk-white);
  border: 1px solid var(--hk-line);
  color: var(--hk-ink);
}

.hk-pill--hall {
  color: #8a6a1f;
  border-color: #e6d39a;
  background: #fff8e6;
}

.hk-pill--s {
  color: #6b4f8a;
  border-color: #d8c8e8;
  background: #f6f0fb;
}

.hk-pill--a {
  color: #3f7a58;
  border-color: #c7e0d0;
  background: #eef7f1;
}

.hk-pill--b {
  color: #5a6570;
  border-color: #d5dde4;
  background: #f3f5f7;
}

.hk-operator {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  padding-top: 8px;
  color: var(--hk-muted);
  font-size: 0.9rem;
}

.hk-operator-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hk-operator-links a {
  color: var(--hk-green-deep);
  font-weight: 600;
}

.hk-operator-links a:hover {
  color: var(--hk-ink);
}

/* apps.html linked card polish */
a.app-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
  border-radius: var(--radius-lg);
}

a.app-card-link:hover {
  color: inherit;
}

a.app-card-link:hover .app-card {
  box-shadow: var(--shadow-md);
}

a.app-card-link:focus-visible {
  outline: 2px solid var(--hk-green);
  outline-offset: 3px;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hk-hero {
    min-height: auto;
  }

  .hk-hero-inner {
    grid-template-columns: 1fr;
    padding: 36px 20px 44px;
    gap: 28px;
  }

  .hk-hero-visual {
    order: -1;
    min-height: 360px;
  }

  .hk-phone-stack {
    height: 360px;
    width: min(100%, 340px);
  }

  .hk-phone {
    width: 132px;
    height: 272px;
  }

  .hk-phone--center {
    width: 158px;
    height: 324px;
    margin-left: -79px;
    top: 10px;
  }

  .hk-phone--left,
  .hk-phone--right {
    top: 42px;
  }

  .hk-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hk-hero-title {
    font-size: 1.7rem;
  }

  .hk-hero-title br {
    display: none;
  }

  .hk-hero-visual {
    min-height: 300px;
  }

  .hk-phone-stack {
    height: 300px;
  }

  .hk-phone {
    width: 112px;
    height: 230px;
    border-radius: 22px;
    padding: 8px;
  }

  .hk-phone-screen {
    border-radius: 16px;
  }

  .hk-phone--center {
    width: 136px;
    height: 278px;
    margin-left: -68px;
  }

  .hk-feature-grid {
    grid-template-columns: 1fr;
  }

  .hk-features {
    padding: 40px 16px 48px;
  }

  .hk-rank-bar {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hk-phone,
  .hk-feature-card {
    animation: none !important;
    transition: none !important;
  }
}
