/* リセット（軽め） */
* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  background: #101014;
  color: #ffffff;
}

a {
  color: #ff4d4d;      /* 赤色 */
  text-decoration: none; /* 下線を消す */
}

.company-details {
  width: 100%;
  border-collapse: separate;  /* 角丸対応 */
  border-spacing: 0;
  border: 1px solid #4b2e83; /* 濃い紫の枠線 */
  border-radius: 12px;
  color: #3b0b0b;
  font-size: 1rem;
}

.company-details th,
.company-details td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #b89ff6; /* 薄い紫の線 */
  vertical-align: top;
}

.company-details th {
  background-color: #6a3ab3; /* 濃い紫背景 */
  color: #f0eaff;            /* 明るい文字 */
  width: 30%;
}

.company-details tr:last-child td {
  border-bottom: none; /* 最終行の下線を消す */
}

/* 角丸をテーブルの四隅に適用 */
.company-details tr:first-child th {
  border-top-left-radius: 12px;
}

.company-details tr:first-child td {
  border-top-right-radius: 12px;
}

.company-details tr:last-child th {
  border-bottom-left-radius: 12px;
}

.company-details tr:last-child td {
  border-bottom-right-radius: 12px;
}

.company-full {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #1c1c1b; /* 濃い紫 */
  border-radius: 12px;
  font-size: 1rem;
  color: #ffffff;
}

.company-full th,
.company-full td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #1c1c1b; /* 薄い紫の線 */
  vertical-align: top;
}

.company-full th {
  background-color: #1c1c1b; /* 濃い紫 */
  color: #ffffff;
  width: 30%;
  font-weight: 700;
}

.company-full tr:last-child td {
  border-bottom: none;
}

/* 角丸の調整 */
.company-full tr:first-child th {
  border-top-left-radius: 12px;
}

.company-full tr:first-child td {
  border-top-right-radius: 12px;
}

.company-full tr:last-child th {
  border-bottom-left-radius: 12px;
}

.company-full tr:last-child td {
  border-bottom-right-radius: 12px;
}

.works-table {
  width: 100%;
  border-collapse: separate;  /* collapseから変更 */
  border-spacing: 0;          /* セル間の隙間をなくす */
  margin-top: 20px;
  font-size: 1rem;
  color: #ffffff;
  border: 1px solid #1d0124;
  border-radius: 12px;
  overflow: hidden;
}

.works-table th,
.works-table td {
  border: 1px solid #1c1c1b;
  padding: 12px 16px;
  text-align: left;
  background-clip: padding-box; /* 角丸のはみ出し防止 */
}

.works-table thead th {
  background-color: #1c1c1b;  /* 紫のテーマ色 */
  color: #ffffff;
}

/* 偶数行の背景色 */
.works-table tbody tr:nth-child(even) {
  background-color: #000000;
}

/* 角丸をテーブルの四隅に適用 */
.works-table thead th:first-child {
  border-top-left-radius: 12px;
}

.works-table thead th:last-child {
  border-top-right-radius: 12px;
}

.works-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 12px;
}

.works-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 12px;
}

@media (max-width: 600px) {
  .works-table th, .works-table td {
    padding: 8px 10px;
    font-size: 0.9rem;
  }
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ヘッダー */
.site-header {
  background: #16001c;
  color: white;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.logo {
  font-weight: 700;
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
  padding-left: 10px; /* スマホの左余白 */
}

/* ナビゲーション */
.site-nav {
  display: flex;
  gap: 18px;
  align-items: center;
}

.site-nav a {
  color: #fff;
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 6px;
  transition: color 0.3s ease;
}

.site-nav a:hover {
  color: #3e64fa;
}

.site-nav .cta {
  background: linear-gradient(90deg, #ffd27a, #ffb86b);
  color: #10201c;
  padding: 8px 12px;
}

/* ハンバーガーメニュー（スマホ用） */
.burger {
  display: none;
  background: none;
  border: 0;
  color: white;
  font-size: 1.4rem;
}

/* Hero セクション */
.hero {
  position: relative;
  padding: 80px 0;
  background: url('/images/logo.jpg') no-repeat center center;
  background-size: cover;
  color: white;
  text-align: center;
}

/* 薄い黒の半透明オーバーレイをつける場合 */
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  /* 中央を濃く、左右に滑らかにフェード */
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.3) 0%,
    rgba(0,0,0,0.5) 25%,
    rgba(0,0,0,0.6) 50%,
    rgba(0,0,0,0.5) 75%,
    rgba(0,0,0,0.3) 100%
  );
  pointer-events: none;
  z-index: 0;
}

/* hero-innerを前面に表示 */
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.hero-inner img.logo {
  max-width: 280px;  /* 横幅制限 */
  width: 100%;
  height: auto;
  display: block;
  margin: 20px auto 30px auto;
}

.hero-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 20px auto 30px auto; /* 上下に余白を入れて中央寄せ */
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* タイトル */
.site-title {
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  font-size: 3.0rem;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

/* リード文 */
.lead {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

/* サブテキスト */
.hero-sub {
  font-size: 1.2rem;
  font-style: italic;
  opacity: 0.9;
  margin-bottom: 40px;
}

/* ボタン */
.btn {
  display: inline-block;
  background-color: #010617;
  color: #fff;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
  text-decoration: none;
  z-index: 1;
  position: relative;
  border: none;          /* 枠線を完全に消す */
  outline: none;         /* フォーカス時のアウトラインを消す */
  box-shadow: none;      /* もし影で枠のように見えている場合も消す */
}

.btn:hover {
  background-color: #001157;
}

/* セクション */
.section {
  padding-top: 30px;  /* 上余白を減らす */
  padding-bottom: 56px; /* 下はそのまま */
}

.section-title {
  margin-top: 0; /* タイトルの上余白をなくす */
  margin-bottom: 18px;
}

.section.alt {
  background: linear-gradient(135deg, #000000, #000e26); /* ←黒→濃いグレー */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5); /* グラデに合わせて影も調整 */
}

.section-title {
  font-size: 1.3rem;
  margin-bottom: 18px;
  color: #ed9a00;
}

/* グリッド */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* カード */
.card {
  background: linear-gradient(135deg, #000000, #000e26); /* ←黒→濃いグレー */
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5); /* グラデに合わせて影も調整 */
  margin-bottom: 4px; /* タイトルの下余白を小さく */
}

.card p {
  margin-top: 0;
}

.card-icon {
  font-size: 1.6rem;
  color: #b71c1c;
}

.icon-title {
  display: flex;
  align-items: center;
  gap: 8px; /* アイコンとタイトルの間のスペース */
}

.company-philosophy {
  margin-bottom: 48px;
  padding: 24px 30px;
  background: linear-gradient(135deg, #000000, #000e26); /* ←黒→濃いグレー */
  border-radius: 16px;
  color: #ffffff;
  line-height: 1.7;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5); /* グラデに合わせて影も調整 */
}

.company-philosophy p {
  margin-bottom: 12px;
  text-shadow: 0 1px 2px rgba(75, 0, 130, 0.5);
}

/* 2カラム */
.two-col {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

/* 会社概要テーブル */
.company {
  width: 100%;
  border-collapse: collapse;
}

.company th {
  width: 28%;
  text-align: left;
  padding: 6px 8px;
  color: #000000;
}

.company td {
  padding: 6px 8px;
}

/* 実績リスト */
.works {
  margin: 0;
  padding-left: 18px;
}

/* お問い合わせ */
.contact-section {
  padding-bottom: 80px;
}

form label {
  display: block;
  margin-bottom: 12px;
}

input[type=text],
input[type=email],
textarea {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #d7a1a1;
  background: #fff0f0;
  color: #3b0b0b;
}

input[type=text]::placeholder,
input[type=email]::placeholder,
textarea::placeholder {
  color: #a66e6e;
}

.req {
  color: #b33;
  margin-left: 6px;
}

.form-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}

.small {
  font-size: 0.85rem;
  color: #fff;
}

/* フッター */
.site-footer {
  background: #16001c;
  color: #fff;
  padding: 18px 0;
  border-top: 1px solid #fff;
  text-align: center;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* レスポンシブ */
@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .two-col {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .site-title {
    font-size: 2rem;
  }
  .lead {
    font-size: 1rem;
  }
  .hero-sub {
    font-size: 1rem;
  }
  .site-nav {
    display: none;
  }
  .burger {
    display: block;
  }
  .header-inner {
    gap: 10px;
  }
}

/* ロゴの余白（スマホ表示時） */
@media screen and (max-width: 768px) {
  .logo {
    display: inline-block;
    padding-left: 10px;
  }
}
