* {
  box-sizing: border-box;
}

/* 基础 */
body {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  color: #333;
  background-color: #f4f6f8;
}

/* 背景层 */
.page-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(
      rgba(255,255,255,0.85),
      rgba(255,255,255,0.85)
    ),
    url("index_pict005.jpg");
  background-size: cover;
  background-position: center;
  z-index: -1;
  will-change: transform;
}

/* 主页设计*/
/* ===== Hero ===== */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
  padding: 80px 10%;
}

.hero-text h2 {
  font-size: 2.4rem;
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 1.05rem;
  color: #444;
}

.hero-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.18);
}

/* ===== 社长消息 ===== */
.info-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 80px;
}

.info-text {
  background: #fff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.info-text p {
  line-height: 1.9;
  margin-bottom: 20px;
}

.info-image img {
  width: 100%;
  border-radius: 20px;
}

/* ===== News ===== */
.news-list {
  list-style: none;
  padding: 0;
}

.news-list li {
  padding: 16px 0;
  border-bottom: 1px solid #ddd;
}

.news-list span {
  font-weight: bold;
  margin-right: 12px;
  color: #2f5e8c;
}

/* ===== 手机 ===== */
@media (max-width: 768px) {
  .hero,
  .info-grid {
    grid-template-columns: 1fr;
    padding: 60px 6%;
  }
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
}

.header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 10%;
}

/* ===== 滑动导航 ===== */
.top-slider {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(0,0,0,0.05);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  overflow-x: auto;
}

.top-slider::-webkit-scrollbar {
  display: none;
}

.top-slider-track {
  display: flex;
  gap: 40px;
  padding: 14px 10%;
  white-space: nowrap;
}

.slider-item {
  font-size: 0.95rem;
  color: #333;
  text-decoration: none;
  position: relative;
  padding-bottom: 6px;
}

.slider-item::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: #2f5e8c;
  transition: width 0.3s ease;
}

.slider-item:hover::after {
  width: 100%;
}

/* 手机 */
@media (max-width: 768px) {
  .header-main,
  .top-slider-track {
    padding: 14px 6%;
  }
}

/* 头部 */
header {
  padding: 35px 20px 25px;
  text-align: center;
}

header h1 {
  margin: 0;
  font-size: 32px;
  letter-spacing: 0.05em;
}

nav {
  margin-top: 15px;
}

nav a {
  margin: 0 12px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

/* 内容卡片（核心美化） */
.container {
  max-width: 900px;
  margin: 60px auto;
  padding: 40px;
  background: rgba(255,255,255,0.96);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  line-height: 1.9;
}

/* 标题层级 */
.container h2 {
  margin-top: 0;
  font-size: 24px;
  border-left: 4px solid #ddd;
  padding-left: 12px;
}

.container h3 {
  margin-top: 40px;
  font-size: 18px;
}

/* 页脚 */
footer {
  text-align: center;
  padding: 30px 10px 40px;
  font-size: 14px;
  color: #666;
}
/* ===== お問い合わせ 美化 ===== */

.contact {
  max-width: 700px;
}

.contact-desc {
  text-align: center;
  margin-bottom: 30px;
  color: #666;
}

/* 表单整体 */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* 每一行 */
.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 6px;
  font-size: 14px;
  color: #555;
}

/* 输入框 */
.contact-form input,
.contact-form textarea {
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  transition: border 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #999;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}

/* 按钮 */
.contact-form button {
  margin-top: 10px;
  padding: 14px;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.contact-form button:hover {
  background: #000;
  transform: translateY(-2px);
}
/* ===== 主页 Hero 区 ===== */
.hero {
  max-width: 1100px;
  margin: 80px auto 40px;
  padding: 0 30px;
  display: flex;
  gap: 40px;
  align-items: center;
}

.hero-text {
  flex: 1;
}

.hero-text h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 16px;
  line-height: 1.9;
  color: #555;
}

/* Hero 图片位 */
.hero-image {
  flex: 1;
  text-align: center;
}

.hero-image img {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: 12px;
  background: #eee; 
}

/* ===== 公司概要区 ===== */
.info-grid {
  display: flex;
  gap: 40px;
  margin-top: 30px;
  align-items: center;
}

.info-text {
  flex: 1;
}

.info-image {
  flex: 1;
  text-align: center;
}

.info-image img {
  width: 100%;
  max-width: 360px;
  border-radius: 10px;
  background: #eee;
}

/* ===== 新闻 ===== */
.news-list {
  margin-top: 20px;
  padding-left: 0;
  list-style: none;
}

.news-list li {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

.news-list span {
  margin-right: 12px;
  color: #999;
  font-size: 13px;
}

/* ===== 响应式（手机） ===== */
@media (max-width: 768px) {
  .hero,
  .info-grid {
    flex-direction: column;
    text-align: center;
  }

  .hero-text h2 {
    font-size: 26px;
  }
}

/* ===== 会社紹介 美化 ===== */

.company-main {
  display: flex;
  gap: 40px;
  margin-top: 30px;
  align-items: center;
}

.company-text {
  flex: 1;
  font-size: 16px;
  line-height: 1.9;
}

.company-image {
  flex: 1;
  text-align: center;
}

.company-image img {
  width: 100%;
  max-width: 420px;
  border-radius: 14px;
  background: #eee;
}

/* 信息块 */
.company-block {
  margin-top: 50px;
}

.company-block h3 {
  margin-bottom: 15px;
  font-size: 20px;
  border-left: 4px solid #ddd;
  padding-left: 12px;
}

/* 表格 */
.company-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  font-size: 15px;
}

.company-table th,
.company-table td {
  padding: 14px 12px;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}

.company-table th {
  width: 160px;
  text-align: left;
  color: #666;
  background: #fafafa;
}

/* 手机端 */
@media (max-width: 768px) {
  .company-main {
    flex-direction: column;
    text-align: center;
  }

  .company-table th {
    width: auto;
  }
}

/* ===== 事業内容：图片主视觉・上下布局 ===== */

.business-item {
  display: flex;
  flex-direction: column;   /* 改成上下排列 */
  align-items: center;
  gap: 40px;
}

/* 图片区域 */
.business-image {
  width: 100%;
  max-width: 900px;         /* 控制主视觉最大宽度 */
}

.business-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;      /* 圆角，提升质感 */
  box-shadow: 0 20px 40px rgba(0,0,0,0.15); 
  object-fit: contain;
}

/* 文字区域 */
.business-text {
  max-width: 900px;
  width: 100%;
  text-align: left;
}

.business-text h3 {
  font-size: 1.6rem;
  margin-bottom: 16px;
}

/* 正文排版更舒服 */
.business-text p {
  line-height: 1.9;
  margin-bottom: 16px;
}

/* 备注说明 */
.business-note {
  font-size: 0.9rem;
  color: #666;
}
