
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;600;700&display=swap');
@import url("https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@400;500;700;800&display=swap");


/* ベース */
:root {
  --bg: #ffffff;
  --fg: #1a1a1a;
  --heading-color: #494949;
  --muted: #6b7280;
  --accent: #3366cc;
  --surface: #f6f7f9;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0c0f;
    --fg: #e5e7eb;
    --muted: #9aa0a6;
    --surface: #151821;
    --shadow: 0 1px 2px rgba(0,0,0,.6), 0 6px 20px rgba(0,0,0,.55);
  }
}


* { box-sizing: border-box; }
html, body { 
  height: 100%;
  /*フッター用の設定*/
  margin: 0;
}
body {
  margin: 0;
  background-color: var(--bg);
  color: var(--fg);
  font-family: "Rubik", "M PLUS Rounded 1c", sans-serif;
  line-height: 1.6;

  /*フッター用の設定*/
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* 画面の高さに合わせる */

  /* 👇 追加：全面グリッド線 */
  background-image:
    repeating-linear-gradient(to right, rgba(0,0,0,.05) 0 1px, transparent 1px 100%),
    repeating-linear-gradient(to bottom, rgba(0,0,0,.05) 0 1px, transparent 1px 100%);
  background-size: 20px 20px; /* マス目サイズ */
}

/* フッター用の設定 メインを伸縮させる */
main {
  flex: 1;
}

/* トップページの最大幅 */
.home-main {
  padding-bottom: clamp(60px, 10vw, 120px);
}

/* 記事カードのグリッド */
.grid {
  display: grid;
  grid-template-columns:
    repeat(auto-fill, minmax(min(100%, 350px), 1fr));
  gap: 20px;
}

/* ユーティリティ */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); overflow: hidden;
}

/* レイアウト */
.container {
  width: min(calc(100% - 40px), 1600px);
  margin-inline: auto;
}

/* ヘッダー/フッター */
.site-header {
  background: transparent; /* 無色（背景透過） */
  padding-top: clamp(20px, 4vw, 60px);
}

.header__top {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  
}

.site-footer {
  width: 100%;
  margin-top: auto;
  padding-block: 10px;
  background: var(--surface);
  text-align: right;
}
.site-title {
  margin: 0;
  font-size: clamp(20px, 2vw + 12px, 28px);
}

.site-logo img {
  display: block;
  width: min(256px, 45vw);
  height: auto;
}

.intro {
  width: 100%;
  max-width: none;
  margin: clamp(40px, 5vw, 50px) auto 0;
  padding-bottom: 32px;
}

.site-nav {
  margin-left: auto;
  text-align: right;
}

.site-nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  transition: color .2s ease;
}

.site-nav a:hover {
  color: var(--accent);
}

.site-nav a:focus-visible {
  outline: 3px solid color-mix(
    in oklab,
    var(--accent),
    white 40%
  );
  outline-offset: 4px;
  border-radius: 2px;
}


/* カード */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}

/* 全面リンク（アクセシビリティ対応） */
.card__link {
  display: grid;
  grid-template-rows: auto 1fr;
  color: inherit;
  text-decoration: none;
  height: 100%;
  outline: none;
}

/* 画像：比率固定 */
/* カード画像を少し縦長に */
.card__thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,.08),
    rgba(0,0,0,.02)
  );
}
.card__thumb img,
.card__thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card__thumb img.zoom-in {
  transform: scale(1.3);
}

/* カテゴリラベル */
.card__category {
  display: inline-block;
  justify-self: start;
  width: 120px;
  text-align: center;

  padding: 2px 7px;
  border-radius: 4px;

  background-color: var(--muted);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.05em;

  text-decoration: none;
  vertical-align: middle;
}

/* カテゴリごとの色 */
.card__category[data-category="art-craft"] {
  background-color: #4b83bc;
}

.card__category[data-category="animation"] {
  background-color: #e9a94a;
}

.card__category[data-category="music"] {
  background-color: #9f64c1;
}

.card__category[data-category="wellness"] {
  background-color: #79a863;
}

.card__category[data-category="sonota"] {
  background-color: #e3788d;
}

/* 本文 */
.card__body {
  padding: 12px 16px 12px;
  display: grid;
  gap: 3px;
}
.card__meta {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.card__title {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 700;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;         /* タイトルは最大2行で省略 */
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__excerpt {
  margin: 0 0 4px;
  font-size: 14px;
  color: var(--fg);
  opacity: .85;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;         /* 本文は最大2行で省略 */
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__cta {
  font-size: 13px;
  color: var(--accent);
}

/* ホバー/フォーカス */
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 6px rgba(0,0,0,.10), 0 10px 24px rgba(0,0,0,.12);
}
.card__link:focus-visible {
  outline: 3px solid color-mix(in oklab, var(--accent), white 40%);
  outline-offset: 2px;
  border-radius: var(--radius);
}

.archive-link {
  margin-top: clamp(36px, 6vw, 64px);
  text-align: center;
}

.archive-link a {
  display: inline-block;
  padding: 10px 22px;
  border: 1px solid var(--fg);
  border-radius: 999px;
  color: var(--fg);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition:
    color .2s ease,
    background-color .2s ease;
}

.archive-link a:hover {
  background-color: var(--fg);
  color: var(--bg);
}

/* ページ送り */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: clamp(40px, 7vw, 72px);
}

.pagination__numbers {
  display: flex;
  gap: 8px;
}

.pagination__link {
  display: inline-flex;
  min-width: 40px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding-inline: 12px;
  border: 1px solid var(--fg);
  border-radius: 999px;
  color: var(--fg);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.pagination__link:hover {
  background-color: var(--fg);
  color: var(--bg);
}

.pagination__link.is-current {
  background-color: var(--fg);
  color: var(--bg);
}

.pagination__previous,
.pagination__next {
  min-width: auto;
}

@media (max-width: 599px) {
  .pagination {
    flex-wrap: wrap;
    gap: 12px;
  }
}

h1,
h2,
h3 {
  color: var(--heading-color);
  font-weight: 700;
}

/*カテゴリページのヘッダー*/
.category-header {
  max-width: 800px;
  margin: 0 auto;
  padding-block: clamp(22px, 4vw, 50px);
  text-align: center;
}

.category-header h1 {
  margin: 0;
}

.category-header p {
  max-width: 600px;
  margin: 12px auto 0;
}

/* トップページのカテゴリボタン */

/* トップページのカテゴリボタン */

.category-links {
  width: 100%;
  margin: 0 0 clamp(24px, 4vw, 36px);

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;

  font-size: clamp(14px, 3vw, 18px);
  line-height: 1.2;
}

.category-links a {
  display: flex;
  align-items: center;
  justify-content: center;

  min-width: 0;
  min-height: 26px;
  padding: 1px 6px;

  border: none;
  border-radius: 999px;

  color: var(--muted);
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;

  background-color: transparent;
  background-image: linear-gradient(
    to right,
    rgba(102, 143, 209, .12),
    rgba(102, 143, 209, .12)
  );
  background-repeat: no-repeat;
  background-position: center;
  background-size: 0% 100%;

  transition:
    background-size .35s ease,
    color .2s ease;
}

.category-links a:hover,
.category-links a:focus-visible {
  background-size: 100% 100%;
  color: #304d7d;
}

.category-links a:focus-visible {
  outline: 3px solid #1a1a1a;
  outline-offset: 3px;
}



/* 大きな画面で5列 */
@media (min-width: 550px) {
  .category-links {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
  }
}

/* 文中のロゴ画像 */
.bodywork-link {
  display: flex;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.bodywork-link img {
  display: block;
  width: 250px;
  max-width: 100%;
  height: auto;
}

.bodywork-link span {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bodywork-link:hover {
  opacity: .7;
}

/* ボディーワーク紹介の枠 */
.bodywork-box {
  box-sizing: border-box;
  width: 100%;
  margin: 32px auto;
  border: 1px solid #ccc;
  padding: 24px;
}

.bodywork-box > p:first-child {
  margin-top: 0;
}

.bodywork-box > p:last-child {
  margin-bottom: 0;
}

/* 下の説明文 */
.bodywork-box .bodywork-box__description {
  font-size: 0.85em;
  line-height: 1.7;
  color: #666;
}

/* All articlesの年号リンク */
.archive-years {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-block: 24px 60px;
}

/* 画像の左上：カテゴリと日付 */
.card__info {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 1;

  display: grid;
  justify-items: start;
  gap: 6px;
}

/* カテゴリが複数ある場合は横並び */
.card__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* カテゴリの下に白文字の日付 */
.card__date {
  padding: 0 4px;
  background: none;
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
  
}