/*
Theme Name: e-Space Academia
Theme URI: https://example.com/espace-academia
Author: e-Space Academia
Description: e-Space Academiaの講師ブログ向けレスポンシブWordPressテーマ。
Version: 2.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: espace-academia
*/

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  margin: 0;
  scroll-behavior: smooth;
}
body,
h1,
h2,
h3,
p {
  margin: 0;
}
body {
  min-width: 320px;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  padding: 0;
  border: 0;
}
img {
  display: block;
  max-width: 100%;
}

@font-face {
  font-family: "Inter:Bold";
  src: url("https://static.figma.com/font/Inter_1") format("woff2");
  font-style: normal;
  font-weight: 700;
}
@font-face {
  font-family: "Inter:Regular";
  src: url("https://static.figma.com/font/Inter_1") format("woff2");
  font-style: normal;
  font-weight: 400;
}
@font-face {
  font-family: "Noto Sans JP:Bold";
  src: url("https://static.figma.com/font/NotoSansJP-VF_2") format("woff2");
  font-style: normal;
  font-weight: 700;
}
@font-face {
  font-family: "Noto Sans JP:Regular";
  src: url("https://static.figma.com/font/NotoSansJP-VF_2") format("woff2");
  font-style: normal;
  font-weight: 400;
}

:root {
  --ink: #122c36;
  --muted: #57696e;
  --yellow: #fc0;
  --pink: #ff2d55;
  --paper: #f4f7f6;
  color: var(--ink);
  font-family: "Noto Sans JP:Regular", sans-serif;
  font-synthesis: none;
}

@layer base {
  html {
    scroll-behavior: smooth;
  }
  body {
    min-width: 320px;
    background: white;
  }
  button,
  a {
    transition:
      opacity 0.2s ease,
      background-color 0.2s ease;
  }
  button {
    cursor: pointer;
  }
  a {
    color: inherit;
    text-decoration: none;
  }
}

.site-shell {
  width: min(1248px, calc(100% - 48px));
  margin-inline: auto;
}
.site-header {
  height: 104px;
  background: var(--ink);
  color: white;
  border-bottom: 1px solid #07191f;
  position: relative;
  z-index: 20;
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  line-height: 1;
}
.brand strong {
  font-family: "Inter:Bold";
  font-size: 26px;
  letter-spacing: -1.1px;
}
.brand span {
  color: var(--yellow);
  font-size: 10px;
  letter-spacing: 0.6px;
}
.brand-button {
  color: white;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-family: "Noto Sans JP:Bold";
  font-size: 13px;
}
.main-nav a:hover,
.main-nav button:hover {
  opacity: 0.7;
}
.main-nav .active {
  color: var(--yellow);
}
.contact-link {
  height: 46px;
  padding: 0 22px;
  border-radius: 4px;
  background: var(--pink);
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
}
.contact-link img {
  width: 18px;
  height: 18px;
}
.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    padding: 9px;
    background: #0c202b;
}
.menu-button i {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: white;
}

.archive-hero {
  height: 376px;
  background: var(--ink);
  color: white;
  overflow: hidden;
}
.archive-hero-inner {
  height: 100%;
  position: relative;
}
.hero-copy {
  width: 62%;
  padding-top: 24px;
  position: relative;
  z-index: 1;
}
.breadcrumb {
  font-size: 12px;
  line-height: 1.6;
}
.eyebrow {
  font-family: "Inter:Bold";
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0;
}
.hero-copy .eyebrow {
  margin-top: 50px;
  color: var(--yellow);
}
.hero-copy h1 {
  margin-top: 6px;
  color: var(--yellow);
  font-family: "Inter:Bold";
  font-size: 96px;
  line-height: 1;
  letter-spacing: -2px;
}
.hero-copy h2 {
  margin-top: 9px;
  font-family: "Noto Sans JP:Bold";
  font-size: 30px;
  line-height: 1.6;
}
.hero-copy > p:last-child {
  font-size: 16px;
  line-height: 1.6;
}
.hero-image {
  position: absolute;
  top: 0;
  right: 0px;
  width: 570px;
  height: 376px;
  border-left: 8px solid var(--yellow);
}
.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(18, 44, 54, 0.28);
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.archive {
  background: var(--paper);
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.pink {
  color: var(--pink);
}
.section-heading h2,
.related h2 {
  font-family: "Noto Sans JP:Bold";
  font-size: 32px;
  line-height: 1.7;
}
.section-heading > span {
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 14px;
}
.filters {
  display: flex;
  gap: 12px;
  margin-top: 31px;
}
.filters button {
  min-width: 136px;
  height: 48px;
  padding: 0 25px;
  border: 1px solid #d4dede;
  background: white;
  font-family: "Noto Sans JP:Bold";
  font-size: 14px;
}
.filters .selected {
  border-color: var(--yellow);
  background: var(--yellow);
}
.article-list {
  margin-top: 40px;
  display: grid;
  gap: 8px;
}
.article-row {
  min-height: 144px;
  padding: 26px;
  border: 1px solid #dee5e3;
  background: white;
  display: grid;
  grid-template-columns: 186px 1fr 130px;
  gap: 26px;
  align-items: center;
}
.article-meta {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.badge {
  min-width: 104px;
  width: max-content;
  height: 28px;
  padding: 3px 10px;
  background: var(--yellow);
  color: var(--ink);
  font-family: "Noto Sans JP:Bold";
  font-size: 12px;
  line-height: 1.7;
  display: inline-block;
}
.article-meta time,
.single-meta time,
.related time {
  color: var(--muted);
  font-size: 13px;
}
.article-summary h3 {
  font-family: "Noto Sans JP:Bold";
  font-size: 22px;
  line-height: 1.7;
}
.article-summary p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.article-row > button {
  color: var(--pink);
  font-family: "Noto Sans JP:Bold";
  font-size: 12px;
  text-align: left;
}
.pagination {
  width: 360px;
  max-width: 100%;
  height: 56px;
  margin: 56px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
}
.pagination > span {
  width: 48px;
  color: var(--ink);
  opacity: 0.3;
  font-size: 18px;
  text-align: center;
}
.pagination b {
  width: 56px;
  height: 56px;
  background: var(--ink);
  color: white;
  font-family: "Inter:Bold";
  font-size: 18px;
  line-height: 56px;
  text-align: center;
}
.pagination small {
  font-family: "Inter:Regular";
  font-size: 14px;
}

.single-hero {
  min-height: 380px;
  padding-top: 24px;
  background: var(--ink);
  color: white;
}
.single-hero .eyebrow {
  margin-top: 48px;
  color: var(--yellow);
  font-size: 14px;
}
.single-meta {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.single-meta time {
  color: white;
}
.single-hero h1 {
  margin-top: 20px;
  font-family: "Noto Sans JP:Bold";
  font-size: 44px;
  line-height: 1.6;
  letter-spacing: 0;
}
.single-main {
  padding: 72px 24px 80px;
}
.article-body {
  width: min(1000px, 100%);
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.article-body section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.article-body h2 {
  padding-left: 20px;
  border-left: 4px solid var(--yellow);
  font-family: "Noto Sans JP:Bold";
  font-size: 25px;
  line-height: 1.6;
}
.article-body .intro h2 {
  padding: 0;
  border: 0;
  font-size: 22px;
  line-height: 1.8;
}
.article-body p {
  color: var(--muted);
  font-size: 17px;
  line-height: 2;
}
.toc,
.prompt {
  padding: 28px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.toc strong {
  color: var(--pink);
  font-family: "Inter:Bold";
  font-size: 12px;
}
.toc a {
  font-family: "Noto Sans JP:Bold";
  font-size: 15px;
  line-height: 1.8;
}
.prompt h3 {
  font-family: "Noto Sans JP:Bold";
  font-size: 18px;
  line-height: 1.7;
}
.prompt p {
  font-size: 16px;
  line-height: 2.1;
}
.article-closing {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.article-closing p {
  font-size: 14px;
  line-height: 1.8;
}
.article-closing button {
  width: 100%;
  padding: 18px;
  background: var(--ink);
  color: white;
  font-family: "Noto Sans JP:Bold";
  font-size: 15px;
  line-height: 1.8;
}

.related {
  padding: 48px 0 64px;
  background: var(--paper);
}
.related h2 {
  margin-top: 2px;
  font-size: 28px;
}
.related-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.related article {
  min-height: 184px;
  padding: 23px;
  border: 1px solid #dee5e3;
  background: white;
}
.related article > div {
  display: flex;
  align-items: center;
  gap: 24px;
}
.related h3 {
  margin-top: 12px;
  font-family: "Noto Sans JP:Bold";
  font-size: 20px;
  line-height: 1.7;
}
.related article > p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.trial {
  min-height: 248px;
  background: var(--yellow);
}
.trial-inner {
  min-height: 248px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}
.trial h2 {
  margin-top: 4px;
  font-family: "Noto Sans JP:Bold";
  font-size: 36px;
  line-height: 1.7;
}
.trial p:last-child {
  font-size: 16px;
  line-height: 1.7;
}
.trial-button {
  width: 360px;
  height: 72px;
  flex: 0 0 auto;
  padding: 0 30px;
  background: var(--pink);
  color: white;
  font-family: "Noto Sans JP:Bold";
  font-size: 17px;
  line-height: 72px;
}
.site-footer {
  min-height: 331px;
  padding: 64px 0 36px;
  background: var(--yellow);
  color: #262626;
}
.footer-main {
  display: flex;
  justify-content: space-between;
}
.footer-brand strong {
  color: black;
}
.footer-brand span {
  color: #262626;
}
.address {
  margin-top: 26px;
  display: grid;
  gap: 10px;
  font-size: 13px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.footer-links nav {
  display: flex;
  gap: 30px;
  font-family: "Noto Sans JP:Bold";
  font-size: 13px;
}
.social {
  display: flex;
  gap: 28px;
}
.social a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Inter:Regular";
  font-size: 13px;
}
.social img {
  width: 13px;
  height: 13px;
}
.footer-bottom {
  margin-top: 48px;
  padding-top: 27px;
  border-top: 1px solid var(--pink);
  display: flex;
  justify-content: space-between;
  font-family: "Inter:Regular";
  font-size: 11px;
  letter-spacing: 1.4px;
}

@media (max-width: 900px) {
  .site-shell {
    width: min(100% - 40px, 720px);
  }
  .site-header {
    height: 84px;
  }
  .brand strong {
    font-size: 22px;
  }
  .menu-button {
    display: block;
  }
  .main-nav {
    position: absolute;
    top: 84px;
    left: 0;
    width: 100%;
    padding: 28px 20px;
    background: var(--ink);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .main-nav.is-open {
    display: flex;
  }
  .main-nav > a:not(.contact-link),
  .main-nav > button {
    padding: 14px 4px;
    text-align: left;
  }
  .contact-link {
    margin-top: 12px;
    justify-content: space-between;
  }
  .archive-hero {
    height: auto;
  }
  .archive-hero-inner {
    width: 100%;
  }
  .hero-copy {
    width: min(100% - 40px, 720px);
    margin: auto;
    padding: 22px 0 46px;
  }
  .hero-copy .eyebrow {
    margin-top: 38px;
  }
  .hero-copy h1 {
    font-size: clamp(64px, 16vw, 88px);
  }
  .hero-image {
    position: relative;
    right: auto;
    width: 100%;
    height: 280px;
    border-left: 0;
    border-top: 6px solid var(--yellow);
  }
  .article-row {
    grid-template-columns: 150px 1fr;
  }
  .article-row > button {
    grid-column: 2;
  }
  .trial-inner {
    padding-block: 48px;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }
  .trial-button {
    width: min(360px, 100%);
  }
  .footer-main {
    gap: 48px;
    flex-direction: column;
  }
  .site-footer {
    padding-top: 48px;
  }
}

@media (max-width: 600px) {
  .site-shell {
    width: calc(100% - 32px);
  }
  .archive {
    padding-top: 44px;
  }
  .section-heading h2 {
    font-size: 28px;
  }
  .filters {
    overflow-x: auto;
    margin-right: -16px;
    padding-right: 16px;
  }
  .filters button {
    min-width: max-content;
  }
  .article-list {
    margin-top: 28px;
  }
  .article-row {
    padding: 22px 20px;
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .article-meta {
    flex-direction: row;
    align-items: center;
  }
  .article-summary h3 {
    font-size: 18px;
  }
  .article-row > button {
    grid-column: auto;
  }
  .single-hero {
    min-height: 360px;
  }
  .single-hero .eyebrow {
    margin-top: 42px;
  }
  .single-hero h1 {
    font-size: 32px;
    margin-top: 28px;
  }
  .single-main {
    padding: 52px 16px 64px;
  }
  .article-body {
    gap: 28px;
  }
  .article-body h2 {
    font-size: 21px;
  }
  .article-body .intro h2 {
    font-size: 20px;
  }
  .article-body p {
    font-size: 15px;
  }
  .toc,
  .prompt {
    padding: 22px 20px;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
  .trial h2 {
    font-size: 28px;
  }
  .trial p:last-child {
    font-size: 14px;
  }
  .trial-button {
    height: 64px;
    font-size: 15px;
    line-height: 64px;
  }
  .footer-links nav {
    flex-wrap: wrap;
    gap: 15px 24px;
  }
  .social {
    flex-wrap: wrap;
    gap: 16px 24px;
  }
  .footer-bottom {
    gap: 18px;
    flex-direction: column;
  }
}

/* WordPress navigation and content compatibility */
.main-nav .menu-list,
.footer-links .menu-list {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.main-nav .menu-list {
  font-family: "Noto Sans JP:Bold";
}
.filters a {
  min-width: 136px;
  height: 48px;
  padding: 0 25px;
  border: 1px solid #d4dede;
  background: white;
  font-family: "Noto Sans JP:Bold";
  font-size: 14px;
  line-height: 46px;
  text-align: center;
}
.filters a.selected {
  border-color: var(--yellow);
  background: var(--yellow);
}
.read-more {
  color: var(--pink);
  font-family: "Noto Sans JP:Bold";
  font-size: 12px;
}
.navigation.pagination {
  width: 100%;
  height: auto;
}
.nav-links {
  width: 360px;
  max-width: 100%;
  margin: 56px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.page-numbers {
  min-width: 48px;
  height: 56px;
  line-height: 56px;
  text-align: center;
}
.page-numbers.current {
  background: var(--ink);
  color: white;
  font-family: "Inter:Bold";
}
.back-button {
  width: 100%;
  padding: 18px;
  background: var(--ink);
  color: white;
  font-family: "Noto Sans JP:Bold";
  font-size: 15px;
  line-height: 1.8;
  text-align: center;
}
.entry-content > h2 {
  padding-left: 20px;
  border-left: 4px solid var(--yellow);
  font-family: "Noto Sans JP:Bold";
  font-size: 25px;
  line-height: 1.6;
}
.entry-content > p {
  color: var(--muted);
  font-size: 17px;
  line-height: 2;
}
.empty-message {
  padding: 48px 0;
  color: var(--muted);
}
@media (max-width: 900px) {
  .main-nav .menu-list {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .main-nav .menu-list a {
    display: block;
    padding: 14px 4px;
  }
  .footer-links .menu-list {
    flex-wrap: wrap;
  }
}
@media (max-width: 600px) {
  .read-more {
    grid-column: auto;
  }
  .entry-content > h2 {
    font-size: 21px;
  }
  .entry-content > p {
    font-size: 15px;
  }
}


.esa-cf7 {
  min-width: 0;
  color: #fff;
}

.esa-cf7 .wpcf7-form {
  display: grid;
  gap: 28px;
}

.esa-cf7 .wpcf7-form p {
  margin: 0;
}

.esa-cf7 .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.esa-cf7 fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.esa-cf7 legend {
  margin-bottom: 16px;
}

.esa-cf7 .name-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.esa-cf7 input[type="text"],
.esa-cf7 input[type="email"],
.esa-cf7 input[type="tel"],
.esa-cf7 textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 54px;
  padding: 12px 14px;
  border: 1px solid #fc0;
  border-radius: 4px;
  background: #fff;
  color: #122c36;
  font: inherit;
}

.esa-cf7 textarea {
  min-height: 160px;
  resize: vertical;
}

.esa-cf7 .wpcf7-radio {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
}

.esa-cf7 .wpcf7-list-item {
  margin: 0;
}

.esa-cf7 .wpcf7-list-item label {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.esa-cf7 input[type="radio"] {
  position: static;
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 0;
  opacity: 1;
  accent-color: #ff2d55;
}

.esa-cf7 :is(input, textarea):focus-visible {
  outline: 3px solid #fc0;
  outline-offset: 3px;
}

.esa-cf7 .esa-submit {
  text-align: center;
}

.esa-cf7 input[type="submit"] {
  width: auto;
  min-width: 180px;
  min-height: 60px;
  padding: 16px 32px;
  border: 0;
  border-radius: 4px;
  background: #ff2d55;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.esa-cf7 input[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.esa-cf7 .wpcf7-not-valid-tip {
  margin-top: 8px;
  color: #ffadbd;
  font-size: 13px;
}

.esa-cf7 .wpcf7-response-output {
  margin: 0;
  padding: 16px;
  color: #fff;
}

@media (max-width: 600px) {
  .esa-cf7 .name-row {
    grid-template-columns: 1fr;
  }
}
