/* =========================================
 *  固定ページ用スタイル
 * ========================================= */

/* 固定ページメインエリア */
.page-main {
  padding: 2rem 3vw 3rem;
  background: var(--color-bg-main);
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
  width: 100%;
  box-sizing: border-box;
}

/* サムネイルエリア */
.page-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border-radius: .45rem;
  margin-bottom: 1.5rem;
}

.page-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-thumb-placeholder {
  background: #e6ddd0;
}

.page-thumb-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.5);
  z-index: 1;
}

.page-title-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  width: 90%;
}

.page-title {
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 400;
  color: var(--color-text-main);
  margin: 0;
  font-family: var(--font-hero-en);
}

/* パンくずリスト */
.page-breadcrumb {
  margin-bottom: 2rem;
}

.page-breadcrumb .breadcrumb-nav {
  font-size: 1rem;
  color: var(--color-text-main);
  opacity: 0.7;
  letter-spacing: 0;
}

.page-breadcrumb .breadcrumb-nav a {
  color: var(--color-text-main);
  text-decoration: none;
}

.page-breadcrumb .breadcrumb-nav a:hover {
  text-decoration: underline;
}

.page-breadcrumb .breadcrumb-nav span {
  opacity: 0.5;
}

/* 固定ページコンテンツエリア */
.page-content {
  margin-bottom: 3rem;
  line-height: 1.8;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--color-text-main);
  letter-spacing: 0.02em;
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.page-content h2,
.page-content h3,
.page-content h4 {
  font-family: var(--font-hero-en);
  font-weight: 400;
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.4;
  letter-spacing: 0.03em;
}

.page-content h2 {
  font-size: clamp(1.8rem, 2.2vw, 2.2rem);
  position: relative;
  padding: 1rem 1.5rem;
  padding-left: 1.5rem;
  background: linear-gradient(to right, rgba(228, 223, 215, 0.3) 0%, rgba(228, 223, 215, 0) 100%);
  border-left: 4px solid var(--color-border);
  border-radius: 0.25rem;
}

.page-content h3 {
  font-size: clamp(1.5rem, 2vw, 1.8rem);
  position: relative;
  padding-left: 1.2rem;
  border-left: 3px solid var(--color-border);
}

.page-content h4 {
  font-size: clamp(1.3rem, 1.7vw, 1.5rem);
  position: relative;
  padding-left: 1rem;
  border-left: 2px solid var(--color-border);
}

.page-content p {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.page-content img {
  max-width: 100%;
  height: auto;
  border-radius: .35rem;
  margin: 1.5rem 0;
}

/* 箇条書きリスト */
.page-content ul {
  margin: 1.5rem 0;
  padding-left: 0;
  list-style: none;
}

.page-content ul li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
  line-height: 1.8;
  letter-spacing: 0.02em;
}

.page-content ul li::before {
  content: "▸";
  position: absolute;
  left: 0.5rem;
  color: var(--color-text-main);
  font-size: 1rem;
  opacity: 0.6;
}

.page-content ul ul {
  margin-top: 0.8rem;
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
}

.page-content ul ul li::before {
  content: "▪";
  left: 0.2rem;
}

/* 番号付きリスト */
.page-content ol {
  margin: 1.5rem 0;
  padding-left: 0;
  list-style: none;
  counter-reset: list-counter;
}

.page-content ol li {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
  line-height: 1.8;
  letter-spacing: 0.02em;
  counter-increment: list-counter;
}

.page-content ol li::before {
  content: counter(list-counter);
  position: absolute;
  left: 0.5rem;
  top: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-sidebar);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--color-text-main);
  font-family: var(--font-hero-en);
}

.page-content ol ol {
  margin-top: 0.8rem;
  margin-bottom: 0.8rem;
  padding-left: 2rem;
  counter-reset: list-counter;
}

.page-content ol ol li::before {
  width: 1.5rem;
  height: 1.5rem;
  font-size: 0.8rem;
  background: transparent;
  border: none;
}

/* テーブル */
.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 1.1rem;
  background: var(--color-bg-main);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-content th {
  background: var(--color-bg-sidebar);
  font-family: var(--font-hero-en);
  font-weight: 400;
  font-size: 1rem;
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 2px solid var(--color-border);
  color: var(--color-text-main);
  letter-spacing: 0.03em;
}

.page-content td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 1.1rem;
  line-height: 1.7;
  letter-spacing: 0.02em;
}

.page-content tr:last-child td {
  border-bottom: none;
}

.page-content tr:hover {
  background: rgba(228, 223, 215, 0.2);
  transition: background 0.2s ease;
}

/* 引用 */
.page-content blockquote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  padding-left: 2rem;
  border-left: 4px solid var(--color-border);
  background: var(--color-bg-sidebar);
  border-radius: 0.25rem;
  font-style: italic;
  color: var(--color-text-main);
  font-size: 1.15rem;
  line-height: 1.8;
  letter-spacing: 0.02em;
  position: relative;
}

.page-content blockquote::before {
  content: '"';
  position: absolute;
  left: 1rem;
  top: 0.5rem;
  font-size: 3rem;
  font-family: var(--font-hero-en);
  color: var(--color-border);
  opacity: 0.5;
  line-height: 1;
}

.page-content blockquote p {
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

.page-content blockquote p:last-child {
  margin-bottom: 0;
}

.page-content blockquote cite {
  display: block;
  margin-top: 1rem;
  font-size: 0.95rem;
  font-style: normal;
  opacity: 0.7;
  text-align: right;
}

.page-content blockquote cite::before {
  content: "— ";
}

/* リンク */
.page-content a:not(.post-category):not(.post-tag) {
  color: var(--color-text-main);
  text-decoration: none;
  transition: all 0.3s ease;
}

.page-content a:not(.post-category):not(.post-tag):hover {
  text-decoration: none;
  background: linear-gradient(to right, var(--color-primary-start), var(--color-primary-end));
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-slide 0.5s ease forwards;
}

/* スマホ用バナーエリア */
.page-sidebar-mobile {
  display: none;
}

.page-sidebar-mobile .page-sidebar-banner {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: .35rem;
  overflow: hidden;
  background: #e6ddd0;
}

/* =========================================
 *  モバイル対応
 * ========================================= */
@media (max-width: 768px) {
  /* 固定ページメインエリア */
  .page-main {
    padding: 1.5rem 1rem 3rem;
  }

  /* サムネイルエリア */
  .page-thumb-wrap {
    margin-bottom: 1rem;
    border-radius: .25rem;
  }

  .page-thumb-img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  /* タイトル */
  .page-title-wrap {
    width: 95%;
    padding: 0 1rem;
  }

  .page-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    line-height: 1.3;
  }

  /* パンくずリスト */
  .page-breadcrumb {
    margin-bottom: 1.5rem;
  }

  .page-breadcrumb .breadcrumb-nav {
    font-size: 1rem;
    line-height: 1.5;
  }

  /* 固定ページコンテンツエリア */
  .page-content {
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.7;
  }

  .page-content h2 {
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    margin-top: 2rem;
    margin-bottom: 1.2rem;
    padding: 0.8rem 1rem;
    padding-left: 1rem;
  }

  .page-content h3 {
    font-size: clamp(1.2rem, 3.5vw, 1.5rem);
    margin-top: 1.8rem;
    margin-bottom: 1rem;
    padding-left: 1rem;
  }

  .page-content h4 {
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    padding-left: 0.8rem;
  }

  .page-content p {
    margin-bottom: 1.2rem;
    font-size: 1rem;
    line-height: 1.7;
  }

  .page-content img {
    margin: 1.2rem 0;
    border-radius: .25rem;
  }

  /* 箇条書きリスト */
  .page-content ul {
    margin: 1.2rem 0;
  }

  .page-content ul li {
    padding-left: 1.5rem;
    margin-bottom: 0.6rem;
    font-size: 1rem;
    line-height: 1.7;
  }

  .page-content ul li::before {
    left: 0.3rem;
    font-size: 0.9rem;
  }

  .page-content ul ul {
    margin-top: 0.6rem;
    margin-bottom: 0.6rem;
    padding-left: 1rem;
  }

  /* 番号付きリスト */
  .page-content ol {
    margin: 1.2rem 0;
  }

  .page-content ol li {
    padding-left: 2.5rem;
    margin-bottom: 0.6rem;
    font-size: 1rem;
    line-height: 1.7;
  }

  .page-content ol li::before {
    width: 1.6rem;
    height: 1.6rem;
    font-size: 0.8rem;
    left: 0.3rem;
  }

  .page-content ol ol {
    margin-top: 0.6rem;
    margin-bottom: 0.6rem;
    padding-left: 1.5rem;
  }

  .page-content ol ol li::before {
    width: 1.3rem;
    height: 1.3rem;
    font-size: 0.75rem;
  }

  /* テーブル */
  .page-content table {
    margin: 1.5rem 0;
    font-size: 0.9rem;
    border-radius: .35rem;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .page-content th {
    font-size: 0.85rem;
    padding: 0.75rem 0.9rem;
  }

  .page-content td {
    padding: 0.75rem 0.9rem;
    font-size: 0.9rem;
    line-height: 1.6;
  }

  /* 引用 */
  .page-content blockquote {
    margin: 1.5rem 0;
    padding: 1.2rem 1.5rem;
    padding-left: 1.5rem;
    font-size: 1rem;
    line-height: 1.7;
  }

  .page-content blockquote::before {
    left: 0.8rem;
    top: 0.3rem;
    font-size: 2.5rem;
  }

  .page-content blockquote p {
    font-size: 1rem;
  }

  .page-content blockquote cite {
    font-size: 0.85rem;
    margin-top: 0.8rem;
  }

  /* スマホ用バナーエリア */
  .page-sidebar-mobile {
    display: block;
    margin-top: 2rem;
  }

  .page-sidebar-mobile .page-sidebar-banner {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: .25rem;
    overflow: hidden;
    background: #e6ddd0;
  }
}

/* タブレット対応 */
@media (min-width: 769px) and (max-width: 1024px) {
  .page-main {
    padding: 2rem 2.5vw 3rem;
  }

  .page-content {
    font-size: 1.1rem;
  }

  .page-content h2 {
    font-size: clamp(1.6rem, 2.5vw, 2rem);
  }

  .page-content h3 {
    font-size: clamp(1.4rem, 2vw, 1.7rem);
  }

  .page-content h4 {
    font-size: clamp(1.2rem, 1.8vw, 1.4rem);
  }
}
