/*
Theme Name: room-studio note
Theme URI: https://room-studio.jp/
Author: room-studio note
Description: 学びと制作のノートをまとめたポートフォリオサイト用の、シンプルで余白の多いコーポレートデザインテーマ。
Version: 1.1
Text Domain: room-studio-note
*/

/* =============================
   基本設定
============================= */

:root {
  --rsn-bg: #f8f4ec;
  --rsn-ink: #333333;
  --rsn-accent: #c2b29b;
  --rsn-border: #e0d6c8;
  --rsn-max-width: 960px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--rsn-bg);
  color: var(--rsn-ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Noto Sans JP", "Hiragino Kaku Gothic ProN",
    "Yu Gothic", sans-serif;
  line-height: 1.8;
  font-size: 16px;
}

a {
  color: var(--rsn-ink);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

.inner {
  max-width: var(--rsn-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* =============================
   ヘッダー
============================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: rgba(248, 244, 236, 0.96);
  border-bottom: 1px solid var(--rsn-border);
  backdrop-filter: blur(10px);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}

.site-title {
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
}

.site-title a {
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 18px;
  font-size: 0.9rem;
}

.site-nav a {
  position: relative;
  padding-bottom: 2px;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background-color: var(--rsn-accent);
  transition: width 0.2s ease;
}

.site-nav a:hover::after,
.site-nav a:focus::after {
  width: 100%;
}

/* =============================
   メイン
============================= */

.rsn-main {
  padding-top: 40px;
}

/* =============================
   Hero セクション
============================= */

.hero {
  padding: 72px 0 48px;
}

.hero-inner {
  max-width: 720px;
}

.hero-label {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.hero-title {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  line-height: 1.7;
  font-weight: 500;
  margin: 0;
}

/* 固定ページのデフォルトタイトルは非表示（Home の「Home」など） */
.page-title {
  display: none;
}

/* =============================
   About セクション
============================= */

.about {
  padding: 24px 0 56px;
  margin-top: -20px; /* Hero との距離調整 */
}

.about-title {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 20px;
  position: relative;
}

.about-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 40px;
  height: 2px;
  background: var(--rsn-accent);
  opacity: 0.6;
}

.about-card {
  margin-top: 24px;
  padding: 24px 24px 20px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.4fr);
  gap: 24px;
  align-items: center;
}

.about-texts {
  font-size: 0.95rem;
  line-height: 1.9;
}

.about-lead {
  font-size: 1.05rem;
  margin-bottom: 14px;
  opacity: 0.96;
}

.about-text {
  opacity: 0.88;
  margin: 0;
  max-width: 720px;
}

.about-photo {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #f0ebe2;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =============================
   Works セクション
============================= */

.works {
  padding: 32px 0 80px;
}

.section-title {
  font-size: 1.6rem;
  margin-bottom: 32px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.work-card {
  display: block;
  background: #ffffff;
  border-radius: 16px;
  padding: 18px;
  text-decoration: none;
  color: var(--rsn-ink);
  border: 1px solid var(--rsn-border);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  transform: translateY(0);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.work-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.02);
}

.work-thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
  background: #f0ebe2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* カードタイトル下のライン */

.work-title {
  position: relative;
  font-size: 1.05rem;
  margin: 18px 0 12px;
  font-weight: 600;
  padding-bottom: 6px;
  display: inline-block;
}

.work-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 42px;
  height: 1px;
  background: var(--rsn-accent);
  opacity: 0.9;
}

.work-desc {
  font-size: 0.9rem;
  opacity: 0.75;
  margin: 0;
}

/* =============================
   制作のこだわり セクション
============================= */

.policy {
  padding: 56px 0 72px;
}

.policy-title {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 20px;
  position: relative;
}

.policy-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 40px;
  height: 2px;
  background: var(--rsn-accent);
  opacity: 0.6;
}

/* 白いカード（3つの作品を中で分ける） */
.policy-card {
  margin-top: 24px;
  padding: 24px 24px 22px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--rsn-border);
}

.policy-group + .policy-group {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--rsn-border);
}

.policy-group-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.policy-list {
  margin: 0;
  padding-left: 20px;
  font-size: 0.9rem;
  line-height: 1.9;
  opacity: 0.9;
}

.policy-list li {
  margin-bottom: 6px;
}

/* =============================
   フッター
============================= */

.site-footer {
  border-top: 1px solid var(--rsn-border);
  margin-top: 72px;
  padding: 18px 0 26px;
  font-size: 0.8rem;
}

.site-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.site-footer small {
  opacity: 0.7;
}

/* =============================
   レスポンシブ
============================= */

@media (max-width: 768px) {
  .hero {
    padding: 56px 0 36px;
  }

  .hero-title {
    font-size: 1.6rem;
    line-height: 1.7;
  }

  .about {
    padding-bottom: 40px;
  }

  .about-card {
    padding: 18px 16px 16px;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .about-photo {
    max-width: 280px;
    margin: 0 auto;
  }

  .policy {
    padding: 40px 0 56px;
  }

  .policy-card {
    padding: 20px 16px 18px;
  }
}

@media (max-width: 600px) {
  .site-header-inner {
    padding-inline: 16px;
  }

  .hero-inner {
    max-width: 100%;
  }

  .site-nav {
    gap: 12px;
    font-size: 0.8rem;
  }

  .works {
    padding-bottom: 56px;
  }
}
