/*
 * Style sheet for the construction company website (Premium Edition).
 */

/* CSS reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-bg: #0a0a0b;
  --secondary-bg: #141417;
  --card-bg: #1c1c21;
  --text-colour: #ffffff;
  --muted-text: #94a3b8;
  --accent-colour: #d4af37; /* Premium Gold */
  --accent-hover: #f1c40f;
  --link-colour: #e2e8f0;
  --danger-colour: #ef4444;
  --border-radius: 12px;
  --transition-speed: 0.4s;
  --max-width: 1200px;
  --section-padding: 8rem;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.6;
  background-color: var(--primary-bg);
  color: var(--text-colour);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-speed);
}

/* Navigation bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  display: flex;
  align-items: center;
  padding: 0 4rem;
  background-color: transparent;
  z-index: 1000;
  transition: all var(--transition-speed);
}

.navbar.scrolled {
  background-color: rgba(10, 10, 11, 0.95);
  height: 70px;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  padding: 0 4rem;
}

.logo {
  flex: 1; /* ロゴ側の幅を広げてメニューを押し出す */
}

.logo a {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(1.2rem, 4vw, 1.8rem); /* 画面幅に合わせてサイズを自動調整 */
  letter-spacing: 0.05em;
  white-space: nowrap; /* 折り返しを防ぐ */
}

.logo span {
  color: var(--accent-colour);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  align-items: center;
  flex: 2; /* 中央部分の幅を確保 */
  justify-content: center; /* メニューを中央に寄せる */
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #cbd5e1;
}

.nav-links a:hover {
  color: var(--accent-colour);
}

.nav-cta {
  background-color: var(--accent-colour);
  color: #000 !important;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
}

.nav-cta:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 2px;
  background-color: #fff;
  transition: 0.3s;
}

/* Hero section */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(30%);
}

.hero-overlay {
  position: relative;
  z-index: 10;
  max-width: 900px;
  padding: 0 2rem;
}

.hero-overlay h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  line-height: 1.1;
  font-weight: 900;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

.hero-overlay p {
  font-size: clamp(1rem, 3vw, 1.25rem);
  color: #cbd5e1;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-inline: auto;
}

.hero-btns {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 1.2rem 2.5rem;
  background-color: var(--accent-colour);
  color: #000;
  border-radius: 50px;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.1em;
  transition: all 0.3s;
}

.btn-outline {
  background-color: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn:hover {
  background-color: var(--accent-hover);
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(212, 175, 55, 0.3);
}

.btn-outline:hover {
  border-color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--muted-text);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
}

.scroll-indicator::after {
  content: '';
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--accent-colour), transparent);
}

/* Sections */
.news-detail {
  padding: 4rem 1.5rem;
  max-width: 800px; /* 記事を読みやすくするため少し狭める */
  margin: 0 auto;
}

.news-detail h2 {
  text-align: center; /* タイトルを中央に */
  font-size: 2rem;
  margin-bottom: 1rem;
}

.news-detail .news-date {
  text-align: center; /* 日付を中央に */
  display: block;
  color: var(--muted-text);
  margin-bottom: 3rem;
}

.section {
  padding: var(--section-padding) 4rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 5rem;
}

.page-header {
  padding-top: 150px;
  text-align: center;
  margin-bottom: 3rem;
  background-color: var(--secondary-bg);
}

.section-title span {
  display: block;
  font-family: 'Outfit', sans-serif;
  color: var(--accent-colour);
  font-weight: 700;
  letter-spacing: 0.3em;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.section-title h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
}

/* Strengths */
.strengths .cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.card {
  background-color: var(--card-bg);
  padding: 3.5rem 2.5rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s ease;
}

.card:hover {
  transform: translateY(-15px);
  border-color: var(--accent-colour);
  background-color: #25252d;
}

.card-icon {
  font-size: 2.5rem;
  color: var(--accent-colour);
  margin-bottom: 2rem;
}

.card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.card p {
  color: var(--muted-text);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* News */
.news-list {
  list-style: none;
}

.news-list li {
  display: flex;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  gap: 3rem;
}

.news-date {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  color: var(--muted-text);
  min-width: 100px;
}

.news-content {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start; /* baselineから変更して垂直方向の安定性を向上 */
}

.news-tag {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 10px;
  background-color: var(--secondary-bg);
  color: var(--accent-colour);
  border-radius: 4px;
  flex-shrink: 0; /* タイトルが長くてもタグが潰れないように固定 */
}

.news-content a {
  font-weight: 500;
  display: inline-block; /* ブロック化して挙動を安定させる */
  line-height: 1.5;
  transition: transform var(--transition-speed), color var(--transition-speed);
}

.news-content a:hover {
  color: var(--accent-colour);
  transform: translateX(5px); /* paddingの代わりにtransformを使用してレイアウトへの影響を排除 */
}

/* Works */
.works .gallery-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.work-item {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.8s;
}

.work-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: 0.4s;
}

.work-item:hover img {
  transform: scale(1.15);
}

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

.work-overlay h4 {
  font-size: 1.2rem;
  font-weight: 700;
}

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

.more a {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  color: var(--accent-colour);
}

/* Greeting */
.greeting-container {
  display: flex;
  flex-direction: column; /* 縦並びに変更 */
  align-items: center;
  gap: 4rem;
  max-width: 800px; /* 文章を読みやすくするため幅を制限 */
  margin: 0 auto;
  background-color: var(--secondary-bg);
  padding: 5rem;
  border-radius: var(--border-radius);
}

.greeting-content {
  text-align: center; /* 文章を中央揃えにする */
}

.greeting-lead {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-colour);
  margin-bottom: 2.5rem;
  display: block;
}

.greeting-content p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #cbd5e1;
  line-height: 1.8;
}

.greeting-signature {
  margin-top: 4rem;
  font-family: 'Outfit', sans-serif;
}

.greeting-signature p {
  font-size: 1.2rem;
  color: var(--muted-text);
}

.greeting-signature span {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  margin-top: 0.5rem;
}

/* Company Table */
.company-table {
  width: 100%;
  border-collapse: collapse;
}

.company-table th, .company-table td {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-align: left;
}

.company-table th {
  width: 30%;
  color: var(--accent-colour);
  font-weight: 700;
}

/* Footer */
.footer {
  background-color: #050506;
  padding: 6rem 4rem 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top {
  display: flex;
  flex-direction: column; /* 縦に並べて中央揃えにする */
  align-items: center;
  gap: 2rem;
  margin-bottom: 4rem;
}

.footer-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
}

.footer-logo span {
  color: var(--accent-colour);
}

.footer-tel {
  font-size: 2rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: var(--accent-colour);
}

.footer-bottom {
  display: flex;
  flex-direction: column; /* コピーライトとリンクを縦に並べる */
  align-items: center;
  gap: 1.5rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--muted-text);
  font-size: 0.9rem;
  text-align: center;
}

.footer-nav {
  list-style: none;
  display: flex;
  justify-content: center; /* リンクを中央に寄せる */
  gap: 2rem;
}

/* Animations */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s cubic-bezier(0.2, 1, 0.3, 1);
}

[data-reveal].active {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile */
@media (max-width: 1024px) {
  .strengths .cards, .works .gallery-preview {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .navbar { padding: 0 2rem; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .section { padding: 4rem 2rem; }
  .strengths .cards, .works .gallery-preview {
    grid-template-columns: 1fr;
  }
  .news-list li {
    flex-direction: column;
    gap: 0.5rem;
  }
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }
}