@charset "utf-8";

/* ------------------------------------
 * MARK: Fonts
 * ------------------------------------ */

@font-face {
  font-family: "Local Noto Sans JP";
  src: local("Noto Sans JP");
}

@font-face {
  font-family: "Noto Sans JP";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/NotoSansJP-VariableFont_wght.ttf") format("truetype");
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/Outfit-VariableFont_wght.ttf") format("truetype");
}

/* ------------------------------------
 * MARK: Design Tokens
 * ------------------------------------ */
:root {
  --main: #66c487;
  --main-dark: var(--teal-dark);
  --main-darker: #1a3a2a;
  --main-light: #b4f1bd;
  --main-lighter: var(--green-lighter);
  --glow: #cc9bff;

  --text: #333;
  --text-sub: #4d525f;
  --text-muted: #666;
  --text-label: #999;
  --text-disabled: #bebebe;
  --border: #d9d9d9;
  --bg: #f6f6f6;

  --noto-sans-jp: "Local Noto Sans JP", "Noto Sans JP";

  --blue-dark: #4a7fb5;
  --blue-lighter: #ecf0fb;
  --warm-dark: #b8863e;
  --warm-lighter: #fff6eb;
  --purple-dark: #8b6aae;
  --purple-lighter: #f4edfc;
  --pink-dark: #c46b8a;
  --pink-lighter: #fce8f0;
  --teal-dark: #05a896;
  --teal-lighter: #d2f4f9;
  --green-dark: #51b875;
  --green-lighter: #e8faea;

  --header-height: 52px;
  --duration: 0.2s;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --duration: 0s;
  }
}

/* ------------------------------------
 * MARK: Base
 * ------------------------------------ */
html {
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--noto-sans-jp), system-ui, sans-serif;
  color: var(--text);
  background-color: #fff;
  line-height: 1.5;

  scrollbar-gutter: stable;
  overflow-x: clip;

  line-break: strict;
  overflow-wrap: anywhere;
  text-spacing-trim: trim-start;
}

a,
button {
  touch-action: manipulation;
}

:focus-visible {
  outline-color: var(--main-dark);
}

:focus,
:target,
[id] {
  scroll-margin-top: 1rem;
}

html {
  scroll-padding-top: var(--header-height);
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.en,
:lang(en) {
  font-family: "Outfit", var(--noto-sans-jp), sans-serif;
}

/* ------------------------------------
 * MARK: Headings
 * ------------------------------------ */
:where(h1, h2, h3, h4, h5, h6) {
  font-weight: 700;
}
:where(h1) {
  font-size: 26px;
}
:where(h2) {
  font-size: 20px;
}
:where(h3) {
  font-size: 16px;
}
:where(h4) {
  font-size: 14px;
}

/* ------------------------------------
 * MARK: Utilities
 * ------------------------------------ */

.mt-8 {
  margin-top: 8px;
}
.mt-16 {
  margin-top: 16px;
}
.mt-24 {
  margin-top: 24px;
}
.mt-32 {
  margin-top: 32px;
}

.mb-8 {
  margin-bottom: 8px;
}
.mb-12 {
  margin-bottom: 12px;
}
.mb-16 {
  margin-bottom: 16px;
}
.mb-20 {
  margin-bottom: 20px;
}
.mb-24 {
  margin-bottom: 24px;
}
.mb-32 {
  margin-bottom: 32px;
}

.mx-8 {
  margin-inline: 8px;
}
.mx-16 {
  margin-inline: 16px;
}
.mx-24 {
  margin-inline: 24px;
}
.mx-32 {
  margin-inline: 32px;
}

.my-8 {
  margin-block: 8px;
}
.my-16 {
  margin-block: 16px;
}
.my-24 {
  margin-block: 24px;
}
.my-32 {
  margin-block: 32px;
}

.visually-hidden {
  position: absolute !important;
  inset: 0 !important;
  contain: strict !important;
  visibility: initial !important;
  width: 4px !important;
  height: 4px !important;
  margin: unset !important;
  padding: unset !important;
  border: unset !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.link,
.md-ctt a {
  &:any-link {
    text-decoration-line: underline;
  }

  &:any-link:active,
  &:any-link:focus-visible {
    text-decoration-line: none;
  }

  @media (any-hover: hover) {
    &:any-link:hover {
      text-decoration-line: none;
    }
  }
}

:root,
.-birthday {
  --theme-fg: var(--teal-dark);
  --theme-bg: var(--teal-lighter);
  --theme-accent-bg: var(--green-lighter);
}

.-wedding {
  --theme-fg: var(--warm-dark);
  --theme-bg: var(--warm-lighter);
  --theme-accent-bg: var(--pink-lighter);
}

.-baby {
  --theme-fg: var(--green-dark);
  --theme-bg: var(--green-lighter);
  --theme-accent-bg: var(--warm-lighter);
}

.-fathers-day {
  --theme-fg: var(--blue-dark);
  --theme-bg: var(--blue-lighter);
  --theme-accent-bg: var(--teal-lighter);
}

.-mothers-day {
  --theme-fg: var(--pink-dark);
  --theme-bg: var(--pink-lighter);
  --theme-accent-bg: var(--purple-lighter);
}

.-return-gift {
  --theme-fg: var(--purple-dark);
  --theme-bg: var(--purple-lighter);
  --theme-accent-bg: var(--blue-lighter);
}

/* ------------------------------------
 * MARK: Buttons
 * ------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  border: 1px solid transparent;
  border-radius: calc(1px / 0);
  font-size: 13px;
  font-weight: 600;
  min-height: 44px;
  transition-duration: var(--duration);
}

/* Variant: Primary */
.btn.-primary {
  border-color: currentColor;
  background-color: var(--main-lighter);
  color: var(--main-dark);
  transition-property: background-color;
}

.btn.-primary:active,
.btn.-primary:focus-visible {
  background-color: oklch(
    from var(--main-lighter) calc(l - 0.05) calc(c + 0.05) h
  );
}

@media (any-hover: hover) {
  .btn.-primary:hover {
    background-color: oklch(
      from var(--main-lighter) calc(l - 0.05) calc(c + 0.05) h
    );
  }
}

/* Variant: Filled */
.btn.-filled {
  background-color: var(--main-dark);
  color: #fff;
  transition-property: background-color;
}

.btn.-filled:active,
.btn.-filled:focus-visible {
  background-color: oklch(from var(--main-dark) calc(l - 0.1) c h);
}

@media (any-hover: hover) {
  .btn.-filled:hover {
    background-color: oklch(from var(--main-dark) calc(l - 0.1) c h);
  }
}

/* Variant: Outlined */
.btn.-outlined {
  border-width: 1.5px;
  border-color: var(--border);
  background-color: #fff;
  color: var(--text-sub);
  transition-property: border-color, background-color, color, font-weight;
}

.btn.-outlined:active,
.btn.-outlined:focus-visible {
  border-color: currentColor;
  color: var(--main-dark);
  background-color: var(--main-lighter);
  font-weight: 800;
}

@media (any-hover: hover) {
  .btn.-outlined:hover {
    border-color: currentColor;
    color: var(--main-dark);
    background-color: var(--main-lighter);
    font-weight: 800;
  }
}
