@charset "UTF-8";

/* ============================================================
   responsive.css
   スマートフォン対応用スタイルシート
   PCレイアウトは変更せず、スマホ時のみ適用
   ============================================================ */

/* ------------------------------------------------------------
   PC時：ハンバーガーボタン非表示
   ------------------------------------------------------------ */

#menu-toggle {
  display: none;
}

/* ------------------------------------------------------------
   スマートフォン対応（599px以下）
   ------------------------------------------------------------ */

@media screen and (max-width: 599px) {
  /* box-sizing適用 */
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  /* 画像のレスポンシブ対応 */
  img {
    max-width: 100%;
    height: auto;
  }

  /* 背景画像を消す */
  .hpb-layoutset-01,
  .hpb-layoutset-02 {
    background-image: none !important;
    background-color: #fff;
  }

  /* ----------------------------------------
     ハンバーガーメニューボタン
     ---------------------------------------- */
  #menu-toggle {
    display: block;
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 10000;
    width: 44px;
    height: 44px;
    padding: 10px;
    background-color: #333;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }

  #menu-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background-color: #fff;
    margin: 4px 0;
    transition:
      transform 0.3s,
      opacity 0.3s;
  }

  /* ハンバーガー → ×に変形 */
  #menu-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  #menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
  }

  #menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* ----------------------------------------
     ナビゲーション（スライドメニュー）
     ---------------------------------------- */
  .hpb-layoutset-01 #hpb-nav,
  .hpb-layoutset-02 #hpb-nav {
    position: fixed !important;
    top: 0 !important;
    left: auto !important;
    right: -280px;
    width: 280px;
    height: 100% !important;
    z-index: 9999 !important;
    overflow-y: auto;
    background-color: #333 !important;
    background-image: none !important;
    transition: right 0.3s ease;
    padding-top: 60px;
  }

  /* メニュー開いた時 */
  .menu-open .hpb-layoutset-01 #hpb-nav,
  .menu-open .hpb-layoutset-02 #hpb-nav,
  .menu-open #hpb-nav {
    right: 0;
  }

  #hpb-nav ul {
    display: block;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1;
  }

  #hpb-nav li {
    width: 100%;
    float: none;
    height: auto;
    line-height: 1.4;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    border-right: none;
    position: relative;
  }

  #hpb-nav li a {
    display: block;
    height: auto;
    padding: 15px 20px;
    border-right: none !important;
    position: relative;
    z-index: 1;
  }

  #hpb-nav a:link,
  #hpb-nav a:visited,
  #hpb-nav a:hover,
  #hpb-nav a:active {
    height: auto;
    border-right: none !important;
  }

  #hpb-nav li span.en {
    font-size: 13px;
    padding: 0;
    line-height: 1.4;
    display: block;
  }

  #hpb-nav li span.ja {
    font-size: 11px;
    padding: 0;
    margin-top: 3px;
    line-height: 1.4;
    display: block;
  }

  /* オーバーレイ背景はHTMLの#menu-overlayで実装 */
  #menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9000;
  }

  .menu-open #menu-overlay {
    display: block;
  }

  /* ----------------------------------------
     コンテナ・ヘッダー
     ---------------------------------------- */
  #hpb-header,
  #hpb-inner,
  #hpb-footer {
    width: 100%;
    max-width: 100%;
  }

  /* ヘッダー */
  #hpb-header {
    height: auto;
    margin-bottom: 0px;
    padding: 10px 10px 0;
    padding-right: 60px;
    position: relative;
    z-index: 1;
  }

  #hpb-headerMain {
    margin-left: 0;
    padding-top: 0;
    height: auto;
  }

  #hpb-headerMain h1 {
    width: 100%;
    font-size: 10px;
    line-height: 1.4;
    margin: 0;
    padding: 0;
  }

  #hpb-headerLogo {
    width: auto;
    float: none;
    margin: 10px 0px;
    position: relative;
    z-index: 1;
  }

  #hpb-headerLogo a {
    margin-left: 0;
    margin-top: 0;
    background-size: contain;
    height: 50px;
    /* width: 300px; */
    left: 30px;
    position: relative;
  }

  #hpb-headerExtra1 {
    /* width: 100%; */
    float: none;
    margin: 0;
    margin-top: 10px;
    padding: 0;
    text-align: center;
    position: relative;
    z-index: 1;
  }

  #hpb-headerExtra1 p.tel {
    text-align: center;
    margin: 5px 0;
    font-size: 18px;
    line-height: 1.4;
  }

  #hpb-headerExtra1 p.tel span {
    display: block;
    font-size: 11px;
    margin-bottom: 3px;
  }

  #hpb-headerExtra1 p.tel a {
    color: #9ac725;
    text-decoration: none;
  }

  #hpb-headerExtra1 p.address {
    text-align: center;
    margin: 5px 0;
    font-size: 11px;
    line-height: 1.4;
  }

  /* ----------------------------------------
     メインコンテンツ
     ---------------------------------------- */
  /* wrapperのfloat解除 */
  #hpb-wrapper,
  .hpb-layoutset-02 #hpb-wrapper {
    width: 100%;
    float: none;
    padding-top: 10px;
  }

  /* タイトル画像エリア */
  .hpb-layoutset-01 #hpb-title {
    height: auto;
    min-height: 120px;
    background-size: cover;
    background-position: center;
  }

  .hpb-layoutset-01 #hpb-title h2 {
    width: 100%;
    background-image: url(mainimg2_6Da_sp.png);
    background-size: contain;
    height: 120px;
  }

  /* メインコンテンツ */
  #hpb-main {
    width: 100%;
    float: none;
    padding: 10px;
    padding-right: 10px;
  }

  .hpb-layoutset-01 #hpb-main {
    padding-top: 10px;
  }

  p.large {
    font-size: 1em;
    margin-bottom: 10px;
  }

  /* Information一覧ボタン */
  #list {
    float: none;
    display: block;
    text-align: center;
    margin-bottom: 15px;
    padding: 10px;
  }

  /* ニュースリスト */
  #toppage-news h3 {
    height: auto;
    padding: 5px 10px;
  }

  #toppage-news dl {
    padding: 0 5px;
  }

  #toppage-news dt {
    width: 100% !important;
    padding-left: 10px;
    padding-bottom: 3px;
    background-position: 0 8px;
  }

  #toppage-news dd {
    padding-left: 10px;
    padding-bottom: 15px;
    margin-bottom: 10px;
    border-bottom: 1px dotted #ccc;
  }

  /* カテゴリラベル */
  #toppage-news dd span {
    display: inline-block;
    margin-bottom: 5px;
  }

  /* オフィス情報 */
  #toppage-info {
    padding: 10px;
  }

  #toppage-info p {
    margin-bottom: 0.5em;
  }

  /* バナーブロック */
  .bnr_block {
    flex-direction: column;
    align-items: center;
  }

  .bnr_block figure {
    width: 100%;
    max-width: 280px;
    margin: 5px auto;
  }

  .bnr_block figure:nth-of-type(2) {
    margin: 5px auto;
  }

  /* ページトップへ戻る */
  #pagetop {
    text-align: center;
    margin: 20px 0;
  }

  #pagetop a {
    display: inline-block;
    padding: 10px 20px;
  }

  /* ----------------------------------------
     サイドバー
     ---------------------------------------- */
  #hpb-aside {
    width: 100%;
    float: none;
    padding: 10px;
    margin-top: 10px;
  }

  /* バナー（サイドバー） */
  #banner ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  #banner li {
    margin: 5px;
  }

  #banner li {
    margin: 5px;
    width: calc(100% / 3);
    margin: 0;
  }

  #banner li a {
    display: block;
    width: 100%;
    height: 60px;
    background-size: contain;
  }

  #banner li a {
    height: 60px;
    background-size: contain;
  }

  /* 求車・求荷情報 */
  .news_kyusya {
    height: auto;
    max-height: 350px;
    overflow-y: auto;
    margin-top: 15px;
  }

  .news_kyusya dt.title_kyusya {
    font-size: 16px;
  }

  .news_kyusya dd {
    margin-bottom: 20px;
  }

  .news_kyusya dd span.icon_kyuka,
  .news_kyusya dd span.icon_kyusya {
    font-size: 12px;
    width: auto;
  }

  .btn_list_kyusya {
    margin-top: 15px;
  }

  .btn_list_kyusya a {
    text-align: center;
    width: 100%;
    padding: 12px;
  }

  /* ----------------------------------------
     フッター
     ---------------------------------------- */
  #hpb-footer {
    width: 100%;
    height: auto;
    padding: 0px;
  }

  #hpb-footerMain {
    width: 100%;
    float: none;
    margin: 0;
    height: auto;
    padding: 10px;
  }

  #hpb-footerMain p {
    text-align: center;
    padding: 0;
    font-size: 10px;
    line-height: 1.4;
  }

  #hpb-footerExtra1 {
    width: 100%;
    float: none;
    margin: 0;
    height: auto;
  }

  /* ----------------------------------------
     フォーム（contact.php用）
     ---------------------------------------- */
  .contact form {
    width: 100%;
    padding: 1em;
  }

  .contact label {
    width: 100%;
    display: block;
    margin-bottom: 5px;
  }

  .contact input,
  .contact textarea {
    width: 100%;
  }

  /* ----------------------------------------
     物流新時代概要ページ（estate.html用）
     ---------------------------------------- */
  #estate h3 {
    font-size: 1.2em;
  }

  #estate img {
    max-width: 100%;
    height: auto;
  }

  .estate-lead {
    font-weight: bold;
    font-size: 1em;
  }

  .estate-text {
    font-size: 0.9em;
    line-height: 1.8;
  }

  .estate-info {
    margin: 1.5em 0;
  }

  .estate-info p {
    margin-bottom: 0.5em;
  }

  .estate-image {
    text-align: center;
  }

  /* ----------------------------------------
     会社案内ページ（company.html用）
     ---------------------------------------- */
  #company dl {
    margin-bottom: 1em;
    font-size: 14px;
    display: flex;
    flex-wrap: wrap;
  }

  #company dt {
    font-weight: bold;
    margin-bottom: 0.3em;
    width: 100% !important;
  }

  #company dd {
    margin-left: 0;
    line-height: 1.6;
    width: 100%;
    padding: 5px 0px 2px 15px;
    margin-bottom: 0.3em;
  }

  #company h3 {
    font-size: 1.1em;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
  }

  /* ----------------------------------------
     お問い合わせページ（contact.php用）
     ---------------------------------------- */
  #contact h3 {
    font-size: 1.1em;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
  }

  #contact .contact-section {
    margin-bottom: 1.5em;
  }

  #contact .office-name {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 0.5em;
  }

  #contact img {
    max-width: 100%;
    height: auto;
  }

  /* ----------------------------------------
     アクセスページ（access.html用）
     ---------------------------------------- */
  #access h3 {
    font-size: 1.1em;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
  }

  #access .map-container {
    position: relative;
    width: 100%;
    padding-bottom: 82%;
    height: 0;
    overflow: hidden;
  }

  #access .map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  #access .map-link {
    margin-top: 10px;
  }

  #access .access-info {
    margin: 1em 0;
  }

  #access .company-name {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 0.5em;
  }

  #access .address-detail {
    margin-bottom: 1em;
  }

  #access .access-method {
    margin-top: 1em;
  }

  #access .access-detail {
    margin-left: 0;
  }

  /* ----------------------------------------
     一覧ページ（list.php, list_kyusya.php用）
     ---------------------------------------- */
  .i-list {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
  }

  .i-list img {
    width: 100%;
    max-width: 200px;
    height: auto;
    margin: 0 auto 10px;
  }

  .i-list .i-honbun {
    width: 94%;
  }

  .i-list .i-date {
    font-size: 0.9em;
    margin-bottom: 5px;
  }

  .i-list .i-tytle {
    font-size: 1em;
    font-weight: bold;
    margin-bottom: 5px;
  }

  .i-list .i-tytle a {
    font-size: 1em;
    font-weight: bold;
    margin-bottom: 5px;
  }

  .i-list .i-txt {
    font-size: 0.9em;
    line-height: 1.6;
    margin: 0;
  }

  /* ページネーション */
  .pageNav01 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
    margin: 20px 0;
    list-style: none;
  }

  .pageNav01 li {
    margin: 3px;
  }

  .pageNav01 li a,
  .pageNav01 li span {
    display: block;
    padding: 8px 12px;
    font-size: 14px;
  }

  /* ----------------------------------------
     詳細ページ（update.php, update_kyusya.php用）
     ---------------------------------------- */
  #kousin {
    margin-bottom: 20px;
  }

  #kousin .article-images {
    margin-bottom: 15px;
  }

  #kousin .article-images img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
    width: 100%;
  }

  #kousin .i-tytle {
    font-size: 1.1em;
    font-weight: bold;
    line-height: 1.4;
  }

  #kousin .b-date {
    font-size: 0.9em;
    font-weight: normal;
  }

  #kousin .i-txt {
    font-size: 0.95em;
    line-height: 1.8;
  }

  #kousin .seminar-link {
    margin: 15px 0;
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 5px;
  }

  #kousin .external-link {
    margin: 10px 0;
    word-break: break-all;
  }

  #pdf {
    margin: 15px 0;
  }

  #pdf img {
    max-width: 100px;
    height: auto;
  }

  .btn_backto_list {
    margin: 20px 0;
    text-align: center;
  }

  .btn_backto_list a {
    display: inline-block;
    padding: 10px 30px;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
  }
}

/* ============================================
   レスポンシブ対応（responsive.cssに追記してください）
   ============================================ */
@media screen and (max-width: 768px) {
  .form-row input[type='text'],
  .form-row input[type='tel'],
  .form-row input[type='email'],
  .form-row textarea {
    max-width: 100%;
  }

  .submit-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .btn-back,
  .btn-submit {
    width: 100%;
    margin: 0;
  }

  .complete-title {
    font-size: 1.2em;
  }

  .privacy-check p {
    font-size: 13px;
  }
}
