/* ==== 基本設定 ==== */
body {
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
  background: #ffffff;
  color: #1a1f1f;
  line-height: 1.8;
  font-size: 16px;
}

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

.container {
  width: 90%;
  max-width: 1080px;
  margin: 0 auto;
}

/* ==== ヘッダー ==== */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  background: #fff;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  z-index: 1000;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 1.2rem 1rem;
}

.logo img {
  width: 180px;
  height: auto;
  margin: 0;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
}

.nav a {
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  color: #0a1f3d;
  transition: all 0.3s ease;
}

.nav a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #0a1f3d;
  transition: width 0.3s ease;
}

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

.login-btn {
  background-color: lightskyblue;
  color: white !important;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 700;
  transition: background-color 0.3s ease;
}

.login-btn:hover {
  background-color: blue;
}

/* ==== ヒーローエリア ==== */
.hero {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero-img-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top; /* ←ここが超重要 */
  filter: brightness(70%);
}

.hero-content {
  z-index: 1;
  margin-bottom: 4rem;
  padding: 0 1rem;
}

.hero-content h1 {
  font-size: 2.5rem;
  line-height: 1.5;
  font-family: 'Playfair Display', serif;
}

.hero-content p {
  margin-top: 1rem;
  font-size: 1.1rem;
  font-weight: 500;
}

/* ==== セクション共通 ==== */
.section {
  padding: 5rem 1rem;
}

.bg-alt {
  background: #f9f9f9;
}

h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #0a1f3d;
  font-family: 'Playfair Display', serif;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* ==== カード類 ==== */
.mv-card, .biz-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  text-align: center;
}

.mv-card img, .biz-card img {
  width: 100%;
  height: auto;
}

.mv-card h3, .biz-card h3 {
  margin: 1rem 0 0.5rem;
  font-size: 1.2rem;
  color: #0a1f3d;
}

.mv-message {
  font-size: 1rem;
  font-weight: bold;
  color: #007acc;
  margin: 0.3rem 0 0.8rem;
  text-align: center;
}

/* ==== メッセージブロック ==== */
.message-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.message-text {
  flex: 1 1 55%;
}

.message-img {
  flex: 1 1 40%;
}

.message-img img {
  width: 100%;
  border-radius: 8px;
}

/* ==== フレックスブロック ==== */
.flex-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.flex-block.reverse {
  flex-direction: row-reverse;
}

.text-block {
  flex: 1 1 50%;
}

.image-block {
  flex: 1 1 45%;
}

.image-block img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* ==== iframe動画 ==== */
iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
}

/* ==== 会社情報 ==== */
.company-info {
  list-style: none;
  padding: 0;
  line-height: 2;
  font-size: 0.95rem;
}

/* ==== お問い合わせ ==== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  font-size: 1rem;
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.contact-form button {
  background: #0a1f3d;
  color: white;
  border: none;
  padding: 0.75rem;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 4px;
}

.contact-form button:hover {
  opacity: 0.9;
}

/* ==== フッター ==== */
.site-footer {
  background: #0a1f3d;
  color: #fff;
  text-align: center;
  padding: 2rem 0;
  margin-top: 4rem;
}

/* ==== メディアクエリ ==== */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    justify-content: flex-start;
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  .login-btn {
    margin-top: 1rem;
  }

  .text-block, .image-block,
  .message-text, .message-img {
    flex: 1 1 100%;
  }

  .container {
    width: 94%;
  }
}

@media (max-width: 768px) {
  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  .logo img {
    width: 160px;
    margin: 0 auto 10px;
  }

  .nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
  }

  .nav a {
    font-size: 1rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid #eee;
    width: 100%;
  }

  .login-btn {
    align-self: stretch;
    text-align: center;
    margin-top: 0.5rem;
    background-color: #4ba3f2;
    font-size: 1rem;
    padding: 0.6rem;
  }

  .hero-content {
    margin-bottom: 3rem;
    padding: 0 1rem;
  }

  .hero-content h1 {
    font-size: 1.6rem;
    line-height: 1.6;
  }

  .hero-content p {
    font-size: 0.9rem;
  }
}

/* バーガーアイコン（スマホのみ表示） */
.burger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: #0a1f3d;
}

/* PC表示では通常ナビ */
.nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

/* スマホ時レイアウト変更 */
@media (max-width: 768px) {
  .burger {
    display: block;
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    z-index: 1001;
  }

  .nav {
    display: none;
    flex-direction: column;
    background: white;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    padding: 1.2rem 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }

  .nav.active {
    display: flex;
  }

  .nav a {
    padding: 0.7rem 0;
    border-bottom: 1px solid #eee;
    width: 100%;
    text-align: left;
  }

  .login-btn {
    margin-top: 1rem;
  }
}