/*
Theme Name: Luminous
Description: 株式会社ルミナス用WordPressテーマ - LED照明・産業用LED専門企業のコーポレートサイト
Version: 1.0
Author: Manus AI
*/

/* ===== Base ===== */
:root {
  --brand: #12638E;
  --brand-dark: #4F7990;
  --accent: #ce2694;
  --accent-hover: #e45fb2;
  --ink: #20303a;
  --muted: #6b7c86;
  --line: #e6edf2;
  --bg: #ffffff;
  --container: 1200px;
}

html {
  scroll-behavior: smooth
}

*,
*::before,
*::after {
  box-sizing: border-box
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7
}

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

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

a:hover {
  opacity: .6;
  transition: all 0.3s ease 0s;
}

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

.text--right {
  text-align: right;
}

.flex--right {
  justify-content: flex-end;
}

/* Buttons */
.btn {
  width: 320px;
  line-height: 1.4em;
  letter-spacing: 0.1em;
  text-align: center;
  display: inline-block;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .9rem 4rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 700;
  font-size: 16px
}

.btn--accent {
  background: var(--accent);
  color: #fff
}

.btn--accent:hover {
  background-color: var(--accent-hover);
  opacity: 1.0;
}

.btn--brand {
  background: var(--brand);
  color: #fff
}

.btn--line {
  border-color: var(--brand);
  color: var(--brand);
  background: #fff
}

.btn--ghost {
  border-color: #fff;
  color: #fff
}

.arrow--w,
.arrow--r,
.arrow--b {
  position: relative;
}

.arrow--w::before {
  content: "";
  position: absolute;
  right: 40px;
  top: 0;
  bottom: 0;
  margin: auto;
  background-image: url(./assets/images/arrow_w.svg);
  background-size: cover;
  width: 17px;
  height: 14px;
}

.arrow--r::before {
  content: "";
  position: absolute;
  right: 40px;
  top: 0;
  bottom: 0;
  margin: auto;
  background-image: url(./assets/images/arrow_r.svg);
  background-size: cover;
  width: 17px;
  height: 14px;
}

.arrow--b::before {
  content: "";
  position: absolute;
  right: 40px;
  top: 0;
  bottom: 0;
  margin: auto;
  background-image: url(./assets/images/arrow_b.svg);
  background-size: cover;
  width: 17px;
  height: 14px;
}

.arrow--b--text::before {
  content: "";
  display: inline-block;
  background-image: url(./assets/images/arrow_b.svg);
  background-size: cover;
  width: 17px;
  height: 14px;
}

.arrow--w--text::before {
  content: "";
  display: inline-block;
  background-image: url(./assets/images/arrow_w.svg);
  background-size: cover;
  width: 17px;
  height: 14px;
}

.text--link {
  color: var(--brand) !important;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px
}

@media (max-width:960px) {
  .cta-row {
    margin: 16px auto;
  }

  .arrow--w::before,
  .arrow--r::before,
  .arrow--b::before {
    right: 30px;
  }
}

/* ===== Header / Nav ===== */
/* ========= PC共通 ========= */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px
}

.logo {
  font-weight: 800;
  color: var(--brand)
}
div.logo{
  font-size: 2em;
}
#global-nav {
  height: 100%;
}
#global-nav .catalog-actions {
  display: none;
}

#global-nav-list li {
  height: 100%;
  display: table;
}

nav ul {
  height: 100%;
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0
}

nav a {
  color: var(--muted);
  font-weight: 600;
  display: table-cell;
  vertical-align: middle;
  text-decoration: none
}

nav a[href="#contact"] {
  background: var(--accent);
  color: #fff;
  padding: .9rem 4rem;
  ;
  border-radius: 999px;
}

li#menu-item-201 a {
  background: var(--accent);
  color: #fff;
  padding: 10px
}

/* Hamburger（PCでは隠す） */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  position: relative;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
}

.hamburger span {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: #111;
  transition: transform .25s, top .25s, opacity .2s
}

.hamburger span:nth-child(1) {
  top: 12px
}

.hamburger span:nth-child(2) {
  top: 19px
}

.hamburger span:nth-child(3) {
  top: 26px
}

/* ========= SP（<=980px）：右→左スライド ========= */
@media (max-width:980px) {
  li#menu-item-201 {
    display: none;
  }
  #global-nav .catalog-actions {
    display: flex;
  }

  .header-inner {
    padding: 0 0 0 20px;
  }

  /* ボタン本体 */
  #hamburger.hamburger {
    position: relative;
    z-index: 120;
    width: 65px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    border: 0;
    cursor: pointer;
    color: #fff;
  }

  /* 3本線：位置は translateY で決める（topを使わないと安定） */
  #hamburger span {
    position: absolute;
    left: 16px;
    right: 16px;
    height: 3px;
    background: #fff;
    transition: transform .25s ease, opacity .2s ease;
  }

  #hamburger span:nth-child(1) {
    transform: translateY(-1px);
  }

  #hamburger span:nth-child(2) {
    transform: translateY(2px);
    opacity: 1;
  }

  #hamburger span:nth-child(3) {
    transform: translateY(5px);
  }

  /* ラベル */
  #hamburger .label {
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    font-size: 14px;
    line-height: 1;
    text-align: center;
    color: #fff;
  }

  #hamburger .label::after {
    content: "menu";
  }

  /* === 開いたとき === */
  body[data-nav="open"] #hamburger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  body[data-nav="open"] #hamburger span:nth-child(2) {
    opacity: 0 !important;
    transform: translateY(0);
  }

  body[data-nav="open"] #hamburger span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  body[data-nav="open"] #hamburger .label::after {
    content: "close" !important;
  }

  /* ドロワー */
  #global-nav {
    position: fixed;
    top: 64px;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(100vw, 420px);
    background: #fff;
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.2, .6, .2, 1);
    z-index: 110;
    overflow: auto;
    height: auto;
  }

  body[data-nav="open"] #global-nav {
    transform: translateX(0);
  }

  .global-nav-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid #eee;
    height: auto;
    list-style: none;
    margin: 0 0 50px;
  }

  .global-nav-list>li>a {
    color: var(--brand);
    display: block;
    padding: 25px 50px 25px 20px;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    position: relative;
  }

  .global-nav-list>li>a::before {
    content: "";
    position: absolute;
    right: 30px;
    top: 0;
    bottom: 0;
    margin: auto;
    background-image: url(./assets/images/arrow_r.svg);
    background-size: cover;
    width: 17px;
    height: 14px;
  }

  body[data-nav="open"] {
    overflow: hidden;
  }

  #global-nav a[href="#contact"] {
    background: var(--brand);
    color: #fff;
  }
}


/* ===== MV ===== */
.mv {
  position: relative;
  width: 100vw;
  height: 90vh;
}

.mv-media {
  width: 100%;
  height: 60vh;
  min-height: 420px;
  max-height: 820px;
  object-fit: cover
}

.mv-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .45), rgba(0, 0, 0, .05) 60%, transparent)
}

.mv-copy {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center left;
}

.mv-copy .copy {
  color: #fff;
  font-weight: 800;
  font-size: 67px;
  line-height: 1.3;
  max-width: min(90%, 980px);
  margin-left: clamp(16px, 8vw, 80px);
  z-index: 99;
}

@media (max-width:960px) {
  .mv {
    position: relative;
    width: 100vw;
    height: 70vh;
  }

  .mv-copy .copy {
    font-size: clamp(24px, 7vw, 44px);
    line-height: 1.4;
    margin: 0 20px
  }
}

/* ===== スライダー全体 ===== */
.mv-slider {
  position: relative;
  width: 100%;
  height: 80vh;
  /* 高さを少し大きめに調整 */
  min-height: 480px;
  max-height: 820px;
  overflow: hidden;
}

/* ===== 各スライド ===== */
.mv-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.mv-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 画面いっぱいに表示 */
}

/* アクティブ状態 */
.mv-slide.active {
  opacity: 1;
  z-index: 1;
}

/* ===== ドットナビゲーション ===== */
.mv-dots {
  position: absolute;
  bottom: 30px;
  /* 位置を少し上げる */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 2;
}

.mv-dots button {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: none;
  background-color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.mv-dots button.active {
  background-color: var(--brand);
  /* ブランドカラー */
  transform: scale(1.2);
  /* アクティブ時に拡大 */
}


/* ===== Sections / Headings ===== */
section {
  scroll-margin-top: 72px;
  margin-top: 130px;
}

h2 {
  font-size: 39px;
  color: var(--brand);
  margin: 0 0 16px;
  line-height: 1.3;
  letter-spacing: .1em;
}

.top h2 {
  text-align: center;
}

@media (max-width:960px) {
  section {
    margin-top: 100px;
  }

  h2 {
    font-size: clamp(24px, 5vw, 28px)
  }
}

/* Intro lead */
.lead {
  background: #fff;
}

.lead-flex {
  display: flex;
  gap: 3rem;
  justify-content: center;
  align-items: center
}

.lead h2 {
  font-size: 32px;
  color: var(--brand);
  line-height: 1.4
}

.lead .img-area {
  max-width: 400px;
  width: 100%;
}

@media (max-width:960px) {
  .lead {
    padding: 0;
  }

  .lead-flex {
    flex-flow: column;
    gap: 30px;
  }

  .lead h2 {
    font-size: clamp(18px, 4.5vw, 24px);
    text-align: left;
  }

  .lead .cta-row {
    margin: 0 !important
  }
}

.catalog {
  background: #12638E;
  text-align: center;
  position: relative;
  margin-top: 60px;
}

.catalog-inner {
  background-image: url(./assets/images/catalog.jpg);
  max-width: 1080px;
  height: 300px;
  margin: 0 auto;
  position: relative;
}

.catalog h2 {
  color: #fff;
  font-size: 39px;
  margin: 0 24px;
  padding-top: 70px;
}

.catalog-img {
  display: block;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto 24px;
  object-fit: cover;
}

.catalog-item {
  position: absolute;
}

.catalog-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  position: absolute;
  bottom: 60px;
  right: 0;
  left: 0;
}

@media (max-width:960px) {
  .catalog {
    background: #fff;
    margin-top: 100px;
  }

  .catalog h2 {
    font-size: clamp(20px, 5vw, 28px);
  }

  .catalog-img {
    max-width: 100%;
    margin-bottom: 16px;
  }

  .catalog-actions {
    position: unset;
  }

  .catalog-inner {
    height: 150px;
    width: 100%;
    display: table;
    margin-bottom: 30px;
  }

  .catalog h2 {
    display: table-cell;
    vertical-align: middle;
    padding: 0;
  }
}


/* Cases 横スクロール */
.cases {
  padding: 56px 0
}

.case-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 12px;
  scroll-snap-type: x mandatory;
  margin: 80px auto 120px;
}

.case-card {
  scroll-snap-align: start;
  flex: 0 0 clamp(240px, 32vw, 340px);
  background: #fff;
  border: 4px solid var(--brand);
  overflow: hidden;
}

.case-card a:hover {
  opacity: .6;
  transition: all 0.3s ease 0s;
}

.case-card img {
  height: 160px;
  object-fit: cover
}

.case-card .card-body {
  padding: 14px
}

.case-card h3 {
  font-size: 18px;
  margin: 0 0 8px;
  color: var(--brand)
}

.case-card p {
  margin: 0 0 10px;
  color: #12638E;
  font-size: 14px
}

@media (max-width:960px) {
  .case-track {
    margin: 80px 0 80px 20px;
  }

  .cases {
    padding: 0;
  }
}

/* Company 一列（タイトル→本文→画像） */
.company {
  position: relative;
  margin-top: 180px;
  display: flex;
  justify-content: space-between;
}

.company-inner {
  width: 70%;
  height: 580px;
  margin-left: auto;
  background: var(--brand);
  color: #fff;
  padding: 60px 0;
}

.company h2 {
  color: #fff;
  margin: 0;
}

.company .stack {
  position: relative;
  display: grid;
  gap: 80px;
  margin-left: 400px;
  max-width: 420px;
  width: 90%;
}

.company .stack p {
  margin: 0 20px;
}

.company .img-wrap {
  aspect-ratio: 860 / 568;
  max-width: 860px;
  margin-top: -65px;
  margin-right: -400px;
  z-index: 1;
}

@media (max-width:1330px) {
  .company .img-wrap {
    max-width: 58%;
  }

  .company .stack {
    margin-left: 30vw;
    max-width: 50%;
  }

  .company-inner {
    height: auto;
    max-height: 580px;
    aspect-ratio: 1500 / 580;
  }
}

@media (max-width:960px) {
  .company {
    margin-top: 100px;
  }

  .company .stack {
    gap: 30px;
    margin: auto;
    width: 100%;
    max-width: 100%;
  }

  .company-inner {
    width: 100%;
    max-width: 100%;
    margin: auto;
    padding: 60px 0 30px;
    height: auto;
    aspect-ratio: unset;
    max-height: fit-content;
  }

  .company .stack p,
  .company .cta-row {
    margin: 0 40px;
  }

  .company .img-wrap {
    max-width: 100%;
    width: 100%;
    margin: auto;
  }
}

/* Features 三列 */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 70px;
  max-width: 1000px;
  margin: 70px auto 0;
}

.feature {
  background: #fff;
  text-align: center;
}

.circle {
  margin: 0 auto 50px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--brand)
}

.feature p {
  margin: 0;
  color: #12638E
}

@media (max-width:960px) {
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    width: 85%;
  }

  .features {
    padding: 32px 16px
  }

  .circle {
    margin-bottom: 2rem;
  }
}

/* Contact */
.contact {
  position: relative;
  background: var(--brand)
}

.contact-inner {
  width: 100%;
  position: relative;
  height: 325px;
  color: #fff;
  background-image: url(./assets/images/contact.jpg);
  background-size: cover;
  background-position: center;
  display: table;
}

.contact-inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--brand);
  opacity: .4;
  z-index: 1;
}

.contact-inner h2 {
  color: #fff;
}

.contact-inner .inner {
  display: table-cell;
  vertical-align: middle;
  text-align: center;
  position: relative;
  z-index: 2;
}

.contact-bottom {
  max-width: 1200px;
  width: 90%;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 50px 0;
}

.contact-bottom .cta-row {
  display: flex;
  flex-flow: column;
  gap: 2rem;
}

@media (max-width:960px) {
  .contact-inner h2 {
    display: block;
    margin-bottom: 30px;
  }

  .contact-inner {
    height: 220px;
  }

  .contact-inner .inner {
    display: table-cell;
    vertical-align: middle;
    text-align: center;
  }

  .contact-bottom {
    padding: 30px 0;
  }

  .contact-bottom .cta-row {
    gap: 1.5rem;
  }
}

/* Footer */
footer {
  padding: 0 0 120px;
  background: #fff;
  margin-top: 130px;
}

#footer-nav-list {
  display: flex;
  gap: 2rem;
  padding: 0;
}

#footer-nav-list li {
  list-style-type: none;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 50px;
}

.foot-links a {
  color: var(--brand);
  font-weight: bold;
}

.copyright {
  color: #6b7c86;
  text-align: center
}

@media (max-width: 960px) {
  footer {
    padding: 0 0 50px;
    background: #fff;
    margin-top: 100px;
  }

  #footer-nav-list {
    gap: 12px;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Go to top */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .2)
}

.to-top:hover {
  opacity: .9
}

/* other */
.sp-ver {
  display: none;
}

@media (max-width: 960px) {
  .pc-ver {
    display: none;
  }

  .sp-ver {
    display: block;
  }
}