/* 共通スタイル */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  color: #333;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ハンバーガーメニューのスタイル（モバイル用） */
.hamburger {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  background: #0a3a2a;
  border: none;
  padding: 12px;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: white;
  margin: 5px 0;
  transition: 0.3s;
}

/* ハンバーガーメニューがアクティブな時のアニメーション */
.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* デスクトップレイアウト */
.container {
  display: flex;
  min-height: 100vh;
}

/* サイドバーのスタイル */
.sidebar {
  width: 200px;
  background-color: #FFFFFF;
  color: #333;
  padding: 30px 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  transition: transform 0.3s ease;
  border-right: 1px solid #f5f5f5;
}

.sidebar .logo {
  width: 60px;
  height: auto;
  margin-bottom: 30px;
}

.sidebar nav ul {
  list-style: none;
  margin-bottom: 25px;
  width: 100%;
}

.sidebar nav li {
  margin: 12px 0;
  text-align: center;
}

.sidebar nav a {
  display: block;
  padding: 8px;
  border-radius: 4px;
  transition: background-color 0.3s;
  font-size: 14px;
  font-weight: 800;
}

.sidebar nav a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.btn-contact {
  background: #E3A926;
  color: #FFFFFF;
  padding: 10px 30px;
  border-radius: 25px;
  font-weight: bold;
  transition: background-color 0.3s;
  font-size: 14px;
  white-space: nowrap;
}

.btn-contact:hover {
  background: #E3A926;
}

/* メインコンテンツ */
.main-content {
  flex: 1;
  width: calc(100% - 230px);
  margin-left: 200px;
  min-height: 100vh;
  padding: 0;
  background: #fff;
}

.slider-content {
  position: relative;
  width: 100%;
  height: 80vh;
  margin-bottom: 200px !important;
  overflow: hidden;
}
/* ヒーロースライダー - Slick対応 */
.hero-slider {
  position: relative;
}

.hero-slider .slide {
  position: relative;
  width: 100%;
  height: 80vh;
}

.hero-slider .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Slickのドット（ページネーション）カスタマイズ */
.slick-dots {
  position: relative;
  bottom: -50px;
}

.slick-dots li button:before {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.3);
  opacity: 0.5;
}

.slick-dots li.slick-active button:before {
  opacity: 1;
}

/* Slickの矢印カスタマイズ */
.slick-prev,
.slick-next {
  z-index: 10;
  width: 50px;
  height: 50px;
}

.slick-prev {
  left: 30px;
}

.slick-next {
  right: 30px;
}

.slick-prev:before,
.slick-next:before {
  font-size: 30px;
  color: white;
  opacity: 0.7;
}

.slick-prev:hover:before,
.slick-next:hover:before {
  opacity: 1;
}

.catchphrase {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #FFFFFF;
  font-family: "Noto Serif JP", serif;
  font-weight: bold;
  font-size: 32px;
  text-shadow: 0 0 5px black;
}

.about {
  display: flex;
  flex-direction: column;
  margin: 0 auto 150px auto; /* 中央寄せ + 下マージン */
  position: relative;
  padding: 0 40px 0 75px;
  max-width: 1100px;
}

.about-img-text {
  position: absolute;
  top: -90px;
  right: 35px;
  padding: 20px;
  
  /* 縦書きの設定 */
  writing-mode: vertical-rl; /* 右から左へ縦書き */
  text-orientation: upright; /* 文字を正立させる */
  
  /* 2列レイアウトの設定 */
  display: flex;
  flex-direction: column; /* 列を横に並べる */
  align-items: flex-start;
  gap: 15px; /* 列間の間隔 */
  
  /* サイズ調整 */
  height: auto; /* 縦書きなので高さを指定 */
  width: auto; /* 幅は内容に応じて調整 */
  
  /* 文字スタイル */
  font-size: 26px;
  font-weight: 800;
  color: #333;
  line-height: 2;
}

/* 各段落（列）のスタイル */
.about-img-text p {
  font-family: "Noto Serif JP", serif;
  margin: 0;
  padding: 0; /* 左右に少し余白 */
  display: inline-block;
  height: auto; /* 親要素の高さに合わせる */
  
  /* 縦書き時の文字間隔調整 */
  letter-spacing: 0.1em;
  background-color: #FFFFFF;
}

.about .about-img {
  display: flex;
  justify-content: space-between;
  width: 100%;
  height: auto;
  max-height: 600px;
  /*margin-left: 75px;*/
  margin-bottom: 20px;
}

.about .about-img > img{
  width: 100%;
  height: auto;
}

.about .about-text {
  display: flex;
  flex-direction: column;
  width: 100%;
  line-height: 2;
}

.about .about-text .about-service {
  width: 100%;
  padding: 15px 0;
  margin-top: 15px;
  border-top: 1px solid #0F422D;
  border-bottom: 1px solid #0F422D;
  color: #191919;
  text-align: left;
  font-size: 14px;
}

.about .about-text .about-service .service-head{
  color: #0F422D;
  width: 100%;
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  padding-bottom: 5px;
}

/* カードセクション */
.cards {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin: 0 auto 60px auto; /* 中央寄せ + 下マージン */
  padding: 0 40px 0 0;
  max-width: 1100px;
}

.card {
  width: calc(100% - 75px);
  position: relative;
  margin-left: 75px;
  border-radius: 0 16px 16px 16px;
  overflow: hidden;
}

.card h2 {
  font-size: 24px;
  margin-bottom: 12px;
  font-weight: bold;
}

.card h3 {
  font-size: 20px;
  font-weight: bold;
  padding: 0 0 20px;
  text-align: center;
  color: #87AA4C;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  /* 三角形のサイズと色を設定 */
  border-style: solid;
  border-width: 60px 60px 0 0;  /* 三角形のサイズ調整 */
  border-color: transparent;
  z-index: 1;
}

/*
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}
*/

.card.green {
  background: #e0f2e8;
}

/* 緑のカード用の三角形 */
.card.green::before {
  border-top-color: #C2DD95;  /* より濃い緑色 */
}

.card.blue {
  background: #e3f2fd;
}

/* 青のカード用の三角形 */
.card.blue::before {
  border-top-color: #9FCFE8;  /* より濃い青色 */
}

.card-top {
  display: inline-block;
  width: 100%;
  padding-left: 45px;
}

.card-text {
  float: left;
  width: 55%;
  padding-top: 45px;
}

.card-text p {
  line-height: 1.6;
  color: #191919;
  font-size: 14px;
}

.card-text .card-subtext {
  font-size: 18px;
  color: #191919;
  margin-bottom: 15px;
}

.card-text .card-question {
  font-size: 14px;
  color: #191919;
  margin-bottom: 15px;
}

.card-img{
  width: 40%;
  float: right;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-flow {
  background-color: #FFFFFF;
  width: 90%;
  margin: 0 auto;
  padding: 20px;
  border-radius: 15px;
}

.card-flow ol {
  position: relative;
  margin: 0;
  padding-left: 20px;
}

.card-flow ol li{
  list-style: none;
  margin-bottom: 10px;
  line-height: 1.8;
}

.card-flow ol li span {
  position: absolute;
  left: 0;
  margin: 0
}

.card-contact-button{
  width: 100%;
  text-align: center;
  padding: 30px 0;
}

/* 代表挨拶セクション */
.greeting {
  max-width: 1100px;
  padding-bottom: 80px;
  background: #F9F9F9;
  margin: 0 auto; /* 中央寄せ */
}

/* 上部の黄色いバナー */
.greeting-banner {
  width: 100%;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 60px;
  overflow: hidden;
}

.greeting-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-placeholder {
  text-align: center;
  color: #fff;
  padding: 30px 50px;
  border-radius: 8px;
}

.banner-placeholder p {
  margin: 10px 0;
  color: #333;
  font-size: 18px;
}

/* メインコンテンツエリア */
.greeting-content {
  display: flex;
  gap: 40px;
  padding: 0 40px 0 75px;
  margin-bottom: 90px;
  align-items: flex-start;
  position: relative;
}

/* 挨拶文エリア */
.greeting-text {
  flex: 1;
  padding-right: 40px;
}

.greeting-text h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #0a3a2a;
  font-weight: bold;
}

.greeting-text p {
  line-height: 1.5;
  color: #333;
  font-size: 16px;
}

.greeting-text p.greeting-text-heading {
  color: #333;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 10px;
}

.mb-50 {
  margin-bottom: 50px !important;
}

/* 縦の区切り線 */
.greeting-divider {
  width: 2px;
  background: #333;
  align-self: stretch;
  margin: 0 20px;
}

/* プロフィールエリア */
.greeting-profile {
  flex: 0 0 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-img {
  width: 100%;
  height: auto;
  margin-bottom: 25px;
  border-radius: 8px;
}

.profile-info {
  width: 100%;
  text-align: left;
  padding-bottom: 30px;
  margin-bottom: 30px;
}

.profile-info h3 {
  font-size: 12px;
  color: #333;
  font-weight: bold;
}

.profile-info .profile-name {
  font-size: 18px;
  font-weight: bold;
  color: #0a3a2a;
  margin-bottom: 5px;
  position: relative;
}
.profile-info .profile-name > span {
  font-size: 12px;
  color: #CCCCCC;
  padding-left: 10px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.profile-info p {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
}

/* 追加のプロフィールエリア */
.additional-profile {
  display: inline-block;
  width: 100%;
  padding: 20px 75px 0;
  border-radius: 8px;
  text-align: center;
}

.additional-profile img.profile-img{
  max-width: 164px;
  float: left;
  margin-right: 33px;
}

.additional-profile .profile-info {
  margin-top: 30px;
}

.additional-profile p {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
}

.additional-profile .profile-qualification{
  margin-bottom: 12px;
}

.additional-profile .profile-growth{
  margin-bottom: 12px;
}

.additional-profile .profile-discription{
}

/* 会社概要 */
.company {
  max-width: 1100px;
  background: #f9f9f9;
  padding: 50px 30px 0 50px;
  margin: 0 auto; /* 中央寄せ */
}

.company h2 {
  font-size: 24px;
  margin-bottom: 30px;
  color: #0a3a2a;
}

.company table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden;
}

.company th, .company td {
  padding: 15px 20px;
  text-align: left;
  border-bottom: 1px solid #eee;
  font-weight: 500;
}

.company th {
  background-color: #f5f5f5;
  font-weight: bold;
  color: #333;
  width: 150px;
}

.company tr:first-child {
  border-top: 1px solid #eee;
}

/* Googleマップピンのスタイル */
.map-pin {
  display: inline-block;
  text-decoration: underline;
  transition: transform 0.2s ease, opacity 0.2s ease;
  cursor: pointer;
  vertical-align: top;
}

.pin-icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  transition: transform 0.2s ease;
}

.company .page-top {
  width: 100%;
  text-align: center;
  padding: 50px 0;
}

/* フッター */
footer {
  background: #0d4f31; /* 深い緑色 */
  padding: 40px 0;
  position: relative;
  border-top: none; /* 既存のボーダーを削除 */
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* ロゴセクション */
.footer-logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.footer-logo .logo-h {
  width: 60px;
  height: auto;
  filter: brightness(0) invert(1); /* 白色に変換 */
}

.footer-logo .company-name {
  color: white;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 0.05em;
}

/* 右側のコンテンツグループ */
.footer-right {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-left: auto; /* 右寄せにする */
}

/* フッターナビゲーション */
.footer-nav {
  display: flex;
  gap: 40px;
  width: 70%;
  justify-content: flex-end;
}

.footer-nav a {
  color: white;
  font-size: 16px;
  font-weight: 500;
  transition: opacity 0.3s;
  letter-spacing: 0.05em;
}

.footer-nav a:hover {
  opacity: 0.8;
}

/* お問い合わせボタン */
.footer-contact-btn {
  background: #f8cb2e;
  color: #FFFFFF;
  padding: 12px 32px;
  border-radius: 30px;
  font-weight: bold;
  font-size: 16px;
  transition: all 0.3s;
  white-space: nowrap;
  letter-spacing: 0.05em;
}

/* コピーライト */
.copyright {
  position: absolute;
  bottom: -20px;
  right: 50px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  margin: 0;
}

/* タブレット（1024px以下）のスタイル - より広い画面での調整 */
@media (max-width: 1024px) {
  .main-content {
    padding: 30px 30px 0;
  }
  
  .hero-slider {
    height: 350px;
  }
  
  .hero-slider .slide {
    height: 350px;
  }
  
  .card {
    padding: 25px;
  }
  
  .card-img img {
    width: 200px;
  }
  
  .greeting-content {
    padding: 0 50px;
  }
  
  .greeting-profile {
    flex: 0 0 300px;
  }
  
  .profile-img {
    width: 240px;
  }
}

/* タブレット（768px以下）のスタイル */
@media (max-width: 768px) {
  /* サイドバーとナビゲーション */
  .container {
    flex-direction: row;
  }
  
  .sidebar {
    transform: translateX(-100%);
    width: 80%;
    max-width: 300px;
    padding: 20px 15px;
  }
  
  .sidebar.active {
    transform: translateX(0);
  }
  
  .hamburger {
    display: block;
  }
  
  /* メインコンテンツ */
  .main-content {
    margin-left: 0;
    width: 100%;
    padding: 0;
  }
  
  /* ヒーロースライダー */
  .slider-content {
    height: 320px;
    margin-bottom: 60px !important;
  }
  
  .slider-content .slide {
    height: 320px;
  }

  .catchphrase{
    font-size: 24px;
  }
  
  .vertical-text {
    font-size: 18px;
    right: 20px;
    top: 20px;
    padding: 10px 15px;
  }
  
  /* Aboutセクション */
  .about {
    padding: 0 20px;
    margin-bottom: 80px;
  }
  
  .about-img-text {
    position: absolute;
    top: -60px;
    right: 20px;
    width: auto;
    height: auto;
    font-size: 18px;
    line-height: 1.2;
    gap: 0;
  }
  
  .about-img-text p {
    display: inline;
    margin-right: 10px;
    padding: 5px 10px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
  }
  
  .about-text {
    padding: 20px 0;
    font-size: 15px;
    line-height: 1.7;
  }

  /* カードセクション */
  .cards {
    padding: 0 20px;
    gap: 40px;
    margin-bottom: 60px;
  }
  
  .card {
    flex-direction: column;
    text-align: left;
    padding: 0;
    margin-left: 0;
    border-radius: 16px;
  }
  
  .card::before {
    display: none;
  }
  
  .card-text {
    padding: 30px 25px;
    margin-bottom: 0;
    width: 100%;
  }
  
  .card-text h2 {
    font-size: 22px;
    margin-bottom: 15px;
  }
  
  .card-text p {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 15px;
  }
  
  .card-text ul, .card-text ol {
    margin: 15px 0;
    padding-left: 25px;
  }
  
  .card-text li {
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.6;
  }
  
  .card-img {
    width: 100%;
    height: auto;
    border-radius: 0 0 16px 16px;
    overflow: hidden;
  }
  
  .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  /* 代表挨拶 */
  .greeting-content {
    flex-direction: column;
    padding: 0 20px;
    gap: 30px;
  }
  
  .greeting-text {
    padding-right: 0;
  }
  
  .greeting-text h2 {
    font-size: 24px;
    text-align: center;
    margin-bottom: 25px;
  }
  
  .greeting-text p {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 18px;
  }
  
  .greeting-profile {
    flex: none;
    align-items: center;
  }
  
  .profile-img {
    width: 200px;
    margin-bottom: 20px;
  }
  
  .profile-info, .additional-profile {
    text-align: center;
  }
  
  /* 会社概要 */
  .company {
    padding: 40px 20px 0;
  }
  
  .company h2 {
    font-size: 22px;
    text-align: center;
    margin-bottom: 25px;
  }
  
  .company table {
    font-size: 14px;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    border: 1px solid #eee;
    border-radius: 8px;
  }
  
  .company th, .company td {
    padding: 12px 15px;
    min-width: 120px;
  }
  
  .company th {
    width: 140px;
    min-width: 140px;
  }

  /* フッター */
  .footer-content {
    flex-direction: column;
    gap: 25px;
    padding: 0 20px;
    align-items: center;
    text-align: center;
  }
  
  .footer-logo {
    gap: 15px;
  }
  
  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    width: 100%;
  }
  
  .footer-nav a {
    font-size: 15px;
    padding: 5px 0;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  .footer-contact-btn {
    font-size: 15px;
    padding: 12px 30px;
    min-height: 44px;
  }
  
  .copyright {
    position: static;
    margin-top: 15px;
  }
  
  /* Slickスライダー制御 */
  .slick-prev,
  .slick-next {
    width: 44px;
    height: 44px;
  }
  
  .slick-prev {
    left: 15px;
  }
  
  .slick-next {
    right: 15px;
  }
  
  .slick-prev:before,
  .slick-next:before {
    font-size: 22px;
  }
}

/* スマートフォン（480px以下）のスタイル */
@media (max-width: 480px) {
  .main-content {
    padding: 0;
  }
  
  .slider-content {
    height: 250px;
  }
  
  .slider-content .slide {
    height: 250px;
  }
  
  .vertical-text {
    font-size: 16px;
    right: 15px;
    top: 15px;
    padding: 8px 12px;
  }
  
  .about-img-text {
    font-size: 14px;
    padding: 15px;
    width: 100px;
  }

  .card {
    padding: 0;
  }
  
  .greeting {
    padding: 20px;
  }
  
  .greeting-text h2 {
    font-size: 20px;
  }
  
  .company h2 {
    font-size: 20px;
  }
  
  .company table {
    font-size: 12px;
  }
  
  .company th {
    width: 100px;
  }
  
  .company th, .company td {
    padding: 8px;
  }

  footer {
    padding: 30px 0;
  }
  
  .footer-content {
    gap: 20px;
  }
  
  .footer-logo .logo-h {
    width: 40px;
  }
  
  .footer-logo .company-name {
    font-size: 16px;
  }
  
  .footer-nav {
    gap: 15px;
  }
  
  .footer-nav a {
    font-size: 12px;
  }
  
  .footer-contact-btn {
    font-size: 12px;
    padding: 8px 24px;
  }
  
  .copyright {
    font-size: 10px;
  }
  
  /* Slick arrows for smaller mobile */
  .slick-prev,
  .slick-next {
    width: 35px;
    height: 35px;
  }
  
  .slick-prev:before,
  .slick-next:before {
    font-size: 20px;
  }
}

/* オーバーレイ（モバイルメニュー用） */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 50;
}

.overlay.active {
  display: block;
}

/* プレースホルダー画像のスタイル */
img {
  max-width: 100%;
  height: auto;
}

/* スクロールの滑らかさ */
html {
  scroll-behavior: smooth;
}

/* フォーカス時のアウトライン */
a:focus,
button:focus {
  outline: 2px solid #f8cb2e;
  outline-offset: 2px;
}