/* ベースとなるリセットとフォント */
@import url("https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css");
@import url("slide.css");
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;700&family=Zen+Antique+Soft&display=swap");
@import url("https://cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.css");

/* カスタムプロパティ（変数）の定義 */
:root {
  --font-primary: "Zen Antique Soft", serif;
  --font-secondary: "Inter", sans-serif;
  --spacing-base: 1rem;
  --transition-base: 0.3s ease;
  --global-space: 10vw;
  /*サイト内の余白の一括管理用。画面幅100%＝100vwです。*/
}

/*animation1のキーフレーム設定（開閉ブロックのアニメーションに使用）
---------------------------------------------------------------------------*/
@keyframes animation1 {
  0% {
    left: -200px;
  }

  100% {
    left: 0px;
  }
}

@keyframes opa1 {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* 基本要素のスタイル */
* {
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  font-family: var(--font-primary);
  line-height: 1.6;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-overflow-scrolling: touch;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border: none;
  /* 画像読み込み最適化 */
  image-rendering: -webkit-optimize-contrast;
  /* 画像のレンダリング最適化（必要な場合のみ） */
}

/* ロゴ画像は max-width の制限を受けないように */
.logo {
  max-width: none;
}

/* ホバー効果がある画像のみ will-change を適用 */
.blog-content img,
.news-item img {
  will-change: transform;
  transition: transform 0.3s ease;
}

video {
  max-width: 100%;
}

iframe {
  width: 100%;
}

section {
  padding: 3vw 0;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* リンクとボタンのスタイル */
a {
  text-decoration: none;
  color: inherit;
  transition: opacity var(--transition-base);
}

a:hover {
  opacity: 0.8;
}

/* blog-contentのaタグは特別なスタイルを適用 */
a.blog-content:hover {
  opacity: 1;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--focus-color) !important;
  outline: -webkit-focus-ring-color auto 5px !important;
}

/* アクセシビリティ用ユーティリティ */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* レイアウト構造 */
.home {
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.main-content {
  max-width: 1512px;
  width: 100%;
  max-width: 100vw;
  position: relative;
  padding-top: 80px;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* ヘッダーとナビゲーション */
.header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  overflow: visible;
  /* ロゴが切れないように */
}

.header-bar {
  background-color: #8FAA73;
  /* 新案の薄緑 */
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
}

.logo-container {
  display: flex;
  align-items: center;
  padding: 0 40px;
  overflow: visible;
  /* ロゴが切れないように */
  min-width: 0;
  /* flexboxでの縮小を許可 */
}

.logo {
  width: 200px;
  height: auto;
  transition: width 0.3s ease;
}

.logo-icon {
  width: 50px;
  height: 50px;
  margin-left: 15px;
  transition: all 0.3s ease;
}

/* セカンダリ水平ナビ */
.site-nav {
  background: rgba(0, 0, 0, 0.04);
  backdrop-filter: saturate(120%);
}

.site-nav-list {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 6px 24px;
  list-style: none;
}

.site-nav-link {
  color: #2f3a24;
  font-family: var(--font-secondary);
  font-size: 13px;
  position: relative;
  padding: 6px 10px;
}

.site-nav-link.is-active {
  color: #1f2716;
  font-weight: 700;
}

.site-nav-list li+li .site-nav-link::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 12px;
  background: rgba(0, 0, 0, 0.2);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.main-navigation {
  display: flex;
  justify-content: flex-end;
  padding: var(--spacing-base);
  gap: var(--spacing-base);
}

.nav-link {
  display: flex;
  width: auto;
  align-items: center;
  justify-content: center;
  padding: 6px 15px;
  background-color: #9BB181;
  border-radius: 12px;
  font-family: var(--font-secondary);
  font-size: 13px;
  transition: all 0.3s ease;
  min-width: 100px;
  flex-shrink: 1;
}

.nav-link:hover {
  transform: scale(1.1);
}

.nav-link-active {
  background-color: #ffffff;
}

/* SNSリスト */
.sns-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: flex-end;
  gap: 15px;
}

.sns-list a {
  color: #333;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.sns-list a:hover {
  color: #007bff;
}

/* ヘッダートップ */
#header-top {
  background: #fff;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
}

#header-top div {
  height: 50px;
  padding-left: var(--global-space);
  padding-right: var(--global-space);
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

/* ヒーローセクション */
.hero {
  position: relative;
  width: 100%;
  max-width: 100vw;
  height: 80vh;
  min-height: 400px;
  /* 最小高さを確保 */
  overflow: hidden;
  box-sizing: border-box;
}

.hero-slider {
  width: 100%;
  height: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.slide-item {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.video-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  display: block;
  /* パフォーマンス最適化 */
  will-change: auto;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  /* 動画のレンダリング最適化 */
  image-rendering: auto;
}


.hero-content {
  position: absolute;
  bottom: 10%;
  right: 10%;
  left: auto;
  transform: none;
  z-index: 2;
  text-align: right;
  color: #fff;
  padding: 1.5rem 2rem;
  border-radius: 10px;
  animation: fadeIn 1s ease-out;
  max-width: 90%;
  width: auto;
  min-width: 0;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
  /* LINEブラウザ対応 */
  margin: 0;
}

.hero-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.cta-button {
  background: rgba(155, 177, 129, 1);
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 30px;
  display: inline-block;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background: #fff;
  color: rgba(155, 177, 129, 1);
  transform: translateY(-2px);
}

/* 区切り（スクロール） */
.divider {
  background: #cfd6c8;
  background-image: url("../images/haikei.png");
  background-size: cover;
  background-position: center;
  height: 220px;
  position: relative;
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  top: 40px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #4e5b45;
  font-family: var(--font-secondary);
}

@keyframes bounceDown {

  0%,
  100% {
    transform: translate(-50%, 0);
  }

  50% {
    transform: translate(-50%, 8px);
  }
}

.scroll-indicator .arrow {
  width: 10px;
  height: 10px;
  border-right: 2px solid #4e5b45;
  border-bottom: 2px solid #4e5b45;
  transform: rotate(45deg);
  animation: bounceDown 1.6s infinite ease-in-out;
}

.scroll-indicator .label {
  font-size: 10px;
  letter-spacing: .2em;
}

/* タイル型ヒーロー */
.hero-tiles .hero-tiles-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 100%;
}

.hero-tiles .hero-tile {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-tiles .hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  text-align: center;
  color: #ffffff;
}

.hero-tiles .hero-heading {
  font-size: 3rem;
  line-height: 1.4;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.hero-tiles .hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  color: #666;
  font-family: var(--font-secondary);
  font-size: 12px;
  letter-spacing: 0.2em;
}

/* イントロ */
.about-intro {
  background-color: #ffffff;
  padding: 80px 20px;
}

.about-intro-body {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  color: #333;
}

/* 私たちができること */
.abilities {
  background-color: #6f8f92;
  padding: 80px 20px;
}

.abilities .section-title {
  color: #ffffff;
}

.abilities-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.ability-card {
  background: rgba(255, 255, 255, 0.08);
  padding: 0;
}

.ability-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.ability-card figcaption {
  color: #ffffff;
  text-align: center;
  padding: 12px 8px;
  font-family: var(--font-secondary);
}

/* サービス紹介（テキスト） */
.services-intro {
  background: #ffffff;
  padding: 80px 20px;
}

.services-intro-list {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  gap: 1.25rem;
}

.services-intro-item h3 {
  font-weight: 700;
  margin-bottom: 6px;
}

.services-intro-item p {
  color: #555;
}

/* FAQ */
.faq {
  padding: 60px 20px;
}

.faq .section-title {
  margin-bottom: 24px;
}

.faq-list dl {
  max-width: 900px;
  margin: 0 auto;
}

.faq-list dt {
  font-weight: 700;
  margin-top: 14px;
}

.faq-list dd {
  color: #555;
  margin-left: 0;
  margin-bottom: 8px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .hero {
    margin-top: 60px;
    /* ヘッダーの高さに応じて調整 */
    padding: 2rem 1rem;
  }

  .hero-content {
    right: 10%;
    left: auto;
    transform: none;
    width: auto;
    max-width: 90%;
    text-align: right;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  footer img {
    width: 120px;
    /* ロゴサイズを小さく */
    height: auto;
    /* アスペクト比を維持 */
  }
}

/* コンテンツセクション共通 */
.news,
.blog {
  position: relative;
  padding: 50px var(--spacing-base);
  margin: var(--spacing-base) 0;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
}

.news {
  background-color: #EEECE7;
}

.blog {
  background-color: #fff;
  padding-bottom: 130px;
}

.section-title {
  font-size: 32px;
  margin-bottom: 30px;
  text-align: center;
}

/* イントロセクション */
.intro {
  padding: 50px var(--spacing-base);
}

.intro-content {
  font-family: var(--font-secondary);
}

.intro-content p {
  font-size: 1.1rem;
  line-height: 2;
  margin-bottom: 1.5rem;
  font-family: var(--font-secondary);
  color: #333;
}

.intro-content p:last-child {
  margin-bottom: 1rem;
}

.content-list {
  display: grid;
  gap: 30px;
  margin-bottom: 30px;
}

.content-item {
  display: grid;
  grid-template-columns: 211px 1fr;
  gap: 30px;
  align-items: start;
}

.content-image {
  width: 211px;
  height: 136px;
  background-color: #d9d9d9;
}

.content-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.content-date {
  font-size: 16px;
  opacity: 0.7;
}

.content-title {
  font-size: 24px;
}

/* お問い合わせセクション */
.contact {
  background-color: #EEECE7;
  padding: 50px var(--spacing-base);
  margin: var(--spacing-base) 0;
  padding-bottom: 100px;
  position: relative;
}

.contact-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ボタンの位置をさらに上に調整 */
.contact-button-container {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 30px;
}

.contact-form-button {
  display: inline-block;
  background-color: #9BB181;
  color: #fff;
  padding: 1.2rem 3rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: var(--font-primary);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(155, 177, 129, 0.3);
  letter-spacing: 0.05em;
}

.contact-form-button:hover {
  background-color: #7a9065;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(155, 177, 129, 0.4);
  opacity: 1;
}

.contact-info {
  font-size: 24px;
  line-height: 1.6;
}

.contact-info dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem;
}

.qr-code {
  width: 207px;
  height: 203px;
  background-color: #ffffff;
  padding: 10px;
}

.line-qr {
  width: 181px;
  height: 181px;
  object-fit: cover;
}

/* レスポンシブ対応 */
@media (max-width: 849px) {
  .contact {
    padding: 30px var(--spacing-base) 80px;
  }

  .contact-info {
    font-size: 16px;
    /* フォントサイズを縮小 */
  }

  .contact-info dl {
    gap: 0.3rem;
    /* 項目間の間隔を縮小 */
  }

  .qr-code {
    width: 140px;
    /* QRコードの幅を縮小 */
    height: 140px;
    /* QRコードの高さを縮小 */
    padding: 8px;
  }

  .line-qr {
    width: 124px;
    /* 内部の画像サイズも調整 */
    height: 124px;
  }

  .contact-container>div:first-child {
    gap: 1rem;
    /* フレックスボックスの間隔を縮小 */
  }

  .contact-button-container {
    margin-top: 1.5rem;
  }

  .contact-form-button {
    padding: 1rem 2.5rem;
    font-size: 1rem;
  }
}

/* さらに小さい画面サイズ用 */
@media (max-width: 480px) {
  .contact-info {
    font-size: 14px;
    /* さらにフォントサイズを縮小 */
  }

  .qr-code {
    width: 120px;
    /* さらにQRコードを縮小 */
    height: 120px;
    padding: 6px;
  }

  .line-qr {
    width: 108px;
    height: 108px;
  }

  .contact-container>div:first-child {
    gap: 0.8rem;
    /* さらに間隔を縮小 */
  }

  .contact-form-button {
    padding: 0.9rem 2rem;
    font-size: 0.95rem;
    width: 90%;
    max-width: 300px;
  }
}

/* フッター */
.footer {
  background-color: rgba(155, 177, 129, 0.76);
  padding: var(--spacing-base) 0;
  text-align: center;
  width: 100%;
  font-family: var(--font-secondary);
}

.footer-logo {
  max-width: 598px;
  margin: 0 auto 20px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition: opacity 0.3s ease;
  font-family: var(--font-secondary);
}

.footer-links a:hover {
  opacity: 0.7;
  text-decoration: underline;
}

.copyright {
  font-size: 16px;
  text-align: center;
}

/* フッターリンクのレスポンシブ対応 */
@media (max-width: 768px) {
  .footer-links {
    gap: 20px;
    margin-bottom: 15px;
  }

  .footer-links a {
    font-size: 13px;
  }
}

/* ボタンスタイル */
.cta-button,
.more-button {
  display: inline-block;
  padding: 10px 40px;
  border-radius: 22px;
  text-align: center;
  transition: background-color var(--transition-base);
  font-size: 18px;
}

.more-button {
  position: absolute;
  right: 20px;
  bottom: 0;
}

/* .news .more-button と .blog .more-button の定義は後述の共通スタイルに統合 */

/* トピックセクション */
.topic {
  position: relative;
  overflow: hidden;
}

.topic-slider {
  display: flex;
  transition: transform 0.5s ease;
}

.slide-item video,
.slide-item img {
  width: 100%;
  height: 100vh;
  object-fit: cover;
}

.topic-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: center;
  z-index: 2;
}

/* ブロググリッド */
.blog-categories {
  max-width: 1200px;
  margin: 0 auto 24px;
}

.blog-categories ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.blog-categories a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: #e7edde;
  color: #2f3a24;
  font-family: var(--font-secondary);
  font-size: 14px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.blog-categories a:hover {
  background: #d5e1c6;
  transform: translateY(-2px);
}

.blog-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 0 20px 60px;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* タブレットサイズ：2列 */
@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 0 20px 60px;
  }
}

/* モバイルサイズ：1列 */
@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 15px 60px;
  }
}

/* iPhone 13 miniなど小さい画面対応 */
@media (max-width: 375px) {
  .blog-grid {
    padding: 0 10px 60px;
    gap: 1rem;
  }
}

.blog-article {
  display: contents;
  /* グリッドの子要素として直接配置 */
}

.blog-grid .blog-content,
section.blog .blog-content,
a.blog-content {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 1rem !important;
  padding: 0;
  border-radius: 8px;
  transition: transform 0.3s ease;
  text-decoration: none;
  color: inherit;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.blog-grid .blog-content:hover,
section.blog .blog-content:hover,
a.blog-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.blog-content .blog-thumbnail,
.blog-grid .blog-thumbnail,
section.blog .blog-thumbnail {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  aspect-ratio: 16 / 9;
  background-color: #f0f0f0;
  overflow: hidden;
  position: relative;
  border-radius: 8px 8px 0 0;
  box-sizing: border-box;
  flex: 0 0 auto !important;
}

.blog-thumbnail img,
.blog-thumbnail video {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* アスペクト比を維持するためのフォールバック（aspect-ratioがサポートされていない場合） */
@supports not (aspect-ratio: 16 / 9) {
  .blog-thumbnail::before {
    content: '';
    display: block;
    padding-bottom: 56.25%;
    /* 16:9 = 56.25% */
  }
}

/* 画像のデフォルトスタイル */
.blog-thumbnail img {
  opacity: 1;
}

/* 動画のデフォルトスタイル（動画がある場合のみ） */
.blog-thumbnail video {
  opacity: 0;
}

/* 画像のみの場合：ホバー時にスケールアップ効果（デフォルト動作） */
.blog-grid .blog-content:hover .blog-thumbnail img,
section.blog .blog-content:hover .blog-thumbnail img {
  transform: scale(1.05);
}

/* 動画と画像の組み合わせの場合：ホバー時に動画を表示、画像を非表示 */
.blog-grid .blog-content:hover .blog-thumbnail video,
section.blog .blog-content:hover .blog-thumbnail video {
  opacity: 1;
}

/* :has()セレクタがサポートされている場合のみ適用（動画がある場合の特別な動作） */
@supports selector(:has(*)) {

  .blog-grid .blog-content:hover .blog-thumbnail:has(video) img,
  section.blog .blog-content:hover .blog-thumbnail:has(video) img {
    opacity: 0;
    transform: none;
  }
}

.blog-content .blog-title,
.blog-grid .blog-title,
section.blog .blog-title {
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0;
  padding: 1rem;
  flex: 1 1 auto !important;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  color: #333;
  display: block;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* タブレットサイズでのタイトル調整 */
@media (max-width: 1024px) {

  .blog-content .blog-title,
  .blog-grid .blog-title,
  section.blog .blog-title {
    font-size: 1rem;
    padding: 0.875rem;
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* 小さいタブレット対応 */
@media (max-width: 480px) {
  .blog-grid {
    padding: 0 10px 60px;
  }

  .blog-content .blog-title,
  .blog-grid .blog-title,
  section.blog .blog-title {
    font-size: 0.95rem;
    padding: 0.75rem;
  }
}

/* タブレットサイズでのタイトル調整 */
@media (max-width: 1024px) {

  .blog-content .blog-title,
  .blog-grid .blog-title,
  section.blog .blog-title {
    font-size: 1rem;
    padding: 0.875rem;
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* 小さいタブレット対応 */
@media (max-width: 480px) {
  .blog-grid {
    padding: 0 10px 60px;
  }

  .blog-content .blog-title,
  .blog-grid .blog-title,
  section.blog .blog-title {
    font-size: 0.95rem;
    padding: 0.75rem;
  }
}

/* .blog .more-button の定義は後述の共通スタイルに統合 */

/* レスポンシブデザイン */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 1200px) {
  .logo {
    width: 180px;
  }

  .logo-icon {
    width: 45px;
    height: 45px;
  }

  .nav-link {
    padding: 6px 12px;
    font-size: 12px;
  }
}

@media (max-width: 1024px) {
  .logo {
    width: 160px;
  }

  .logo-icon {
    width: 40px;
    height: 40px;
  }

  .nav-link {
    font-size: 11px;
    padding: 5px 10px;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 5px 10px;
  }

  .logo {
    width: 140px;
  }

  .logo-icon {
    width: 35px;
    height: 35px;
    margin-left: 8px;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
    padding: 8px 0;
  }

  .nav-link {
    padding: 5px 12px;
    font-size: 12px;
  }

  footer img {
    width: 300px;
    /* ロゴサイズを小さく */
    height: auto;
    /* アスペクト比を維持 */
  }
}

@media (max-width: 480px) {
  .header {
    padding: 3px 8px;
  }

  .logo {
    width: 120px;
  }

  .logo-icon {
    width: 30px;
    height: 30px;
    margin-left: 5px;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-link {
    width: 100%;
    margin: 3px 0;
    padding: 5px 10px;
    font-size: 11px;
  }
}

/* お知らせセクション */
.news {
  background-color: #EEECE7;
  padding: 40px var(--spacing-base);
  margin: var(--spacing-base) 0;
  position: relative;
}

/* PC表示でお知らせセクションを中央寄せ */
@media (min-width: 1024px) {
  .news {
    padding: 50px 10vw;
  }
  
  .news-list {
    max-width: 900px;
  }
}

.news-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding-bottom: 60px;
  /* もっと見るボタンの空間確保 */
}

.news-list {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-bottom: 40px;
}

.news-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 0.75rem;
  border-radius: 8px;
  transition: transform 0.3s ease;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.news-item:hover {
  transform: translateX(10px);
}

.news-item:visited {
  color: inherit;
}

.news-item.featured {
  grid-column: 1;
  grid-row: 1 / span 3;
}

.news-thumbnail {
  flex: 0 0 150px;
  width: 150px;
  height: 90px;
  background-color: #D9D9D9;
  overflow: hidden;
  border-radius: 4px;
}

.featured .news-thumbnail {
  flex: 0 0 300px;
  width: 300px;
  height: 300px;
}

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

.news-content {
  flex: 1;
  min-width: 0;
}

.news-date {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.news-title {
  font-size: 1.2rem;
  line-height: 1.4;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.featured .news-title {
  font-size: 1.8rem;
  line-height: 1.5;
}


/* .news .more-button の定義は後述の共通スタイルに統合 */

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .news-item {
    flex-direction: row;
    /* 横並びを維持 */
    padding: 0.8rem;
  }

  .news-thumbnail {
    width: 80px;
    /* モバイルでは少し小さく */
    height: 48px;
    flex: 0 0 80px;
  }

  .news-title {
    font-size: 0.9rem;
  }

  .news .more-button {
    right: 50%;
    transform: translateX(50%);
    width: 200px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .news-item {
    gap: 1rem;
  }

  .news-thumbnail {
    width: 60px;
    /* さらに小さく */
    height: 36px;
    flex: 0 0 60px;
  }

  .news-date {
    font-size: 0.8rem;
  }

  .news-title {
    font-size: 0.85rem;
  }
}

/* 重複定義を削除済み */

/* レスポンシブ対応 */
@media (max-width: 768px) {

  .news,
  .blog {
    padding: 30px 15px;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  .news-item {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .blog-grid .blog-content,
  section.blog .blog-content,
  a.blog-content {
    flex-direction: column !important;
    gap: 1rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .news-thumbnail {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    max-width: 100%;
    box-sizing: border-box;
  }

  .blog-thumbnail {
    width: 100% !important;
    flex: 0 0 auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 16/9;
    border-radius: 8px 8px 0 0;
    box-sizing: border-box;
  }

  .blog-title {
    font-size: 0.95rem;
    padding: 0.875rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .more-button {
    right: 50%;
    transform: translateX(50%);
    text-align: center;
    width: 200px;
    max-width: calc(100% - 40px);
    box-sizing: border-box;
  }
}

/* iPhone 13 miniなど小さい画面対応 */
@media (max-width: 375px) {

  .news,
  .blog {
    padding: 20px 10px;
  }

  .blog-grid {
    padding: 0 10px 60px;
  }

  .blog-title {
    font-size: 0.9rem;
    padding: 0.75rem;
  }

  .blog-content .blog-title {
    font-size: 0.9rem !important;
  }
}

.services-hero {
  text-align: center;
  padding: 4rem 2rem;
  background-color: #f5f5f5;
}

.services-list {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-item {
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background-color: white;
}

.service-item h2 {
  margin-bottom: 1rem;
  color: #333;
}

/* もっと見るボタンの共通スタイル */
.news .more-button,
.blog .more-button {
  position: absolute;
  right: calc(var(--spacing-base) + 150px);
  bottom: calc(var(--spacing-base) + 30px);
  background-color: #B7C4A9;
  color: #fff;
  padding: 0.8rem 2.5rem;
  border-radius: 50px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {

  .news .more-button,
  .blog .more-button {
    right: 50%;
    transform: translateX(50%);
    width: 200px;
    text-align: center;
    bottom: var(--spacing-base);
  }
}

/* ハンバーガーメニュー */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1000;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: #333;
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* ブレイクポイントを849pxに変更 */
@media (max-width: 849px) {
  .header {
    padding: 10px var(--spacing-base);
  }

  .logo-container {
    flex-direction: row;
    align-items: center;
    padding: 0 !important;
    min-width: 0;
    width: auto;
    overflow: visible !important;
    /* ロゴが切れないように */
  }

  .logo-container .logo {
    display: block !important;
    width: 150px !important;
    max-width: 150px !important;
    min-width: 150px !important;
    height: auto !important;
    flex-shrink: 0 !important;
  }

  .logo-icon {
    width: 40px;
    height: 40px;
    margin-left: 10px;
  }

  .hamburger {
    display: block;
    margin-left: auto;
  }

  .navigation {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: #9BB181F2;
    padding: 80px 20px 20px;
    transition: right 0.3s ease;
    z-index: 999;
  }

  .navigation.active {
    right: 0;
  }

  .nav-links {
    flex-direction: column;
    gap: 20px;
  }

  .nav-link {
    width: 100%;
    text-align: center;
    font-size: 16px;
    padding: 12px 20px;
  }

  /* ハンバーガーメニューがアクティブな時の表示 */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

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

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  .contact {
    padding-bottom: 80px;
  }

  .contact-button-container {
    margin-top: 0.25rem;
  }

  .main-content {
    padding-top: 60px;
  }
}

/* レスポンシブ対応 */
@media (max-width: 849px) {
  .main-content {
    padding-top: 60px;
    /* スマホ表示時はヘッダーが小さくなるため調整 */
  }
}

/* 記事コンテンツ用のレスポンシブスタイル */
@media (max-width: 768px) {

  /* 記事コンテンツのコンテナ */
  article.about-intro>div {
    padding: 0 16px !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  /* 記事の見出し */
  article.about-intro h1.section-title {
    font-size: 1.8rem !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  article.about-intro h2.section-title {
    font-size: 1.5rem !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* 記事本文 */
  article.about-intro p,
  article.about-intro li {
    font-size: 1rem !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* 記事ヘッダー */
  article.about-intro header p {
    font-size: 1rem !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}

/* レスポンシブ対応のスタイル調整（スマホ） */
@media (max-width: 768px) {
  .hero {
    margin-top: 60px;
    /* ヘッダーの高さに応じて調整 */
    padding: 0;
    height: 60vh;
    min-height: 300px;
    /* 最小高さを確保 */
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
  }

  .hero-content {
    position: absolute;
    bottom: 24px;
    right: 20px;
    left: auto;
    transform: none;
    padding: 1rem 1.25rem;
    max-width: calc(100% - 20px);
    width: auto;
    text-align: right;
    margin: 0;
    box-sizing: border-box;
    /* LINEブラウザ対応 */
    overflow-wrap: break-word;
    word-break: keep-all;
    /* スマホでは下寄せ＋右揃えで安定 */
    top: auto;
  }

  .hero-title {
    font-size: 1.4rem !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
    margin-bottom: 1rem;
    width: 100%;
    box-sizing: border-box;
    /* LINEブラウザ対応 */
    hyphens: auto;
    -webkit-hyphens: auto;
  }

  .cta-button {
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
    display: inline-block;
  }
}

/* iPhone 13 miniなど小さい画面対応 */
@media (max-width: 375px) {
  .hero {
    height: 50vh;
    min-height: 220px;
    /* 最小高さを確保 */
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    position: relative;
  }

  .hero-content {
    position: absolute;
    bottom: 20px;
    right: 16px;
    left: auto;
    transform: none;
    padding: 0.875rem 1rem;
    max-width: calc(100% - 16px);
    width: auto;
    text-align: right;
    margin: 0;
    box-sizing: border-box;
    /* LINEブラウザ対応 */
    overflow: visible;
    top: auto;
  }

  .hero-title {
    font-size: 1.25rem !important;
    margin-bottom: 0.875rem;
    line-height: 1.35;
    width: 100%;
    box-sizing: border-box;
    /* LINEブラウザ対応 */
    word-break: keep-all;
    overflow-wrap: break-word;
  }

  .cta-button {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    white-space: normal;
    max-width: 100%;
    box-sizing: border-box;
    display: inline-block;
  }

  /* intro-contentのレスポンシブ対応 */
  .intro-content p {
    font-size: 1rem !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* blog-titleのレスポンシブ対応 */
  .blog-title {
    font-size: 1rem !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.5;
  }

  /* news-titleのレスポンシブ対応 */
  .news-title {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: normal;
  }

  /* contact-containerのレスポンシブ対応 */
  .contact-container>div:first-child {
    flex-direction: column !important;
    align-items: center !important;
    gap: 1.5rem !important;
  }

  /* 既存のレスポンシブスタイル */
  nav ul {
    flex-direction: column;
    align-items: center;
  }

  nav li {
    margin: 10px 0;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 50vh;
    min-height: 250px;
    /* 最小高さを確保 */
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    position: relative;
  }

  .hero-content {
    position: absolute;
    bottom: 20px;
    right: 16px;
    left: auto;
    transform: none;
    padding: 0.875rem 1rem;
    max-width: calc(100% - 16px);
    width: auto;
    text-align: right;
    margin: 0;
    box-sizing: border-box;
    top: auto;
  }

  .hero-title {
    font-size: 1.3rem !important;
    line-height: 1.35;
    width: 100%;
    box-sizing: border-box;
    word-break: keep-all;
    overflow-wrap: break-word;
  }

  .cta-button {
    padding: 0.8rem 1.4rem;
    font-size: 0.9rem;
    white-space: normal;
    max-width: 100%;
    box-sizing: border-box;
    display: inline-block;
  }

  .intro-content p {
    font-size: 0.95rem !important;
  }

  .blog-title {
    font-size: 0.95rem !important;
  }

  .contact-container>div:first-child {
    gap: 1rem !important;
  }
}

/* LINEブラウザ：横スクロール防止のみ（スワイプ戻り・縦スクロールは維持） */
.main-content,
.hero,
.news,
.blog,
.blog-grid,
.news-list {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

/* タップ時のハイライト */
a,
button {
  -webkit-tap-highlight-color: rgba(155, 177, 129, 0.3);
}