/* カスタムCSS - bitwin Event Division - アメコミ風デザイン */
:root {
  /* アメコミ風カラーパレット */
  --primary-color: #ff3366;
  --secondary-color: #00ccff;
  --accent-color: #ffff00;
  --purple-accent: #8a2be2;
  --blue-accent: #0066ff;
  --green-accent: #00ff66;
  --orange-accent: #ff6600;
  --red-accent: #ff0033;

  /* コミック風背景色 */
  --comic-bg-1: #ffe6e6;
  --comic-bg-2: #e6f7ff;
  --comic-bg-3: #fffacd;
  --comic-bg-4: #f0fff0;

  /* アメコミ風グラデーション */
  --gradient-primary: linear-gradient(45deg, #ff3366, #ffff00, #00ccff);
  --gradient-secondary: linear-gradient(135deg, #8a2be2, #ff6600);
  --gradient-accent: linear-gradient(90deg, #ff0033, #ffff00, #00ff66);

  /* フォント */
  --font-primary: "M PLUS Rounded 1c", "Comic Sans MS", "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", "Meiryo", sans-serif;
  --font-secondary: "M PLUS Rounded 1c", "Comic Sans MS", "Hiragino Sans",
    sans-serif;

  /* その他 */
  --border-radius: 15px;
  --comic-border: 4px solid #000;
  --shadow: 6px 6px 0px #000;
  --shadow-hover: 8px 8px 0px #000;
  --dot-pattern: radial-gradient(circle, #000 1px, transparent 1px);
}

/* ベーススタイル */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: #000;
  overflow-x: hidden;
  background: #fff;
  background-image: var(--dot-pattern);
  background-size: 20px 20px;
  background-attachment: fixed;
}

/* ヒーローセクション専用のコンテナリセット */
.hero-section .container,
.hero-section .container-fluid {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

/* アメコミ風吹き出し効果 */
.comic-bubble::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 20px;
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-bottom: 15px solid #fff;
  z-index: 10;
}

.comic-bubble::after {
  content: "";
  position: absolute;
  top: -14px;
  left: 16px;
  width: 0;
  height: 0;
  border-left: 19px solid transparent;
  border-right: 19px solid transparent;
  border-bottom: 19px solid #000;
  z-index: 9;
}

/* ナビゲーション */
.navbar {
  background: #fff !important;
  border-bottom: var(--comic-border);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  padding: 1rem 0;
  position: relative;
}

.navbar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--dot-pattern);
  background-size: 10px 10px;
  opacity: 0.1;
  z-index: -1;
}

.navbar-brand {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary-color) !important;
  transition: all 0.3s ease;
  text-shadow: 3px 3px 0px #000;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.navbar-logo {
  width: 70px;
  height: 70px;
  transition: all 0.3s ease;
  /*
    border-radius: 50%;
    border: 3px solid #000;
    box-shadow: 3px 3px 0px #000;
    */
}

.brand-text {
  display: inline-block;
  font-family: "Bungee", "Fredoka One", "M PLUS Rounded 1c", cursive;
  font-size: 1.6rem;
  background: linear-gradient(45deg, #ffd700, #ffa500, #ff6347);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(4px 4px 0px #000) drop-shadow(-1px -1px 0px #000)
    drop-shadow(1px -1px 0px #000) drop-shadow(-1px 1px 0px #000);
  letter-spacing: 1px;
  transform: rotate(-1deg);
  font-weight: 400;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.navbar-brand:hover .navbar-logo {
  transform: scale(1.1) rotate(5deg);
}

.nav-link {
  font-weight: 700;
  color: #000 !important;
  margin: 0.25rem 0;
  padding: 0.75rem 1.5rem !important;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  display: block;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 3px solid transparent;
  background: #fff;
  position: relative;
  overflow: hidden;
}

.nav-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  transition: all 0.3s ease;
  z-index: -1;
}

.nav-link:hover,
.nav-link:focus {
  border-color: #000;
  color: #333 !important;
  transform: translateY(-3px);
  box-shadow: 3px 3px 0px #000;
}

.nav-link:hover::before,
.nav-link:focus::before {
  left: 0;
}

/* ハンバーガーメニューボタンのスタイリング */
.navbar-toggler {
  border: var(--comic-border);
  border-radius: var(--border-radius);
  padding: 0.75rem;
  transition: all 0.3s ease;
  background: var(--accent-color);
  position: relative;
  z-index: 1001;
}

.navbar-toggler::before {
  content: "MENU";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: #fff;
  padding: 4px 12px;
  border: 2px solid #000;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 900;
  opacity: 0;
  transition: all 0.3s ease;
  white-space: nowrap;
  z-index: 1002;
  margin-top: 5px;
}

.navbar-toggler:hover::before {
  opacity: 1;
  margin-top: 8px;
}

.navbar-toggler:hover {
  background: var(--primary-color);
  transform: scale(1.1) rotate(5deg);
  box-shadow: var(--shadow);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem var(--accent-color);
}

/* ハンバーガーメニューの背景 */
.navbar-collapse {
  background: #fff;
  border: var(--comic-border);
  margin-top: 1rem;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 999;
}

/* ハンバーガーメニューのアニメーション */
.navbar-collapse.collapsing {
  animation: slideDown 0.3s ease-out;
}

.navbar-collapse.show {
  animation: fadeIn 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ヒーローセクション */
.hero-section {
  width: 100vw;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.hero-section .container {
  width: 100%;
  margin: 0;
  padding: 0;
  max-width: none;
}

.hero-image-wrapper {
  width: 100%;
  position: relative;
  margin: 0;
  padding: 0;
}

.hero-image-full {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
  padding: 0;
}

.hero-background {
  background: transparent;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-title {
  font-size: 3rem;
  font-weight: 900;
  color: #000;
  text-shadow: none;
  margin-bottom: 1.5rem;
  animation: bounceIn 1s ease-out;
  text-transform: uppercase;
  letter-spacing: 3px;
  position: relative;
  z-index: 10;
}

.text-highlight {
  color: #000;
}

.text-accent {
  color: var(--primary-color);
  font-size: 1.3em;
  position: relative;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #666;
  text-shadow: none;
  animation: slideInUp 1s ease-out 0.3s both;
  background: transparent;
  padding: 0;
  border: none;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  margin-bottom: 2rem;
}

/* セクション共通 */
section {
  padding: 5rem 0;
  position: relative;
}

section:nth-child(even) {
  background: var(--comic-bg-1);
}

section:nth-child(odd) {
  background: var(--comic-bg-2);
}

section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--dot-pattern);
  background-size: 15px 15px;
  opacity: 0.1;
  z-index: -1;
}

.section-title {
  font-size: 3rem;
  font-weight: 900;
  color: #000;
  margin-bottom: 1rem;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.section-title::before {
  content: "";
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 240px;
  height: 120px;
  position: absolute;
  top: -60px;
  right: -20px;
  transform: rotate(10deg);
}

/* 各セクションタイトル用の個別画像設定 */
/* 私たちについて */
#about .section-title::before {
  background-image: url("../image/wow.png");
}

/* コンセプト */
#concept .section-title::before {
  background-image: url("../image/yes.png");
}

/* 最新情報 */
#news .section-title::before {
  background-image: url("../image/new.png");
}

/* サービス紹介 */
#services .section-title::before {
  background-image: url("../image/cool.png");
}

/* 主なプロダクト */
#products .section-title::before {
  background-image: url("../image/oops.png");
}

/* チームメンバー */
#team .section-title::before {
  background-image: url("../image/go.png");
}

/* お問い合わせ */
#contact .section-title::before {
  background-image: url("../image/check.png");
}

.section-divider {
  width: 100px;
  height: 8px;
  background: var(--gradient-accent);
  margin: 0 auto 2rem;
  border-radius: 4px;
  border: 2px solid #000;
  position: relative;
}

.section-divider::before {
  content: "★★★";
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--orange-accent);
  font-size: 1.2rem;
}

.section-subtitle {
  font-size: 1.2rem;
  color: #000;
  margin-bottom: 3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* アバウトセクション */
#about .about-content {
  background: #fff;
  padding: 3rem;
  border-radius: var(--border-radius);
  border: var(--comic-border);
  box-shadow: var(--shadow);
  position: relative;
  overflow: visible;
}

#about .about-content::before {
  content: "⚡";
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 2rem;
  animation: bounce 2s ease-in-out infinite;
  z-index: 5;
}

#about .about-content::after {
  content: "🌟";
  position: absolute;
  bottom: 15px;
  left: 15px;
  font-size: 2rem;
  animation: twinkle 1.5s ease-in-out infinite;
  z-index: 5;
}

#about .about-content::after {
  content: "💥";
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  animation: pulse 2s ease-in-out infinite;
}

/* コンセプトセクション */
.concept-item {
  background: #fff;
  padding: 2rem;
  border-radius: var(--border-radius);
  border: var(--comic-border);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  margin-bottom: 1rem;
  position: relative;
}

.concept-item::before {
  content: "WOW!";
  position: absolute;
  top: -10px;
  right: -10px;
  background: var(--primary-color);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 900;
  border: 2px solid #000;
  transform: rotate(15deg);
}

.concept-item:hover {
  transform: translateY(-8px) rotate(2deg);
  box-shadow: var(--shadow-hover);
}

.concept-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border: var(--comic-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
  flex-shrink: 0;
  text-shadow: 2px 2px 0px #000;
  position: relative;
}

.concept-icon::before {
  content: "";
  position: absolute;
  top: -5px;
  right: -5px;
  width: 20px;
  height: 20px;
  background: var(--accent-color);
  border: 2px solid #000;
  border-radius: 50%;
}

/* 好奇心の図 */
.concept-diagram {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.2s forwards;
}

.curiosity-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  animation: curiosityFloat 4s ease-in-out infinite;
  transition: transform 0.3s ease;
}

.curiosity-image:hover {
  transform: scale(1.05);
  animation-play-state: paused;
}

/* サービスカード */
.service-card {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0.1;
  transition: all 0.3s ease;
  z-index: -1;
}

.service-card:hover::before {
  left: 0;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-color);
  border: var(--comic-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: #fff;
  font-size: 2rem;
  transition: all 0.3s ease;
  text-shadow: 2px 2px 0px #000;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

.service-card p {
  text-align: left;
}

/* プロダクトカード */
.product-card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.product-image {
  position: relative;
  overflow: hidden;
}

.product-image img {
  transition: all 0.3s ease;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

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

.product-content {
  padding: 2rem;
}

.product-content h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* チームカード */
.team-card {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.team-image {
  margin-bottom: 1.5rem;
}

.team-image img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  transition: all 0.3s ease;
  border: 5px solid transparent;
  background: var(--gradient-primary);
  background-clip: padding-box;
}

.team-card:hover .team-image img {
  transform: scale(1.05);
}

.team-role {
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 1rem;
}
.team-content p {
  text-align: center;
}

/* コンタクトフォーム */
.contact-form {
  background: white;
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.form-label {
  font-weight: 500;
  color: #333;
  margin-bottom: 0.5rem;
}

.form-control,
.form-select {
  border: 2px solid #e9ecef;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
  font-family: var(--font-primary);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(255, 107, 157, 0.25);
}

/* ボタン */
.btn {
  border-radius: var(--border-radius);
  font-weight: 900;
  padding: 1rem 2.5rem;
  transition: all 0.3s ease;
  border: var(--comic-border);
  text-decoration: none;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0px;
  position: relative;
  box-shadow: var(--shadow);
}

.btn::before {
  content: "↙️";
  position: absolute;
  top: 5px;
  right: 10px;
  font-size: 1.2rem;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 10;
}

.btn:hover::before {
  opacity: 1;
  animation: bounce 0.6s ease-in-out;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  text-shadow: 2px 2px 0px #000;
}

.btn-primary:hover {
  background: var(--gradient-secondary);
  transform: translateY(-5px) rotate(-2deg);
  box-shadow: var(--shadow-hover);
  color: #fff;
}

.btn-primary:hover i {
  animation: bounce 0.6s ease-in-out;
}

.btn-outline-primary {
  color: var(--primary-color);
  border: var(--comic-border);
  background: #fff;
  text-shadow: none;
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  color: #fff;
  transform: translateY(-5px) rotate(2deg);
  text-shadow: 2px 2px 0px #000;
}

.btn-lg {
  padding: 1.25rem 3.5rem;
  font-size: 1.2rem;
}

/* フッター */
.footer {
  background: linear-gradient(135deg, #2d3436, #636e72);
  color: white;
}

.footer-title {
  color: var(--accent-color);
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-logo {
  text-align: center;
}

.footer-logo-img {
  max-width: 200px;
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
}

.footer-address {
  opacity: 0.9;
  margin-bottom: 1rem;
}

.footer-email {
  opacity: 0.9;
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.social-link {
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
}

.social-link:hover {
  color: var(--accent-color);
  transform: translateX(10px);
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.2);
  margin: 2rem 0;
}

.footer-copyright {
  opacity: 0.7;
  margin: 0;
}

/* アニメーション */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3) rotate(-10deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.05) rotate(2deg);
  }
  70% {
    transform: scale(0.9) rotate(-1deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes bounce {
  0%,
  20%,
  53%,
  80%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  40%,
  43% {
    transform: translate3d(0, -20px, 0);
  }
  70% {
    transform: translate3d(0, -10px, 0);
  }
  90% {
    transform: translate3d(0, -4px, 0);
  }
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2) rotate(180deg);
  }
}

@keyframes pop {
  0% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.2) rotate(5deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes curiosityFloat {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-8px) rotate(1deg);
  }
  50% {
    transform: translateY(-15px) rotate(0deg);
  }
  75% {
    transform: translateY(-8px) rotate(-1deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .hero-section {
    height: 40vh;
    background-size: cover;
    background-position: center;
  }

  .navbar-brand {
    font-size: 1.4rem;
    gap: 10px;
  }

  .navbar-logo {
    width: 60px;
    height: 60px;
  }

  .brand-text {
    font-size: 1.2rem;
    letter-spacing: 0.5px;
  }

  .navbar-collapse {
    margin-top: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-hover);
  }

  .nav-link {
    padding: 1rem !important;
    margin: 0.5rem 0;
    font-size: 1.1rem;
  }

  .hero-title {
    font-size: 2rem;
  }

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

  .section-title {
    font-size: 2rem;
  }

  section {
    padding: 3rem 0;
  }

  .concept-diagram {
    height: 300px;
  }

  .curiosity-center {
    width: 250px;
    height: 250px;
  }

  .center-circle {
    width: 100px;
    height: 100px;
    font-size: 1.2rem;
  }

  .emotion-bubble {
    width: 60px;
    height: 60px;
    font-size: 0.8rem;
  }

  .contact-form {
    padding: 2rem;
  }

  .social-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
  }

  /* News responsive styles */
  .news-image {
    height: 180px;
  }

  .news-content {
    padding: 1rem;
  }

  .news-title {
    font-size: 1rem;
  }

  .news-excerpt {
    font-size: 0.85rem;
  }

  .news-read-more {
    font-size: 0.85rem;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }

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

  .about-content {
    padding: 2rem;
  }

  .service-card,
  .team-card {
    padding: 1.5rem;
  }

  .concept-diagram {
    height: 250px;
  }

  .curiosity-center {
    width: 200px;
    height: 200px;
  }

  .center-circle {
    width: 80px;
    height: 80px;
    font-size: 1rem;
  }

  .emotion-bubble {
    width: 50px;
    height: 50px;
    font-size: 0.7rem;
  }

  /* フッターのレスポンシブ */
  .footer-logo {
    text-align: center;
    margin-bottom: 2rem;
  }

  .footer-logo-img {
    max-width: 150px;
  }
}

/* ニュースセクション */
.news-card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.news-image {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

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

.news-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.news-link:hover {
  text-decoration: none;
  color: inherit;
}

.news-content {
  padding: 1.5rem;
}

.news-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.news-excerpt {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.news-read-more {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}

.news-read-more:hover {
  color: var(--secondary-color);
  text-decoration: none;
}

.news-read-more i {
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.news-card:hover .news-read-more i {
  transform: translateX(3px);
}

/* News Overlay Effect */
.news-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.news-card:hover .news-overlay {
  opacity: 1;
}

.news-overlay i {
  color: white;
  font-size: 2rem;
}

.news-date {
  color: var(--primary-color);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

/* スムーズスクロール */
html {
  scroll-behavior: smooth;
}

/* ローディングアニメーション */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* カスタムアラート */
.custom-alert {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-hover);
  animation: slideInRight 0.3s ease-out;
  max-width: 400px;
}

.alert-content {
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  color: white;
  font-weight: 500;
  position: relative;
}

.alert-success .alert-content {
  background: var(--green-accent);
}

.alert-error .alert-content {
  background: #e74c3c;
}

.alert-info .alert-content {
  background: var(--blue-accent);
}

.alert-close {
  background: none;
  border: none;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  margin-left: auto;
  padding: 0;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.alert-close:hover {
  opacity: 1;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* バックトゥトップボタン */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: #fff;
  border: var(--comic-border);
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  text-shadow: 2px 2px 0px #000;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: var(--shadow-hover);
}

/* スクロールアニメーション */
.animate-in {
  animation: fadeInUp 0.6s ease-out;
}

/* ニュースカードの初期状態 */
.news-card {
  opacity: 0;
  transform: translateY(20px);
}

/* 追加のアニメーション効果 */
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.pulse-animation {
  animation: pulse 2s infinite;
}

/* ホバー効果の改善 */
.service-card:hover .service-icon,
.product-card:hover,
.team-card:hover {
  animation: pulse 0.6s ease-in-out;
}

/* レスポンシブでのアラート位置調整 */
@media (max-width: 768px) {
  .custom-alert {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }
}

.lead {
  font-weight: 500 !important;
}

/* ================================================
   Blog Page Styles
   ================================================ */

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--comic-bg-1), var(--comic-bg-2));
  margin-top: 80px;
}

.page-title {
  font-family: var(--font-primary);
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
  text-shadow: 2px 2px 0px #000;
}

.page-subtitle {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 2rem;
}

/* Blog Search Form */
.blog-search-form {
  margin-bottom: 3rem;
}

.blog-search-form .input-group {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.blog-search-form .form-control {
  border: none;
  padding: 15px 20px;
  font-size: 1.1rem;
  background: white;
}

.blog-search-form .form-control:focus {
  box-shadow: none;
  border-color: var(--primary-color);
}

.blog-search-form .btn {
  padding: 15px 25px;
  border: none;
  background: var(--primary-color);
  color: white;
  font-weight: 600;
}

.blog-search-form .btn:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

/* Blog Cards */
.blog-card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
  position: relative;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.blog-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.blog-link:hover {
  text-decoration: none;
  color: inherit;
}

.blog-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

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

.blog-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.blog-card:hover .blog-overlay {
  opacity: 1;
}

.blog-overlay i {
  color: white;
  font-size: 2rem;
}

.blog-content {
  padding: 2rem;
}

.blog-date {
  color: var(--primary-color);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.blog-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
  line-height: 1.4;
  height: 3.08rem; /* 2行分の高さ (1.1rem * 1.4 * 2) */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.blog-excerpt {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  height: 4.8rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
}

.blog-read-more {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.blog-card:hover .blog-read-more {
  color: var(--secondary-color);
  transform: translateX(5px);
}

/* Pagination */
.pagination {
  margin-top: 3rem;
}

.pagination .page-link {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  font-weight: 600;
  padding: 10px 15px;
  margin: 0 5px;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
}

.pagination .page-item.active .page-link {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.pagination .page-link:hover {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  color: white;
  transform: translateY(-2px);
}

.pagination .page-item.disabled .page-link {
  color: #999;
  border-color: #ddd;
  background: transparent;
}

/* No Posts Message */
.no-posts i {
  opacity: 0.5;
}

.no-posts h3 {
  color: #666;
  margin-bottom: 1rem;
}

/* Error Message */
.error-message i {
  opacity: 0.7;
}

.error-message h3 {
  color: #666;
  margin-bottom: 1rem;
}

/* Loading */
.loading {
  color: #666;
}

.loading .spinner-border {
  width: 3rem;
  height: 3rem;
}

/* Responsive Design for Blog */
@media (max-width: 768px) {
  .page-title {
    font-size: 2.5rem;
  }

  .page-subtitle {
    font-size: 1rem;
  }

  .blog-card {
    margin-bottom: 2rem;
  }

  .blog-image {
    height: 200px;
  }

  .blog-content {
    padding: 1.5rem;
  }

  .blog-title {
    font-size: 1rem;
    height: auto;
    -webkit-line-clamp: none;
    line-clamp: none;
  }

  .blog-excerpt {
    height: auto;
    -webkit-line-clamp: none;
    line-clamp: none;
  }

  .pagination .page-link {
    padding: 8px 12px;
    margin: 0 2px;
  }
}

/* ================================================
   Product Page Styles
   ================================================ */

/* Product Section */
.products-section {
  background: var(--comic-bg-1);
  min-height: 60vh;
}

.product-card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.product-link:hover {
  text-decoration: none;
  color: inherit;
}

.product-image {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

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

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.product-card:hover .product-overlay {
  opacity: 1;
}

.product-overlay i {
  color: white;
  font-size: 2rem;
}

.product-content {
  padding: 1.5rem;
}

.product-date {
  color: var(--primary-color);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.product-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
  line-height: 1.4;
  height: 3.08rem; /* 2行分の高さ (1.1rem * 1.4 * 2) */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-excerpt {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  height: 4.8rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
}

.product-read-more {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}

.product-read-more i {
  transition: transform 0.3s ease;
}

.product-card:hover .product-read-more i {
  transform: translateX(3px);
}

/* Responsive Design for Product */
@media (max-width: 768px) {
  .product-image {
    height: 180px;
  }

  .product-content {
    padding: 1rem;
  }

  .product-title {
    font-size: 1rem;
    height: auto;
    -webkit-line-clamp: none;
    line-clamp: none;
  }

  .product-excerpt {
    font-size: 0.85rem;
    height: auto;
    -webkit-line-clamp: none;
    line-clamp: none;
  }

  .product-read-more {
    font-size: 0.85rem;
  }
}

/* ================================================
   Article Detail Page Styles
   ================================================ */

/* Breadcrumb */
.breadcrumb-section {
  background: var(--comic-bg-1);
  border-bottom: 1px solid #eee;
}

.breadcrumb-item a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.breadcrumb-item a:hover {
  color: var(--secondary-color);
}

.breadcrumb-item.active {
  color: #666;
}

/* Article Section */
.article-section {
  min-height: 60vh;
}

/* Article Container with White Background */
#article-container {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  padding: 3rem;
  margin: 2rem 0;
}

.article-header {
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 2rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: #666;
  font-size: 0.95rem;
}

.article-meta i {
  color: var(--primary-color);
}

.article-title {
  font-family: var(--font-primary);
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

.article-featured-image {
  text-align: center;
}

.article-featured-image img {
  max-height: 400px;
  width: 100%;
  object-fit: cover;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Article Body */
.article-body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.article-body p {
  margin-bottom: 1.5rem;
}

.article-body img {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin: 2rem 0;
}

.article-body blockquote {
  border-left: 4px solid var(--primary-color);
  background: var(--comic-bg-1);
  padding: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.article-body ul,
.article-body ol {
  padding-left: 2rem;
  margin-bottom: 1.5rem;
}

.article-body li {
  margin-bottom: 0.5rem;
}

/* Article Footer */
.article-footer {
  background: var(--comic-bg-1);
  padding: 2rem;
  border-radius: var(--border-radius);
  margin-top: 3rem;
}

.social-share {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.social-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.social-share-btn:hover {
  transform: translateY(-2px);
  color: white;
  text-decoration: none;
}

.social-share-btn[href*="twitter"] {
  background: #1da1f2;
}

.social-share-btn[href*="facebook"] {
  background: #3b5998;
}

.social-share-btn[href*="line"] {
  background: #00c300;
}

/* Related Articles */
.related-articles {
  margin-top: 3rem;
}

.related-article-card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
}

.related-article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.related-article-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.related-article-link:hover {
  text-decoration: none;
  color: inherit;
}

.related-article-image {
  height: 180px;
  overflow: hidden;
}

.related-article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.related-article-card:hover .related-article-image img {
  transform: scale(1.05);
}

.related-article-content {
  padding: 1.25rem;
}

.related-article-date {
  color: var(--primary-color);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.related-article-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  color: #333;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
}

.related-article-excerpt {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  word-break: break-word;
  margin-bottom: 1rem;
}

.read-more-link {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}

.related-article-card:hover .read-more-link {
  color: var(--secondary-color);
}

.read-more-link i {
  transition: transform 0.3s ease;
}

.related-article-card:hover .read-more-link i {
  transform: translateX(3px);
}

/* Responsive Design for Article */
@media (max-width: 768px) {
  #article-container {
    padding: 2rem 1.5rem;
    margin: 1rem 0;
  }

  .article-title {
    font-size: 2rem;
  }

  .article-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  .article-body {
    font-size: 1rem;
  }

  .article-footer {
    padding: 1.5rem;
  }

  .social-share {
    margin-top: 1rem;
    justify-content: center;
    white-space: nowrap;
  }

  .related-article-content {
    padding: 1rem;
  }

  .related-article-title {
    height: auto;
    -webkit-line-clamp: none;
    line-clamp: none;
  }

  .related-article-excerpt {
    height: auto;
    -webkit-line-clamp: none;
    line-clamp: none;
  }
}

/* Comic Style Link Button */
.btn-comic-link {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #ff6b6b 100%);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-family: "Bungee", "M PLUS Rounded 1c", sans-serif;
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(255, 59, 148, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border: 3px solid #fff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-comic-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.btn-comic-link:hover::before {
  left: 100%;
}

.btn-comic-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 59, 148, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  color: white;
  text-decoration: none;
}

.btn-comic-link:hover .btn-comic-text {
  transform: scale(1.05);
}

.btn-comic-link .btn-comic-text {
  transition: transform 0.3s ease;
}

.btn-comic-link i {
  transition: transform 0.3s ease;
}

.btn-comic-link:hover i {
  transform: translateX(3px);
}
