/* Google Fonts: Poppins と Noto Sans Bengali */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;900&family=Noto+Sans+Bengali:wght@400;700&display=swap");

/*------------------------------------------*/
/*          Theme Variables                 */
/*------------------------------------------*/

/* Default (Navy/Blue) Theme Variables */
:root {
  --primary-bg: #ffffff;
  --secondary-bg: #f2f2f2;
  --accent-color: #002244;
  --highlight-color: #0055aa;
  --text-color: #333333;
  --sub-text: #777777;
  --card-bg: #ffffff;
  --border-color: #e0e0e0;
  --hover-shadow: rgba(0, 0, 0, 0.15);
  --hero-bg-overlay: rgba(0, 34, 68, 0.8);
  /* Bubble Colors for Navy Theme */
  --bubble-color1: rgba(0, 34, 68, 0.7);
  --bubble-color2: rgba(0, 34, 68, 0.6);
  --bubble-color3: rgba(0, 34, 68, 0.8);
  --bubble-color4: rgba(0, 34, 68, 0.5);
  --bubble-color5: rgba(0, 34, 68, 0.9);
  --bubble-color-side: rgba(0, 34, 68, 0.6);
  --bubble-color-large: rgba(0, 34, 68, 0.5);
}

/* Navy Theme (Blue) */
.theme-blue {
  --primary-bg: #ffffff;
  --secondary-bg: #f2f2f2;
  --accent-color: #002244;
  --highlight-color: #0055aa;
  --text-color: #333333;
  --sub-text: #777777;
  --card-bg: #ffffff;
  --border-color: #e0e0e0;
  --hover-shadow: rgba(0, 0, 0, 0.15);
  --hero-bg-overlay: rgba(0, 34, 68, 0.8);
  --bubble-color1: rgba(0, 34, 68, 0.7);
  --bubble-color2: rgba(0, 34, 68, 0.6);
  --bubble-color3: rgba(0, 34, 68, 0.8);
  --bubble-color4: rgba(0, 34, 68, 0.5);
  --bubble-color5: rgba(0, 34, 68, 0.9);
  --bubble-color-side: rgba(0, 34, 68, 0.6);
  --bubble-color-large: rgba(0, 34, 68, 0.5);
}

/* Green Theme */
.theme-green {
  --primary-bg: #ffffff;
  --secondary-bg: #e8f5e9;
  --accent-color: #006a4e;
  --highlight-color: #008f68;
  --text-color: #333333;
  --sub-text: #777777;
  --card-bg: #ffffff;
  --border-color: #e0e0e0;
  --hover-shadow: rgba(0, 0, 0, 0.15);
  --hero-bg-overlay: rgba(0, 106, 78, 0.8);
  --bubble-color1: rgba(0, 150, 100, 0.7);
  --bubble-color2: rgba(0, 150, 100, 0.6);
  --bubble-color3: rgba(0, 150, 100, 0.8);
  --bubble-color4: rgba(0, 150, 100, 0.5);
  --bubble-color5: rgba(0, 150, 100, 0.9);
  --bubble-color-side: rgba(0, 150, 100, 0.6);
  --bubble-color-large: rgba(0, 150, 100, 0.5);
}

/* Neon Theme */
.theme-neon {
  --primary-bg: #1a0033; /* 暗い紫 */
  --secondary-bg: #2b0040; /* 少し明るい暗紫 */
  --accent-color: #ff00ff; /* 蛍光ピンク（アクセント） */
  --highlight-color: #ff33ff; /* より鮮やかな蛍光ピンク */
  --text-color: #fefefe; /* ほぼ白 */
  --sub-text: #ff66ff; /* 蛍光ピンク */
  --card-bg: #2a003b; /* カード背景も暗紫 */
  --border-color: #ff00ff; /* 蛍光ピンクのボーダー */
  --hover-shadow: 0 0 20px rgba(255, 0, 255, 0.8); /* 強調したホバーシャドウ */
  --hero-bg-overlay: rgba(255, 0, 255, 0.5); /* ヒーローオーバーレイ */

  /* バブルカラー：派手な蛍光カラーの組み合わせ */
  --bubble-color1: rgba(255, 0, 255, 0.9); /* 蛍光ピンク */
  --bubble-color2: rgba(0, 255, 255, 0.9); /* 蛍光シアン */
  --bubble-color3: rgba(255, 255, 0, 0.9); /* 蛍光イエロー */
  --bubble-color4: rgba(255, 165, 0, 0.9); /* 蛍光オレンジ */
  --bubble-color5: rgba(0, 255, 0, 0.9); /* 蛍光グリーン */
  --bubble-color-side: rgba(255, 0, 255, 0.7);
  --bubble-color-large: rgba(0, 255, 255, 0.7);
}
/* Black Theme */
.theme-black {
  --primary-bg: #000000;
  --secondary-bg: #111111;
  --accent-color: #ffffff;
  --highlight-color: #cccccc;
  --text-color: #ffffff;
  --sub-text: #aaaaaa;
  --card-bg: #1a1a1a;
  --border-color: #333333;
  --hover-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
  --hero-bg-overlay: rgba(255, 255, 255, 0.1);
  --bubble-color1: rgba(255, 255, 255, 0.7);
  --bubble-color2: rgba(255, 255, 255, 0.6);
  --bubble-color3: rgba(255, 255, 255, 0.8);
  --bubble-color4: rgba(255, 255, 255, 0.5);
  --bubble-color5: rgba(255, 255, 255, 0.9);
  --bubble-color-side: rgba(255, 255, 255, 0.6);
  --bubble-color-large: rgba(255, 255, 255, 0.5);
}

/*------------------------------------------*/
/*           Global Styles                  */
/*------------------------------------------*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", "Noto Sans Bengali", sans-serif;
  background-color: var(--primary-bg);
  color: var(--text-color);
  line-height: 1.6;
  scroll-behavior: smooth;
  position: relative;
  z-index: 0;
}

/*------------------------------------------*/
/*                Header                    */
/*------------------------------------------*/

header {
  background-color: var(--primary-bg);
  border-bottom: 2px solid var(--border-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

.header-top-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo a {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-color);
  text-decoration: none;
}

.cms-button {
  padding: 6px 12px;
  background: transparent;
  color: var(--accent-color);
  text-decoration: none;
  border: 1px solid var(--accent-color);
  border-radius: 4px;
  font-size: 0.9rem;
  transition: background 0.3s, color 0.3s;
}

.cms-button:hover {
  background: var(--accent-color);
  color: var(--primary-bg);
}

.logout-btn {
  padding: 6px 12px;
  background: transparent;
  color: var(--accent-color);
  text-decoration: none;
  border: 1px solid var(--accent-color);
  border-radius: 4px;
  font-size: 0.9rem;
  transition: background 0.3s, color 0.3s;
  margin-left: 10px;
}

.logout-btn:hover {
  background: var(--accent-color);
  color: var(--primary-bg);
}

.language-switcher {
  margin-right: 10px;
}

.header-inner {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  gap: 20px;
  justify-content: flex-start;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.main-nav a {
  background: var(--secondary-bg);
  color: var(--text-color);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.main-nav a:hover {
  background: var(--accent-color);
  color: var(--primary-bg);
}

.search-bar {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.search-bar input {
  padding: 6px 10px;
  border: 1px solid var(--border-color);
  border-radius: 20px 0 0 20px;
  outline: none;
}

.search-bar button {
  padding: 6px 14px;
  border: 1px solid var(--border-color);
  border-left: none;
  background: var(--accent-color);
  color: var(--primary-bg);
  border-radius: 0 20px 20px 0;
  cursor: pointer;
  transition: background 0.3s ease;
}

.search-bar button:hover {
  background: var(--highlight-color);
}

.hamburger {
  display: none;
  font-size: 2rem;
  color: var(--accent-color);
  cursor: pointer;
  margin-left: 10px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 10px;
  background: var(--secondary-bg);
  padding: 10px;
  border-radius: 5px;
  margin-top: 10px;
  width: 100%;
}

.mobile-nav a {
  padding: 10px;
  text-decoration: none;
  color: var(--text-color);
  font-size: 1rem;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.mobile-nav a:hover {
  background: var(--accent-color);
  color: var(--primary-bg);
}

.mobile-nav .search-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 35px;
  white-space: nowrap;
}

.mobile-nav .search-bar input,
.mobile-nav .search-bar button {
  font-size: 0.8rem;
  height: 100%;
}

/*------------------------------------------*/
/*              Hero Section                */
/*------------------------------------------*/

.hero {
  position: relative;
  height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url("https://cdn.glitch.global/7ea66fa5-0071-4fc5-b108-b27513899d5f/public%2Fimg%2Findex%2F02.png?v=1743575557505?blur=8")
    no-repeat center center/cover;
  background-attachment: fixed;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    var(--hero-bg-overlay) 0%,
    rgba(0, 234, 255, 0.2) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 20px;
  animation: fadeInUp 1.5s ease-out;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 20px;
  color: var(--primary-bg);
  text-shadow: 0 0 10px var(--accent-color);
}

.hero-content p {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-bg);
  text-shadow: 0 0 8px var(--accent-color);
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/*------------------------------------------*/
/*            Releases Grid                 */
/*------------------------------------------*/

.releases {
  max-width: 1200px;
  margin: 40px auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 0 20px;
}

.release-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.release-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 15px var(--accent-color);
}

.release-card a {
  display: block;
  text-decoration: none;
  color: var(--text-color);
}

.release-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.release-info {
  padding: 20px;
}

.release-info h2 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--accent-color);
  font-weight: 600;
}

.date {
  font-size: 0.9rem;
  color: var(--sub-text);
  margin-bottom: 10px;
}

.excerpt {
  font-size: 1rem;
  color: var(--text-color);
  font-weight: 300;
}

.tags {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--sub-text);
}

/*------------------------------------------*/
/*          Service Section                 */
/*------------------------------------------*/

.service-section {
  background-color: var(--secondary-bg);
  padding: 60px 20px;
  margin: 40px auto 0;
}

.service-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  justify-content: center;
}

.service-text {
  flex: 1 1 400px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.catch-large {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-color);
  margin-bottom: 0;
}

.catch-small {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--sub-text);
  margin-top: 0;
  margin-bottom: 10px;
}

.service-text p {
  font-size: 1rem;
  line-height: 1.8;
  text-align: justify;
  color: var(--text-color);
}

.big-gray-btn {
  background: var(--accent-color);
  color: var(--primary-bg);
  font-weight: bold;
  padding: 16px 32px;
  border-radius: 30px;
  text-decoration: none;
  display: inline-block;
  font-size: 1.1rem;
  transition: background 0.3s, transform 0.3s;
}

.big-gray-btn:hover {
  background: var(--highlight-color);
  transform: translateY(-2px);
}

.service-img {
  flex: 1 1 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.service-img img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 0 15px var(--accent-color);
}

.service-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  text-align: center;
}

.service-bottom-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-color);
}

.service-bottom-sub {
  font-size: 1rem;
  color: var(--sub-text);
  margin-top: 10px;
}

/*------------------------------------------*/
/*           Site Information               */
/*------------------------------------------*/

.site-info {
  background: var(--primary-bg);
  padding: 40px 20px;
}

.site-info .site-info-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

/*------------------------------------------*/
/*                 Footer                   */
/*------------------------------------------*/

footer {
  background: var(--secondary-bg);
  padding: 20px 0;
  text-align: center;
  border-top: 1px solid var(--border-color);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  color: var(--sub-text);
  font-size: 0.9rem;
}

.footer-nav a {
  margin: 0 10px;
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: var(--highlight-color);
}

/*------------------------------------------*/
/*               Responsive                 */
/*------------------------------------------*/

@media (max-width: 600px) {
  .header-top,
  .header-inner {
    flex-wrap: wrap;
    padding: 10px 20px;
  }

  .logo a {
    font-size: 1.6rem;
  }

  .main-nav {
    display: none;
  }

  .search-bar {
    display: none;
  }

  .hamburger {
    display: block;
    font-size: 2rem;
    color: var(--accent-color);
    cursor: pointer;
    margin-left: auto;
  }

  #menu-toggle:checked + .hamburger + .mobile-nav {
    display: flex;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

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

  .releases {
    grid-template-columns: 1fr;
  }

  .release-card img {
    height: 150px;
  }

  .release-info h2 {
    font-size: 1.2rem;
  }

  .date {
    font-size: 0.8rem;
  }

  .excerpt {
    font-size: 0.9rem;
  }

  .tags {
    font-size: 0.8rem;
  }

  .service-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .service-text,
  .service-img {
    flex: 1 1 auto;
  }

  .catch-large {
    font-size: 1.6rem;
  }

  .catch-small {
    font-size: 1rem;
  }
}

/*------------------------------------------*/
/*          Bubble Background               */
/*------------------------------------------*/

html {
  position: relative;
  z-index: 0;
}

html::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -9999;
  background: radial-gradient(circle, var(--bubble-color1) 20%, transparent 20%)
      10% 80% / 50px 50px no-repeat,
    radial-gradient(circle, var(--bubble-color2) 15%, transparent 15%) 70% 60% /
      40px 40px no-repeat,
    radial-gradient(circle, var(--bubble-color3) 25%, transparent 25%) 30% 40% /
      60px 60px no-repeat,
    radial-gradient(circle, var(--bubble-color4) 30%, transparent 30%) 50% 20% /
      80px 80px no-repeat,
    radial-gradient(circle, var(--bubble-color5) 35%, transparent 35%) 80% 10% /
      100px 100px no-repeat,
    radial-gradient(circle, var(--bubble-color-side) 25%, transparent 25%) 0%
      50% / 80px 80px no-repeat,
    radial-gradient(circle, var(--bubble-color-side) 25%, transparent 25%) 100%
      50% / 80px 80px no-repeat,
    radial-gradient(circle, var(--bubble-color-large) 40%, transparent 40%) 25%
      10% / 120px 120px no-repeat,
    radial-gradient(circle, var(--bubble-color-large) 40%, transparent 40%) 75%
      90% / 150px 150px no-repeat;
  animation: bubbleAnimation 15s linear infinite;
}

@keyframes bubbleAnimation {
  0% {
    background-position: 10% 80%, /* Bubble 1 */ 70% 60%, /* Bubble 2 */ 30% 40%,
      /* Bubble 3 */ 50% 20%, /* Bubble 4 */ 80% 10%, /* Bubble 5 */ 0% 50%,
      /* Left Bubble */ 100% 50%, /* Right Bubble */ 25% 10%,
      /* Large Bubble 1 */ 75% 90%; /* Large Bubble 2 */
  }
  50% {
    background-position: 20% 50%, /* Bubble 1 */ 60% 30%, /* Bubble 2 */ 40% 70%,
      /* Bubble 3 */ 60% 30%, /* Bubble 4 */ 90% 20%, /* Bubble 5 */ 0% 40%,
      /* Left Bubble */ 100% 60%, /* Right Bubble */ 35% 20%,
      /* Large Bubble 1 */ 85% 80%; /* Large Bubble 2 */
  }
  100% {
    background-position: 10% 80%, /* Bubble 1 */ 70% 60%, /* Bubble 2 */ 30% 40%,
      /* Bubble 3 */ 50% 20%, /* Bubble 4 */ 80% 10%, /* Bubble 5 */ 0% 50%,
      /* Left Bubble */ 100% 50%, /* Right Bubble */ 25% 10%,
      /* Large Bubble 1 */ 75% 90%; /* Large Bubble 2 */
  }
}

/*------------------------------------------*/
/*            CMS Admin Styles              */
/*------------------------------------------*/

.cms-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px 30px;
  background-color: var(--primary-bg);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  font-family: "Poppins", sans-serif;
}

.cms-container .btn,
.cms-container .cms-button,
.cms-container .toggle-btn {
  background-color: var(--accent-color);
  color: var(--primary-bg);
  border: none;
  border-radius: 20px;
  padding: 10px 20px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.cms-container .btn:hover,
.cms-container .cms-button:hover,
.cms-container .toggle-btn:hover {
  background-color: var(--highlight-color);
  transform: translateY(-2px);
}

.cms-container input,
.cms-container textarea,
.cms-container select {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
  background-color: var(--secondary-bg);
  color: var(--text-color);
}

.cms-container input:focus,
.cms-container textarea:focus,
.cms-container select:focus {
  border-color: var(--accent-color);
  outline: none;
}

.cms-container .error-message {
  color: var(--highlight-color);
  margin-top: 5px;
  font-size: 0.9rem;
}

.cms-container .cms-search {
  margin-bottom: 20px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.cms-container .cms-search input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
  background-color: var(--secondary-bg);
  color: var(--text-color);
}

.cms-container .cms-search button {
  padding: 8px 14px;
  background-color: var(--accent-color);
  color: var(--primary-bg);
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.3s ease;
  font-size: 1rem;
}

.cms-container .cms-search button:hover {
  background-color: var(--highlight-color);
}

/* Static Content */
.static-content {
  background-color: var(--primary-bg);
  color: var(--text-color);
  padding: 20px;
  margin: 20px auto;
  max-width: 900px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  line-height: 1.8;
}

.static-content a {
  color: var(--accent-color);
  text-decoration: underline;
}

/*------------------------------------------*/
/*          Contact Page Styles             */
/*------------------------------------------*/

.contact-section {
  max-width: 700px;
  margin: 60px auto;
  padding: 40px;
  background: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  font-size: 1rem;
}

.contact-section h1 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--accent-color);
}

.contact-section p.intro {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 30px;
  color: var(--sub-text);
}

.form-box {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  background: var(--secondary-bg);
}

.form-box h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--accent-color);
  font-weight: 600;
}

.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-color);
}

.form-group input,
.form-group textarea {
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-size: 1rem;
  background: var(--secondary-bg);
  color: var(--text-color);
  transition: border 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-color);
  outline: none;
}

.contact-section button {
  display: inline-block;
  padding: 14px 24px;
  background: var(--accent-color);
  color: var(--primary-bg);
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
  margin-top: 10px;
}

.contact-section button:hover {
  background: var(--highlight-color);
}

.error-message {
  color: var(--highlight-color);
  font-size: 0.9rem;
  margin-top: 5px;
}


/* ====== Mobile (～768px) の最適化 ====== */
@media (max-width: 768px) {
  .categories {
    margin: 20px auto;
    padding: 0 16px;
  }

  /* 1列表示にする */
  .category-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* 見出しも少しだけ小さく */
  .categories h1 {
    font-size: 1.8rem;
    margin-bottom: 18px;
  }

  /* カード内余白と文字サイズを控えめに */
  .category-info {
    padding: 14px;
  }
  .category-info h2 {
    font-size: 1.1rem;   /* ← タイルタイトルを小さく */
    font-weight: 600;
  }
  .category-info p {
    font-size: 0.9rem;   /* ← 説明文も少し小さく */
    line-height: 1.6;
  }

  /* 画像は縦を少し詰める（必要に応じて調整） */
  .category-card img {
    height: 160px;
    object-fit: cover;
  }

  /* スマホはホバー演出をオフ（誤タップ防止） */
  .category-card:hover {
    transform: none;
    box-shadow: none;
  }
}