/*
Theme Name: Tolerance Partners
Description: 環境コンサルティング会社のためのレスポンシブWordPressテーマ - Bootstrap 5使用
Version: 1.0
Author: Your Name
*/

/* Bootstrap 5とカスタムスタイル */
:root {
  --tolerance-green: #6c757d;
  --tolerance-light-green: #adb5bd;
  --tolerance-dark-green: #495057;
  --tolerance-dark-green-alt: #343a40;
  --tolerance-beige: #e9ecef;
  --tolerance-beige-dark: #dee2e6;
  --dark-gray: #343a40;
  --tolerance-blue: #2196F3;
  --tolerance-gray: #F5F5F5;
  --tolerance-white:#fff;
}

body {
  font-family: 'Noto Serif JP', serif;
  line-height: 1.6;
  scroll-padding-top: 90px; /* 固定ヘッダーの高さ + 余白 */
  scroll-behavior: smooth;
}

.btn-success {
  background-color: var(--tolerance-green);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 1rem;
  transition: background-color 0.3s ease;
  border-radius: 1000px;
}

img {
  max-width: 100%;
  height: auto;
}

/* ヘッダースタイル */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background-color: transparent;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.navbar {
  margin-top: 0px;
  padding-top: 0px;
  padding: 0px;
}

.navbar-brand img {
  height: 40px;
}

.navbar-nav .nav-link {
  color: var(--tolerance-green) !important;
  font-weight: 500;
  padding: 0.75rem 1rem !important;
  transition: all 0.3s ease;
  background-color: var(--tolerance-white);
}

.navbar-nav .nav-link:hover {
  opacity: .8;
  background-color: var(--tolerance-beige);
}

.navbar-nav .nav-link.contact-link {
  background-color: var(--tolerance-beige);
  color: var(--dark-gray) !important;
  padding: 10px 20px;
  transition: background-color 0.3s ease;
}

.navbar-nav .nav-link.contact-link:hover {
  background-color: var(--tolerance-beige);
}

/* メインビジュアル */
.hero-section {
  background:url('images/top_bg.svg'),url('images/main_bg.jpg?20250827_5');
  background-size: cover;
  background-position: center top,right top;
  background-attachment: scroll, fixed;
  min-height: 90vh;
  display: flex;
  align-items: center;
  color: white;
  position: relative;
  margin-top: 3.14rem;
  position: relative;
}


.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  background: var(--tolerance-light-green);
  width: auto;
  display: inline-block;
  padding: 2rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* サービス紹介セクション */
.intro-section {
    padding: 100px 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.5)), url('images/top_ttl_bg.jpg?20250902');
    background-size: cover;
    background-position: center;
    position: relative;
}


.intro-text {
    font-size: 1.3rem;
    color: var(--tolerance-dark-green);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
    font-weight: 600;
}

@media (max-width: 768px) {
  .intro-text {
    font-size: 1.1rem;
  }
}

/* サービスカード */
.services-section {
  padding: 80px 0;
}

.services-section h1 {
  color: var(--tolerance-dark-green);
}

.services-section h2 {
  color: var(--tolerance-dark-green);
}

.services-section small {
  color: var(--tolerance-green);
  font-size: .8rem;
}


/* お知らせセクション */
.news-section {
  padding: 80px 0;
  background: #f8f9fa;
}

.news-item {
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 15px;
  transition: box-shadow 0.3s ease;
}

.news-date {
  color: var(--tolerance-green);
  font-weight: bold;
  font-size: 0.9rem;
}

.news-category {
  background: var(--tolerance-green);
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  margin-left: 10px;
}

.news-flex {
  display: flex;
}

@media screen and (max-width: 768px) {
  .news-date {
    font-size: 0.8rem;
  }

  .news-category {
    font-size: 0.7rem;
  }

  .news-flex {
    display:block;
  }

  .ms-3 {
    margin-left: 0px !important;
  }
}

/*環境セクション*/
.commitment-section {
  background:url(images/top_txt_img_right.png?29) no-repeat, url(images/top_txt_img.png?20250829) no-repeat;
  background-position: right top,left center;
  min-height:350px;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--tolerance-dark-green);
}

.commitment-section p {
  text-shadow: 0px 0px 6px rgba(255,255,255,1),0px 0px 6px rgba(255,255,255,1),0px 0px 6px rgba(255,255,255,1);
}

/* フッター */
.site-footer {
  background: var(--tolerance-beige);
  color:var(--dark-gray);
  padding: 50px 0 20px;
}

.footer-logo img {
  height: 50px;
  margin-bottom: 20px;
}

.footer-contact p {
  margin-bottom: 5px;
  font-size: 0.9rem;
}

.footer-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.footer-links ul li {
  list-style: none;
}

.footer-links ul li a {
  color:var(--dark-gray);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 5px 0;
  transition: all 0.3s ease;
  position: relative;
}

.footer-links ul li a:hover {
  color: var(--tolerance-light-green);
}


.footer-links ul li a:hover::after {
  width: 100%;
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 30px;
  font-size: 0.8rem;
  opacity: 0.7;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .service-card h3 {
    font-size: 1.2rem;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 1.5rem;
  }
  
  .service-card-overlay {
    padding: 20px;
  }
}

/* ページヘッダー */
.page-header-section {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), url('images/top_ttl_bg.jpg?20250902');
  background-size: cover;
  background-position: bottom;
  padding: 100px 0 60px;
  color: white;
  text-align: center;
  position: relative;
  margin-top: 3.14rem;
}

/* アイキャッチ画像使用時の調整 */
.page-header-section[style*="background-image"] {
  background-attachment: fixed;
}

.page-header-section[style*="background-image"] h1,
.page-header-section[style*="background-image"] .subtitle,
.page-header-section[style*="background-image"] .breadcrumb-item {
  text-shadow: 2px 2px 6px rgba(0,0,0,0.5);
}

.page-header-section h1 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: var(--tolerance-green);
}

.page-header-section .subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.page-breadcrumb {
  background: rgba(73, 137, 111, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 25px;
  padding: 10px 20px;
  display: inline-block;
}

.page-breadcrumb .breadcrumb {
  margin: 0;
  background: none;
  padding: 0;
}

.page-breadcrumb .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.page-breadcrumb .breadcrumb-item a:hover {
  color: white;
}

.page-breadcrumb .breadcrumb-item.active {
  color: white;
}

.page-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.6);
}

/* ページコンテンツ */
.page-content-wrapper {
  padding: 60px 0;
  background: #f8f9fa;
  min-height: 60vh;
}

.page-content-inner {
  background: white;
  padding: 40px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* 日付・カテゴリー表示 */
.entry-meta {
  background: rgba(108, 117, 125, 0.1);
  border-radius: 25px;
  padding: 10px 20px;
  display: inline-block;
  margin-bottom: 20px;
}

/* エントリーコンテンツのスタイリング */
.entry-content {
  line-height: 1.8;
  color: #333;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  color: var(--tolerance-dark-green-alt);
  margin: 2rem 0 1rem 0;
  font-weight: 700;
  position: relative;
}

.entry-content h1 {
  font-size: 2.2rem;
  border-bottom: 3px solid var(--tolerance-beige-dark);
  padding-bottom: 10px;
}

.entry-content h1:first-child {
  margin-top: 0;
  padding-top: 0;
}

.entry-content h2 {
  font-size: 1.8rem;
  position: relative;
  padding-left: 20px;
}

.entry-content h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(135deg, var(--tolerance-green), var(--tolerance-light-green));
  border-radius: 2px;
}

.entry-content h3 {
  font-size: 1.5rem;
  padding: 10px 20px 0px 0px;
  margin-top: 1rem;
  border-radius: 0 8px 8px 0;
}

.entry-content h4 {
  font-size: 1.3rem;
  color: var(--tolerance-green);
  position: relative;
  padding-bottom: 8px;
}

.entry-content h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--tolerance-green);
}

.entry-content h5,
.entry-content h6 {
  font-size: 1.1rem;
  color: var(--tolerance-dark-green);
}

.entry-content p {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.8;
}

/* リストのスタイリング */
.entry-content ul,
.entry-content ol {
  margin: .5rem 0;
  padding-left: 0;
  list-style: none;
  margin-bottom: 2rem;
}

.entry-content ul li,
.entry-content ol li {
  position: relative;
  padding: 8px 0 8px 30px;
  margin-bottom: 8px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.entry-content ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 8px;
  color: var(--tolerance-green);
  font-weight: bold;
  font-size: 1.1rem;
}

.entry-content ol {
  counter-reset: custom-counter;
}

.entry-content ol li {
  counter-increment: custom-counter;
}

.entry-content ol li::before {
  content: counter(custom-counter);
  position: absolute;
  left: 0;
  top: 8px;
  background: var(--tolerance-green);
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
}

/* 引用のスタイリング */
.entry-content blockquote {
  background: #f8f9fa;
  border-left: 5px solid var(--tolerance-green);
  margin: 2rem 0;
  padding: 20px 30px;
  font-style: italic;
  position: relative;
  border-radius: 0 10px 10px 0;
}

.entry-content blockquote::before {
  content: "\201C";
  font-size: 4rem;
  color: var(--tolerance-green);
  position: absolute;
  top: -10px;
  left: 10px;
  opacity: 0.3;
}

.entry-content blockquote p {
  margin-bottom: 0;
  font-size: 1.1rem;
}

/* テーブルのスタイリング */
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  overflow: hidden;
}

.entry-content table th {
  background: var(--tolerance-beige);
  color: var(--dark-gray);
  padding: 15px;
  text-align: left;
  font-weight: 600;
  border-bottom: 1px solid #eee;
}

.entry-content table td {
  padding: 15px;
  border-bottom: 1px solid #eee;
}

.entry-content table tr:hover {
  background-color: rgba(108, 117, 125, 0.05);
}

/* 強調テキスト */
.entry-content strong {
  color: var(--tolerance-dark-green);
  font-weight: 700;
}

.entry-content em {
  color: var(--tolerance-green);
  font-style: normal;
  background: linear-gradient(transparent 60%, rgba(108, 117, 125, 0.3) 60%);
}

/* リンクのスタイリング */
.entry-content a {
  color: var(--tolerance-green);
  text-decoration: none;
  position: relative;
  font-weight: 500;
  transition: color 0.3s ease;
}

.entry-content a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--tolerance-green);
  transition: width 0.3s ease;
}

.entry-content a:hover {
  color: var(--tolerance-dark-green);
}

.entry-content a:hover::after {
  width: 100%;
}

/* 画像のスタイリング */
.entry-content img {
  max-width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

/* Snow Monkey Form - ボタンスタイリング */
.smf-action .smf-button-control__control {
  background: linear-gradient(135deg, var(--tolerance-green), var(--tolerance-light-green));
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
  position: relative;
  overflow: hidden;
  min-width: 180px;
  text-transform: none;
  letter-spacing: 0.5px;
}

.smf-action .smf-button-control__control:hover {
  background: linear-gradient(135deg, var(--tolerance-dark-green), var(--tolerance-green));
  box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
  transform: translateY(-2px);
}

.smf-action .smf-button-control__control:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(108, 117, 125, 0.3);
}

.smf-action .smf-button-control__control:focus {
  outline: none;
  box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3), 0 0 0 3px rgba(108, 117, 125, 0.2);
}

.smf-action .smf-button-control__control:disabled {
  background: linear-gradient(135deg, #ccc, #999);
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ボタンのローディング状態 */
.smf-action .smf-button-control__control.loading {
  position: relative;
  color: transparent;
}

.smf-action .smf-button-control__control.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: button-spin 1s linear infinite;
}

@keyframes button-spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ボタンのアイコン対応 */
.smf-action .smf-button-control__control .icon {
  margin-right: 8px;
  font-size: 1rem;
}

.smf-action .smf-button-control__control .icon:last-child {
  margin-right: 0;
  margin-left: 8px;
}

/* セカンダリボタン（リセットボタンなど） */
.smf-action .smf-button-control__control.secondary {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  color: var(--tolerance-dark-green);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 2px solid var(--tolerance-green);
}

.smf-action .smf-button-control__control.secondary:hover {
  background: linear-gradient(135deg, var(--tolerance-green), var(--tolerance-light-green));
  color: white;
  box-shadow: 0 6px 20px rgba(108, 117, 125, 0.3);
}

/* 危険なアクション（削除ボタンなど） */
.smf-action .smf-button-control__control.danger {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.smf-action .smf-button-control__control.danger:hover {
  background: linear-gradient(135deg, #c0392b, #a93226);
  box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

/* ボタンサイズバリエーション */
.smf-action .smf-button-control__control.large {
  padding: 18px 40px;
  font-size: 1.2rem;
  min-width: 220px;
}

.smf-action .smf-button-control__control.small {
  padding: 10px 20px;
  font-size: 0.9rem;
  min-width: 120px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .smf-action .smf-button-control__control {
    padding: 12px 25px;
    font-size: 1rem;
    min-width: 150px;
  }
  
  .smf-action .smf-button-control__control.large {
    padding: 15px 30px;
    font-size: 1.1rem;
    min-width: 180px;
  }
}

@media (max-width: 480px) {
  .smf-action .smf-button-control__control {
    width: 100%;
    min-width: auto;
    padding: 12px 20px;
    font-size: 0.95rem;
  }
  
  .smf-action .smf-button-control__control.large {
    padding: 15px 25px;
    font-size: 1rem;
  }
  
  .smf-action .smf-button-control__control.small {
    padding: 10px 15px;
    font-size: 0.85rem;
  }
}

/* ボタングループ（複数ボタンが並ぶ場合） */
.smf-action {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2rem;
}

@media (max-width: 480px) {
  .smf-action {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 768px) {
  .page-header-section {
    padding: 100px 0 40px;
  }
  
  .page-header-section h1 {
    font-size: 2rem;
  }
  
  .page-content-inner {
    padding: 30px 20px;
  }
  
  .footer-links ul {
    flex-direction: column;
    gap: 10px;
  }
  
  .footer-links ul li a {
    font-size: 0.9rem;
  }
}
