/* =========================
   athome_type taxonomy page
========================= */

.athome-type-archive {
  padding: 40px 16px 56px;
  background: #fff;
}

.athome-type-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.athome-type-header {
  margin-bottom: 32px;
  text-align: center;
}

.athome-type-title {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.3;
  font-weight: 700;
  color: #222;
}

.athome-type-description {
  max-width: 760px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.9;
  color: #555;
}

/* 一覧グリッド */
.athome-content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

/* リンク全体 */
.athome-content-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.athome-content-link:hover {
  text-decoration: none;
  color: inherit;
}

/* サムネイル */
.athome-content-thumb {
  overflow: hidden;
  border-radius: 12px;
  background: #f7f7f7;
  aspect-ratio: 1 / 1;
}

.athome-content-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.athome-content-card:hover .athome-content-thumb img {
  transform: scale(1.03);
}

.athome-content-noimage {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 14px;
  color: #777;
  background: #f3f3f3;
}

/* タイトル */
.athome-content-name {
  margin: 14px 0 0;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 700;
  color: #222;
  text-align: center;
}

/* ボタン領域 */
.athome-content-actions {
  margin-top: auto;
  text-align: center;
}

/* ページネーション */
.athome-pagination {
  margin-top: 40px;
  text-align: center;
}

.athome-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  margin: 0 4px;
  padding: 0 10px;
  border: 1px solid #ddd;
  border-radius: 999px;
  background: #fff;
  color: #333;
  text-decoration: none;
}

.athome-pagination .page-numbers.current {
  background: #222;
  border-color: #222;
  color: #fff;
}

/* コンテンツなし */
.athome-no-content {
  margin-top: 24px;
  text-align: center;
  font-size: 16px;
  color: #666;
}

/* タブレット */
@media (max-width: 991px) {
  .athome-content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

/* スマホ */
@media (max-width: 767px) {
  .athome-type-archive {
    padding: 32px 14px 48px;
  }

  .athome-type-header {
    margin-bottom: 24px;
    text-align: left;
  }

  .athome-type-description {
    max-width: none;
    font-size: 15px;
  }

  .athome-content-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .athome-content-card {
    padding: 14px;
    border-radius: 14px;
  }

  .athome-content-name {
    font-size: 16px;
  }

  .athome-download-button {
    width: 100%;
  }
}

/* =========================
   /athome page
========================= */
.athome-page-title{
	display:none;
}
.athome-page {
  padding: 40px 16px 56px;
  background:url(https://www.npo-tashizan.jp/wp-content/uploads/homeBackground.png)!important;
  background-size: 100% auto!important;
  background-repeat: repeat-y!important;
}

.athome-page-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.athome-page-header {
  margin-bottom: 40px;
  text-align: center;
}

.athome-page-title {
  margin: 0 0 20px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.3;
  font-weight: 700;
  color: #222;
	font:;
}

.athome-page-eyecatch {
  margin-bottom: 24px;
}

.athome-page-eyecatch img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.athome-page-description {
  max-width: 760px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.9;
  color: #555;
  text-align: left;
}

.athome-type-sections {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.athome-type-section {
  position: relative;
}
.athome-type-section-head {
  margin-bottom: 18px;
  text-align: center;
}
.athome-type-section-title {
  display: inline-block;
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 900;
  line-height: 1.3;
  margin: 0;
  letter-spacing: 0.05em;
	font-family: "tyranno";
  color: #7b22d3;
	-webkit-text-stroke: 8px white; /* 線の太さ と 色 */
  paint-order: stroke;
}

.athome-type-title {
  margin: 0;
  font-family: "tyranno";
  font-size: 28px;
  font-weight: 800;
  line-height: 1.4;
  margin: 0 0 10px;
  text-align: center;
  color: #7b22d3;
  -webkit-text-stroke: 2px #fff;
  text-stroke: 2px #fff;
  paint-order: stroke;
  text-shadow:
    0 2px 0 #fff,
    0 4px 10px rgba(0, 0, 0, 0.20);
}

.athome-type-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
/* 横スクロール本体 */
.athome-type-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 8px 20px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
	 cursor: grab;
  scroll-behavior: auto;
}
.athome-type-scroll.is-dragging {
  cursor: grabbing;
}
.athome-type-scroll * {
  user-select: none;
}

/* スクロールバー調整 */
.athome-type-scroll::-webkit-scrollbar {
  height: 10px;
}

.athome-type-scroll::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.15);
  border-radius: 999px;
}

.athome-type-scroll::-webkit-scrollbar-thumb {
  background: rgba(154, 53, 240, 0.85);
  border-radius: 999px;
}

.athome-content-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
}


.athome-type-card,.athome-content-card {
  height: 100%;
}

.athome-type-card-link,.athome-content-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.95) 0%,
    rgba(245,245,255,0.92) 100%
  );
	backdrop-filter: blur(6px);
  box-shadow:
    0 8px 24px rgba(0,0,0,0.18),
    0 2px 6px rgba(0,0,0,0.08);
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.athome-type-card-link:hover, .athome-content-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  color: inherit;
  text-decoration: none;
	pointer-events: none;
}

.athome-type-card-head {
  margin-bottom: 12px;
}

.athome-type-card-title {
  margin: 0;
  font-family: "tyranno";
  font-size: 28px;
  font-weight: 800;
  line-height: 1.4;
  margin: 0 0 10px;
  text-align: center;
  color: #7b22d3;
  text-shadow:
    0 2px 0 #fff,
    0 4px 8px rgba(0, 0, 0, 0.20);
}



.athome-type-card-thumb {
	height: 140px;
  overflow: hidden;
  border-radius: 12px;
  background: #f7f7f7;
  aspect-ratio: auto;
}

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

.athome-type-card-noimage {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #777;
  background: #f3f3f3;
  font-size: 14px;
}

.athome-type-card-footer {
  margin-top: auto;
  padding-top: 16px;
  text-align: center;
}

.athome-type-card-button,.athome-download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 24px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(180deg, #a93cff 0%, #7b22d3 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  box-shadow:
    0 4px 0 #5b169f,
    0 8px 18px rgba(123, 34, 211, 0.28);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

.athome-type-card-button:hover,
.athome-download-button:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow:
    0 6px 0 #5b169f,
    0 12px 22px rgba(123, 34, 211, 0.32);
}

.athome-type-card-button:active,
.athome-download-button:active {
  transform: translateY(2px);
  box-shadow:
    0 2px 0 #5b169f,
    0 4px 10px rgba(123, 34, 211, 0.2);
}

@media (max-width: 991px) {
  .athome-type-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 767px) {
	  .athome-type-sections {
    gap: 36px;
  }

  .athome-type-scroll {
    gap: 16px;
    padding-bottom: 16px;
  }
  .athome-page {
    padding: 32px 14px 48px;
  }
	  .athome-content-thumb {
    height: 220px;
  }
.athome-content-card {
    flex: 0 0 60vw;
  }
  .athome-page-header {
    text-align: left;
  }

  .athome-type-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .athome-type-card-title {
    font-size: 18px;
  }
}

.athome-back-home {
  margin-top: 48px;
  text-align: center;
}

.athome-back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 14px 32px;
  border-radius: 999px;

  background: linear-gradient(180deg, #a93cff 0%, #7b22d3 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;

  box-shadow:
    0 4px 0 #5b169f,
    0 10px 20px rgba(123, 34, 211, 0.25);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.athome-back-button:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow:
    0 6px 0 #5b169f,
    0 14px 24px rgba(123, 34, 211, 0.3);
}

.athome-back-button:active {
  transform: translateY(2px);
  box-shadow:
    0 2px 0 #5b169f,
    0 6px 12px rgba(123, 34, 211, 0.2);
}

/*利用規約*/
.athome-download-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.athome-agree-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
}

.athome-agree-label a {
  text-decoration: underline;
}

.athome-agree-checkbox {
  margin-top: 3px;
  flex-shrink: 0;
}

.athome-download-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow:
    0 2px 0 #6117aa,
    0 4px 10px rgba(97, 23, 170, 0.15);
}

