/* ==========================================
   1. ベース & リセット設定
   ========================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Noto Serif JP', serif;
  color: #fff;
  background: linear-gradient(
    to bottom,
    #8fd3ff 0%,
    #56b8ff 15%,
    #1f8ed8 30%,
    #0d6ea8 45%,
    #0b4f7c 60%,
    #08385d 75%,
    #041f38 90%,
    #010b18 100%
  );
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08), transparent 25%),
    radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.05), transparent 20%),
    radial-gradient(circle at 50% 70%, rgba(255, 255, 255, 0.04), transparent 30%);
  pointer-events: none;
}

section {
  padding: 80px 20px;
  text-align: center;
  scroll-margin-top: 90px;
  background: rgba(255, 255, 255, 0.015);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 0 5px #1B9CFC;
}

section p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
  text-shadow: 0 0 5px #1B9CFC;
}


/* ==========================================
   2. ヘッダー & ナビゲーション
   ========================================== */
header {
  position: fixed;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 1400px;
  padding: 0.7rem 2rem;
  background: rgba(5, 25, 45, 0.32);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  z-index: 1000;
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: 0.3s ease;
}

.logo img {
  height: 50px;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}

nav {
  display: flex;
  flex-wrap: wrap;
}

nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 1rem;
  font-weight: 700;
  white-space: nowrap;
  transition: 0.3s;
}

nav a:hover {
  color: #1B9CFC;
}

/* ハンバーガーボタン */
.hamburger {
  display: none;
  width: 30px;
  height: 25px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 20;
}

.hamburger span {
  display: block;
  height: 3px;
  background: #fff;
  border-radius: 3px;
  transition: 0.4s;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* ヘッダー内SNSアイコン */
.sns-icons {
  display: flex;
  align-items: center;
  margin-left: 15px;
  gap: 10px;
}

.sns-icons a {
  color: #fff;
  font-size: 20px;
  transition: 0.3s;
}

.sns-icons a:hover {
  transform: scale(1.2);
}

.sns-icons a:hover .fa-youtube {
  color: #ff0000;
}


/* ==========================================
   3. ヒーローセクション
   ========================================== */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.slider,
.slide video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-content {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 6px;
  padding: 10px 15px;
  background: rgba(5, 15, 25, 0.38);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0;
  transform: translate(0, 10px);
  transition: transform 0.6s ease, opacity 0.6s ease;
  animation: heroFadeUp 1.5s ease forwards;
}

.hero-content.show {
  opacity: 1;
  transform: translate(0, 0);
}

.hero-sub,
.hero-main {
  display: block;
  text-align: center;
}

.hero-content .hero-main {
  font-size: clamp(1.6rem, 4vw, 3rem);
}

.hero-content .hero-sub {
  font-size: clamp(0.9rem, 2vw, 1.0rem);
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ==========================================
   4. メインコンテンツ セクション
   ========================================== */

/* --- 企業理念 --- */
.philosophy-container {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin: 50px auto 0;
  align-items: flex-start;
  flex-wrap: wrap;
  max-width: 1200px;
}

.philosophy-text {
  flex: 1 1 300px;
  text-align: center;
}

.philosophy-text p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  line-height: 1.6;
}

.philosophy-text img {
  width: 100%;
  height: auto;
  max-width: 500px;
}

.management-title {
  margin-top: 80px;
}

.management-text p {
  color: #fff;
  -webkit-text-fill-color: #fff;
  background: none;
}

/* --- 商品セクション --- */
#product {
  position: relative;
  overflow: hidden;
}

#product::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.05), transparent 35%),
    radial-gradient(circle at 80% 30%, rgba(27, 156, 252, 0.08), transparent 40%);
  pointer-events: none;
}

.product-row {
  display: flex;
  align-items: center;
  gap: 80px;
  margin: 40px auto;
  max-width: 1200px;
  padding: 40px;
  background: rgba(27, 38, 59, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  box-shadow: 0 0 25px rgba(27, 156, 252, 0.3);
  transition: 0.5s;
}

.product-row:hover {
  transform: translateY(-3px);
}

.product-row:nth-of-type(even) {
  flex-direction: row-reverse;
}

.product-image,
.product-text {
  flex: 1;
}

.product-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 0 25px #1B9CFC;
  cursor: pointer;
  transition: 0.3s;
}

.product-image img:hover {
  transform: scale(1.03);
}

.product-text {
  text-align: left;
}

.product-text h3 {
  font-size: 2rem;
  margin-bottom: 25px;
  text-shadow: 0 0 10px #1B9CFC;
}

.product-text p {
  font-size: 1.2rem;
  line-height: 1.9;
}

/* --- プロギャラリー --- */
.pro-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 0 20px;
}

.pro-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: 0.4s ease;
}

.pro-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 50px rgba(27, 156, 252, 0.4);
}

.pro-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.pro-card:hover img {
  transform: scale(1.1);
}

.pro-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 15px;
  font-size: 0.95rem;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 20px;
}

.lightbox.show {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.lightbox::after {
  content: "×";
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
}

/* --- NEWS --- */
#news {
  position: relative;
  padding: 100px 20px;
  overflow: hidden;
}

#news::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(120, 220, 255, 0.08), transparent 35%);
  pointer-events: none;
}

.news-container {
  max-width: 1000px;
  margin: 50px auto 0;
}

.news-item {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  margin-bottom: 40px;
}

.news-item:last-child {
  margin-bottom: 0;
}

.news-card hr {
  margin: 35px 0 60px;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.news-date {
  min-width: 140px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #7fd8ff;
  letter-spacing: 0.08em;
}

.news-content {
  flex: 1;
  text-align: left;
}

.news-content h3 {
  margin-bottom: 15px;
  font-size: 1.6rem;
  color: #fff;
}

.news-content p {
  line-height: 2;
  color: rgba(255, 255, 255, 0.85);
}

.news-image {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.news-image img {
  width: 100%;
  max-width: calc(33.333% - 10px);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 15px;
  cursor: pointer;
  transition: transform 0.3s;
}

.news-image img:hover {
  transform: scale(1.02);
}

.news-map {
  width: 100%;
  max-width: 100%;
  margin-top: 25px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.news-map iframe {
  width: 100%;
  display: block;
  border-radius: 18px;
}

/* --- 会社案内 --- */
.company-container {
  display: flex;
  justify-content: space-between;
  gap: 50px;
  margin-top: 50px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.company-text {
  flex: 1 1 300px;
  text-align: center;
}

.company-text p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  line-height: 1.6;
}

.company-map {
  flex: 1 1 300px;
  height: 350px;
}

.tel-button,
.route-button {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

.tel-button:hover,
.route-button:hover {
  color: #1B9CFC;
  text-decoration-color: #1B9CFC;
}


/* ==========================================
   5. SNSエリア
   ========================================== */
.sns-section {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 30px;
  flex-wrap: wrap;
}

.feed-box {
  flex: 1;
  min-width: 320px;
  max-width: 700px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(5px);
  border-radius: 30px;
  padding: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.feed-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 25px;
  letter-spacing: 1px;
}

.follow-box {
  flex: 1;
  min-width: 320px;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: auto;
  transition: transform 0.3s ease;
}

.follow-box:hover {
  transform: translateY(-10px);
}

.sns-icon {
  font-size: 50px;
  margin-bottom: 20px;
}

.follow-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
}

.username {
  color: #bbb;
  margin-bottom: 30px;
  font-size: 18px;
}

.qr {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 20px;
  background: #fff;
  padding: 10px;
  margin-bottom: 25px;
  transition: 0.4s;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
}

.qr:hover {
  transform: scale(1.05);
}

.follow-btn {
  display: inline-block;
  padding: 14px 35px;
  border-radius: 50px;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  background: linear-gradient(45deg, #833ab4, #fd1d1d, #fcb045);
  transition: 0.4s;
}

.follow-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(253, 29, 29, 0.4);
}

/* YouTube */
.youtube-box .fa-youtube {
  color: #ff0000;
}

.youtube-btn {
  display: inline-block;
  padding: 14px 35px;
  border-radius: 50px;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  background: linear-gradient(45deg, #ff0000, #cc0000);
  transition: 0.4s;
}

.youtube-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(255, 0, 0, 0.4);
}

/* Facebook */
.facebook-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.facebook-box .fa-facebook-f {
  color: #1877f2;
}

.facebook-btn {
  display: inline-block;
  padding: 14px 35px;
  border-radius: 50px;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  background: linear-gradient(45deg, #1877f2, #0d5ed7);
  transition: 0.4s;
}

.facebook-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(24, 119, 242, 0.4);
}

.facebook-section {
  padding: 15px 5% 30px;
}

.facebook-timeline {
  width: 500px;
  margin: 0 auto;
}

.facebook-embed {
  width: 100%;
  flex: 1;
  display: flex;
  justify-content: center;
}

.facebook-embed > span {
  display: flex !important;
  justify-content: center !important;
}

.facebook-embed iframe {
  width: 100%;
  max-width: 500px;
  height: 1000px;
  border: none;
  border-radius: 18px;
  margin: 0 auto !important;
}


/* ==========================================
   6. お問い合わせフォーム & プライバシー
   ========================================== */
#inquiry {
  position: relative;
  overflow: hidden;
}

#inquiry::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.04), transparent 35%),
    radial-gradient(circle at 85% 30%, rgba(27, 156, 252, 0.08), transparent 40%);
  pointer-events: none;
}

#sendForm {
  max-width: 700px;
  margin: 0 auto 80px auto;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  padding: 40px 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-sizing: border-box;
}

.formTable th,
.formTable td {
  display: block;
  width: 100%;
  box-sizing: border-box;
}

.formTable input[type="text"],
.formTable input[type="tel"],
.formTable input[type="email"],
.formTable textarea {
  width: 100%;
  padding: 12px 15px;
  border-radius: 10px;
  border: none;
  outline: none;
  font-size: 1rem;
  box-sizing: border-box;
  resize: none;
  overflow: auto;
}

.box_check {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  text-align: center;
  margin: 1em auto;
}

.box_check label {
  display: flex;
  align-items: center;
  width: 100%;
  font-size: 0.95rem;
  color: #fff;
  box-sizing: border-box;
}

.box_check label span {
  margin-left: .3em;
}

.box_check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  flex-shrink: 0;
}

.btn {
  width: 100%;
  text-align: center;
}

.btn input {
  width: 100%;
  padding: 15px 0;
  border-radius: 12px;
  background: linear-gradient(90deg, #1B9CFC, #0D1B2A);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.btn input:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* プライバシーポリシー */
.con_pri {
  max-width: 700px;
  margin: 20px auto;
  width: 100%;
}

.con_pri .box_pri {
  text-align: left;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border-radius: 12px;
  padding: 20px 25px;
  max-height: 250px;
  overflow-y: auto;
  margin-bottom: 20px;
  box-sizing: border-box;
  font-size: 0.95rem;
  line-height: 1.6;
}

.con_pri .box_pri h3 {
  color: #1B9CFC;
  margin-bottom: 10px;
  text-align: left;
  font-weight: 600;
}

.con_pri .box_pri p {
  text-align: left;
  margin-bottom: 10px;
}


/* ==========================================
   7. 汎用クラス・フッター・固定要素
   ========================================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

footer {
  position: relative;
  padding: 40px 20px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

footer p {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.fixed-tel {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(90deg, #1B9CFC, #0D1B2A);
  color: #fff;
  text-align: center;
  padding: 18px 0;
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  z-index: 9999;
  display: none;
}


/* ==========================================
   8. レスポンシブ (メディアクエリ)
   ========================================== */

/* PC特有の最大幅設定 (1200px以上) */
@media (min-width: 1200px) {
  .follow-box {
    max-width: 380px;
  }
}

/* タブレット〜スマホ表示 (900px以下) */
@media (max-width: 900px) {
  .sns-section {
    flex-direction: column;
  }

  .follow-box {
    width: 100%;
    max-width: 500px;
  }
}

/* スマホ表示 (768px以下) */
@media (max-width: 768px) {
  /* 背景ブラー無効化 */
  .feed-box,
  .follow-box,
  .product-row,
  #sendForm,
  header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  /* モバイルナビ */
  .hamburger {
    display: flex;
  }

  nav {
    position: fixed;
    top: 60px;
    right: -100%;
    width: 70%;
    max-width: 250px;
    background: rgba(13, 27, 42, 0.95);
    flex-direction: column;
    padding: 20px;
    gap: 20px;
    transition: right 0.35s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
  }

  nav a {
    margin: 0;
    font-size: 1.2rem;
  }

  nav.active {
    right: 0;
  }

  /* ヒーローテキスト */
  .hero h1 {
    font-size: 2.5rem;
  }

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

  .hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .hero-sub {
    font-size: clamp(1rem, 2vw, 1.4rem);
    letter-spacing: 0.15em;
    opacity: 0.9;
  }

  .hero-main {
    font-size: clamp(3rem, 6vw, 5rem);
    letter-spacing: 0.08em;
  }

  /* レイアウト調整 */
  .company-container,
  .philosophy-container {
    flex-direction: column;
    align-items: center;
  }

  .company-map {
    height: 300px;
    margin-top: 20px;
  }

  .philosophy-text img {
    width: 100%;
    max-width: 500px;
    height: auto;
  }

  .product-row {
    flex-direction: column !important;
    gap: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
  }

  .product-text {
    text-align: center;
  }

  /* ニュース */
  .news-item {
    flex-direction: column;
    gap: 15px;
  }

  .news-date {
    min-width: auto;
  }

  /* フォーム */
  #sendForm {
    padding: 25px 20px;
    gap: 15px;
  }

  .formTable input[type="text"],
  .formTable input[type="tel"],
  .formTable input[type="email"] {
    width: 100%;
    height: auto;
    font-size: 0.95rem;
  }

  .formTable textarea {
    width: 100%;
    height: 150px;
    font-size: 0.95rem;
    resize: none;
  }

  .box_check label {
    font-size: 0.9rem;
  }

  .btn input {
    font-size: 1rem;
    padding: 12px 0;
  }

  /* プライバシーポリシー */
  .con_pri {
    width: 90%;
  }

  .con_pri .box_pri {
    padding: 15px;
    max-height: 220px;
  }

  /* その他 */
  .instagram-embed iframe,
  .facebook-embed iframe {
    height: 500px;
  }

  .fixed-tel {
    display: block;
  }
}

/* 超小型画面対応 (480px以下) */
@media (max-width: 480px) {
  .hero-content {
    bottom: 3px;
    right: 3px;
    padding: 8px 12px;
    gap: 4px;
  }

  .hero-content .hero-main {
    font-size: 1.4rem;
  }

  .hero-content .hero-sub {
    font-size: 0.8rem;
  }
}