/*
Theme Name: Pecera Comic
Author: Yamaguchiryoma
Description: 漫画サイト用オリジナルテーマ
Version: 1.0
*/

@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@400;700&family=Zen+Kaku+Gothic+New:wght@400;500;700&display=swap');

:root {
  /* Colors */
  --primary-blue: #0495da;
  --primary-blue-bright: rgb(0, 118, 255);
  --primary1: #0495da;
  --primary2: #02afef;
  --primary3: #2dc4f3;
  --text-main: #5c4e4e;
  /* Softer, slightly warm dark grey */
  --text-light: #8e7f7f;

  /* Background gradients (Warm & Gentle) */
  --bg-gradient: linear-gradient(135deg, #fff5f5 0%, #fff0e6 100%);
  --card-bg: rgba(255, 255, 255, 0.85);

  /* Typography */
  --font-serif: 'Shippori Mincho', serif;
  --font-sans: 'Zen Kaku Gothic New', sans-serif;

  /* Structure */
  --max-width: 1000px;
  --header-height: 80px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background: white;
  min-height: 100vh;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

.hero-wrapper {
  background: var(--bg-gradient);
  padding: 40px 0 60px;
  margin-bottom: 60px;
}

@media (max-width: 768px) {
  .hero-wrapper {
    padding: 40px 0 40px;

  }
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.7;
}

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

/* Glassmorphism utility */
.glass {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 12px;

  }
}

main {
  flex: 1;
  padding: 40px 0 80px;
}

main:has(.hero-wrapper) {
  padding-top: 0;
}

@media (max-width: 768px) {

  main:has(.simple-page-content),
  main:has(.detail-layout) {
    padding-top: 20px;
  }
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 235, 235, 0.8);
  transition: top 0.3s ease;
}

@media (max-width: 768px) {
  header.header-hidden {
    top: calc(var(--header-height) * -1);
  }
}

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

.logo {
  display: block;
  max-width: 164px;
  /* Adjust according to actual logo size */
}

.logo img {
  width: 100%;
  height: auto;
  display: block;
}

.global-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.global-nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

.global-nav ul li {
  display: flex;
  align-items: center;
  text-align: center;
}

.global-nav ul a {
  font-weight: 500;
  font-size: 0.95rem;
  padding: 10px 0;
  position: relative;
  transition: all 0.3s ease;
  z-index: 1;
}

.global-nav ul a::before {
  content: attr(data-text);
  position: absolute;
  top: 12px;
  /* matches padding-top */
  left: 0;
  width: 100%;
  background: linear-gradient(135deg, #0082B9 0%, #E0FFFF 35%, #FFDAB9 70%, #F08080 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: blur(4px);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.global-nav ul a:hover {
  transform: translateY(-2px);
  opacity: 1;
  color: rgb(92 78 78 / 65%);
}

.global-nav ul a:hover::before {
  opacity: 1;
}

.nav-ja {
  display: none;
}

/* Footer */
footer {
  background: rgba(255, 255, 255, 0.7);
  padding: 60px 0 20px;
  border-top: 1px solid rgba(255, 235, 235, 0.8);
  margin-top: auto;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-nav {
  display: flex;
  gap: 20px;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  font-size: 0.9rem;
  position: relative;
}

/* Nav Link Hover Border */
.global-nav ul a::after,
.footer-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #b4e0ff 0%, #FFF0ED 40%, #FFDAB9 80%, #FFFFFF 100%);
  opacity: 0;
  transform: translateY(2px);
  transition: all 0.3s ease;
}

.global-nav ul a:hover::after,
.footer-nav a:hover::after {
  /* opacity: 1; */
  transform: translateY(0);
}

.sns-links,
.header-sns {
  display: flex;
  gap: 10px;
}

.sns-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--primary-blue);
  background: #aaaaaa;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.sns-icon:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}

.sns-icon img {
  width: 50%;
  aspect-ratio: 1/1;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.sns-icon[aria-label="Instagram"] img {
  width: 75%;
}

.copyright {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 20px;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  background: white;
  border: 1px solid #F08080;
  color: #F08080;
  padding: 10px 30px;
  min-width: 200px;
  border-radius: 30px;
  font-weight: 500;
  text-align: center;
  box-shadow: 0 4px 15px rgba(240, 128, 128, 0.15);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(240, 128, 128, 0.3);
  background: #fff;
  color: #F08080;
  opacity: 1;
}

/* Section Titles */
.section-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  text-align: center;
  margin-bottom: 40px;
  color: #F08080;
  position: relative;
  line-height: 1.4;
}

.section-subtitle {
  display: block;
  font-size: 0.85rem;
  font-family: var(--font-sans);
  color: #F08080;
  margin-top: 4px;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 4px;
  background: #FFF0ED;
  margin: 15px auto 0;
  border-radius: 2px;
}

/* --- Components --- */

/* Carousel Placeholder */
.top-carousel {
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  max-height: 1080px;
  background: #e0e0e0;
  /* Default solid grey */
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  touch-action: pan-y;
  /* Added slight rounding to fit with container */
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide-link {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: block;
}

.carousel-slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-thumbnails {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.carousel-thumb {
  width: 120px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 3px solid transparent;
  opacity: 0.6;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  background-clip: border-box;
  background-origin: border-box;
}

.carousel-thumb:hover {
  opacity: 0.8;
}

.carousel-thumb.active {
  background-image: linear-gradient(135deg, #EDFFFF 0%, #FFF0ED 70%, #FFB6C1 100%);
  opacity: 1;
}

/* Comic Grid (3x4 for Top, flexible for Archive) */
.comic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.comic-card {
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease;
  position: relative;
}

.comic-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  padding: 3px;
  background: linear-gradient(135deg, #EDFFFF 0%, #FFF0ED 70%, #FFB6C1 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 10;
}

.comic-card:hover {
  transform: translateY(-5px);
}

.comic-card:hover::before {
  opacity: 1;
}

.comic-thumb {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
}

.comic-info {
  padding: 16px 8px;
}

@media (max-width: 768px) {
  .comic-info {
    padding: 16px 8px;
  }
}

.comic-title {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.news-card {
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease;
  position: relative;
}

.news-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  padding: 3px;
  background: linear-gradient(135deg, #EDFFFF 0%, #FFF0ED 70%, #FFB6C1 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 10;
}

.news-card:hover {
  transform: translateY(-3px);
}

.news-card:hover::before {
  opacity: 1;
}

.news-thumb {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}

.news-info {
  padding: 15px 10px;
}

.news-date {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 5px;
}

.news-title {
  font-size: 0.95rem;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Simple Pages (Company, Privacy, Recruit) */
.simple-page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px;
  border-radius: 15px;
}

@media (max-width: 768px) {
  .simple-page-content {
    padding: 40px 20px;
  }
}

.simple-page-content h2 {
  font-size: 1.2rem;
  margin: 30px 0 15px;
  color: #F08080;
  border-bottom: 1px solid rgba(240, 128, 128, 0.3);
  padding-bottom: 10px;
  font-weight: 500;
}

.simple-page-content p {
  margin-bottom: 20px;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  /* margin-bottom: 30px; */
}

.info-table th,
.info-table td {
  padding: 15px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  text-align: left;
}

.info-table th {
  width: 30%;
  font-weight: 500;
  color: var(--text-main);
}

.action-area {
  text-align: center;
  margin-top: 50px;
}

/* Detail Pages */
.detail-layout {
  display: flex;
  gap: 50px;
  max-width: 1000px;
  margin: 0 auto;
}

.detail-layout,
.news-detail-layout {
  padding: 40px 40px 60px;
}

.detail-visual {
  flex: 0 0 400px;
}

.detail-visual img {
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.detail-info {
  flex: 1;
}

.comic-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.comic-label {
  background-color: white;
  color: #F08080;
  border: 1px solid #F08080;
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1;
}

.detail-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  margin-bottom: 20px;
  line-height: 1.3;
  /* color: #F08080; */
}

.comic-authors {
  list-style: none;
  margin: 15px 0 30px;
  padding: 15px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 2px solid;
  border-bottom: 2px solid;
  border-image: linear-gradient(90deg, #b4e0ff 0%, #FFF0ED 40%, #FFDAB9 80%, #FFFFFF 100%) 1;
}

.comic-authors li {
  display: flex;
  font-size: 1rem;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.6);
  /* padding: 10px 15px; */
  border-radius: 8px;
  align-items: center;
}

.comic-authors .role {
  font-weight: 500;
  /* color: #F08080; */
  /* min-width: 140px; */
}

.comic-authors .name {
  /* font-weight: 500; */
}

.detail-desc {
  font-size: 1.05rem;
  margin-bottom: 40px;
  white-space: normal;
}

.detail-desc [class*="wp-block-"]+[class*="wp-block-"],
.news-detail-body [class*="wp-block-"]+[class*="wp-block-"] {
  margin-top: 1em;
}

.store-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #FFF0ED;
  padding: 25px;
  border-radius: 15px;
}

.store-links h3 {
  color: #F08080;
  font-size: 1rem;
  margin-bottom: 10px;
}

.store-btn {
  display: block;
  padding: .5em 1.5em;
  background: #FFFFFF;
  border: 1px solid #F08080;
  color: #F08080;
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
  transition: all 0.3s ease;
}

.store-btn:hover {
  background: #F08080;
  color: white;
}

/* News Detail */
.news-detail-header {
  /* text-align: center; */
  margin-bottom: 40px;
}

.news-detail-date {
  color: var(--text-light);
  margin-bottom: 10px;
}

.news-detail-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  margin-bottom: 20px;
  line-height: 1.3;
  /* color: #F08080; */
}

.news-detail-body {
  /* max-width: 800px; */
  margin: 0 auto;
}

.news-detail-body img {
  border-radius: 10px;
  margin: 30px 0;

}

@media (max-width: 768px) {
  .news-detail-body img {
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Utilities */
.text-center {
  text-align: center !important;
}

.text-right {
  text-align: right !important;
}

.text-small {
  font-size: 0.9em;
}

.text-light {
  color: var(--text-light);
}

.link-coral {
  color: #F08080;
  text-decoration: underline;
}

.mt-1 {
  margin-top: 4px !important;
}

.mt-2 {
  margin-top: 8px !important;
}

.mt-3 {
  margin-top: 12px !important;
}

.mt-4 {
  margin-top: 16px !important;
}

.mt-5 {
  margin-top: 20px !important;
}

.mt-6 {
  margin-top: 24px !important;
}

.mt-7 {
  margin-top: 28px !important;
}

.mt-8 {
  margin-top: 32px !important;
}

.mt-9 {
  margin-top: 36px !important;
}

.mt-10 {
  margin-top: 40px !important;
}

.mt-11 {
  margin-top: 44px !important;
}

.mt-12 {
  margin-top: 48px !important;
}

.mt-13 {
  margin-top: 52px !important;
}

.mt-14 {
  margin-top: 56px !important;
}

.mt-15 {
  margin-top: 60px !important;
}

.mt-16 {
  margin-top: 64px !important;
}

.mt-17 {
  margin-top: 68px !important;
}

.mt-18 {
  margin-top: 72px !important;
}

.mt-19 {
  margin-top: 76px !important;
}

.mt-20 {
  margin-top: 80px !important;
}

.mb-1 {
  margin-bottom: 4px !important;
}

.mb-2 {
  margin-bottom: 8px !important;
}

.mb-3 {
  margin-bottom: 12px !important;
}

.mb-4 {
  margin-bottom: 16px !important;
}

.mb-5 {
  margin-bottom: 20px !important;
}

.mb-6 {
  margin-bottom: 24px !important;
}

.mb-7 {
  margin-bottom: 28px !important;
}

.mb-8 {
  margin-bottom: 32px !important;
}

.mb-9 {
  margin-bottom: 36px !important;
}

.mb-10 {
  margin-bottom: 40px !important;
}

.mb-11 {
  margin-bottom: 44px !important;
}

.mb-12 {
  margin-bottom: 48px !important;
}

.mb-13 {
  margin-bottom: 52px !important;
}

.mb-14 {
  margin-bottom: 56px !important;
}

.mb-15 {
  margin-bottom: 60px !important;
}

.mb-16 {
  margin-bottom: 64px !important;
}

.mb-17 {
  margin-bottom: 68px !important;
}

.mb-18 {
  margin-bottom: 72px !important;
}

.mb-19 {
  margin-bottom: 76px !important;
}

.mb-20 {
  margin-bottom: 80px !important;
}

/* Reusable Components */
.content-box {
  /* padding: 40px; */
  border-radius: 15px;
}

.section-desc {
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-light);
}

.date-right {
  text-align: right;
  margin-top: 50px;
  color: var(--text-light);
}

.custom-list,
.wp-block-list {
  padding-left: 24px;
  line-height: 1.8;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 80px;
}

.page-item,
.page-numbers {
  padding: 5px 15px;
  background: white;
  color: #F08080;
  border-radius: 5px;
  border: 1px solid #F08080;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.page-item:hover,
.page-item.active,
.page-numbers:hover,
.page-numbers.current {
  background: #F08080;
  color: white;
}

/* Responsive */
@media (max-width: 768px) {
  .comic-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .detail-layout {
    flex-direction: column;
    align-items: center;
  }

  .detail-visual {
    flex: 0 0 auto;
    max-width: 300px;
  }

  .detail-layout,
  .news-detail-layout {

    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 600px) {
  .comic-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }



  .section-title {
    font-size: 1.6rem;
  }


  .sp-mt-1 {
    margin-top: 4px !important;
  }

  .sp-mt-2 {
    margin-top: 8px !important;
  }

  .sp-mt-3 {
    margin-top: 12px !important;
  }

  .sp-mt-4 {
    margin-top: 16px !important;
  }

  .sp-mt-5 {
    margin-top: 20px !important;
  }

  .sp-mt-6 {
    margin-top: 24px !important;
  }

  .sp-mt-7 {
    margin-top: 28px !important;
  }

  .sp-mt-8 {
    margin-top: 32px !important;
  }

  .sp-mt-9 {
    margin-top: 36px !important;
  }

  .sp-mt-10 {
    margin-top: 40px !important;
  }

  .sp-mt-11 {
    margin-top: 44px !important;
  }

  .sp-mt-12 {
    margin-top: 48px !important;
  }

  .sp-mt-13 {
    margin-top: 52px !important;
  }

  .sp-mt-14 {
    margin-top: 56px !important;
  }

  .sp-mt-15 {
    margin-top: 60px !important;
  }

  .sp-mt-16 {
    margin-top: 64px !important;
  }

  .sp-mt-17 {
    margin-top: 68px !important;
  }

  .sp-mt-18 {
    margin-top: 72px !important;
  }

  .sp-mt-19 {
    margin-top: 76px !important;
  }

  .sp-mt-20 {
    margin-top: 80px !important;
  }

  .sp-mb-1 {
    margin-bottom: 4px !important;
  }

  .sp-mb-2 {
    margin-bottom: 8px !important;
  }

  .sp-mb-3 {
    margin-bottom: 12px !important;
  }

  .sp-mb-4 {
    margin-bottom: 16px !important;
  }

  .sp-mb-5 {
    margin-bottom: 20px !important;
  }

  .sp-mb-6 {
    margin-bottom: 24px !important;
  }

  .sp-mb-7 {
    margin-bottom: 28px !important;
  }

  .sp-mb-8 {
    margin-bottom: 32px !important;
  }

  .sp-mb-9 {
    margin-bottom: 36px !important;
  }

  .sp-mb-10 {
    margin-bottom: 40px !important;
  }

  .sp-mb-11 {
    margin-bottom: 44px !important;
  }

  .sp-mb-12 {
    margin-bottom: 48px !important;
  }

  .sp-mb-13 {
    margin-bottom: 52px !important;
  }

  .sp-mb-14 {
    margin-bottom: 56px !important;
  }

  .sp-mb-15 {
    margin-bottom: 60px !important;
  }

  .sp-mb-16 {
    margin-bottom: 64px !important;
  }

  .sp-mb-17 {
    margin-bottom: 68px !important;
  }

  .sp-mb-18 {
    margin-bottom: 72px !important;
  }

  .sp-mb-19 {
    margin-bottom: 76px !important;
  }

  .sp-mb-20 {
    margin-bottom: 80px !important;
  }

  /* 
  .content-box {
    padding: 40px 20px;
  } */

  .section-desc {
    margin-bottom: 25px;
  }

  .date-right {
    margin-top: 30px;
  }

  .custom-list,
  .wp-block-list {
    padding-left: 20px;
  }
}

/* Image Modal */
.image-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-modal.show {
  display: flex;
  opacity: 1;
}

.image-modal-content {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}

.close-modal:hover {
  color: #F08080;
}

/* Spread Image */
.spread-img {
  width: 100%;
  border-radius: 10px;
  cursor: pointer;
  border: 3px solid transparent;
  background-clip: border-box;
  background-origin: border-box;
  transition: all 0.3s ease;
  box-shadow: none !important;
}

/* 
.spread-img:hover {
  background-image: linear-gradient(135deg, #EDFFFF 0%, #FFF0ED 70%, #FFB6C1 100%);
} */

/* Hamburger Menu & SP Nav */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1000;
  position: relative;
  -webkit-transform: translateZ(1px);
  transform: translateZ(1px);
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--primary-blue);
  margin-bottom: 5px;
  transition: all 0.3s ease;
}

.hamburger span:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .global-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 80px 20px 20px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 999;
  }

  .global-nav.open {
    right: 0;
  }

  .global-nav ul {
    flex-direction: column;
    width: 100%;
  }

  .global-nav ul li {
    text-align: left;
  }

  .global-nav ul a {
    display: block;
    padding: 15px 0;
    position: relative;
    width: 100%;
  }

  .global-nav ul a::before {
    top: 15px;
    /* match mobile padding */
  }

  .global-nav .nav-ja {
    display: inline-block;
    margin-left: 10px;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-light);
  }

  .global-nav ul a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(240deg, #EDFFFF 0%, #FFE5B4 35%, #FFB6C1 70%, #FFF0ED 100%);
    -webkit-mask-image: radial-gradient(circle, #000 40%, transparent 40%);
    -webkit-mask-size: 6px 6px;
    -webkit-mask-position: bottom;
    -webkit-mask-repeat: repeat-x;
    mask-image: radial-gradient(circle, #000 40%, transparent 40%);
    mask-size: 6px 6px;
    mask-position: bottom;
    mask-repeat: repeat-x;
    opacity: 1;
    transform: translateY(0);
  }

  .header-sns {
    margin-top: 20px;
    justify-content: center;
  }

  .hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* SP Slider Thumbnails */
  .carousel-thumbnails {
    gap: 10px;
  }

  .carousel-thumb {
    width: 12px;
    height: 12px;
    padding: 0;
    border-radius: 50%;
    object-fit: none;
    object-position: -9999px -9999px;
    background-color: #ddd;
    border: none;
    box-shadow: none;
  }

  .carousel-thumb.active {
    background-color: #F08080;
    background-image: none;
  }



  .detail-title,
  .news-detail-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 540px) {

  /* SP News Card */
  .news-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .news-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-right: 15px;
  }

  .news-thumb {
    width: 25%;
    aspect-ratio: 1 / 1;
    border-radius: 10px 0 0 10px;
    flex-shrink: 0;
  }

  .news-info {
    flex: 1;
    padding: 10px 0;
  }
}



/* =========================================
   記事本文内のインラインリンク
========================================= */
.detail-desc p a,
.detail-desc li a,
.news-detail-body p a,
.news-detail-body li a,
.simple-page-content p a,
.simple-page-content li a {
  color: #F08080;
  /* 青系のメインカラー。ピンクが良ければ #F08080 */

  /* font-weight: 500; */
  transition: all 0.3s ease;
}

.detail-desc p a:hover,
.detail-desc li a:hover,
.news-detail-body p a:hover,
.news-detail-body li a:hover,
.simple-page-content p a:hover,
.simple-page-content li a:hover {
  opacity: 0.8;
  /* text-decoration-color: transparent; */
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.note-list {
  list-style: none;
  padding-left: 0;
}

.note-list li {
  padding-left: 1em;
  text-indent: -1em;
}