@charset "utf-8";
/* ==========================================================================
   SpiriteK レスポンシブ対応 CSS
   既存CSSはそのまま維持し、メディアクエリでモバイル/タブレット向けに上書きする
   ========================================================================== */

/* ハンバーガーボタン（PC時は非表示） */
.hamburger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 200;
}
.hamburger-btn span {
  display: block;
  width: 26px;
  height: 3px;
  background: #fff;
  margin: 5px auto;
  transition: transform 0.3s, opacity 0.3s;
}

/* ==========================================================================
   モバイル: < 768px
   768px以上 = PC表示（既存CSSそのまま）
   767px以下 = モバイル表示
   ========================================================================== */
@media screen and (max-width: 767px) {
  /* --- 基盤 --- */
  * { box-sizing: border-box; font-size: 15px; }
  body {
    font-size: 15px;
    -webkit-text-size-adjust: 100%;
  }
  img { max-width: 100%; height: auto; }

  #page {
    width: 100%;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
    background-size: 100% auto;
  }

  /* --- ヘッダー --- */
  #head {
    height: auto;
    width: 100%;
    overflow: visible;
  }
  #head1 {
    background-image: none;
    background-color: #41abc1;
    position: relative;
    height: auto;
    min-height: 60px;
    padding: 10px;
  }
  #logo {
    position: static;
    text-align: center;
  }
  #logo img {
    max-width: 220px;
    height: auto;
    display: block;
    margin: 0 auto;
  }
  #head_message { display: none; }
  #head_link { display: none; }
  #head_contact { display: none; }

  /* --- ハンバーガーボタン --- */
  .hamburger-btn {
    display: block;
    position: absolute;
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    z-index: 200;
  }
  .hamburger-btn.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger-btn.is-active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger-btn.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* --- ナビゲーションメニュー --- */
  #menu {
    display: none;
    background-image: none;
    background-color: #2d2722;
    padding: 0;
    height: auto;
    width: 100%;
    position: relative;
    z-index: 100;
  }
  #menu.is-open {
    display: block;
  }
  #menu > li {
    float: none;
    width: 100%;
    height: auto;
    position: relative;
  }
  #menu1_link, #menu2_link, #menu3_link, #menu4_link {
    display: block;
    width: 100%;
    height: auto;
    text-indent: 0;
    background-image: none !important;
    color: #fff;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: bold;
    border-bottom: 1px solid #433e35;
    text-decoration: none;
  }
  .menu_drop {
    position: static !important;
    display: none;
    background-image: none !important;
    background-color: #1a1714;
    padding: 0 !important;
    width: 100% !important;
    margin-left: 0 !important;
    z-index: auto;
  }
  .menu_drop li {
    text-indent: 0;
    padding: 0;
    line-height: 1.4em;
  }
  .menu_drop li a {
    display: block;
    padding: 10px 20px 10px 36px;
    font-size: 14px;
    border-bottom: 1px solid #2d2722;
  }

  /* --- 2カラム→1カラム --- */
  #contents {
    width: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
  }
  #contents_left {
    float: none;
    width: 100%;
    margin: 0 0 15px;
    order: 2;
  }
  #contents_right {
    float: none;
    width: 100%;
    margin: 0 0 15px;
    order: 1;
  }

  /* --- 右カラム装飾 --- */
  #right_middle {
    background-size: 100% auto;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  #right_middle h1 {
    font-size: 16px;
    padding: 15px 10px;
    background-image: none;
    text-align: center;
    letter-spacing: 1px;
  }
  #right_middle h2 {
    font-size: 14px;
    padding-left: 15px;
    background-size: 40px auto;
    margin-left: 10px;
  }
  #right_middle h3 {
    font-size: 14px;
    margin: 25px 10px 10px;
  }
  .maintxt, .leadtxt {
    font-size: 15px;
    line-height: 1.7;
    margin-left: 10px;
    margin-right: 10px;
    letter-spacing: 1px;
  }
  .leadtitle {
    font-size: 15px;
    margin: 0 10px;
    padding: 10px;
  }
  .leadtitle a {
    font-size: 15px;
  }
  #right_middle h4 {
    font-size: 15px;
  }
  .maintxt a, .leadtxt a {
    font-size: 15px;
  }
  .main_bp {
    font-size: 15px;
  }
  .main_bp a {
    font-size: 15px;
  }
  .contact_sub {
    font-size: 15px;
  }
  #contents_1column h2 {
    font-size: 15px;
  }
  #contents_1column_txt {
    font-size: 15px;
  }

  /* --- サイドバー --- */
  #side_middle {
    display: none;
  }
  #side_middle .panel_01 {
    background-size: 100% auto;
    padding-top: 40px;
  }
  #side_middle .panel_05 {
    background-size: 100% auto;
    padding-bottom: 40px;
  }
  #side_middle .panel {
    padding: 0;
  }
  #side_middle .panel .AccordionPanelTab {
    margin: 0;
  }
  #side_middle .panel .AccordionPanelContent {
    margin: 0;
  }
  .side_guide {
    width: 100%;
    margin: 10px 0;
  }
  .side_link_header,
  .side_link_footer {
    background-size: 100% auto;
  }
  .side_link_middle {
    background-size: 100% auto;
    padding: 10px 20px;
  }
  .side_link_title {
    width: 100%;
  }
  .side_link {
    padding: 10px 20px;
  }
  .side_banner {
    text-align: center;
  }
  .side_banner img {
    max-width: 300px;
  }

  /* --- パンくず --- */
  #pankuzu_area {
    padding-left: 0;
    font-size: 12px;
    word-break: break-all;
  }

  /* --- 1カラムページ --- */
  #contents_1column {
    padding-right: 50px !important;
    padding-left: 50px !important;
  }
  #contents_1column_txt {
    padding-right: 50px !important;
    padding-left: 50px !important;
  }

  /* --- テーブル（フォーム等） --- */
  .tbl1 {
    width: 100%;
    margin: 0;
  }
  .tbl1 th, .tbl1 td {
    display: block;
    width: 100%;
  }
  .main_tbl {
    margin-left: 10px;
    margin-right: 10px;
    font-size: 12px;
  }

  /* --- コンテンツリンク（2列→1列） --- */
  .contents_linkl, .contents_linkr {
    float: none;
    width: 100%;
    margin: 10px 0;
    background-size: 100% 100%;
  }

  /* ==========================================================================
     トップページ固有
     ========================================================================== */
  #top_image {
    width: 100%;
    margin: 0;
    padding: 5px 0 0;
    overflow: hidden;
  }
  .mem { display: none; }

  #top_news, #top_product {
    width: 100%;
    margin: 0;
    padding: 10px 40px;
  }
  #leftcont {
    float: none;
    width: 100%;
    margin-right: 0;
    margin-bottom: 15px;
    padding: 0 30px;
  }
  #rightcont {
    float: none;
    width: 100%;
    padding: 0 30px;
  }
  #rightcont .fl,
  #rightcont .fr {
    float: none;
    width: 100%;
  }
  .top_midasi1 {
    background-size: 100% auto;
    height: auto;
    min-height: 30px;
    padding: 6px 0;
    font-size: 14px;
  }
  .top_midasi2 {
    background-size: 100% auto;
  }
  .top_text {
    font-size: 15px;
    line-height: 1.6;
  }
  #top_news p, #top_product p,
  #leftcont, #leftcont p,
  #rightcont, #rightcont p {
    font-size: 15px;
    line-height: 1.6;
  }
  #random_display li {
    padding: 10px 5px 0;
  }
  #random_display img {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin-right: 5px;
  }

  /* ==========================================================================
     フッター
     ========================================================================== */
  #foot {
    background-image: none;
    background-color: transparent;
    height: auto;
    width: 100% !important;
    max-width: 100%;
    position: relative;
    padding: 20px 0;
    clear: both;
    overflow: hidden;
    box-sizing: border-box;
  }

  /* キーワードボタン: 2x2グリッド */
  .foot_keyword {
    position: static;
    width: 47%;
    float: left;
    margin: 1% 1.5%;
    height: auto;
    background-image: none;
    background-color: #3a3530;
    border-radius: 4px;
    box-sizing: border-box;
  }
  .foot_keyword a {
    display: block;
    width: 100% !important;
    height: auto;
    padding: 10px 5px;
    background-image: none;
    font-size: 13px;
    text-align: center;
    box-sizing: border-box;
  }

  /* メニュータイトル・リンク（モバイル非表示） */
  .foot_menu_title {
    display: none;
  }
  .foot_link {
    display: none;
  }
  .foot_link ul {
    padding: 4px 0 0 0 !important;
    margin: 0 !important;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
  }
  .foot_link li {
    margin: 0 !important;
    padding: 0;
  }
  .foot_link li::after {
    content: "｜";
    color: #666;
    font-size: 11px;
  }
  .foot_link li:last-child::after {
    content: "";
  }
  .foot_link a {
    font-size: 12px;
    color: #ffaa33;
    font-weight: bold;
  }

  /* 会社情報 */
  #foot_corpinfo {
    position: static;
    width: 100% !important;
    height: auto;
    padding: 15px 0;
    text-align: center;
    clear: both;
    border-top: 1px solid #555;
    margin-top: 15px;
    box-sizing: border-box;
  }

  /* フッターお問い合わせ */
  #foot_contact {
    position: static;
    text-align: center;
    clear: both;
    margin: 15px 0;
  }

  /* その他リンク */
  #foot_link_other {
    position: static;
    width: 100% !important;
    height: auto;
    text-align: center;
    clear: both;
    box-sizing: border-box;
  }
  #foot_link_other li {
    float: none;
    display: inline-block;
    margin: 5px;
  }

  /* Copyright */
  address {
    font-size: 12px;
    padding: 10px 0;
  }

  /* ==========================================================================
     メンバーページ固有
     ========================================================================== */
  .member_top {
    width: 100% !important;
  }
  .member_r1, .member_l1,
  .member_r2, .member_l2 {
    float: none !important;
    width: 100% !important;
    height: auto !important;
    background-image: none !important;
    text-align: center;
  }
  .member_bottom {
    width: 100% !important;
  }
  .member_c, .member_c2, .member_c3 {
    width: 100% !important;
  }
  .member_name_r, .member_name_l {
    text-align: center;
  }
  .member_info_r, .member_info_l {
    text-align: center;
    padding: 10px;
  }

  /* ==========================================================================
     サイトマップページ固有
     ========================================================================== */
  .block1 {
    padding-left: 50px !important;
    padding-right: 50px !important;
  }
  .block_l, .block_r {
    float: none !important;
    width: 100% !important;
  }

  /* ==========================================================================
     WPテーマページ固有
     ========================================================================== */

  /* --- メインボックス --- */
  .archive_box,
  .main_box {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .main_box_head,
  .main_box_middle,
  .main_box_foot {
    width: 100% !important;
    background-size: 100% auto;
  }
  .main_box_middle {
    padding: 0 15px;
  }
  .main_box .con_ttl,
  .archive_box .con_ttl {
    font-size: 1.2em;
    text-indent: 0;
    text-align: center;
    padding: 10px;
    height: auto;
    line-height: 1.4;
    background-image: none;
  }

  /* --- 事例詳細（single） --- */
  #single_ttl {
    width: 100% !important;
    margin: 0 0 10px !important;
    height: auto !important;
    line-height: 1.4;
    padding: 15px 10px;
    font-size: 1.1em;
    background-size: 100% 100%;
  }
  .unique_post_wrap .entry-content {
    padding: 10px 15px !important;
  }
  .entry-content h1 {
    font-size: 1em;
    height: auto;
    line-height: 1.4;
    text-indent: 15px;
    padding: 8px 5px;
    background-size: auto 100%;
  }
  .unique_post_wrap .entry-content li {
    margin-left: 15px;
  }
  #jirei_top_btn {
    margin-left: 10px;
  }
  #under_bnr_wrap {
    width: 100% !important;
    margin: 0 auto;
    box-sizing: border-box;
  }
  #contents .main_box #under_bnr_wrap p {
    font-size: 0.85em;
    margin: 0 10px 10px;
  }

  /* --- 事例一覧（archive） --- */
  .archive_box {
    margin: 0 0 10px !important;
    padding: 0 10px;
  }
  .archive_box .ttl_bottom {
    padding: 0 10px 10px;
  }
  .archive_box p {
    padding: 0 10px;
  }
  .archive_list {
    margin: 0 !important;
  }
  .archive_list > li {
    padding: 10px 5px;
  }
  #list_label {
    display: none;
  }
  .archive_list .archive_left,
  .archive_list .archive_right,
  #case-top-list .archive_left,
  #case-top-list .archive_right {
    float: none !important;
    width: 100% !important;
    padding: 5px 0;
  }
  .archive_list .entry-title a {
    font-size: 14px;
    line-height: 1.6;
  }
  #case-top-list .cat_thumb_wrap {
    float: left;
    width: 24px;
    padding-top: 0;
  }
  #case-top-list .cat_thumb_wrap img {
    width: 24px !important;
    height: 24px;
    margin-left: 0 !important;
  }
  #case-top-list .entry-title {
    width: auto !important;
    float: none;
    margin-left: 34px;
  }
  .archive_box .navigation {
    height: auto;
    padding: 10px;
  }
  .archive_box .navigation span {
    position: static;
    display: block;
    width: 100%;
    text-align: center;
    padding: 5px 0;
  }

  /* --- 下段ウィジェット --- */
  #underbar_float_wrap {
    width: 100% !important;
    margin-right: 0;
  }
  #underbar_float_wrap > li {
    float: none !important;
    width: 100% !important;
    margin-right: 0;
    margin-bottom: 10px;
  }

  /* --- カテゴリ・タグページ --- */
  .archive_left, .archive_right {
    float: none;
    width: 100%;
  }

  /* ==========================================================================
     アクセスガイド Google Map
     ========================================================================== */
  #map-canvas {
    width: 100% !important;
    height: 300px !important;
  }

  /* ==========================================================================
     ユーティリティ幅クラスのオーバーライド
     ========================================================================== */
  .w300, .w400, .w500, .w700, .w800 {
    width: 100% !important;
  }
}
