/**
  Common CSS
*/

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

* {
  margin: 0;
  padding: 0;
}

body {
  font-size: 16px;
  line-height: initial;
  -webkit-font-smoothing: antialiased;
}

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

input,
button,
textarea,
select {
  font: inherit;
}

ul,
ol {
  list-style: none;
}

a {
  text-decoration: none;
  transition: all 0.3s;
  word-break: break-all;
  color: #000;
}

a:hover {
  text-decoration: none;
}

p {
  margin: 0;
}

body {
  background-color: var(--base-color);
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", sans-serif;
}

:root {
  --header-height: 56px;
  --inline-padding-base: 16px;
  --block-padding-base: 24px;
  --section-padding: 24px 0 32px;
  --container-width: 100%;
  --container-max-width: 1200px;
  --container-padding: 0 16px;
  --margin-bottom-base: 24px;
  --main-color: #695280;
  --sub-color: #e4c9e5;
  --base-color: #fdf6f8;
  --base-color-dark: #d9cde4;
  --text-color: #5a3e71;
}

@media screen and (min-width: 768px) {
  :root {
    --header-height: 72px;
    --inline-padding-base: 24px;
    --block-padding-base: 32px;
    --section-padding: 32px 0 40px;
    --container-padding: 0 24px;
    --margin-bottom-base: 32px;
  }
}

@media screen and (min-width: 960px) {
  :root {
    --block-padding-base: 40px;
    --section-padding: 40px 0 48px;
    --container-width: calc(100% - 64px);
    --container-padding: 0;
  }
}

.customize-support .header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .customize-support .header {
    top: 46px;
  }

  #wpadminbar {
    position: fixed;
  }
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

.container {
  padding: var(--container-padding);
  width: var(--container-width);
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.blog-container {
  max-width: 768px;
}

.main {
  min-height: 90vh;
  padding-top: calc(var(--header-height) + 40px);
  background-color: var(--base-color);
}

.header {
  background-color: var(--main-color);
  color: #fff;
  height: var(--header-height);
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100%;
}

.header-logo {
  flex: 0 0 auto;
  height: var(--header-height);
  padding-left: var(--inline-padding-base);
}

.header-logo a {
  display: flex;
  align-items: center;
  height: 100%;
}

.header-logo img {
  width: 180px;
  height: auto;
}

.header-logo .logo-text {
  color: #fff;
  font-weight: bold;
  font-size: 20px;
}

.header-search-form .header-search-form-button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: var(--header-height);
  height: var(--header-height);
  line-height: var(--header-height);
  border: none;
  background: none;
  cursor: pointer;
  position: relative;
  z-index: 1002;
}

.header-search-form .header-search-form-button-icon {
  line-height: 1;
  color: #fff;
}

.header-search-form .header-search-form-button-icon::before {
  content: "\e8b6";
  font-family: Material Icons;
  font-size: 28px;
}

.header-search-form.active .header-search-form-button-icon::before {
  content: "\e5cd";
  font-family: Material Icons;
  font-size: 28px;
}

.header-search-form-wrapper {
  display: none;
}

.header-search-form.active .header-search-form-wrapper {
  display: block;
  position: fixed;
  width: 90vw;
  height: 40vh;
  padding: 32px 24px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--base-color);
  border-radius: 12px;
  z-index: 2;
}

.header-search-form-background {
  display: none;
}

.header-search-form.active .header-search-form-background {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.header-search-menu {
  color: var(--text-color);
}

.header-search-menu p {
  margin-bottom: 16px;
  text-align: center;
}

.header-search-menu ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.header-search-menu ul li a {
  display: block;
  font-size: 16px;
  font-weight: bold;
  color: var(--main-color);
  background-color: #fff;
  padding: 0 16px;
  line-height: 24px;
  border-radius: 12px;
  text-decoration: none;
}

.header-navigation {
  background-color: var(--sub-color);
}

.header-navigation ul {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 8px 0;
}

.header-navigation li a {
  display: block;
  font-size: 16px;
  font-weight: bold;
  color: var(--main-color);
  background-color: #fff;
  padding: 0 16px;
  line-height: 24px;
  border-radius: 12px;
  text-decoration: none;
}

@media screen and (max-width: 375px) {
  .header-navigation li a {
    font-size: 14px;
  }
}

@media screen and (min-width: 768px) {
  .header-navigation ul {
    gap: 16px;
  }
}

@media screen and (min-width: 960px) {
  .header-navigation ul {
    gap: 20px;
  }
}

.footer {
  background-color: var(--main-color);
  color: #fff;
  padding-top: 48px;
}

.footer a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-logo {
  margin: 0 auto;
  text-align: center;
}

.footer-logo img {
  width: 235px;
  height: auto;
}

.footer-logo .logo-text {
  color: #fff;
  font-weight: bold;
  font-size: 24px;
}

.footer-navigation {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-navigation ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-navigation li a {
  color: #fff;
  font-size: 14px;
  line-height: 1;
  display: inline-block;
  border-bottom: 1px solid transparent;
  transition: all 0.3s;
}

.footer-navigation li a:hover {
  border-bottom: 1px solid #fff;
}

.footer-bar {
  padding: 48px 0 16px;
  text-align: center;
}

.footer-copyright {
  font-size: 11px;
  font-weight: 500;
}

@media screen and (min-width: 768px) {
  .footer {
    padding-top: 64px;
  }

  .footer-inner {
    gap: 48px;
  }

  .footer-logo {
    margin: 0 auto;
  }

  .footer-navigation ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
  }

  .footer-navigation li a {
    font-size: 14px;
  }

  .footer-copyright {
    font-size: 12px;
  }
}

@media screen and (min-width: 960px) {
  /* no logo size override */
}

.button a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 400px;
  height: 48px;
  border-radius: 24px;
  margin: 0 auto;
  background-color: var(--main-color);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  transition: all 0.3s;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.button a:hover {
  opacity: 0.8;
}

.button span {
  display: flex;
  align-items: center;
}

@media screen and (min-width: 768px) {
  .button {
    font-size: 22px;
  }
}

@media screen and (min-width: 960px) {
  .button {
    font-size: 24px;
  }
}

.search-form {
  display: flex;
  position: relative;
  max-width: 400px;
  margin: 0 auto 32px;
}

.search-form .search-input {
  flex: 1 1 auto;
  height: 48px;
  border: 2px solid var(--sub-color);
  padding: 4px 16px 4px 48px;
  box-sizing: border-box;
  font-size: 17px;
  width: 100%;
  border-radius: 24px;
  background: #fff;
}

.search-form .search-input:focus {
  outline: none;
}

.search-form .search-button {
  flex: 0 0 auto;
  height: 48px;
  width: 48px;
  border: none;
  background: none;
  border-radius: 24px;
  color: var(--sub-color);
  text-align: center;
  cursor: pointer;
  position: absolute;
  left: 2px;
}

.search-form .search-button::before {
  content: "\e8b6";
  font-family: Material Icons;
  font-size: 30px;
  line-height: 48px;
}

.post-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: var(--margin-bottom-base);
}

.post-list-item a {
  display: block;
  height: 100%;
}

.post-list-item-article {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.02);
}

.post-thumbnail {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background-color: #d7ded8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s;
}

.post-thumbnail .no-image {
  font-size: 18px;
  font-weight: bold;
  line-height: 1.4;
  color: #fff;
  transition: all 0.5s;
}

.post-list-item a:hover .post-thumbnail img {
  opacity: 0.8;
  transform: scale(1.02);
}

.post-list-item a:hover .post-thumbnail .no-image {
  transform: scale(1.05);
}

.post-content {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 16px 16px 24px;
  background-color: #fff;
}

.post-title {
  font-size: 18px;
  font-weight: bold;
  line-height: 1.4;
  color: #111;
  margin-bottom: 12px;
  transition: all 0.3s;
}

.post-description {
  font-size: 14px;
  line-height: 1.5;
  color: #555;
}

.post-meta {
  font-size: 13px;
  color: #555;
  margin-top: auto;
}

.post-category {
  display: inline-block;
  padding: 0 12px;
  border-radius: 12px;
  background-color: var(--main-color);
  color: #fff;
  font-size: 12px;
  line-height: 24px;
}

@media screen and (min-width: 768px) {
  .post-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 40px;
  }

  .post-list-item {
    width: calc((100% - 24px) / 2);
  }
}

@media screen and (min-width: 960px) {
  .post-list {
    gap: 32px;
  }

  .post-list-item {
    width: calc((100% - 64px) / 3);
  }
}

.breadcrumbs {
  padding: 8px 0;
}

.breadcrumbs ol {
  display: flex;
  padding: var(--container-padding);
  width: var(--container-width);
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.breadcrumbs li {
  font-size: 12px;
  line-height: 1;
  color: #888;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.breadcrumbs li:not(:last-child)::after {
  content: "\e315";
  font-family: Material Icons;
  margin: 0 3px;
}

.breadcrumbs li:last-child {
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.breadcrumbs li a {
  color: var(--main-color);
}

.breadcrumbs li span.current {
  color: #888;
}

@media screen and (min-width: 768px) {
  .breadcrumbs {
    padding: 12px 0;
  }

  .breadcrumbs li {
    font-size: 14px;
  }

  .breadcrumbs li:first-child::before {
    width: 12px;
    height: 12px;
  }
}

.pagination {
  display: flex;
  justify-content: center;
}

.pagination-list {
  display: flex;
  gap: 4px;
}

.pagination-list-item a,
.pagination-list-item span {
  display: block;
  width: 40px;
  line-height: 40px;
  color: var(--main-color);
  text-align: center;
  font-weight: 500;
  transition: all 0.3s;
}

.pagination-list-item a:hover {
  background-color: var(--main-color-light);
}

.pagination-list-item .current {
  background-color: var(--main-color);
  color: #fff;
  font-weight: 700;
}

.error-page-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 60vh;
}

.error-page-content h1 {
  font-size: 120px;
  font-weight: 700;
  line-height: 1;
}

.error-page-content h2 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.main-header {
  padding: var(--block-padding-base) 0 0;
}

.main-header-content {
  text-align: center;
}

.main-content-section {
  padding: var(--section-padding);
  display: flex;
  flex-direction: column;
  gap: calc(var(--block-padding-base) / 2);
}

.main-content-article {
  padding: var(--section-padding);
  display: flex;
  flex-direction: column;
  gap: calc(var(--block-padding-base));
}

.main-content-article.app-article {
  padding: 0 0 var(--block-padding-base);
}

.article-content-section {
  padding: var(--section-padding);
  display: flex;
  flex-direction: column;
  gap: calc(var(--block-padding-base) / 2);
}

.main-title {
  font-size: 28px;
  font-weight: bold;
  line-height: 1.3;
  color: var(--main-color);
  padding-bottom: calc(var(--block-padding-base) / 2);
}

.main-label {
  display: block;
  font-size: 16px;
  font-weight: bold;
  color: var(--sub-color);
  font-family: "Times New Roman", serif;
}

.section-title {
  font-size: 24px;
  line-height: 1.3;
  padding-bottom: 8px;
  margin-bottom: 16px;
  color: var(--main-color);
  border-bottom: 4px solid var(--accent-color);
}

@media screen and (min-width: 768px) {
  .main-title {
    font-size: 32px;
  }

  .section-title {
    font-size: 28px;
  }
}

.new-topics {
  background-color: var(--base-color-dark);
}

.archive-title {
  font-size: 32px;
  line-height: 1;
  color: var(--main-color);
  font-family: "Times New Roman", serif;
}
