/* Variables */
:root {
  --color-primary: #1A5FB4;
  --color-secondary: #2FAF6E;
  --color-accent: #E86A1C;
  --color-text: #333;
  --color-bg-light: #f1f1f1;
  --color-bg: #f7f7f7;
  --color-bg-gray: #eee;
  --color-black: #000;
  --color-white: #fff;

  --space-zero: 0;
  --space-ex-sm: 0.5rem;
  --space-sm: 1rem;
  --space: 1.5rem;
  --space-lg: 2rem;
  --space-ex-lg: 3rem;
}

/* Base */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  font-family: "Inter", "Noto Sans JP", sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg-light);
}

main {
  background-color: #fff;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--space);
}

section {
  padding: var(--space-ex-lg) 0;
}

.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
}

.section-discription {
  text-align: center;
  margin-top: var(--space-sm);
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Utility */
.color-orange {
  color: var(--color-accent);
}

.color-blue {
  color: var(--color-primary);
}

.color-green {
  color: var(--color-secondary);
}

/* Header */
.site-header {
  background-color: #fff;
  border-bottom: 1px solid #eee;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.site-logo img {
  display: block;
  width: 300px;
  height: auto;
}

.global-nav ul {
  display: flex;
  gap: 24px;
  list-style: none;
}

.global-nav a {
  font-size: 14px;
  text-decoration: none;

  &:hover {
    text-decoration: underline;
  }
}

/* Footer */
footer {
  background-color: var(--color-bg);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  padding: var(--space);
}

.footer-title {
  font-weight: 700;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  text-decoration: none;

  &:hover {
    text-decoration: underline;
  }
}

.site-note {
  font-size: 0.8em;
  color: #666;
  margin-top: var(--space);
  text-align: center;
}

.footer-copy {
  text-align: center;
  border-top: 1px solid #e5e5e5;
  padding: var(--space-ex-sm) 0;
}

.footer-copy a {
  font-size: 12px;
  text-decoration: none;

  &:hover {
    text-decoration: underline;
  }
}

/* Top to page */
.pagetop {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 50px;
  height: 50px;
  background-color: #333;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
  cursor: pointer;
  border: none;
}

.pagetop.is-show {
  opacity: 1;
  visibility: visible;
}

.pagetop:hover {
  transform: translateY(-5px);
  background-color: var(--color-primary);
}

.pagetop::before {
  content: "";
  width: 10px;
  height: 10px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: rotate(-45deg);
  margin-top: 4px;
}

/* Dummy */
.dummy {
  background-color: var(--color-primary);
  position: relative;
  min-height: 120px;
}

.dummy::after {
  content: "DUMMY IMAGE";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 12px;
  color: #fff;
}