@tailwind base;
@tailwind components;
@tailwind utilities;

/*

水色：#63B7D2
*/


#message{
	overflow:hidden;
}


/* コンタクトフォームのテーブルデザイン */
.table_design01 {
  width: 100%;
  margin-bottom: 2rem;
}

.table_design01 table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.table_design01 th,
.table_design01 td {
  padding: 1.2rem;
  border-bottom: 1px solid rgba(100, 116, 139, 0.1);
}

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

.table_design01 th {
  width: 30%;
  text-align: left;
  font-weight: 600;
  background-color: rgba(99, 183, 210, 0.1);
  color: #1E293B;
  position: relative;
}

.table_design01 td {
  background-color: #fff;
}

/* 会社情報テーブルデザイン - グレー系モダンスタイル */
.table_design02 {
  width: 100%;
  margin: 2rem 0;
}

.table_design02 table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  background: #fff;
}

.table_design02 th,
.table_design02 td {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(100, 116, 139, 0.12);
}

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

.table_design02 th {
  width: 25%;
  text-align: left;
  font-weight: 600;
  background-color: #F1F5F9;
  color: #334155;
  position: relative;
  font-size: 0.95rem;
}

.table_design02 td {
  background-color: #FFFFFF;
  color: #1E293B;
  line-height: 1.8;
}

.table_design02 tr:hover td {
  background-color: #F8FAFC;
  transition: background-color 0.3s ease;
}

/* フォーム要素のスタイル */
.table_design01 input[type="text"],
.table_design01 input[type="tel"],
.table_design01 input[type="email"],
.table_design01 select,
.table_design01 textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.table_design01 input[type="text"]:focus,
.table_design01 input[type="tel"]:focus,
.table_design01 input[type="email"]:focus,
.table_design01 select:focus,
.table_design01 textarea:focus {
  outline: none;
  border-color: #63B7D2;
  box-shadow: 0 0 0 3px rgba(99, 183, 210, 0.2);
}

.table_design01 textarea {
  min-height: 120px;
  resize: vertical;
}

/* チェックボックスのスタイル */
.table_design01 input[type="checkbox"] {
  margin-right: 0.5rem;
  transform: scale(1.2);
}

/* 送信ボタンのスタイル */
.table_design01 input[type="submit"] {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 2rem auto 0;
  padding: 1rem 2rem;
  background: linear-gradient(to right, #3B82F6, #6366F1);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.table_design01 input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .table_design01 table,
  .table_design01 tbody,
  .table_design01 tr,
  .table_design01 th,
  .table_design01 td {
    display: block;
    width: 100%;
  }
  
  .table_design01 th {
    padding: 0.8rem 1rem;
    border-bottom: none;
  }
  
  .table_design01 td {
    padding: 1rem;
  }
  
  .table_design01 tr {
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(100, 116, 139, 0.1);
  }
  
  .table_design01 tr:last-child {
    border-bottom: none;
  }
  
  /* table_design02のレスポンシブ対応 */
  .table_design02 table,
  .table_design02 tbody,
  .table_design02 tr,
  .table_design02 th,
  .table_design02 td {
    display: block;
    width: 100%;
  }
  
  .table_design02 th {
    padding: 0.8rem 1rem;
    border-bottom: none;
    background-color: #F8FAFC;
  }
  
  .table_design02 td {
    padding: 1rem;
  }
  
  .table_design02 tr {
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(100, 116, 139, 0.12);
  }
  
  .table_design02 tr:last-child {
    border-bottom: none;
  }
  
  .table_design02 tr:hover td {
    background-color: transparent;
  }
}

/* ページネーションスタイル */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  font-weight: 500;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  color: #1E293B;
  background-color: #F1F5F9;
}

.pagination .page-numbers.current {
  color: white;
  background: linear-gradient(to right, #3B82F6, #6366F1);
  box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.2);
}

.pagination .page-numbers:hover:not(.current) {
  background-color: #E2E8F0;
  transform: translateY(-2px);
}

.pagination .prev,
.pagination .next {
  padding: 0 1rem;
}

.pagination .dots {
  background: none;
}

/* 記事一覧のスタイル */
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.aspect-w-16 {
  position: relative;
  padding-bottom: 56.25%;
}

.aspect-h-9 {
  position: relative;
}

.aspect-w-16 img,
.aspect-h-9 img {
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  object-fit: cover;
}

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

.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

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

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

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

.animate-float-slow {
  animation: float-slow 6s ease-in-out infinite;
}

.animate-float-normal {
  animation: float-normal 4s ease-in-out infinite;
}

.animate-float-fast {
  animation: float-fast 3s ease-in-out infinite;
}

/* カスタムスタイル */
.footer-logo img {
    filter: drop-shadow(0 0 25px rgba(255, 255, 255, 1.9));
    transition: filter 0.3s ease;
}

.footer-logo img:hover {
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 2.7));
}

/* バナーボックス */
.banner-box {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(8px);
    margin-top: 1.5rem;
}

.banner-box a {
    transition: transform 0.3s ease, filter 0.3s ease;
    background-color: #fff;
}

.banner-box a:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.banner-box img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

/* ハンバーガーメニュー */
.menu-toggle {
    position: relative;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 100;
}

.menu-toggle span {
    display: block;
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #1E293B;
    transition: all 0.3s ease;
}

.menu-toggle span:nth-child(1) {
    top: 4px;
}

.menu-toggle span:nth-child(2) {
    top: 14px;
}

.menu-toggle span:nth-child(3) {
    bottom: 4px;
}

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

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

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

/* モバイルナビゲーション */
@media (max-width: 768px) {
    .mobile-nav {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        padding: 1rem;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        z-index: 50;
    }

    .mobile-nav.active {
        display: block;
    }

    .mobile-nav a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid #e5e7eb;
    }

    .mobile-nav a:last-child {
        border-bottom: none;
    }
}