/* 
 * Theme Name: Cool Aqua Theme for nail1001.com
 * Description: Modern, water-blue CSS for a trendy blog, optimized for SNS engagement.
 * Features: Minimal, aqua colors, mobile-first, SEO-friendly
 * Last Updated: July 16, 2025
 */

/* 1. Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1a1a1a;
  background: #f0f7ff; /* 薄い水色でクール */
}

/* 2. Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.6rem; }
p { font-size: 16px; margin-bottom: 1.2rem; }

/* 3. Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* 4. Header */
.site-header {
  background: linear-gradient(135deg, #40c4ff, #ffffff); /* 水色と白のグラデーション */
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.site-logo img {
  max-width: 200px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* 5. Navigation */
.main-nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 1.5rem;
  padding: 1rem 0;
}

.main-nav a {
  color: #1a1a1a;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  transition: background 0.3s ease, color 0.3s ease;
}

.main-nav a:hover {
  background: #40c4ff;
  color: #ffffff;
}

/* 6. Latest Posts */
.latest-posts {
  padding: 2rem 0;
}

.latest-posts h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #40c4ff; /* 水色でトレンド感 */
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.post-card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.post-card:hover {
  transform: translateY(-5px);
}

.post-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
  loading: lazy;
}

.post-card h4 {
  font-size: 16px;
  padding: 1rem;
  margin: 0;
  color: #1a1a1a;
}

/* 7. Social Share Buttons */
.social-share-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 1.5rem 0;
}

.socialList__link.icon-x-theme, .icon-x-theme {
  background: #000;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.socialList__link.icon-x-theme:hover, .icon-x-theme:hover {
  background: #40c4ff; /* 水色でホバー */
  box-shadow: 0 0 12px rgba(64, 196, 255, 0.5);
  transform: scale(1.1);
}

.socialList__link.icon-x-theme:before, .icon-x-theme:before {
  font-family: "Font Awesome 6 Brands";
  content: "\e61b"; /* Xアイコン */
  color: #fff;
  font-size: 18px;
}

.widgetProfile__snsLink.icon-x-theme {
  background: #000;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.widgetProfile__snsLink.icon-x-theme:before {
  font-family: "Font Awesome 6 Brands";
  content: "\e61b";
  font-size: 18px;
}

.widgetProfile__snsLink.icon-x-theme:hover {
  background: #40c4ff;
  box-shadow: 0 0 12px rgba(64, 196, 255, 0.5);
  transform: scale(1.1);
}

/* SNSコンテナを中央揃え */
.socialList, .widget-social-icons {
  display: flex !important;
  justify-content: center !important;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 0;
  margin: 0 auto;
}

/* 8. Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  background: linear-gradient(135deg, #40c4ff, #b3e5fc);
  color: #1a1a1a;
  text-decoration: none;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.3s ease;
}

.btn:hover {
  background: linear-gradient(135deg, #0288d1, #81d4fa);
  transform: translateY(-3px);
}

/* 9. Accessibility */
:focus {
  outline: 2px solid #40c4ff;
  outline-offset: 2px;
}

/* 10. Images and Animations */
img {
  max-width: 100%;
  height: auto;
  loading: lazy;
}

.fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease-in forwards;
}

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

/* 11. Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 0.8rem;
  }

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

  .main-nav ul {
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
  }

  .post-card img {
    height: 160px;
  }

  .socialList, .widget-social-icons {
    gap: 10px;
    padding: 8px 0;
  }

  .socialList__link.icon-x-theme, .icon-x-theme,
  .widgetProfile__snsLink.icon-x-theme {
    width: 32px;
    height: 32px;
  }

  .socialList__link.icon-x-theme:before, .icon-x-theme:before,
  .widgetProfile__snsLink.icon-x-theme:before {
    font-size: 16px;
  }
}