:root {
  --main-color: #ffee7d;
  --accent: #f49c2d;
  --asort: #c4d700;
  --ink: #0f172a;
  --title: #4b3724;
  --muted: #7c5f46;
  --panel: #f8fafc;
  --border: #e2e8f0;
  --main-width: 1000px;
  --ring: 0 0 0 3px rgba(34, 197, 94, .25);
}

.title-color {
  color: var(--title);
}

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

/* header */
header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: white;
  padding: 10px 20px;
  z-index: 1001;
  margin: 0;
}

.logo-area {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-area img {
  height: 50px;
}

.site-name {
  font-size: 24px;
  font-weight: bold;
  margin-left: 10px;
  color: black;
  text-decoration: none;
}

.paw {
  font-size: 24px;
  margin-left: 5px;
}

.nav-link {
  margin-left: clamp(10px, 2vw, 20px);
  font-size: clamp(14px, 2vw, 20px);
  text-decoration: none;
  color: black;
  font-weight: bold;
}

.sns-links {
  margin-left: clamp(10px, 2vw, 40px);
}

.sns-links img {
  width: 30px;
  height: 30px;
  margin: auto 5px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.sns-links img:hover {
  transform: scale(1.1);
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%;
  margin: 0
}

body {
  background: #ffffff;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.flex-row {
  display: flex;
  flex-direction: row;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

.Ads-Container {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: start;
}

.vert-ads-region1 {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 300px;
  height: 1300px;
  margin-top: 20px;
  /* border: solid 1px red; */
}

.hori-ads-region1 {
  display: none;
}

.hori-ads-region2 {
  display: none;
}

@media (max-width: 1500px) {
  .Ads-Container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .vert-ads-region1 {
    display: none;
  }
  .hori-ads-region1 {
    display: block;
    margin-top: 20px;
    width: 728px;
    height: 90px;
    /* border: solid 1px red; */
  }
  .hori-ads-region2 {
    display: none;
  }
}

@media (max-width: 728px) {
  .Ads-Container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .vert-ads-region1 {
    display: none;
  }
  .hori-ads-region1 {
    display: none;
  }
  .hori-ads-region2 {
    display: block;
    margin-top: 20px;
    width: 300px;
    height: 100px;
    /* border: solid 1px red; */
  }
}

.container {
  width: 80%;
  max-width: var(--main-width);
  margin: 0 auto;
}

.site-header {
  width: 100%;
  justify-content: start;
  align-items: center;
  background-color: var(--asort);
  color: white;
}

.site-header a {
  justify-content: start;
  align-items: center;
  color: white;
  text-decoration: none;
}

.site-header img {
  width: clamp(30px, 5vw, 50px);
  height: clamp(30px, 5vw, 50px);
  margin: 0 10px;
}

.site-header h1 {
  font-weight: 900;
  margin: 10px 0;
  font-size: clamp(20px, 5vw, 40px);
}

.site-title {
  margin: 0;
  padding-top: 28px;
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 900;
  color: var(--title);
  letter-spacing: .01em;
}

.site-subtitle {
  margin: 8px 0 24px 0;
  color: var(--muted);
  width: 100%;
  font-weight: 700;
}

.section-title {
  margin: 28px 0 6px 0;
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 800;
  color: var(--title);
}

.section-desc {
  margin: 0 0 18px 0;
  font-weight: 700;
  color: var(--muted);
}

.card-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.card {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.card.is-disabled {
  opacity: .6;
  pointer-events: none;
}

.card-link {
  display: grid;
  grid-template-rows: 160px auto;
  color: inherit;
  text-decoration: none;
  outline: 0;
}

.card-link:focus-visible {
  box-shadow: var(--ring);
}

.card-figure {
  margin: 0;
  background: var(--panel);
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--border);
}

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

.card-meta {
  padding: 12px 14px 14px 14px;
  display: grid;
  gap: 6px;
}

.card-title {
  margin: 0;
  font-size: 16px;
  letter-spacing: .02em;
}

.card-caption {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.card-cta {
  margin-top: 6px;
  display: inline-block;
  font-size: 12px;
  color: var(--accent);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(2, 6, 23, .08);
  border-color: #dbeafe;
}

.knot-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid #dbe3f0;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .06);
}

.knot-card .thumb {
  aspect-ratio: 16/9;
  background: #f7f8fb;
}

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

.knot-card .body {
  padding: 16px 18px 18px;
}

.knot-card h3 {
  margin: 0 0 8px;
  color: var(--title);
  font-weight: bold;
  font-size: 20px;
}

.knot-card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-weight: bold;
  line-height: 1.6;
}

.knot-card .cta {
  color: var(--accent);
  font-weight: 600;
}

.knot-card:hover {
  box-shadow: 0 6px 16px rgba(16, 24, 40, .12);
  transform: translateY(-1px);
}

.site-footer {
  margin-top: 36px;
  border-top: 1px solid var(--border);
  background: #fff;
}

.site-footer .container {
  padding: 14px 0;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width:640px) {
  .card-link {
    grid-template-rows: 140px auto;
  }
}

.footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background-color: var(--asort);
  color: white;
  margin-top: 40px;
  height: clamp(100px, 12vw, 150px);
  font-size: clamp(12px, 2vw, 22px);
  font-weight: 800;
}

.footer a {
  color: white;
  text-decoration: none;
}

/* h3の下にロープを表示 */
.knot-card h3 {
  position: relative;
  margin: 0 0 14px;
  /* 既存の 0 0 8px を少し広げる */
  padding-bottom: 14px;
  /* ロープ分の余白 */
}

.knot-card h3::after {
  content: "";
  position: absolute;
  left: 0;
  /* タイトル左揃え */
  bottom: 5px;
  height: 10px;
  width: 100%;
  /* width: clamp(140px, 45%, 260px); */
  border-radius: 999px;
  background:
    repeating-linear-gradient(45deg,
      var(--accent) 0 7px,
      var(--asort) 7px 14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5);
  opacity: .9;
}

/* 好みでホバー時に少し強調（任意） */
.knot-card:hover h3::after {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .08));
}

/* CTAを“ロープピル”に */
.knot-card .cta {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 800;
  background: linear-gradient(180deg, color-mix(in oklab, var(--main-color) 88%, #fff 12%), #fff);
  color: var(--title);
  position: relative;
  border: 1px solid #e6e9f3;
}

.knot-card .cta:hover {
  box-shadow: 0 0 0 3px rgba(244, 156, 45, .18);
}

/* セクション間の“ロープ仕切り” */
.rope-divider {
  width: 80%;
  max-width: var(--main-width);
  height: 10px;
  margin: 28px 0;
  border-radius: 999px;
  background:
    repeating-linear-gradient(45deg,
      var(--accent) 0 10px, var(--asort) 10px 20px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 2px 10px rgba(2, 6, 23, .06);
  opacity: .9;
  margin: 0 auto;
}

/* ヒーロー帯の質感（mainを活かした柔らかい紙質） */
/* .site-home-desc{
  background:
    radial-gradient(1200px 200px at 50% -60px, color-mix(in oklab, var(--main-color) 70%, #ffffff 30%) 0 50%, #ffffff 70%),
    linear-gradient(180deg, var(--main-color), #ffffff 70%);
} */

/* ナビに“ノット下線” */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--asort));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  transform: scaleX(1);
}

/* アクセシビリティ（焦点リングをロープ色で） */
:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 10px;
}

/* セクション見出しをボタン化して三角アイコン表示 */
.section-title {
  display: flex;
  align-items: center;
  margin: 28px 0 6px 0; /* 既存維持 */
}

.section-toggle {
  all: unset; /* 既存のh2の文字サイズをそのまま継承 */
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 800;
  color: var(--title);
  /* 見た目を少しボタンっぽく */
  padding: 6px 8px;
  border-radius: 8px;
}
.section-toggle:hover {
  background: color-mix(in oklab, var(--main-color) 28%, white);
}

.section-toggle:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 8px;
}

/* 左の三角（CSSボーダーで描画） */
.section-toggle::before {
  content: "";
  width: 0; height: 0;
  border-left: 8px solid var(--title);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  transform: rotate(90deg);           /* 展開時は下向き */
  transition: transform .2s ease;
}

/* 折りたたみ時は右向き（三角を回転） */
.section-toggle[aria-expanded="false"]::before {
  transform: rotate(0deg);
}

/* 隠し属性でオフ（保険） */
[data-collapsible][hidden] { display: none !important; }
