@font-face {
  font-family: 'Tinos';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Tinos-Regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Tinos';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Tinos-Italic.woff2') format('woff2');
}

@font-face {
  font-family: 'Tinos';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/Tinos-Bold.woff2') format('woff2');
}

@font-face {
  font-family: 'Tinos';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/Tinos-BoldItalic.woff2') format('woff2');
}

@font-face {
  font-family: 'Tinos';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Tinos-Regular-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Tinos';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/Tinos-Bold-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ==========================================================
    Variables
   ========================================================== */
:root {
  /* color */
  --color-primary-top: #008039;
  --color-primary-bottom: #009944;
  --gradient-primary: linear-gradient(to bottom, var(--color-primary-top), var(--color-primary-bottom));
  --color-text: #333;
  --color-white: #fff;
  --color-line: #DBDBDB;
  --color-bg: #FBFBFB;

  /* font-family */
  --font-base: 'Tinos', 'Times New Roman', Times, serif;

  --fs-base: 1.4rem;
  --fs-h1: 4rem;
  --fs-h2: 3.2rem;
  --fs-h3: 2.4rem;
  --fs-h4: 1.8rem;
}

@media (max-width: 767px) {
  :root {
    --fs-h1: 3.2rem;
    --fs-h2: 2.8rem;
    --fs-h3: 2.2rem;
  }
}

/* ==========================================================
    Base
   ========================================================== */
html {
  font-size: 62.5%;
}

body {
  font-size: var(--fs-base);
  color: var(--color-text);
  font-family: var(--font-base);
}

*, *::before, *::after {
  letter-spacing: .05em;
}

h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

p, li, dd, figcaption, blockquote {
  text-wrap: pretty;
}

body {
  overflow-wrap: break-word;
}

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

/* header
------------------------------------ */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 2px solid;
  border-image: var(--gradient-primary) 1;
}
.header__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 64px;
  background: var(--gradient-primary);
}
@media (max-width: 767px) {
  .header__logo {
    width: 136px;
    height: 48px;
  }
}
.header__logo-img {
  width: 150px;
  object-fit: contain;
}
@media (max-width: 767px) {
  .header__logo-img {
    width: 100px;
  }
}
.header__nav-list {
  display: flex;
  align-items: center;
  padding: 0 24px;
}
@media (max-width: 767px) {
  .header__nav-list {
    padding: 0 8px;
  }
}
.header__nav-item + .header__nav-item {
  border-left: 1px solid var(--color-line);
}
.header__nav-link {
  display: block;
  padding: 0 12px;
  font-size: 1.2rem;
  line-height: 1;
}

/* main
------------------------------------ */
.inner {
  width: min(100% - 80px, 920px);
  margin-inline: auto;
}
@media (max-width: 767px) {
  .inner {
    width: calc(100% - 40px);
  }
}

.c-section {
  padding: 80px 0;
}
@media (max-width: 767px) {
  .c-section {
    padding: 40px 0;
  }
}
.c-section + .c-section {
  border-top: 1px solid var(--color-line);
}

.c-title__h2, .c-title__h3 {
  margin-bottom: 24px;
  position: relative;
  display: flex;
  align-items: center;
  line-height: 1;
}
@media (max-width: 767px) {
  .c-title__h2, .c-title__h3 {
    margin-bottom: 16px;
  }
}
.c-title__h2::before, .c-title__h3::before {
  content: '';
  display: block;
  background: var(--gradient-primary);
}
.c-title__h2 {
  font-size: var(--fs-h2);
  gap: 16px;
}
.c-title__h2::before {
  width: 24px;
  height: 4px;
}
.c-title__h3 {
  font-size: var(--fs-h3);
  gap: 8px;
}
.c-title__h3::before {
  width: 16px;
  height: 2px;
}

/* main visual */
.mv {
  height: 360px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  gap: 24px;
}
@media (max-width: 767px) {
  .mv {
    height: 200px;
    gap: 16px;
  }
}
.mv__list {
  display: flex;
  flex-shrink: 0;
  gap: 24px;
}
@media (max-width: 767px) {
  .mv__list {
    gap: 16px;
  }
}
.mv__item {
  margin-top: -16px;
  transform: rotate(15deg);
}
.mv__item img {
  width: 160px;
  border: 1px solid var(--color-line);
  box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.1);
}
@media (max-width: 767px) {
  .mv__item img {
    width: 88px;
  }
}
.mv__item img + img {
  margin-top: 16px;
}

/* about */
.about {
  padding: 64px 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .02), rgba(255, 255, 255, .02)) bottom / 100% 320px no-repeat;
}
@media (max-width: 767px) {
  .about {
    padding: 32px 0;
  }
}
.about__title {
  margin-bottom: 36px;
  font-size: var(--fs-h1);
  line-height: 1;
  letter-spacing: .1em;
}
@media (max-width: 767px) {
  .about__title {
    margin-bottom: 16px;
    line-height: 1.2;
  }
}
.about__text {
  font-size: 1.6rem;
  line-height: 2;
  letter-spacing: .1em;
}
@media (max-width: 767px) {
  .about__text {
    line-height: 1.8;
  }
}

/* history */
.history__list {
  position: relative;
  display: grid;
  line-height: 1.8;
  grid-template-columns: 4.5em 1fr;
}
.history__year {
  font-weight: bold;
}
.history__desc {
  margin-bottom: 16px;
  position: relative;
  padding-left: 24px;
}
.history__desc::after {
  content: '';
  position: absolute;
  left: 3.25px;
  top: .5em;
  bottom: calc(-.5em - 16px);
  width: 1px;
  background: var(--color-primary-top);
}
.history__desc:last-child::after { display: none; }
.history__desc::before {
  position: absolute;
  left: 0;
  top: .5em;
  content: '';
  display: inline-block;
  width: 8px;
  min-width: 8px;
  height: 8px;
  background: var(--gradient-primary);
  border-radius: 50%;
}

/* publishing */
.publishing {
  padding: 56px 0;
  background: var(--color-bg);
}
@media (max-width: 767px) {
  .publishing {
    padding: 32px 0;
  }
}
.publishing .inner {
  display: flex;
  align-items: center;
  gap: 40px;
}
@media (max-width: 767px) {
  .publishing .inner {
    flex-direction: column;
    gap: 24px;
  }
}
.publishing__text {
  line-height: 1.8;
}
.genres {
  padding: 16px 22px;
  border: 1px solid var(--color-line);
}
@media (max-width: 767px) {
  .genres {
    width: 100%;
  }
}
.genres .c-title__h4 {
  margin-bottom: 8px;
  font-size: var(--fs-h4);
  line-height: 1;
}
.genres__list {
  list-style: disc;
  padding-left: 1em;
}
.genres__item {
  margin-bottom: 2px;
  white-space: nowrap;
  font-size: 1.2rem;
  line-height: 1.4;
}

/* featured */
.featured__item {
  padding: 40px;
  border-bottom: 1px solid var(--color-line);
}
@media (max-width: 767px) {
  .featured__item {
    padding: 24px 8px;
  }
}
.featured__item:first-of-type {
  border-top: 1px solid var(--color-line);
}
.featured__link {
  display: block;
}

.featured__book {
  display: grid;
  grid-template-columns: 110px 1fr;
  column-gap: 24px;
  align-content: start;
}
@media (max-width: 767px) {
  .featured__book {
    display: block;
  }
}
.featured__img {
  grid-column: 1;
  grid-row: 1 / span 4;
  width: 100%;
  border: 1px solid var(--color-line);
}
@media (max-width: 767px) {
  .featured__img {
    display: block;
    width: 140px;
    margin: 0 auto 16px;
  }
}
.featured__title,
.featured__meta,
.featured__lead,
.featured__text {
  grid-column: 2;
}
.featured__title {
  padding-left: 12px;
  border-left: 2px solid;
  border-image: var(--gradient-primary) 1;
  font-size: 2.2rem;
  line-height: 1.4;
}
.featured__meta {
  margin-top: 8px;
  font-size: 1.2rem;
}
.featured__meta-label,
.featured__meta-value {
  display: inline;
}
.featured__meta-label {
  margin-right: 1.5em;
  font-weight: bold;
}
.featured__meta-value::after {
  content: "\A";
  white-space: pre;
}
.featured__lead {
  margin-top: 16px;
  font-size: 1.6rem;
  font-weight: bold;
  line-height: 1.6;
}
.featured__text {
  margin-top: 4px;
  line-height: 1.6;
}

.featured__author {
  margin-top: 24px;
  padding-top: 24px;
  line-height: 1.6;
  border-top: 1px dashed var(--color-line);
}
@media (max-width: 767px) {
  .featured__author {
    margin-top: 16px;
    padding-top: 16px;
  }
}
.featured__author-name {
  font-weight: bold;
}
.featured__author-text {
  margin-top: 8px;
}

/* company */
.company {
  background: var(--color-bg);
}
.company__table {
  width: 100%;
  border-top: 1px solid var(--color-line);
}
@media (max-width: 767px) {
  .company__table,
  .company__table tbody,
  .company__table tr,
  .company__table th,
  .company__table td {
    display: block;
    width: 100%;
  }
}
.company__table th,
.company__table td {
  padding: 24px;
  text-align: left;
  border-bottom: 1px solid var(--color-line);
}
.company__table th {
  width: 200px;
}
@media (max-width: 767px) {
  .company__table th {
    width: 100%;
    padding: 24px 16px 0;
    border-bottom: none;
  }
  .company__table td {
    padding: 8px 16px 24px;
  }
}

/* footer
------------------------------------ */
.footer {
  position: relative;
  border-top: 1px solid;
  border-image: var(--gradient-primary) 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}
@media (max-width: 767px) {
  .footer {
    flex-direction: column;
    gap: 16px;
  }
}

.footer__pagetop {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity .4s ease, transform .4s ease, visibility 0s linear .4s;
}
@media (max-width: 767px) {
  .footer__pagetop {
    right: 8px;
    bottom: 8px;
    transition: none;
  }
}
.footer__pagetop.is-show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .4s ease, transform .4s ease, visibility 0s;
}
.footer__pagetop.is-end {
  position: absolute;
  bottom: auto;
  top: -88px;
}
@media (max-width: 767px) {
  .footer__pagetop.is-end {
    top: -64px;
  }
}
.footer__pagetop a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gradient-primary);
  transition: opacity .3s ease;
}
@media (max-width: 767px) {
  .footer__pagetop a {
    width: 56px;
    height: 56px;
    transition: none;
  }
}
.footer__pagetop img {
  transition: transform .3s ease;
}
.footer__pagetop a:hover {
  opacity: .8;
}
.footer__pagetop a:hover img {
  transform: translateY(-4px);
}
@media (max-width: 767px) {
  .footer__pagetop a:hover img {
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .footer__pagetop,
  .footer__pagetop.is-show,
  .footer__pagetop a,
  .footer__pagetop img {
    transition: none;
  }
}

.footer__nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
@media (max-width: 767px) {
  .footer__nav {
    flex-direction: column;
    justify-content: center;
    gap: 16px;
  }
}
.footer__nav-list {
  display: flex;
  align-items: center;
  font-size: 1.1rem;
  line-height: 1;
}
.footer__nav-item a {
  padding: 0 12px;
}
.footer__nav-item + .footer__nav-item {
  border-left: 1px solid var(--color-line);
}

.footer__sns {
  display: flex;
  align-items: center;
  gap: 8px;
}
@media (max-width: 767px) {
  .footer__sns {
    gap: 12px;
  }
}
.footer__sns-item a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
}
@media (max-width: 767px) {
  .footer__sns-item a {
    width: 32px;
    height: 32px;
  }
}
.footer__sns-item.x a {
  background: #000;
}
@media (max-width: 767px) {
  .footer__sns-item.x img {
    width: 45%;
  }
  .footer__sns-item.facebook img {
    width: 100%;
  }
}

.footer__copyright {
  padding: 0 16px;
  font-size: 1rem;
  line-height: 1;
}