/*
Theme Name: Shinsui
Author: 谷野真穂
Description: 書道家・谷野真穂のウェブサイト用テーマ
Version: 0.3.1
Text Domain: shinsui
*/

:root {
  --background: #f8f7f3;
  --text: #282724;
  --muted: #706e68;
  --line: #d8d5cc;
  --content-width: 760px;
}

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

html {
  font-size: 16px;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", serif;
  font-size: 1rem;
  line-height: 2;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

img {
  max-width: 100%;
  height: auto;
}

.site-header,
.site-main,
.site-footer {
  width: min(calc(100% - 3rem), var(--content-width));
  margin-inline: auto;
}

.site-header {
  padding-block: 4rem 2.5rem;
  border-bottom: 1px solid var(--line);
}

.site-branding {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-title {
  margin: 0;
  font-size: clamp(1.8rem, 4.6vw, 2.55rem);
  font-weight: 500;
  letter-spacing: 0.12em;
}

.site-title a {
  text-decoration: none;
}

.site-title-photo {
  display: block;
  flex: 0 0 auto;
  width: clamp(100px, 21vw, 150px);
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 68% 45%;
  border-radius: 50%;
}

.home-header-image {
  margin: 1.5rem 0 0;
}

.home-header-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 58%;
}

.home-profile {
  margin-top: 1.5rem;
}

.home-profile-title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.home-profile p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.9;
}

.home-classroom-guide {
  margin-top: 2.25rem;
}

.home-classroom-guide-title {
  margin: 0 0 1rem;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.5;
}

.home-classroom-guide-title a {
  text-decoration: none;
}

.home-classroom-guide-content h1,
.home-classroom-guide-content h2,
.home-classroom-guide-content h3 {
  font-family: inherit;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.home-classroom-guide-content .alignleft {
  width: min(100%, 360px);
  margin: 0;
}

.home-classroom-guide-content img {
  display: block;
  width: 100%;
  height: auto;
}

a.j-calltoaction-link {
  display: inline-block;
  padding: 0.2em 0.85em;
  border: 1px solid var(--text);
  border-radius: 0.25rem;
  background: var(--text);
  color: var(--background);
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

a.j-calltoaction-link:hover,
a.j-calltoaction-link:focus-visible {
  background: transparent;
  color: var(--text);
}

a.j-calltoaction-link br {
  display: none;
}

.site-description {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.site-main {
  min-height: 55vh;
  padding-block: 4rem;
}

.entry {
  margin-bottom: 5rem;
}

.entry-title {
  margin: 0 0 1rem;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.5;
}

.entry-title a {
  text-decoration: none;
}

.entry-list-heading.has-image {
  display: grid;
  grid-template-columns: 1fr minmax(150px, 34%);
  gap: 1.75rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.entry-list-image {
  display: block;
  grid-column: 2;
  grid-row: 1;
}

.entry-list-image img {
  display: block;
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  object-position: right center;
}

.entry-list-title {
  grid-column: 1;
  grid-row: 1;
}

.entry-list-heading .entry-title,
.entry-list-heading .entry-meta {
  margin-bottom: 0.75rem;
}

.entry-meta {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content > *:last-child {
  margin-bottom: 0;
}

.post-thumbnail {
  display: block;
  width: 33.33%;
  margin-bottom: 2rem;
}

.post-thumbnail img {
  display: block;
  width: 100%;
  height: auto;
}

.pagination {
  margin-top: 3rem;
}

.site-footer {
  padding-block: 2rem 4rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 600px) {
  .site-header,
  .site-main,
  .site-footer {
    width: min(calc(100% - 2rem), var(--content-width));
  }

  .site-header {
    padding-top: 2.5rem;
  }

  .site-branding {
    gap: 1rem;
  }

  .site-title {
    font-size: clamp(1.4rem, 6.5vw, 1.8rem);
  }

  .site-title-photo {
    width: min(27vw, 100px);
  }

  .site-main {
    padding-block: 3rem;
  }

  .entry-list-heading.has-image {
    grid-template-columns: minmax(0, 1fr) minmax(100px, 38%);
    gap: 1rem;
  }
}
