:root {
  --color-primary: #F46060;
  --color-background: #FFFFFF;
  --color-background-sub: #F5F5F5;
  --color-border: #777777;
  --color-text: #333333;
  --color-text-sub: #777777;

  --font-family: "LINE Seed JP", sans-serif;

  --font-size-sm: 12px;
  --font-size-base: 14px;
  --font-size-lg: 24px;

  --line-height-base: 1.8;
}


/* =========================
   Reset
========================= */

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

html {
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

img,
picture,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-primary);
}
.button:hover {
  color: var(--color-background);
}
button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
}


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

body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;

  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text);
}


/* =========================
   Global Menu
========================= */

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1001;
}

.menu-button {
  display: flex;
  align-items: center;
  gap: 12px;
  /*margin: 28px 32px 0 0;*/
  margin: 0px 24px 0 0;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: #222;
  font: inherit;
  cursor: pointer;
}

.menu-button__text {
  font-size: 11px;
  letter-spacing: 0.12em;
}

.menu-button__icon {
  position: relative;
  display: block;
  width: 28px;
  height: 12px;
}

.menu-button__icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transition:
    top 0.35s ease,
    transform 0.35s ease;
}

.menu-button__icon span:first-child {
  top: 2px;
}

.menu-button__icon span:last-child {
  top: 10px;
}


/* 開いたとき × に変形 */

.menu-button.is-open .menu-button__icon span:first-child {
  top: 6px;
  transform: rotate(45deg);
}

.menu-button.is-open .menu-button__icon span:last-child {
  top: 6px;
  transform: rotate(-45deg);
}


/* =========================
   Menu panel
========================= */

.global-menu {
  position: fixed;
  inset: 0;
  z-index: 1000;

  visibility: hidden;
  opacity: 0;

  background: rgba(255, 255, 255, 0.96);

  transition:
    opacity 0.4s ease,
    visibility 0.4s ease;
}

.global-menu.is-open {
  visibility: visible;
  opacity: 1;
}

.global-menu__inner {
  display: flex;
  flex-direction: column;
  justify-content: center;

  width: min(100%, 760px);
  height: 100%;
  margin-left: auto;
  padding: 100px 80px 48px;

  background: #f5f5f5;

  transform: translateX(40px);
  opacity: 0;

  transition:
    transform 0.5s ease,
    opacity 0.5s ease;
}

.global-menu.is-open .global-menu__inner {
  transform: translateX(0);
  opacity: 1;
}


/* =========================
   Menu list
========================= */

.global-menu__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.global-menu__item {
  border-bottom: 1px solid #d9d9d9;
}

.global-menu__item:first-child {
  border-top: 1px solid #d9d9d9;
}

.global-menu__item a {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: center;

  padding: 22px 4px;

  color: #222;
  text-decoration: none;

  transition: opacity 0.25s ease;
}

.global-menu__item a:hover {
  opacity: 0.45;
}

.global-menu__number {
  font-size: 10px;
  letter-spacing: 0.08em;
}

.global-menu__label {
  font-size: clamp(20px, 2vw, 28px);
  letter-spacing: 0.02em;
}

.global-menu__site-name {
  margin: 36px 0 0;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-align: right;
}


/* メニュー表示中は背景スクロール禁止 */

body.is-menu-open {
  overflow: hidden;
}


/* =========================
   Global Menu SP
========================= */

@media screen and (max-width: 767px) {

  .menu-button {
    margin: 20px 20px 0 0;
  }

  .menu-button__text {
    font-size: 10px;
  }

  .menu-button__icon {
    width: 24px;
  }

  .global-menu__inner {
    width: 100%;
    padding: 96px 28px 36px;
  }

  .global-menu__item a {
    grid-template-columns: 42px 1fr;
    padding: 20px 0;
  }

  .global-menu__label {
    font-size: 28px;
  }

}

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

.layout {
  flex: 1;
  display: grid;
  grid-template-columns:
    minmax(0, calc((100vw - 750px) * 0.768))
    750px
    minmax(0, calc((100vw - 750px) * 0.232));
}

.layout__left {
  position: relative;
  background-color: var(--color-background-sub);
}

.layout__main {
  width: 100%;
  min-width: 0;
}

.layout__right {
  padding: 48px 12px;
  background-color: var(--color-background-sub);
  color: var(--color-text-sub);
}

.layout__right p {
  writing-mode: vertical-rl;
  font-size: 14px;
  color: var(--color-text-sub);
}


/* =========================
   Side decoration
========================= */

.side-line {
  position: absolute;
  top: calc(100vh - 200px);
  right: 16px;
  width: 6px;
  height: 160px;
}

.side-line__inner {
  position: relative;
  width: 1px;
  height: 100%;
  margin: 0 auto;
  background-color: var(--color-text-sub);
  transform: scaleY(0);
  transform-origin: top;
  animation: line-drop 1.2s ease-out 0.4s forwards;
}

.side-line__dot {
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-text-sub);
  opacity: 0;
  transform: translateX(-50%) scale(0.6);
  animation: dot-arrive 0.5s ease-out 1.4s forwards;
}

@keyframes line-drop {
  from {
    transform: scaleY(0);
  }

  to {
    transform: scaleY(1);
  }
}

@keyframes dot-arrive {
  from {
    opacity: 0;
    transform: translateX(-50%) scale(0.6);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
}


/* =========================
   Page top
========================= */

.page-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--color-text-sub);
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 0.4s ease,
    visibility 0.4s ease,
    transform 0.4s ease,
    background-color 0.3s ease,
    border-color 0.3s ease;
}

.page-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.page-top__arrow {
  position: relative;
  width: 10px;
  height: 10px;
  border-top: 1px solid var(--color-text);
  border-left: 1px solid var(--color-text);
  transform: translateY(3px) rotate(45deg);
}

.page-top::after {
  content: "";
  position: absolute;
  top: 16px;
  width: 1px;
  height: 16px;
  background-color: var(--color-text);
}

.page-top:hover {
  background-color: var(--color-text);
  border-color: var(--color-text);
}

.page-top:hover .page-top__arrow {
  border-color: var(--color-background);
}

.page-top:hover::after {
  background-color: var(--color-background);
}


/* =========================
   Breadcrumb
========================= */

.breadcrumb {
  margin: 0 0 48px;
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--color-text-sub);
}

.breadcrumb__item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb__item:not(:last-child)::after {
  content: "/";
  color: #b5b5b5;
}

.breadcrumb__item a {
  color: var(--color-text-sub);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.breadcrumb__item[aria-current="page"] {
  color: var(--color-text);
}


/* =========================
   Button
========================= */

.button-wrap {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 320px;
  padding: 8px 32px;
  border-radius: 8px;
  background-color: var(--color-text);
  color: var(--color-background);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.button:hover {
  opacity: 0.8;
}
.button--secondary {
    background-color: var(--color-background);
    color: var(--color-text);
    border: 1px solid;
}
.button--secondary :hover{
  background-color: var(--color-background-sub);
}



/* =========================
   Hero
========================= */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 40px;
}

.hero__content {
  width: 100%;
}

.hero__title {
  margin: 0 0 32px;
  font-size: 32px;
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.hero__title > span:not(.char) {
  color: var(--color-primary);
}

.hero__text {
  font-size: 14px;
  line-height: 24px;
  color: var(--color-text);
}


/* =========================
   Hero writing animation
========================= */

.js-writing .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(6px);
  filter: blur(3px);
}

.js-writing.is-writing .char {
  animation: char-write 0.45s ease forwards;
}

@keyframes char-write {
  from {
    opacity: 0;
    transform: translateY(6px);
    filter: blur(3px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}


/* =========================
   Front page sections
========================= */

.about,
.approach,
.work,
.insight,
.contact {
  padding: 80px 20px;
}

.home h2 {
    margin-bottom: 1rem;
}


/* =========================
   About
========================= */

.about__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.about__content h3{
    margin:.25rem 0 1rem;
  }

.about__image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.skill-list {
  margin: 24px auto 0;
  padding: 24px;
  background-color: var(--color-background-sub);
  border-radius: 12px;
}

.skill-list ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: var(--font-size-sm);
}

.skill-list li {
  font-size: 14px;
  line-height: 24px;
  color: var(--color-text);
}


/* =========================
   Approach
========================= */

.approach-list {
  margin: 24px 0;
  padding: 32px;
  background-color: var(--color-background-sub);
  border-radius: 12px;
}

.approach-list ul {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.approach-list__item {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 24px 32px;
  background-color: var(--color-background);
  border-radius: 8px;
}

.approach-list__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
}

.approach-list__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.approach-list__content {
  min-width: 0;
}

.approach-list__content h3 {
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
}

.approach-list__content p {
  font-size: 14px;
  line-height: 24px;
}


/* =========================
   Work cards
========================= */

.work-cards > ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.work-card {
  overflow: hidden;
  background-color: var(--color-background);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.work-card > a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.work-card__visual {
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: #d9d9d9;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.work-card__category {
  position: absolute;
  top: 16px;
  right: 8px;
  min-width: 96px;
  padding: 8px;
  border: 1px solid var(--color-text-sub);
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  text-align: center;
  color: var(--color-text-sub);
  background: rgba(255, 255, 255, 0.8);
}

.work-card__body {
  padding: 16px 24px 24px;
}

.work-card__title {
  margin: 0 0 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-text-sub);
  font-size: 14px;
  line-height: 24px;
  font-weight: 500;
}

.work-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.work-card__tags li {
  font-size: 12px;
  line-height: 16px;
  color: var(--color-text-sub);
}


/* =========================
   Insight / Topics list
========================= */

.insight-list {
  border-top: 1px solid var(--color-border);
}

.insight-list__item {
  border-bottom: 1px solid var(--color-border);
}

.insight-list__link {
  display: grid;
  grid-template-columns: 80px 128px 1fr;
  align-items: center;
  gap: 8px;
  min-height: 72px;
  color: var(--color-text);
  text-decoration: none;
}

.insight-list__link time {
  font-size: 12px;
  line-height: 24px;
}

.insight-list__link {
  grid-template-columns: 80px 80px 1fr;
}

.insight-list__title {
  font-size: 14px;
  line-height: 24px;
}


/* =========================
   Contact
========================= */

.contact__lead {
  margin: 0 0 64px;
  font-size: 14px;
  line-height: 24px;
}

.contact-form {
  width: 100%;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: start;
  gap: 32px;
  margin-bottom: 32px;
}

.contact-form__label {
  padding-top: 16px;
  font-size: 14px;
  line-height: 24px;
}

.required {
  margin-left: 4px;
  color: var(--color-primary);
}

.contact-form__field input,
.contact-form__field textarea {
  width: 90%;
  border: 1px solid var(--color-text-sub);
  border-radius: 8px;
  background-color: var(--color-background);
  color: var(--color-text);
  font-family: inherit;
  font-size: 14px;
  line-height: 24px;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.contact-form__field input {
  padding: 16px;
}

.contact-form__field textarea {
  min-height: 240px;
  padding: 16px;
  resize: vertical;
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(255, 107, 99, 0.12);
}

.contact-form__agree {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.contact-form__agree label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 24px;
  cursor: pointer;
}

.contact-form__agree input {
  width: 24px;
  height: 24px;
  margin: 0;
}

.contact-form__message {
  margin: 0 0 24px;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--color-background-sub);
}

.contact-form__message--error {
  color: var(--color-primary);
}

.wpcf7-turnstile {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

/* =========================
   Footer
========================= */

footer {
  background-color: var(--color-text);
  color: #fff;
}

footer p {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding-right: 16px;
  font-size: 12px;
}

footer a {
  display: flex;
  align-items: center;
}

footer img {
  width: 16px;
  height: 16px;
}


/* =========================
   Scroll animation
========================= */

.js-fade {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.js-fade.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* =========================
   WordPress common
========================= */

.archive-page,
.single-page {
  width: 100%;
  padding: 64px 40px 80px;
}

.archive-page__title {
  margin: 0 0 32px;
  font-size: 32px;
  line-height: 1.4;
  font-weight: 500;
}

.entry-card {
  padding: 24px 0;
  border-bottom: 1px solid var(--color-border);
}

.entry-card a,
.single-entry a {
  color: inherit;
}

.entry-card__meta {
  font-size: 12px;
  color: var(--color-text-sub);
}



/* =========================
   Work detail
========================= */

.work-detail {
  width: 100%;
}

.single-entry__header {
  margin-bottom: 40px;
}

.single-entry__category,
.single-entry__date {
  font-size: 12px;
  line-height: 24px;
  color: var(--color-text-sub);
}
.single-entry__category{
  padding: 0 .5rem;
    border-radius: 8px;
    background: #f5f5f5;
}

.single-entry__title {
  margin-top: 8px;
  font-size: 28px;
  line-height: 1.5;
  font-weight: 500;
}

.single-entry__thumbnail {
  margin: 0;
}

.single-entry__thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.single-entry__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
  border: 1px solid #ccc;
  padding: 16px;
  border-radius: 8px;
}

.single-entry__tags li {
  font-size: 12px;
  line-height: 16px;
  color: var(--color-text-sub);
}

/*.single-entry__content {
  margin-top: 40px;
}*/

.single-entry.work {
  padding: 0;
}
.single-entry__meta {
    display: flex;
    gap: 8px;
}

.overview {
    padding: 1.5rem 1rem;
    border-radius: 8px;
    background-color: var(--color-background-sub);
}
.overview h2 {
    font-size: 16px !important;
    margin-bottom: .5rem;
    border-bottom: 1px solid #ccc;
    padding-bottom: .25rem;
}

.idea {
    border: 1px solid #ccc;
    padding: 16px;
    border-radius: 8px;
}

.idea p:first-child {
    border-bottom: 1px solid #ccc;
    margin-bottom: .5rem;
    padding-bottom: .25rem;
}

/* =========================
   Topics detail
========================= */

.topic-detail {
  width: 100%;
}

.topic-entry__header {
  margin-bottom: 40px;
}

.topic-entry__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.topic-entry__date {
  font-size: 12px;
  line-height: 24px;
  color: var(--color-text-sub);
}

.topic-entry__category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  padding: 3px 16px;
  border: 1px solid var(--color-text-sub);
  border-radius: 999px;
  font-size: 12px;
  line-height: 20px;
  color: var(--color-text-sub);
}

.topic-entry__title {
  font-size: 28px;
  line-height: 1.5;
  font-weight: 500;
}

.topic-entry__thumbnail {
  margin: 0;
}

.topic-entry__thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid #ccc;
}

.topic-entry__content {
  margin-top: 40px;
}


/* =========================
   Entry content
========================= */

.single-entry__content > * + *,
.topic-entry__content > * + * {
  margin-top: 1.5em;
}

.single-entry__content h2,
.topic-entry__content h2 {
  font-size: 24px;
  line-height: 1.5;
  font-weight: 500;
}

.single-entry__content h3,
.topic-entry__content h3 {
  font-size: 18px;
  line-height: 1.6;
  font-weight: 500;
}

.single-entry__content ul,
.topic-entry__content ul {
  padding-left: 1.5em;
  list-style: disc;
}

.single-entry__content ol,
.topic-entry__content ol {
  padding-left: 1.5em;
  list-style: decimal;
}

/* =========================
   Thanks
========================= */

.thanks-page {
  min-height: 100%;
  display: flex;
  align-items: center;

  padding: 80px 40px;
}

.thanks-page__inner {
  width: 100%;
}

.thanks-page__en {
  margin-bottom: 16px;

  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--color-primary);
}

.thanks-page__title {
  margin-bottom: 32px;

  font-size: 32px;
  line-height: 1.5;
  font-weight: 500;
}

.thanks-page__text {
  font-size: 14px;
  line-height: 2;
  color: var(--color-text-sub);
}

.wpcf7 form.sent .wpcf7-response-output {
  display: none;
}

/* =========================
   Reduced motion
========================= */

@media (prefers-reduced-motion: reduce) {
  .js-writing .char {
    opacity: 1;
    transform: none;
    filter: none;
    animation: none;
  }

  .js-fade {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* =========================
   Responsive
========================= */

@media screen and (max-width: 767px) {

  /* Layout */

  .layout {
    grid-template-columns: 7vw minmax(0, 86vw) 7vw;
    width: 100%;
  }

  .layout__right {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 32px 0;
  }

  .layout__right p {
    font-size: 10px;
    line-height: 1;
    white-space: nowrap;
  }


  /* Side decoration */

  .side-line {
    top: calc(100svh - 180px);
    right: 50%;
    width: 6px;
    height: 140px;
    transform: translateX(50%);
  }


  /* Page top */

  .page-top {
    right: 12px;
    bottom: 16px;
    width: 40px;
    height: 40px;
  }

  .page-top::after {
    top: 13px;
    height: 14px;
  }


  /* Breadcrumb */

  .breadcrumb {
    margin-bottom: 32px;
  }

  .breadcrumb__list {
    gap: 4px;
    font-size: 11px;
  }

  .breadcrumb__item {
    gap: 4px;
  }


  /* Hero */

  .hero {
    min-height: 100svh;
    padding: 48px 24px;
  }

  .hero__title {
    margin-bottom: 32px;
    font-size: clamp(26px, 7.2vw, 32px);
    line-height: 1.5;
  }

  .hero__text {
    font-size: 13px;
    line-height: 1.8;
  }


  /* Front page sections */

  .about,
  .approach,
  .work,
  .insight,
  .contact {
    padding: 48px 24px;
  }




  /* About */

  .about__content {
    grid-template-columns: 1fr;
  }

  .skill-list {
    padding: 16px;
  }


  /* Approach */

  .approach-list {
    margin-bottom: 24px;
    padding: 24px;
  }

  .approach-list__item {
    flex-direction: column;
    gap: 24px;
    padding: 16px 24px;
  }

  .approach-list__content h3 {
    margin-bottom: 0.25rem;
    border-bottom: 1px solid;
    text-align: center;
  }


  /* Work cards */

  .work-cards > ul {
    grid-template-columns: 1fr;
  }


  /* Insight / Topics list */

  .insight-list__link {
    grid-template-columns: max-content 1fr;
    grid-template-areas:
      "date category"
      "title title";
    column-gap: 12px;
    row-gap: 8px;
    padding: 20px 0;
  }

  .insight-list__link time {
    grid-area: date;
  }

  .insight-list__category {
    grid-area: category;
    justify-self: start;
    width: auto;
    min-width: 160px;
    padding: 3px 16px;
  }

  .insight-list__title {
    grid-area: title;
    width: 100%;
  }


  /* Contact */

  .contact-form__row {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 16px;
  }

  .contact-form__field input {
    padding: 8px;
  }


  /* WordPress common */

  .archive-page,
  .single-page {
    padding: 48px 24px 64px;
  }

  .archive-page__title {
    margin-bottom: 24px;
    font-size: 28px;
  }


  /* Work detail */

  .single-entry__header {
    margin-bottom: 32px;
  }

  .single-entry__title {
    font-size: 24px;
  }

  .single-entry__content {
    margin-top: 32px;
  }

  /* Topics detail */

  .topic-entry__header {
    margin-bottom: 32px;
  }

  .topic-entry__meta {
    gap: 8px;
  }

  .topic-entry__title {
    font-size: 24px;
  }

  .topic-entry__content {
    margin-top: 32px;
  }

  /* contact */
  .thanks-page {
    padding: 64px 24px;
  }

  .thanks-page__title {
    font-size: 26px;
  }

  /* footer */

  .footer p{
    padding: 4px 0;
    text-align: center;
  }

}
/* =====================================
   Article Author
   記事末尾：著者プロフィール
===================================== */

.article-author {
  display: grid;
  grid-template-columns: 32% minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 64px);

  width: 100%;
  margin: 64px 0;
  padding: clamp(32px, 4vw, 56px);

  background: #f5f5f5;
  border-radius: 24px;
  box-sizing: border-box;
}

/* =====================================
   Profile Image
===================================== */

.article-author__image {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;

  border-radius: 50%;
  overflow: hidden;
  align-self: center;
}

.article-author__image img {
  display: block;
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
}

/* =====================================
   Profile Content
===================================== */

.article-author__body {
  min-width: 0;
  width: 100%;
}

/* この記事を書いた人 */
.article-author__label {
  margin: 0 0 12px;
  padding: 0;

  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.08em;
  color: #777;
}

/* 名前 */
.article-author__name {
  margin: 0 0 8px;
  padding: 0;

  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.03em;
  color: #333;
}

/* 肩書き */
.article-author__role {
  margin: 0 0 24px;
  padding: 0;

  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  color: #777;
}

/* プロフィール本文 */
.article-author__description {
  margin: 0;
  padding: 0;

  font-size: 14px;
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0.02em;
  color: #333;
  overflow-wrap: anywhere;
}

/* =====================================
   Profile Link
   現在PHP側でコメントアウト中
===================================== */

.article-author__link {
  display: inline-flex;
  align-items: center;
  gap: 12px;

  margin-top: 24px;
  padding-bottom: 5px;

  font-size: 13px;
  line-height: 1.6;
  color: #333;
  text-decoration: none;

  border-bottom: 1px solid currentColor;
  transition: opacity 0.3s ease;
}

.article-author__link:hover {
  opacity: 0.6;
}

/* =====================================
   Tablet
===================================== */

@media (max-width: 1024px) {
  .article-author {
    grid-template-columns: 30% minmax(0, 1fr);
    gap: 32px;
    padding: 40px;
  }

  .article-author__image {
    max-width: 240px;
  }

  .article-author__description {
    font-size: 13px;
  }
}

/* =====================================
   Smartphone
===================================== */

@media (max-width: 767px) {
  .article-author {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;

    margin: 48px 0;
    padding: 32px 24px;

    border-radius: 18px;
  }

  .article-author__image {
    width: 140px;
    max-width: 100%;
    margin: 0 auto;
  }

  .article-author__body {
    width: 100%;
  }

  .article-author__label {
    margin-bottom: 8px;
    font-size: 12px;
    text-align: center;
  }

  .article-author__name {
    margin-bottom: 6px;
    font-size: 22px;
    text-align: center;
  }

  .article-author__role {
    margin-bottom: 20px;
    font-size: 12px;
    text-align: center;
  }

  .article-author__description {
    font-size: 13px;
    line-height: 1.9;
    letter-spacing: 0.01em;
  }

  .article-author__link {
    margin-top: 20px;
    font-size: 12px;
  }
}


/* =========================
   Related article in content
========================= */
.musuhi-related {
  width: 100%;
  margin: 32px 0;
  border: 1px solid #dedede;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.musuhi-related__link {
  display: block;
  padding: 20px;
  color: var(--color-text);
  text-decoration: none;
  transition: background-color .25s ease, border-color .25s ease;
}
.musuhi-related__link:hover,
.musuhi-related__link:focus-visible { background: #fafafa; }
.musuhi-related__link:focus-visible { outline: 2px solid var(--color-primary); outline-offset: -3px; }
.musuhi-related__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 10px;
  letter-spacing: .12em;
  line-height: 1.6;
  color: var(--color-text-sub);
}
.musuhi-related__eyebrow > span { font-size: 11px; letter-spacing: 0; }
.musuhi-related__layout { display: grid; grid-template-columns: minmax(0, 34%) minmax(0, 1fr); gap: 18px; align-items: center; }
.musuhi-related__visual { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; background: #e9e8e3; }
.musuhi-related__image { display: block; width: 100%; height: 100%; object-fit: cover; }
.musuhi-related__placeholder { font-size: 18px; letter-spacing: .05em; color: #929b96; }
.musuhi-related__body { display: flex; flex-direction: column; min-width: 0; gap: 9px; }
.musuhi-related__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--color-text-sub); font-size: 11px; line-height: 1.5; }
.musuhi-related__category { padding: 2px 8px; border-radius: 99px; background: #f5f5f5; }
.musuhi-related__title { font-size: 15px; font-weight: 600; line-height: 1.65; overflow-wrap: anywhere; }
.musuhi-related__arrow { align-self: flex-end; display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid #ccc; border-radius: 50%; font-size: 16px; line-height: 1; transition: background .25s ease, color .25s ease; }
.musuhi-related__link:hover .musuhi-related__arrow { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
@media (max-width: 767px) {
  .musuhi-related__link { padding: 14px; }
  .musuhi-related__layout { grid-template-columns: minmax(0, 32%) minmax(0, 1fr); gap: 12px; }
  .musuhi-related__title { font-size: 13px; line-height: 1.55; }
  .musuhi-related__meta { font-size: 10px; gap: 5px; }
  .musuhi-related__eyebrow { margin-bottom: 10px; }
  .musuhi-related__placeholder { font-size: 12px; }
  .musuhi-related__arrow { width: 24px; height: 24px; font-size: 14px; }
}


/* =========================
   Topics TOC
========================= */

.topic-toc {
  margin: 48px 0 64px;
  padding: 32px 24px;
  background: var(--color-background-sub);
  border-radius: 12px;
}

.topic-toc__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.topic-toc__item {
  display: grid;
  align-items: start;
}

.topic-toc__item--h2 {
  grid-template-columns: 56px 1fr;
  margin-top: 20px;
}

.topic-toc__item--h2:first-child {
  margin-top: 0;
}

.topic-toc__item--h2 .topic-toc__number {
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: .08em;
}

.topic-toc__item--h2 a {
  padding-left: 20px;
  border-left: 1px solid var(--color-text);
  font-size: 15px;
}

.topic-toc__item--h3 {
  margin-left: 56px;
  padding-left: 21px;
  border-left: 1px solid var(--color-text);
}

.topic-toc__item--h3 a {
  padding: 7px 0 7px 16px;
  font-size: 14px;
}

.topic-toc a {
  color: var(--color-text);
  text-decoration: none;
  transition: opacity .2s ease;
}

.topic-toc a:hover {
  opacity: .5;
}


/* =========================
   Topics headings
========================= */

.topic-entry__content h2 {
  position: relative;
  margin-top: 80px;
  padding-top: 32px;

  font-size: 28px;
  line-height: 1.5;
  font-weight: 500;
}

.topic-entry__content h2::before {
  content: attr(data-number);

  position: absolute;
  top: 0;
  left: 0;

  font-size: 72px;
  line-height: 1;
  font-weight: 600;
  color: #f3f3f3;

  z-index: -1;
}

.topic-entry__content h3 {
  margin-top: 48px;
  padding-left: 16px;

  border-left: 2px solid var(--color-primary);

  font-size: 18px;
  line-height: 1.6;
  font-weight: 500;
}


/* anchor scroll */
.topic-entry__content h2,
.topic-entry__content h3 {
  scroll-margin-top: 80px;
}


@media screen and (max-width: 767px) {

  .topic-toc {
    margin: 32px 0 48px;
    padding: 24px 16px;
  }

  .topic-toc__item--h2 {
    grid-template-columns: 40px 1fr;
  }

  .topic-toc__item--h3 {
    margin-left: 40px;
  }

  .topic-entry__content h2 {
    margin-top: 64px;
    padding-top: 24px;
    font-size: 22px;
  }

  .topic-entry__content h2::before {
    font-size: 56px;
  }

  .topic-entry__content h3 {
    margin-top: 40px;
    font-size: 17px;
  }

}