/* Salt Style Home - ミニマリストインテリアサイト CSS */

:root {
  --primary-color: #2c2c2c;
  --secondary-color: #e8e8e8;
  --accent-color: #a0a0a0;
  --text-color: #333;
  --text-light: #666;
  --bg-white: #ffffff;
  --bg-light: #f9f9f9;
  --border-color: #ddd;
  --transition: all 0.3s ease;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  line-height: 1.8;
  color: var(--text-color);
  background-color: var(--bg-white);
  font-size: 16px;
}

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

/* ヘッダー */
.header {
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
  max-width: 900px;
  justify-content: center;
}

.nav-item a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  transition: var(--transition);
  white-space: nowrap;
}

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

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-color);
}

/* ヒーローセクション */
.hero {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 4rem;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 2rem;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 300;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-content p {
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1.8;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* ページレイアウト */
.page-wrapper {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  margin-bottom: 4rem;
}

.main-content {
  min-width: 0;
}

.sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
}

/* セクション */
.section {
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.section h2 {
  font-size: 2rem;
  font-weight: 400;
  margin: 2.5rem 0 1.2rem;
  color: var(--primary-color);
  letter-spacing: 0.01em;
}

.section h3 {
  font-size: 1.5rem;
  font-weight: 500;
  margin: 2rem 0 1rem;
  color: var(--text-color);
}

.section p {
  margin-bottom: 1.5rem;
  line-height: 1.9;
  color: var(--text-color);
}

.section ul, .section ol {
  margin: 1.5rem 0 1.5rem 2rem;
  line-height: 1.9;
}

.section li {
  margin-bottom: 0.8rem;
}

/* 目次 */
.toc {
  background-color: var(--bg-light);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.toc h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.toc ul {
  list-style: none;
}

.toc li {
  margin-bottom: 0.6rem;
}

.toc a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition);
  display: block;
  padding: 0.3rem 0;
}

.toc a:hover {
  color: var(--primary-color);
  padding-left: 0.5rem;
}

/* 関連記事 */
.related-articles {
  background-color: var(--bg-light);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.related-articles h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.related-articles ul {
  list-style: none;
}

.related-articles li {
  margin-bottom: 0.6rem;
}

.related-articles a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition);
  display: block;
  padding: 0.3rem 0;
}

.related-articles a:hover {
  color: var(--primary-color);
  padding-left: 0.5rem;
}

/* 広告スペース */
.ad-space {
  background-color: var(--bg-light);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--border-color);
}

.ad-space p {
  color: var(--text-light);
  font-size: 0.9rem;
  text-align: center;
}

/* カードグリッド */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
  text-decoration: none;
  color: var(--text-color);
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

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

.card-content {
  padding: 1.5rem;
}

.card-content h3 {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.8rem;
  color: var(--primary-color);
}

.card-content p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 0;
}

/* フッター */
.footer {
  background-color: var(--primary-color);
  color: white;
  padding: 3rem 0 1.5rem;
  margin-top: 5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: white;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

/* レスポンシブ対応 */
@media (max-width: 991px) {
  .page-wrapper {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

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

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

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-white);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 1rem 0;
  }

  .nav-menu.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    height: 400px;
  }

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

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

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

  .section h2 {
    font-size: 1.7rem;
  }

  .section h3 {
    font-size: 1.3rem;
  }

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

@media (max-width: 480px) {
  .hero {
    height: 300px;
  }

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

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

  .container {
    padding: 0 15px;
  }

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

/* ユーティリティクラス */
.text-center {
  text-align: center;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
