#main {
    margin: 0 auto !important;
    /* TODO:後で消す */
    max-width: 1100px !important; 
}

.entry-content {
    max-width: 1100px !important;
    margin: 0 auto !important;
    text-align: center;
}

.entry-content h4 {
    padding: 6px 12px 5px 12px;
    border-left: none;
    display: inline-block;
    border-bottom: 3px solid #57a1d8;
}

#inner-content {
    margin: 0 auto;
    text-align: center;
}

/* 2列レイアウトのコンテナ */
.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2vw;
    max-width: 80vw;
    margin: 0 auto;
    padding: 1.5vw;
}

/* 各サービスカードのスタイル */
.service-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 0.7vw;
    box-shadow: 0 0.15vw 0.7vw rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    min-height: auto;
}

.service-card:hover {
    transform: translateY(-0.3vw);
}

/* 画像コンテナ */
.service-card > div:first-child {
    width: 100%;
    height: 20vw; /* 画像を250pxぐらい見えるように調整 */
    overflow: hidden;
}

.service-card > div:first-child img {
    width: 100%;
    height: 130%; /* 30%大きく表示 */
    object-fit: cover;
    object-position: center 30%; /* 上部を優先表示 */
}

/* テキストコンテンツ */
.service-card h3 {
    margin: 1.3vw 1.3vw 0.7vw 1.3vw;
    font-size: 17px; /* 固定サイズ */
    font-weight: bold;
    color: #333;
}

.service-card p {
    margin: 0 1.3vw 1.3vw 1.3vw;
    font-size: 15px; /* 固定サイズ */
    line-height: 1.6;
    color: #666;
    flex-grow: 1;
    text-align: left; /* pテキストを左寄せに */
}

/* リンクスタイル */
.service-card a {
    color: #4486bf;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.service-card a:hover {
    color: #2d5a8b;
    text-decoration: underline;
}

/* レスポンシブ対応 - 768px以下で1カラム */
@media (max-width: 768px) {
    .service-grid {
        grid-template-columns: 1fr;
        gap: 6vw; /* カード間の余白を1.5倍に修正 */
        max-width: 90vw;
        padding: 2vw;
    }
    
    .service-card {
        min-height: 75vw; /* 画像が大きくなるので全体の高さも調整 */
    }

    .service-card:last-child {
        margin-bottom: 3vh;
    }
    
    .service-card h3 {
        font-size: min(4.5vw, 24px); /* 最大24pxに制限 */
        margin: 3vw 3vw 1.5vw 3vw;
    }
    
    .service-card p {
        font-size: min(3.5vw, 18px); /* 最大18pxに制限 */
        margin: 0 3vw 3vw 3vw;
        text-align: left; /* pテキストを左寄せに */
    }
    
    .service-card > div:first-child {
        height: 48.75vw; /* 画像の表示範囲を1.5倍に縦に長く表示 */
    }
    
    .service-card > div:first-child img {
        width: 100%;
        height: 130%; /* 30%大きく表示 */
        object-fit: cover;
        object-position: center 30%; /* 上部を優先表示 */
    }
}

/* 480px以下のスマホサイズ */
@media (max-width: 480px) {
    .service-card h3 {
        font-size: 4.5vw;
        margin: 3vw 3vw 1.5vw 3vw;
    }
    
    .service-card p {
        font-size: 3.5vw;
        margin: 0 3vw 3vw 3vw;
        text-align: left; /* pテキストを左寄せに */
    }
}

/* お問い合わせセクション */
.contact-section {
    width: 77vw;
    max-width: 780px;
    margin: 0 auto;
    border: 0.3vw solid #4486bf;
    padding: 2.5vw;
    background-color: #f8f9fa;
    box-sizing: border-box;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 60vw;
    margin-left: auto;
    margin-right: auto;
}

.contact-button {
    flex: 0 0 auto;
    text-align: center;
    width: 12vw;
}

.contact-button:first-child {
    flex: 0 0 20%;
    width: auto;
}

.contact-button:last-child {
    flex: 0 0 65%;
    width: auto;
}

.contact-options {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2vw;
    max-width: 55vw;
    margin-left: auto;
    margin-right: auto;
    min-height: 12vw;
}

.contact-option {
    flex: 1;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-button a,
.contact-option a {
    display: block;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.contact-button a:hover,
.contact-option a:hover {
    opacity: 0.8;
}

.contact-button img,
.contact-option img {
    max-width: 140%;
    height: 12vw;
    width: auto;
    max-height: 12vw;
    object-fit: contain;
}

.contact-button:last-child img {
    max-width: 200%;
    height: 10vw;
    width: auto;
    max-height: 10vw;
    object-fit: contain;
}

/* 左揃えテキスト用クラス */
.text-left {
    text-align: left;
}

/* パディング付きテキスト用クラス */
.text-with-padding {
    padding: 20px;
}

/* 強調テキスト用クラス */
.text-emphasis {
    color: #d9534f;
    font-weight: bold;
}

/* --- 統一デザインの問い合わせボタン --- */
.btn-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0 auto;
    padding: 0 1.5vw;
    border-radius: 14px;
    font-size: min(4vw, 1.2rem); /* 画面幅に応じて縮小、最大1.2rem */
    font-weight: bold;
    color: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    text-decoration: none;
    transition: background 0.2s, box-shadow 0.2s, opacity 0.2s;
    position: relative;
    margin-bottom: 18px;
    height: 60px;
    min-height: 30px;
    gap: 12px;
    box-sizing: border-box;
}

.btn-contact img {
    flex-shrink: 0;
    display: block;
    width: 36px;
    height: 36px;
    max-width: 36px;
    max-height: 36px;
    object-fit: contain;
    margin-right: 10px;
    margin: 0;
}

.btn-contact span {
    line-height: 1.2;
    flex-shrink: 1;
    font-size: min(4vw, 1em); /* 画面幅に応じて縮小、最大1em */
    font-weight: bold;
}

.btn-contact::after {
    content: "";
    display: inline-block;
    width: min(5vw, 12px);
    height: min(5vw, 12px);
    border-top: #fff 4px solid;
    border-right: #fff 4px solid;
    transform: rotate(45deg);
    margin-left: 0;
    vertical-align: middle;
    border-top-width: min(1vw, 4px);
    border-right-width: min(1vw, 4px);
}

.btn-mail {
    background: #57a1d8;
}
.btn-mail:hover {
    background: #0077b6;
}
.btn-mail:hover::after {
    opacity: 0.85;
}
.btn-line {
    background: #2ed42e;
}
.btn-line:hover {
    background: #009e00;
}
.btn-line:hover::after {
    opacity: 0.85;
}



/* デスクトップサイズでの最大幅制限 */
@media (min-width: 1200px) {
    .service-card {
        min-height: auto;
    }
    
    .service-card h3 {
        font-size: 17px;
    }
    
    .service-card p {
        font-size: 15px; /* pの文字をさらに大きく */
        text-align: left; /* pテキストを左寄せに */
    }
    
    .service-card > div:first-child {
        height: 250px; /* 画像を250pxで表示 */
    }
    
    .service-card > div:first-child img {
        width: 100%;
        height: 130%; /* 30%大きく表示 */
        object-fit: cover;
        object-position: center 30%; /* 上部を優先表示 */
    }
    
    .contact-section {
        padding: 30px;
        border-width: 4px;
    }
    
    .contact-buttons {
        max-width: 720px;
    }
    
    .contact-options {
        max-width: 660px;
        gap: 24px;
        min-height: 144px;
    }
    
    .btn-contact {
        max-width: 288px;
        min-width: 192px;
        padding: 14px 18px;
        font-size: 19px;
        border-radius: 7px;
        margin-bottom: 12px;
        height: auto;
        min-height: 50px;
        gap: 6px;
    }
    
    .btn-contact img {
        width: 20px;
        height: 20px;
        display: block;
        margin: 0;
    }
    
    .btn-contact::after {
        width: 12px;
        height: 12px;
        border-top-width: 4px;
        border-right-width: 4px;
        margin-left: 5px;
    }
    
    .contact-button img,
    .contact-option img {
        max-height: 144px;
    }
    
    .contact-button:last-child img {
        height: 120px;
        max-height: 120px;
    }
}

/* 2つのボタンを横並び（英語クラス名） */
.button-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2vw;
    width: 100%;
    max-width: 570px;
    margin: 0 auto 18px auto;
    box-sizing: border-box;
}
.button-col {
    flex: 1 1 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
}
.button-col a {
    width: 100%;
    max-width: 100%;
}

/* —— ここから980px以下で縮小設定 —— */
@media (max-width: 980px) {
    /* ボタン内の画像を90%幅に縮小 */
    .button-col img {
      width: 90%;
      height: auto;
    }
  }


@media (max-width: 768px) {
    /* ボタン内の画像を90%幅に縮小 */
    .button-col img {
      width: 90%;
      height: auto;
    }

    .button-col a span {
        font-size: 16px;
    }

    .btn-contact::after {
        width: 14px;
        height: 14px;
    }
}

/* —— ここから600px以下でボタンを縦並びに —— */
@media (max-width: 600px) {
    .btn-contact {
        height: 40px;
        margin-bottom: 0;
    }

    .button-col img {
        width: 80%;
        height: auto;
      }

    .btn-contact img {
    width: 25px;
    height: 25px;
    }

    /* .button-row のflex方向を横→縦に */
    .button-row {
      flex-direction: column;
    }
    /* 各ボタンを幅いっぱいに */
    .button-col {
      width: 100%;
    }

    .button-col a {
        width: 80%;
      }

    .btn-contact::after {
        width: 7px;
        height: 7px;
    }
  }

/* 事例紹介セクションの画像レイアウト */
.case-images {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.case-image-container {
    flex: 1;
    max-width: 300px;
    display: flex;
    align-items: center;
}

.case-image-container img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 0;
}

.case-arrow {
    flex: 0 0 auto;
    position: relative;
    width: 24px;
    height: 24px;
}

.case-arrow::after {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    border-top: #666 4px solid;
    border-right: #666 4px solid;
    transform: rotate(45deg);
    position: absolute;
    top: 50%;
    left: 30%;
    margin-top: -8px;
    margin-left: -8px;
}

.case-image-after {
    flex: 1;
    max-width: 300px;
    border: 5px solid #d9534f;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.case-image-after img {
    width: 100%;
    height: auto !important;
    margin-bottom: 0 !important;
    display: block;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .case-images {
        gap: 15px;
        margin: 15px 0;
    }
    
    .case-image-container,
    .case-image-after {
        max-width: 250px;
    }
    
    .case-arrow {
        width: 20px;
        height: 20px;
    }
    
    .case-arrow::after {
        width: 12px;
        height: 12px;
        border-top-width: 3px;
        border-right-width: 3px;
        margin-top: -6px;
        margin-left: -6px;
    }
}

@media (max-width: 480px) {
    .case-images {
        gap: 10px;
        margin: 10px 0;
    }
    
    .case-image-container,
    .case-image-after {
        max-width: 200px;
    }
    
    .case-arrow {
        width: 16px;
        height: 16px;
    }
    
    .case-arrow::after {
        width: 10px;
        height: 10px;
        border-top-width: 2px;
        border-right-width: 2px;
        margin-top: -5px;
        margin-left: -5px;
    }
}

/* --- 不用品回収の特徴セクション 横並びレイアウト --- */
.feature-section {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin: 32px 0;
}
.feature-image {
  flex: 4 1 0%;
  min-width: 200px;
  max-width: 320px;
  display: flex;
  align-items: flex-start;
  margin-bottom: 0px;
}
.feature-image img {
  width: 100%;
  height: auto;
  min-height: 150px;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}
.feature-content {
  flex: 6 1 0%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  margin-bottom: 12px;
}
.feature-content h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.3em;
  color: #333;
  font-weight: bold;
}
.feature-content p {
  margin: 0;
  font-size: 1em;
  color: #555;
  line-height: 1.7;
  text-align: left;
}

/* レスポンシブ対応 - 768px以下で縦並び */
@media (max-width: 768px) {
  .reason-section > .feature-section,
  .review-section > .feature-section,
  .faq-section > .feature-section {
    flex-direction: column;
    gap: 16px;
    margin: 24px 0;
  }
  /* SP表示では画像を常に上に配置 */
  .reason-section > .feature-section .feature-image {
    order: -1;
  }
  .feature-image {
    flex: none;
    min-width: auto;
    max-width: 100%;
    width: 100%;
  }
  .feature-image img {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    display: block;
  }
  .feature-content {
    flex: none;
    width: 100%;
  }
  .feature-content h3 {
    text-align: center;
    margin-bottom: 16px;
  }
}

/* お客様の声の円形画像スタイル */
.feature-image .review-image {
  border-radius: 50%;
  max-width: 230px;
  margin: 0 auto;
  display: block;
}

/* お客様の声をもっと見るボタン */
.review-more-button {
  text-align: center;
  margin: 40px 0;
}

.review-more-button .btn-contact {
  max-width: 440px;
  min-width: 280px;
  padding: 16px 24px;
  font-size: 18px;
  border-radius: 8px;
  margin-bottom: 0;
  height: auto;
  min-height: 60px;
  gap: 8px;
}

.review-more-button .btn-contact span {
  font-size: 18px;
  line-height: 1.4;
}

/* レスポンシブ対応 - 768px以下 */
@media (max-width: 768px) {
  .review-more-button .btn-contact {
    max-width: 90%;
    min-width: 250px;
    padding: 14px 20px;
    font-size: 16px;
    min-height: 55px;
  }
  
  .review-more-button .btn-contact span {
    font-size: 16px;
  }
}

/* レスポンシブ対応 - 480px以下 */
@media (max-width: 480px) {
  .review-more-button .btn-contact {
    max-width: 95%;
    min-width: 200px;
    padding: 12px 16px;
    font-size: 14px;
    min-height: 50px;
  }
  
  .review-more-button .btn-contact span {
    font-size: 14px;
  }
}

/* SP画面のみ表示（PC画面では非表示） */
.sp-only {
    display: none;
}

/* レスポンシブ対応 - 768px以下で表示 */
@media (max-width: 768px) {
    .sp-only {
        display: block;
    }
}

/* お知らせ一覧セクション用スタイル */
.news-section {
	margin: 3.6vw auto;
	/* max-width: 80vw; */
}

.news-section h2 {
	margin-bottom: 2.7vw;
	text-align: center;
	font-size: min(2.2vw, 24px);
}

.news-section .feature-section {
	display: flex;
	align-items: flex-start;
	margin-bottom: 2.7vw;
    gap: 0;
	border: 0.09vw solid #e0e0e0;
	border-radius: 0.7vw;
	background: #fff;
	transition: box-shadow 0.3s ease;
	text-decoration: none;
}

.news-section .feature-section:hover {
	box-shadow: 0 0.36vw 1.08vw rgba(0, 0, 0, 0.1);
}

.news-section .feature-image {
	flex-shrink: 0;
	width: 10.8vw;
	min-width: 80px;
}

.news-section .feature-image img {
	width: 100%;
	height: auto;
	border-radius: 0.36vw 0 0 0.36vw;
    margin-bottom: 0px;
}

.news-section .feature-content {
	flex: 1;
    padding: 20px;
}

.news-section .news-date {
	color: #666;
	font-size: min(1.2vw, 0.9em);
	margin-bottom: 0.7vw;
	font-weight: normal;
}

.news-section .news-title {
	font-size: min(1.8vw, 1.6em);
	font-weight: 500;
    text-align: left;
	color: #333;
	margin: 0;
	line-height: 1.4;
	border: none;
	padding: 0;
	display: block;
}



/* レスポンシブ対応 - PCレイアウトを維持しつつ調整 */
@media (max-width: 768px) {
	.news-section {
		max-width: 90vw;
		margin: 5vw auto;
	}
	
	.news-section h2 {
		font-size: min(5vw, 24px);
		margin-bottom: 4vw;
	}
	
	.news-section .feature-section {
		/* flex横並びレイアウトは維持 */
		gap: 3vw;
		margin-bottom: 4vw;
		border-radius: 1.2vw;
	}

    .news-section .feature-content {
        padding-top: 10px;
        padding-right: 8px;
    }
	
	.news-section .feature-image {
		width: 40vw;
		min-width: 100px;
		max-width: 150px;
	}
	
	.news-section .news-date {
		font-size: min(3vw, 0.9em);
		margin-bottom: 1.5vw;
	}
	
	.news-section .news-title {
		font-size: min(3.5vw, 1.2em);
	}
}

.access-section {
    margin-bottom: 40px;
}

/* 外部リンクアイコンのFontAwesome部分のみ無効化、既存のCSSは継承 */
.entry-content .no-external-icon[target="_blank"]::after {
    font-family: inherit !important;
    content: "" !important;
}