@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500&family=Poppins:wght@600&display=swap');

:root {
  --primary-text-color: #333333;
  --secondary-text-color: #777777;
  --background-color: #FDFDFD;
  --surface-color: #FFFFFF;
  --accent-color-1: #5D9B9B; /* Teal Green */
  --accent-color-2: #E78B7F; /* Coral Pink */
  --border-color: #EAEAEA;
}

/* ↓↓↓ OSのダークモード設定の影響を避けるための修正点 ↓↓↓ */
html {
  color-scheme: light;
}

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

body {
  font-family: 'Noto Sans JP', sans-serif;
  background-color: var(--background-color);
  color: var(--primary-text-color);
  line-height: 1.8;
  overflow-x: hidden;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ヘッダー */
.site-header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 20px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--primary-text-color);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}
.logo a:hover {
  transform: scale(1.01) translateX(2px);
}
.logo a img{
  height: 30px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

.main-nav a {
  color: var(--secondary-text-color);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.main-nav a:hover {
  color: var(--accent-color-1);
}

.auth-links a {
  margin-left: 15px;
  padding: 8px 18px;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  text-decoration: none;
  color: var(--accent-color-1);
  font-weight: 500;
  transition: all 0.3s ease;
}

.auth-links a.register {
  background-color: var(--accent-color-1);
  color: #fff;
  border-color: var(--accent-color-1);
}

.auth-links a:hover:not(.register) {
  background-color: #f5f5f5;
}

.auth-links a.register:hover {
  background-color: #4a7c7c;
  border-color: #4a7c7c;
}

/* ヒーローセクション */
.hero {
  padding: 180px 20px 80px;
  text-align: center;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  line-height: 1.3;
  margin-bottom: 20px;
  color: var(--primary-text-color);
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--secondary-text-color);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* 検索フォーム */
.search-form {
  display: flex;
  justify-content: center;
  gap: 10px;
  max-width: 600px;
  margin: 0 auto;
  background-color: var(--surface-color);
  padding: 10px;
  border-radius: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
}

.search-input {
  width: 100%;
  padding: 10px 20px;
  font-size: 16px;
  background-color: transparent;
  border: none;
  outline: none;
  color: var(--primary-text-color);
}

.search-button {
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 500;
  background-color: var(--accent-color-2);
  color: #fff;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.search-button:hover {
  background-color: #d67a6f;
  transform: scale(1.03);
}

/* 特長セクション */
.features {
  padding: 80px 0;
  background-color: #fff;
}

.features h2 {
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  margin-bottom: 60px;
}

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

.feature-item {
  text-align: center;
  padding: 20px;
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
  fill: var(--accent-color-1);
}

.feature-item h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.feature-item p {
  color: var(--secondary-text-color);
}

/* フッター */
.site-footer {
  padding: 40px 0;
  text-align: center;
  background-color: #f5f5f5;
}

.site-footer p {
  color: var(--secondary-text-color);
  font-size: 14px;
}

.site-footer a {
  color: var(--secondary-text-color);
}
.site-footer a:hover {
  color: var(--accent-color-1);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .header-inner {
  flex-direction: column;
  gap: 20px;
  }
  .hero {
  padding-top: 200px;
  }
  .hero-content h1 {
  font-size: 2.2rem;
  }
  .hero-content p {
  font-size: 1rem;
  }
  .search-form {
  flex-direction: column;
  border-radius: 20px;
  padding: 15px;
  }
  .search-input {
  text-align: center;
  }
}

/* 検索結果カード */
.search-results-container {
  margin-top: 40px;
  padding: 0 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.result-card {
  position: relative;
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 25px;
  margin-bottom: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.result-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.result-card-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.result-card-title a {
  color: var(--accent-color-1);
  text-decoration: none;
  transition: color 0.3s ease;
}

.result-card-title a:hover {
  color: #4a7c7c;
}

.result-card-description {
  color: var(--secondary-text-color);
  font-size: 1rem;
  line-height: 1.6;
}

.like-button {
  position: absolute;
  cursor: pointer;
  top: 10px;
  right: 10px;
  background-color: var(--accent-color-1);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  padding: 2px 3px;
  font-size: 14px;
  display: inline-block;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;

  -webkit-tap-highlight-color: transparent;
}

.like-button:hover {
  filter: brightness(1.2);
}

.like-heart {
  position: absolute;
  font-size: 24px;
  color: red;
  pointer-events: none;
  animation: floatUp 1s ease-out forwards;
}

@keyframes floatUp {
  0% { opacity: 1; transform: translate(0,0) scale(0.5); }
  50% { transform: translate(var(--x), -25px) scale(1.3); }
  100% { opacity: 0; transform: translate(calc(var(--x) * 2), -50px) scale(1.5); }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .search-results-container {
    margin-top: 30px;
  }
  .result-card-title {
    font-size: 1.3rem;
  }
  .result-card-description {
    font-size: 0.9rem;
  }
}

/* ページネーションリンク */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
}

.pagination a {
  text-decoration: none;
  color: var(--secondary-text-color);
  font-size: 1rem;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.pagination a:hover {
  background-color: var(--accent-color-1);
  color: #fff;
  border-color: var(--accent-color-1);
}

.pagination .current-page {
  background-color: var(--accent-color-1);
  color: #fff;
  font-weight: 500;
  border: 1px solid var(--accent-color-1);
  cursor: default;
}

.main-nav a.is-active {
  position: relative;
  color: var(--accent-color-1);
  font-weight: 500;
}

.main-nav a.is-active::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: var(--accent-color-1);
  left: 0;
  bottom: -5px; /* リンクの下に少し隙間を空ける */
  border-radius: 1px;
}
