/* ===== QUINT Corporate Website - style.css ===== */

:root {
  --bg-dark:    #07090f;
  --bg-section: #0d1120;
  --bg-card:    #111827;
  --accent:     #c8a96e;
  --accent-dim: #a08050;
  --green:      #2d6a4f;
  --green-light:#52b788;
  --text-main:  #e8e8e8;
  --text-muted: #888ea8;
  --border:     #1e2535;
  --white:      #ffffff;
  --nav-h:      72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  background: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.7;
  font-size: 16px;
}

/* ===== NAV ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(7, 9, 15, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  z-index: 1000;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-logo img { height: 36px; width: auto; flex-shrink: 0; }
.nav-logo span {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .06em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: .9rem;
  letter-spacing: .05em;
  transition: color .2s;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--accent); }

/* ===== DROPDOWN ===== */
.nav-has-dropdown { position: relative; }
.nav-has-dropdown > a { cursor: pointer; }
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 230px;
  list-style: none;
  z-index: 1001;
  background: rgba(7,9,15,.97);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 0;
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 32px rgba(0,0,0,.5);
  margin-top: 8px;
}
.nav-has-dropdown:hover .nav-dropdown { display: block; }
/* ホバー維持用の不可視ブリッジ */
.nav-dropdown::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  height: 8px;
}
.nav-dropdown li { list-style: none; }
.nav-dropdown li a {
  display: block;
  padding: 11px 20px;
  font-size: .85rem;
  color: var(--text-muted);
  white-space: nowrap;
  letter-spacing: .03em;
}
.nav-dropdown li a:hover {
  color: var(--accent);
  background: rgba(200,169,110,.06);
}

.nav-cta {
  background: var(--accent);
  color: var(--bg-dark) !important;
  padding: 8px 20px;
  border-radius: 4px;
  font-weight: 700;
}
.nav-cta:hover { background: #e0c080 !important; color: var(--bg-dark) !important; }

/* ===== PAGE WRAPPER ===== */
.page { padding-top: var(--nav-h); min-height: 100vh; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--bg-dark);
}
.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(7,9,15,0.3) 0%, rgba(7,9,15,0.85) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 24px;
}
.hero-logo { width: 480px; max-width: 90%; margin-bottom: 28px; }
.hero-tag {
  font-size: .85rem;
  letter-spacing: .3em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--white);
  margin-bottom: 28px;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.35rem);
  color: var(--text-muted);
  letter-spacing: .12em;
  margin-bottom: 0;
}
.hero-btn {
  display: inline-block;
  padding: 14px 36px;
  background: var(--accent);
  color: var(--bg-dark);
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  font-size: .95rem;
  letter-spacing: .05em;
  transition: background .2s, transform .15s;
}
.hero-btn:hover { background: #e0c080; transform: translateY(-2px); }

/* ===== SECTION ===== */
section { padding: 96px 48px; }
section.alt { background: var(--bg-section); }

.section-inner { max-width: 1080px; margin: 0 auto; }

.section-tag {
  font-size: .75rem;
  letter-spacing: .35em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--white);
}
.section-lead {
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 56px;
}

/* ===== CARD GRID ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--accent-dim); transform: translateY(-4px); }
.card-icon {
  width: 48px; height: 48px;
  border-radius: 8px;
  background: rgba(200,169,110,.12);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
}
.card h3 { font-size: 1.1rem; margin-bottom: 10px; color: var(--white); }
.card p { font-size: .9rem; color: var(--text-muted); }
.card-img-wrap {
  width: 100%;
  height: 180px;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}
.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== NEWS LIST ===== */
.news-list { list-style: none; }
.news-item {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.news-item:first-child { border-top: 1px solid var(--border); }
.news-date { color: var(--text-muted); font-size: .85rem; white-space: nowrap; min-width: 100px; }
.news-cat {
  font-size: .7rem;
  letter-spacing: .1em;
  padding: 2px 8px;
  border-radius: 2px;
  background: rgba(200,169,110,.15);
  color: var(--accent);
  white-space: nowrap;
}
.news-title { color: var(--text-main); font-size: .95rem; text-decoration: none; }
.news-title:hover { color: var(--accent); }

.news-empty {
  color: var(--text-muted);
  text-align: center;
  padding: 48px 0;
  font-size: .95rem;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, #0d1120 0%, #1a2535 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 64px 48px;
  text-align: center;
  margin-top: 32px;
}
.cta-banner h2 { font-size: 1.8rem; margin-bottom: 12px; }
.cta-banner p { color: var(--text-muted); margin-bottom: 32px; }
.btn {
  display: inline-block;
  padding: 13px 32px;
  font-weight: 700;
  border-radius: 4px;
  text-decoration: none;
  font-size: .95rem;
  transition: background .2s, transform .15s;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg-dark);
}
.btn-primary:hover { background: #e0c080; transform: translateY(-2px); }
.btn-outline {
  border: 1px solid var(--accent);
  color: var(--accent);
  margin-left: 16px;
}
.btn-outline:hover { background: rgba(200,169,110,.1); transform: translateY(-2px); }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: var(--bg-section);
  border-bottom: 1px solid var(--border);
  padding: 72px 48px 56px;
  text-align: center;
}
.page-hero .section-tag { display: block; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); }

/* ===== COMPANY TABLE ===== */
.company-table { width: 100%; border-collapse: collapse; }
.company-table th, .company-table td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: .95rem;
}
.company-table th {
  color: var(--accent);
  font-weight: 600;
  width: 180px;
  white-space: nowrap;
}
.company-table td { color: var(--text-main); }

/* ===== PHILOSOPHY ===== */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}
.phi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 24px;
  text-align: center;
}
.phi-letter {
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: .05em;
  display: block;
  margin-bottom: 4px;
}
.phi-en { font-size: .8rem; color: var(--text-muted); margin-bottom: 8px; }
.phi-ja { font-size: 1.1rem; font-weight: 600; color: var(--white); }

.tagline-block {
  text-align: center;
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--accent-dim);
  border-radius: 8px;
  margin-bottom: 64px;
}
.tagline-block p {
  font-size: 1.3rem;
  color: var(--white);
  letter-spacing: .08em;
  font-weight: 500;
}

/* ===== BUSINESS ===== */
.business-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 80px;
}
.business-block.reverse { direction: rtl; }
.business-block.reverse > * { direction: ltr; }
.business-img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  max-height: 340px;
  border: 1px solid var(--border);
}
.business-text h2 { font-size: 1.6rem; margin-bottom: 12px; color: var(--white); }
.business-text .num {
  font-size: .8rem;
  color: var(--accent);
  letter-spacing: .3em;
  margin-bottom: 8px;
}
.business-text p { color: var(--text-muted); margin-bottom: 16px; }
.business-text ul {
  list-style: none;
  padding: 0;
}
.business-text ul li {
  color: var(--text-muted);
  font-size: .9rem;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 10px;
}
.business-text ul li::before {
  content: '—';
  color: var(--accent);
}

/* ===== CONTACT FORM ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: start;
}
.contact-info h3 { font-size: 1.1rem; margin-bottom: 12px; }
.contact-info p { color: var(--text-muted); font-size: .9rem; margin-bottom: 24px; }
.contact-info a { color: var(--accent); text-decoration: none; }
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 40px;
}
.form-group { margin-bottom: 24px; }
.form-group label {
  display: block;
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: .05em;
}
.form-group label span { color: var(--accent); margin-left: 4px; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px 16px;
  color: var(--text-main);
  font-size: .95rem;
  font-family: inherit;
  transition: border-color .2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 120px; }

.form-submit {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: var(--bg-dark);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background .2s, transform .15s;
  font-family: inherit;
  letter-spacing: .05em;
}
.form-submit:hover { background: #e0c080; transform: translateY(-2px); }

/* ===== RECRUIT ===== */
.recruit-msg {
  text-align: center;
  padding: 96px 24px;
  color: var(--text-muted);
}
.recruit-msg h2 { font-size: 1.6rem; color: var(--white); margin-bottom: 16px; }

/* ===== FOOTER ===== */
footer {
  background: #05070d;
  border-top: 1px solid var(--border);
  padding: 56px 48px 32px;
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 32px;
}
.footer-brand img { height: 48px; margin-bottom: 12px; }
.footer-brand p { font-size: .85rem; color: var(--text-muted); max-width: 280px; }
.footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col h4 {
  font-size: .8rem;
  letter-spacing: .2em;
  color: var(--accent);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: .9rem;
  transition: color .2s;
}
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: .8rem;
}

/* ===== CARD IMAGE ===== */
.card-img-wrap {
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 16px;
}
.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.card:hover .card-img { transform: scale(1.04); }

/* ===== PHOTO STRIP ===== */
.photo-strip-section { }
.photo-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.photo-item {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
  border: 1px solid var(--border);
}
.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.photo-item:hover img { transform: scale(1.05); }

/* ===== PHOTO GRID (2x2) ===== */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.photo-grid-item {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
  border: 1px solid var(--border);
}
.photo-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.photo-grid-item:hover img { transform: scale(1.05); }

/* ===== BUSINESS OVERVIEW CARDS ===== */
.biz-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.biz-card {
  display: block;
  text-decoration: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.biz-card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,.4);
}
.biz-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.biz-card-body { padding: 24px 24px 28px; }
.biz-card-num {
  font-size: .7rem;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: .2em;
  margin-bottom: 8px;
}
.biz-card-body h2 { font-size: 1.15rem; color: var(--white); margin-bottom: 10px; font-weight: 700; }
.biz-card-body p { font-size: .88rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 18px; }
.biz-more { font-size: .82rem; color: var(--accent); font-weight: 700; letter-spacing: .05em; }

/* ===== IMAGE PLACEHOLDER ===== */
.img-placeholder {
  background: var(--bg-card);
  border: 2px dashed var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  color: var(--text-muted);
  font-size: .85rem;
  letter-spacing: .05em;
}

/* ===== HAMBURGER ===== */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1002;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  nav { padding: 0 20px; }
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(7,9,15,.98);
    border-bottom: 1px solid var(--border);
    padding: 8px 0 16px;
    flex-direction: column;
    gap: 0;
    z-index: 999;
    backdrop-filter: blur(12px);
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links > li { width: 100%; }
  .nav-links > li > a { padding: 13px 24px; display: block; font-size: .95rem; }
  .nav-has-dropdown .nav-dropdown {
    position: static;
    display: block;
    transform: none;
    border: none;
    border-top: 1px solid var(--border);
    border-radius: 0;
    background: rgba(255,255,255,.03);
    box-shadow: none;
    margin-top: 0;
    padding: 4px 0;
    min-width: unset;
  }
  .nav-has-dropdown .nav-dropdown::before { display: none; }
  .nav-dropdown li a { padding: 10px 24px 10px 40px; font-size: .88rem; }
  .nav-cta { margin: 8px 24px 4px; display: block; text-align: center; border-radius: 4px; }
  section { padding: 64px 20px; }
  .page-hero { padding: 56px 20px 40px; }
  .business-block { grid-template-columns: 1fr; gap: 24px; }
  .business-block.reverse { direction: ltr; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-form { padding: 24px 20px; }
  .cta-banner { padding: 40px 20px; }
  .btn-outline { margin-left: 0; margin-top: 12px; display: block; }
  footer { padding: 40px 20px 24px; }
  .footer-top { flex-direction: column; }
  .footer-brand img { height: 36px; }
  .photo-strip { grid-template-columns: repeat(2, 1fr); }
  .company-table th { width: 100px; font-size: .85rem; }
  .company-table td { font-size: .85rem; }

  /* スマホでは記事見出しの手動改行を解除し自然な折返しに */
  .article-title br,
  .section-title br { display: none; }

  /* ヒーローは意味改行を維持し、1行が収まるサイズに縮小 */
  .hero-title { font-size: clamp(1.85rem, 8.5vw, 2.4rem); }

  /* ニュース一覧：1行詰め込みをやめ、タイトルを全幅で折返す */
  .news-item { flex-wrap: wrap; gap: 6px 14px; }
  .news-date { min-width: unset; }
  .news-title { width: 100%; line-height: 1.6; }

  .hero-logo { width: 320px; }
  .tagline-block { padding: 28px 20px; }
  .tagline-block p { font-size: 1.05rem; }
}

/* ===== FAQ ===== */
.faq-cat {
  margin: 56px 0 18px;
  font-size: 1.35rem;
  color: var(--white);
  letter-spacing: .05em;
  font-weight: 700;
  padding: 6px 0 6px 16px;
  border-left: 4px solid var(--accent);
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}
.faq-cat:first-of-type { margin-top: 8px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-item { transition: border-color .2s; }
.faq-item:hover { border-color: var(--accent-dim); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  font-weight: 500;
  color: var(--text-main);
  font-size: .92rem;
  transition: background .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: rgba(200,169,110,.06); }
.faq-item summary::before {
  content: 'Q';
  color: var(--accent);
  font-weight: 900;
  flex-shrink: 0;
}
.faq-item summary::after {
  content: '＋';
  margin-left: auto;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-size: .95rem;
  font-weight: 400;
  transition: background .2s, transform .25s;
}
.faq-item summary:hover::after { background: rgba(200,169,110,.15); }
.faq-item[open] summary::after {
  content: '－';
  background: var(--accent);
  color: var(--bg-dark);
}
.faq-item[open] summary {
  color: var(--white);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.faq-a {
  padding: 14px 20px 20px 44px;
  color: var(--text-muted);
  font-size: .92rem;
  line-height: 1.9;
}
.faq-a strong { color: var(--accent); }
.faq-a .faq-quote {
  display: block;
  margin-top: 10px;
  padding: 12px 16px;
  background: rgba(200,169,110,.06);
  border-left: 2px solid var(--accent-dim);
  border-radius: 0 6px 6px 0;
  font-size: .86rem;
}
@media (max-width: 900px) {
  .faq-a { padding-left: 20px; }
}

/* ===== 可読性・折返しの基盤 ===== */
h1, h2, h3, h4 { text-wrap: balance; word-break: auto-phrase; }
p, li, dt, dd, th, td, figcaption { overflow-wrap: break-word; }
img { max-width: 100%; }
