@charset "UTF-8";

/* =========================================================
 * Entrance Page (https://www.stock-app.info/)
 * 3-site portal: Stock / Narekan / Corporate
 * ========================================================= */

:root {
  --ent-color-text: #002B4E;
  --ent-color-stock: #0070D2;
  --ent-color-narekan: #E6A33A;
  --ent-color-stock-bg: #002B4E;
  --ent-color-narekan-bg: #F7F2EA;
  --ent-color-border: #D9DEE3;
  --ent-color-muted: #6C7A89;
  --ent-color-section-bg: #F4F5F7;
}

.ent {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: var(--ent-color-text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
}

.ent *,
.ent *::before,
.ent *::after {
  box-sizing: border-box;
}

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

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

.ent h1 {
  margin: 0;
}

.ent-fv img {
  max-width: auto;
}

.ent .ent-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.ent-br-sp {
  display: none;
}

/* =========================================================
 * Header
 * ========================================================= */
.ent-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--ent-color-border);
}

.ent-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 24px;
}

.ent-header-logo img {
  width: 96px;
  height: auto;
}

.ent-header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Hamburger button (SP only) */
.ent-hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.ent-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ent-color-text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.15s ease;
  transform-origin: center;
}

.ent-header.is-open .ent-hamburger span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.ent-header.is-open .ent-hamburger span:nth-child(2) {
  opacity: 0;
}

.ent-header.is-open .ent-hamburger span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

.ent-header-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ent-header-nav-links a {
  font-weight: 500;
  font-size: 15px;
}

.ent-header-nav-links a:hover {
  color: var(--ent-color-stock);
}

.ent-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* SP-only service selector cards inside drawer (hidden on PC) */
.ent-nav-services {
  display: none;
}

.ent-header-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--ent-color-text);
  background: #fff;
  color: var(--ent-color-text);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.ent-header-btn.is-primary {
  background: var(--ent-color-text);
  color: #fff;
}

.ent-caret {
  display: inline-block;
  font-size: 10px;
  transition: transform 0.2s ease;
}

a.ent-dropdown-trigger .ent-caret {
  position: relative;
  top: -2px;
}

.ent-header-btn:hover .ent-caret,
.ent-dropdown-trigger:hover .ent-caret {
  transform: rotate(90deg);
}

/* Header dropdown (hover) — full-width panel below header */
.ent-dropdown {
  position: static;
}

.ent-dropdown-trigger {
  cursor: pointer;
}

.ent-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  background: #fff;
  border-top: 1px solid var(--ent-color-border);
  box-shadow: 0 12px 24px rgba(0, 43, 78, 0.08);
  padding: 28px 24px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  display: flex;
  justify-content: center;
  gap: 80px;
}

.ent-dropdown:hover .ent-dropdown-menu,
.ent-dropdown:focus-within .ent-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ent-dropdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 280px;
  padding: 16px 8px;
  border-radius: 4px;
  text-align: center;
  transition: background 0.15s ease;
}

.ent-dropdown-item:hover {
  background: #F4F8FC;
}

.ent-dropdown-item img {
  height: 48px;
  width: auto;
}

.ent-dropdown-item-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}

.ent-dropdown-item-badge.is-stock {
  background: var(--ent-color-text);
}

.ent-dropdown-item-badge.is-narekan {
  background: #00838f;
}

/* 3D press-down buttons (same mechanism as FV primary buttons) */
.ent-dropdown-item-btn {
  display: inline-block;
  min-width: 140px;
  padding: 8px 20px;
  border-radius: 6px;
  border: 2px solid transparent;
  box-sizing: border-box;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
  transition: color 0.1s linear, background-color 0.1s linear, border-color 0.1s linear;
}

.ent-dropdown-item-btn.is-stock,
.ent-dropdown-item-btn.is-stock-primary {
  background: #77c2fd;
  border-color: #77c2fd;
  border-bottom: 4px solid #4d81aa;
}

.ent-dropdown-item:hover .ent-dropdown-item-btn.is-stock,
.ent-dropdown-item:hover .ent-dropdown-item-btn.is-stock-primary {
  border-bottom: 1px solid #4d81aa;
  margin-top: 3px;
  margin-bottom: 1px;
}

.ent-dropdown-item-btn.is-stock:active,
.ent-dropdown-item-btn.is-stock-primary:active {
  background: #0b97c3;
  border-color: #0b97c3;
}

.ent-dropdown-item-btn.is-narekan {
  background: #fa9614;
  border-color: #fa9614;
  border-bottom: 4px solid #f36c21;
}

.ent-dropdown-item:hover .ent-dropdown-item-btn.is-narekan {
  border-bottom: 1px solid #f36c21;
  margin-top: 3px;
  margin-bottom: 1px;
}

.ent-dropdown-item-btn.is-narekan:active {
  background: #e08010;
  border-color: #e08010;
}

/* =========================================================
 * First View (FV) — Tabbed slider
 * ========================================================= */
.ent-fv {
  position: relative;
  overflow: hidden;
}

.ent-fv-slides {
  position: relative;
}

.ent-fv-slide {
  display: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.ent-fv-slide.is-active {
  display: block;
  opacity: 1;
}

.ent-fv-narekan {
  background: var(--ent-color-narekan-bg);
}

.ent-fv-stock {
  background: var(--ent-color-stock-bg);
  color: #fff;
}

.ent-fv-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 360px;
  padding: 56px 0;
}

.ent-fv-text {
  flex: 0 0 auto;
  max-width: 460px;
}

.ent-fv-logo {
  width: 175px;
  max-width: auto;
  height: auto;
  margin-bottom: 18px;
}

.ent-fv-stock .ent-fv-logo {
  max-width: auto;
}

.ent-fv-heading {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 28px;
}

.ent-fv-narekan .ent-fv-heading {
  color: #00838f;
}

.ent-fv-actions {
  display: flex;
  gap: 42px;
  flex-wrap: wrap;
}

.ent-fv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 195px;
  height: 44px;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  box-sizing: border-box;
  transition: color 0.1s linear, background-color 0.1s linear, border-color 0.1s linear;
}

/* Narekan FV — outline (flat) */
.ent-fv-narekan .ent-fv-btn-outline {
  background: #fff;
  border-color: #fa9614;
  color: #fa9614;
}

.ent-fv-narekan .ent-fv-btn-outline:hover {
  background: #fa9614;
  color: #fff;
}

/* Narekan FV — primary (3D press-down, matches .hg2-orange.button) */
.ent-fv-narekan .ent-fv-btn-primary {
  background: #fa9614;
  border-color: #fa9614;
  border-bottom: 5px solid #f36c21;
  color: #fff;
  margin-bottom: 5px;
}

.ent-fv-narekan .ent-fv-btn-primary:hover {
  background: #fa9614;
  border-bottom: 1px solid #f36c21;
  margin-top: 4px;
  margin-bottom: 1px;
}

.ent-fv-narekan .ent-fv-btn-primary:active {
  background: #e08010;
  border-color: #e08010;
}

/* Stock FV — outline (flat) */
.ent-fv-stock .ent-fv-btn-outline {
  background: transparent;
  border-color: #fff;
  color: #fff;
}

.ent-fv-stock .ent-fv-btn-outline:hover {
  background: #fff;
  color: var(--ent-color-text);
}

/* Stock FV — primary (3D press-down, matches .button) */
.ent-fv-stock .ent-fv-btn-primary {
  background: #77c2fd;
  border-color: #77c2fd;
  border-bottom: 5px solid #4d81aa;
  color: #fff;
  margin-bottom: 5px;
}

.ent-fv-stock .ent-fv-btn-primary:hover {
  background: #77c2fd;
  border-bottom: 1px solid #4d81aa;
  margin-top: 4px;
  margin-bottom: 1px;
}

.ent-fv-stock .ent-fv-btn-primary:active {
  background: #0b97c3;
  border-color: #0b97c3;
}

.ent-fv-image {
  flex: 1 1 auto;
  max-width: 520px;
}

.ent-fv-image img {
  width: 100%;
}

/* FV tab navigation */
.ent-fv-tabs {
  background: #fff;
  border-bottom: 1px solid var(--ent-color-border);
}

.ent-fv-tabs-inner {
  display: flex;
  max-width: 1120px;
  margin: 0 auto;
}

.ent-fv-tab {
  flex: 1 1 50%;
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 18px 16px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: var(--ent-color-text);
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: inherit;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.ent-fv-tab::after {
  content: "→";
  font-size: 16px;
  opacity: 0.4;
}

.ent-fv-tab.is-active[data-target="narekan"] {
  border-bottom-color: var(--ent-color-narekan);
}

.ent-fv-tab.is-active[data-target="stock"] {
  border-bottom-color: var(--ent-color-stock);
}

.ent-fv-tab + .ent-fv-tab {
  border-left: 1px solid var(--ent-color-border);
}

/* =========================================================
 * Section: Product cards
 * ========================================================= */
.ent-section {
  padding: 80px 0;
}

.ent-section-alt {
  background: var(--ent-color-section-bg);
}

.ent-section-heading {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.ent-section-heading::before,
.ent-section-heading::after {
  content: "";
  width: 32px;
  height: 2px;
  background: var(--ent-color-text);
}

.ent-products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 800px;
  margin: 0 auto;
}

.ent-product-card {
  text-align: center;
}

.ent-product-badge {
  display: inline-block;
  padding: 6px 24px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
}

.ent-product-badge.is-stock {
  background: var(--ent-color-text);
}

.ent-product-badge.is-narekan {
  background: #00838f;
}

.ent-product-screenshot {
  width: 84%;
  margin: 0 auto 16px;
}

.ent-product-screenshot img {
  width: 100%;
  height: auto;
}

.ent-product-tagline {
  font-size: 14px;
  font-weight: bold;
  margin: 0 0 12px;
}

.ent-product-tagline.is-narekan {
  color: #00838f;
}

.ent-product-logo {
  width: 175px;
  height: auto;
  margin: 0 auto 24px;
}

/* =========================================================
 * Outline button (window_blue / window_white icon)
 * ========================================================= */
.ent-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px 10px 11px;
  border: 1px solid var(--ent-color-text);
  border-radius: 4px;
  background: #fff;
  color: var(--ent-color-text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
  position: relative;
}

.ent-btn-outline .ent-btn-icon {
  display: inline-block;
  width: 25px;
  height: 23px;
  background-image: url("https://d1e4giw8bkqfro.cloudfront.net/images/window_blue.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: background-image 0.15s ease;
}

.ent-btn-outline:hover {
  background: var(--ent-color-text);
  color: #fff;
}

.ent-btn-outline:hover .ent-btn-icon {
  background-image: url("https://d1e4giw8bkqfro.cloudfront.net/images/window_white.png");
}

/* =========================================================
 * Section: Comparison
 * ========================================================= */
.ent-compare {
  max-width: 840px;
  margin: 0 auto;
  background: #fff;
  border-radius: 4px;
}

.ent-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  font-weight: 500;
}

.ent-compare-table th,
.ent-compare-table td {
  padding: 18px 20px;
  text-align: center;
  border-bottom: 1px solid var(--ent-color-border);
}

.ent-compare-table thead tr {
  border-top: 4px solid var(--ent-color-text);
  border-bottom: 4px solid var(--ent-color-text);
}

.ent-compare-table thead th {
  padding: 20px 0;
  vertical-align: middle;
  border-bottom: 0;
}

.ent-compare-table tbody th {
  text-align: left;
  font-weight: 600;
  width: 30%;
  background: transparent;
}

.ent-compare-table .ent-compare-logo {
  display: inline-block;
  height: 34px;
  vertical-align: middle;
}

.ent-compare-table tbody tr:last-child th,
.ent-compare-table tbody tr:last-child td {
  border-bottom: 0;
}

/* =========================================================
 * Section: About us
 * ========================================================= */
.ent-about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  max-width: 840px;
  margin: 0 auto;
}

.ent-about-logo {
  width: 175px;
  height: 40px;
  margin-bottom: 16px;
}

.ent-about-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--ent-color-text);
  margin: 0 0 8px;
  border-bottom: solid 1px var(--ent-color-text);
  display: inline-block;
}

.ent-about-heading {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.55;
  margin: 0 0 28px;
}

.ent-about-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.ent-about-photo img {
  width: 100%;
  border-radius: 6px;
}

/* =========================================================
 * Footer
 * ========================================================= */
.ent-footer {
  background: var(--ent-color-section-bg);
  padding: 24px 0;
  font-size: 13px;
  color: var(--ent-color-text);
  font-weight: 500;
}

.ent-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.ent-footer-copy {
  color: var(--ent-color-text);
}

.ent-footer-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 24px;
}

.ent-footer-links a:hover {
  color: var(--ent-color-stock);
}

/* =========================================================
 * SP (≤768px)
 * ========================================================= */
@media (max-width: 768px) {
  .ent-br-sp {
    display: inline;
  }

  .ent .ent-wrap {
    padding: 0 10px;
  }

  .ent-header-inner {
    padding: 10px 16px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .ent-hamburger {
    display: flex;
    order: 99;
  }

  /* Hide header action buttons on SP (moved into drawer) */
  .ent-header-actions {
    display: none;
  }

  .ent-header-nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    background: #fff;
    border-top: 1px solid var(--ent-color-border);
    box-shadow: 0 12px 24px rgba(0, 43, 78, 0.08);
    padding: 8px 24px 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    height: 100vh;
    overflow-y: scroll;
  }

  .ent-header.is-open .ent-header-nav-links {
    display: flex;
  }

  /* Service selector cards at top of drawer */
  .ent-nav-services {
    display: block;
    padding: 16px 0 20px;
    border-bottom: 1px solid var(--ent-color-border);
  }

  .ent-nav-services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ent-nav-service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px 8px;
    background: var(--ent-color-section-bg);
    border-radius: 6px;
  }

  .ent-nav-service-card img {
    height: 50px;
    width: auto;
  }

  .ent-nav-service-card .ent-dropdown-item-badge {
    font-size: 14px;
    padding: 3px 10px;
    white-space: normal;
    line-height: 1.3;
    text-align: center;
  }

  .ent-nav-service-card .ent-dropdown-item-btn {
    display: block;
    width: 220px;
    text-align: center;
    font-size: 16px;
    padding: 7px 8px;
    border-bottom-width: 3px;
    margin-bottom: 3px;
    min-width: 0;
    box-sizing: border-box;
    color: #fff;
  }

  /* Regular nav links below service cards */
  .ent-header-nav-links > li:not(.ent-nav-services) {
    border-bottom: 1px solid var(--ent-color-border);
  }

  .ent-header-nav-links > li:last-child {
    border-bottom: 0;
  }

  .ent-header-nav-links > li:not(.ent-nav-services) > a {
    display: block;
    padding: 16px 4px;
    font-size: 15px;
    font-weight: 500;
  }

  .ent-header-nav-links > li.ent-dropdown > .ent-dropdown-trigger {
    padding: 16px 4px;
    font-size: 15px;
    font-weight: 500;
    display: block;
  }

  .ent-header-nav-links > li.ent-dropdown > .ent-dropdown-trigger .ent-caret {
    display: none;
  }

  /* Hide the bottom お問い合わせ inline dropdown menu on SP (redundant with top service cards) */
  .ent-header-nav-links .ent-dropdown-menu {
    display: none;
  }

  .ent-header-actions {
    margin-left: auto;
    gap: 8px;
  }

  .ent-header-btn {
    padding: 8px 12px;
    font-size: 13px;
  }

  .ent-dropdown-menu {
    padding: 20px 16px;
    gap: 24px;
  }

  .ent-dropdown-item {
    width: auto;
    flex: 1 1 0;
    min-width: 0;
    max-width: 200px;
    padding: 8px 4px;
    gap: 8px;
  }

  .ent-dropdown-item-badge {
    font-size: 11px;
    padding: 3px 10px;
    white-space: normal;
    line-height: 1.3;
  }

  .ent-dropdown-item img {
    height: 32px;
  }

  .ent-dropdown-item-btn {
    font-size: 12px;
    min-width: 0;
    padding: 6px 14px;
    border-bottom-width: 3px;
    margin-bottom: 3px;
  }

  .ent-fv-inner {
    flex-direction: column;
    text-align: center;
    padding: 40px 0 32px;
    min-height: auto;
  }

  .ent-fv-text {
    max-width: 100%;
  }

  .ent-fv-logo {
    margin-left: auto;
    margin-right: auto;
  }

  .ent-fv-heading {
    font-size: 22px;
  }

  .ent-fv-actions {
    justify-content: center;
  }

  .ent-fv-image {
    max-width: 100%;
  }

  .ent-fv-tab {
    font-size: 12px;
    padding: 14px 12px;
  }

  .ent-section {
    padding: 56px 0;
  }

  .ent-section-heading {
    font-size: 18px;
    margin-bottom: 36px;
  }

  .ent-products {
    grid-template-columns: 1fr;
    gap: 90px;
    max-width: 360px;
  }

  .ent-product-screenshot {
    width: 100%;
  }

  .ent-compare-table th,
  .ent-compare-table td {
    padding: 12px 8px;
    font-size: 12px;
  }

  .ent-compare-table tbody th {
    width: 28%;
  }

  .ent-compare-table .ent-compare-logo {
    height: 34px;
  }

  .ent-about {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .ent-about-heading {
    font-size: 20px;
  }

  .ent-footer-inner {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 12px;
  }

  .ent-footer-links {
    flex-wrap: wrap;
    gap: 12px 20px;
  }
}

/* =========================================================
 * Ultra-narrow (≤390px): fluid-scale dropdown trigger buttons
 * px values become vw via calc so they shrink with viewport
 * ========================================================= */
@media (max-width: 390px) {
  .ent-header-logo img {
    width: calc(96 * 100vw / 390);
  }

  .ent-dropdown .ent-header-btn {
    gap: calc(6 * 100vw / 390);
    padding: calc(8 * 100vw / 390) calc(10 * 100vw / 390);
    border-radius: calc(4 * 100vw / 390);
    font-size: calc(13 * 100vw / 390);
  }

  .ent-dropdown .ent-header-btn .ent-caret {
    font-size: calc(10 * 100vw / 390);
  }
}
