
/* =========================
   Tokens
   色・余白は var() で使う
   ブレークポイントは @media に var() できないのでコメントで揃える
   SP: 768px
   ヘッダー: 1100px / 高さ 44px / 上 64px / 左右余白 16px
   PC下限: 1132px（1100 + 16 * 2）— @media は var() 不可なので 1131px
========================= */

:root {
  --color-text: #222222;
  --color-white: #ffffff;
  --color-black: #111111;
  --color-pink: #e5007f;
  --color-yellow: #fff100;
  --color-blue: #00a0e9;
  --color-grey: #f4f4f4;
  --color-grey-deep: #cbcbcb;
  --color-status-open: #f9096c;
  --color-status-closed: #1eafe9;

  --font-en: "Lexend", "Noto Sans JP", sans-serif;
  --font-jp: "Noto Sans JP", sans-serif;
  --font-contact: "Plus Jakarta Sans", sans-serif;

  --header-width: 1100px;
  --header-height: 44px;
  --header-top: 64px;
  --header-margin-x: 16px;
}

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

/* =========================
   Base
========================= */

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  overflow-y: auto;
}

body {
  margin: 0;
  font-family: var(--font-jp);
  color: var(--color-text);
  background: var(--color-white);
  position: relative;
  width: 100%;
  overflow-x: clip;
}

img {
  max-width: 100%;
  height: auto;
}

section {
  scroll-margin-top: calc(var(--header-top) + var(--header-height) + 16px);
}

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

/* =========================
   Utilities
========================= */

.fontcolor-white {
  color: var(--color-white);
}

.fontcolor-black {
  color: var(--color-black);
}

.backcolor-pink {
  background-color: var(--color-pink);
}

.backcolor-grey {
  background-color: var(--color-grey);
}

.backcolor-yellow {
  background-color: var(--color-yellow);
}

.backcolor-blue {
  background-color: var(--color-blue);
}

.margintop--25px {
  margin-top: -52px;
}

.marginbottom--52px {
  margin-bottom: -50px;
}

.marginbottom--60px {
  margin-bottom: -70px;
}

.margintop-20px {
  margin-top: 20px;
}

.marginbottom-20px {
  margin-bottom: 20px;
}

.z-index-on {
  z-index: 100000000000000000000000;
}

.z-index-under {
  z-index: -1;
}

.radius-50px {
  border-radius: 50px;
  border: 0px solid;
}

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

.Section {
  position: relative;
  width: 100%;
  max-width: calc(1100px + 32px);
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
  padding-top: 64px;
  padding-bottom: 100px;

  @media (max-width: 768px) {
    padding-left: 20px;
    padding-right: 20px;
  }
}

.Section:has(#projects) {
  padding-bottom: 0;

  @media (max-width: 768px) {
    padding-top: 0;
  }
}

.title {
  font-family: var(--font-en);
  font-size: 64px;
  font-weight: 600;
  margin: 0 0 8px;

  @media (max-width: 768px) {
    font-size: 48px;
  }
}

.sub-title {
  font-family: var(--font-jp);
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;

  @media (max-width: 768px) {
    font-weight: 700;
  }
}

.title-sircle {
  width: 16px;
  height: 16px;
  border-radius: 50px;
}

/* 固定ページのブロック(段落)で組む小見出し。丸は段落の中に要素を置けないため疑似要素で出す
   (.sub-title.circle-pink / -yellow / -blue。色は .backcolor-* と同じ) */
.sub-title:is(.circle-pink, .circle-yellow, .circle-blue)::before {
  content: "";
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: 50px;
}

.sub-title.circle-pink::before {
  background: var(--color-pink);
}

.sub-title.circle-yellow::before {
  background: var(--color-yellow);
}

.sub-title.circle-blue::before {
  background: var(--color-blue);
}

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

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  padding: 12px 28px;
  background: var(--color-white);
  color: var(--color-black);
  font-weight: 700;
  font-family: var(--font-jp);
  border: 1px solid var(--color-text);
  border-radius: 999px;
  overflow: hidden;
  cursor: pointer;
  line-height: 1;
  transition:
    color 0.35s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 0%;
  background: var(--color-pink);
  transition: width 0.5s ease;
  z-index: -1;
}

.btn:hover::before {
  width: 100%;
}

.btn:hover {
  color: var(--color-white);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

