/* すべての要素のbox-sizingを統一 */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* HTML5要素を確実にblock表示 */
header, nav, section, article, aside, footer, main, figure {
  display: block;
}

/* bodyの基本設定 */
body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  -webkit-font-smoothing: antialiased; /* フォントを綺麗に見せる */
  overflow-x: hidden; /* 横スクロール防止 */
}

/* リンク */
a {
  text-decoration: none;
  color: inherit;
}

/* 画像は親要素に収める */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* リストのデフォルト装飾を消す */
ul, ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* フォーム要素のリセット（必要なら） */
input, button, textarea, select {
  font: inherit;
  border: none;
  background: none;
}

/* 全体 */
body {
  margin: 0;
  font-family: var(--font-main);
  line-height: 1.7;
  color: #333;
  overflow-x: hidden; /* 横スクロール防止 */
}

/* ヘッダー */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #51BAD5;
  color: #fff;
  z-index: 1000;
  opacity: 0.95;
  height: 70px;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 50px;
  width: 100%;
  margin: 10px 40px;
}

.site-name {
  font-weight: bold;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.nav ul {
  display: flex;
  list-style: none;
  margin-right: 80px;
}

.nav li {
  margin-left: 20px;
}

.nav a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
}

/* メインビジュアル */
.hero {
  margin-top: 10px; /* ヘッダー分 */
  padding: 0 60px;
}

.hero img {
  width: 100%;
  height: auto;
  display: block;
}


/* 共通セクション */
.section {
  padding: 80px 60px 0 60px;
  width: 100%;
  margin: 0 auto;
}

.section-title {
  background-color: #51BAD5;
  color: #fff;
  padding: 25px 20px;
  font-size: 40px;
  height: 120px;
  
}

.section-title span {
  font-size: 20px;
  margin-left: 10px;
}

/* アニメーション */
/* 共通：最初は非表示 */
.fade-up,
.fade-left,
.fade-right {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease;
}

/* 下からふわっと */
.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}

/* 左からふわっと */
.fade-left {
  transform: translateX(-50px);
}
.fade-left.show {
  opacity: 1;
  transform: translateX(0);
}

/* 右からふわっと */
.fade-right {
  transform: translateX(50px);
}
.fade-right.show {
  opacity: 1;
  transform: translateX(0);
}


/* ご挨拶セクション */
#message {
  position: relative;
  width: 100%;
  color: #fff; /* テキストを白に */
  margin-top: 80px;
}

#message .section-content {
  position: relative;
  width: 100%;
  height: 700px; /* セクションの高さを調整 */
  overflow: hidden;
}

#message .section-content img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 画像をトリミングして全体をカバー */
  object-position: bottom;
  display: block;

}

#message .section-content::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.15); /* 半透明の黒で読みやすく */
}

#message .section-content p {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;        /* ← テキストの横幅を抑える（中央にまとまる） */
  text-align: center;    /* ← 中央揃え */
  font-size: 28px;
  line-height: 1.5;        /* ← 行間をゆったり */
  color: #fff;           /* ← 背景に合わせて白推奨 */
  z-index: 1;
  white-space: pre-line; /* ← <br> を改行として扱う＋自動折り返し */
  font-family: "Kosugi Maru";
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5); 
}
/* Service */
#service{
  margin: 80px 0;
}
.service-list {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.service-item {
  flex: 1 1 calc(50% - 20px);
}

.service-item img {
  width: 100%;
  border-radius: 4px;
  height: 500px;
}

.service-item h3 {
  margin: 10px 0;
  font-size: 24px;
}
.service-item p {
  width: 100%;
  font-size: 20px;
  margin-top: 30px;
  font-family: "Kosugi Maru";
  color: #616161;
}

/* Company */
#company {
  margin: 80px 0;
}
.company-table {
  width: 100%;
  border-collapse: separate; /* ← collapseをやめる */
  border-spacing: 0 6px;    /* ← 左右0px、上下10pxの隙間 */
}

.company-table th,
.company-table td {
  font-family: "Kosugi Maru";
  padding: 10px;
  text-align: left;
  height: 100px;
  margin-bottom: 50px;
}
.company-table td {
  border-bottom: 1px solid #ddd;
  font-size: 18px;
}

.company-table th {
  background: #eeee;
  width: 15%;
  text-align: center;
  font-size: 16px;
}

/* Access */
/* Access セクション専用のヘッダー横並び */
#access .section-header {
  display: flex;
  justify-content: space-between; /* 左右に分ける */
  align-items: center;        /* 上揃えにする */
  gap: 20px;
  background-color: #51BAD5;
  color: #fff;
  height: 200px;
  padding: 0 20px;
  

}

#access .section-header h2{
  font-size: 40px;
}
/* 左側（見出し＋「本社」ラベル） */
#access .section-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Access 見出し（#access 内だけ上書きして高さなどを解除） */
#access .section-title {
  /* 元の共通スタイルに高さがある場合があるので、アクセス欄ではリセット */
  background: transparent;
  color: inherit;
  padding: 0;
  height: auto;
  font-size: 32px;
  margin: 0;
}

/* 「本社」ラベル */
#access .office-label {
  margin-top: 8px;
  font-size: 32px;
  font-weight: 600;
  color: #fff;
}

/* 右側（住所・連絡先） */
#access .section-right {
  max-width: 48%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

#access .office-contact {
  font-size: 18px;
  line-height: 1.7;
  margin: 0;
}

.map iframe {
  width: 100%;
  height: 650px;

}
.map iframe:first-of-type {
  margin-bottom: 50px;
}

/* フッター */
.footer {
  background-color: #51BAD5;
  text-align: center;
  color: #fff;
  padding: 20px;
  margin: 0 60px;
  font-size: 28px;
  height: 80px;
}

/* -------------------
レスポンシブ対応
------------------- */

/* タブレット用（768px〜1024px） */
@media (max-width: 1024px) {
  .section {
    padding: 60px 30px 0 30px;
  }

  .section-title {
    font-size: 32px;
    padding: 20px;
    height: auto;
  }

  .section-title span {
    font-size: 16px;
  }

  /* message テキスト調整 */
  #message .section-content {
    height: 500px; /* 高さを少し縮める */
  }

  #message .section-content .fade-up {
    font-size: 20px;
    line-height: 1.4;
    top: 50%; /* 位置調整 */
  }

  /* service の画像高さ調整 */
  .service-item img {
    height: 350px;
  }

  .service-item p {
    font-size: 16px;
  }
}

/* スマホ用（〜767px） */
@media (max-width: 767px) {
  /* ヘッダー */
  .header {
    height: 50px;
  }
  .header-inner {
    justify-content: left; /* ロゴ中央寄せ */
    margin: 0 20px;
    font-size: 20px;
  }

  .nav {
    display: none; /* ナビ非表示 */
  }

  /* hero */
  .hero {
    padding: 0 ;
  }
  .hero img {
    height: 700px;
    object-fit: cover;
  }

  .section {
    padding: 0px;
  }
  .section-title {
  background-color: #51BAD5;
  color: #fff;
  padding: 25px 20px;
  font-size: 30px;
  height: 100px;
  
}

.section-title span {
  font-size: 20px;
  margin-left: 10px;
}

  /* message セクション */
  #message {
    margin-top: 0px;
  }
  #message .section-content {
    height: 500px;
  }

  #message .section-content .fade-up {
    font-size: 13px; /* 小さめに */
    line-height: 2;
    
    top: 45%; /* 文字を下寄りに調整 */
    white-space: pre-line; /* <br>を保持して改行 */
  }

  /* service */
  #service{
  margin: 50px 0 ;

}
  .service-list {
    flex-direction: column;
    padding: 0 10px;

  }

  .service-item {
    flex: 1 1 100%;
  }

  .service-item img {
    height: auto;
  }

  .service-item h3 {
    font-size: 20px;
    text-align: center;
  }

  .service-item p {
    font-size: 14px;
  }

  /* company table */
  .company-table,
  .company-table tbody,
  .company-table tr,
  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
  }
  .company-table {
    margin: 20px 0;
    padding: 0 20px;
  }

  .company-table th,
  .company-table td {
    display: flex;              /* 中の文字をflexで扱う */
    align-items: center;        /* ←縦方向の中央揃え */
    justify-content: center;    /* ←横方向の中央揃え（tdは left にしてもOK） */
    min-height: 60px;           /* 縦幅をある程度固定 */
    box-sizing: border-box;
    margin-bottom: 0px;
  }

  .company-table th {
    background: #f5f5f5;
    font-weight: bold;
    font-size: 18px;
    height: 60px;
  }

  .company-table td {
    justify-content: flex-start; /* 中身は左寄せ */
    font-size: 16px;
    padding: 0 10px;
    height: 80px;
  }



  /* access */
  #access .section-header {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    padding: 15px;
  }

  #access .section-left h2 {
    font-size: 24px;
  }

  #access .office-label {
    font-size: 20px;
  }

  #access .office-contact {
    font-size: 14px;
  }
  .map {
    margin: 0px;
  }

  .map iframe {
    height: 300px;
  }

  /* footer */
  .footer {
    font-size: 14px;
    padding: 15px;
    margin: 0;
    height: 50px;
  }
}

