@charset "UTF-8";

/* =========================================================
   竜輝工業 - TOPページ (index.css)
   ========================================================= */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(125deg, #060f2c 0%, #0e2058 60%, #0000cd 145%);
  color: #fff;
  overflow: hidden;
  padding-top: var(--header-h);
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 30% 40%, #000, transparent 80%);
}
.hero__glow {
  position: absolute;
  top: -10%; right: -8%;
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(255,215,0,0.16), transparent 62%);
}
.hero__glow::after {
  content: "";
  position: absolute;
  left: -60%; bottom: -50%;
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(59,84,230,0.4), transparent 65%);
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
  padding-block: 60px;
}
.hero__eyebrow {
  font-family: var(--font-en);
  letter-spacing: 0.34em;
  font-size: 0.78rem;
  color: var(--gold);
  margin-bottom: 22px;
  text-transform: uppercase;
}
.hero__title {
  font-family: var(--font-serif);
  color: #fff;
  font-size: clamp(2.3rem, 6.2vw, 4.2rem);
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: 0.06em;
}
.hero__title .hl {
  background: linear-gradient(120deg, #ffd700, #fff2b0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__lead {
  margin-top: 26px;
  color: #c3cce8;
  font-size: clamp(0.92rem, 1.6vw, 1.05rem);
  line-height: 1.95;
}
.hero__actions { display: flex; gap: 16px; margin-top: 38px; flex-wrap: wrap; }
.hero__badges {
  display: flex;
  gap: clamp(20px, 4vw, 48px);
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.hero__badges li { display: flex; flex-direction: column; }
.hero__badges strong {
  font-family: var(--font-en);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
}
.hero__badges span { font-size: 0.8rem; color: #aab4d4; margin-top: 6px; letter-spacing: 0.08em; }
.hero__art { position: relative; }
.hero__art svg { width: 100%; height: auto; }
.hero__art img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
  display: block;
}
.hero__art::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  pointer-events: none;
  background: linear-gradient(160deg, rgba(255,215,0,0.10), transparent 45%, rgba(59,84,230,0.18));
}
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-en);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.5);
}
.hero__scroll span {
  width: 1px; height: 46px;
  background: linear-gradient(rgba(255,255,255,0.5), transparent);
  position: relative;
  overflow: hidden;
}
.hero__scroll span::after {
  content: "";
  position: absolute;
  top: -50%; left: 0;
  width: 100%; height: 50%;
  background: var(--gold);
  animation: scrollDot 2s var(--ease) infinite;
}
@keyframes scrollDot { 0% { top: -50%; } 100% { top: 100%; } }

@media (max-width: 880px) {
  .hero__inner { grid-template-columns: 1fr; gap: 10px; }
  .hero__art { max-width: 360px; margin: 10px auto 0; order: 2; }
  .hero__scroll { display: none; }
}

/* ---------- Strength ---------- */
.strength__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.strength__card { position: relative; padding: 40px 30px; overflow: hidden; }
.strength__num {
  position: absolute;
  top: 18px; right: 22px;
  font-family: var(--font-en);
  font-size: 2.6rem;
  font-weight: 300;
  color: var(--bg-tint);
  line-height: 1;
}
.strength__ico {
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--bg-soft);
  margin-bottom: 22px;
}
.strength__ico svg { width: 36px; height: 36px; }
.strength__title { font-size: 1.18rem; margin-bottom: 12px; }
.strength__card p { font-size: 0.9rem; color: var(--muted); }
.strength__card::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  transition: width 0.5s var(--ease);
}
.strength__card:hover::after { width: 100%; }

@media (max-width: 860px) { .strength__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .strength__grid { grid-template-columns: 1fr; } }

/* ---------- Services ---------- */
.svc__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.svc__card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 44px 34px;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
  position: relative;
}
.svc__card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.svc__icon {
  width: 88px; height: 88px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--bg-tint), #fff);
  border: 1px solid var(--line);
  border-radius: 50%;
  margin-bottom: 26px;
}
.svc__icon svg { width: 50px; height: 50px; }
.svc__card h3 { font-size: 1.35rem; margin-bottom: 14px; }
.svc__card p { font-size: 0.92rem; color: var(--muted); margin-bottom: 22px; }
.svc__more {
  font-family: var(--font-jp);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.svc__more .arr { transition: transform 0.3s var(--ease); }
.svc__more:hover .arr { transform: translateX(5px); }
@media (max-width: 860px) { .svc__grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; } }

/* ---------- About preview ---------- */
.about-pre__inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.about-pre__media { position: relative; }
.about-pre__media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.about-pre__media::before {
  content: "";
  position: absolute;
  left: -18px; top: -18px;
  width: 120px; height: 120px;
  border-top: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
  border-radius: 4px 0 0 0;
}
.about-pre__badge {
  position: absolute;
  right: -14px; bottom: 26px;
  background: linear-gradient(135deg, var(--blue), var(--navy-700));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-md);
}
.about-pre__badge .num { font-family: var(--font-en); font-size: 2.4rem; font-weight: 500; color: var(--gold); line-height: 1; }
.about-pre__badge .txt { font-size: 0.82rem; line-height: 1.4; }
.about-pre__body .sec-title { margin-top: 16px; }
.about-pre__body p { margin-top: 20px; color: var(--text); }
.about-pre__sign { margin-top: 26px !important; font-size: 0.95rem; }
.about-pre__sign strong { font-size: 1.25rem; font-family: var(--font-jp); color: var(--ink); letter-spacing: 0.08em; }
.about-pre__body .btn { margin-top: 30px; }
@media (max-width: 820px) {
  .about-pre__inner { grid-template-columns: 1fr; }
  .about-pre__media { max-width: 420px; }
  .about-pre__badge { right: 16px; }
}

/* ---------- Flow preview ---------- */
.flow-pre__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 50px;
  counter-reset: none;
}
.flow-pre__list li {
  position: relative;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
}
.flow-pre__list li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -14px; top: 50%;
  width: 20px; height: 20px;
  border-top: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
  transform: translateY(-50%) rotate(45deg);
  opacity: 0.7;
}
.flow-pre__list .step {
  font-family: var(--font-en);
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  color: var(--gold);
}
.flow-pre__list h3 { color: #fff; font-size: 1.1rem; margin: 12px 0 8px; }
.flow-pre__list p { font-size: 0.85rem; color: #9fa9cb; }
@media (max-width: 820px) {
  .flow-pre__list { grid-template-columns: repeat(2, 1fr); }
  .flow-pre__list li:nth-child(2)::after { display: none; }
}
@media (max-width: 460px) { .flow-pre__list { grid-template-columns: 1fr; } .flow-pre__list li::after { display: none; } }

/* ---------- Works preview ---------- */
.works-pre__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.works-pre__card { overflow: hidden; }
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.ba__item { position: relative; }
.ba__item span {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 2;
  font-family: var(--font-en);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  padding: 4px 10px;
  border-radius: 2px;
  color: #fff;
}
.ba--before span { background: rgba(17,24,43,0.78); }
.ba--after span { background: var(--blue); }
.ba__ph { aspect-ratio: 4 / 3; background-size: cover; background-position: center; }
.ba__ph--old {
  background:
    repeating-linear-gradient(135deg, #b9bdc7 0 8px, #a7abb6 8px 16px),
    #adb1bb;
  position: relative;
}
.ba__ph--old::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(80,70,60,0.25), rgba(40,40,50,0.4));
}
.ba__ph--roof { background: linear-gradient(135deg, #0e2058, #0000cd 70%, #3b54e6); }
.ba__ph--wall { background: linear-gradient(135deg, #1b2a52, #2a4bd7); }
.ba__ph--gutter { background: linear-gradient(135deg, #102a66, #1b32d8); }
.works-pre__body { padding: 22px 24px 26px; }
.works-pre__body .tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--blue);
  background: var(--bg-tint);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.works-pre__body h3 { font-size: 1.15rem; margin-bottom: 6px; }
.works-pre__body p { font-size: 0.85rem; color: var(--muted); }
@media (max-width: 860px) { .works-pre__grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }

/* ---------- FAQ ---------- */
.faq__inner { max-width: 860px; }
.faq__item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease);
}
.faq__item.is-open { box-shadow: var(--shadow-sm); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  padding: 22px 24px;
  font-family: var(--font-jp);
  font-weight: 500;
  font-size: 1rem;
  color: var(--ink);
  position: relative;
}
.faq__q .q-mark {
  font-family: var(--font-en);
  font-weight: 600;
  color: var(--blue);
  font-size: 1.1rem;
}
.faq__icon { margin-left: auto; position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.faq__icon::before, .faq__icon::after {
  content: "";
  position: absolute;
  background: var(--blue);
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.faq__icon::before { top: 8px; left: 0; width: 18px; height: 2px; }
.faq__icon::after { top: 0; left: 8px; width: 2px; height: 18px; }
.faq__item.is-open .faq__icon::after { transform: rotate(90deg); opacity: 0; }
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}
.faq__a p { padding: 0 24px 24px 56px; color: var(--muted); font-size: 0.92rem; }

/* ---------- News / Instagram preview ---------- */
.news-pre__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  background: linear-gradient(135deg, #fff, var(--bg-soft));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 48px);
  box-shadow: var(--shadow-sm);
}
.news-pre__ig { display: flex; align-items: center; gap: 20px; }
.news-pre__ig svg {
  width: 56px; height: 56px;
  color: #fff;
  background: linear-gradient(45deg, #f09433, #dc2743, #bc1888);
  padding: 12px;
  border-radius: 16px;
  flex-shrink: 0;
}
.ig__name { font-family: var(--font-en); font-weight: 600; font-size: 1.25rem; color: var(--ink); letter-spacing: 0.02em; }
.ig__sub { font-size: 0.86rem; color: var(--muted); }
.news-pre__actions { display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 600px) { .news-pre__cta { flex-direction: column; align-items: flex-start; } .news-pre__actions .btn { width: 100%; } }
