/* ===== リセット ===== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #0a0a0a;
  color: #f4f4f4;
  font-family: 'Noto Serif JP', serif;
  line-height: 1.8;
}

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

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

/* ===== ヘッダー ===== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 78px;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  z-index: 1000;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  letter-spacing: 4px;
  color: #fff;
}

.logo span {
  color: #3a6cff;
}

/* ===== ナビ ===== */
nav {
  display: flex;
  gap: 22px;
}

nav a {
  position: relative;
  font-size: 14px;
  color: #fff;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 1px;
  background: #3a6cff;
  transition: 0.3s;
}

nav a:hover::after {
  width: 100%;
}

nav a.active {
  color: #3a6cff;
}

nav a.active::after {
  width: 100%;
}

/* ===== 全体補正 ===== */
main {
  padding-top: 78px;
}

/* ===== 共通 ===== */
.section {
  padding: 110px 0;
}

.container {
  width: min(1100px, calc(100% - 40px));
  margin: auto;
}

.section-label {
  font-size: 12px;
  letter-spacing: 3px;
  color: #8aa6ff;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 42px);
  border-left: 3px solid #3a6cff;
  padding-left: 10px;
  margin: 10px 0 30px;
}

.section-text {
  color: #ccc;
}

/* ===== ヒーロー（TOP） ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url("hero.jpg") center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7));
}

.hero-content {
  position: relative;
  text-align: center;
  z-index: 1;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(34px, 5vw, 60px);
}

.hero-text {
  color: #ddd;
  margin: 20px 0;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== ボタン ===== */
.btn {
  padding: 14px 28px;
  transition: 0.3s;
  display: inline-block;
}

.btn-primary {
  background: #3a6cff;
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #274fc4;
}

.btn-secondary {
  border: 1px solid #fff;
  color: #fff;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ===== カード ===== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.service-card {
  padding: 25px;
  border: 1px solid #222;
  transition: 0.3s;
  background: rgba(255, 255, 255, 0.01);
}

.service-card:hover {
  border-color: #3a6cff;
  transform: translateY(-5px);
}

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

.strength-card {
  padding: 25px;
  background: #111;
}

/* ===== CTA ===== */
.cta-box {
  text-align: center;
  padding: 60px;
  background: #111;
}

/* ===== 下層ページヒーロー共通 ===== */
.page-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
}

.page-hero-content {
  position: relative;
  z-index: 1;
  width: min(1000px, calc(100% - 40px));
}

.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(34px, 5vw, 60px);
  margin: 12px 0 18px;
}

.hero-subcopy {
  margin: 0;
  font-size: 14px;
  letter-spacing: 3px;
  color: #e1e1e1;
}

.page-hero .hero-text {
  color: #f0f0f0;
  margin: 0;
}

/* ===== ページ別ヒーロー画像 ===== */
.page-hero-services {
  background:
    linear-gradient(rgba(0, 0, 0, 0.50), rgba(0, 0, 0, 0.80)),
    url("hero-services.jpg") center/cover no-repeat;
}

.page-hero-strength {
  background:
    linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.58)),
    url("hero-strength.jpg") center/cover no-repeat;
}

.page-hero-company {
  background:
    linear-gradient(rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.48)),
    url("hero-company.jpg") center/cover no-repeat;
}

.page-hero-contact {
  background:
    linear-gradient(rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.30)),
    url("hero-contact.jpg") center/cover no-repeat;
}

/* ===== 事業詳細 ===== */
.service-detail {
  padding: 40px 0;
  border-bottom: 1px solid #222;
  scroll-margin-top: 110px;
}

.service-detail-header {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 20px;
  align-items: start;
}

.service-number {
  color: #3a6cff;
  font-size: 30px;
  margin: 0;
}

.service-points {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.service-point {
  border: 1px solid #3a6cff;
  padding: 8px 12px;
}

/* ===== 強み詳細 ===== */
.strength-detail {
  padding: 40px 0;
  border-bottom: 1px solid #222;
}

.strength-detail-header {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 20px;
  align-items: start;
}

.strength-number {
  color: #3a6cff;
  font-size: 30px;
  margin: 0;
}

.strength-points {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.strength-point {
  border: 1px solid #3a6cff;
  padding: 8px 12px;
}

/* ===== 会社情報 ===== */
.company-message p {
  margin: 0 0 24px;
}

.company-table {
  border-top: 1px solid #222;
}

.company-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  border-bottom: 1px solid #222;
}

.company-head {
  padding: 15px;
  background: #111;
}

.company-data {
  padding: 15px;
}

.company-vision-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.vision-card {
  padding: 25px;
  background: #111;
}

/* ===== お問い合わせ ===== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
}

.contact-example-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-example-item {
  padding: 10px;
  border: 1px solid #3a6cff;
}

.contact-form-wrap {
  background: rgba(255, 255, 255, 0.02);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 10px;
  background: #111;
  border: 1px solid #333;
  color: #fff;
  font-family: inherit;
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

/* ===== アニメーション ===== */
.fade {
  opacity: 0;
  transform: translateY(30px);
  transition: 1s;
}

.fade.show {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 時間ストーリー背景 ===== */
.theme-dawn {
  background: linear-gradient(
    to bottom,
    #05070d 0%,
    #0b1a33 50%,
    #1a2f5a 100%
  );
}

.theme-sunrise {
  background: linear-gradient(
    to bottom,
    #0b1a33 0%,
    #2c2a5a 35%,
    #7a2f4a 65%,
    #ff7a3d 100%
  );
}

.theme-morning {
  background: linear-gradient(
    to bottom,
    #1e3c72 0%,
    #5a86c8 50%,
    #d6e6ff 100%
  );
}

.theme-day {
  background: linear-gradient(
    to bottom,
    #dfeeff 0%,
    #ffffff 100%
  );
}

/* 本文だけ昼色 */
.theme-day main {
  color: #222;
}

.theme-day .section-title {
  color: #111;
}

.theme-day .section-text {
  color: #555;
}

.theme-day .company-data,
.theme-day .company-message p,
.theme-day .vision-card p,
.theme-day .contact-example-item,
.theme-day .form-group label {
  color: #222;
}

.theme-day .contact-form-wrap {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.theme-day .form-group input,
.theme-day .form-group textarea,
.theme-day .form-group select {
  background: #fff;
  color: #222;
  border: 1px solid #bbb;
}

/* contactヒーロー文字は白 */
.theme-day .page-hero h1,
.theme-day .page-hero p,
.theme-day .page-hero .hero-subcopy {
  color: #fff;
}

.theme-day .page-hero h1 {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.theme-day .page-hero p,
.theme-day .page-hero .hero-subcopy {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* ===== レスポンシブ ===== */
@media (max-width: 768px) {
  header {
    padding: 0 20px;
  }

  nav {
    flex-wrap: wrap;
    gap: 14px;
    justify-content: flex-end;
  }

  .service-grid,
  .strength-grid,
  .company-vision-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .company-row {
    grid-template-columns: 1fr;
  }

  .service-detail-header,
  .strength-detail-header {
    grid-template-columns: 1fr;
  }

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