/*
File: assets/css/main.css
Purpose: Trie Craft Child の基本デザイン（余白・タイポ・CTA・カード）
Spec:
- 上品で読みやすい余白設計
- 写真が主役になるシンプルUI
- ブログ/固定ページ共通のベース装飾
*/

:root{
  --tc-bg: #ffffff;
  --tc-text: #222;
  --tc-muted: #666;
  --tc-line: #e9e6e1;

  /* メインカラー（あとで調整しやすいよう変数化） */
  --tc-accent: #9b8ac4;     /* 藤色寄り（仮） */
  --tc-accent-soft: #f5f2fa;

  --tc-radius: 16px;
  --tc-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.tc-container{
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 18px;
}

.tc-page{
  background: var(--tc-bg);
  color: var(--tc-text);
}

.tc-hero{
  margin: 10px 0 28px;
  padding: 22px;
  border: 1px solid var(--tc-line);
  border-radius: var(--tc-radius);
  box-shadow: var(--tc-shadow);
}

.tc-hero__inner{
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  align-items: center;
}

@media (max-width: 860px){
  .tc-hero__inner{
    grid-template-columns: 1fr;
  }
}

.tc-kicker{
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--tc-muted);
}

.tc-hero__title{
  font-size: 34px;
  line-height: 1.2;
  margin: 10px 0 10px;
}

.tc-hero__lead{
  color: var(--tc-muted);
  line-height: 1.8;
}

.tc-hero__img{
  width: 100%;
  height: auto;
  border-radius: 14px;
  display: block;
}

.tc-hero__placeholder{
  border-radius: 14px;
  border: 1px dashed var(--tc-line);
  padding: 44px 18px;
  text-align: center;
  color: var(--tc-muted);
  background: #fafafa;
}

.tc-cta{
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.tc-btn{
  display: inline-block;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
}

.tc-btn--primary{
  background: var(--tc-accent);
  color: #fff;
}

.tc-btn--ghost{
  background: transparent;
  color: var(--tc-accent);
  border-color: var(--tc-accent);
}

.tc-link{
  color: var(--tc-accent);
  text-decoration: none;
  font-weight: 600;
}

.tc-center{
  text-align: center;
  margin-top: 14px;
}

.tc-section{
  margin: 26px 0;
}

.tc-section--accent{
  padding: 18px;
  border-radius: var(--tc-radius);
  background: var(--tc-accent-soft);
  border: 1px solid var(--tc-line);
}

.tc-pagehead{
  padding: 10px 0 4px;
}

.tc-h1{
  font-size: 32px;
  margin: 0 0 10px;
}

.tc-h2{
  font-size: 22px;
  margin: 0 0 12px;
}

.tc-h3{
  font-size: 16px;
  margin: 0 0 8px;
}

.tc-lead{
  color: var(--tc-muted);
  line-height: 1.8;
  margin: 0 0 10px;
}

.tc-p{
  line-height: 1.9;
  margin: 0 0 10px;
  color: var(--tc-text);
}

.tc-muted{
  color: var(--tc-muted);
}

.tc-grid3{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 860px){
  .tc-grid3{
    grid-template-columns: 1fr;
  }
}

.tc-grid4{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (max-width: 860px){
  .tc-grid4{
    grid-template-columns: repeat(2, 1fr);
  }
}

.tc-card{
  padding: 14px;
  border: 1px solid var(--tc-line);
  border-radius: var(--tc-radius);
  background: #fff;
}

.tc-tile{
  display: block;
  padding: 14px 12px;
  border: 1px solid var(--tc-line);
  border-radius: 999px;
  text-decoration: none;
  text-align: center;
  color: var(--tc-text);
  background: #fff;
}

.tc-note{
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--tc-line);
  background: #fff;
}

.tc-ul, .tc-ol{
  margin: 0;
  padding-left: 18px;
  line-height: 1.9;
}

.tc-list{
  display: grid;
  gap: 10px;
}

.tc-list__item{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--tc-line);
  border-radius: 14px;
  text-decoration: none;
  color: var(--tc-text);
  background: #fff;
}

.tc-list__title{
  font-weight: 600;
}

.tc-list__meta{
  color: var(--tc-muted);
  white-space: nowrap;
}

.tc-content{
  line-height: 1.9;
}

.tc-content h2, .tc-content h3{
  margin-top: 18px;
}
