@charset "UTF-8";
/*
 * style-responsive-fix.css
 * 筑紫興産 レスポンシブ改善パッチ
 * 既存の style-large.css に追加で読み込む
 * <link rel="stylesheet" href="css/style-responsive-fix.css">
 */

/* ============================================================
   1. トップヒーローセクション
   ============================================================ */
@media screen and (max-width: 740px) {

  /* ヒーロー画像エリア：高さをビューポートに合わせて調整 */
  .index-new-catch {
    height: auto;
    min-height: calc(100vh - 50px);
    padding-top: 50px;
    background-position: center center !important;
    background-size: cover !important;
  }

  /* キャッチコピーテキストの位置と可読性 */
  .index-new-catch-text {
    position: relative;
    top: auto;
    left: auto;
    width: 88%;
    margin: 40px auto 0;
    text-align: center;
    background-color: rgba(42, 65, 143, 0.82);
    padding: 24px 20px;
    border-radius: 6px;
  }

  h1.slider-in-text-under {
    font-size: 1.5rem;
    line-height: 1.6;
    color: #fff;
  }

  /* 「選ばれる３つの理由」ブロックをヒーロー内から切り離して通常フローに */
  .indextop-reason {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    margin: 0;
    padding: 24px 5%;
    background-color: rgba(255, 255, 255, 0.95);
    box-sizing: border-box;
  }

  .indextop-reason-title {
    font-size: 1.1rem;
    margin-bottom: 16px;
  }

  .indextop-reason ul {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 0;
    overflow: visible;
  }

  .indextop-reason ul li {
    float: none;
    flex: 1;
    margin-right: 0;
  }

  /* 円形バッジをサイズダウン */
  .indextop-reason-subtitle {
    width: 80px;
    height: 80px;
    line-height: 80px;
    font-size: 0.85rem;
    border-radius: 50%;
  }

  .indextop-reason-text1,
  .indextop-reason-text2 {
    font-size: 0.72rem;
    padding: 4px 2px;
    width: 100%;
    line-height: 1.3;
  }
}

/* ============================================================
   2. 対応可能な金属加工（BUSINESSセクション）
   ============================================================ */
@media screen and (max-width: 740px) {
  .index-service-btn ul li {
    height: auto;
    padding: 24px 0;
    border-bottom: 1px solid #eee;
  }

  .index-service-btn ul li:last-child {
    border-bottom: none;
  }

  .index-servicelist-contents-left {
    padding: 0 4%;
  }

  .index-servicelist-contents-right {
    padding: 0 4% 16px;
  }

  h3.h3-new-style-index {
    font-size: 1.2rem;
    margin-bottom: 6px;
  }
}

/* ============================================================
   3. 最新事例紹介（CASE STUDY）
   ============================================================ */
@media screen and (max-width: 740px) {
  ul.indexcase li {
    width: 100%;
    margin-right: 0;
    float: none;
    margin-bottom: 16px;
  }
}

/* ============================================================
   4. 納入実績スライダー（index-works）
   ============================================================ */
@media screen and (max-width: 740px) {
  /* スライダー親コンテナのはみ出し防止 */
  .main-100-blue {
    overflow: hidden;
  }

  img.index-works-pic {
    width: 100%;
    height: auto;
  }

  /* 詳細ボタン位置修正 */
  .index-works-detailbtn {
    margin-top: 20px;
    margin-left: 0;
    width: 100%;
    text-align: center;
  }

  .index-works-detailbtn a {
    display: inline-block;
    padding: 12px 24px;
    font-size: 0.95rem;
  }

  .index-works-detailbtn a img {
    position: static;
    width: 18px;
    height: 18px;
    vertical-align: middle;
  }

  .index-works-detailbtn a img:last-of-type {
    position: static;
  }
}

/* ============================================================
   5. こんなお困りごとはありませんか？（PAIN POINTS）
   ============================================================ */
@media screen and (max-width: 740px) {
  .index-problems-container {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 40px;
    padding-top: 30px;
    margin-bottom: 50px;
  }

  .index-problems-content {
    flex-direction: column;
    gap: 12px;
  }

  .index-problems-text {
    width: 100%;
  }

  .index-problems-image {
    width: 70%;
    margin: 0 auto;
  }

  .index-problems-title {
    font-size: 1.2rem;
    margin-bottom: 12px;
  }
}

/* CTAボタン（モバイル） */
@media screen and (max-width: 740px) {
  .cta-button {
    width: 95%;
    height: auto;
    padding: 18px 16px;
    font-size: 1rem;
    margin-bottom: 40px;
  }

  .cta-button span {
    font-size: 1rem;
  }
}

/* ============================================================
   6. 会社案内セクション（COMPANY OUTLINE）
   ============================================================ */
@media screen and (max-width: 740px) {
  .main-100-indexcompany {
    margin: 40px 0;
    padding: 40px 0;
  }

  .main-63-indexcompany {
    padding: 0 5%;
    box-sizing: border-box;
  }

  .indexcompany-hand-img {
    display: none; /* モバイルでは装飾画像を非表示にしてレイアウト崩れ防止 */
  }

  #indexcompany-aside {
    margin-top: 20px;
  }

  #indexcompany-aside ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
  }

  #indexcompany-aside ul li {
    width: 50%;
    float: none;
    margin-right: 0;
    margin-bottom: 0;
    box-sizing: border-box;
  }

  #indexcompany-aside ul li:nth-child(odd) {
    border-right: 1px solid #ddd;
  }

  #indexcompany-aside ul li a {
    padding: 14px 8px 14px 32px;
    font-size: 0.9rem;
    background-size: 18px;
  }
}

/* ============================================================
   7. 当社の強み・品質管理（STRENGTHS / QUALITY MGMT.）
   ============================================================ */
@media screen and (max-width: 740px) {

  .main-100-white-line {
    border-top: none;
    border-bottom: none;
    margin-bottom: 20px;
  }

  .main-63-line {
    width: 100%;
    height: auto;
    border-right: none;
    border-left: none;
    overflow: visible;
  }

  .indexservice {
    width: 100%;
    float: none;
    clear: both;
    border-right: none;
    border-bottom: 1px solid #ddd;
  }

  /* absoluteポジションで配置されているテキストをstatic化 */
  .indexservice a {
    height: auto;
    padding: 24px 5%;
    position: relative;
  }

  p.indexservice-title {
    position: static;
    font-size: 2rem;
    text-align: left;
    width: auto;
    margin-bottom: 8px;
  }

  p.indexservice-subtitle {
    position: static;
    font-size: 1.1rem;
    margin-bottom: 12px;
  }

  p.indexservice-text {
    position: static;
    font-size: 0.95rem;
    width: 100%;
    margin-bottom: 16px;
  }

  p.detailbtn {
    position: static;
    float: right;
    width: auto;
    margin-top: 8px;
    background-position: right 0 top 2px;
    padding-right: 24px;
  }

  .indexquality {
    width: 100%;
    float: none;
    clear: both;
  }

  .indexquality a {
    height: auto;
    padding: 24px 5%;
    position: relative;
    display: block;
  }
}

/* ============================================================
   8. お知らせ（NEWS）
   ============================================================ */
@media screen and (max-width: 740px) {
  .main-63 {
    padding-top: 30px;
    margin-bottom: 20px;
  }

  ul.news-newstyle li a {
    padding: 14px 10px;
  }

  p.date {
    float: none;
    display: block;
    margin-right: 0;
    margin-bottom: 4px;
    font-size: 0.85rem;
    color: #777;
  }

  p.news-category-info {
    float: none;
    display: inline-block;
    margin-right: 0;
    margin-bottom: 6px;
  }

  p.news-text {
    display: block;
    float: none;
    clear: none;
    margin-top: 0;
  }

  .detailbtn2 {
    padding-bottom: 30px;
    text-align: right;
    background-position: right 0 top 10px;
  }
}

/* ============================================================
   9. お問い合わせフッターセクション
   ============================================================ */
@media screen and (max-width: 740px) {
  .main-100-undercontact {
    padding: 24px 0;
  }

  .pageunder-contact-wrap {
    width: 94%;
    padding: 24px 0;
  }

  .pageunder-contact-wrap ul li {
    width: 100%;
    float: none;
    margin-right: 0;
    margin-bottom: 16px;
  }

  .pageunder-contact-left {
    height: auto;
    padding: 24px;
    background-size: 50px;
    background-position: right 20px top 20px;
    margin-bottom: 16px;
  }

  .pageunder-contact-left:before {
    background-size: 120px;
    background-position: right 10px bottom 0;
  }

  p.pageunder-contact-teltitle {
    font-size: 1rem;
  }

  p.pageunder-contact-tel a {
    font-size: 2.2rem;
  }

  p.pageunder-contact-teltime {
    margin-top: 12px;
    font-size: 0.9rem;
  }

  .pageunder-contact-center-top a {
    height: auto;
    padding: 20px 20px 20px 80px;
    background-position: left 16px center;
    background-size: 40px;
  }

  .pageunder-contact-center-under a {
    height: auto;
    padding: 20px 20px 20px 80px;
    background-position: left 16px center;
    background-size: 44px;
  }

  p.pageunder-contact-hptitle,
  .pageunder-contact-faxtitle {
    font-size: 1rem;
    margin-bottom: 6px;
  }

  #email-address,
  .pageunder-contact-fax {
    font-size: 1.4rem;
  }
}

/* ============================================================
   10. フッター（モバイルで非表示になっている部分の代替表示）
   ============================================================ */
@media screen and (max-width: 740px) {

  /* フッターを簡易表示に切り替え */
  .footer-menu {
    display: block !important;
    width: 100%;
    padding: 30px 5%;
    box-sizing: border-box;
    background-color: #f1f1f1;
  }

  .footer-menu-contents {
    width: 100%;
    float: none;
    margin: 0;
  }

  .footer-menu-contents ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 0 0 16px 0;
    float: none;
  }

  .footer-menu-contents ul li {
    float: none;
    width: 50%;
    margin-right: 0;
    margin-bottom: 4px;
    box-sizing: border-box;
  }

  .footer-menu-contents ul li:first-child {
    width: 100%;
    font-size: 0.95rem;
    margin-bottom: 8px;
  }

  .footer-menu-contents ul li.main-title a {
    font-size: 0.9rem;
    margin-right: 0;
  }

  .footer-logo {
    width: 100%;
    margin-left: 0;
    padding-top: 10px;
  }

  .pdf-icon-wrap a {
    padding: 16px;
  }

  .footer-address {
    font-size: 0.85rem;
    line-height: 1.7;
    margin-top: 16px;
  }

  /* フッターリンクもモバイルで表示 */
  .footer-link {
    display: block !important;
    padding: 20px 5%;
    text-align: center;
  }

  .footer-link ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }

  .footer-link ul li {
    display: inline-block;
    padding: 0 6px 0 0;
  }

  .footer-link ul li a {
    font-size: 0.8rem;
  }
}

/* ============================================================
   11. h2 タイトル（モバイルのみ適用）
   ============================================================ */
@media screen and (max-width: 740px) {
  h2.h1-new-style-white-sub {
    font-size: 1.6rem;
    padding-top: 8px;
    margin-bottom: 0;
  }
}

/* ============================================================
   12. 全体的な余白・オーバーフロー防止
   ============================================================ */
@media screen and (max-width: 740px) {

  /* 横スクロール防止 */
  html, body {
    overflow-x: hidden;
  }

  /* main コンテンツ全体 */
  main {
    padding-top: 50px; /* ハンバーガーメニューの高さ分 */
    overflow-x: hidden;
  }

  /* section.main-63 の余白統一 */
  section.main-63,
  .main-63 {
    padding-top: 30px;
    margin-bottom: 16px;
  }

  /* 画像全般のはみ出し防止 */
  img {
    max-width: 100%;
    height: auto;
  }

  /* テーブルのスクロール対応 */
  table.equip {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }
}

/* ============================================================
   13. タブレット（741px〜1024px）の中間対応
   ============================================================ */
@media screen and (min-width: 741px) and (max-width: 1024px) {

  body {
    min-width: auto;
  }

  .main-63,
  .main-63-top {
    width: 90%;
  }

  .main-63-indexcompany {
    width: 90%;
  }

  .main-63-line {
    width: 90%;
    height: auto;
  }

  .indexservice a,
  .indexquality a {
    height: auto;
    padding-bottom: 80px;
  }

  ul.indexcase li {
    width: 46%;
    margin-right: 4%;
  }

  ul.indexcase li:nth-child(2n) {
    margin-right: 0;
  }

  ul.indexcase li:nth-child(3) {
    margin-top: 20px;
    width: 100%;
    margin-right: 0;
  }

  .index-problems-container {
    column-gap: 30px;
    row-gap: 50px;
  }

  .pageunder-contact-wrap ul li {
    width: 46%;
    margin-right: 4%;
  }

  .pageunder-contact-wrap ul li:last-child {
    margin-right: 0;
  }

  .indextop-reason ul li {
    margin-right: 8px;
  }

  .indextop-reason-subtitle {
    width: 120px;
    height: 120px;
    line-height: 120px;
    font-size: 1rem;
  }
}

/* ============================================================
   14. ハンバーガーメニュー：モバイルのスクロール対応
   ============================================================ */
@media screen and (max-width: 740px) {
  .menu {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* メニューロゴを上部に固定 */
  .menu-logo {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 4;
    background: #fff;
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    padding-left: 10px;
    box-sizing: border-box;
    border-bottom: 1px solid #eee;
    visibility: visible;
  }

  /* チェックボックスがONのときだけロゴを表示 */
  .menu-logo {
    display: none;
  }
  #menu-toggle:checked ~ .menu-logo {
    display: flex;
  }
}

/* ============================================================
   [修正1] ハンバーガーメニューバー：ロゴ＋社名を表示
   現状 .menu-wrapper に logo が存在しないため、
   menu-wrapper 内に常時ロゴを表示する
   ============================================================ */
@media screen and (max-width: 740px) {

  /* menu-wrapper を高さ50pxのヘッダーバーとして確立 */
  .menu-wrapper {
    display: flex;
    align-items: center;
    height: 50px;
    overflow: visible; /* メニュー展開時に隠れないよう */
    z-index: 10000;
  }

  /* ロゴを左端に常時表示（既存の .menu-logo を流用） */
  .menu-logo {
    display: flex !important;
    align-items: center;
    position: static;
    height: 50px;
    padding: 0 0 0 10px;
    background: #fff;
    flex: 1;
    border-bottom: none;
    z-index: auto;
  }

  /* メニュー開いている時もロゴを隠さない */
  #menu-toggle:checked ~ .menu-logo {
    display: flex !important;
  }

  img.menu-logo-img {
    height: 34px;
    width: auto;
  }

  /* ロゴの右に社名テキストを表示（既存の p タグを活用） */
  .menu-logo a {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  /* ハンバーガーアイコンは右端固定を維持 */
  .menu-icon {
    position: fixed;
    top: 8px;
    right: 16px;
    z-index: 10002;
  }

  /* fixed-header はモバイルで非表示のまま */
}

/* ============================================================
   [修正2] ハンバーガーメニュー内：個人情報～採用情報の並び改善
   .menu ul:nth-child(2) の float レイアウトを整理
   ============================================================ */
@media screen and (max-width: 740px) {

  .menu ul:nth-child(2) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
  }

  .menu ul:nth-child(2) li {
    float: none;
    width: 100%;
    border-bottom: 1px solid #eee;
    border-right: none;
    text-align: center;
    box-sizing: border-box;
  }

  .menu ul:nth-child(2) li:nth-child(odd) {
    border-right: 1px solid #eee;
    width: 100%;
  }

  .menu ul:nth-child(2) li a {
    padding: 12px 8px;
    font-size: 0.85rem;
    display: block;
    color: #333;
  }

  /* カタログ・お問い合わせボタンも整列 */
  .menu ul:nth-child(3) {
    overflow: hidden;
    width: 100%;
  }

  .menu ul:nth-child(3) li {
    width: 50%;
    float: left;
  }

  .menu ul:nth-child(3) li a {
    width: 100%;
    height: 80px;
    line-height: 1;
    padding-top: 46px;
    font-size: 0.8rem;
    box-sizing: border-box;
  }
}

/* ============================================================
   [修正3] 最新納入実績：タイトルとボタンの配置改善
   ============================================================ */
@media screen and (max-width: 740px) {

  /* 納入実績セクション全体 */
  .main-100-blue {
    padding-bottom: 30px;
  }

  /* indexitem-left（左側テキストエリア）をフルwidthで上部に */
  .indexitem-left {
    width: 100%;
    height: auto;
    float: none;
    padding: 20px 5%;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* タイトルブロックと詳細ボタンを横並びに */
  .indexitem-left .h1-new-style-white-sub,
  .indexitem-left h2 {
    margin-bottom: 0;
    font-size: 1.4rem;
  }

  .indexitem-left .index-en-title {
    margin-bottom: 0;
    font-size: 0.85rem;
  }

  /* 「実績はこちら」ボタンをタイトルの右隣に配置 */
  .index-works-detailbtn {
    margin-top: 0;
    margin-left: 0;
    width: auto;
    flex-shrink: 0;
  }

  .index-works-detailbtn a {
    display: inline-block;
    padding: 10px 18px;
    font-size: 0.85rem;
    white-space: nowrap;
    background-color: rgba(42, 65, 143, 0.85);
    color: #fff;
    border: 1px solid #fff;
    border-radius: 4px;
  }
}

/* PC表示：indexitem-left と index-works-detailbtn は元のCSSに任せる（追加スタイル不要） */
@media screen and (min-width: 741px) {
  .indexitem-left {
    display: block;
    width: 25%;
    height: 300px;
    float: left;
    padding-left: 50px;
    overflow: hidden;
  }
  /* -below クラスはPC非表示 */
  p.index-works-detailbtn-below {
    display: none !important;
  }
}

@media screen and (min-width: 741px) and (max-width: 1645px) {
  /* 中間サイズも元CSSに任せる */
}

/* ============================================================
   [修正4] 会社案内：メニュー並び整理・余白削減
   ============================================================ */
@media screen and (max-width: 740px) {

  /* main-100-indexcompany の下余白を削減 */
  .main-100-indexcompany {
    margin: 20px 0;
    padding: 30px 0 20px;
  }

  /* aside のリストを均等グリッドに */
  #indexcompany-aside {
    width: 100%;
    margin-top: 16px;
  }

  #indexcompany-aside ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-bottom: 0 !important;
  }

  #indexcompany-aside ul li {
    width: 100% !important;
    float: none !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    border-bottom: 1px solid #ddd;
    box-sizing: border-box;
  }

  /* 奇数列に右ボーダー */
  #indexcompany-aside ul li:nth-child(odd) {
    border-right: 1px solid #ddd;
  }

  #indexcompany-aside ul li a {
    padding: 12px 8px 12px 30px;
    font-size: 0.88rem;
    background-size: 16px;
    background-position: left 8px center;
    display: block;
    border-bottom: none;
  }

  /* 最後の行はborder-bottomなし */
  #indexcompany-aside ul li:nth-last-child(-n+2) {
    border-bottom: none;
  }
}

/* ============================================================
   [修正5] 当社の強み・品質管理：下線と文章の被りを解消
   absoluteで配置された p.detailbtn が文章と重なる問題を修正
   ============================================================ */
@media screen and (max-width: 740px) {

  /* indexservice / indexquality 内のリンクを完全にstatic化 */
  .indexservice a,
  .indexquality a {
    position: static;
    display: flex;
    flex-direction: column;
    height: auto;
    padding: 24px 5%;
    gap: 8px;
  }

  p.indexservice-title {
    position: static !important;
    width: 100% !important;
    text-align: left;
    font-size: 1.8rem;
    top: auto !important;
    left: auto !important;
  }

  p.indexservice-subtitle {
    position: static !important;
    font-size: 1rem;
    top: auto !important;
    left: auto !important;
  }

  p.indexservice-text {
    position: static !important;
    width: 100% !important;
    font-size: 0.9rem;
    top: auto !important;
    left: auto !important;
  }

  /* detailbtn をフロー末尾に配置（absoluteを完全解除） */
  p.detailbtn {
    position: static !important;
    float: none !important;
    display: block;
    width: 100%;
    text-align: right;
    top: auto !important;
    right: auto !important;
    padding-right: 28px;
    background-position: right 4px center;
    margin-top: 4px;
  }
}



/* ============================================================
   [修正1] フッター下部リンク（HOME〜お問い合わせ）の中央揃え・折り返し対応
   ============================================================ */
@media screen and (max-width: 740px) {

  #footer-2 {
    text-align: center;
  }

  .footer-link {
    display: block !important;
    padding: 16px 0;
    text-align: center;
    background-color: #06C;
    width: 100%;
    box-sizing: border-box;
  }

  .footer-link ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0;
    padding: 0;
    margin: 0 auto;
    width: 100%;
    list-style: none;
    overflow: visible;
  }

  .footer-link ul li {
    display: inline-flex;
    padding: 0;
    margin: 3px 0;
    border-right: 1px solid rgba(255,255,255,0.4);
  }

  .footer-link ul li:last-child {
    border-right: none;
  }

  .footer-link ul li a {
    font-size: 0.8rem;
    padding: 4px 10px;
    color: #fff;
    white-space: nowrap;
    line-height: 1.5;
    display: block;
  }

  .footer-link ul li a:hover {
    text-decoration: underline;
  }

  /* コピーライト：中央揃えを明示 */
  .footer-catch {
    font-size: 0.75rem;
    padding: 14px 0;
    text-align: center !important;
    width: 100%;
    box-sizing: border-box;
  }
}

/* ============================================================
   [修正2] フッター ■事業内容・■会社内容 ともに縦1列表示
   ============================================================ */
@media screen and (max-width: 740px) {

  .footer-menu {
    display: block !important;
    width: 100%;
    padding: 24px 0 0;
    box-sizing: border-box;
    background-color: #f1f1f1;
  }

  .footer-menu-contents {
    width: 100%;
    float: none;
    margin: 0;
    padding: 0 5%;
    box-sizing: border-box;
  }

  /* 各 ul をカード化 */
  .footer-menu-contents ul {
    float: none;
    width: 100%;
    margin: 0 0 16px 0;
    padding: 0;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #ddd;
    display: block;
  }

  /* セクション見出し（■事業内容 / ■会社内容） */
  .footer-menu-contents ul li:first-child {
    width: 100% !important;
    display: block !important;
    background-color: #2a418f;
    color: #fff;
    font-size: 0.9rem;
    font-weight: bold;
    padding: 10px 14px;
    margin-bottom: 0;
    border-bottom: none;
    border-right: none !important;
    box-sizing: border-box;
  }

  /* ── 事業内容・会社内容ともに縦1列 ── */
  .footer-menu-contents ul li.main-title {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box;
    border-bottom: 1px solid #eee;
    border-right: none !important;
    float: none !important;
    margin-right: 0 !important;
  }

  .footer-menu-contents ul li.main-title:last-child {
    border-bottom: none;
  }

  /* リンクテキスト */
  .footer-menu-contents ul li.main-title a {
    display: block;
    font-size: 0.9rem;
    padding: 12px 16px;
    margin-right: 0;
    color: #333;
    line-height: 1.4;
    text-align: left;
  }

  .footer-menu-contents ul li.main-title a:hover {
    background-color: #f0f4ff;
    color: #2a418f;
  }

  /* カタログDL・住所 */
  .footer-logo {
    width: 100%;
    margin-left: 0;
    padding: 0 5% 20px;
    box-sizing: border-box;
  }

  .footer-address {
    font-size: 0.82rem;
    line-height: 1.8;
    margin-top: 16px;
    padding: 0;
  }
}

/* ============================================================
   [修正3] 当社の強み：detailbtnの右余白を detailbtn2 に揃える
   ============================================================ */
@media screen and (max-width: 740px) {

  p.detailbtn {
    position: static !important;
    float: none !important;
    display: block;
    width: 100%;
    text-align: right;
    top: auto !important;
    right: auto !important;
    padding-right: 20px;
    padding-bottom: 10px;
    background-position: right 195px top 2px;
    margin-top: 4px;
    box-sizing: border-box;
  }
}

/* ============================================================
   [修正4] 会社案内メニュー下の余白を完全除去
   ============================================================ */
@media screen and (max-width: 740px) {

  /* .main-100-indexcompany の padding-bottom / margin を強制ゼロ */
  .main-100-indexcompany {
    padding-top:    20px !important;
    padding-bottom: 0    !important;
    margin-top:     20px !important;
    margin-bottom:  0    !important;
    overflow: hidden;
  }

  /* .main-63-indexcompany の下余白もゼロ */
  .main-63-indexcompany {
    padding:    0 5% !important;
    margin-top: 10px !important;
    margin-bottom: 0 !important;
    box-sizing: border-box;
    background-image: none !important; /* 装飾背景を除去 */
  }

  /* 装飾画像を非表示 */
  .indexcompany-hand {
    display: none !important;
  }
  .indexcompany-hand-img {
    display: none !important;
  }

  /* aside自体の余白もゼロ */
  #indexcompany-aside {
    width: 100%  !important;
    margin-top:    12px !important;
    margin-bottom: 0    !important;
    overflow: hidden;
  }

  /* ul の margin-bottom を強制ゼロ（元CSSの 50px を潰す） */
  #indexcompany-aside ul {
    width: 100%   !important;
    margin:  0    !important;
    padding: 0    !important;
    display: block !important;
    overflow: hidden;
  }

  /* ── メニューを 1列 6段 ── */
  #indexcompany-aside ul li {
    display: block  !important;
    float: none     !important;
    clear: both     !important;
    width: 100%     !important;
    margin:  0      !important;
    padding: 0      !important;
    border-bottom: 1px solid #ddd !important;
    border-right:  none           !important;  /* 右線を除去 */
    border-left:   none           !important;
    border-top:    none           !important;
    box-sizing: border-box;
  }

  #indexcompany-aside ul li:last-child {
    border-bottom: none !important;
  }

  #indexcompany-aside ul li a {
    display: block   !important;
    padding: 16px 12px 16px 34px !important;  /* 上下余白を増やして高さを確保 */
    font-size: 0.9rem;
    background-size: 16px !important;
    background-position: left 10px center !important;
    border-bottom: none !important;
    font-weight: bold;
  }
}

/* ============================================================
   [修正5] 最新納入実績：モバイル表示を元に近い形で整える
   ============================================================ */
@media screen and (max-width: 740px) {

  .main-100-2color-wrap {
    margin: 30px 0;
  }

  .main-100-2color {
    width: 100%;
    margin-left: 0;
    padding: 16px 0;
    overflow: hidden;
    display: block;
  }

  .indexitem-left {
    width: 100%;
    height: auto;
    float: none;
    padding: 0 5% 12px;
    box-sizing: border-box;
    overflow: visible;
    display: block;
  }

  h2.h1-new-style-white-sub-fff {
    font-size: 1.6rem !important;
    line-height: 1.3;
  }

  p.index-en-title-fff {
    font-size: 0.85rem;
  }

  /* ボタンを static に戻して通常フローで表示 */
  .indexitem-left p.index-works-detailbtn {
    position: static !important;
    margin-top: 12px !important;
    margin-left: 0 !important;
    width: 100%;
    text-align: right;
    display: block !important;
    overflow: hidden;
  }

  .indexitem-left p.index-works-detailbtn a {
    display: inline-block;
    padding: 8px 28px 8px 14px;
    font-size: 0.85rem;
    white-space: nowrap;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.7);
    border-radius: 4px;
    position: static !important;
    background: url('../img/arrow_circle_white.png') no-repeat right 8px center;
    background-size: 16px;
  }

  .indexitem-left p.index-works-detailbtn a img {
    display: none !important;
  }

  /* スライダー */
  .main-100-2color .slider {
    width: 100%;
    clear: both;
    overflow: hidden;
  }
}

/* （PC用ボタンスタイルは上の min-width:741px ブロックに統合済み） 

/* ============================================================
   [修正6] 製缶加工品・機械加工品・射出成形 の文章が切れる問題修正
   ============================================================ */
@media screen and (max-width: 740px) {

  /* index-service-btn の overflow hidden を解除 */
  .index-service-btn {
    overflow: visible;
  }

  .index-service-btn ul {
    overflow: visible;
  }

  .index-service-btn ul li {
    height: auto;
    overflow: visible;
    padding: 24px 0;
    border-bottom: 1px solid #eee;
    clear: both;
    float: none;
    width: 100%;
  }

  .index-service-btn ul li:last-child {
    border-bottom: none;
  }

  .index-servicelist-contents-left {
    width: 100%;
    float: none;
    clear: both;
    height: auto;
    overflow: visible;
    padding: 0 4%;
    margin-right: 0;
    box-sizing: border-box;
  }

  .index-servicelist-contents-right {
    width: 100%;
    float: none;
    clear: both;
    height: auto;
    padding: 0 4% 16px;
    box-sizing: border-box;
  }

  h3.h3-new-style-index {
    font-size: 1.2rem;
    margin-bottom: 8px;
    white-space: normal;
  }

  /* テキストの折り返しを確実に */
  .index-servicelist-contents-left p {
    overflow: visible;
    white-space: normal;
    word-break: break-word;
  }
}

/* ============================================================
   [修正7] ハンバーガーメニュー内：カタログ・お問い合わせボタン
           アイコンと文字をより中央寄りに配置
   ============================================================ */
@media screen and (max-width: 740px) {

  .menu ul:nth-child(3) {
    overflow: hidden;
    width: 100%;
    display: flex;
  }

  .menu ul:nth-child(3) li {
    flex: 1;
    float: none;
    width: 50%;
  }

  /* アイコン＋テキストをまとめて縦中央に近い位置に */
  .menu ul:nth-child(3) li a {
    width: 100%;
    height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;   /* 上下中央 */
    gap: 6px;                  /* アイコンとテキストの間隔 */
    padding: 0;
    font-size: 0.82rem;
    color: #fff;
    text-align: center;
    box-sizing: border-box;
    line-height: 1.2;
    /* background-imageはアイコン代わりに使わず、::before で代替 */
    background-image: none !important;
  }

  /* アイコンを ::before 疑似要素で表示 */
  .menu ul:nth-child(3) li a::before {
    content: '';
    display: block;
    width: 28px;
    height: 28px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
  }

  /* カタログ */
  .menu ul:nth-child(3) li:first-child a {
    background-color: #141414 !important;
  }
  .menu ul:nth-child(3) li:first-child a::before {
    background-image: url(../img/menu_book_icon.png);
  }

  /* お問い合わせ */
  .menu ul:nth-child(3) li:last-child a {
    background-color: #f73e3e !important;
  }
  .menu ul:nth-child(3) li:last-child a::before {
    background-image: url(../img/chat_bubble_icon.png);
  }
}

/* ============================================================
   [修正8] 最新納入実績スライダーの左端ギリギリを修正（中央に）
   ============================================================ */
@media screen and (max-width: 740px) {

  .main-100-2color {
    box-sizing: border-box;
  }

  /* slick が生成するラッパーにも padding を適用 */
  .main-100-2color .slick-list {
    padding: 0 10% !important;
  }

  /* slick 未初期化時（ul.slider 直接表示時）のフォールバック */
  .main-100-2color ul.slider {
    padding: 0 5%;
    box-sizing: border-box;
  }

  /* 各スライドアイテムのマージン調整 */
  .main-100-2color .slick-slide {
    margin: 0 6px;
  }

  .main-100-2color .slick-track {
    display: flex;
  }
}
