/* 全体のスタイル */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f8f8;
    color: #333;
}

/* ヘッダー */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #333;
    color: white;
    padding: 15px 20px;
}

.logo h1 {
    font-size: 1.5em;
    margin: 0;
}

/* メニュー */
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.4em;
}

nav ul li a:hover {
    text-decoration: underline;
}

/* 連絡先（右上に配置） */
.contact {
    background: red;
    color: white;
    padding: 5px 15px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
}

.contact p {
    margin: -3px 0;
}

/* ヒーローセクション */
.hero {
    background: url('welding.jpg') no-repeat center/cover;
    color: black;
    text-align: center;
    padding: 80px 20px;
}

.hero h2 {
    font-size: 3em;
    margin-bottom: 10px;
}

/* 強みセクション */
.about {
  max-width: 600px;
  margin: 0 auto 30px auto;
  padding: 0 10px;
  box-sizing: border-box;
  text-align: left;
  font-size: 1.2em;
}

/* フッター */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px 0;
    margin-top: 20px;
}
.hero-photo {
    width: 80%;         /* 100% - (10% + 10%) = 80% */
    display: block;
    margin: 20px auto;  /* 上下20px、左右は自動センタリング */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* 事例のスタイル */
.case {
    text-align: center;
    padding: 40px 20px;
    background: white;
}

.case p {
    margin-bottom: 30px;
    font-size: 1.4em;
    line-height: 1.8;
}

.case-gallery {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.case-gallery img {
    width: 30%;
    height: auto;  /* 縦横比を保つ */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* 挨拶ページ */
.greeting {
    padding: 40px 20px;
    background: white;
}

.greeting h2 {
    margin-bottom: 20px;
}

.greeting-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* 写真 */
.greeting-photo {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    box-sizing: border-box;
    image-orientation: from-image;  /* ← スマホの回転対策 */
    display: block;
}

/* テキスト */
.greeting-text {
    max-width: 600px;
    text-align: left;
    font-size: 1.1em;
    line-height: 1.8;
}

/* h2は左寄せ */
.greeting-text h2 {
    text-align: left;
    margin: 0 0 10px 0;
}

/* 署名用 */
.signature {
    font-family: 'Yuji Syuku', serif;
    font-size: 2em;
    color: #555;
    margin-top: 30px;
}

/* 会社概要 */
.company {
    text-align: center;
    padding: 40px 20px;
    background: white;
}

.company-table {
    margin: 0 auto;
    border-collapse: collapse;
    width: 80%;
    max-width: 600px;
}

.company-table th,
.company-table td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
}

.company-table th {
    background-color: #f0f0f0;
    width: 30%;
}

.company-table td {
    background-color: #fff;
}

.map {
    margin-top: 30px;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.company-info {
    width: 80%;
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
    font-size: 1.2em;
}

.company-info div {
    margin: 10px 0;
    display: flex;
}

.company-info span {
    display: inline-block;
    width: 120px;  /* ← ここで項目幅を統一 */
    font-weight: bold;
}


/* スマホ対応 */
@media (max-width: 768px) {
    .greeting-content {
        flex-direction: column;
        align-items: center;
    }

    .greeting-text {
        text-align: center;
    }
}


/* ----------- スマホ対応 ----------- */
@media (max-width: 768px) {

    header {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        flex-direction: column;
        padding: 10px 0;
    }

    nav ul li {
        margin: 5px 0;
    }

    .contact {
        margin-top: 10px;
    }

    .greeting-content {
        flex-direction: column;
        align-items: center;
    }

    .greeting-photo {
        width: 90%;
        max-width: 90%;
        height: auto;
        margin-bottom: 20px;
    }

    .greeting-text {
        text-align: left;
    }
}

.repair-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* ← 中央ボックス内で左寄せ */
  margin: 0 auto 30px;
  padding-left: 1.5em;
  max-width: 350px;
  text-align: left;
  font-size: 1.2em;
}

.repair-list li {
  margin-bottom: 10px;
  list-style-type: disc;
}

.image-pair,
.image-trio {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.image-pair img,
.image-trio img {
  width: 30%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.video-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.video-wrapper video {
  width: 90%;
  max-width: 640px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* スマホ対応 */
@media (max-width: 768px) {
  .image-pair img,
  .image-trio img {
    width: 90%;
  }

  .repair-list {
    padding-left: 1em;
    font-size: 1em;
  }
}

/* 強みセクション：横並びレイアウト */
.feature-block {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 40px auto;
  max-width: 1000px;
  flex-wrap: wrap;
}

.feature-block img {
  width: 300px;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.feature-block div {
  flex: 1;
  font-size: 1.1em;
  line-height: 1.8;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .feature-block {
    flex-direction: column;
    text-align: center;
  }

  .feature-block img {
    width: 90%;
  }

  .feature-block div {
    text-align: left;
    width: 100%;
    padding: 0 10px;
  }
}

.feature-photo {
  display: block;
  margin: 20px auto;
  width: 80%;
  max-width: 600px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  box-sizing: border-box;
}

.trust-label {
  display: block;
  background-color: white;
  color: black;
  font-weight: bold;
  border-top: 1px solid red;
  border-right: 1px solid red;
  border-bottom: 1px solid red;
  border-left: 6px solid red;  /* ← 左だけ太く */
  padding: 10px 20px;
  margin: 30px 0 15px 0;
  font-size: 1.5em;
  width: 100%; /* ← ページ幅いっぱいに広げる */
  max-width: 600px; 
  box-sizing: border-box; /* ← paddingを含めて幅100%に収まるように */
  background-clip: padding-box;
}
