/*
Theme Name: KATACHI
Theme URI: 
Author: Waka
Author URI: 
Description: 日本の暮らしの中にある形と美しさを届けるブログテーマ
Version: 1.0
*/
/* ==================
   基本設定
================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-main: #1F3A5F;
  --color-accent: #4A6FA5;
  --color-bg: #FAFAF7;
  --color-text: #000000;
  --color-sub: #888888;
  --color-border: #E8EDF2;
  --font-logo: 'Cormorant Garamond', serif;
  --font-body: 'M PLUS 1p', sans-serif;
}

html, body {
	
  font-family: var(--font-body);
  background: rgba(232, 237, 242, 0.5);
  color: var(--color-text);
  line-height: 1.8;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}
body.single-post {
  background: #FAFAF7;
}
body.page-id-11 {
  background: #FAFAF7;
}
/* ==================
   ヘッダー
================== */
header {
  width: 100%;
  height: 80px;
  background: #FAFAF7;
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  max-width: 1440px;
  height: 80px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-left: 120px;
  padding-right: 60px;
  padding-top: 16px;
}

.logo {
  font-family: var(--font-logo);
  font-size: 40px;
  font-weight: 500;
  color: var(--color-main);
  letter-spacing: 0.08em;
  text-decoration: none;
  line-height: 1;
}

nav {
  display: flex;
  gap: 40px;
  list-style: none;
  padding-top: 16px;
}

nav a {
  font-size: 16px;
  font-weight: 400;
  color: #000000;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

nav a:hover { color: var(--color-accent); }

.hamburger { display: none; }
.nav-menu { display: none; }

/* ==================
   ヒーロー
================== */
.hero {
  width: 100%;
  height: 600px;
  background: rgba(232,237,242,0.65);
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.hero-inner {
  width: 1440px;
  display: flex;
  height: 600px;
  flex-shrink: 0;
}

.hero-side {
  width: 420px;
  flex-shrink: 0;
  background: transparent;
}

.hero-center {
  width: 600px;
  flex-shrink: 0;
  background: var(--color-main);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-box {
  width: 300px;
  height: 300px;
  border: 1px solid #FAFAF7;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-catch {
  font-size: 24px;
  font-weight: 400;
  color: #FAFAF7;
  line-height: 1.66;
  letter-spacing: 0.06em;
  text-align: center;
}

.hero-haiku {
  position: absolute;
  bottom: 48px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 18px;
  font-weight: 300;
  color: rgba(250,250,247,0.7);
  letter-spacing: 0.06em;
  white-space: nowrap;
}



/* ==================
   セクション共通
================== */
.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.section-line {
  width: 32px;
  height: 2px;
  background: var(--color-main);
  margin-bottom: 48px;
}

/* ==================
   最新記事
================== */
.posts-wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 60px;
}
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.post-card {
  background: #fff;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.post-card a {
  text-decoration: none;
  color: inherit;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.post-thumb {
  width: 100%;
  height: 200px;
  background: var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-thumb-inner {
  width: 48px;
  height: 48px;
  border: 1px solid var(--color-accent);
  opacity: 0.3;
  transform: rotate(45deg);
}

.post-body { padding: 20px; }

.post-cat {
  font-size: 12px;
  color: var(--color-accent);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.post-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--color-text);
  margin-bottom: 12px;
}

.post-date {
  font-size: 12px;
  color: var(--color-sub);
  letter-spacing: 0.05em;
}

/* ==================
   カテゴリー
================== */
.categories {
  background: var(--color-main);
  width: 100%;
}

.categories-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 80px 60px;
}

.categories .section-title { color: var(--color-bg); }
.categories .section-line { background: var(--color-accent); }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.cat-card {
  background: rgba(255,255,255,0.1);
  padding: 40px 24px;
  text-align: center;
  transition: background 0.2s;
  cursor: pointer;
  text-decoration: none;
}

.cat-card:hover { background: rgba(255,255,255,0.18); }

.cat-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  margin: 0 auto 20px;
}

.cat-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-bg);
  margin-bottom: 10px;
  letter-spacing: 0.08em;
}

.cat-desc {
  font-size: 12px;
  color: rgba(250,250,247,0.65);
  letter-spacing: 0.05em;
  line-height: 1.7;
}

/* ==================
   ギャラリー
================== */
.gallery-title {
  font-family: var(--font-logo);
  font-size: 32px;
  color: var(--color-main);
  margin-bottom: 4px;
}

.gallery-sub {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-sub);
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.gallery-item { cursor: pointer; }

.gallery-thumb {
  width: 100%;
  aspect-ratio: 1;
  background: var(--color-border);
  position: relative;
  overflow: hidden;
  transition: opacity 0.3s;
}

.gallery-thumb:hover { opacity: 0.85; }

.gallery-pattern {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-num {
  font-size: 13px;
  color: var(--color-sub);
  letter-spacing: 0.1em;
  margin-top: 12px;
}

.gallery-btn-wrap { text-align: center; }

.btn-gallery {
  display: inline-block;
  padding: 14px 48px;
  background: var(--color-main);
  color: var(--color-bg);
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-gallery:hover { background: var(--color-accent); }

/* ==================
   記事ページ
================== */
.page-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

.article-main {
  background: #ffffff;
  
}
.eyecatch {
  width: 100%;
  height: 400px;
  background: var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.eyecatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eyecatch-inner {
  width: 80px;
  height: 80px;
  border: 1px solid var(--color-accent);
  opacity: 0.3;
  transform: rotate(45deg);
}

.article-header { padding: 0 40px; }

.article-date {
  font-size: 13px;
  color: var(--color-sub);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  margin-top: 32px;
}

.article-cat {
  font-size: 13px;
  color: var(--color-accent);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.article-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.6;
  color: #666666;
  letter-spacing: 0.05em;
  margin-bottom: 32px;
}

.article-divider {
  width: 100%;
  height: 1px;
  background: var(--color-border);
  margin-bottom: 40px;
}

.article-body {
  padding: 0 40px 60px;
  font-size: 17px;
  font-weight: 400;
  color: #444444;
  line-height: 1.9;
  letter-spacing: 0.03em;
}

.article-body p { margin-bottom: 24px; }
.article-body blockquote {
  
  background: rgba(232, 237, 242, 0.3);
  margin: 32px 0;
  padding: 20px 24px;
  border-radius: 4px;
}
.article-body blockquote p {
  font-size: 18px;
  color: #444444;
  line-height: 1.9;
  letter-spacing: 0.05em;
  margin-bottom: 0;
  font-family: 'Shippori Mincho', serif;
}
.article-body blockquote cite {
  display: block;
  font-size: 15px;
  color: var(--color-sub);
  margin-top: 12px;
  letter-spacing: 0.04em;
}
.article-body h2 {
  font-size: 24px;
  font-weight: 700;
  color: #666666;
  padding: 23px 18px;
  border-left: 5px solid var(--color-main);
  background: rgba(232, 237, 242, 0.5);
  margin-bottom: 20px;
  margin-top: 48px;
  line-height: 1.5;
	 letter-spacing: 0.11em;
}
.article-body h3 {
  font-size: 22px;
  font-weight: 700;
  color: #666666;
  padding-left: 12px;
  border-left: 3px solid var(--color-main);
  margin-bottom: 16px;
  margin-top: 40px;
	 letter-spacing: 0.11em;
}

/* ==================
   サイドバー
================== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-card {
  background: rgba(255,255,255,0.8);
  padding: 24px 24px 72px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}
.sidebar-card.profile {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 24px;
  min-height: 420px;
}
.sidebar-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.sidebar-line {
  width: 28px;
  height: 2px;
  background: var(--color-main);
  margin-bottom: 20px;
}


.profile-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  text-align: center;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  margin-top: 40px;
}

.profile-text {
  font-size: 13px;
  color: var(--color-sub);
  text-align: center;
  line-height: 1.9;
  letter-spacing: 0.04em;
  margin-bottom: 0;
	margin-top: 55px;
}
.profile-link {
  display: block;
  text-align: center;
  font-size: 13px;
  color: var(--color-accent);
  text-decoration: none;
  margin-top: 90px;
}
.cat-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cat-list li a {
  font-size: 15px;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cat-list li a::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.cat-list li a:hover { color: var(--color-accent); }

.rec-list {
  display: flex;
  flex-direction: column;
  gap: 65px;
}
.rec-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.rec-item:hover { opacity: 0.7; }
.rec-thumb {
  width: 100%;
  height: 160px;
  background: var(--color-border);
  overflow: hidden;
}
.rec-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rec-title {
  font-size: 13px;
  color: var(--color-text);
  line-height: 1.6;
  letter-spacing: 0.03em;
}
.gallery-desc-pc,
.gallery-desc-sp {
  font-size: 13px;
  color: var(--color-sub);
  text-align: center;
  line-height: 2.0;
  margin-bottom: 40px;
  letter-spacing: 0.04em;
}
.gallery-desc-sp {
  display: none !important;
}

@media (max-width: 768px) {
  .gallery-desc-pc { display: none !important; }
  .gallery-desc-sp { display: block !important; }
}
.profile-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}
/* ==================
   フッター
================== */
footer {
  background: #1a1a1a;
  width: 100%;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.footer-logo {
  font-family: var(--font-logo);
  font-size: 32px;
  color: var(--color-bg);
  letter-spacing: 0.08em;
  text-decoration: none;
}
.footer-copy {
  font-size: 12px;
  color: rgba(250,250,247,0.5);
  letter-spacing: 0.05em;
}
/* ==================
   レスポンシブ
================== */
@media (max-width: 768px) {
	html, body {
    overflow-x: hidden !important;
    max-width: 100% !important;
  }
  header { height: auto; }

  .header-inner {
    height: 60px;
    padding: 0 20px;
    align-items: center;
  }

  .logo { font-size: 30px; }

  nav { display: none; }

  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 4px;
  }

  .hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
  }

  .nav-menu {
  position: absolute;
  top: 60px;
  left: 0;
  width: 100%;
  background: var(--color-main);
  border-bottom: none;
  z-index: 100;
  flex-direction: column;
  padding: 16px 20px;
}
.nav-menu.open { display: flex; }
.nav-menu a {
  font-size: 16px;
  color: var(--color-bg);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid rgba(250,250,247,0.2);
  text-align: center;
}
  .nav-menu a:last-child { border-bottom: none; }

  .hero {
    height: 430px;
    min-height: 430px;
    max-height: 430px;
    overflow: hidden;
  }

  .hero-inner {
    grid-template-columns: 0 1fr 0;
    height: 430px;
  }

  .hero-side { display: none; }

  .hero-center { width: 100%; }

  .hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .hero-box {
    position: relative;
    top: auto;
    left: auto;
    width: 215px;
    height: 215px;
    padding: 20px;
  }

  .hero-catch {
    font-size: 16px;
    line-height: 2.0;
    letter-spacing: 0.04em;
  }

  .hero-haiku {
    position: absolute;
    bottom: 48px;
    top: auto;
    left: 0;
    right: 0;
    font-size: 13px;
    text-align: center;
  }

  .hero-scroll {
    bottom: 16px;
  }
/* @media (max-width: 768px) の中に追加 */
.posts-wrap {
  padding: 0 16px;
}
	
.posts-grid {
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 0 8px;
}
.post-card {
  display: block;
}
.post-thumb {
  width: 100%;
  height: 160px;
}
.categories-inner {
  padding: 60px 16px;
}
  .cat-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    padding: 0 12px !important;
  }

  .cat-card {
    aspect-ratio: 1 !important;
    padding: 16px 8px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .cat-name {
    font-size: 14px !important;
    margin-bottom: 4px !important;
  }

  .cat-desc {
    font-size: 11px !important;
  }

  .cat-icon-svg {
    margin-bottom: 10px !important;
  }

  .cat-name {
    font-size: 14px !important;
    margin-bottom: 4px !important;
  }

  .cat-desc {
    font-size: 11px !important;
  }

  .cat-icon-svg {
    margin-bottom: 10px !important;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .page-content {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 20px;
  }

  .article-header { padding: 0; }
  .article-body { padding: 0 0 40px; }
  .article-title { font-size: 22px; }
  .eyecatch { height: 240px; }

 .footer-inner {
    grid-template-columns: 1fr !important;
    padding: 20px !important;
    gap: 8px !important;
    text-align: center !important;
    max-width: 100% !important;
  }

  .footer-logo {
    font-size: 30px !important;
    margin-bottom: 4px !important;
  }

  .footer-catch {
    display: none !important;
  }

  .footer-nav {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}
}
/* ==================
   アーカイブページ
================== */
.archive-wrap {
  background: rgba(232,237,242,0.65);
  width: 100%;
  min-height: 60vh;
}

.archive-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 60px 60px 80px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 60px;
  align-items: start;
}

.archive-main {
  width: 100%;
}

.archive-header {
  margin-bottom: 48px;
}

.archive-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
	 text-align: center; 
}

.archive-line {
  width: 32px;
  height: 2px;
  background: var(--color-main);
	margin: 0 auto;

}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

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

.pagination a,
.pagination span {
  display: inline-block;
  padding: 8px 16px;
  font-size: 14px;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  text-decoration: none;
  transition: all 0.2s;
}

.pagination a:hover {
  background: var(--color-main);
  color: var(--color-bg);
  border-color: var(--color-main);
}

.pagination .current {
  background: var(--color-main);
  color: var(--color-bg);
  border-color: var(--color-main);
}

.no-posts {
  font-size: 16px;
  color: var(--color-sub);
  text-align: center;
  padding: 60px 0;
}

@media (max-width: 768px) {
  .archive-inner {
    grid-template-columns: 1fr;
    padding: 40px 20px;
    gap: 40px;
  }

  .archive-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

 .archive-grid .post-card {
  display: block;
}
.archive-grid .post-thumb {
  width: 100%;
  height: 160px;
}
}

/* ==================
   プロフィールページ
================== */
.profile-wrap {
  background: rgba(232,237,242,0.65);
  width: 100%;
  min-height: 60vh;
}

.profile-page-inner {
  max-width: 600px;
  margin: 0 auto;
  padding: 60px 40px 80px;
}

.profile-main {
  background: #ffffff;
  padding: 48px;
  width: 100%;
}
.profile-main {
  background: #ffffff;
  padding: 48px;
}

.profile-page-header {
  margin-bottom: 40px;
}

.profile-page-title {
  font-family: var(--font-logo);
  font-size: 32px;
  color: var(--color-main);
  margin-bottom: 8px;
}

.profile-page-line {
  width: 32px;
  height: 2px;
  background: var(--color-main);
}

.profile-page-top {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--color-border);
}

.profile-page-icon {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--color-border);
  flex-shrink: 0;
}

.profile-page-name {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.profile-page-tagline {
  font-size: 15px;
  color: var(--color-sub);
  letter-spacing: 0.05em;
}

.profile-page-body {
  font-size: 16px;
  color: var(--color-text);
  line-height: 2.0;
  letter-spacing: 0.03em;
}

.profile-page-body p {
  margin-bottom: 24px;
}

.profile-page-body p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .profile-page-inner {
    grid-template-columns: 1fr;
    padding: 40px 20px;
    gap: 40px;
  }

  .profile-main { padding: 24px; }

  .profile-page-top {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .profile-page-name { font-size: 22px; }
}

/* ==================
   ギャラリーページ
================== */
.gallery-page-wrap {
  background: #FAFAF7;
  width: 100%;
  min-height: 60vh;
}

.gallery-page-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 60px 60px 80px;
}

.gallery-page-header {
  margin-bottom: 48px;
}

.gallery-page-title {
  font-family: var(--font-logo);
  font-size: 40px;
  color: var(--color-main);
  margin-bottom: 8px;
}

.gallery-page-sub {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-sub);
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}

.gallery-page-line {
  width: 32px;
  height: 2px;
  background: var(--color-main);
}

.gallery-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.gallery-page-item {
  cursor: pointer;
}

.gallery-page-thumb {
  width: 100%;
  aspect-ratio: 1;
  background: var(--color-border);
  position: relative;
  overflow: hidden;
  transition: opacity 0.3s;
  margin-bottom: 16px;
}

.gallery-page-thumb:hover { opacity: 0.85; }

.gallery-page-num {
  font-size: 13px;
  color: var(--color-sub);
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.gallery-page-caption {
  font-size: 15px;
  font-weight: 500;
  color: #999999;
  letter-spacing: 0.05em;
}

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

  .gallery-page-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ==================
   ギャラリーページ（新）
================== */
.gallery-page-wrap {
  background: #FAFAF7;
  width: 100%;
  min-height: 60vh;
}

.gallery-page-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 60px 60px 80px;
}

.gallery-page-header {
  margin-bottom: 48px;
}

.gallery-page-title {
  font-family: var(--font-logo);
  font-size: 40px;
  color: var(--color-main);
  margin-bottom: 8px;
}

.gallery-page-sub {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-sub);
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}

.gallery-page-line {
  width: 32px;
  height: 2px;
  background: var(--color-main);
}

.gallery-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 80px;
}

.gallery-page-item {
  cursor: pointer;
}

.gallery-page-link {
  display: block;
  text-decoration: none;
}

.gallery-page-thumb {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--color-border);
  margin-bottom: 16px;
  transition: opacity 0.3s;
}

.gallery-page-thumb:hover {
  opacity: 0.85;
}

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

.gallery-page-num {
  font-size: 13px;
  color: var(--color-sub);
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.gallery-page-caption {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: 0.05em;
}

.gallery-no-image {
  font-size: 16px;
  color: var(--color-sub);
  text-align: center;
  padding: 60px 0;
  grid-column: 1 / -1;
}

/* 著作権表示 */
.gallery-copyright {
  border-top: 1px solid var(--color-border);
  padding-top: 48px;
  text-align: center;
}

.gallery-copyright-ja {
  font-size: 14px;
  color: var(--color-sub);
  line-height: 2.0;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.gallery-copyright-en {
  font-size: 13px;
  color: var(--color-sub);
  line-height: 2.0;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.gallery-copyright-mark {
  font-family: var(--font-logo);
  font-size: 16px;
  color: var(--color-main);
  letter-spacing: 0.08em;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .gallery-page-inner {
    padding: 40px 20px;
  }

  .gallery-page-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .gallery-page-title {
    font-size: 28px;
  }

  .gallery-copyright-ja,
  .gallery-copyright-en {
    font-size: 12px;
    text-align: left;
  }
}

/* ==================
   ギャラリーページ（最終版）
================== */
.gallery-page-wrap {
  background: #FAFAF7;
  width: 100%;
  min-height: 60vh;
}

.gallery-page-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 60px 60px 80px;
}

.gallery-page-header {
  margin-bottom: 48px;
}

.gallery-page-title {
  font-family: var(--font-logo);
  font-size: 40px;
  color: var(--color-main);
  margin-bottom: 8px;
}

.gallery-page-sub {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-sub);
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}

.gallery-page-line {
  width: 32px;
  height: 2px;
  background: var(--color-main);
}

/* 3列4段グリッド */
.gallery-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 80px;
}

.gallery-page-item {
  cursor: pointer;
}

.gallery-page-link {
  display: block;
  text-decoration: none;
  position: relative;
}

/* トップページと同じサイズ */
.gallery-page-thumb {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--color-border);
  position: relative;
}

.gallery-page-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

/* ホバー時のオーバーレイ */
.gallery-page-overlay {
  position: absolute;
  inset: 0;
  background: rgba(31,58,95,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.gallery-page-zoom {
  font-size: 32px;
  color: #FAFAF7;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-page-link:hover .gallery-page-overlay {
  background: rgba(31,58,95,0.4);
}

.gallery-page-link:hover .gallery-page-zoom {
  opacity: 1;
}

.gallery-page-link:hover .gallery-page-thumb img {
  transform: scale(1.05);
}

/* 番号・タイトル・説明文 */
.gallery-page-info {
  padding: 12px 0;
}

.gallery-page-num {
  font-size: 12px;
  color: var(--color-sub);
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.gallery-page-caption {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.gallery-page-desc {
  font-size: 13px;
  color: var(--color-sub);
  letter-spacing: 0.03em;
  line-height: 1.6;
}

.gallery-no-image {
  font-size: 16px;
  color: var(--color-sub);
  text-align: center;
  padding: 60px 0;
  grid-column: 1 / -1;
}

/* 著作権表示 */
.gallery-copyright {
  border-top: 1px solid var(--color-border);
  padding-top: 48px;
  text-align: center;
}

.gallery-copyright-ja {
  font-size: 14px;
  color: var(--color-sub);
  line-height: 2.0;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.gallery-copyright-en {
  font-size: 13px;
  color: var(--color-sub);
  line-height: 2.0;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.gallery-copyright-mark {
  font-family: var(--font-logo);
  font-size: 16px;
  color: var(--color-main);
  letter-spacing: 0.08em;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .gallery-page-inner {
    padding: 40px 20px;
  }

  .gallery-page-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .gallery-page-title { font-size: 28px; }

  .gallery-copyright-ja,
  .gallery-copyright-en {
    font-size: 12px;
    text-align: left;
  }
}

/* ギャラリーページ サイズ修正 */
.gallery-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 80px;
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
}

.gallery-page-thumb {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--color-border);
  position: relative;
  max-width: 380px;
  margin: 0 auto;
}

.gallery-page-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--color-border);
  display: block;
  transition: transform 0.3s;
}

/* ==================
   ギャラリーページ 最終調整
================== */
.gallery-page-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 32px !important;
  margin-bottom: 80px !important;
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.gallery-page-item {
  cursor: pointer;
}

.gallery-page-link {
  display: block;
  text-decoration: none;
}

.gallery-page-thumb {
  width: 100% !important;
  aspect-ratio: 1 !important;
  overflow: hidden !important;
  background: var(--color-border) !important;
  position: relative !important;
}

.gallery-page-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  background: #FAFAF7 !important;
  display: block !important;
  transition: transform 0.3s !important;
}

.gallery-page-thumb:hover img {
  transform: scale(1.05) !important;
}

.gallery-page-overlay {
  position: absolute;
  inset: 0;
  background: rgba(31,58,95,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.gallery-page-zoom {
  font-size: 32px;
  color: #FAFAF7;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-page-link:hover .gallery-page-overlay {
  background: rgba(31,58,95,0.4);
}

.gallery-page-link:hover .gallery-page-zoom {
  opacity: 1;
}

.gallery-page-info {
  padding: 12px 0;
}

.gallery-page-num {
  font-size: 12px;
  color: var(--color-sub);
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.gallery-page-caption {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.gallery-page-desc {
  font-size: 13px;
  color: var(--color-sub);
  letter-spacing: 0.03em;
  line-height: 1.6;
}

.gallery-no-image {
  font-size: 16px;
  color: var(--color-sub);
  text-align: center;
  padding: 60px 0;
  grid-column: 1 / -1;
}

/* 著作権表示 */
.gallery-copyright {
  border-top: 1px solid var(--color-border);
  padding-top: 48px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-copyright-ja {
  font-size: 14px;
  color: var(--color-sub);
  line-height: 2.0;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.gallery-copyright-en {
  font-size: 13px;
  color: var(--color-sub);
  line-height: 2.0;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.gallery-copyright-mark {
  font-family: var(--font-logo);
  font-size: 16px;
  color: var(--color-main);
  letter-spacing: 0.08em;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .gallery-page-inner {
    padding: 40px 20px;
  }

  .gallery-page-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  .gallery-page-title { font-size: 28px; }

  .gallery-copyright-ja,
  .gallery-copyright-en {
    font-size: 12px;
    text-align: left;
  }
}

/* ギャラリーキャプションを画像の外側に */
.wp-block-gallery .wp-block-image figcaption {
  position: static !important;
  background: none !important;
  color: var(--color-text) !important;
  font-size: 14px !important;
  padding: 8px 0 0 0 !important;
  text-align: left !important;
  opacity: 1 !important;
}

.wp-block-gallery figure {
  display: flex !important;
  flex-direction: column !important;
}

/* トップページギャラリー画像 */
.gallery-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.gallery-thumb {
  width: 100% !important;
  aspect-ratio: 1 !important;
  overflow: hidden !important;
  background: var(--color-border) !important;
}

/* トップページギャラリーグリッド修正 */
.gallery-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 32px !important;
  margin-bottom: 48px !important;
}

.gallery-grid .gallery-item {
  width: 100% !important;
}

.gallery-grid .gallery-thumb {
  width: 100% !important;
  aspect-ratio: 1 !important;
  overflow: hidden !important;
  background: var(--color-border) !important;
}

.gallery-grid .gallery-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

/* カテゴリーSVGアイコン */
.cat-icon-svg {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cat-icon-svg svg {
  width: 40px;
  height: 40px;
}

