:root {
  --color-bg: #ffffff;
  --color-text: #1a1a1a;
  --color-muted: #8e8e8e;
  --color-line: #eeeeee;
  --font-serif: "Noto Serif JP", "Hiragino Mincho ProN", "MS PMincho", serif;
  --font-sans: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-serif);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

/* Animations */
@keyframes fadeUpOnLoad {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-on-load {
  opacity: 0;
  will-change: opacity, transform;
  animation: fadeUpOnLoad 1.0s cubic-bezier(0.2, 0, 0, 1) 0.1s forwards;
}

@media (max-width: 768px) {
  .animate-on-load {
    animation-duration: 0.5s;
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(16px);
  will-change: opacity, transform;
  transition: opacity 0.5s cubic-bezier(0.2, 0, 0, 1), transform 0.5s cubic-bezier(0.2, 0, 0, 1);
}

@media (min-width: 769px) {
  .fade-in-slow {
    transition: opacity 1.1s cubic-bezier(0.2, 0, 0, 1), transform 1.1s cubic-bezier(0.2, 0, 0, 1);
  }
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  .animate-on-load,
  .fade-in {
    opacity: 1;
    transform: translateY(0);
    animation: none !important;
    transition: none !important;
  }
}

/* Layout */
.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 24px;
  }
}

section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 140px;
}

@media (max-width: 768px) {
  section {
    margin-bottom: 100px;
  }
}

#first-view {
  min-height: 100vh;
  margin-bottom: 0;
  justify-content: center;
  text-align: left;
}

#statement {
  align-items: center;
}

@media (max-width: 768px) {
  #statement {
    align-items: flex-start;
  }
}

/* Typography & Sections */
h1, h2, h3, p {
  margin: 0;
  font-weight: normal;
}

.label {
  font-family: var(--font-sans);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--color-muted);
  margin-bottom: 32px;
  display: block;
  text-align: left;
}

#statement .label {
  text-align: center;
}

@media (max-width: 768px) {
  #statement .label {
    text-align: left;
  }
}

.title-group h1 {
  font-size: 20px;
  font-weight: 400;
  margin: 0 0 12px 0;
  letter-spacing: 0.1em;
  line-height: 1.5;
}

.title-group p {
  font-size: 14px;
  color: var(--color-muted);
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: 0.08em;
}

.statement-text {
  font-size: 15px;
  color: var(--color-text);
  line-height: 2.1;
  letter-spacing: 0.04em;
  text-align: center;
  max-width: 500px;
}

@media (max-width: 768px) {
  .statement-text {
    text-align: left;
    font-size: min(15px, calc((100vw - 48px) / 24.5));
    line-height: 1.9;
  }
}

.statement-text p {
  margin-bottom: 1.4rem;
}
.statement-text p.spaced {
  margin-bottom: 2.8rem;
}
.statement-text p.section-break {
  margin-bottom: 4.8rem;
}
.statement-text p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .statement-text p {
    margin-bottom: 20px;
  }
  .statement-text p.spaced {
    margin-bottom: 40px;
  }
  .statement-text p.section-break {
    margin-bottom: 68px;
  }
}

.sp-br {
  display: none;
}

@media (max-width: 520px) {
  .sp-br {
    display: inline;
  }
  .statement-text p.sp-no-margin {
    margin-bottom: 0;
  }
}

/* Writing Section */
.writing-card {
  background: transparent;
  border: 1px solid var(--color-line);
  padding: 56px 40px;
  position: relative;
  text-align: left;
  max-width: 600px;
  width: 100%;
}

@media (max-width: 768px) {
  .writing-card {
    padding: 40px 24px;
  }
}

.newsletter-title {
  font-size: 19px;
  margin-bottom: 20px;
  display: block;
  letter-spacing: 0.05em;
}

.newsletter-desc {
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.9;
  letter-spacing: 0.04em;
  text-align: left;
}

.newsletter-desc p {
  margin-bottom: 1.6rem;
}
.newsletter-desc p:last-child {
  margin-bottom: 0;
}

.cta-link {
  display: inline-block;
  margin-top: 32px;
  font-size: 14px;
  border-bottom: 1px solid var(--color-text);
  padding-bottom: 6px;
  text-decoration: none;
  color: var(--color-text);
  transition: opacity 0.3s ease, border-color 0.3s ease;
  letter-spacing: 0.05em;
}

.cta-link:hover, .cta-link:focus-visible {
  opacity: 0.6;
  border-color: transparent;
}
.cta-link:focus-visible {
  outline: 1px dotted var(--color-text);
  outline-offset: 4px;
}

/* Profile */
.profile-text {
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.9;
  letter-spacing: 0.04em;
  text-align: left;
  max-width: 540px;
}

.profile-text .profile-name {
  margin-bottom: 12px;
  font-weight: 500;
}

.profile-desc {
  color: var(--color-muted);
}

.profile-text p {
  margin-bottom: 1rem;
}
.profile-text p:last-child {
  margin-bottom: 0;
}

/* Company */
.company-table {
  width: 100%;
  font-size: 13px;
  border-top: 1px solid var(--color-line);
  border-collapse: collapse;
  letter-spacing: 0.04em;
  text-align: left;
}

.company-table td {
  padding: 18px 0;
  border-bottom: 1px solid var(--color-line);
  vertical-align: top;
  line-height: 1.7;
}

.company-table td:first-child {
  width: 140px;
  color: var(--color-muted);
  font-family: var(--font-sans);
}

@media (max-width: 480px) {
  .company-table td {
    display: block;
    padding: 14px 0 4px 0;
    border-bottom: none;
  }
  .company-table td:first-child {
    width: 100%;
    padding: 18px 0 0 0;
  }
  .company-table tr {
    display: block;
    border-bottom: 1px solid var(--color-line);
    padding-bottom: 14px;
  }
}

.text-link {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.text-link:hover, .text-link:focus-visible {
  opacity: 0.6;
}
.text-link:focus-visible {
  outline: 1px dotted var(--color-text);
  outline-offset: 4px;
}

/* Footer */
.footer-info {
  font-size: 11px;
  color: var(--color-muted);
  font-family: var(--font-sans);
  letter-spacing: 0.05em;
  padding-bottom: 80px;
}

@media (max-width: 768px) {
  .newsletter-title {
    font-size: 16px;
    margin-bottom: 16px;
  }
  .newsletter-desc {
    font-size: 13.5px;
    line-height: 1.85;
  }
  .newsletter-desc p {
    margin-bottom: 1.4rem;
  }
  .cta-link {
    font-size: 13.5px;
    margin-top: 24px;
  }
  .profile-text {
    font-size: 13.5px;
    line-height: 1.85;
  }
  .profile-text p {
    margin-bottom: 0.9rem;
  }
  .company-table {
    font-size: 12.5px;
  }
}
