/* === 本番最終調整 === */

/*
══════════════════════════════════════════════════════════════

Den-show Corporate Website

Version        : 1.0.0
Codename       : Project Infinity
First Release  : 2026.07.12

Brand Direction
Shinya Hasegawa

「可能性は、未来を動かす力になる。」

Built for tomorrow.
Never Finished. Always Growing.

══════════════════════════════════════════════════════════════
*/

:root {
  --ds-license-green: #18784f;
  --ds-license-border: rgba(20, 72, 51, 0.12);
  --ds-license-shadow: 0 18px 48px rgba(11, 42, 30, 0.07);
}

/* Company / Licenses — continuous label column and collision-free cards */
body.denshow-theme .ds-company-licenses {
  min-height: clamp(300px, 26vw, 390px);
  align-items: stretch !important;
}
body.denshow-theme .ds-company-licenses > dt {
  height: auto !important;
  min-height: 100%;
  padding: 22px 20px !important;
  align-self: stretch !important;
  background: rgba(226, 241, 232, 0.72) !important;
}
body.denshow-theme .ds-company-licenses > dd {
  width: 100%;
  min-width: 0;
  padding: clamp(20px, 2.6vw, 32px) !important;
  align-self: stretch !important;
}
body.denshow-theme .ds-company-license-grid {
  display: grid;
  width: 100%;
  height: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 28px);
  align-items: stretch;
}
body.denshow-theme .ds-company-license-card {
  position: relative !important;
  display: grid !important;
  grid-template-columns: clamp(78px, 7vw, 104px) minmax(0, 1fr) !important;
  align-items: stretch !important;
  align-content: stretch !important;
  column-gap: clamp(20px, 2.2vw, 30px) !important;
  min-width: 0;
  min-height: 292px;
  padding: clamp(28px, 3vw, 38px) !important;
  border: 1px solid rgba(24, 120, 79, 0.48) !important;
  border-radius: 22px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.98),
    rgba(249, 252, 250, 0.94)
  );
  box-shadow: var(--ds-license-shadow);
  overflow: hidden;
}
body.denshow-theme .ds-license-icon {
  position: static !important;
  inset: auto !important;
  z-index: 1;
  display: grid;
  width: clamp(68px, 6vw, 84px) !important;
  height: clamp(68px, 6vw, 84px) !important;
  margin: 2px 0 0 !important;
  align-self: start;
  justify-self: center;
  place-items: center;
  border-radius: 50%;
  background: rgba(24, 120, 79, 0.09);
  color: var(--ds-license-green);
  transform: none !important;
}
body.denshow-theme .ds-license-icon::after {
  content: "";
  position: absolute;
  top: clamp(28px, 3vw, 38px);
  bottom: clamp(28px, 3vw, 38px);
  width: 1px;
  margin-left: clamp(98px, 9vw, 126px);
  background: rgba(24, 120, 79, 0.18);
  pointer-events: none;
}
body.denshow-theme .ds-license-icon svg {
  width: clamp(32px, 3vw, 42px) !important;
  height: clamp(32px, 3vw, 42px) !important;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body.denshow-theme .ds-license-content {
  position: static !important;
  z-index: 2;
  display: flex !important;
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0 !important;
  flex-direction: column;
  transform: none !important;
}
body.denshow-theme .ds-company-license-card h3 {
  position: relative;
  margin: 0 0 26px !important;
  padding: 0 0 14px !important;
  font-size: clamp(1.15rem, 1.55vw, 1.38rem) !important;
  font-weight: 750;
  line-height: 1.4 !important;
  letter-spacing: 0.035em;
  white-space: normal;
}
body.denshow-theme .ds-company-license-card h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--ds-license-green);
}
body.denshow-theme .ds-company-license-card p {
  margin: 5px 0 !important;
  line-height: 1.72;
}
body.denshow-theme .ds-company-license-card .ds-license-name {
  font-weight: 700;
}
body.denshow-theme .ds-company-license-card .ds-license-number {
  margin-top: auto !important;
  padding-top: 28px !important;
  color: var(--ds-license-green);
  font-size: clamp(1.05rem, 1.35vw, 1.28rem) !important;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0.035em;
  word-break: keep-all;
  overflow-wrap: normal;
}
body.denshow-theme .ds-company-license-card .ds-license-number::before {
  content: "許可番号";
  display: block;
  margin-bottom: 7px;
  font-size: 0.78em;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* Footer signature */
body.denshow-theme .ds-footer-signature {
  position: relative;
  padding-top: 15px;
  gap: 7px;
}
body.denshow-theme .ds-footer-signature::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 46px;
  height: 1px;
  background: rgba(94, 194, 138, 0.76);
}
body.denshow-theme .ds-footer-signature span:first-child {
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.07em;
}
body.denshow-theme .ds-footer-signature span:last-child {
  opacity: 0.68;
  font-size: 0.72rem;
  letter-spacing: 0.075em;
}

/* Accessibility and motion */
body.denshow-theme :where(a, button, input, textarea, select):focus-visible {
  outline: 3px solid rgba(24, 120, 79, 0.42);
  outline-offset: 4px;
}
/* === レスポンシブ・環境別調整 === */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
  body.denshow-theme *,
  body.denshow-theme *::before,
  body.denshow-theme *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
@media (max-width: 900px) {
  body.denshow-theme .ds-company-license-grid {
    grid-template-columns: 1fr;
  }
  body.denshow-theme .ds-company-license-card {
    min-height: 0;
  }
}
@media (max-width: 560px) {
  body.denshow-theme .ds-company-license-card {
    padding: 23px 20px;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
  }
  body.denshow-theme .ds-license-icon {
    width: 44px;
    height: 44px;
  }
  body.denshow-theme .ds-license-icon svg {
    width: 21px;
    height: 21px;
  }
  body.denshow-theme .ds-footer-signature::before {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Project Infinity v1.0.1 — Company license responsive safeguards */
@media (max-width: 900px) {
  body.denshow-theme .ds-company-licenses {
    min-height: 0;
  }
  body.denshow-theme .ds-company-license-grid {
    grid-template-columns: 1fr;
  }
  body.denshow-theme .ds-company-license-card {
    min-height: 280px;
  }
}
@media (max-width: 760px) {
  body.denshow-theme .ds-company-licenses {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }
  body.denshow-theme .ds-company-licenses > dt {
    min-height: 0;
    padding: 18px 20px !important;
  }
  body.denshow-theme .ds-company-licenses > dd {
    padding: 18px !important;
  }
}
@media (max-width: 560px) {
  body.denshow-theme .ds-company-license-card {
    min-height: 0;
    padding: 24px 20px !important;
    grid-template-columns: 58px minmax(0, 1fr) !important;
    column-gap: 16px !important;
  }
  body.denshow-theme .ds-license-icon {
    width: 54px !important;
    height: 54px !important;
  }
  body.denshow-theme .ds-license-icon::after {
    display: none;
  }
  body.denshow-theme .ds-license-icon svg {
    width: 28px !important;
    height: 28px !important;
  }
  body.denshow-theme .ds-company-license-card h3 {
    margin-bottom: 20px !important;
    font-size: 1.08rem !important;
  }
  body.denshow-theme .ds-company-license-card .ds-license-number {
    font-size: 1rem !important;
    word-break: break-word;
  }
}

/* ==========================================================
   Project Infinity v1.0.2
   Company / Licenses — final fixed-column layout
   ========================================================== */
body.denshow-theme .ds-company-licenses {
  display: grid !important;
  min-height: 0 !important;
  grid-template-columns: 162px minmax(0, 1fr) !important;
  align-items: stretch !important;
}
body.denshow-theme .ds-company-licenses > dt {
  display: flex !important;
  min-height: 100% !important;
  padding: 24px 22px !important;
  align-items: flex-start;
  align-self: stretch !important;
  background: rgba(226, 241, 232, 0.72) !important;
}
body.denshow-theme .ds-company-licenses > dd {
  display: block !important;
  min-width: 0;
  padding: clamp(22px, 2.5vw, 32px) !important;
  align-self: stretch !important;
}
body.denshow-theme .ds-company-license-grid {
  display: grid !important;
  height: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: clamp(18px, 2vw, 26px) !important;
  align-items: stretch !important;
}
body.denshow-theme .ds-company-license-card {
  display: grid !important;
  grid-template-columns: 120px minmax(0, 1fr) !important;
  column-gap: 0 !important;
  align-items: stretch !important;
  min-width: 0;
  min-height: 300px;
  padding: 0 !important;
  border: 1px solid rgba(24, 120, 79, 0.34) !important;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(11, 42, 30, 0.07);
  overflow: hidden;
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}
body.denshow-theme .ds-company-license-card:hover {
  border-color: rgba(24, 120, 79, 0.55) !important;
  box-shadow: 0 22px 48px rgba(11, 42, 30, 0.11);
  transform: translateY(-5px);
}
body.denshow-theme .ds-license-icon {
  position: static !important;
  display: grid !important;
  width: 120px !important;
  height: 100% !important;
  min-height: 100%;
  margin: 0 !important;
  align-self: stretch !important;
  justify-self: stretch !important;
  place-items: center;
  border-right: 1px solid rgba(24, 120, 79, 0.16);
  border-radius: 0 !important;
  background: rgba(234, 245, 238, 0.9);
  color: var(--ds-license-green);
}
body.denshow-theme .ds-license-icon::after {
  display: none !important;
}
body.denshow-theme .ds-license-icon svg {
  width: 42px !important;
  height: 42px !important;
}
body.denshow-theme .ds-license-content {
  display: flex !important;
  min-width: 0;
  height: 100%;
  padding: clamp(28px, 2.7vw, 38px) !important;
  flex-direction: column;
}
body.denshow-theme .ds-company-license-card h3 {
  margin: 0 0 24px !important;
  padding: 0 0 15px !important;
}
body.denshow-theme .ds-company-license-card h3::after {
  width: 52px;
}
body.denshow-theme .ds-company-license-card .ds-license-number {
  margin-top: auto !important;
  padding-top: 26px !important;
}

@media (max-width: 1080px) {
  body.denshow-theme .ds-company-license-grid {
    grid-template-columns: 1fr !important;
  }
  body.denshow-theme .ds-company-license-card {
    min-height: 250px;
  }
}
@media (max-width: 760px) {
  body.denshow-theme .ds-company-licenses {
    grid-template-columns: 1fr !important;
  }
  body.denshow-theme .ds-company-licenses > dt {
    min-height: 0 !important;
    padding: 18px 20px !important;
  }
  body.denshow-theme .ds-company-licenses > dd {
    padding: 18px !important;
  }
}
@media (max-width: 560px) {
  body.denshow-theme .ds-company-license-card {
    min-height: 0;
    grid-template-columns: 72px minmax(0, 1fr) !important;
  }
  body.denshow-theme .ds-license-icon {
    width: 72px !important;
  }
  body.denshow-theme .ds-license-icon svg {
    width: 30px !important;
    height: 30px !important;
  }
  body.denshow-theme .ds-license-content {
    padding: 24px 20px !important;
  }
}
@media (hover: none) {
  body.denshow-theme .ds-company-license-card:hover {
    transform: none;
  }
}
