/*==================================================
  基本設定
==================================================*/
:root {
  --primary-color: #00a06e;
  --base-font-size: 15px;
  --base-line-height: 1.9;
}
body {
  font-family: 'Noto Sans JP', "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  margin: 0;
  color: #333;
  background-color: #fff;
  font-size: var(--base-font-size);
  line-height: var(--base-line-height);
  letter-spacing: 0.04em;
}
img { max-width: 100%; height: auto; vertical-align: bottom; }
a { color: var(--primary-color); text-decoration: none; }
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}
.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 25px;
}

.nobr {
  display: inline;
}

/*==================================================
  ヘッダー（高さ 70px / すっきりサイズ）
==================================================*/
.header {
  background-color: #fff;
  border-bottom: 2px solid var(--primary-color);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  padding: 0 20px;
}
.header-center {
  display: flex;
  align-items: center;
}
.header-center:hover { opacity: 0.8; }
.header-center img { width: 35px; height: 35px; margin-right: 12px; }
.header-company-name {
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--primary-color);
  white-space: nowrap;
}
.global-nav-pc { display: none; }
.global-nav-pc ul { list-style: none; margin: 0; padding: 0; display: flex; }
.global-nav-pc li a {
  display: block; padding: 10px 15px;
  color: #333; font-weight: bold; font-size: 0.95rem;
}
.global-nav-pc li a:hover { color: var(--primary-color); }
.global-nav-pc li a strong {
  color: var(--primary-color);
}
.has-submenu { position: relative; }
.submenu {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #fff;
  border: 1px solid #eee;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  list-style: none;
  padding: 10px 0;
  margin: 0;
  min-width: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease-in-out;
}
.has-submenu:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.submenu li a {
  padding: 10px 20px;
  white-space: nowrap;
}
.submenu li a strong {
  border-bottom: none;
}

/*==================================================
  スマホ用ナビゲーション
==================================================*/
.nav-toggle-button {
  margin-left: auto;
  position: relative;
  z-index: 110;
}
.nav-toggle-button { background: none; border: none; width: 30px; height: 25px; cursor: pointer; padding: 0; }
.nav-toggle-button span {
  display: block; width: 100%; height: 3px;
  background-color: var(--primary-color);
  border-radius: 3px; transition: all 0.3s; position: absolute;
}
.nav-toggle-button span:nth-child(1) { top: 0; }
.nav-toggle-button span:nth-child(2) { top: 11px; }
.nav-toggle-button span:nth-child(3) { bottom: 0; }
.nav-toggle-button.is-active span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.nav-toggle-button.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle-button.is-active span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }
.global-nav-sp {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background-color: rgba(0, 160, 110, 0.95);
  z-index: 99; display: flex; justify-content: center; align-items: center;
  opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
}
.global-nav-sp.is-active { opacity: 1; visibility: visible; }
.global-nav-sp ul { list-style: none; padding: 0; text-align: center; }
.global-nav-sp li a {
  display: block; color: #fff; font-size: 1.6rem; font-weight: bold; padding: 25px;
}
.submenu-toggle { position: relative; }
.submenu-toggle::after {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: rotate(135deg);
  transition: transform 0.3s;
  margin-left: 10px;
}
.submenu-toggle.is-open::after {
  transform: rotate(-45deg);
}
.submenu-sp {
  list-style: none;
  padding: 0;
  background-color: rgba(0,0,0,0.1);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}
.submenu-sp li a {
  font-size: 1.2rem;
  padding: 15px;
}

/*==================================================
  メインコンテンツ (トップページ共通)
==================================================*/
main { padding-top: 70px; }
.slideshow {
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 420px;
  position: relative;
  background-color: #f7f7f7;
  overflow: hidden;
  border-radius: 6px;
}
.slideshow img {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  max-width: 100%; max-height: 100%;
  object-fit: cover;
  opacity: 0; transition: opacity 1.5s ease-in-out;
}
.slideshow img.active { opacity: 1; }
.content-section { padding: 80px 0; }
.bg-lightgray { background-color: #f7f7f7; }

/* 中央揃えの見出し */
.section-title {
  text-align: center; font-size: 1.8rem;
  font-weight: 700;
  margin-top: 0; 
  margin-bottom: 50px;
  color: var(--primary-color);
  line-height: 1.2;
  letter-spacing: 0.05em;
}
.section-subtitle {
  display: block;
  font-size: 0.8rem;
  color: #aaa;
  font-weight: bold;
  letter-spacing: 0.15em;
  margin-top: 6px;
}

.news-list { list-style: none; padding: 0; margin: 0; }
.news-list li { border-bottom: 1px solid #eee; }
.news-list a { display: block; padding: 20px 15px; color: #333; font-size: 0.95rem; }
.news-list a:hover { background-color: #f0f0f0; }
.news-list time { margin-right: 15px; font-weight: bold; }
.card {
  background-color: #fff; box-shadow: 0 4px 15 rgba(0,0,0,0.1);
  margin-bottom: 30px;
}
.card-body { 
  padding: 35px 30px;
}
.card-body h3 { font-size: 1.3rem; margin-top: 0; margin-bottom: 12px; color: var(--primary-color); }
.card-body p { font-size: 0.95rem; margin-bottom: 20px; }
.card-button {
  display: inline-block; background-color: var(--primary-color);
  color: #fff; padding: 10px 20px; border-radius: 4px; font-weight: bold;
  font-size: 0.95rem;
}
.card-button:hover { opacity: 0.8; }
.access-info dl { margin: 0; font-size: 0.95rem; }
.access-info dt { font-weight: bold; margin-top: 1.2em; }
.access-info dd { margin-left: 0; margin-bottom: 1.2em; }
.access-map { margin-top: 25px; }

/*==================================================
  スポンサー情報
==================================================*/
.sponsor-wrapper {
  display: flex; 
  flex-direction: column;
  align-items: center; 
  gap: 35px;
}
.sponsor-item {
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  color: #333;
  width: 100%; 
  max-width: 600px;
}
.sponsor-item:hover { opacity: 0.8; }
.sponsor-item img {
  width: 100%;
  max-width: 340px;
  height: 170px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  margin-bottom: 15px;
}
.sponsor-name { margin: 0; font-weight: bold; font-size: 1.3rem; }

/*==================================================
  会社案内ページ ＆ 共通下層ページスタイル
==================================================*/
.page-header {
  padding: 80px 0; text-align: center; color: #fff;
  background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('photo/RIMG9004.JPG');
  background-size: cover; background-position: center;
}
.page-header h1 { margin: 0; font-size: 2.5rem; }
.page-lead {
  text-align: center;
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 60px;
}
.greeting-wrapper-textonly {
  max-width: 800px; margin: 0 auto; text-align: center;
  background-color: #f7f7f7; padding: 50px; border-radius: 10px;
}
.greeting-wrapper-textonly h3 {
  font-size: 2.0rem; margin-top: 0; margin-bottom: 40px;
  color: var(--primary-color);
}
.greeting-wrapper-textonly p { text-align: left; font-size: 1.1rem; }
.greeting-name {
  text-align: right !important; font-weight: bold;
  font-size: 1.2rem; margin-top: 40px;
}

/* 経営方針 */
.policy-wrapper { display: flex; justify-content: space-around; gap: 30px; }
.policy-item {
  background-color: #fff; border-top: 5px solid var(--primary-color);
  padding: 30px; text-align: center;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08); width: 30%;
}
.policy-title {
  font-size: 2rem; font-weight: 900;
  color: var(--primary-color); margin-bottom: 20px;
}
.policy-item p { font-size: 1rem; text-align: left; }

/* テーブル（会社概要・建設業許可など） */
.profile-table, .history-table {
  width: 100%; border-collapse: collapse;
}
.profile-table th, .profile-table td,
.history-table th, .history-table td {
  border: 1px solid #e0e0e0; padding: 20px;
  text-align: left; vertical-align: top;
}
.profile-table th, .history-table th {
  background-color: #f7f7f7; font-weight: bold; width: 220px;
}

/* 組織図 */
.organization-chart { max-width: 1000px; margin: 0 auto; }
.organization-chart img {
  border: 1px solid #ddd;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}
.section-divider {
  border: none;
  border-top: 2px dotted #ccc;
  margin: 60px auto;
}

/*--------------------------------------------------
  【超重要】左寄せ用の見出しとサブタイトル
--------------------------------------------------*/
.works-category-title {
  display: flex;
  justify-content: space-between; /* 日本語を左、英語を右に */
  align-items: baseline; /* 文字の底辺を揃える */
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--primary-color);
  border-bottom: 3px solid var(--primary-color);
  padding-bottom: 10px;
  margin-bottom: 40px;
}
.works-category-subtitle {
  font-size: 0.85rem;
  color: #aaa;
  font-weight: bold;
  letter-spacing: 0.15em;
}

/* 施工実績・活動記録のグリッド */
.works-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.works-item {
  background-color: #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.works-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.works-item img { width: 100%; height: 220px; object-fit: cover; }
.works-item-body { padding: 20px; }
.works-item-body h3 { font-size: 1.3rem; margin-top: 0; margin-bottom: 10px; }
.works-item-body p { font-size: 1rem; margin: 0; }

/*--------------------------------------------------
  表彰状 2枚並び用のスタイル
--------------------------------------------------*/
.award-images-row {
  display: flex;
  gap: 2px;
  background-color: #eee;
}
.award-images-row a {
  flex: 1;
  overflow: hidden;
}
.award-images-row img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.award-images-row a:hover img {
  transform: scale(1.05);
}
.award-date {
  font-size: 0.9rem;
  font-weight: bold;
  color: #777;
  margin-bottom: 10px;
}

/* 採用情報 */
.message-box { text-align: center; max-width: 800px; margin: 0 auto; }
.message-box h3 { font-size: 2.0rem; color: var(--primary-color); margin-bottom: 30px; }
.message-box p { font-size: 1.2rem; }
.ideal-candidate-list { list-style: none; padding-left: 0; max-width: 800px; margin: 0 auto; }
.ideal-candidate-list li {
  font-size: 1.1rem; padding: 15px 0 15px 30px;
  border-bottom: 1px dotted #ccc; position: relative;
}
.ideal-candidate-list li::before {
  content: '✔'; color: var(--primary-color);
  font-weight: bold; position: absolute; left: 0;
}
.contact-box {
  text-align: center; max-width: 700px; margin: 0 auto;
  padding: 40px; border: 2px solid var(--primary-color); border-radius: 10px;
}
.contact-box p { margin: 0 0 20px 0; }
.contact-box-tel { font-size: 2.0rem; font-weight: bold; color: #333; }

/* 愛ロード・活動紹介 */
.activity-intro {
  display: flex;
  align-items: center;
  gap: 40px;
}
.activity-text { flex: 1; }
.activity-text h2 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-top: 0;
}
.activity-photo {
  flex: 1;
  max-width: 500px;
}
.activity-photo img {
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* プライバシーポリシー */
.policy-lead {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 50px;
  padding: 30px;
  background-color: #f7f7f7;
  border-left: 5px solid var(--primary-color);
}
.policy-title {
  font-size: 1.8rem;
  color: #333;
  margin-top: 60px;
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-color);
}
.container-narrow p,
.container-narrow ul {
  font-size: 1.1rem;
  line-height: 2.0;
  margin-bottom: 25px;
}
.container-narrow ul {
  list-style: none;
  padding-left: 0;
}
.container-narrow ul li {
  padding-left: 1.5em;
  position: relative;
}
.container-narrow ul li::before {
  content: '・';
  position: absolute;
  left: 0;
  color: var(--primary-color);
}
.policy-enacted-date {
  text-align: right;
  margin-top: 60px;
  font-size: 1.1rem;
}
.video-container {
  max-width: 900px;
  margin: 0 auto 40px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}
.video-container video {
  width: 100%;
  height: auto;
  display: block;
}
.iso-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  background-color: #f7f7f7;
  padding: 40px;
  border-radius: 10px;
}
.iso-mark {
  flex-shrink: 0;
  width: 200px;
}
.iso-text {
  flex-grow: 1;
}
.iso-details {
  margin-top: 30px;
  border-top: 1px solid #ddd;
  padding-top: 20px;
}
.iso-details dt {
  float: left;
  clear: left;
  width: 100px;
  font-weight: bold;
}
.iso-details dd {
  margin-left: 110px;
  margin-bottom: 10px;
}

/* ページトップに戻るボタン */
.back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 45px;
  height: 45px;
  box-sizing: border-box;
  background-color: #fff;
  color: var(--primary-color) !important;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 90;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  background-color: var(--primary-color);
  color: #fff !important;
}

/*==================================================
  フッター
==================================================*/
.footer {
  background-color: var(--primary-color);
  padding: 30px 0; text-align: center;
}
.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
}
.footer-links a {
  color: #fff;
  font-size: 0.85rem;
  font-weight: bold;
}
.footer-links a:hover {
  text-shadow: 0 0 5px rgba(255,255,255,0.5);
  text-decoration: underline;
}
.footer p.copyright {
  color: #fff;
  font-size: 0.8rem;
  font-weight: normal;
  margin: 0;
  opacity: 0.8;
}

/*==================================================
  PC用スタイル（画面幅が1200px以上で適用）
==================================================*/
@media (min-width: 1200px) {
  .nav-toggle-button { display: none; }
  .global-nav-pc {
    display: flex; position: absolute; right: 25px;
    top: 50%; transform: translateY(-50%);
  }
  .header-center {
    position: static;
    transform: none;
  }
  .card-wrapper { display: flex; justify-content: space-between; gap: 25px; }
  .card { width: calc(33.333% - 18px); margin-bottom: 0; }
  .access-wrapper { display: flex; align-items: center; gap: 40px; }
  .access-info, .access-map { flex: 1; margin-top: 0; }
  .sponsor-item img {
    width: 440px;
    height: 220px;
    object-fit: cover;
  }
}

/*==================================================
  スマホ・タブレット用スタイル（画面幅が1199px以下で適用）
==================================================*/
@media (max-width: 1199px) {
  body {
    --base-font-size: 14px; /* スマホ時の基本サイズを14pxに落とし、全体的に改行が入りにくくしました */
  }
  .global-nav-pc { display: none; }
  
  .header-center { position: static; transform: none; }
  .header-company-name { 
    font-size: 1.15rem; /* スマホでの社名の改行を防ぎます */
    letter-spacing: -0.02em; /* 字間をほんの少しだけ詰め、1行の収まりを綺麗に */
  }
  
  .page-header {
    padding: 55px 0; /* 縦幅を少しコンパクトに */
  }
  .page-header h1 { font-size: 1.8rem; }
  
  /* スマホでの見出しの縮小 */
  .section-title {
    font-size: 1.5rem; /* スマホではタイトルを1.5remにして改行を防ぎます */
    margin-bottom: 40px;
  }
  .section-subtitle {
    font-size: 0.75rem;
    margin-top: 4px;
  }
  
  /* 代表挨拶ブロックのスマホ調整 */
  .greeting-wrapper-textonly { 
    padding: 35px 20px; /* 左右の余白を少し詰め、文字が広く書けるようにします */
  }
  .greeting-wrapper-textonly h3 { 
    font-size: 1.3rem; /* 2.0remから大幅に縮小し、長いコピーが綺麗に収まるようにします */
    line-height: 1.5;
    margin-bottom: 25px;
  }
  .greeting-wrapper-textonly p {
    font-size: 0.95rem;
  }
  
  /* 経営方針 */
  .policy-wrapper { flex-direction: column; gap: 20px; }
  .policy-item { width: auto; padding: 25px; }
  .policy-title { font-size: 1.6rem; margin-bottom: 12px; }
  
  /* カード内の文字サイズ調整 */
  .card-body {
    padding: 25px 20px;
  }
  .card-body h3 {
    font-size: 1.15rem;
  }
  .card-body p {
    font-size: 0.9rem;
  }
  
  /* テーブル（スマホでの縦積み化） */
  .profile-table th, .profile-table td,
  .history-table th, .history-table td {
    display: block; width: auto;
    border-right: 1px solid #e0e0e0; border-left: 1px solid #e0e0e0;
    padding: 15px;
  }
  .profile-table th, .history-table th {
    background-color: transparent; border-bottom: none; padding-bottom: 5px;
    width: auto;
  }
  .profile-table td, .history-table td { padding-top: 0; }
  
  .message-box h3 { font-size: 1.4rem; }
  .contact-box { padding: 30px 20px; }
  .contact-box-tel { font-size: 1.5rem; }
  .activity-intro { flex-direction: column; }
  .policy-title { font-size: 1.3rem; }
  
  .iso-wrapper {
    flex-direction: column;
    padding: 25px 15px;
  }
  .iso-mark {
    margin-bottom: 25px;
    width: 130px;
  }
  
  /* スポンサーのスマホサイズ調整（はみ出しを防止） */
  .sponsor-item img {
    width: 100%;
    max-width: 280px; /* 横幅を280pxに制限し、はみ出しを防ぎます */
    height: 140px;
  }
  .sponsor-name {
    font-size: 1.1rem;
  }
  
  /* スマホでの左寄せ見出しの英語折り返し */
  .works-category-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    font-size: 1.4rem;
    margin-bottom: 25px;
  }
  .works-category-subtitle {
    font-size: 0.75rem;
  }
}

/*==================================================
  お電話お問い合わせボタン・地図ナビ用追加スタイル
==================================================*/
.contact-cta {
  margin-top: 30px;
  background-color: #f7f7f7;
  padding: 25px;
  border-radius: 6px;
  border-left: 5px solid var(--primary-color);
}
.cta-lead {
  font-size: 0.95rem;
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 20px;
  line-height: 1.5;
}
.cta-tel-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
  color: #fff !important;
  padding: 15px 30px;
  border-radius: 4px;
  font-size: 1.1rem;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: all 0.2s ease-in-out;
  text-decoration: none;
}
.cta-tel-button span {
  font-size: 1.3rem;
  margin-right: 10px;
}
.cta-tel-button:hover {
  background-color: #007a54;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.map-route-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #4285F4;
  color: #fff !important;
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 0.95rem;
  margin-top: 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: all 0.2s ease-in-out;
  text-decoration: none;
}
.map-route-button span {
  font-size: 1.1rem;
  margin-right: 8px;
}
.map-route-button:hover {
  background-color: #357ae8;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/*==================================================
  極端に画面が狭いスマホ用（iPhone SEなど：横幅375px以下）
==================================================*/
@media (max-width: 375px) {
  .header-company-name {
    font-size: 1.0rem; /* 社名がボタンやハンバーガーと被るのを防ぎます */
  }
  .cta-tel-button {
    padding: 12px 20px;
    font-size: 0.95rem; /* 電話ボタンも少しコンパクトに */
  }
}