/* ============================================
   株式会社麒麟 - メインスタイルシート
   テーマ: ブラック × ゴールド
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;700&display=swap');

:root {
  --color-primary: #1a1a1a;
  --color-gold: #c9a84c;
  --color-gold-light: #e8d5a3;
  --color-gold-dark: #a07830;
  --color-bg: #0d0d0d;
  --color-bg-section: #111111;
  --color-bg-card: #1e1e1e;
  --color-text: #f0f0f0;
  --color-text-muted: #999999;
  --color-border: #2a2a2a;
  --font-ja: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  --font-ja-serif: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --font-en: 'Oswald', 'Arial Narrow', sans-serif;
  --transition: 0.3s ease;
  --shadow: 0 4px 20px rgba(0,0,0,0.5);
  --shadow-gold: 0 0 20px rgba(201,168,76,0.3);
}

/* ============================================
   リセット・ベース
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-ja);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a {
  color: var(--color-gold);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-gold-light);
}

ul, ol {
  list-style: none;
}

/* ============================================
   タイポグラフィ
   ============================================ */
.section-title {
  font-family: var(--font-en);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-gold);
  text-transform: uppercase;
  line-height: 1;
}

.section-title-ja {
  font-family: var(--font-ja-serif);
  font-size: clamp(0.85rem, 2vw, 1rem);
  color: var(--color-text-muted);
  letter-spacing: 0.2em;
  margin-top: 0.4em;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  margin: 1.5rem auto 0;
}

/* ============================================
   レイアウト
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 6rem 0;
}

section:nth-child(even) {
  background-color: var(--color-bg-section);
}

/* ============================================
   ヘッダー・ナビゲーション
   ============================================ */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(13,13,13,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  padding: 0 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

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

.header-logo-text {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.header-logo-text strong {
  display: block;
  font-size: 1rem;
  color: var(--color-text);
  letter-spacing: 0.05em;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-menu a {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-en);
  transition: color var(--transition);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
}

.nav-menu a:hover {
  color: var(--color-gold);
  border-bottom-color: var(--color-gold);
}

.nav-contact-btn {
  background: var(--color-gold) !important;
  color: var(--color-bg) !important;
  padding: 0.5rem 1.2rem !important;
  border-bottom: none !important;
  font-weight: 700;
  transition: background var(--transition) !important;
}

.nav-contact-btn:hover {
  background: var(--color-gold-light) !important;
  color: var(--color-bg) !important;
}

/* ハンバーガーメニュー */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: var(--transition);
}

.hamburger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}
.hamburger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   ヒーローセクション
   ============================================ */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  background-image: url('../images/about-photo.jpg');
  background-size: cover;
  background-position: center 40%;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 4, 0.55);
  backdrop-filter: blur(3px) saturate(0.75);
  -webkit-backdrop-filter: blur(3px) saturate(0.75);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 60%, rgba(201,168,76,0.10) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 40%, rgba(201,168,76,0.06) 0%, transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1.5rem;
}

.hero-label {
  font-family: var(--font-en);
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  color: var(--color-gold);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.3s forwards;
}

.hero-title {
  font-family: var(--font-ja-serif);
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.5s forwards;
}

.hero-title span {
  color: var(--color-gold);
  display: block;
}

.hero-subtitle {
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  color: var(--color-text-muted);
  letter-spacing: 0.15em;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.7s forwards;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s 0.9s forwards;
}

.btn-primary {
  display: inline-block;
  background: var(--color-gold);
  color: var(--color-bg);
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.9rem 2.5rem;
  border: 2px solid var(--color-gold);
  transition: all var(--transition);
}

.btn-primary:hover {
  background: transparent;
  color: var(--color-gold);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--color-gold);
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.9rem 2.5rem;
  border: 2px solid var(--color-gold);
  transition: all var(--transition);
}

.btn-secondary:hover {
  background: var(--color-gold);
  color: var(--color-bg);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeIn 1s 1.5s forwards;
}

.hero-scroll span {
  font-family: var(--font-en);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-gold), transparent);
  animation: scrollDown 1.5s ease-in-out infinite;
}

/* ============================================
   実績数値カウントアップ
   ============================================ */
#stats {
  background: linear-gradient(135deg, #111111, #0d0d0d);
  padding: 5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2px;
  background: var(--color-border);
}

.stat-item {
  background: var(--color-bg-card);
  padding: 3rem 2rem;
  text-align: center;
  transition: background var(--transition);
}

.stat-item:hover {
  background: #252525;
}

.stat-number {
  font-family: var(--font-en);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-unit {
  font-family: var(--font-en);
  font-size: 1.2rem;
  color: var(--color-gold);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
  margin-top: 0.5rem;
}

/* ============================================
   事業概要
   ============================================ */
#about {
  background-color: var(--color-bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--color-text);
  line-height: 1.4;
  margin-bottom: 1.5rem;
}

.about-text h3 em {
  color: var(--color-gold);
  font-style: normal;
}

.about-text p {
  color: var(--color-text-muted);
  line-height: 1.9;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.about-features {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--color-text);
}

.about-feature::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--color-gold);
  flex-shrink: 0;
}

.about-image {
  position: relative;
}

.about-image-main {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  filter: grayscale(20%);
}

.about-image-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--color-gold);
  color: var(--color-bg);
  padding: 1.5rem;
  text-align: center;
}

.about-image-badge .year {
  font-family: var(--font-en);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.about-image-badge .year-label {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  margin-top: 0.25rem;
}

/* ============================================
   業務内容
   ============================================ */
#service {
  background-color: var(--color-bg-section);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  background: var(--color-border);
}

.service-card {
  background: var(--color-bg-card);
  overflow: hidden;
  transition: transform var(--transition);
  position: relative;
}

.service-card:hover {
  transform: translateY(-4px);
  z-index: 1;
  box-shadow: var(--shadow);
}

.service-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  filter: grayscale(30%);
  transition: filter var(--transition), transform var(--transition);
}

.service-card:hover .service-card-img {
  filter: grayscale(0%);
  transform: scale(1.03);
}

.service-card-body {
  padding: 1.5rem;
}

.service-card-en {
  font-family: var(--font-en);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--color-gold);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.service-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.service-card-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* ============================================
   施工実績（ギャラリー）
   ============================================ */
#works {
  background-color: var(--color-bg);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.work-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: pointer;
}

.work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(30%);
  transition: filter var(--transition), transform var(--transition);
}

.work-item:hover img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.work-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.work-item:hover .work-item-overlay {
  opacity: 1;
}

.work-item-title {
  font-size: 0.8rem;
  color: var(--color-text);
  letter-spacing: 0.05em;
}

.works-more {
  text-align: center;
  margin-top: 3rem;
}

/* ============================================
   お知らせ
   ============================================ */
#news {
  background-color: var(--color-bg-section);
}

.news-list {
  max-width: 800px;
  margin: 0 auto;
}

.news-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition);
}

.news-item:hover {
  padding-left: 0.5rem;
}

.news-date {
  font-family: var(--font-en);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  padding-top: 0.2rem;
  min-width: 90px;
}

.news-cat {
  font-size: 0.7rem;
  background: rgba(201,168,76,0.15);
  color: var(--color-gold);
  border: 1px solid rgba(201,168,76,0.3);
  padding: 0.2rem 0.6rem;
  white-space: nowrap;
  align-self: flex-start;
  min-width: 60px;
  text-align: center;
}

.news-title {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.6;
}

.news-title a {
  color: var(--color-text);
  transition: color var(--transition);
}

.news-title a:hover {
  color: var(--color-gold);
}

.news-item--has-image,
.news-item--has-images {
  flex-direction: column;
  align-items: stretch;
}

.news-item-top {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.news-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.news-thumbs .news-thumb {
  flex: 1;
  min-width: 0;
  height: 130px;
  object-fit: cover;
  border-radius: 2px;
  cursor: zoom-in;
  transition: opacity var(--transition);
}

.news-thumbs .news-thumb:hover {
  opacity: 0.85;
}

/* ライトボックス */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  animation: lb-in 0.15s ease;
}

@keyframes lb-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 2px;
  pointer-events: none;
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-close:hover { background: rgba(255, 255, 255, 0.2); }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  line-height: 1;
}

.lightbox-nav:hover { background: rgba(255, 255, 255, 0.2); }
.lightbox-prev { left: 1.25rem; }
.lightbox-next { right: 1.25rem; }

.lightbox-counter {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
  font-family: var(--font-en);
  letter-spacing: 0.1em;
}

.news-more {
  text-align: center;
  margin-top: 2.5rem;
}

/* ============================================
   お問い合わせCTA
   ============================================ */
#cta {
  background: linear-gradient(135deg, #1a1500, #0d0d0d);
  border-top: 1px solid rgba(201,168,76,0.2);
  border-bottom: 1px solid rgba(201,168,76,0.2);
  padding: 5rem 0;
  text-align: center;
}

.cta-inner h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--color-text);
  margin-bottom: 1rem;
}

.cta-inner h2 span {
  color: var(--color-gold);
}

.cta-inner p {
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
}

.cta-tel {
  margin-bottom: 2rem;
}

.cta-tel a {
  font-family: var(--font-en);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--color-gold);
  letter-spacing: 0.05em;
}

.cta-tel-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
  letter-spacing: 0.1em;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   フッター
   ============================================ */
#footer {
  background: #080808;
  border-top: 1px solid var(--color-border);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo img {
  height: 36px;
  margin-bottom: 1rem;
  filter: brightness(0.9);
}

.footer-company-name {
  font-size: 0.85rem;
  color: var(--color-text);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.footer-address {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

.footer-nav-title {
  font-family: var(--font-en);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--color-gold);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-nav-list a {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.footer-nav-list a:hover {
  color: var(--color-gold);
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.footer-license {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-align: right;
}

/* ============================================
   アニメーション
   ============================================ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scrollDown {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.1% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   モバイルナビ
   ============================================ */
.mobile-nav {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: rgba(13,13,13,0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  z-index: 999;
  padding: 1.5rem;
  flex-direction: column;
  gap: 0;
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav a {
  display: block;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav a:hover {
  color: var(--color-gold);
}

/* ============================================
   レスポンシブ
   ============================================ */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-image-badge {
    right: 1rem;
    bottom: 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  section {
    padding: 4rem 0;
  }

  .nav-menu {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-license {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .works-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .news-item {
    flex-wrap: wrap;
  }
}
