*,
*:before,
*:after {
	-webkit-box-sizing: inherit;
	box-sizing: inherit;
}

:root {
  /* Base font size */
  --font-size-base: 16px;

  /* Type scale tokens */
  --font-size-xs: clamp(0.375rem, 0.304rem + 0.476vw, 0.875rem);
  --line-height-xs: 1.8;
  --font-size-s: clamp(0.5rem, 0.411rem + 0.595vw, 1.125rem);
  --line-height-s: 1.8;
  --font-size-r: clamp(0.688rem, 0.598rem + 0.595vw, 1.313rem);
  --line-height-r: 1.8;
  --font-size-m: clamp(0.75rem, 0.607rem + 0.952vw, 1.75rem);
  --line-height-m: 1.55;
  --font-size-l: clamp(0.938rem, 0.759rem + 1.19vw, 2.188rem);
  --line-height-l: 1.49;
  --font-size-xl: clamp(1.188rem, 0.964rem + 1.488vw, 2.75rem);
  --line-height-xl: 1.41;
  --font-size-2xl: clamp(1.438rem, 1.152rem + 1.905vw, 3.438rem);
  --line-height-2xl: 1.36;
  --font-size-3xl: clamp(1.813rem, 1.464rem + 2.321vw, 4.25rem);
  --line-height-3xl: 1.29;
}

html {
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
	height: 100%;
	height: -webkit-fill-available;
	scroll-behavior: smooth;
}

body {
	font-family: "Yu Gothic Medium", "游ゴシック Medium", YuGothic, "游ゴシック体", "ヒラギノ角ゴ Pro W3", "メイリオ", sans-serif;
	font-weight: 500;
	color: #131415;
	font-size: var(--font-size-s);
	line-height: var(--line-height-s);
	letter-spacing: 0.01em;
	text-align: justify;
	background-color: #FFF;
	position: relative;
	min-height: 100svh;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(2rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn linear;
  animation-timeline: view();
  animation-range: entry 0% cover 50%;
}

@supports not (animation-timeline: view()) {
  .fade-in {
    opacity: 1;
    transform: none;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-200px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in {
	animation: slideIn linear;
	animation-timeline: view();
	animation-range: entry 0% cover 50%;
}

@supports not (animation-timeline: view()) {
  .slide-in {
    opacity: 1;
    transform: none;
  }
}

h1 {
	font-size: var(--font-size-xl);
	line-height: var(--line-height-xl);
	letter-spacing: 0.02em;
	font-weight: bold;
}

h2 {
    font-size: var(--font-size-3xl);
	line-height: var(--line-height-3xl);
	letter-spacing: 0.02em;
	font-weight: bold;
}

h3 {
	font-size: var(--font-size-m);
	line-height: var(--line-height-m);
	letter-spacing: 0.005em;
	font-weight: bold;
}

h4 {
	font-size: var(--font-size-r);
	line-height: var(--line-height-r);
	letter-spacing: 0.005em;
}

/* --------------- Header --------------- */
#header {
	width: 50%;
	height: auto;
	position: sticky;
	top: 50px;
	left: 0;
	display: grid;
	place-items: center;
	color: #F3FCFF;
	font-weight: bold;
	z-index: 1;
}

#header .container {
	position: relative;
	display: flex;
	border: 1px solid #F3FCFF;
	background-color: #00B4E1;
	border-radius: 15px;
	padding: 1em 0.5em;
}

#header h1 {
	font-size: var(--font-size-xs);
	line-height: 1;
	margin-right: 3em;
	margin-left: 1em;
}

#header .navi {
	font-size: var(--font-size-xs);
	line-height: 1;
}

#header .navi ul {
	display: flex;
}

#header .navi ul li {
	text-align: right;
	line-height: 1;
	margin-left: 0.5em;
}

#header .navi ul li a {
	border-radius: 10px;
}

#header .navi ul li a {
	position: relative;
	line-height: 1;
	padding: 0.5em 1em;
}

#header .navi ul li a:hover,
#header .navi ul li a:active {
	color: #00B4E1;
	background-color: #F3FCFF;
}

#header .navi ul li a::before {
	
}
#header .navi ul li a:hover::before {
	
}

#header .navi ul li a.link-current {
	color: #00B4E1;
	background-color: #F3FCFF;
}

#header #hamburger {
	display: none;
}

/* --------------- Main --------------- */
main {
	width: 100svw;
	min-height: 100svh;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	align-items: stretch;
	position: relative;
}

/* --------------- Hero --------------- */
#hero {
	background-color: #00B4E1;
}

#hero article {
	width: 50%;
	min-height: 100svh;
	position: fixed;
	top: 0;
	display: grid;
	place-items: center;
	background-color: #00B4E1;
	background-image: url('../img/whoopee-logo.png');
	background-position: center center;
	background-size: 70%;
	background-repeat: no-repeat;
}

/* --------------- Contents --------------- */
#contents {
	position: relative;
	background-color: #F3FCFF;
}

#contents section {
	min-height: 100svh;
	display: grid;
	place-items: center;
}

#contents .container {
	width: 90%;
}

#contents h2 {
	position: relative;
}

#contents h2::before {
	content: '';
	display: inline-block;
	position: absolute;
	top: 50%;
	left: -2.25em;
	background-color: #F5CE13;
	width: 2em;
	height: 1px;
}

#contents h3 {
	color: #036EB8;
	margin-top: 0.5em;
}

#contents ul li {
	padding-left: 0.5em;
	border-left: 3px solid #F5CE13;
	margin-bottom: 0.5em;
}

#contents ul li.example {
	display: inline-block;
	font-weight: bold;
	padding: 0 0.5em;
	margin-bottom: 1em;
	border: 1px solid #F5CE13;
	border-radius: 5px;
	font-size: var(--font-size-xs);
	line-height: var(--line-height-xs);
}

#info table {
	margin-top: 0.5em;
}

#info table tr {
	border-bottom: 1px solid #F5CE13;
}

#info table tr:last-child {
	border-bottom: none;
}

#info table th {
	padding: 0.5em 1.5em 0.5em 0.5em;
	white-space: nowrap;
}

#info table td {
	padding: 0.5em;
}
