/* TY4WHALE — Base Styles */

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

/* Body */
body {
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.05em;
  color: var(--color-text-primary);
  background-color: var(--color-bg);

  /* 日本語禁則処理 */
  word-break: break-all;
  overflow-wrap: break-word;
  line-break: strict;

  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-feature-settings: "palt" 1;
  color: var(--color-text-primary);
}

h1 { font-size: 32px; font-weight: 700; line-height: 1.3; }
h2 { font-size: 24px; font-weight: 600; line-height: 1.4; }
h3 { font-size: 20px; font-weight: 600; line-height: 1.4; letter-spacing: 0.02em; }
h4 { font-size: 16px; font-weight: 600; line-height: 1.5; }

/* Paragraph */
p {
  margin-bottom: var(--space-4);
}

p:last-child {
  margin-bottom: 0;
}

/* Links */
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-dark);
}

/* Lists */
ul, ol {
  list-style: none;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Buttons */
button {
  font-family: var(--font-family);
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Utility: Text colors */
.text-secondary { color: var(--color-text-secondary); }
.text-muted     { color: var(--color-text-muted); }
.text-primary   { color: var(--color-primary); }

/* Utility: Text sizes */
.text-display {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.text-caption {
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.04em;
}

.text-small {
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

/* Mobile typography */
@media (max-width: 767px) {
  body {
    font-size: 15px;
  }

  .text-display {
    font-size: 36px;
  }

  h1 { font-size: 28px; }
  h2 { font-size: 22px; }
  h3 { font-size: 18px; }
}
