/* Container Styles */
:root {
    --container-width: 1800px;
    --container-padding: 1.5rem;
    --header-height: 140px;
    --header-height-compact: 80px;
    --primary-color: #599DD9;
    --secondary-color: #4A90E2;
    --header-bg: #17607b;
    --header-accent: #298fc2;
}

/* コンテナ幅の拡大 */
.container,
.pattern-container,
.price-container,
.service-container,
.about-container,
.contact-section-custom,
.footer-main .container,
.footer-bottom .container,
#main .container,
.site-main .container,
.py-20 .container {
    width: 100%;
    max-width: var(--container-width, 1800px);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding, 1.5rem);
    padding-right: var(--container-padding, 1.5rem);
    box-sizing: border-box;
}

/* パターンライブラリのコンテナも同様に拡大 */
.pattern-section .pattern-container {
    max-width: var(--container-width, 1800px);
}

/* 料金セクションのコンテナ拡大 */
.price-section .price-container {
    max-width: var(--container-width, 1800px);
}

/* サービスセクションのコンテナ拡大 */
.service-detail .service-container {
    max-width: var(--container-width, 1800px);
}

/* ヘッダー・フッターもコンテナ幅を統一 */
.desktop-header .header-top-wrapper,
.desktop-header .header-top,
.header-nav .container,
.site-header .container {
    max-width: var(--container-width, 1800px);
}

/* ヘッダー要素の配置を調整 */
.desktop-header .header-top {
    padding: 1rem var(--container-padding, 1.5rem);
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-width, 1800px);
    margin: 0 auto;
    box-sizing: border-box;
}

.desktop-header .site-branding {
    justify-content: flex-start;
    margin-right: auto;
    flex: 0 0 auto;
    padding-left: 0;
}

/* ヘッダーアクション */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
    padding-right: 0;
    flex-shrink: 0;
}

/* ヘッダーのボタンスタイル調整 */
.header-actions a {
    color: #fff !important;
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.header-actions a i {
    margin-right: 0.5rem;
    font-size: 1.1em;
}

.header-actions a:first-of-type {
    background-color: var(--header-bg, #17607b);
}

.header-actions a:last-of-type {
    background-color: var(--header-accent, #298fc2);
}

.header-actions a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    opacity: 0.9;
}

/* ヘッダーのナビゲーション */
.header-nav {
    background-color: var(--header-bg, #17607b) !important;
    width: 100% !important;
}

.header-nav .container {
    max-width: var(--container-width, 1800px) !important;
    margin: 0 auto !important;
    padding: 0 var(--container-padding, 1.5rem) !important;
    justify-content: space-between !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.header-nav-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    max-width: var(--container-width, 1800px) !important;
    margin: 0 auto !important;
}

.header-nav .search-area {
    flex: 0 0 auto !important;
    margin-right: 1rem !important;
}

.header-nav .main-navigation {
    flex: 1 !important;
    justify-content: flex-end !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
}

.nav-menu {
    display: flex !important;
    flex-direction: row !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 2rem !important;
    align-items: center !important;
    justify-content: flex-end !important;
    width: 100% !important;
}

.nav-menu li {
    margin: 0 !important;
    padding: 0 !important;
}

.nav-menu li a {
    color: #fff !important;
    font-size: 0.875rem !important;
    padding: 1rem 0.5rem !important;
    display: inline-block !important;
    text-decoration: none !important;
    transition: color 0.2s !important;
    line-height: 1.5 !important;
}

.nav-menu li a:hover {
    color: #ffec80 !important;
    text-decoration: underline !important;
}

/* 電話番号と受付時間 */
.header-contact-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 210px;
    margin-right: 1.5rem;
}

.header-phone {
    display: flex;
    align-items: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.2rem;
}

.header-phone i {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.header-hours {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.2;
}

/* CTAボタン */
.header-consultation-btn,
.header-contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.header-consultation-btn::before,
.header-contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255,255,255,0.1), rgba(255,255,255,0));
    opacity: 0.5;
}

.header-consultation-btn {
    background-color: var(--header-bg, #17607b);
    margin-right: 0.75rem;
}

.header-contact-btn {
    background-color: var(--header-accent, #298fc2);
}

.header-consultation-btn:hover,
.header-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    opacity: 0.95;
}

.header-consultation-btn i,
.header-contact-btn i {
    margin-right: 0.5rem;
    font-size: 1.1em;
}

/* モバイルヘッダーのスタイル */
.mobile-header {
    display: none;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: 60px;
}

.mobile-header-top {
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.mobile-header .logo-container img {
    max-height: 40px;
    width: auto;
}

.mobile-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-phone-btn,
.mobile-contact-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background-color: var(--primary-color, #599DD9);
    color: white !important;
    font-size: 1.25rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.mobile-phone-btn:hover,
.mobile-contact-btn:hover {
    background-color: var(--header-bg, #17607b);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* 全画面共通のボタンスタイル改善 */
.btn-primary,
.btn-secondary,
.wp-block-button__link,
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.4;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.btn-primary,
.wp-block-button__link {
    background-color: var(--primary-color);
    color: #fff !important;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: #fff !important;
}

.btn-primary:hover,
.btn-secondary:hover,
.wp-block-button__link:hover,
.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    opacity: 0.95;
}

/* TailwindCSSクラスの補完 */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

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

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-6 {
    gap: 1.5rem;
}

.font-bold {
    font-weight: 700;
}

.rounded-md {
    border-radius: 0.375rem;
}

.mr-1, .mr-2 {
    margin-right: 0.5rem;
}

.mr-6 {
    margin-right: 1.5rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-xs {
    font-size: 0.75rem;
}

.text-gray-600 {
    color: #4B5563;
}

.text-gray-700 {
    color: #374151;
}

.bg-opacity-10 {
    --tw-bg-opacity: 0.1;
}

/* ヒーローセクション */
.hero-section-custom {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    margin-top: 0;
    margin-bottom: 0;
}

.hero-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5rem 3rem;
    background-color: #247393;
    color: white;
    z-index: 10;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.hero-desc {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.hero-right {
    flex: 1;
    position: relative;
    min-height: 400px;
}

.hero-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transition: opacity 1s ease;
}

/* Aboutセクション */
.about-section {
    padding: 90px 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    background-color: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: var(--container-width, 1800px);
    margin: 0 auto;
    padding: 0 var(--container-padding, 1.5rem);
}

.about-content {
    max-width: 600px;
}

.about-title {
    font-size: 2.25rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: #1a202c;
    position: relative;
    display: inline-block;
    padding-bottom: 0.75rem;
}

.about-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.about-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #4a5568;
    margin-bottom: 2.5rem;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.feature-text {
    font-size: 1rem;
    line-height: 1.5;
    color: #4a5568;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* アニメーション */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* レスポンシブ対応 */
@media (max-width: 992px) {
    .hero-left {
        padding: 4rem 2rem;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-content {
        max-width: 100%;
        order: 1;
    }
    
    .about-image {
        order: 0;
    }
    
    .about-section,
    #culture.py-20,
    #work.py-20 {
        padding: 70px 0;
    }
}

@media (max-width: 768px) {
    .hero-section-custom {
        flex-direction: column;
    }
    
    .hero-left {
        padding: 3rem 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .about-section,
    #culture.py-20,
    #work.py-20 {
        padding: 60px 0;
    }
}

/* 遺言・相続ヒーローセクション */
.inheritance-hero-section {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    margin-top: 0;
    background-color: #f5f8fa;
}

.inheritance-hero-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5rem 3rem;
    background-color: #1c5f8a;
    color: white;
    z-index: 10;
}

.inheritance-hero-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.inheritance-hero-desc {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.inheritance-hero-right {
    flex: 1;
    position: relative;
    min-height: 400px;
    background-image: url('https://images.unsplash.com/photo-1589939705384-5185137a7f0f?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
}

/* レスポンシブ対応 */
@media (max-width: 992px) {
    .hero-left, 
    .inheritance-hero-left {
        padding: 4rem 2rem;
    }
    
    .hero-title, 
    .inheritance-hero-title {
        font-size: 2.25rem;
    }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-content {
        max-width: 100%;
        order: 1;
    }
    
    .about-image {
        order: 0;
    }
}

@media (max-width: 768px) {
    .hero-section-custom,
    .inheritance-hero-section {
        flex-direction: column;
    }
    
    .hero-left,
    .inheritance-hero-left {
        padding: 3rem 1.5rem;
    }
    
    .hero-title,
    .inheritance-hero-title {
        font-size: 2rem;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
}

/* タイル型カード（Service、Member、Work) */
.bg-white {
    background-color: #fff;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.overflow-hidden {
    overflow: hidden;
}

.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

.hover\:translate-y-\[-5px\]:hover {
    transform: translateY(-5px);
}

.relative {
    position: relative;
}

.w-full {
    width: 100%;
}

.min-h-\[600px\] {
    min-height: 600px;
}

.flex {
    display: flex;
}

.items-stretch {
    align-items: stretch;
}

.overflow-hidden {
    overflow: hidden;
}

.z-10 {
    z-index: 10;
}

.text-center {
    text-align: center;
}

.max-w-2xl {
    max-width: 42rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.bg-opacity-10 {
    --tw-bg-opacity: 0.1;
}

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

.font-medium {
    font-weight: 500;
}

.hover\:underline:hover {
    text-decoration: underline;
}

/* パターンライブラリとの統合 */
.pattern-section.py-20 {
  padding: 80px 0;
}

/* セクションに背景色とパターンを追加 */
#services.py-20 {
  position: relative;
  overflow: hidden;
  background-color: #f8fafc;
}

#services.py-20::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.3;
  z-index: 0;
}

/* グリッド調整 */
.grid.grid-cols-1.md\:grid-cols-2.lg\:grid-cols-3.gap-8 {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .grid.grid-cols-1.md\:grid-cols-2.lg\:grid-cols-3.gap-8 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .grid.grid-cols-1.md\:grid-cols-2.lg\:grid-cols-3.gap-8 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* カードスタイル改善 */
.bg-white.rounded-lg.shadow-md.overflow-hidden.transition-transform.hover\:translate-y-\[-5px\] {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.05);
}

.bg-white.rounded-lg.shadow-md.overflow-hidden.transition-transform.hover\:translate-y-\[-5px\]::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(to right, #4a90e2, #73b4ff);
  z-index: 1;
}

.bg-white.rounded-lg.shadow-md.overflow-hidden.transition-transform.hover\:translate-y-\[-5px\]:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* アイコンスタイル改善 */
.h-48.bg-primary.bg-opacity-10.flex.items-center.justify-center {
  height: auto;
  padding: 2.5rem 0;
  background-color: rgba(74, 144, 226, 0.05);
  position: relative;
}

.w-20.h-20.flex.items-center.justify-center.text-primary {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background-color: rgba(74, 144, 226, 0.1);
  color: #4a90e2;
  font-size: 36px;
  margin: 0 auto;
  transition: all 0.3s ease;
  border: 2px solid rgba(74, 144, 226, 0.2);
}

.bg-white.rounded-lg.shadow-md.overflow-hidden.transition-transform.hover\:translate-y-\[-5px\]:hover .w-20.h-20.flex.items-center.justify-center.text-primary {
  background-color: #4a90e2;
  color: white;
  transform: scale(1.05);
}

/* コンテンツ部分の調整 */
.p-6 {
  padding: 2rem;
  text-align: center;
}

.text-xl.font-bold.text-gray-800.mb-3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.3;
  color: #2a4365;
}

.text-gray-700.mb-4 {
  color: #4a5568;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.inline-flex.items-center.text-primary.font-medium.hover\:underline {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid #4a90e2;
  color: #4a90e2;
}

.inline-flex.items-center.text-primary.font-medium.hover\:underline:hover {
  background-color: #4a90e2;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

/* テキスト中央揃えのセクション見出し */
.text-center.mb-16 h2.text-3xl.font-bold.text-gray-800.mb-4 {
  font-size: 2.5rem;
  font-weight: bold;
  color: #2d3748;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.text-center.mb-16 h2.text-3xl.font-bold.text-gray-800.mb-4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: #4a90e2;
  border-radius: 2px;
}

.text-center.mb-16 p.text-gray-700.max-w-2xl.mx-auto {
  font-size: 1.125rem;
  color: #4a5568;
  margin-bottom: 2.5rem;
  line-height: 1.6;
  max-width: 800px;
}

/* Culture Section */
/* Culture Sectionのスタイルは special-patterns.css に移動しました */

/* ヘッダー固定時のスタイル */
.site-header {
    transition: transform 0.3s ease;
}

.site-header.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.site-header.header-hidden {
    transform: translateY(-100%);
}

.admin-bar .site-header.fixed-header {
    top: 32px;
}

.desktop-header {
    transition: all 0.3s ease;
}

.desktop-header.compact .header-top {
    padding: 0.5rem var(--container-padding, 1.5rem);
}

.desktop-header.compact .site-branding img {
    max-height: 50px;
    min-height: 40px;
}

.fixed-header + .site-main {
    padding-top: var(--header-height, 140px);
}

/* フッター幅の調整 */
.footer-main .container,
.footer-bottom .container {
    max-width: var(--container-width, 1800px);
    padding: 0 var(--container-padding, 1.5rem);
}

/* フッターグリッドの調整 */
.footer-grid {
    display: grid;
    gap: 3rem;
}

@media (min-width: 1600px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}

@media (max-width: 1600px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ページヒーローセクション（single.php, archive.php用） */
.page-hero {
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    padding: 5rem 0;
    margin-bottom: 3rem;
    overflow: hidden;
}

.page-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.page-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.page-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #17607b 0%, #298fc2 100%);
}

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

.page-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    color: #fff;
}

.page-hero-content .entry-header,
.page-hero-content .page-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.page-hero-content .entry-title,
.page-hero-content .page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-hero-content .entry-title a {
    color: #fff;
    text-decoration: none;
}

.page-hero-content .entry-title a:hover {
    opacity: 0.9;
}

.page-hero-content .entry-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.page-hero-content .archive-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

.page-hero-content .breadcrumbs {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.page-hero-content .breadcrumbs a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.page-hero-content .breadcrumbs a:hover {
    color: #ffec80;
    text-decoration: underline;
}

.page-hero-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    display: flex;
    justify-content: space-between;
    z-index: 2;
}

.page-hero-decoration .line-left,
.page-hero-decoration .line-right {
    width: 100px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.5);
}

/* グリッドシステム */
.row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-left: -1rem;
    margin-right: -1rem;
}

.col-md-8,
.col-md-4 {
    position: relative;
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .col-md-8 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }
    
    .col-md-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

/* シングル投稿コンテンツ */
.single-post-content {
    padding: 3rem 0;
    background-color: #fff;
}

.single-post-content .row {
    display: flex;
    gap: 2rem;
}

.single-post-content .col-md-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
}

.single-post-content .col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.single-post-content article {
    background-color: #fff;
    margin-bottom: 2rem;
}

.single-post-content .entry-content {
    padding: 2.5rem;
    background-color: #fff;
    line-height: 1.8;
    color: #4a5568;
}

.single-post-content .entry-content p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.single-post-content .entry-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2c3e50;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.single-post-content .entry-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.single-post-content .entry-content ul,
.single-post-content .entry-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.single-post-content .entry-content li {
    margin-bottom: 0.5rem;
}

.single-post-content .entry-footer {
    padding: 1.5rem 2.5rem;
    border-top: 1px solid #e2e8f0;
    background-color: #f8fafc;
    font-size: 0.9rem;
    color: #718096;
}

.single-post-content .entry-footer a {
    color: var(--primary-color, #599DD9);
    text-decoration: none;
}

.single-post-content .entry-footer a:hover {
    text-decoration: underline;
}

/* 投稿ナビゲーション */
.post-navigation {
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    flex: 1;
    max-width: 48%;
}

.post-navigation .nav-previous a,
.post-navigation .nav-next a {
    display: block;
    padding: 1rem;
    background-color: #f8fafc;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.post-navigation .nav-previous a:hover,
.post-navigation .nav-next a:hover {
    background-color: var(--primary-color, #599DD9);
    color: #fff;
    border-color: var(--primary-color, #599DD9);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.post-navigation .nav-subtitle {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.post-navigation .nav-title {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: #2c3e50;
}

.post-navigation .nav-previous a:hover .nav-title,
.post-navigation .nav-next a:hover .nav-title {
    color: #fff;
}

/* アーカイブコンテンツ */
.archive-content {
    padding: 3rem 0;
    background-color: #fff;
}

.archive-post {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 2.5rem;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.archive-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.archive-post .post-thumbnail {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: #f8fafc;
}

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

.archive-post:hover .post-thumbnail img {
    transform: scale(1.05);
}

.archive-post .post-content {
    padding: 2rem;
}

.archive-post .entry-header {
    margin-bottom: 1rem;
}

.archive-post .entry-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.archive-post .entry-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.2s;
}

.archive-post .entry-title a:hover {
    color: var(--primary-color, #599DD9);
}

.archive-post .entry-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 1rem;
}

.archive-post .entry-summary {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.archive-post .entry-summary p {
    margin-bottom: 1rem;
}

.archive-post .entry-footer {
    margin-top: 1.5rem;
}

.archive-post .read-more {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color, #599DD9);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.archive-post .read-more:hover {
    background-color: var(--header-bg, #17607b);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.archive-post .read-more::after {
    content: '→';
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.archive-post .read-more:hover::after {
    transform: translateX(4px);
}

/* ページネーション */
.posts-pagination {
    margin: 3rem 0;
    text-align: center;
}

.posts-pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.posts-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.posts-pagination .page-numbers:hover,
.posts-pagination .page-numbers.current {
    background-color: var(--primary-color, #599DD9);
    color: #fff;
    border-color: var(--primary-color, #599DD9);
}

.posts-pagination .page-numbers.dots {
    border: none;
    background-color: transparent;
    cursor: default;
}

.posts-pagination .page-numbers.dots:hover {
    background-color: transparent;
    color: #4a5568;
}

/* レスポンシブ対応 */
@media (max-width: 992px) {
    .page-hero {
        padding: 4rem 0 2.5rem;
        margin-bottom: 2.5rem;
    }
    
    .entry-title, .page-title {
        font-size: 2rem;
    }
    
    .archive-post .post-thumbnail {
        height: 200px;
    }
    
    .archive-post .post-content {
        padding: 1.25rem 1.5rem 1.75rem;
    }
    
    .archive-post .entry-title {
        font-size: 1.4rem;
    }
    
    .single-post-content .entry-content {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .row {
        flex-direction: column;
    }
    
    .col-md-8, .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .page-hero {
        padding: 3.5rem 0 2rem;
        margin-bottom: 2rem;
    }
    
    .entry-title, .page-title {
        font-size: 1.8rem;
    }
    
    .archive-post {
        margin-bottom: 2rem;
    }
    
    .archive-post .post-thumbnail {
        height: 180px;
    }
    
    .archive-post .entry-title {
        font-size: 1.3rem;
    }
    
    .single-post-content .entry-content {
        padding: 1.5rem;
    }
    
    .post-navigation .nav-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .post-navigation .nav-previous,
    .post-navigation .nav-next {
        max-width: 100%;
    }
    
    .widget-area {
        margin-top: 2rem;
    }
}

@media (max-width: 576px) {
    .page-hero {
        padding: 3rem 0 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .entry-title, .page-title {
        font-size: 1.6rem;
    }
    
    .entry-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .archive-post .post-thumbnail {
        height: 160px;
    }
    
    .archive-post .post-content {
        padding: 1rem 1.25rem 1.5rem;
    }
    
    .archive-post .entry-title {
        font-size: 1.2rem;
    }
    
    .single-post-content .entry-content {
        padding: 1.25rem;
    }
}
