.mako-profile {
  --profile-ink: #303030;
  --profile-blue: #3189a7;
  --profile-blue-dark: #17677f;
  --profile-line: #d5e8ee;
  color: var(--profile-ink);
  font-family: "Noto Sans JP", sans-serif;
}

.mako-profile-title .ttl {
  max-width: 1120px;
  text-wrap: balance;
}

.mako-profile-intro,
.mako-profile-history,
.mako-profile-themes,
.mako-profile-books,
.mako-profile-cta {
  box-sizing: border-box;
  width: min(100% - 80px, 1240px);
  margin-inline: auto;
}

.mako-profile-intro {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(420px, 1.18fr);
  gap: clamp(56px, 7vw, 112px);
  align-items: start;
  padding: 44px 0 148px;
}

.mako-profile-portrait {
  margin: 0;
}

.mako-profile-portrait-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #eaf5f8;
}

.mako-profile-portrait-frame::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  pointer-events: none;
}

.mako-profile-portrait-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.mako-profile-portrait figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--profile-ink);
}

.mako-profile-portrait figcaption strong {
  font-size: 1.12rem;
  letter-spacing: 0.12em;
}

.mako-profile-portrait figcaption span {
  color: #586268;
  font-family: Roboto, sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}

.mako-profile-intro-copy {
  padding-top: clamp(8px, 4vw, 72px);
}

.mako-profile-statement {
  margin: 0 0 34px;
  color: var(--profile-blue-dark);
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  font-weight: 700;
  line-height: 1.9;
  letter-spacing: 0.11em;
}

.mako-profile-intro-copy h2 {
  margin: 0 0 42px;
  font-size: clamp(2.25rem, 4.1vw, 4.5rem);
  line-height: 1.35;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.mako-profile-prose {
  max-width: 65ch;
  font-size: 1rem;
  line-height: 2.25;
  letter-spacing: 0.055em;
  text-wrap: pretty;
}

.mako-profile-prose p {
  margin: 0 0 1.6em;
}

.mako-profile-facts {
  margin: 48px 0 0;
  border-top: 1px solid var(--profile-ink);
}

.mako-profile-facts div {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid #c7c7c7;
}

.mako-profile-facts dt,
.mako-profile-facts dd {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
}

.mako-profile-facts dt {
  color: var(--profile-blue-dark);
  font-weight: 700;
}

.mako-profile-history {
  width: 100%;
  padding: 132px max(40px, calc((100vw - 1240px) / 2));
}

.mako-profile-section-heading {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(360px, 1.2fr);
  column-gap: 72px;
  align-items: end;
  padding-bottom: 42px;
  border-bottom: 1px solid var(--profile-ink);
}

.mako-profile-section-heading .en,
.mako-profile-books .en {
  margin: 0 0 14px;
  color: var(--profile-blue-dark);
  font-family: Roboto, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.mako-profile-section-heading h2 {
  grid-column: 1;
  margin: 0;
  font-size: clamp(2rem, 3vw, 3.25rem);
  letter-spacing: 0.12em;
}

.mako-profile-section-heading > p:last-child {
  grid-column: 2;
  grid-row: 1 / span 2;
  max-width: 48ch;
  margin: 0 0 4px;
  font-size: 0.95rem;
  line-height: 2;
  letter-spacing: 0.05em;
}

.mako-profile-history-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 80px;
  align-items: end;
  padding-top: 68px;
}

.mako-profile-timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mako-profile-timeline li {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 34px;
  padding: 0 0 38px;
}

.mako-profile-timeline time {
  color: var(--profile-blue);
  font-family: Roboto, sans-serif;
  font-size: 1.65rem;
  font-weight: 500;
  line-height: 1.35;
}

.mako-profile-timeline div {
  position: relative;
  padding: 0 0 38px 38px;
  border-bottom: 1px solid #bed6df;
}

.mako-profile-timeline div::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--profile-blue);
}

.mako-profile-timeline h3 {
  margin: 0 0 12px;
  font-size: 1.15rem;
  line-height: 1.65;
  letter-spacing: 0.07em;
}

.mako-profile-timeline p {
  max-width: 64ch;
  margin: 0;
  color: #4d575b;
  font-size: 0.88rem;
  line-height: 2;
}

.mako-profile-history-cat {
  margin: 0 0 -22px;
}

.mako-profile-history-cat img {
  display: block;
  width: 100%;
  height: auto;
}

.mako-profile-themes {
  padding: 148px 0;
}

.mako-profile-theme-list {
  margin-top: 72px;
  border-top: 1px solid var(--profile-ink);
}

.mako-profile-theme-list article {
  display: grid;
  grid-template-columns: minmax(170px, 0.6fr) minmax(260px, 0.9fr) minmax(360px, 1.5fr);
  gap: 38px;
  align-items: start;
  padding: 34px 0 38px;
  border-bottom: 1px solid #bfc7ca;
}

.mako-profile-theme-list span {
  color: var(--profile-blue-dark);
  font-family: Roboto, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

.mako-profile-theme-list h3,
.mako-profile-theme-list p {
  margin: 0;
}

.mako-profile-theme-list h3 {
  font-size: 1.25rem;
  letter-spacing: 0.08em;
}

.mako-profile-theme-list p {
  max-width: 62ch;
  font-size: 0.9rem;
  line-height: 2;
  letter-spacing: 0.035em;
}

.mako-profile-link {
  margin-top: 52px;
}

.mako-profile-books {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(500px, 1.1fr);
  gap: 80px;
  align-items: center;
  width: 100%;
  padding: 112px max(40px, calc((100vw - 1240px) / 2));
  background: #eef7f9;
}

.mako-profile-books h2 {
  margin: 0 0 28px;
  font-size: clamp(1.8rem, 2.7vw, 3.2rem);
  line-height: 1.55;
  letter-spacing: 0.055em;
  text-wrap: balance;
}

.mako-profile-books > div:first-child > p:not(.en) {
  max-width: 60ch;
  margin: 0;
  font-size: 0.9rem;
  line-height: 2.05;
  letter-spacing: 0.035em;
}

.mako-profile-book-covers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.mako-profile-book-covers img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 5px rgba(21, 49, 59, 0.12));
}

.mako-profile-cta {
  width: 100%;
  padding: 118px max(40px, calc((100vw - 1040px) / 2));
  color: #fff;
  background: var(--profile-blue);
  text-align: center;
}

.mako-profile-cta > p {
  margin: 0 0 22px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.mako-profile-cta h2 {
  margin: 0 0 44px;
  font-size: clamp(1.8rem, 3.1vw, 3.6rem);
  line-height: 1.55;
  letter-spacing: 0.06em;
  text-wrap: balance;
}

.mako-profile-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-width: 320px;
  box-sizing: border-box;
  padding: 19px 28px;
  color: var(--profile-ink);
  background: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: color 180ms ease-out, background-color 180ms ease-out;
}

.mako-profile-cta-button:hover,
.mako-profile-cta-button:focus-visible {
  color: #fff;
  background: var(--profile-blue-dark);
}

.mako-profile-cta-button:focus-visible,
.mako-profile-link:focus-visible {
  outline: 3px solid #111;
  outline-offset: 4px;
}

@media screen and (max-width: 900px) {
  .mako-profile-intro {
    grid-template-columns: minmax(260px, 0.8fr) minmax(350px, 1.2fr);
    gap: 42px;
  }

  .mako-profile-history-layout {
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 32px;
  }

  .mako-profile-theme-list article {
    grid-template-columns: 150px 220px 1fr;
    gap: 24px;
  }

  .mako-profile-books {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 767px) {
  .mako-profile-intro,
  .mako-profile-themes {
    width: calc(100% - 40px);
  }

  .mako-profile-intro {
    grid-template-columns: 1fr;
    gap: 46px;
    padding: 20px 0 92px;
  }

  .mako-profile-portrait {
    width: min(88%, 430px);
  }

  .mako-profile-portrait figcaption {
    display: block;
    padding: 14px 0;
  }

  .mako-profile-portrait figcaption span {
    display: block;
    margin-top: 4px;
  }

  .mako-profile-intro-copy {
    padding: 0;
  }

  .mako-profile-statement {
    margin-bottom: 24px;
    font-size: 0.94rem;
    line-height: 1.85;
  }

  .mako-profile-intro-copy h2 {
    margin-bottom: 28px;
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .mako-profile-prose {
    font-size: 0.91rem;
    line-height: 2.1;
  }

  .mako-profile-facts {
    margin-top: 36px;
  }

  .mako-profile-facts div {
    grid-template-columns: 78px 1fr;
    gap: 12px;
  }

  .mako-profile-history,
  .mako-profile-books,
  .mako-profile-cta {
    padding-inline: 20px;
  }

  .mako-profile-history {
    padding-top: 88px;
    padding-bottom: 84px;
  }

  .mako-profile-section-heading {
    display: block;
    padding-bottom: 28px;
  }

  .mako-profile-section-heading h2 {
    margin-bottom: 20px;
    font-size: 1.85rem;
  }

  .mako-profile-section-heading > p:last-child {
    max-width: 100%;
    font-size: 0.86rem;
    line-height: 1.9;
  }

  .mako-profile-history-layout {
    display: block;
    padding-top: 44px;
  }

  .mako-profile-timeline li {
    grid-template-columns: 62px 1fr;
    gap: 14px;
    padding-bottom: 26px;
  }

  .mako-profile-timeline time {
    font-size: 1.14rem;
  }

  .mako-profile-timeline div {
    padding: 0 0 28px 22px;
  }

  .mako-profile-timeline h3 {
    font-size: 1rem;
  }

  .mako-profile-timeline p {
    font-size: 0.82rem;
    line-height: 1.9;
  }

  .mako-profile-history-cat {
    width: 160px;
    margin: 16px 0 -20px auto;
  }

  .mako-profile-themes {
    padding: 94px 0;
  }

  .mako-profile-theme-list {
    margin-top: 46px;
  }

  .mako-profile-theme-list article {
    display: block;
    padding: 26px 0 30px;
  }

  .mako-profile-theme-list span,
  .mako-profile-theme-list h3 {
    display: block;
    margin-bottom: 12px;
  }

  .mako-profile-theme-list h3 {
    font-size: 1.15rem;
  }

  .mako-profile-theme-list p {
    font-size: 0.85rem;
    line-height: 1.9;
  }

  .mako-profile-link {
    margin-top: 40px;
  }

  .mako-profile-books {
    gap: 58px;
    padding-top: 82px;
    padding-bottom: 80px;
  }

  .mako-profile-books h2 {
    font-size: 1.8rem;
  }

  .mako-profile-book-covers {
    gap: 8px;
  }

  .mako-profile-cta {
    padding-top: 82px;
    padding-bottom: 88px;
  }

  .mako-profile-cta > p {
    font-size: 0.76rem;
    line-height: 1.7;
  }

  .mako-profile-cta h2 {
    margin-bottom: 34px;
    font-size: 1.75rem;
  }

  .mako-profile-cta-button {
    min-width: 0;
    width: 100%;
    padding-inline: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mako-profile-cta-button {
    transition: none;
  }
}
