/* ==========================================
   プレスタイル - メインスタイルシート
   最適化版：レスポンシブ＆画像サイズ調整
   ========================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  background: #fff;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================
   ヘッダー
   ========================================== */

header {
  background: #fff;
  border-bottom: 1px solid #ddd;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.logo {
  flex-shrink: 0;
}

.logo img {
  height: 50px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05);
}

nav {
  display: flex;
  gap: 2.5rem;
  margin-left: auto;
}

nav a {
  text-decoration: none;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  white-space: nowrap;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #e74c3c;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

nav a:hover {
  color: #e74c3c;
}

/* ==========================================
   ヒーローセクション
   ========================================== */

.hero {
  position: relative;
  height: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #001a33;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,10,30,0.35) 0%,
    rgba(0,10,30,0.55) 100%
  );
  z-index: 1;
}

.hero img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
  animation: zoomIn 0.8s ease-out;
}

@keyframes zoomIn {
  from {
    transform: scale(1.1);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 0.75;
  }
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: white;
  padding: 2rem;
  max-width: 800px;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

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

.hero-content h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
  letter-spacing: -0.5px;
}

.hero-content p {
  font-size: 18px;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
  line-height: 1.4;
}

/* ==========================================
   セクション共通
   ========================================== */

.section {
  padding: 3.5rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2.5rem;
  color: #333;
  position: relative;
  padding-bottom: 1.2rem;
  animation: slideIn 0.6s ease-out;
  letter-spacing: -0.5px;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #e74c3c 0%, #c0392b 100%);
  border-radius: 2px;
}

/* ==========================================
   サービスセクション
   ========================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.service-item {
  background: #f9f9f9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.service-item:hover {
  transform: translateY(-12px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}

.service-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.4s ease;
}

.service-item:hover img {
  transform: scale(1.08);
}

.service-content {
  padding: 1.8rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #333;
}

.service-content p {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
  flex: 1;
}

/* ==========================================
   ニーズセクション
   ========================================== */

.needs-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #f0f0f0 100%);
  padding: 3.5rem 2rem;
}

.needs-content {
  max-width: 1400px;
  margin: 0 auto;
}

.needs-content > img {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 2rem auto;
  animation: fadeIn 0.6s ease-out;
  border-radius: 8px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.needs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.8rem;
  margin-top: 2rem;
}

.need-card {
  background: white;
  padding: 1.8rem;
  border-left: 5px solid #e74c3c;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}

.need-card:hover {
  transform: translateX(8px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  border-left-color: #c0392b;
}

.need-card h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 0.7rem;
  color: #333;
}

.need-card p {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
}

/* ==========================================
   CTA セクション
   ========================================== */

.cta-section,
.red-cta {
  max-width: 1200px;
  margin: 2.5rem auto;
  border-radius: 12px;
  padding: 2rem;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.cta-section {
  background: linear-gradient(135deg, #003366 0%, #001a33 100%);
}

.cta-section img,
.red-cta img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

.red-cta {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

/* ==========================================
   実績バッジ
   ========================================== */

.achievement-badge {
  background: white;
  padding: 2.5rem;
  border-radius: 12px;
  text-align: center;
  margin: 3rem auto;
  max-width: 600px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  animation: scaleUp 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border-top: 4px solid #e74c3c;
}

@keyframes scaleUp {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.achievement-badge img {
  width: auto;
  max-width: 200px;
  max-height: 160px;
  height: auto;
  margin-bottom: 1rem;
  object-fit: contain;
}

.achievement-badge h3 {
  font-size: 28px;
  font-weight: 700;
  color: #e74c3c;
  margin-bottom: 0.8rem;
  line-height: 1.3;
}

.achievement-badge p {
  font-size: 15px;
  color: #666;
  font-weight: 500;
}

/* ==========================================
   施工セクション
   ========================================== */

.construction-section {
  background: #f9f9f9;
  padding: 3.5rem 2rem;
}

.construction-title-img {
  max-width: 1000px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.construction-title-img img {
  max-height: 240px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  animation: fadeIn 0.6s ease-out;
}

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

.construction-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.construction-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.15);
}

.construction-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.4s ease;
}

.construction-card:hover img {
  transform: scale(1.1);
}

.construction-card-text {
  padding: 1.5rem;
  text-align: center;
  border-top: 3px solid #e74c3c;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.construction-card-text h4 {
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

/* ==========================================
   フロー画像
   ========================================== */

.flow-section {
  background: white;
  padding: 3.5rem 2rem;
}

.flow-image {
  max-width: 1200px;
  margin: 2.5rem auto;
  text-align: center;
}

.flow-image img {
  width: auto;
  max-width: 760px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  display: block;
  margin: 0 auto;
}

/* ==========================================
   フッター
   ========================================== */

footer {
  background: linear-gradient(135deg, #333 0%, #1a1a1a 100%);
  color: #fff;
  text-align: center;
  padding: 2.5rem 2rem;
  font-size: 13px;
  margin-top: 3rem;
}

footer p {
  margin: 0.6rem 0;
  line-height: 1.8;
}

/* ==========================================
   レスポンシブ対応 - タブレット (1024px 以下)
   ========================================== */

@media (max-width: 1024px) {
  .section {
    padding: 2.5rem 1.5rem;
  }

  .section-title {
    font-size: 28px;
    margin-bottom: 2rem;
  }

  header {
    padding: 0.9rem 1.5rem;
  }

  nav {
    gap: 1.8rem;
  }

  nav a {
    font-size: 13px;
  }

  .logo img {
    height: 45px;
  }

  .hero {
    height: 400px;
  }

  .hero-content h1 {
    font-size: 36px;
  }

  .hero-content p {
    font-size: 16px;
  }

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

  .service-item img {
    height: 200px;
  }

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

  .construction-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .construction-card img {
    height: 200px;
  }

  .achievement-badge {
    padding: 2rem;
    margin: 2rem auto;
  }
}

/* ==========================================
   レスポンシブ対応 - スマートフォン (768px 以下)
   ========================================== */

@media (max-width: 768px) {
  header {
    padding: 0.8rem 1rem;
    flex-wrap: wrap;
    gap: 1rem;
  }

  nav {
    width: 100%;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-left: 0;
  }

  nav a {
    font-size: 12px;
  }

  .logo img {
    height: 40px;
  }

  .hero {
    height: 320px;
  }

  .hero-content {
    padding: 1.5rem;
  }

  .hero-content h1 {
    font-size: 24px;
    margin-bottom: 0.8rem;
  }

  .hero-content p {
    font-size: 13px;
  }

  .section {
    padding: 2rem 1rem;
  }

  .section-title {
    font-size: 22px;
    margin-bottom: 1.5rem;
  }

  .section-title::after {
    width: 60px;
    height: 3px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .service-item img {
    height: 200px;
  }

  .service-content {
    padding: 1.5rem;
  }

  .service-content h3 {
    font-size: 16px;
  }

  .service-content p {
    font-size: 13px;
  }

  .needs-section {
    padding: 2rem 1rem;
  }

  .needs-content > img {
    margin: 1.5rem auto;
    max-width: 100%;
  }

  .needs-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .need-card {
    padding: 1.5rem;
  }

  .need-card h4 {
    font-size: 14px;
  }

  .need-card p {
    font-size: 12px;
  }

  .cta-section,
  .red-cta {
    margin: 2rem auto;
    padding: 1.5rem;
  }

  .construction-section {
    padding: 2rem 1rem;
  }

  .construction-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }

  .construction-card img {
    height: 180px;
  }

  .construction-card-text {
    padding: 1rem;
  }

  .construction-card-text h4 {
    font-size: 13px;
  }

  .achievement-badge {
    padding: 1.5rem;
    margin: 2rem auto;
    max-width: 90%;
  }

  .achievement-badge img {
    max-width: 220px;
  }

  .achievement-badge h3 {
    font-size: 22px;
  }

  .achievement-badge p {
    font-size: 13px;
  }

  .flow-image {
    margin: 2rem auto;
  }

  footer {
    padding: 1.5rem 1rem;
    font-size: 11px;
  }
}

/* ==========================================
   レスポンシブ対応 - 小型スマートフォン (480px 以下)
   ========================================== */

@media (max-width: 480px) {
  header {
    padding: 0.6rem 0.8rem;
  }

  nav {
    gap: 0.6rem;
  }

  nav a {
    font-size: 11px;
  }

  .logo img {
    height: 35px;
  }

  .hero {
    height: 250px;
  }

  .hero-content {
    padding: 1rem;
  }

  .hero-content h1 {
    font-size: 20px;
    margin-bottom: 0.5rem;
  }

  .hero-content p {
    font-size: 12px;
  }

  .section {
    padding: 1.5rem 0.8rem;
  }

  .section-title {
    font-size: 18px;
    margin-bottom: 1.2rem;
  }

  .section-title::after {
    width: 50px;
    height: 2px;
  }

  .services-grid {
    gap: 1rem;
  }

  .service-item {
    border-radius: 8px;
  }

  .service-item img {
    height: 150px;
  }

  .service-content {
    padding: 1rem;
  }

  .service-content h3 {
    font-size: 14px;
    margin-bottom: 0.6rem;
  }

  .service-content p {
    font-size: 12px;
  }

  .needs-section {
    padding: 1.5rem 0.8rem;
  }

  .needs-content > img {
    margin: 1rem auto;
  }

  .needs-grid {
    gap: 0.8rem;
  }

  .need-card {
    padding: 1rem;
    border-left: 4px solid #e74c3c;
  }

  .need-card h4 {
    font-size: 13px;
    margin-bottom: 0.4rem;
  }

  .need-card p {
    font-size: 11px;
  }

  .cta-section,
  .red-cta {
    margin: 1.5rem auto;
    padding: 1rem;
    border-radius: 8px;
  }

  .construction-section {
    padding: 1.5rem 0.8rem;
  }

  .construction-title-img {
    margin-bottom: 1.5rem;
  }

  .construction-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .construction-card {
    border-radius: 8px;
  }

  .construction-card img {
    height: 150px;
  }

  .construction-card-text {
    padding: 0.8rem;
  }

  .construction-card-text h4 {
    font-size: 12px;
  }

  .achievement-badge {
    padding: 1.2rem;
    margin: 1.5rem auto;
    max-width: 95%;
    border-radius: 8px;
  }

  .achievement-badge img {
    max-width: 180px;
    margin-bottom: 1rem;
  }

  .achievement-badge h3 {
    font-size: 18px;
    margin-bottom: 0.5rem;
  }

  .achievement-badge p {
    font-size: 11px;
  }

  .flow-image {
    margin: 1.5rem auto;
  }

  .flow-image img {
    border-radius: 8px;
  }

  footer {
    padding: 1rem 0.8rem;
    font-size: 10px;
  }

  footer p {
    margin: 0.4rem 0;
  }
}

/* ==========================================
   アニメーション（スクロール時）
   ========================================== */

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   Retina ディスプレイ対応
   ========================================== */

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  img {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* ==========================================
   印刷用スタイル
   ========================================== */

@media print {
  header,
  footer,
  nav {
    display: none;
  }

  .section {
    page-break-inside: avoid;
  }

  img {
    max-width: 100%;
    page-break-inside: avoid;
  }
}

/* ==========================================
   フォーカス & アクセシビリティ
   ========================================== */

a:focus,
button:focus {
  outline: 2px solid #e74c3c;
  outline-offset: 2px;
}

/* ==========================================
   スクロールバー（Webkit ブラウザ）
   ========================================== */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #e74c3c;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #c0392b;
}

/* ==========================================
   共通ナビゲーション追加スタイル
   ========================================== */

/* ロゴリンク */
.logo a {
  display: inline-block;
  line-height: 0;
}

/* アクティブページ表示 */
nav a.nav-active {
  color: #003366;
  font-weight: bold;
}
nav a.nav-active::after {
  width: 100%;
  background: #003366;
}

/* ハンバーガーメニュー */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
  z-index: 200;
}
.hamburger span {
  display: block;
  height: 2px;
  background: #333;
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger span:nth-child(1) { width: 24px; }
.hamburger span:nth-child(2) { width: 18px; }
.hamburger span:nth-child(3) { width: 24px; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); width: 24px; }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); width: 24px; }

/* ==========================================
   サイトフッター（新構造）
   ========================================== */

.site-footer {
  background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1a 100%);
  color: #ccc;
  margin-top: 0;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem 2rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: 3rem;
}

.footer-logo img {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  margin-bottom: 0.8rem;
}
.footer-catch {
  font-size: 12px;
  color: #888;
  line-height: 1.7;
}

.footer-nav h4,
.footer-contact h4 {
  font-size: 13px;
  font-weight: bold;
  color: #fff;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-nav ul li {
  margin-bottom: 0.5rem;
}
.footer-nav ul li a {
  color: #aaa;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}
.footer-nav ul li a:hover {
  color: #fff;
}
.footer-nav ul li a::before {
  content: "→ ";
  color: #e74c3c;
  font-size: 11px;
}

.footer-tel {
  margin-bottom: 0.3rem;
}
.footer-tel a {
  color: #fff;
  text-decoration: none;
  font-size: 22px;
  font-weight: bold;
  letter-spacing: 1px;
}
.footer-tel a::before {
  content: "☎ ";
  font-size: 16px;
}
.footer-fax,
.footer-mail,
.footer-hours,
.footer-addr {
  font-size: 12px;
  color: #888;
  margin: 0.3rem 0;
  line-height: 1.7;
}
.footer-mail a {
  color: #aaa;
  text-decoration: none;
}
.footer-mail a:hover { color: #fff; }

.footer-copy {
  background: rgba(0,0,0,0.3);
  text-align: center;
  padding: 0.9rem 2rem;
  font-size: 12px;
  color: #666;
}

/* ==========================================
   フッター レスポンシブ
   ========================================== */

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  #global-nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 260px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    padding: 80px 2rem 2rem;
    gap: 0;
    box-shadow: -4px 0 16px rgba(0,0,0,0.15);
    z-index: 150;
    overflow-y: auto;
  }
  #global-nav.open {
    display: flex;
  }
  #global-nav a {
    padding: 0.9rem 0;
    border-bottom: 1px solid #eee;
    font-size: 15px;
  }
  #global-nav a::after {
    display: none;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1.5rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .footer-tel a {
    font-size: 18px;
  }
}

/* ==========================================
   会社情報 + CTA 統合セクション（index.html）
   ========================================== */

.company-cta {
  background: linear-gradient(135deg, #003366 0%, #001a33 100%);
  color: #fff;
}

.company-cta-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* 左：会社情報 */
.company-catch {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.company-name {
  font-size: 22px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 1.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.company-details {
  list-style: none;
  padding: 0;
  margin: 0;
}

.company-details li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 14px;
}

.detail-label {
  flex-shrink: 0;
  width: 68px;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
}

.detail-value {
  color: rgba(255,255,255,0.9);
  line-height: 1.6;
}

.detail-value a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}
.detail-value a:hover {
  text-decoration: underline;
}

/* 右：CTA */
.company-cta-right {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 2rem 1.8rem;
  text-align: center;
}

.cta-label {
  display: inline-block;
  background: #e74c3c;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.08em;
  padding: 0.3rem 1rem;
  border-radius: 2px;
  margin-bottom: 1rem;
}

.cta-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  line-height: 1.8;
  margin-bottom: 1.8rem;
  font-weight: normal;
}

.cta-btns {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: center;
}

.company-cta-right .cta-tel {
  display: block;
  width: 100%;
  background: #e74c3c;
  color: #fff;
  padding: 0.9rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 22px;
  font-weight: bold;
  letter-spacing: 1px;
  transition: background 0.2s;
}
.company-cta-right .cta-tel:hover { background: #c0392b; }

.company-cta-right .cta-mail {
  display: block;
  width: 100%;
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
  padding: 0.75rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 15px;
  font-weight: bold;
  transition: border-color 0.2s, background 0.2s;
}
.company-cta-right .cta-mail:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
}

/* レスポンシブ */
@media (max-width: 768px) {
  .company-cta-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1.5rem;
  }
  .company-cta-right {
    padding: 1.5rem 1.2rem;
  }
}

/* ==========================================
   トップページ セクション内リンク
   ========================================== */

/* service-item にリンクを収める */
.service-item {
  display: flex;
  flex-direction: column;
}
.service-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.service-content p {
  flex: 1;
}

/* 詳しく見るリンク（カード内） */
.more-link {
  display: inline-block;
  margin-top: 1rem;
  color: #003366;
  font-size: 13px;
  font-weight: bold;
  text-decoration: none;
  border-bottom: 1px solid #003366;
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
  align-self: flex-start;
}
.more-link:hover {
  color: #e74c3c;
  border-color: #e74c3c;
}

/* セクション見出し横の「すべて見る」バー */
.section-more-bar {
  text-align: right;
  margin-bottom: 1.5rem;
  margin-top: -1rem;
}
.section-more-link {
  display: inline-block;
  color: #003366;
  font-size: 13px;
  font-weight: bold;
  text-decoration: none;
  border-bottom: 1px solid #003366;
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.section-more-link:hover {
  color: #e74c3c;
  border-color: #e74c3c;
}

/* 施工実績カード下のリンク */
.construction-more {
  text-align: right;
  margin: 0.5rem 0 2rem;
}
.more-link-sm {
  display: inline-block;
  color: #666;
  font-size: 13px;
  text-decoration: none;
  border-bottom: 1px dashed #999;
  padding-bottom: 1px;
  transition: color 0.2s;
}
.more-link-sm:hover {
  color: #003366;
  border-bottom-style: solid;
  border-color: #003366;
}

/* PPFセクション内：白リンク */
.more-link-white {
  display: inline-block;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.6);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}
.more-link-white:hover {
  border-color: #fff;
}

/* ご利用フロー：ページ選択ボタン */
.flow-page-links {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.flow-page-btn {
  display: inline-block;
  padding: 0.5rem 1.4rem;
  background: #fff;
  color: #003366;
  border: 2px solid #003366;
  border-radius: 3px;
  font-size: 13px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.flow-page-btn:hover {
  background: #003366;
  color: #fff;
}

/* ==========================================
   PC表示 画像サイズ最適化（1025px以上）
   ========================================== */

@media (min-width: 1025px) {
  /* サービスカード画像 */
  .service-item img {
    height: 200px;
  }

  /* 施工実績カード画像 */
  .construction-card img {
    height: 200px;
  }

  /* 施工タイトル画像 */
  .construction-title-img {
    text-align: center;
    margin-bottom: 1.5rem;
  }
  .construction-title-img img {
    max-height: 240px;
    width: auto;
    max-width: 800px;
  }

  /* 各種ニーズ見出し画像 */
  .needs-content > img {
    max-width: 560px;
    display: block;
    margin: 0 auto 1.5rem;
  }

  /* フロー画像（PC表示） */
  .flow-image img {
    max-width: 760px;
  }

  /* CTA・バナー系画像 */
  .cta-section img,
  .red-cta img {
    max-height: 160px;
    object-fit: contain;
  }
}
