@charset "utf-8";

/* ==========================================
   1. 基本リセット・全体設定
   ========================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth; /* スムーズスクロール有効化 */
}
body {
  font-family: "Noto Sans Japanese", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  background-color: #f5f3ed; /* 外側の背景も少し落ち着いたトーンに */
  color: #333333;
  overflow-x: hidden;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================
   2. 全体レイアウト（左右固定、真ん中可変）
   ========================================== */
.l-site-container {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

.l-sidebar-bg {
  flex: 1;
  height: 100vh;
  position: sticky;
  top: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.m-sidebar-bg--left {
  background-image: url('img/left-image.jpg');
}
.m-sidebar-bg--right {
  background-image: url('img/right-image.jpg');
}

.l-main-column {
  width: 100%;
  max-width: 850px;
  background-color: #faf8f2; /* 真ん中のメインエリアは目に優しいアイボリー */
  box-shadow: none; 
  display: flex;
  flex-direction: column;
}

.l-main-content {
  padding: 50px 40px;
}

/* ==========================================
   3. ヘッダー ＆ ハンバーガーメニュー
   ========================================== */
.p-global-header {
  background-color: #a61c22; /* 上品で少し明るい赤色 */
  color: #ffffff; /* 文字は白にして視認性を確保 */
  position: sticky;
  top: 0;
  z-index: 100;
}
.p-global-header__inner {
  height: 60px;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.p-global-header__logo {
  display: flex;
  align-items: center;
  height: 100%;
}
.p-global-header__logo a {
  display: block;
  max-width: 200px; /* ロゴの最大横幅 */
  height: auto;
}
.p-global-header__logo img {
  width: 100%;
  height: auto;
  max-height: 40px; /* ヘッダーの高さ(60px)をはみ出さないように制限 */
  object-fit: contain;
}

.p-hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
}
.p-hamburger-btn__line {
  width: 100%;
  height: 2px;
  background-color: #ffffff; /* 三本線も白に変更して見やすく */
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.p-hamburger-btn.is-active .p-hamburger-btn__line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.p-hamburger-btn.is-active .p-hamburger-btn__line:nth-child(2) {
  opacity: 0;
}
.p-hamburger-btn.is-active .p-hamburger-btn__line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.p-drawer-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background-color: #240405; /* ドロワーメニュー内側も少し明るめの赤黒に調整 */
  padding-top: 80px;
  transition: right 0.3s ease;
  z-index: 105;
  box-shadow: -5px 0 15px rgba(0,0,0,0.3);
}
.p-drawer-menu.is-active {
  right: 0;
}
.p-drawer-menu__list {
  list-style: none;
}
.p-drawer-menu__item a {
  display: block;
  padding: 20px 30px;
  color: #ffffff;
  font-size: 16px;
  font-weight: bold;
  border-bottom: 1px solid #3d0709;
}
.p-drawer-menu__item a:hover {
  background-color: #3d0709;
}

/* ==========================================
   4. 各種メインコンテンツパーツ
   ========================================== */
.p-hero-visual img {
  width: 100%;
}

.p-content-section {
  margin-bottom: 70px;
}

/* セクション見出し */
.p-content-section__title {
  font-size: 26px;
  color: #cb0807; /* パキッとした赤色をキープ */
  margin-bottom: 30px;
  font-weight: bold;
  display: flex;
  align-items: baseline;
  flex-wrap: nowrap;
  white-space: nowrap;
  padding-bottom: 12px;
  border-bottom: 1px solid #cb0807; 
}

.p-content-section__sub-title {
  font-size: 14px;
  color: #666666;
  font-weight: normal;
  margin-left: 12px;
}

/* 代表メッセージ */
.p-message-block__text {
  font-size: 14px;
  line-height: 2;
  margin-bottom: 25px;
  text-align: justify;
}
.p-message-block__signature {
  font-size: 15px;
  line-height: 1.6;
  text-align: right;
  margin-top: 40px;
}

/* 会社概要のテーブル */
.p-company-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.p-company-table tr {
  border-bottom: 1px solid #e6dedc; /* 優しいブラウン寄りの境界線 */
}
.p-company-table th {
  width: 22%;
  background-color: #a61c22; /* テーブルの見出しはヘッダーと合わせた赤色 */
  color: #ffffff;
  font-weight: bold;
  padding: 15px;
  text-align: center;
  vertical-align: middle;
}
.p-company-table td {
  padding: 15px 20px;
  line-height: 1.8;
  vertical-align: middle;
}

/* アクセス */
.p-access-info {
  font-size: 14px;
  margin-bottom: 15px;
}
.p-access-map {
  width: 100%;
  border: 1px solid #dddddd;
}
.p-access-map iframe {
  display: block;
}

/* ==========================================
   5. フッター
   ========================================== */
.p-global-footer {
  background-color: #2a2c2e; /* フッターのみ引き締まる濃いグレー */
  color: #ffffff;
  text-align: center;
  padding: 40px 20px;
}

.p-global-footer__logo {
  display: flex;
  justify-content: center; /* 横方向の中央揃え */
  align-items: center;
  margin-bottom: 25px; /* 下の会社名テキストとの間隔 */
}
/* ★修正：フッターロゴの最大横幅と縦の制限を広げ、より大きく表示できるようにしました */
.p-global-footer__logo a {
  display: block;
  max-width: 320px; /* 240pxから320pxへ拡大 */
  height: auto;
}
.p-global-footer__logo img {
  width: 100%;
  height: auto;
  max-height: 80px; /* 60pxから80pxへ拡大 */
  object-fit: contain;
}

.p-global-footer__company {
  font-size: 14px;
  margin-bottom: 10px;
}
.p-global-footer__address {
  font-size: 13px;
  line-height: 1.6;
}

.p-copyright {
  background-color: #1e2021; 
  text-align: center;
  padding: 10px 0;
  border-top: 1px solid #3a3d40;
}
.p-copyright small {
  font-size: 11px;
  color: #aaaaaa;
}

/* ==========================================
   6. レスポンシブ対応（スマホ時）
   ========================================== */
@media screen and (max-width: 1200px) {
  .l-sidebar-bg {
    display: none;
  }
  .l-main-column {
    max-width: 100%;
  }
}

@media screen and (max-width: 640px) {
  .l-main-content {
    padding: 40px 20px;
  }
  
  .p-content-section__title {
    font-size: 20px;
    flex-direction: row;
    justify-content: flex-start;
    align-items: baseline;
    padding-bottom: 8px;
    margin-bottom: 20px;
  }
  .p-content-section__sub-title {
    margin-left: 8px;
    font-size: 11px;
  }
  
  .p-company-table th,
  .p-company-table td {
    display: block;
    width: 100%;
    text-align: left;
  }
  .p-company-table th {
    padding: 10px 15px;
  }
}