/* ============================================
   首藤造園 SNS運用提案 - 共通スタイル
   MUJI-inspired Minimal Design
   Font: LINE Seed JP / rem units
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=LINE+Seed+JP:wght@100;300;400;700;800&display=swap');

:root {
  /* --- 無印カラーパレット --- */
  --bg: #f5f1eb;            /* 生成りベース */
  --bg-card: #faf8f4;       /* カード・メインエリア */
  --bg-sub: #ece8e1;        /* サブ背景・hover */
  --text: #2c2825;          /* 温かみのある墨色 */
  --text-mid: #5c554d;      /* 中間テキスト */
  --text-light: #8f877d;    /* 薄テキスト */
  --accent: #7a6e5d;        /* メインアクセント：枯色 */
  --accent-green: #5e7a56;  /* 抹茶 */
  --accent-orange: #a6845a; /* 焦茶 */
  --accent-red: #b05454;    /* 鉄紺赤 */
  --accent-blue: #5f7f8f;   /* 藍鼠 */
  --accent-purple: #7a6e8a; /* 藤紫 */
  --accent-yellow: #9e9040; /* 黄蘗 */
  --border: #ddd8d0;
  --hover: #eae5dc;
  --callout-bg: #ece8e1;
  --sidebar-width: 260px;
  --main-max-width: 860px;
}

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

html { font-size: 18px; }

body {
  font-family: 'LINE Seed JP', -apple-system, BlinkMacSystemFont, 'Hiragino Sans', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 2.0;
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== Layout ===== */
.page-wrapper {
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

.main {
  width: 100%;
  max-width: var(--main-max-width);
  padding: 4.5rem 3.5rem 9rem;
  margin-right: var(--sidebar-width);
  background: var(--bg-card);
}

/* ===== Sidebar (Right) ===== */
.sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  background: var(--bg);
  border-left: 1px solid var(--border);
  padding: 2rem 1rem;
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
  transition: transform 0.25s ease;
}

.sidebar-header {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 1.4rem;
  padding: 0 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.sidebar-header i { color: var(--accent-green); font-size: 0.65rem; }

.toc-list { list-style: none; }
.toc-list li { margin-bottom: 0.1rem; }
.toc-list a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.65rem;
  color: var(--text-mid);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: 4px;
  transition: all 0.15s;
  line-height: 1.5;
}
.toc-list a:hover { background: var(--hover); color: var(--text); }
.toc-list a.active { background: var(--hover); color: var(--text); font-weight: 800; }
.toc-list a i { color: var(--text-light); width: 0.9rem; text-align: center; font-size: 0.6rem; flex-shrink: 0; }

.toc-divider { height: 1px; background: var(--border); margin: 0.75rem 0.65rem; }
.toc-section-title {
  font-size: 0.6rem;
  font-weight: 800;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 0.5rem 0.65rem 0.25rem;
}

/* Mobile toggle */
.menu-toggle {
  display: none;
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 200;
  width: 2.75rem;
  height: 2.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text);
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(44, 40, 37, 0.18);
  z-index: 90;
}

/* ===== Typography ===== */
h2 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  margin: 4rem 0 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  scroll-margin-top: 1.5rem;
  color: var(--text);
}
h2 i { color: var(--accent); font-size: 1rem; }

h3 {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin: 2.5rem 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  scroll-margin-top: 1.5rem;
  color: var(--text);
}
h3 i { color: var(--text-light); font-size: 0.8rem; }

h4 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin: 1.5rem 0 0.65rem;
  color: var(--text);
}

p { margin-bottom: 0.9rem; font-weight: 400; }
strong { font-weight: 800; }

/* ===== External Links ===== */
a.ext {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 700;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
a.ext:hover { border-bottom-color: var(--accent-blue); }
a.ext::after {
  content: '\f35d';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.5rem;
  margin-left: 0.25rem;
  opacity: 0.35;
  vertical-align: super;
}

/* ===== Callout ===== */
.callout {
  display: flex;
  gap: 0.9rem;
  padding: 1.3rem 1.4rem;
  background: var(--callout-bg);
  border-radius: 4px;
  margin: 1.4rem 0;
  line-height: 1.9;
}
.callout.blue { background: #e8ede2; }
.callout.green { background: #e5ebe2; }
.callout.yellow { background: #f0ece0; }
.callout.red { background: #f0e5e5; }
.callout.purple { background: #eae5ee; }

.callout-icon {
  flex-shrink: 0;
  width: 1.3rem;
  height: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  margin-top: 0.15rem;
}
.callout.blue .callout-icon { color: var(--accent-blue); }
.callout.green .callout-icon { color: var(--accent-green); }
.callout.yellow .callout-icon { color: var(--accent-yellow); }
.callout.red .callout-icon { color: var(--accent-red); }
.callout.purple .callout-icon { color: var(--accent-purple); }

.callout-content { flex: 1; font-size: 0.92rem; font-weight: 400; }
.callout-content strong { font-weight: 800; }

/* ===== Tables ===== */
table, .data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}
th, td {
  padding: 0.8rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
th {
  background: transparent;
  font-weight: 800;
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 2px solid var(--border);
}
thead th { background: transparent; }
tfoot td { font-weight: 800; border-top: 2px solid var(--border); }
td { border-left: none; border-right: none; font-weight: 400; }
tr:hover td { background: var(--hover); }

/* ===== Cards ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
  margin: 1.4rem 0;
}
.card {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.4rem;
  transition: box-shadow 0.2s;
  background: var(--bg-card);
}
.card:hover { box-shadow: 0 2px 12px rgba(44, 40, 37, 0.05); }
.card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}
.card-header i { font-size: 0.95rem; color: var(--accent); }
.card p { font-size: 0.88rem; color: var(--text-mid); margin-bottom: 0.35rem; line-height: 1.85; font-weight: 400; }
.card-stat { font-size: 1.5rem; font-weight: 800; color: var(--text); margin: 0.5rem 0; }

/* ===== Tags ===== */
.tag {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  border-radius: 2px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin: 0.15rem 0.25rem 0.15rem 0;
}
.tag.blue { background: #dfe6e0; color: var(--accent-blue); }
.tag.green { background: #dde6da; color: var(--accent-green); }
.tag.orange { background: #ebe2d5; color: var(--accent-orange); }
.tag.red { background: #ebe0e0; color: var(--accent-red); }
.tag.purple { background: #e2dde8; color: var(--accent-purple); }
.tag.gray { background: #e5e2dc; color: var(--text-light); }

/* ===== Metrics ===== */
.metric-row {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}
.metric-item {
  flex: 1;
  min-width: 7.5rem;
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--bg);
  border-radius: 4px;
}
.metric-value { font-size: 1.75rem; font-weight: 800; color: var(--accent-green); letter-spacing: 0.02em; }
.metric-label { font-size: 0.7rem; color: var(--text-light); margin-top: 0.35rem; letter-spacing: 0.08em; font-weight: 700; }

/* ===== Benchmark Cards ===== */
.benchmark-card {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.5rem;
  margin: 1rem 0;
  border-left: 3px solid;
}
.benchmark-card.tiktok { border-left-color: var(--text); }
.benchmark-card.youtube { border-left-color: var(--accent-red); }
.benchmark-card.instagram { border-left-color: var(--accent-orange); }
.benchmark-card h4 { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.9rem; font-size: 1rem; }

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1rem 0;
}
.kpi-item {
  background: var(--bg);
  border-radius: 4px;
  padding: 1rem;
  text-align: center;
}
.kpi-item .label { font-size: 0.62rem; color: var(--text-light); font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; }
.kpi-item .value { font-size: 1.3rem; font-weight: 800; margin: 0.35rem 0; }
.kpi-item .sub { font-size: 0.7rem; color: var(--text-light); font-weight: 400; }

/* ===== Competitor Card ===== */
.competitor-card {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
  margin: 0;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.competitor-card:last-child { border-bottom: none; }
.competitor-card .icon-wrap {
  width: 2.75rem;
  height: 2.75rem;
  background: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
  color: var(--accent);
}
.competitor-card .info { flex: 1; }
.competitor-card .name { font-weight: 800; font-size: 0.92rem; margin-bottom: 0.25rem; letter-spacing: 0.03em; }
.competitor-card .desc { font-size: 0.85rem; color: var(--text-mid); line-height: 1.85; font-weight: 400; }
.competitor-card .links { margin-top: 0.5rem; font-size: 0.78rem; }
.competitor-card .links a { margin-right: 0.9rem; color: var(--accent-blue); text-decoration: none; font-weight: 700; }
.competitor-card .links a:hover { border-bottom: 1px solid var(--accent-blue); }

/* ===== Timeline ===== */
.timeline { margin: 1.5rem 0; padding-left: 1.5rem; border-left: 1px solid var(--border); }
.timeline-item { position: relative; padding: 0 0 1.75rem 1.25rem; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.75rem;
  top: 0.5rem;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--accent);
  border-radius: 50%;
}
.timeline-date { font-size: 0.7rem; font-weight: 800; color: var(--accent); letter-spacing: 0.1em; margin-bottom: 0.25rem; }
.timeline-title { font-weight: 800; font-size: 0.92rem; margin-bottom: 0.25rem; letter-spacing: 0.04em; }
.timeline-desc { font-size: 0.85rem; color: var(--text-mid); font-weight: 400; }

/* ===== Toggle ===== */
.toggle-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1rem;
  background: var(--bg);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  transition: background 0.15s;
  margin: 0.6rem 0 0;
  color: var(--text);
}
.toggle-header:hover { background: var(--hover); }
.toggle-header i.fa-chevron-right { font-size: 0.55rem; transition: transform 0.2s; color: var(--text-light); }
.toggle-header.open i.fa-chevron-right { transform: rotate(90deg); }
.toggle-body { display: none; padding: 1rem 1rem 1rem 2rem; border-left: 1px solid var(--border); margin-left: 0.75rem; }
.toggle-body.open { display: block; }

/* Lists */
ul, ol { margin: 0.6rem 0 1rem 1.4rem; line-height: 2.0; }
li { font-size: 0.92rem; font-weight: 400; }

/* Divider */
.divider { height: 1px; background: var(--border); margin: 3rem 0; }

/* ===== Cover ===== */
.cover {
  background: var(--bg);
  color: var(--text);
  padding: 4rem 3rem;
  border-radius: 0;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.cover-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.cover h1 {
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.6;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.cover-sub { font-size: 0.92rem; color: var(--text-mid); margin-bottom: 1.75rem; letter-spacing: 0.05em; font-weight: 400; }
.cover-meta { display: flex; gap: 1.5rem; font-size: 0.78rem; color: var(--text-light); flex-wrap: wrap; letter-spacing: 0.05em; font-weight: 700; }
.cover-meta span { display: flex; align-items: center; gap: 0.35rem; }

/* ===== Scroll Indicator ===== */
.scroll-indicator { position: fixed; top: 0; left: 0; right: var(--sidebar-width); height: 2px; background: transparent; z-index: 50; }
.scroll-indicator .fill { height: 100%; background: var(--accent); width: 0%; transition: width 0.1s; }

/* ===== Memo Blocks ===== */
.memo-block {
  margin: 1rem 0 1.75rem;
  position: relative;
}
.memo-label {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.memo-area {
  width: 100%;
  min-height: 5.5rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-card);
  font-family: 'LINE Seed JP', sans-serif;
  font-size: 0.92rem;
  line-height: 2.0;
  letter-spacing: 0.05em;
  color: var(--text);
  font-weight: 400;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.memo-area:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(122, 110, 93, 0.1);
}
.memo-area::placeholder { color: #b8b2a8; }
.memo-status {
  font-size: 0.65rem;
  color: var(--text-light);
  margin-top: 0.35rem;
  height: 1rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  opacity: 0;
  transition: opacity 0.3s;
  letter-spacing: 0.04em;
  font-weight: 700;
}
.memo-status.show { opacity: 1; }
.memo-status.saved { color: var(--accent-green); }

/* ===== Video Grid ===== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 1.25rem 0 2rem;
}
.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.video-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 12px rgba(44, 40, 37, 0.08);
}
.video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #1a1a1a;
}
.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.video-embed.tiktok {
  padding-top: 0;
  min-height: 200px;
  background: var(--bg-sub);
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-embed.tiktok blockquote {
  margin: 0;
  width: 100%;
}
.video-embed-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  background: linear-gradient(135deg, #e8ede2, #ece8e1);
}
.video-embed-link.tiktok-link {
  background: linear-gradient(135deg, #eae5ee, #ece8e1);
}
.video-embed-link a.ext {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 140px;
  text-decoration: none;
  border-bottom: none;
  transition: background 0.2s;
}
.video-embed-link a.ext:hover {
  background: rgba(122, 110, 93, 0.06);
  border-bottom: none;
}
.video-embed-link a.ext::after { display: none; }
.video-link-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-mid);
  font-size: 0.85rem;
  font-weight: 700;
}
.video-link-inner i {
  font-size: 1.8rem;
  color: var(--accent);
}
.video-info {
  padding: 0.75rem 1rem;
}
.video-title {
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 0.3rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-meta {
  font-size: 0.72rem;
  color: var(--text-light);
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* ===== Team Cards ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.25rem 0;
}
.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.25rem;
}
.team-role {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}
.team-role i {
  margin-right: 0.3rem;
}
.team-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.team-detail {
  font-size: 0.82rem;
  color: var(--text-mid);
  line-height: 1.65;
}

/* ===== Site Footer ===== */
.site-footer {
  background: var(--bg-sub);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 2rem;
  margin-top: 3rem;
}
.footer-inner {
  max-width: calc(var(--main-max-width) + var(--sidebar-width) + 2rem);
  margin: 0 auto;
  padding: 0 2.5rem;
}
.footer-sitemap-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-mid);
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
}
.footer-sitemap-title i {
  margin-right: 0.4rem;
  color: var(--accent);
}
.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}
.footer-nav-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1rem 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s, border-color 0.15s;
}
.footer-nav-item:hover {
  background: var(--hover);
  border-color: var(--accent);
}
.footer-nav-item.is-current {
  border-color: var(--accent);
  background: rgba(122, 110, 93, 0.08);
}
.footer-nav-item i {
  font-size: 1.15rem;
  color: var(--accent);
}
.footer-nav-label {
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.4;
}
.footer-nav-desc {
  font-size: 0.75rem;
  color: var(--text-light);
  line-height: 1.5;
  font-weight: 400;
}
.footer-meta {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.72rem;
  color: var(--text-light);
  font-weight: 400;
}
.footer-meta i {
  margin-right: 0.3rem;
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .main { margin-right: 0; padding: 3.5rem 2.5rem 6rem; }
  .sidebar { transform: translateX(100%); }
  .sidebar.open { transform: translateX(0); box-shadow: -4px 0 24px rgba(44, 40, 37, 0.1); }
  .sidebar-overlay.open { display: block; }
  .menu-toggle { display: flex !important; }
  .scroll-indicator { right: 0; }
}

@media (max-width: 700px) {
  .main { padding: 2.25rem 1.25rem 5rem; }
  .cover { padding: 2.5rem 1.5rem; }
  .cover h1 { font-size: 1.35rem; }
  .card-grid { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: 1fr; }
  .metric-row { flex-direction: column; }
  .competitor-card { flex-direction: column; }
  .cover-meta { flex-direction: column; gap: 0.5rem; }
  table { font-size: 0.85rem; }
  th, td { padding: 0.6rem 0.75rem; }
  .footer-nav { grid-template-columns: 1fr; }
  .footer-inner { padding: 0 1.25rem; }
}

@media (max-width: 480px) {
  .main { padding: 1.75rem 1rem 3.75rem; }
  h2 { font-size: 1.2rem; }
  h3 { font-size: 1.05rem; }
  body { font-size: 0.95rem; }
}
