@charset "utf-8";
/* CSS Document */

#snk-kodawari-index {
  --snk-bg: #ffffff;
  --snk-card: #ffffff;
  --snk-text: #3d2c24;
  --snk-subtext: #746861;
  --snk-accent: #b87942;
  --snk-tag-bg: #f4eadf;
  --snk-border: #e9dfd6;
  --snk-divider: #d8c1a8;
  --snk-shadow: 0 3px 14px rgba(76, 52, 38, 0.06);
  --snk-shadow-hover: 0 8px 22px rgba(76, 52, 38, 0.1);
  --snk-radius: 8px;

  width: 100%;
  margin: 0;
  padding: 10px 0 80px;
  color: var(--snk-text);
  background: var(--snk-bg);
  font-family:
    "Noto Sans JP",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    sans-serif;
  line-height: 1.7;
}

/* このセクション内だけに限定したリセット */
#snk-kodawari-index,
#snk-kodawari-index *,
#snk-kodawari-index *::before,
#snk-kodawari-index *::after {
  box-sizing: border-box;
}

#snk-kodawari-index img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  border: 0;
  object-fit: cover;
}

#snk-kodawari-index button,
#snk-kodawari-index a {
  color: inherit;
  font: inherit;
}

/* 全体幅 */
#snk-kodawari-index .snk-kodawari__inner {
  width: calc(100% - 40px);
  max-width: 900px;
  margin: 0 auto;
}

/* 見出し */
#snk-kodawari-index .snk-kodawari__heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--snk-text);
  font-family:
    "Noto Serif JP",
    "Yu Mincho",
    serif;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.07em;
}

#snk-kodawari-index .snk-kodawari__heading-mark {
  color: var(--snk-accent);
  font-size: 0.8em;
  line-height: 1;
}

#snk-kodawari-index .snk-kodawari__divider {
  width: 100%;
  height: 1px;
  margin: 0 0 24px;
  background: var(--snk-divider);
}

/* カテゴリーボタン */
#snk-kodawari-index .snk-kodawari__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
  padding: 0;
}

#snk-kodawari-index .snk-kodawari__tab {
  min-width: 98px;
  margin: 0;
  padding: 9px 18px;
  color: var(--snk-text);
  border: 1px solid var(--snk-border);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: none;
  cursor: pointer;
  appearance: none;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.03em;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

#snk-kodawari-index .snk-kodawari__tab:hover {
  color: var(--snk-accent);
  border-color: var(--snk-accent);
  transform: translateY(-1px);
}

#snk-kodawari-index .snk-kodawari__tab:focus-visible {
  outline: 2px solid var(--snk-accent);
  outline-offset: 3px;
}

#snk-kodawari-index .snk-kodawari__tab.is-active {
  color: #ffffff;
  border-color: var(--snk-accent);
  background: var(--snk-accent);
}

/* 記事一覧 */
#snk-kodawari-index .snk-kodawari__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
}

/* カード */
#snk-kodawari-index .snk-kodawari__card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  color: var(--snk-text);
  border: 1px solid var(--snk-border);
  border-radius: var(--snk-radius);
  background: var(--snk-card);
  box-shadow: var(--snk-shadow);
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    box-shadow 0.25s ease;
}

#snk-kodawari-index .snk-kodawari__card-link {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

#snk-kodawari-index .snk-kodawari__card-link:hover {
  color: inherit;
}

#snk-kodawari-index .snk-kodawari__card-link:focus-visible {
  outline: 2px solid var(--snk-accent);
  outline-offset: -2px;
  border-radius: var(--snk-radius);
}

#snk-kodawari-index .snk-kodawari__card:hover {
  transform: translateY(-3px);
  box-shadow: var(--snk-shadow-hover);
}

#snk-kodawari-index .snk-kodawari__card.is-hidden {
  display: none;
}

#snk-kodawari-index .snk-kodawari__card.is-entering {
  opacity: 0;
  transform: translateY(7px);
}

/* 画像 */
#snk-kodawari-index .snk-kodawari__image {
  width: 100%;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #f2ede8;
}

#snk-kodawari-index .snk-kodawari__image img {
  transition: transform 0.35s ease;
}

#snk-kodawari-index
  .snk-kodawari__card:hover
  .snk-kodawari__image img,
#snk-kodawari-index
  .snk-kodawari__card-link:hover
  .snk-kodawari__image img {
  transform: scale(1.025);
}

/* テキストエリア */
#snk-kodawari-index .snk-kodawari__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 20px 18px 16px;
}

/* カテゴリーラベル */
#snk-kodawari-index .snk-kodawari__tag {
  align-self: flex-start;
  margin: 0 0 11px;
  padding: 5px 10px;
  color: var(--snk-text);
  border-radius: 999px;
  background: var(--snk-tag-bg);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

/* 記事タイトル */
#snk-kodawari-index .snk-kodawari__title {
  margin: 0;
  color: var(--snk-text);
  font-family:
    "Noto Sans JP",
    "Hiragino Sans",
    "Yu Gothic",
    "Meiryo",
    sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}

/* 説明文 */
#snk-kodawari-index .snk-kodawari__description {
  display: -webkit-box;
  margin: 14px 0 0;
  overflow: hidden;
  color: var(--snk-subtext);
  font-size: 13px;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

/* 矢印リンク */
#snk-kodawari-index .snk-kodawari__link {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  margin: 18px 0 0 auto;
  color: var(--snk-accent);
  border: 1px solid var(--snk-accent);
  border-radius: 50%;
  background: #ffffff;
  text-decoration: none;
  font-size: 15px;
  line-height: 1;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}

#snk-kodawari-index .snk-kodawari__link:hover {
  color: #ffffff;
  background: var(--snk-accent);
  transform: translateX(2px);
}

#snk-kodawari-index .snk-kodawari__link:focus-visible {
  outline: 2px solid var(--snk-accent);
  outline-offset: 3px;
}

/* 該当記事なし */
#snk-kodawari-index .snk-kodawari__empty {
  display: none;
  grid-column: 1 / -1;
  margin: 0;
  padding: 44px 20px;
  color: var(--snk-subtext);
  text-align: center;
  border: 1px solid var(--snk-border);
  border-radius: var(--snk-radius);
  background: #ffffff;
  font-size: 14px;
}

#snk-kodawari-index .snk-kodawari__empty.is-visible {
  display: block;
}

/* =========================================================
   タブレット
========================================================= */

@media screen and (max-width: 760px) {
  #snk-kodawari-index {
    padding: 48px 0 64px;
  }

  #snk-kodawari-index .snk-kodawari__inner {
    width: calc(100% - 32px);
  }

  #snk-kodawari-index .snk-kodawari__heading {
    margin-bottom: 16px;
    font-size: 26px;
  }

  #snk-kodawari-index .snk-kodawari__divider {
    margin-bottom: 20px;
  }

  #snk-kodawari-index .snk-kodawari__tabs {
    flex-wrap: nowrap;
    gap: 9px;
    overflow-x: auto;
    margin-bottom: 24px;
    padding-bottom: 7px;
    scrollbar-width: thin;
  }

  #snk-kodawari-index .snk-kodawari__tab {
    min-width: 104px;
    flex: 0 0 auto;
    padding: 9px 16px;
    font-size: 13px;
  }

  #snk-kodawari-index .snk-kodawari__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

/* =========================================================
   スマートフォン
========================================================= */

@media screen and (max-width: 520px) {
  #snk-kodawari-index {
    padding: 10px 0 56px;
  }

  #snk-kodawari-index .snk-kodawari__inner {
    width: calc(100% - 28px);
  }

  #snk-kodawari-index .snk-kodawari__heading {
    font-size: 24px;
  }

  #snk-kodawari-index .snk-kodawari__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  #snk-kodawari-index .snk-kodawari__content {
    padding: 20px 16px 16px;
  }

  #snk-kodawari-index .snk-kodawari__title {
    font-size: 17px;
  }

  #snk-kodawari-index .snk-kodawari__description {
    font-size: 12px;
  }
}

/* 動きを減らす設定への配慮 */
@media (prefers-reduced-motion: reduce) {
  #snk-kodawari-index *,
  #snk-kodawari-index *::before,
  #snk-kodawari-index *::after {
    transition: none !important;
  }
}
	
@media screen and (max-width: 760px) {

  #snk-kodawari-index .snk-kodawari__tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    overflow: visible;
    margin-bottom: 24px;
    padding-bottom: 0;
  }

  #snk-kodawari-index .snk-kodawari__tab {
    width: 100%;
    min-width: 0;
    padding: 9px 12px;
  }

}

/* =========================================================
   カードリンクの下線を完全に解除
   ※必ずCSSファイルの一番最後に置く
========================================================= */
html body #snk-kodawari-index a.snk-kodawari__card-link,
html body #snk-kodawari-index a.snk-kodawari__card-link:link,
html body #snk-kodawari-index a.snk-kodawari__card-link:visited,
html body #snk-kodawari-index a.snk-kodawari__card-link:hover,
html body #snk-kodawari-index a.snk-kodawari__card-link:focus,
html body #snk-kodawari-index a.snk-kodawari__card-link:active {
  color: inherit !important;
  text-decoration: none !important;
  text-decoration-line: none !important;
  border-bottom: 0 !important;
  box-shadow: none;
  background-image: none !important;
}

html body #snk-kodawari-index a.snk-kodawari__card-link .snk-kodawari__tag,
html body #snk-kodawari-index a.snk-kodawari__card-link .snk-kodawari__title,
html body #snk-kodawari-index a.snk-kodawari__card-link .snk-kodawari__description {
  text-decoration: none !important;
  text-decoration-line: none !important;
  border-bottom: 0 !important;
  background-image: none !important;
}
#snk-kodawari-index a.snk-kodawari__card-link,
#snk-kodawari-index a.snk-kodawari__card-link:link,
#snk-kodawari-index a.snk-kodawari__card-link:visited,
#snk-kodawari-index a.snk-kodawari__card-link:hover,
#snk-kodawari-index a.snk-kodawari__card-link:focus,
#snk-kodawari-index a.snk-kodawari__card-link:active {
  text-decoration: none !important;
  color: inherit !important;
}
