/* 全体 */
body {
  font-family: "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.8;
  background: #e6f2fa;
  color: #333;
}

/* ヘッダー */
header {
  background: #004aad;
  color: #fff;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

header h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

nav a {
  color: #fff;
  margin-left: 20px;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

nav a:hover {
  color: #da1010;
}

/* ヒーロー */
.hero {
  position: relative;
  background: url('kaishanoshasin.jpg') no-repeat center center/cover;
  text-align: center;
  padding: 100px 20px;
  color: white;
}

.hero-text {
  display: inline-block;
  background: rgba(0,0,0,0.1);
  padding: 30px 40px;
  border-radius: 12px;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.hero-text h2, .hero-text p {
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}

/* セクション */
section {
  padding: 60px 20px;
  max-width: 1000px;
  margin: 20px auto; /* ← 上下20px、左右autoで中央寄せ */
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}


/* ===== 見出しスタイル ===== */
h2 {
  font-size: 28px;
  margin-bottom: 10px;
  text-align: center;
  color: #0073aa; /* 青 */
  position: relative;
}

h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  margin: 8px auto 0;
  background: linear-gradient(to right, #0073aa, #cc0000); 
  border-radius: 2px;
}

/* ===== CTAボタン ===== */
.btn-cta {
  display: inline-block;
  background: linear-gradient(135deg, #0073aa, #cc0000); 
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.btn-cta:hover {
  background: linear-gradient(135deg, #005f8a, #990000);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}


h3 {
  font-size: 20px;
  margin-top: 30px;
  color: #0099cc;
}

ul {
  padding-left: 20px;
}

.btn {
  display: inline-block;
  background: #00bfff;
  color: white;
  padding: 12px 20px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s;
}

.btn:hover {
  background: #0099cc;
}

footer {
  background: #f9f9f9; /* 薄い白系 */
  color: #000;
  font-size: 14px;
  line-height: 1.6;
  padding: 40px 20px 20px 20px;
  border-top: 3px solid #0073aa; /* 全体の上部ボーダーで青アクセント */
}

footer a {
  color: #0073aa;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* フッターブロック区切り */
.footer-top,
.footer-contact,
.footer-company,
.footer-bottom {
  padding: 20px;
  margin-bottom: 15px;
  border-top: 1px solid #0073aa; /* 青ラインで区切り */
  border-bottom: 1px solid #0073aa;
  background: #ffffff; /* 各ブロックを白で少し浮かせる */
  border-radius: 8px;
}

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

.footer-top p {
  margin: 5px 0;
  font-weight: 500;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  background: #fdfdfd; /* 少し灰色寄りの白で差別化 */
}

.footer-contact div {
  min-width: 250px;
  margin: 10px;
}

.footer-contact h4 {
  margin-bottom: 8px;
  font-size: 16px;
  color: #0073aa;
}

.footer-company {
  text-align: center;
  background: #fefefe;
}

.footer-bottom {
  text-align: center;
  padding-top: 15px;
  border: none;
  background: #f9f9f9;
}

.footer-nav {
  margin-bottom: 10px;
}

.footer-nav a {
  margin: 0 8px;
  font-size: 13px;
}
footer p {
  color: #000 !important; /* 黒を強制 */
}



.machine-photo {
  max-width: 600px;
  width: 100%;
  margin: 10px auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.toggle-btn {
  cursor: pointer;
  color: #00bfff;
  font-weight: 600;
  border: none;
  background: none;
  font-size: 16px;
  margin-top: 10px;
  text-decoration: none;
}

.toggle-btn:hover {
  text-decoration: underline;
}

/* Heroスライド用（必要なら） */
.hero-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: fade 15s infinite;
}

.hero-slide:nth-child(1) { background-image: url('factory1.jpg'); animation-delay: 0s; }
.hero-slide:nth-child(2) { background-image: url('welding.jpg'); animation-delay: 5s; }
.hero-slide:nth-child(3) { background-image: url('frame.jpg'); animation-delay: 10s; }

@keyframes fade {
  0% {opacity: 0;}
  10% {opacity: 1;}
  30% {opacity: 1;}
  40% {opacity: 0;}
  100% {opacity: 0;}
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.1);
}
.news {
  padding: 40px 20px;
  max-width: 1000px;
  margin: 40px auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.news h2 {
  font-size: 24px;
  margin-bottom: 20px;
  border-left: 6px solid #00bfff;
  padding-left: 12px;
  color: #0073aa;
}

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

.news-list li {
  padding: 12px 0;
  border-bottom: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.news-list li:last-child {
  border-bottom: none;
}

.news-list .date {
  font-size: 14px;
  color: #666;
  margin-right: 15px;
  min-width: 100px;
}

.news-list a {
  color: #0073aa;
  text-decoration: none;
  font-size: 16px;
}

.news-list a:hover {
  text-decoration: underline;
}
@media (max-width: 768px) {
  .hero-text h2 {
    font-size: 1.8rem;
  }
  .hero-text p {
    font-size: 1rem;
  }
  .btn-cta {
    padding: 10px 20px;
    font-size: 14px;
  }
}
