/* ============================================
   大龍企画 コーポレートサイト スタイルシート
   style.css
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Meiryo", sans-serif;
  color: #333;
  background: #fff;
  line-height: 1.7;
}

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

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

ul {
  list-style: none;
}

/* ---------- ヘッダー / ナビゲーション ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(10, 20, 50, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
}

.header__logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.08em;
}

.header__logo span {
  color: #4fc3f7;
}

.nav__list {
  display: flex;
  gap: 32px;
}

.nav__list a {
  color: #ddd;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.nav__list a:hover {
  color: #4fc3f7;
}

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

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

/* ---------- ファーストビュー（HERO） ---------- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
}

/* ★ 画像の変更はこちら：src属性を hero.jpg から差し替えてください */
.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* 画像の上に重ねるオーバーレイ */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(5, 15, 40, 0.45) 0%,
    rgba(5, 15, 40, 0.60) 100%
  );
}

/* キャッチコピーのコンテナ */
.hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
}

/* ★ キャッチコピーの変更は .hero__catch の中身のテキストを差し替えてください */
.hero__catch {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero__catch span {
  display: block;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 400;
  letter-spacing: 0.2em;
  margin-top: 16px;
  color: #b3e5fc;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
}

.hero__scroll::after {
  content: "";
  display: block;
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.5);
  animation: scrollLine 1.6s ease-in-out infinite;
}

@keyframes scrollLine {
  0%   { opacity: 1; transform: scaleY(1); transform-origin: top; }
  50%  { opacity: 0.3; }
  100% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

/* ---------- セクション共通 ---------- */
.section {
  padding: 96px 24px;
}

.section--alt {
  background: #f5f7fa;
}

.section__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section__label {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #4fc3f7;
  font-weight: 600;
  margin-bottom: 8px;
}

.section__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: #0a1432;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.section__lead {
  color: #666;
  font-size: 0.95rem;
  max-width: 600px;
}

.section__head {
  margin-bottom: 56px;
}

/* ---------- サービス ---------- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ---- カード全体 ---- */
.service-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.09);
  transition: transform 0.3s cubic-bezier(.25,.8,.25,1),
              box-shadow 0.3s cubic-bezier(.25,.8,.25,1);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.16);
}

/* ---- サムネイルエリア（画像＋アイコン） ---- */
.service-card__thumb {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

/* ★ サービス画像の変更: image/service-1.jpg など src 属性を差し替えてください */
.service-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s cubic-bezier(.25,.8,.25,1);
  display: block;
}

.service-card:hover .service-card__img {
  transform: scale(1.08);
}

/* 画像上の薄いオーバーレイ */
.service-card__img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(5, 10, 40, 0.15) 0%,
    rgba(5, 10, 40, 0.55) 100%
  );
  pointer-events: none;
}

/* ---- 大型フローティングSVGアイコン ---- */
.service-card__badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s, background 0.3s;
}

.service-card:hover .service-card__badge {
  transform: translate(-50%, -60%) scale(1.1);
  background: rgba(255, 255, 255, 0.25);
}

.service-card__badge svg {
  width: 40px;
  height: 40px;
  display: block;
}

/* ---- サービス番号バッジ ---- */
.service-card__num {
  position: absolute;
  bottom: 12px;
  right: 16px;
  font-size: 2.2rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: -0.02em;
  line-height: 1;
  pointer-events: none;
  font-family: 'Georgia', serif;
}

/* ---- テキストボディエリア ---- */
.service-card__body {
  padding: 28px 28px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* ★ サービス名の変更は .service-card__name のテキストを差し替えてください */
.service-card__name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0a1432;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
  position: relative;
  padding-left: 14px;
}

.service-card__name::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(to bottom, #4fc3f7, #1565c0);
}

/* ★ サービス説明文の変更は .service-card__text のテキストを差し替えてください */
.service-card__text {
  font-size: 0.875rem;
  color: #555;
  line-height: 1.85;
  flex: 1;
}

.placeholder-note {
  font-size: 0.78rem;
  color: #aaa;
}

/* ---- 矢印アイコン ---- */
.service-card__arrow {
  margin-top: 18px;
  color: #4fc3f7;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  transition: gap 0.2s;
}

.service-card__arrow svg {
  width: 20px;
  height: 20px;
  transition: transform 0.2s;
}

.service-card:hover .service-card__arrow svg {
  transform: translateX(4px);
}

/* ---------- 会社概要 ---------- */
/* ★ 会社概要の各項目の変更は <td> のテキストを差し替えてください */
.company__table {
  width: 100%;
  border-collapse: collapse;
}

.company__table th,
.company__table td {
  padding: 18px 24px;
  text-align: left;
  border-bottom: 1px solid #e8ecf0;
  font-size: 0.9rem;
}

.company__table th {
  width: 200px;
  color: #0a1432;
  font-weight: 600;
  background: #f0f4f8;
  white-space: nowrap;
}

.company__table td {
  color: #444;
}

.company__table tr:last-child th,
.company__table tr:last-child td {
  border-bottom: none;
}

/* ---------- お問い合わせ ---------- */
.contact {
  background: linear-gradient(135deg, #0a1432 0%, #1565c0 100%);
  padding: 96px 24px;
  text-align: center;
}

.contact .section__label {
  color: #b3e5fc;
}

.contact .section__title {
  color: #fff;
}

.contact .section__lead {
  color: rgba(255, 255, 255, 0.75);
  margin: 0 auto 48px;
}

.contact__tel-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.contact__tel-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: #b3e5fc;
  text-transform: uppercase;
}

/* ★ 電話番号の変更は <a> タグのhref属性とテキストを差し替えてください */
.contact__tel {
  font-size: clamp(1.5rem, 2vw, 3rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
  /* PCではリンクスタイルを無効化 */
  pointer-events: none;
}

.contact__tel-note {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 4px;
}

/* ---------- フッター ---------- */
.footer {
  background: #070e28;
  padding: 40px 24px;
  text-align: center;
}

.footer__logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.footer__logo span {
  color: #4fc3f7;
}

.footer__copy {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.05em;
}

/* ============================================
   レスポンシブ（タブレット）
   ============================================ */
@media (max-width: 900px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  /* タブレット：カード第3枚は1列全幅 */
  .services__grid .service-card:last-child {
    grid-column: 1 / -1;
    max-width: 440px;
    margin: 0 auto;
    width: 100%;
  }
}

/* ============================================
   レスポンシブ（スマートフォン）
   ============================================ */
@media (max-width: 640px) {
  /* ナビ非表示・ハンバーガー表示 */
  .nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* サービスグリッド：1列 */
  .services__grid {
    grid-template-columns: 1fr;
  }
  /* タブレットの2列オーバーライドをリセット */
  .services__grid .service-card:last-child {
    grid-column: auto;
    max-width: none;
    margin: 0;
  }

  /* 会社概要テーブル：縦積み */
  .company__table th {
    width: auto;
    display: block;
    border-bottom: none;
    padding-bottom: 4px;
  }

  .company__table td {
    display: block;
    padding-top: 4px;
    padding-bottom: 18px;
  }

  /* ★ スマホでは電話番号タップで発信できるようにする */
  .contact__tel {
    pointer-events: auto;
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    padding: 14px 36px;
    transition: background 0.2s;
  }

  .contact__tel:active {
    background: rgba(255, 255, 255, 0.2);
  }

  .section {
    padding: 72px 16px;
  }

  .hero__catch {
    font-size: clamp(1.5rem, 7vw, 2.4rem);
  }
}
