@charset "UTF-8";

:root {
	--floating-button-bottom: 1rem;
	--floating-button-right: 1rem;
}

.hidden {
  display: none;
}

/* ==========================================================================
   和風タイポグラフィ
   ========================================================================== */

body {
  font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "MS PMincho", serif;
}

h1, h2, h3, .wp-block-heading {
  padding-bottom: 0.5rem;
}

blockquote, .wp-block-quote {
  border-left: none;
  border-top: 1px solid var(--gc-12-sakura-iro);
  border-bottom: 1px solid var(--gc-12-sakura-iro);
  background: var(--gc-12-kinari-iro-50); 
  padding: 2rem;
  text-align: center;
}

/* ==========================================================================
   main section
   ========================================================================== */

main section.is-layout-constrained,
main section.is-layout-constrained .wp-block-query,
main section.is-layout-constrained .wp-block-query ul {
	padding: 0;
}

/* ==========================================================================
   Button
   ========================================================================== */

.wp-block-button__link, .wp-element-button {
  border-radius: 999px;
  box-shadow: 2px 2px 0 var(--gc-12-azuki-iro-20);
}

/* add-card */

/* ========================================
   Card block
   ======================================== */

.cards li {
  background: var(--wp--preset--color--light);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color, #e5e5e5);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}

.cards li:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  border-color: var(--accent, #333333);
}

.cards li:active {
  transform: scale(0.98);
}

.cards li > figure {
	margin-block-end: 0 !important;
}

.cards li > div {
	padding: var(--wp--custom--spacing--small);
	margin: 0;
}

.cards li > div .wp-block-post-title,
.cards li > div div {
	padding: 0;
	margin-block-end: 0.5rem;
}

.cards .wp-block-post-excerpt p {
	margin-block-end: 0.5rem !important;
}

.cards .wp-block-post-excerpt__more-text {
	text-align: right;
	margin-block-start: 0;
	margin-block-end: 0.5rem;
}


/* li全体をリンクにする */
/* 親を基準にする */
.wp-block-post {
  position: relative;
}

/* タイトルリンクをカード全体に拡張 */
.wp-block-post-title a {
  position: static;
}

.wp-block-post-title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* 他のリンクを上に出したい場合 */
.wp-block-post-excerpt__more-link {
  position: relative;
  z-index: 2;
}

/* zine */
:root {
  --header-height: 72px;
  --clr-bg: #f4f4f2;
  --clr-primary: #0077aa;
  --clr-dark: #222222;
  --clr-overlay: rgba(0, 0, 0, 0.5);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* scroll-snap-type: y mandatory; */
  scroll-padding-top: var(--header-height);
  overflow-x: hidden;
}

/* PC のみスナップ有効 */
@media (min-width: 769px) {
  html {
    scroll-snap-type: y mandatory;
  }
}

body {
  margin: 0;
  font-family: 'Hiragino Kaku Gothic ProN', "Noto Serif JP", serif;
  background-color: var(--clr-bg);
  color: #333;
  line-height: 1.6;
}

.sp-hidden {
	display: block;
}

@media (min-width: 769px) {
	.sp-hidden {
		display: none;
	}
}

a {
    &:hover {
        --d: 0;
    }
}

/* ======================
   Header
====================== */

header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-height);
  width: 100%;
  background-color: var(--clr-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

header h2 {
  margin: 0;
  font-size: 1.5rem;
}

/* ======================
   Layout
====================== */

main {
  margin-top: var(--header-height);
}

section {
  height: calc(100vh - var(--header-height));
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: start;
  position: relative;

  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

section.active {
  opacity: 1;
  transform: translateY(0);
}

/* ======================
   Hero
====================== */

.hero {
  background: url('images/hero-01.png') no-repeat center / cover;
  padding: 0;
}

.hero .overlay {
  width: 100%;
  height: 100%;
  background-color: var(--clr-overlay);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
}

.hero h2 {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
}

/* ======================
   Features
====================== */

.section-content {
  width: 100%;
  max-width: 1000px;
  text-align: center;
}

.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.feature {
  width: 300px;
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  text-align: left;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.feature img {
  width: 100%;
  border-radius: 4px;
  margin-bottom: 15px;
}

/* ======================
   Pagination
====================== */

.side-pagination {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
}

.side-pagination ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.side-pagination .dot {
  display: block;
  width: 12px;
  height: 12px;
  margin: 15px 0;
  border: 2px solid var(--clr-primary);
  border-radius: 50%;
  transition: transform 0.3s ease, background 0.3s ease;
}

.side-pagination .dot.active {
  background: var(--clr-primary);
  transform: scale(1.3);
}

/* ======================
   Buttons
====================== */

.cta a {
  display: inline-block;
  padding: 12px 28px;
  margin: 5px;
  background: var(--clr-primary);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
}

/* ======================
   Footer
====================== */

footer {
  background: var(--clr-dark);
  color: #ccc;
  text-align: center;
  padding: 60px 20px;
  line-height: 2;
  scroll-snap-align: end;
}
footer a {
  color: #fff;}

/* ======================
   Responsive
====================== */

@media (max-width: 768px) {
  .side-pagination {
    display: none;
  }

  section {
    height: auto;
    min-height: calc(100vh - var(--header-height));
    padding: 40px 16px;
    scroll-snap-align: none;
  }

  footer {
    scroll-snap-align: none;
  }
}