/* =========================================================
    style.css (完成版)
    ※この内容でファイル全体を上書きしてください
   ========================================================= */

/* --- Reset & Common --- */
body {
    margin: 0;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: #333;
    background-color: #fff;
    line-height: 1.8;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

a {
    text-decoration: none;
    color: #757674;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.8;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

.section-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 60px;
    font-weight: bold;
    color: #FE943F;
}

.bg-light {
    background-color: #f8f9fa;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-align: center;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-contact {
    background-color: #E27113;
    color: #fff;
    border: 2px solid #E27113;
}

.btn-primary {
    background-color: #FE943F;
    color: #fff;
    font-size: 1.1rem;
    padding: 15px 40px;
}

/* --- Header --- */
.header {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    padding: 0 20px;
}

.header-logo h1 {
    margin: 0;
    font-size: 1.8rem;
    color: #FE943F;
}

.header-nav {
    display: flex; /* PCでは表示 */
}

.header-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
}

.header-nav li {
    margin-left: 30px;
}

.header-nav a {
    color: #333;
    font-weight: bold;
}

/* =========================================================
   既存の .hero 関連のCSSを削除し、以下に差し替えてください
   ========================================================= */
/* --- Hero Section (カルーセルスライダー版) --- */
.hero {
    position: relative; /* テキストを重ねるための基準位置 */
    width: 100%;
    height: 70vh; /* ビューポートの高さの70%を基準に高さを設定 */
    min-height: 500px;
    background-color: #222; /* 画像読み込み中の背景色 */
    overflow: hidden; /* コンテナからはみ出たスライドを隠す */
    display: flex; /* 中央揃えのため */
    align-items: center;
    justify-content: center;
}

.slider-container {
    width: 100%;
    height: 100%;
}

.slider-track {
    display: flex; /* スライドを横並びにする */
    height: 100%;
    transition: transform 0.8s ease-in-out; /* スライドアニメーション */
}

.slide {
    flex: 0 0 60%; /* スライド1枚の幅をコンテナの60%に */
    height: 100%;
    margin: 0 2%; /* スライド間の余白 */
    overflow: hidden;
    position: relative;
    transform: scale(0.85); /* 非アクティブなスライドを少し小さく */
    transition: transform 0.8s ease;
}

.slide.active {
    transform: scale(1); /* アクティブなスライドを元のサイズに */
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画像の比率を保ったまま領域を埋める */
}

/* テキストコンテンツのコンテナ */
.hero-inner {
    position: absolute; /* heroセクションに重ねて表示 */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    width: 90%;
}

/* メインの見出し (英語) */
.hero-inner h2 {
    color: #fff;
    font-family: 'Montserrat', sans-serif; /* 洗練された英語フォント */
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    margin: 0;
}

/* サブテキスト (日本語) */
.hero-inner p {
    color: #fff;
    font-family: 'Noto Sans JP', sans-serif; /* 読みやすい日本語フォント */
    font-size: 1.2rem;
    font-weight: 500;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8);
    margin-top: 1rem;
}
#contact-form {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  padding: 20px;
}
#contact-form iframe {
  border: none;
  width: 640px;
  height: 800px;
  max-width: 100%;
  box-shadow: 0 0 12px rgba(0,0,0,0.15);
  border-radius: 8px;
}


#formStatus {
  text-align: center;
  font-size: 14px;
  color: #d9534f;
}


/* レスポンシブ調整 */
@media (min-width: 980px) {
  .header-nav {
    display: none;
  }
}
@media (max-width: 768px) {
    .slide {
        flex-basis: 80%; /* スマホではスライドの幅を広げる */
        margin: 0 1%;
    }
    .hero-inner h2 {
        font-size: 2.5rem;
    }
    .hero-inner p {
        font-size: 1rem;
    }
    .header-nav {
    display: block; /* もしくはflexやinline-blockなど必要に応じて */
  }
}

/* --- Info List, Cards, Features, Company Table, Contact... (省略せず全て記載) --- */
.info-list{list-style:none;padding:0;max-width:800px;margin:0 auto}.info-list li{border-bottom:1px dotted #ccc;padding:15px 0;display:flex;align-items:center}.info-list time{margin-right:20px;font-weight:bold}
.card-deck{display:grid;grid-template-columns:repeat(3,1fr);gap:30px}.card{background-color:#fff;border:1px solid #e9ecef;border-radius:10px;overflow:hidden;box-shadow:0 4px 15px rgba(0,0,0,.05);transition:transform .3s}.card:hover{transform:translateY(-5px)}.card-img{width:100%;height:200px;object-fit:cover}.card-body{padding:25px}.card-title{font-size:1.4rem;margin-top:0;margin-bottom:15px;color:#757674}
.feature-list{max-width:900px;margin:0 auto}.feature-item{display:flex;align-items:center;margin-bottom:40px}.feature-icon{flex-shrink:0;margin-right:30px}.feature-icon img{width:80px;height:80px;border-radius:50%}.feature-text h3{font-size:1.5rem;color:#FE943F;margin-top:0;margin-bottom:10px}
.company-table{width:100%;max-width:800px;margin:0 auto;border-collapse:collapse}.company-table th,.company-table td{padding:20px;border:1px solid #ddd;text-align:left}.company-table th{background-color:#f8f9fa;font-weight:bold;width:30%}
.contact-section{text-align:center;background:url(../img/top/contact.jpg) no-repeat center center/cover;color:#fff}.contact-section .section-title{color:#fff}.contact-section p{font-size:1.1rem;margin-bottom:40px}.contact-section .btn-primary{background-color:#fff;color:#E27113}

/* --- Footer --- */
.footer {
    background-color: #757674;
    color: #fff;
    padding: 10px;
    text-align: right;
}

/* --- Hamburger Menu --- */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1010;
}
.hamburger span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: #333;
    margin: 6px 0;
    transition: 0.4s;
}

/* ▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼ */
/* --- サイドナビゲーション【修正版】 --- */
/* ▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼ */
.side-nav {
    /* この4つのプロパティで「画面左中央に固定」を実現します */
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    left: 40px;

    z-index: 1001; /* ヘッダー(1000)より手前に表示 */
}

.side-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.side-nav li {
    margin-bottom: 30px;
}

.side-nav a {
    display: flex;
    align-items: center;
    color: #555;
    font-weight: bold;
    font-size: 17px;
    transition: all 0.3s ease;
}

.side-nav a:hover {
    color: #FE943F;
    opacity: 1; /* a:hoverの共通スタイルを上書き */
}

/* ● ドット部分 */
.side-nav a::before {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    border: 2px solid #555;
    border-radius: 50%;
    margin-right: 15px;
    transition: all 0.3s ease;
}

/* テキスト部分は特別なスタイル不要 */
.side-nav a span {}

/* アクティブ（現在地）のスタイル */
.side-nav a.active {
    color: #FE943F; /* テキスト色をアクティブカラーに */
}

/* アクティブな項目のドット */
.side-nav a.active::before {
    background-color: #FE943F; /* ドットを塗りつぶす */
    border-color: #FE943F; /* 枠線もアクティブカラーに */
}
/* ▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲ */


/* --- レイアウト調整 --- */
.main-content {
    /* サイドナビのテキストが表示される幅を考慮して余白を確保 */
    padding-left: 200px;
}

   /* =========================================================
      Greeting Section (新しいレイアウト用)
      ========================================================= */

   /* 白いカード全体：Flexboxの親要素に */
   .greeting-card {
       background-color: #fff;
       border-radius: 12px;
       padding: 50px;
       box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
       max-width: 1000px;
       margin: 0 auto;

       /* ▼▼▼【重要】写真と挨拶文を横並びにするための設定 ▼▼▼ */
       display: flex;
       align-items: flex-start; /* 上揃えで配置 */
       gap: 20px; /* 写真と挨拶文の間の余白 */
   }

   /* 左側の写真エリア */
   .greeting-photo {
        text-align: right;
   }

   .greeting-photo img {
       float: right;
       border-radius: 10px
     }


   /* 右側の挨拶文エリア */
   .greeting-content {
       flex: 1; /* 残りのスペースをすべて使用する */
   }

   /* 役職と名前のヘッダー部分 */
   .greeting-header {
       display: flex;
       align-items: baseline; /* テキストのベースラインを揃える */
       border-bottom: 1px solid #757674;
       padding-bottom: 15px;
       margin-bottom: 25px;
   }

   .greeting-name {
       margin: 0;
       text-align: left;
       font-size: 1.5rem;
   }

   /* 挨拶文の本文 */
   .greeting-body p {
       font-size: 1rem;
       line-height: 2;
       margin: 0 0 20px 0;
   }
   .greeting-body p:last-child {
       margin-bottom: 0;
   }

   /* --- スマートフォンでの表示 --- */
   @media (max-width: 768px) {
       .greeting-card {
           flex-direction: column; /* 縦積みに変更 */
           align-items: center;   /* 全体を中央揃えに */
           padding: 30px;
       }

       .greeting-photo {
           flex-basis: 150px; /* 写真のサイズを調整 */
           width:150px;
       }

       .greeting-content {
           width: 100%; /* 幅を100%に戻す */
       }

       .greeting-header {
           flex-direction: column; /* ヘッダーも縦積みに */
           align-items: center;    /* 中央揃えに */
           gap: 5px;
       }

       .greeting-body {
           text-align: left; /* 本文は左揃えにする */
       }
   }
/* =================================== */
/* --- レスポンシブ対応 --- */
/* =================================== */

/* --- 1. PC幅が狭くなった時 (サイドナビを非表示に) --- */
@media (max-width: 1200px) {
    .side-nav {
        display: none; /* サイドナビを非表示 */
    }
    .main-content {
        padding-left: 0; /* メインコンテンツの余白をリセット */
    }
}


/* --- 2. タブレット・スマホ幅の時 --- */
@media (max-width: 768px) {
    .header-nav {
        display: none; /* PC用ナビを隠す */
        position: fixed; /* ハンバーガーメニューは画面全体に表示 */
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.95);
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .header-nav.active {
        display: flex; /* JSでactiveクラスが付いたら表示 */
    }
    .header-nav ul {
        flex-direction: column;
        width: 100%;
    }
    .header-nav li {
        margin: 0;
        width: 100%;
    }
    .header-nav a {
        display: block;
        padding: 25px;
        font-size: 1.2rem;
        text-align: center;
        border-bottom: 1px solid #eee;
    }
    .header-nav .btn-contact {
        border: none;
        background: none;
        color: #E27113;
    }

    .hamburger {
        display: block; /* ハンバーガーボタンを表示 */
    }
    .hamburger.active span:nth-child(1){transform:translateY(9px) rotate(45deg)}
    .hamburger.active span:nth-child(2){opacity:0}
    .hamburger.active span:nth-child(3){transform:translateY(-9px) rotate(-45deg)}

    .section{padding:60px 0}
    .section-title{font-size:1.8rem}
    .hero-inner h2{font-size:2rem}
    .card-deck{grid-template-columns:1fr}
    .feature-item{flex-direction:column;text-align:center}
    .feature-icon{margin-right:0;margin-bottom:20px}
    .company-table th,.company-table td{display:block;width:auto;border-bottom:none}
    .company-table th{border-bottom:1px solid #ddd}
    .company-table tr{border-bottom:2px solid #FE943F;display:block;margin-bottom:20px}
}
