
/* 全体の基本設定 */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: #172334;
  background-color: #ffffff;
  line-height: 1.8;
}

/* ヘッダー */
header {
  background-color: #ffffff;
  padding: 22px 7%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  border-bottom: 1px solid #e5eaf0;
}

header h1 {
  margin: 0;
  font-size: 25px;
  color: #173d65;
  letter-spacing: 1px;
}

/* メニュー */
nav {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}

nav a {
  color: #172334;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
}

nav a:hover {
  color: #1769aa;
}

/* トップのメインエリア */
#home {
  background: linear-gradient(120deg, #102c4a, #2378b8);
  color: #ffffff;
  text-align: center;
  padding: 130px 20px;
}

#home h2 {
  font-size: 40px;
  margin: 0 0 20px;
  letter-spacing: 2px;
}

#home p {
  font-size: 17px;
  letter-spacing: 1px;
}

/* 各セクション */
#about,
#business,
#contact {
  text-align: center;
  padding: 85px 20px;
}

#about,
#contact {
  background-color: #f3f7fb;
}

#business {
  background-color: #ffffff;
}

section h2 {
  font-size: 28px;
  color: #173d65;
  margin-bottom: 25px;
}

#home h2 {
  color: #ffffff;
}

/* フッター */
footer {
  background-color: #102c4a;
  color: #ffffff;
  text-align: center;
  padding: 25px 15px;
  font-size: 12px;
}

/* スマートフォン対応 */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center;
  }

  nav {
    justify-content: center;
    gap: 15px;
  }

  #home {
    padding: 90px 20px;
  }

  #home h2 {
    font-size: 28px;
  }

  #about,
  #business,
  #contact {
    padding: 60px 20px;
  }
}

/* 代表者紹介 */
.representative {
  max-width: 800px;
  margin: 50px auto 0;
  padding: 40px 25px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.representative h3 {
  color: #173d65;
}

.representative-title {
  font-size: 13px;
  color: #64748b;
}

/* お問い合わせ */
.contact-info {
  max-width: 550px;
  margin: 30px auto;
  padding: 25px;
  background: #ffffff;
  border-radius: 10px;
}

.contact-info a {
  color: #1769aa;
  font-weight: bold;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* 会社概要 */
#company {
  background-color: #ffffff;
  padding: 90px 20px;
}

.company-inner {
  max-width: 900px;
  margin: 0 auto;
}

#company h2 {
  text-align: center;
  color: #1769aa;
  font-size: 28px;
  letter-spacing: 2px;
  margin-bottom: 5px;
}

#company h3 {
  text-align: center;
  color: #172334;
  font-size: 18px;
  margin-bottom: 45px;
}

/* 会社概要テーブル */
.company-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.company-table th,
.company-table td {
  padding: 20px 18px;
  border-bottom: 1px solid #e1e7ed;
  font-size: 15px;
  vertical-align: top;
}

.company-table th {
  width: 30%;
  color: #173d65;
  background-color: #f3f7fb;
  font-weight: bold;
}

.company-table td {
  color: #172334;
  overflow-wrap: anywhere;
}

.company-table a {
  color: #1769aa;
  text-decoration: none;
}

.company-table a:hover {
  text-decoration: underline;
}

/* スマートフォン対応 */
@media (max-width: 768px) {
  #company {
    padding: 60px 15px;
  }

  .company-table th,
  .company-table td {
    padding: 14px 10px;
    font-size: 13px;
  }

  .company-table th {
    width: 35%;
  }
}

/* 事業紹介 */
#business {
  background: #ffffff;
  padding: 90px 20px;
}

.business-inner {
  max-width: 1100px;
  margin: 0 auto;
}

#business h2 {
  color: #1769aa;
  margin-bottom: 5px;
  letter-spacing: 2px;
}

#business h3 {
  font-size: 20px;
  color: #173d65;
  margin-top: 0;
}

.business-lead {
  color: #64748b;
  margin-bottom: 40px;
}

.business-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.business-card {
  text-align: left;
  border: 1px solid #e5eaf0;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
}

.business-card img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
  background: #edf2f7;
}

.business-content {
  padding: 25px;
}

.business-label {
  color: #1769aa;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 1px;
}

.business-content h4 {
  color: #173d65;
  font-size: 20px;
  margin: 10px 0;
}

.business-content p {
  line-height: 1.9;
}

/* スマホでは縦並び */
@media (max-width: 768px) {
  .business-grid {
    grid-template-columns: 1fr;
  }

  .business-card img {
    height: 220px;
  }
}

/* HOMEのボタン */
.hero-button {
  display: inline-block;
  margin-top: 25px;
  padding: 14px 30px;
  background-color: #ffffff;
  color: #173d65;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  border-radius: 5px;
  transition: 0.3s;
}

.hero-button:hover {
  background-color: #dcecf7;
  transform: translateY(-3px);
}

/* スマートフォン表示の調整 */
@media (max-width: 600px) {

  header {
    padding: 18px 15px;
  }

  header h1 {
    font-size: 21px;
  }

  nav {
    justify-content: center;
    gap: 12px;
  }

  nav a {
    font-size: 11px;
  }

  #home {
    padding: 85px 20px;
  }

  #home h2 {
    font-size: 26px;
    line-height: 1.6;
  }

  #home p {
    font-size: 13px;
  }

  .hero-button {
    padding: 12px 22px;
    font-size: 12px;
  }

}

/* ABOUT US */
.about-content {
  max-width: 780px;
  margin: 0 auto 50px;
  text-align: center;
}

.about-content h3 {
  font-size: 15px;
  color: #173d65;
  margin-bottom: 25px;
}

.about-content h4 {
  font-size: 25px;
  color: #173d65;
  line-height: 1.6;
  margin-bottom: 30px;
}

.about-content p {
  font-size: 15px;
  color: #475569;
  line-height: 2.2;
  margin-bottom: 20px;
}

@media (max-width: 600px) {
  .about-content h4 {
    font-size: 21px;
  }

  .about-content p {
    font-size: 14px;
  }
}

/* 代表挨拶：日英併記 */
.message-text h5 {
  color: #1769aa;
  font-size: 15px;
  margin-bottom: 25px;
  letter-spacing: 1px;
}

.message-english {
  margin-top: 45px;
  padding-top: 35px;
  border-top: 1px solid #e1e7ed;
}

.message-english p {
  line-height: 2;
}

/* フッター */
.site-footer {
  background: #102c4a;
  color: #ffffff;
  padding: 55px 20px 20px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-company h2 {
  color: #ffffff;
  font-size: 23px;
  margin: 0 0 15px;
}

.footer-company p {
  color: #c5d7e8;
  font-size: 13px;
  margin: 5px 0;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 35px 0;
  justify-content: center;
}

.footer-nav a {
  color: #ffffff;
  font-size: 12px;
  text-decoration: none;
}

.footer-nav a:hover {
  color: #a9d6f5;
}

.footer-bottom {
  border-top: 1px solid #35516d;
  padding-top: 20px;
  text-align: center;
}

.footer-bottom p {
  font-size: 11px;
  color: #afc4d6;
}

@media (max-width: 600px) {
  .footer-company {
    text-align: center;
  }

  .footer-nav {
    gap: 15px;
  }
}

/* 各セクションの上下余白を調整 */
#about,
#business,
#company,
#contact {
  padding-top: 45px;
  padding-bottom: 55px;
}

/* 見出しの余白を調整 */
section h2 {
  margin-top: 0;
  margin-bottom: 15px;
}

/* スマートフォン */
@media (max-width: 600px) {
  #about,
  #business,
  #company,
  #contact {
    padding-top: 30px;
    padding-bottom: 40px;
  }
}

/* HOMEの背景画像 */
#home {
  background-image: url("images/home.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* HOME背景画像とボタンの配置 */
#home {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  background-image: url("images/home.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 右下のボタン */
#home .hero-button {
  position: absolute;
  right: 5%;
  bottom: 6%;
  margin: 0;
  padding: 14px 28px;
  background: #ffffff;
  color: #173d65;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 5px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#home .hero-button:hover {
  background: #dcecf7;
}

/* スマートフォン表示 */
@media (max-width: 600px) {
  #home {
    aspect-ratio: 16 / 9;
    padding: 0;
  }

  #home .hero-button {
    right: 3%;
    bottom: 5%;
    padding: 8px 12px;
    font-size: 10px;
  }
}

/* バーのロゴだけ全体表示 */
.business-card:nth-child(2) img {
  object-fit: contain;
  background-color: #000000;
}

