@charset "utf-8";
@import url("https://fonts.googleapis.com/css?family=Open+Sans:400,700");
@import url('https://fonts.googleapis.com/css2?family=Cabin+Sketch&family=Cutive+Mono&family=Josefin+Slab:wght@600&family=Kiwi+Maru&family=Pacifico&family=Poiret+One&display=swap');

/* --

font-family: 'Cabin Sketch', cursive;
font-family: 'Cutive Mono', monospace;
font-family: 'Josefin Slab', serif;
font-family: 'Kiwi Maru', serif;
font-family: 'Pacifico', cursive;
font-family: 'Poiret One', cursive;

-- */

/* Variables */
:root {
	--mint: #7affff;
	--chocolate: #ec9c9d;
	--raspberry: #ff42a0;
	--vanilla: #ffff7a;
	
	--headerText: var(--vanilla);
	--headerBg: var(--raspberry);
}

/* --Reset and boilerplate stuff-- */
* {
	box-sizing: border-box;
}

body {
	font-family: 'Kiwi Maru', serif;
	margin: 0;
	background: var(--vanilla);
	color: var(--chocolate);
	line-height: 1.6;
}

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

svg {
	width: 100%;
	height: auto;
	fill: currentColor;
}

img {
	display: block;
	max-width: 100%;
}

h1 {
  font-size: 3.5rem;
  font-family: 'Cabin Sketch', cursive;
}

@media (min-width: 40em) {
	body {
		font-size: 1.2rem;
	}
	
	h1 {
		font-size: 3.5rem;
	}
}

h2 {
  font-size: 3.5rem;
  font-family: 'Poiret One', cursive;
}

h3 {
  font-size: 3.5rem;
  font-family: 'Pacifico', cursive;
}

h4 {
  font-size: 3.5rem;
  font-family: 'Josefin Slab', serif;
}

h5 {
  font-size: 3.5rem;
  font-family: 'Cutive Mono', monospace;
}

a {
	color: inherit;
	text-decoration: none;
}

section {
	padding: 5rem 0;
	min-height: 100vh;
	display: grid;
	place-items: center;
}
/* ----- */

/* --Header-- */
header {
	position: fixed;
	width: 100%;
	padding: 0 max(1rem, 3vw);
	background-color: var(--headerBg);
	color: var(--headerText);
  font-size: 1.5rem;
	font-weight: 700;
  font-family: 'Cutive Mono', monospace;
}
/* ----- */

/* --Layout stuff-- */
.section__img {
	max-width: 12rem;
	margin: 0 auto;
}

@media (min-width: 40em) {
	.section__img {
		max-width: none;
	}
}

section:last-child .section__img {
	max-width: 25rem;
}

.container {
	max-width: 60rem;
	padding: 0 min(2rem, 5vw);
}

@media (min-width: 40rem) {
	.grid {
		display: grid;
		align-items: center;
		grid-template-columns: 1fr 2fr;
		gap: 3rem;
	}
}

.header__nav {
	display: flex;
	align-items: center;
}

.header__list {
	display: none;
	margin-left: auto;
}

@media (min-width: 40rem) {
	.header__list {
		display: flex;
	}
}

.header__list a {
	display: block;
	padding: 1rem;
}
/* ----- */

/* --Secton specific styles, not related to demo-- */
.section__link {
	display: inline-block;
	background: var(--chocolate);
	padding: 1rem 1.5rem;
	color: var(--vanilla);
	border-radius: 0.5rem;
	font-weight: 700;
	margin-top: 1.5rem;
}
/* ----- */

/* --Section colors-- */
[data-section="raspberry"] {
	background-color: var(--raspberry);
	color: var(--vanilla);
}

[data-section="mint"]  {
	background-color: var(--mint);
	color: var(--chocolate);
}

[data-section="vanilla"] {
	background-color: var(--vanilla);
	color: var(--chocolate);
}

[data-section="chocolate"] {
	background-color: var(--chocolate);
	color: var(--vanilla);
}
/* ----- */

/* --Setting the custom properties for header colors-- */
[data-theme="raspberry"]  {
	--headerText: var(--raspberry);
	--headerBg: var(--vanilla);
}

[data-theme="mint"] {
	--headerText: var(--mint);
	--headerBg: var(--chocolate);
}

[data-theme="chocolate"]  {
	--headerText: var(--chocolate);
	--headerBg: var(--vanilla);
}
/* ----- */

/* --Setting the scroll root - because Codepen puts the content in an iframe-- */
.scroller {
	height: 100vh;
	width: 100%;
	overflow: auto;
}
/* ----- */




/* --ページトップリンク--- */

/*========= ページトップのためのCSS ===============*/
.pagetop {
  position: fixed;
  bottom: 10px;
  right: 40px;
  width: 100px;
  color: #000;
  font-size: 1.5rem;
  font-family: 'Cabin Sketch', cursive;
}
