/* リセット */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "游明朝", "Yu Mincho", "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", "MS P明朝", "MS PMincho", serif;  color: #333;
  background: #fff;
}

a {
  text-decoration: none;
  color: inherit;
}


/* ヘッダー */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.container img {
  width: 50px;
  height: auto;
  padding-right: 3px;
}

.logo {
  display: flex;
  align-items: center;
}

.site-header {
  background: #002366;
  color: #fff;
  padding: 10px 0;
}

.logo a {
  font-size: 1.8rem;
  font-weight: bold;
  color: #fff;
}

.navigation ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

.navigation a {
  color: #fff;
  padding: 8px 12px;
  transition: background-color 0.3s, color 0.3s;
  border-radius: 4px;
  font-size: 1rem;
}

.navigation a:hover {
  background-color: #0055a5;
  text-decoration: underline;
}

/* デスクトップ時のハンバーガーボタン非表示 */
.menu-toggle {
  display: none;
}

@media screen and (max-width: 768px) {
  .navigation {
    display: none;
    flex-direction: column;
    background-color: #002366;
    width: 100%;
  }

  .navigation.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
    background-color: #002366;
    color: #fff;
    border: none;
    font-size: 1.5rem;
    padding: 10px;
    cursor: pointer;
  }

  .site-header {
    position: relative;
  }

  .logo {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .navigation ul {
    flex-direction: column;
    gap: 0;
  }

  .navigation a {
    padding: 15px;
    border-top: 1px solid #0055a5;
  }

  .menu-toggle {
    display: block;
  }
}



/* メインビジュアル */

.main-visual {
  position: relative;
}

.main-visual img {
  width: 100%;
  height: auto;
}

.main-visual-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 4rem;
  font-weight: bold;
  font-family: serif;
}

/* トピックス */
.topics {
  padding: 20px 0 40px;
  text-align: center;
  color: black;
}

.topics h2 {
  font-size: 3rem;
  color: #002366;
  /* text-align: center; */
}

.topics li {
  margin-top: 15px;
  text-decoration: underline;
}

.company-info , .recruit h2 {
  margin-bottom: 20px;
}

.company-text,
.company-image,
.recruit-text,
.recruit-img {
  flex: 1;
  padding: 20px;
}

.company-text h2, .recruit h2{
  font-size: 4rem;
  color: #fff;
  text-align: center;
}

p {
  color: #fff;
}

.btn {
  display: inline-block;
  background: #fff;
  color: #002366;
  padding: 10px 20px;
  border-radius: 5px;
  margin-top: 20px;
  font-weight: bold;
  text-align: center;
}

@media (min-width: 768px) {
  .navigation ul {
    justify-content: flex-end;
  }
}
 
.company-info, .recruit {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  gap: 60px;
  align-items: center;
  background-color: #002366;
  padding: 20px;
  margin: 0 auto 40px;
  margin-top: 20px;
}


.works {
  position: relative;
  padding: 80px 20px;
  margin: 60px 0;
  overflow: hidden;
  background-color: #fff;
  text-align: center;
}

/* 背景イメージ 左右反転 */
.works::before,
.works::after {
  content: "";
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  background-image: url(../img/works_bg_img.png);
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.1;
  z-index: 0;
}
.works::before {
  left: 0;
  transform: scaleX(-1);

}
.works::after {
  right: 0;
}

.works > * {
  position: relative;
  z-index: 1;
}

.works h2 {
  font-size: 3.5rem;
  color: #002366;
  margin-bottom: 10px;
}

.works p {
  font-size: 1.2rem;
  color: #002366;
  margin: 0 auto 40px;
}

.works-gallery {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.works-gallery img {
  height: 300px;
  width: auto;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border: 1px solid #ddd;
  border-radius: 8px;
}

/* ボタン */
.works-btn {
  display: inline-block;
  background: #002366;
  color: #fff;
  padding: 14px 60px;
  border-radius: 999px;
  font-weight: bold;
  font-size: 18px;
  text-align: center;
  text-decoration: none;
  transition: background 0.3s;
}

.works-btn:hover {
  background: #001244;
}

@media screen and (max-width: 768px) {
  /* メインビジュアル */
  .main-visual img {
    width: 100%;
    height: auto;
  }

  .main-visual-text {
    font-size: 17.5px;
    text-align: center;
    text-shadow: 0 0 2px black;
  }

  /* トピックス */
  .topics h2 {
    font-size: 2rem;
  }

  .topics li {
    font-size: 1rem;
  }

  /* 会社案内・採用案内（横並び→縦並び） */
  .company-info, .recruit {
    flex-direction: column;
    gap: 20px;
    margin: 20px 20px;
  }

  .company-image img,
  .recruit-img img {
    width: 100%;
    height: auto;
  }

  .company-text h2,
  .recruit h2 {
    font-size: 2.5rem;
  }

  .company-text p,
  .recruit-text p {
    font-size: 1rem;
    padding: 0 10px;
  }

  /* ボタン */
  .btn, .works-btn {
    width: 80%;
    padding: 12px;
    font-size: 1rem;
    margin: 0 auto;
    display: block;
  }

  /* 施工実績 */
  .works {
    padding: 40px 10px;
    margin: 30px 0;
  }

  .works h2 {
    font-size: 2.5rem;
  }

  .works p {
    font-size: 1rem;
    padding: 0 10px;
  }

  .works-gallery {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .works-gallery img {
    width: 90%;
    max-width: 300px;
  }
}

  /* フッター */
/* ------------------------------
   PC・共通スタイル
------------------------------ */

.site-footer {
  margin-top: 50px;
  background: #002366;
  color: #fff;
  text-align: center;
}

.footer-logo {
  font-size: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.footer-logo img {
  width: 80px;
  height: auto;
  padding-right: 3px;
}

.footer-info {
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  font-size: 0.9rem;
}

.footer-address {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.address-block {
  padding: 10px 15px;
  min-width: 200px;
  max-width: 300px;
  flex: 1;
  text-align: left;
}

.address-block strong {
  background: #fff;
  color: #002366;
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: bold;
  display: inline-block;
  font-size: 1rem;
}

.address-block i {
  margin-right: 8px;
  color: #fff;
}

.footer-address p {
  padding: 20px;
  width: 250px;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 auto;
}

.footer-address p strong {
  display: inline-block;
  background: #fff;
  color: #002366;
  padding: 4px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
  font-size: 1rem;
}

/* フッターのナビゲーション（共通） */
.footer-navigation {
  margin-top: 30px;
}

.footer-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-navigation li a {
  color: #fff;
  padding: 8px 12px;
  transition: background-color 0.3s, color 0.3s;
  border-radius: 4px;
  font-size: 1rem;
  text-decoration: none;
}

.footer-navigation li a:hover {
  background-color: #0055a5;
  text-decoration: underline;
}

/* ------------------------------
   スマホ（768px以下）専用スタイル
------------------------------ */
@media screen and (max-width: 768px) {


  .site-footer {
    display: block;
    text-align: center;
  }

  .footer-logo {
    order: -1; 
    display: flex;
    align-items: center;
    font-size: 2.5rem;
    gap: 5px;
    text-align: center;
  }

  .footer-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .footer-address {
    display: flex;
    flex-direction: column;
    align-items: center;
    
    gap: 20px;
  }

  .address-block {
    width: 100%;
    text-align: center;
  }

  .footer-address p {
    width: 100%;
    max-width: 100%;
    font-size: 0.95rem;
    padding: 15px;
  }

  iframe {
    width: 100% !important;
    height: 200px !important;
  }

  .footer-navigation {
    display: none;
  }
}

/* ここからcompany_info */

.company-info_main {
  color: #333;
  background: #fff;
  font-family: serif;
  line-height: 1.8;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

.greeting {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin: 20px;
  padding: 20px;
}

.greeting-header p {
  color: #333;
  line-height: 1.8;
}

.greeting-header h2 {
  background-color: #002366;
  color: white;
  padding: 6px 16px;
  font-size: 30px;
  margin-bottom: 20px;
  display: inline-block;
}

.profile-photo {
  width: auto;
  height: 400px;
  border-radius: 4px;
  flex-shrink: 0;
}

.greeting p {
  margin-top: 20px;
  font-size: 16px;
  line-height: 2;
  color: #333;
}

.company-profile h2,
.history h2 {
  color: #002366;
  font-size: 30px;
  margin-bottom: 10px;
  text-align: center;
}

.profile-table,
.history-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.profile-table td,
.history-table td {
  border: 1px solid #002366;
  padding: 10px;
  height: 40px;
}

.profile-table td:first-child,
.history-table td:first-child {
  background-color: #002366;
  color: #fff;
  white-space: nowrap;
  text-align: center;
  border: 1px solid #fff;
  width: 200px;
  min-width: 200px;
  max-width: 200px;
  box-sizing: border-box;
}

.company-profile {
  margin-bottom: 60px;
}

.history {
  margin-bottom: 60px;
}

.history-top {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.history-image {
  width: 50%;
  object-fit: cover;
}

.history-top p {
  font-size: 16px;
  line-height: 2;
  color: #333;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .greeting {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-photo {
    width: 100%;
    height: auto;
    max-width: 300px;
    margin-top: 20px;
  }

  .greeting-header h2 {
    font-size: 24px;
  }

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

  .philosophy-header {
    font-size: 18px;
    padding: 6px 12px;
  }

  .philosophy-header-msg p {
    font-size: 14px;
    margin: 15px 0 0;
    text-align: center;
  }

  .history-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .history-image {
    width: 100%;
    height: auto;
    max-width: 400px;
    margin-bottom: 20px;
  }

  .history-top p {
    font-size: 14px;
  }

  .company-info_main {
    padding: 20px 15px;
  }
}


/* ここからworksページ */
.works_main {
  margin: 60px;
  font-family: 'Noto Serif JP', serif;
  color: #333;
}

.works_main h2 {
  background-color: #002366;
  color: white;
  display: inline-block;
  padding: 6px 16px;
  font-size: 22px;
  margin-bottom: 10px;
}

.works-description {
  margin-bottom: 30px;
  font-size: 14px;
  color: #333
}

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

.work-card {
  border: 1px solid #002366;
  padding: 10px;
  text-align: center;
}

.work-card img {
  height: 300px;
}

.work-title {
  font-size: 16px;
  margin: 10px 0 5px;
}

.work-date, .work-comment {
  font-size: 14px;
  color: #666;
}

@media (max-width: 768px) {
  .works_main {
    margin: 30px 15px;
  }

  .works_main h2 {
    font-size: 20px;
    text-align: center;
  }

  .works-description {
    font-size: 13px;
    text-align: center;
  }

  .works-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .work-card img {
    width: 100%;
    height: auto; 
  }

  .work-title {
    font-size: 15px;
  }

  .work-date, .work-comment {
    font-size: 13px;
  }
}

/* ここからリクルート */
.recruit-header-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.recruit-header {
  background-color: #002366;
  color: white;
  padding: 40px 20px;
  display: flex;
  flex-direction: row;
  gap: 30px;
  flex-wrap: nowrap;
}

.recruit-header img {
  width: auto;
  height: 500px;
  align-items: center;
}

.recruit-header-text {
  width: 30%;
  min-width: 280px;
}

.recruit-header-text h2,
.recruit-header-text h4 {
  margin-top: 0;
  margin-bottom: 0;
  line-height: 1.2;
  color: #f7b500;
}

.recruit-header-text h2 {
  font-size: 60px;
  font-weight: bold;
}

.recruit-header-text h4 {
  font-size: 22px;
  font-weight: bold;
  margin-top: 5px; 
  margin-bottom: 25px;
}

.recruit-header-text p {
  font-size: 18px;
  line-height: 1.2;
}

.recruit-section {
  background-color: #fff;
  color: #002366;
  line-height: 1.8;
  max-width: 900px;
  margin: 40px auto;
}


.section-heading {
  font-size: 35px;
  font-weight: bold;
  text-align: center;
  justify-content: center;
  margin: 60px 0 20px;
  position: relative;
}

.section-heading {
  background-color: #002366;
  color: white;
  padding: 40px 20px;
  text-align: center;
  margin-bottom: 60px;
}

.section-heading::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background-color: #002366;
}

.recruit-section h2 {
  font-size: 28px;
  display: inline-block;
}

.recruit-section h4 {
  margin-bottom: 20px;
  padding-bottom: 10px;
}


/* 仕事内容見出しのみ背景付き */
.job-description-section {
  margin-bottom: 20px;
}

.job-description-section .section-heading {
  background-color: #002366;
  color: white;
  padding: 20px;
  margin-bottom: 0;
}

.job-text {
  font-size: 18px;
  margin: 30px 0 60px;
  line-height: 1.6;
  padding: 0 20px;
  text-align: center;
  color: #333;
}

.interview-cards {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap;
  color: #333
}

.card {
  text-align: center;
  max-width: 200px;
}

.card img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #002366;
}

.card p {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.5;
  color: #333
}

.card-button {
  display: inline-block;
  margin-top: 10px;
  background-color: #002366;
  color: white;
  border: 1px solid white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

.card-button:hover {
  background-color: #0055a5;
}

/* 募集要項 */
.recruit-info {
  /* padding: 60px 20px; */
  text-align: center;
}

.recruit-info .info-links {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  margin-top: 40px;
  margin-bottom: 60px;
}

.info-block {
  padding: 30px 20px;
  width: 300px;
  text-align: center;
  border-radius: 8px;
  background-color: #f8f8f8;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
}

.info-block h3 {
  font-size: 30px;
  margin-bottom: 20px;
  color: #002366;
}

.info-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #002366;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.info-button:hover {
  background-color: #0055a5;
}

@media (max-width: 768px) {
  .recruit-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }

  .recruit-header img {
    width: 100%;
    height: auto;
  }

  .recruit-header-text {
    width: 100%;
  }

  .recruit-header-text h2 {
    font-size: 40px;
  }

  .recruit-header-text h4 {
    font-size: 18px;
  }

  .recruit-header-text p {
    font-size: 16px;
  }

  .job-text {
    padding: 0;
    font-size: 16px;
  }

  .interview-cards {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .card img {
    width: 160px;
    height: 160px;
  }

  .card p {
    font-size: 15px;
  }

  .info-links {
    flex-direction: column;
    gap: 30px;
  }

  .info-block {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
}

/* ここからインタビュー */
.interview-main {
  padding: 0 50px;
}

.interview-main-persons {
  display: flex;
  align-items: center; 
  justify-content: space-between;
  max-width: 900px;
  margin: 0 auto;
  margin-bottom: 120px;
  gap: 40px;
}

.interview-main-text-block {
  flex: 1;
  margin-bottom: 30px;
}

.interview-main-person-name {
  font-size: 35px;
  margin-bottom: 20px;
  color: #333;
  font-weight: bold;
  
}

.interview-main-text {
  font-size: 20px;
  line-height: 1.8;
  color: #333;
}

.interview-main-card {
  flex-shrink: 0;
}

.interview-main-card img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #002366;
}

/* 新卒情報、中途採用情報 */

.mid-career-info, .new-graduate-info {
  line-height: 1.8;
  max-width: 900px;
  margin: 60px auto;
  padding: 40px 20px;
}

@media (max-width: 768px) {
  .interview-main {
    padding: 0 20px;
  }

  .interview-main-persons {
    flex-direction: column-reverse; 
    text-align: center;
    gap: 20px;
    margin-bottom: 60px;
  }

  .interview-main-text-block {
    margin-bottom: 0;
  }

  .interview-main-person-name {
    font-size: 24px;
  }

  .interview-main-text {
    font-size: 16px;
  }

  .interview-main-card img {
    width: 160px;
    height: 160px;
  }
}

/* ここから問い合わせ */
.inquiry-main {
  max-width: 900px;
  margin: 0 auto;
  background-color: #fff;
  color: #002366;
}

.inquiry-section {
  background-color: #fff;
  border-radius: 8px;
}

.inquiry-form-wrapper {
  margin-top: 30px;
  padding: 30px;
  background-color: #f5f5f5;
  border-radius: 8px;
}

.inquiry-intro {
  text-align: center;
  font-size: 18px;
  margin-bottom: 30px;
  color: #333;
}

.inquiry-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.inquiry-form label {
  font-weight: bold;
  font-size: 16px;
}

.inquiry-form input,
.inquiry-form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
}

.inquiry-form button {
  width: fit-content;
  align-self: flex-end;
  background-color: #002366;
  color: white;
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.inquiry-form button:hover {
  background-color: #001144;
}

@media (max-width: 768px) {

  .inquiry-section {
    padding: 20px 10px;
    font-size: 20px;
  }

  .section-heading {
    font-size: 25px;
    padding: 10px;
  }

  .inquiry-form-wrapper {
    padding: 20px 15px;
  }

  .inquiry-intro {
    font-size: 16px;
  }

  .inquiry-form label {
    font-size: 14px;
  }

  .inquiry-form input,
  .inquiry-form textarea {
    font-size: 14px;
  }

  .inquiry-form button {
    font-size: 14px;
    padding: 8px 16px;
    width: 100%;
    align-self: stretch;
    text-align: center;
  }
}
