@charset "UTF-8";

/* ========================================================================== */
/* HTML */
/* ========================================================================== */
html {
	height: 100%;
	background-color: #F5F6F6;
}



/* ========================================================================== */
/* BODY */
/* ========================================================================== */
body {
   min-width: 750px;
   height: 100%;
   padding-top: 100px;
   background-color: #F5F6F6;
   color: #2B2B2B;
   font-family: "Noto Sans JP", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", メイリオ, Meiryo, Osaka, "ＭＳ Ｐゴシック", "MS P Gothic", Verdana, Arial, Helvetica, sans-serif;
   font-size: 15px;
   line-height: 1.67; /* 25px / 15px = 約1.67（レスポンシブ対応のため倍率指定を推奨） */
   -webkit-text-size-adjust: 100%;
   text-size-adjust: 100%;
   font-feature-settings: "palt"; /* 文字詰め（プロポーショナルメトリクス）を有効化 */
   text-align: justify;       /* 最終行以外を両側揃えにする */
}



/* ========================================================================== */
/* WRAPPER */
/* ========================================================================== */
* html div#wrapper { height: 100%; }

div#wrapper {
	position: relative;
	min-height: 100%;
}

body > #wrapper { height: auto; }



/* ========================================================================== */
/* MENU OVERLAY（背景を暗くする設定：PC・モバイル共通） */
/* ========================================================================== */
.menu-overlay {
   position: fixed;
   left: 0;
   width: 100%;
   background-color: rgba(0, 0, 0, 0.5); /* 暗さの度合い（50%の黒） */
   
   opacity: 0;
   pointer-events: none;
   transition: opacity 0.4s ease;
}

/* -------------------------------------------------------------
   【PC表示用（769px以上）】
   ------------------------------------------------------------- */
@media screen and (min-width: 769px) {
   .menu-overlay {
      top: 100px; /* ヘッダーの高さ */
      height: calc(100vh - 100px);
      z-index: 998; /* メガメニュー(999)の下 */
   }
   /* JSでクラスがついたら表示 */
   .menu-overlay.is-active {
      opacity: 1;
      pointer-events: auto;
   }
}

/* -------------------------------------------------------------
   【モバイル表示用（768px以下）】
   ------------------------------------------------------------- */
@media screen and (max-width: 768px) {
   .menu-overlay {
      top: 60px; /* モバイルヘッダーの高さ */
      height: calc(100vh - 60px);
      /* 
         モバイルナビ（#header_nav）のz-indexが未設定（通常レイヤー）のため、
         それより下、かつメインコンテンツより上になるよう調整します。
      */
      z-index: 99; 
   }
   /* 
      ハンバーガーメニューが開くとbodyに「.fixed」がつくため、
      それをトリガーにしてオーバーレイをフワッと表示させます。
   */
   body.fixed .menu-overlay {
      opacity: 1;
      pointer-events: auto;
   }
}



/* ========================================================================== */
/* HEADER */ 
/* ========================================================================== */
header {
   position: fixed;
   top: 0;
   left: 0;
	width: 100%;
   min-width: 750px;
   height: 100px;
	background-color: #FFF;
   border-bottom: 1px solid #EEE;
   z-index: 1000;
}

header .header_flex {
   display: flex;
   justify-content: space-between;
}

/* site_logo */
header .site_logo {
	width: 187px;
	height: 62px;
   margin-top: 17px;
   margin-left: 30px;
}

header .site_logo a:hover { opacity: 1; }

header #header_nav ul {
   display: flex;
}

header #header_nav ul li {
   height: 100px;           /* 高さを100pxに固定 */
}

header #header_nav ul li a {
   display: flex;
   align-items: center;     /* 上下中央 */
   justify-content: center; /* 左右中央 */
   height: 100px;           /* 高さを100pxに固定 */
   padding: 0 24px;         /* 左右に25pxの余白（上下は0） */
	position: relative;
   /*border-bottom: 4px solid #FA5B22;*/
}

header #header_nav ul li:not(.contact) a:hover {
   opacity: 1;
}

header #header_nav ul li:not(.contact) a::after {
   content: "";
   position: absolute;
   bottom: 0;         /* 下ぴったりに配置 */
   left: 0;           /* 左端からスタート */
   width: 0;          /* 最初は幅ゼロ */
   height: 4px;       /* 下線の太さ4px */
   background-color: #FA5B22; /* 下線の色 */
   transition: width 0.4s ease;
}

/* hover時に下線を左から100%に伸ばす */
header #header_nav ul li:not(.contact) a:hover::after {
   width: 100%; /* マウスが乗ると100%に広がる */
}

header #header_nav ul li.contact a {
   width: 130px;
   padding: 0;
   background-color: #232D3B;
   border-bottom: none;
   color: #FFF;
}

header #header_nav .sub_menu_grid li.pc_hidden { display: none !important; }

/* menuBtn */
header #menuBtn { display: none !important; }



/* ========================================================================== */
/* SUB_PAGE_HEADER（下層共通ヘッダー）*/
/* ========================================================================== */
.sub_page_header {
   position: relative;
   width: 100%;
   height: 256px;
   background-color: #F5F6F6;
   background-size: cover;
   background-position: center;
   display: flex;
   align-items: center;
}

.sub_page_header::before {
   content: "";
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background-image: url("../images/cover.png");
   background-repeat: repeat;
}

.sub_page_header h1 {
   position: relative;
   width: calc(100% - 60px);
   max-width: 1420px;
   margin: 0 auto;
   color: #FFF;
   font-size: clamp(28px, 1.8vw + 20px, 46px);
   font-weight: 600;
   text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
   letter-spacing: 0.05em;
}

.sub_page_header h1 div {
   margin-bottom: 2px;
   font-size: 0.7em;
   line-height: 1;
   letter-spacing: 0.03em;
}


/* ========================================================================== */
/* BREADCRUMB */
/* ========================================================================== */
main .breadcrumb {
   max-width: 1500px;
   width: calc(100% - 60px);
   margin: 0 auto;
   padding-top: 23px;
   box-sizing: border-box;   
}

/* パンくずリストのリスト（ul）を横並びにする */
main .breadcrumb ul {
   display: flex;
   flex-wrap: wrap;       /* 画面が狭くテキストが長い場合、自動で折り返す設定 */
   align-items: center;   /* 上下中央揃え */
   list-style: none;
   padding: 0;
   margin: 0;
   /* 【変更】最小10px 〜 画面幅に連動 〜 最大13px に可変 */
   font-size: clamp(10px, 0.6vw + 8px, 13px);
}

/* 各階層（li）のスタイル */
main .breadcrumb ul li {
   display: flex;
   align-items: center;
}

/* 各リンク（a）のスタイル */
main .breadcrumb ul li a {
   color: #FA5B22;
   text-decoration: underline;
}

main .breadcrumb ul li a:hover {
   text-decoration: none;
   opacity: 1;
}

/* 現在地（最後のli：リンクじゃないテキスト）のスタイル */
main .breadcrumb ul li:last-child {  }

/* 「＞」の区切り文字を自動で挿入する設定 */
main .breadcrumb ul li:not(:last-child)::after {
   content: "＞";
   color: #B3B3B3;
   /* 【変更】本体に合わせて区切り文字も最小9px〜最大11pxに可変 */
   font-size: clamp(9px, 0.4vw + 7px, 11px);
   /* 【変更】画面幅に合わせて隙間も滑らかに調整 */
   margin: 0 clamp(8px, 0.5vw + 4px, 13px);
}



/* ========================================================================== */
/* MAIN_CONTAINER */
/* ========================================================================== */
main .main_container {
   max-width: 1500px;
   width: calc(100% - 60px);
   margin: 43px auto 88px;
   padding: 80px 0;
   background-color: #FFF;
   box-sizing: border-box;
}

#home main .main_container { margin: 88px auto; }



/* ========================================================================== */
/* FOOTER */
/* ========================================================================== */
/* フッター全体の背景と文字色 */
.footer {
  background-color: #232D3B; /* 画像の暗いネイビー色 */
  color: #FFF;
  padding: 70px 0;
}

/* コンテナ（中央揃え・左右レイアウト） */
.footer-container {
   display: flex;
   justify-content: space-between;
   align-items: flex-start;
   gap: 40px;

   max-width: 1340px;
   width: calc(100% - 60px);
   margin: 0 auto;
   box-sizing: border-box;
}

/* ==========================================
   左側エリア（ロゴ・プライバシー・コピーライト）
   ========================================== */
.footer-left { flex: 0 0 280px; }

.footer-logo { margin-bottom: 4px; }

.footer-logo img {
   width: 198px;
   height: auto;
}

.footer-copyright {
   margin-bottom: 12px; 
   color: rgba(255, 255, 255, 0.6);
   font-family: 'Roboto', 'Noto Sans JP', sans-serif;
   font-size: 12px;
}

.footer-privacy a {
   color: #FFF;
   opacity: 1;
   border-bottom: 1px solid transparent;
   transition: border-color 0.25s ease;
}

.footer-privacy a:hover { border-bottom-color: #FFF; }

/* ==========================================
   右側エリア（ナビゲーション・会社情報）
   ========================================== */
.footer-right {
   flex: 1;
   max-width: 950px;
}

/* ナビゲーション */
.footer-nav {
   margin-bottom: 30px;
   padding-bottom: 35px;
   border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.footer-nav ul {
   display: flex;
   justify-content: space-between;
   flex-wrap: wrap;
   gap: 25px;
}

.footer-nav a {
   color: #FFF;
   font-size: 16px;
   font-weight: bold;
   opacity: 1;
   border-bottom: 1px solid transparent;
   transition: border-color 0.25s ease;
}

.footer-nav a:hover { border-bottom-color: #FFF; }

/* 会社情報エリアのレイアウト調整 */
.footer-info {
   display: flex;
   flex-wrap: wrap; /* 子要素を折り返せるようにする */
   gap: 30px 40px; /* 縦の隙間30px、横の隙間40px */
}

/* 本社 と 東京営業所 の横並び設定 */
.info-block:nth-child(1),
.info-block:nth-child(2) {
   flex: 1; /* 均等な幅で横並びにする */
   min-width: 280px; /* 画面が狭くなった時に崩れないよう最小幅を設定 */
}

/* 法人の皆様へ を下部に100%幅で配置 */
.info-block:nth-child(3) {
   flex: 0 0 100%; /* 横幅いっぱいに広げて改行させる */
   margin-top: 10px; /* 本社・東京営業所との間の余白 */
}

.info-block h3 {
   margin-bottom: 5px;
   font-size: 16px;
   font-weight: bold;
}

.info-block p { color: rgba(255, 255, 255, 0.6); }

.info-block p span {
   display: inline-block;
   margin-left: 0.15em;  
   margin-right: 0.15em; 
}



/* ========================================================================== */
/* SECTION TITLE (共通セクション見出し) */
/* ========================================================================== */
main .section_title { display: inline-block; }

main .section_title .en {
   display: block; /* 確実に改行させる */
   color: #FA5B22;
   font-family: 'Roboto', 'Noto Sans JP', sans-serif;
   font-size: 50px;
   font-weight: 700;
   line-height: 1.1; /* 線との隙間を詰める */
   padding-bottom: 5px;
   border-bottom: 2px solid #FA5B22; /* 存在感を出すため2pxに調整 */
   letter-spacing: -0.0075em;
}

main .section_title h2.jp {
   font-size: 22px;
   font-weight: 500;
   margin-top: 10px;
   letter-spacing: 0.1em;
   color: #2B2B2B;
}

main .section_title h2.jp span {
   display: inline-block;
   margin-left: 0.15em;  
   margin-right: 0.15em; 
}



/* ========================================================================== */
/* BTN_VIEW（詳しく見る・お知らせ一覧等のボタン） */
/* ========================================================================== */
main .btn_view a {
   position: relative;
   display: inline-flex;
   align-items: center;
   justify-content: center/*space-between*/;
   min-width: 240px;
   width: max-content;
   height: 56px;
   background-color: #EDEEEE;
   color: #2B2B2B;
   font-size: 16px;
   padding-left: 2.25em;
   padding-right: calc(2.25em + 56px); 
   box-sizing: border-box;
}

main .btn_view a:hover { opacity: 1; }

main .btn_view a::before {
   content: "";
   position: absolute;
   top: 0;
   right: 0;
   display: block;
   width: 56px;
   height: 100%;
   background-color: #FA5B22;
}

main .btn_view a::after {
   content: "";
   position: absolute;
   top: 0;
   right: 0;
   display: block;
   width: 56px;
   height: 100%;

   mask-image: url("../images/icon_arrow_large.svg");
   mask-repeat: no-repeat;
   mask-position: center;
   mask-size: 24px;
   background-color: #FFF;
   transition: mask-position 0.25s ease;
}

main .btn_view a:hover::after {
   mask-position: calc(50% + 18%) center;
}



/* ========================================================================== */
/* NEWS SECTION（お知らせ）*/
/* ========================================================================== */
main section.news { padding: 0 80px; }

#home main section.news { margin-top: 100px; }

main section.news .news_flex {
   display: flex;
   justify-content: space-between;
   align-items: flex-start;
   gap: 60px;
}

main section.news .section_title {
   text-align: left;
   flex-shrink: 0; 
   width: 200px;
}

main section.news .newslist_wrapper {
   flex-grow: 1; 
}

main section.news .newslist {
   list-style: none;
   padding: 0;
   margin: 0;
}

main section.news .newslist li {
   border-bottom: 1px solid #E9ECEF;
}

main section.news .newslist li:first-child {
   border-top: 1px solid #E9ECEF;
}

main section.news .newslist li a,
main section.news .newslist li span.nolink {
   position: relative;
   display: flex;
   align-items: flex-start;
   padding: 40px 10px;
   text-decoration: none;
   color: #2B2B2B;
   transition: color 0.25s ease;
}

main section.news .newslist li a:hover {
   color: #FA5B22; 
   opacity: 1;
}

/* 日付 */
main section.news .newslist .date {
   width: 110px;
   flex-shrink: 0;
   color: #888;
   font-family: 'Roboto', 'Noto Sans JP', sans-serif;
   font-weight: bold;
}

/* タイトル（日付との間に広い余白を確保） */
main section.news .newslist .title {
   flex-grow: 1;
   padding-left: 40px; /* 日付との間の余白 */
   padding-right: 60px; /* 右側の矢印と被らないための余白 */
   line-height: 1.5;
}

/* 各ニュースの右端にある枠付き矢印ボタン（外枠） */
main section.news .newslist li a::before {
   content: ""; 
   position: absolute;
   right: 10px;
   top: 50%;
   transform: translateY(-50%);
   
   width: 36px;
   height: 36px;
   border: 1px solid #C0C3C7; 
   box-sizing: border-box;

   transition: border 0.25s ease;
}

main section.news .newslist li a:hover::before { border-color: #FA5B22; }


/* 各ニュースの右端にある枠付き矢印ボタン（矢印） */
main section.news .newslist li a::after {
   content: ""; 
   position: absolute;
   right: 10px;
   top: 50%;
   transform: translateY(-50%);

   width: 36px;
   height: 36px;
   box-sizing: border-box;

   mask-image: url("../images/icon_arrow.svg");
   mask-repeat: no-repeat;
   mask-position: center;
   mask-size: 14px 14px;
   background-color: #C0C3C7;

   transition: background 0.25s ease, mask-position 0.25s ease;
}

main section.news .newslist li a:hover::after {
   background-color: #FA5B22;
   mask-position: calc(50% + 18%) center;
}

/* お知らせ一覧ボタン */
main section.news .btn_view {
   margin-top: 40px;
   text-align: right;
}



/* ========================================================================== */
/* FADE_UP（スクロールすると下からふわっと表示） */
/* ========================================================================== */
.fade_up {
   opacity: 0;
   transform: translateY(40px); /* 40px下からスタート */
   transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade_up.is-visible {
   opacity: 1;
   transform: translateY(0);
}






/* -------------------------------------------------------------------------- */






/* ========================================================================== */
/* HEADER */ 
/* ========================================================================== */
/* タブレットサイズ用の調整（1024px以下）*/
/* -------------------------------------------------------------------------- */
@media screen and (max-width: 1024px) {
   header #header_nav ul li a {
      padding: 0 12px;
      font-size: 13px;
      white-space: nowrap;
      letter-spacing: -0.5px;
   }
   
   header #header_nav ul li.contact a { width: 100px; }

   /* ----------------------------------------------------------------------- */
   /* さらに狭い 847px以下〜769px までの微調整 */
   /* ----------------------------------------------------------------------- */
   @media screen and (max-width: 847px) {
      header #header_nav ul li a { padding: 0 10px; }
   }
}

/* -------------------------------------------------------------------------- */
/* スマートフォンサイズ用の調整（768px以下）*/
/* -------------------------------------------------------------------------- */
@media screen and (max-width: 768px) {
   /* PC用の横幅固定を解除 */
   body {
      min-width: 100% !important;
      padding-top: 60px;
   }
   
   /* 【JS連動】メニューが開いている間、背後のコンテンツをスクロールさせない設定 */
   body.fixed { overflow: hidden; }
   
   header {
      min-width: 100% !important;
      height: 60px;
   }
   
   header .header_flex {
      align-items: center;
      height: 100%;
   }

   /* ロゴのサイズ調整 */
   header .site_logo {
      display: flex; /* 念のため中の a タグや img の縦のズレを防ぐ設定 */
      width: auto;       
      height: 40px;
      margin-top: 0;
      margin-left: 10px;
   }

   header .site_logo img {
      display: block;
      width: auto;
      height: 100%;
   }

   /* ハンバーガーボタンを表示 */
   header #menuBtn {
      position: absolute;
      top: 0;
      right: 0;
      display: block !important;
      width: 60px;
      height: 60px;
      background-color: #232D3B;
      cursor: pointer;
      z-index: 1001;
   }

   header #menuBtn .trigger {
      position: relative;
      width: 60px;
      height: 49px;
      cursor: pointer;

      /* レイアウト設定（完全中央揃え） */
      display: flex;
      align-items: center;
      justify-content: center;

      /* 文字の選択（ドラッグ）を禁止 */
      user-select: none;
   }

   header #menuBtn .trigger .lines {
      display: inline-block;
      position: relative; 
      width: 32px;
      height: 3px;
      background: #FFF;
      transition: 0.3s;
   }

   header #menuBtn .trigger .lines::before,
   header #menuBtn .trigger .lines::after {
      content: "";
      position: absolute;
      left: 0;
      top: 0; /* 基準位置を中央に統一 */
      display: inline-block;
      width: 32px;
      height: 3px;
      background-color: #FFF;
      transition: 0.3s;
   }

   /* 上下の線を平行移動で配置 */
   header #menuBtn .trigger .lines::before { transform: translateY(-7px); }
   header #menuBtn .trigger .lines::after  { transform: translateY(7px); }

   /* 【JS連動】クリックされて「.active」が付いた時の処理 */
   header #menuBtn .trigger.active .lines {
      background: transparent; /* 中央の線を透明にする */
      transform: scale3d(0.8, 0.8, 0.8); /* ✕マーク全体を一回り小さく */
   }

   /* 上下の線を中央で45度回転させて「✕」にする */
   header #menuBtn .trigger.active .lines::before { transform: rotate(45deg); }
   header #menuBtn .trigger.active .lines::after  { transform: rotate(-45deg); }

   /* 「menu」テキストの配置 */
   header #menuBtn .trigger .text {
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      color: #FFF;
      font-family: "Roboto", sans-serif;
      font-size: 10px;
      font-weight: 700;
      line-height: 1;
      text-align: center;
   }

   /* ==========================================================================
      【新設計】開いたグローバルナビゲーション（背景全体）
      ========================================================================== */
   header #header_nav {
      position: fixed;
      top: 60px;
      left: 0;
      width: 100%;
      max-height: calc(100vh - 60px);
      padding: 15px;
      overflow-y: auto;
      background-color: #DDDEDE;
      box-sizing: border-box;
      
      /* jQueryのfadeToggleで制御するため初期状態は非表示 */
      display: none; 
   }

   /* メニュー内のリスト全体 */
   header #header_nav ul {
      display: flex;
      flex-direction: column; /* 縦並び */
      width: 100%;
      padding: 0;
      margin: 0;
      list-style: none;
   }

   /* ==========================================================================
      【重要】お問い合わせ（.contact）以外の一般メニュー（白背景の角丸ボックス）
      ========================================================================== */
   header #header_nav ul li:not(.contact) {
      width: 100%;
      height: auto;
      background-color: #FFF; /* 白背景 */
      border-bottom: 1px solid #E0E0E0; /* 項目ごとの区切り線 */
   }

   /* 通常メニューの一番上の項目（建材事業部）の上の角を丸める */
   header #header_nav ul li:not(.contact):first-child {
      border-top-left-radius: 6px;
      border-top-right-radius: 6px;
   }

   /* 通常メニューの一番下の項目（採用情報）の下の角を丸める */
   header #header_nav ul li:not(.contact):nth-last-child(2) {
      border-bottom-left-radius: 6px;
      border-bottom-right-radius: 6px;
      border-bottom: none; /* 一番下は区切り線を消す */
      margin-bottom: 15px; /* ★お問い合わせボタンとの間の隙間をあける */
   }

   /* 共通のリンク（aタグ）の基本設計 */
   header #header_nav ul li a {
      position: relative;
      display: flex;
      align-items: center;     /* 上下中央揃え */
      justify-content: flex-start; /* 左寄せ */
      height: 54px;            /* 押しやすいスマートな高さ */
      padding: 0 45px 0 20px;  /* 右側の矢印と被らないよう、右のパディングを広めに確保 */
      color: #2B2B2B;
      font-size: 14px;
      font-weight: 500;
      text-decoration: none;
      box-sizing: border-box;
   }

   /* PC用のホバー時下線アニメーションをスマホでは完全に無効化 */
   header #header_nav ul li:not(.contact) a::after {
      display: none;
   }

   /* ==========================================================================
      【重要】通常メニューの右端にあるオレンジの矢印「 ＞ 」
      ========================================================================== */
   header #header_nav ul li:not(.contact) a::before {
      content: "";
      position: absolute;
      right: 20px;
      top: 50%;
      transform: translateY(-50%);
      width: 12px;
      height: 12px;
      background-color: #FA5B22; /* 満点商会カラーのオレンジ */
      
      /* 矢印アイコン画像をマスクとして適用 */
      mask-image: url("../images/icon_arrow_small.svg"); /* ニュースセクション等で使っている矢印のパスに合わせてください */
      mask-repeat: no-repeat;
      mask-position: center;
      mask-size: contain;
   }

   /* ==========================================================================
      【重要】お問い合わせボタン（完全に独立したオレンジ色の角丸ボックス）
      ========================================================================== */
   header #header_nav ul li.contact {
      width: 100%;
      height: auto;
      margin-top: 5px; /* 上の通常メニューとの微調整 */
   }

   header #header_nav ul li.contact a {
      width: 100%;
      height: 54px;
      background-color: #FA5B22; /* ボタン全体の背景をオレンジに */
      color: #FFF;
      justify-content: center;   /* ★文字を完全に中央揃えにする */
      border-radius: 6px;        /* 四方を綺麗な角丸にする */
      padding: 0;                /* 中央揃えのためパディングをリセット */
      font-size: 15px;
   }

   /* お問い合わせボタンの右端にも薄い矢印を配置する場合（画像に合わせてお好みで） */
   header #header_nav ul li.contact a::before {
      content: "";
      position: absolute;
      right: 20px;
      top: 50%;
      transform: translateY(-50%);
      width: 12px;
      height: 12px;
      background-color: rgba(255, 255, 255, 0.4); /* 白の半透明矢印 */
      mask-image: url("../images/icon_arrow_small.svg");
      mask-repeat: no-repeat;
      mask-position: center;
      mask-size: contain;
   }
}






/* ==========================================================================
   【スマホ対応】768px以下でのサブメニュー（アコーディオン）設定
   ========================================================================== */
@media screen and (max-width: 768px) {

   /* 親階層（li）の初期化とアコーディオン化の準備 */
   header #header_nav ul li.has_sub {
      width: 100%;
      height: auto;
   }

   /* スマホ時はアコーディオン開閉にするため、最初はJavaScriptで制御できるように非表示にする */
   header #header_nav .sub_menu_wrapper {
      display: none; 
      width: 100%;
      padding: 0;
   }

   /* PC用のメガメニュー用レイアウト構造（FlexやGrid、固定幅）をスマホ用にリセット */
   header #header_nav .sub_menu_inner,
   header #header_nav .sub_menu_grid {
      display: block !important;
      width: 100% !important;
      max-width: 100% !important;
      padding: 0 !important;
      gap: 0 !important;
      background-color: #FA5B22;
   }

   /* スマホでは左側の「オレンジのタイトルエリア」は不要（親文字と重複するため非表示） */
   header #header_nav .sub_menu_left_title {
      display: none !important;
   }

   /* 子メニューのリストアイテム */
   header #header_nav .sub_menu_grid li {
      margin-bottom: 0 !important;
      border-bottom: 1px solid rgba(255, 255, 255, 0.45) !important;
      border-radius: 0 !important; 
      background: transparent !important;
   }
   header #header_nav .sub_menu_grid li:last-child {
      border-bottom: none !important;
   }
   header #header_nav .sub_menu_grid li.pc_hidden { display: block !important; }

   /* 子メニューのリンクデザインを調整（文字を少し細く、左にインデント） */
   header #header_nav .sub_menu_grid li a,
   header #header_nav .sub_menu_grid li.pc_hidden a {
      display: flex !important;
      align-items: center !important;
      height: 48px !important; /* 通常より少しコンパクトに */
      padding: 0 20px 0 35px !important; /* 左側に余白を設けて階層を表現 */
      box-shadow: none !important;
      transform: none !important;
      color: #FFF !important;
   }

   header #header_nav .sub_menu_grid li a::before { background-color: rgba(255, 255, 255, 0.65) !important; }

   /* スマホ時はサムネイル画像も不要なため非表示 */
   header #header_nav .sub_menu_grid li a .img_thumb {
      display: none !important;
   }

   /* 子メニューのテキスト設定 */
   header #header_nav .sub_menu_grid li a .txt {
      padding: 0 !important;
      font-size: 14px !important;
      font-weight: 500 !important;
      text-align: left !important;
   }

   /* --- 【変更】スマホ専用：「＋」と「－」のSVG切り替え挙動 --- */
   
   /* 1. 通常時（メニューが閉じているとき）：＋を表示 */
   header #header_nav ul li.has_sub > a::before {
      content: "";
      position: absolute;
      right: 20px;
      top: 50%;
      transform: translateY(-50%);
      width: 12px;  /* ＋アイコンの横幅（お好みで調整してください） */
      height: 12px; /* ＋アイコンの縦幅 */
      background-color: #FA5B22; /* 満点商会カラーのオレンジ */
      
      /* ★ ＋（プラス）のSVG画像のパスを指定 */
      mask-image: url("../images/icon_plus.svg"); 
      mask-repeat: no-repeat;
      mask-position: center;
      mask-size: contain;
      transition: background-color 0.3s ease;
   }

   /* 2. JavaScriptで親liに「.open」が付与されたとき（メニューが開いているとき）：－を表示 */
   header #header_nav ul li.has_sub.open > a::before {
      /* ★ －（マイナス）のSVG画像のパスに切り替える */
      mask-image: url("../images/icon_minus.svg");
      
      /* 必要であれば、開いたときにアイコンの色をグレー等に変えることも可能です */
      /* background-color: #B3B3B3; */
   }
}






/* ========================================================================== */
/* SUB_PAGE_HEADER */ 
/* ========================================================================== */
/* タブレットサイズ用の調整（1024px以下）*/
/* -------------------------------------------------------------------------- */
@media screen and (max-width: 1024px) {
   .sub_page_header {
      height: 200px; /* タブレットサイズ（1024px以下）での高さ */
   }
}

/* -------------------------------------------------------------------------- */
/* スマートフォンサイズ用の調整（768px以下）*/
/* -------------------------------------------------------------------------- */
@media screen and (max-width: 768px) {
   .sub_page_header {
      height: 160px; /* スマホサイズ（768px以下）での高さ */
   }
}






/* ========================================================================== */
/* BREADCRUMB */ 
/* ========================================================================== */
/* タブレットサイズ用の調整（1024px以下）*/
/* -------------------------------------------------------------------------- */
@media screen and (max-width: 1024px) {
   main .breadcrumb {
      width: calc(100% - 40px); /* 左右の余白を少し詰める */
      padding-top: 15px;
   }
}

/* -------------------------------------------------------------------------- */
/* スマートフォンサイズ用の調整（768px以下）*/
/* -------------------------------------------------------------------------- */
@media screen and (max-width: 768px) {
   main .breadcrumb {
      width: calc(100% - 30px); /* 左右の余白をさらに詰める */
      padding-top: 10px;
   }
}






/* ========================================================================== */
/* MAIN_CONTAINER */ 
/* ========================================================================== */
/* タブレットサイズ用の調整（1024px以下）*/
/* -------------------------------------------------------------------------- */
@media screen and (max-width: 1024px) {
   main .main_container,
   #home main .main_container {
      width: calc(100% - 40px); /* 左右の余白を少し詰める */
      margin: 40px auto;
      padding: 50px 0;
   }
}

/* -------------------------------------------------------------------------- */
/* スマートフォンサイズ用の調整（768px以下）*/
/* -------------------------------------------------------------------------- */
@media screen and (max-width: 768px) {
   main .main_container,
   #home main .main_container {
      width: calc(100% - 30px); /* 左右の余白をさらに詰める */
      margin: 30px auto;
      padding: 30px 0;
   }
}






/* ========================================================================== */
/* FOOTER */ 
/* ========================================================================== */
/* タブレットサイズ用の調整（1024px以下）*/
/* -------------------------------------------------------------------------- */
@media screen and (max-width: 1024px) {
   .footer { padding: 50px 0; }

   /* 左右並びを解除し、上下並びに変更 */
   .footer-container {
      width: calc(100% - 40px);
      flex-direction: column;
      align-items: stretch;
      gap: 40px;            /* 上下のエリアの間隔 */
   }

   /* 左側エリアを中央揃えにするための設定 */
   .footer-left {
      display: flex;
      flex: none;
      flex-direction: column;
      align-items: center;  /* 中身を水平方向の中央に揃える */
      text-align: center;   /* テキストも中央揃えにする */
      width: 100%;
   }
   
   /* 各要素の間の余白を中央配置に合わせて微調整 */
   .footer-logo { margin-bottom: 8px; }
   
   .footer-copyright { margin-bottom: 8px; }

   /* 右側エリアの最大幅制限を解除 */
   .footer-right { max-width: 100%; }
}

/* -------------------------------------------------------------------------- */
/* スマートフォンサイズ用の調整（768px以下）*/
/* -------------------------------------------------------------------------- */
@media screen and (max-width: 768px) {
   .footer { padding: 40px 0; }

   .footer-container {
      width: calc(100% - 50px);
      gap: 35px;
   }

   /* ナビゲーションメニューを非表示 */
   .footer-nav { display: none !important; }

   /* 会社情報エリアをすべて縦並びにする */
   .footer-info {
      flex-direction: column;
      gap: 30px;
      padding-top: 30px;
      border-top: 1px solid rgba(255, 255, 255, 0.5);
   }

   /* 本社・東京営業所・法人の皆様への横幅をすべて100%（縦一列）に統一 */
   .info-block:nth-child(1),
   .info-block:nth-child(2),
   .info-block:nth-child(3) {
      flex: none;
      width: 100%;
      min-width: 0;
      margin-top: 0;
   }

   .info-block h3 {
      margin-bottom: 4px;
      font-size: 15px;
   }
   
   .info-block p {
      color: rgba(255, 255, 255, 0.6);
      font-size: 14px;
      line-height: 1.5;
   }
}






/* ========================================================================== */
/* SECTION TITLE (共通セクション見出し) */
/* ========================================================================== */
/* タブレットサイズ用の調整（1024px以下）*/
/* -------------------------------------------------------------------------- */
@media screen and (max-width: 1024px) {
   main .section_title .en { font-size: 40px; }

   main .section_title h2.jp { font-size: 18px; }
}

/* -------------------------------------------------------------------------- */
/* スマートフォンサイズ用の調整（768px以下）*/
/* -------------------------------------------------------------------------- */
@media screen and (max-width: 768px) { 
   main .section_title .en {
      font-size: 30px;
      letter-spacing: 0;
   }

   main .section_title h2.jp {
      margin-top: 6px;
      font-size: 15px;
      font-weight: 700;
      letter-spacing: 0.03em;
   }
}






/* ========================================================================== */
/* BTN_VIEW（詳しく見る・お知らせ一覧等のボタン） */
/* ========================================================================== */
/* スマートフォンサイズ用の調整（768px以下）*/
/* -------------------------------------------------------------------------- */
@media screen and (max-width: 768px) {
   main .btn_view a {
      justify-content: center;
      /*width: 100%;*/         /* スマホではボタンを横幅いっぱいに広げて押しやすくする（お好みで外してもOK） */
      height: 48px;        /* スマホ向けに高さを少しコンパクトに（56px → 48px） */
      padding-left: 1.5em;
      padding-right: calc(1.5em + 48px);
      font-size: 14px;
   }

   main .btn_view a::before,
   main .btn_view a::after {
      width: 48px; /* 高さの変更に合わせて右側のオレンジ色の正方形のサイズも合わせる */
   }
}






/* ========================================================================== */
/* NEWS SECTION（お知らせ）*/ 
/* ========================================================================== */
/* タブレットサイズ用の調整（1024px以下）*/
/* -------------------------------------------------------------------------- */
@media screen and (max-width: 1024px) {
   main section.news { padding: 0 20px; } /* 左右の余白を縮小 */

   #home main section.news { margin-top: 60px; }

   main section.news .news_flex { gap: 30px; }

   main section.news .section_title { width: 150px; }
   
   main section.news .newslist li a,
   main section.news .newslist li span.nolink { padding: 30px 10px; }
}

/* -------------------------------------------------------------------------- */
/* スマートフォンサイズ用の調整（768px以下）*/
/* -------------------------------------------------------------------------- */
@media screen and (max-width: 768px) {
   main section.news { padding: 0 15px; } /* 事業案内（service_grid）の左右余白と統一 */

   #home main section.news { margin-top: 40px; }

   /* 左右の横並びを解除し、上下の縦並びに切り替え */
   main section.news .news_flex {
      flex-direction: column;
      align-items: stretch;
      gap: 20px;
   }

   main section.news .section_title {
      width: auto;
      margin-bottom: 0;
   }

   /* スマホ用のリスト余白調整 */
   main section.news .newslist li a,
   main section.news .newslist li span.nolink {
      display: block;      /* flexからblockに変更し、中身を縦並びにするベースを作る */
      padding: 20px 45px 20px 5px; /* 右端の矢印ボタンと被らないよう、右パディングを多めに確保（45px） */
   }

   /* 日付を「上の段」に配置し、フォントサイズを微調整 */
   main section.news .newslist .date {
      display: block;      /* 確実に独立した行にする */
      width: auto;         /* 固定幅110pxを解除 */
      margin-bottom: 5px;  /* 下のタイトルとの間の隙間 */
      font-size: 13px;
   }

   /* タイトルを「下の段」に配置し、左の余白をリセット */
   main section.news .newslist .title {
      display: block;      /* 確実に独立した行にする */
      padding-left: 0;     /* PC版で設定されていた「日付の右側用の45px」をリセット */
      padding-right: 0;    /* PC版の右余白をリセット（親要素のaタグで制御しているため） */
      font-size: 14px;
      line-height: 1.4;
   }

   /* 右端の矢印ボタンの位置調整 */
   main section.news .newslist li a::before,
   main section.news .newslist li a::after {
      right: 0;            /* 画面端に近くなるよう、10pxから0に変更（お好みで調整） */
      width: 32px;         /* スマホに合わせてボタンを少しコンパクトに */
      height: 32px;
   }
   
   /* 矢印アイコンのサイズ調整 */
   main section.news .newslist li a::after { mask-size: 12px 12px; }

   /* お知らせ一覧ボタン */
   main section.news .btn_view {
      margin-top: 25px;
      text-align: center;
   }
}






/* ========================================================================== */
/* PC限定：ドロップダウン・メガメニュー設定（769px以上・スライド仕様） */
/* ========================================================================== */
@media screen and (min-width: 769px) {
   
   header #header_nav ul li.has_sub {
      position: relative;
   }

   /* サブメニューの背景全体 */
   header #header_nav .sub_menu_wrapper {
      position: fixed;
      top: 100px;           /* ヘッダーの高さ(100px)のすぐ下 */
      left: 0;
      width: 100%;
      background-color: #F5F6F6; /* 背景を薄いグレーに */
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
      z-index: 999;

      /* ★ gridを使った自動可変スライド（中身の量に合わせて100%自動で開閉します） */
      display: grid;
      grid-template-rows: 0fr;
      transition: grid-template-rows 0.4s ease;
   }

   /* ホバー時に展開 */
   header #header_nav ul li.has_sub:hover .sub_menu_wrapper {
      grid-template-rows: 1fr;
      border-bottom: 1px solid #EEE; 
      transition: grid-template-rows 0.55s ease-out;
   }

   /* スライドの挙動を安定させるホルダー */
   header #header_nav .sub_menu_inner_holder {
      min-height: 0;
      overflow: hidden;
   }

   /* メガメニューの内側コンテナ */
   header #header_nav .sub_menu_inner {
      display: flex;
      max-width: 1340px;
      width: calc(100% - 60px); /* 左右の適切な余白をキープ */
      margin: 0 auto;
      padding: 30px 0;      /* この30pxが全体の上下の隙間（高さ）になります */
      box-sizing: border-box;
      
      /* 左エリアと右エリアの間の隙間を画面幅に連動 */
      gap: clamp(15px, 2vw, 30px); 
      
      /* 左のタイトルと右のカードの高さを「完全に一致（連動）」させる設定 */
      align-items: stretch; 
   }

   /* -------------------------------------------------------------
      左側：タイトルエリア
      ------------------------------------------------------------- */
   header #header_nav .sub_menu_left_title {
      flex: 0 0 clamp(180px, 18vw, 260px); 
      background-color: #FA5B22/*#232D3B*/; 
      padding: 30px 20px;   
      display: flex;
      flex-direction: column;
      box-sizing: border-box;
      color: #FFF;
      justify-content: center;
   }

   /* 英語タイトル */
   header #header_nav .sub_menu_left_title .en {
      font-family: 'Roboto', sans-serif;
      font-size: clamp(20px, 2vw, 28px); 
      font-weight: 700;
      line-height: 1.1;
      border-bottom: 1px solid #FFF;
      padding-bottom: 5px;
      letter-spacing: 0.03em;
   }

   /* 日本語タイトル */
   header #header_nav .sub_menu_left_title .jp {
      font-size: 13px;
      font-weight: 500;
      margin-top: 6px;
      letter-spacing: 0.05em;
   }

   /* View More ボタン設定（他からの影響を受けないノーマルな高さ） */
   header #header_nav .sub_menu_left_title .sub_menu_viewmore {
      /*margin-top: auto;*/      /* タイトルエリア内の最下部に配置 */
      padding-top: 15px;     /* 上の文字との最低限の隙間 */
      height: auto;          
   }
   
   header #header_nav .sub_menu_left_title .sub_menu_viewmore a {
      display: inline-flex;  
      align-items: center;
      justify-content: center;
      width: auto;           
      height: 38px;          
      background: transparent;
      border: 1px solid #FFF;
      border-radius: 19px;
      box-sizing: border-box;
      color: #FFF !important;
      font-family: 'Roboto', sans-serif;
      font-size: 13px;
      font-weight: 700;
      text-decoration: none;
      transition: background-color 0.3s ease, color 0.3s ease;
   }

   header #header_nav .sub_menu_left_title .sub_menu_viewmore a::after { display: none;}
   
   header #header_nav .sub_menu_left_title .sub_menu_viewmore a:hover {
      background-color: #FFF;
      color: #FA5B22/*#232D3B*/ !important;
      opacity: 1 !important;
   }


   /* -------------------------------------------------------------
      右側：カード風のグリッドリンク
      ------------------------------------------------------------- */
   header #header_nav .sub_menu_grid {
      flex-grow: 1; 
      display: grid;
      grid-template-columns: repeat(4, 1fr); /* カードは横に4列 */
      gap: clamp(10px, 1.2vw, 15px); 
      align-content: center/*flex-start*/;
   }

   /* グリッド内の個別liの設定 */
   header #header_nav .sub_menu_grid li {
      height: auto !important;
      width: 100% !important;
   }

   /* カードリンク本体 */
   header #header_nav .sub_menu_grid li a {
      display: block !important;   /* ★元の状態（block）に戻します */
      height: 100% !important;     /* ★元の状態（100%）に戻します */
      padding: 0 !important;
      background-color: #FFF; 
      box-shadow: 0 4px 10px rgba(0,0,0,0.03);
      transition: transform 0.25s ease, box-shadow 0.25s ease;
      overflow: hidden;
   }
   header #header_nav .sub_menu_grid li a:hover {
      transform: translateY(-3px); 
      box-shadow: 0 6px 15px rgba(0,0,0,0.08);
      opacity: 1 !important;
   }

   /* サムネイル画像の枠 */
   header #header_nav .sub_menu_grid li a .img_thumb {
      display: block;
      width: 100%;
      aspect-ratio: 16 / 9; /* ★16:9の比率を維持 */
      overflow: hidden;
      background-color: #EEE; 
   }
   header #header_nav .sub_menu_grid li a .img_thumb img {
      width: 100%;
      height: 100%;
      object-fit: cover; 
   }

   /* カードの下部テキスト */
   header #header_nav .sub_menu_grid li a .txt {
      display: block; /* ★元の状態（block）に戻します */
      padding: 10px;  /* ★元の余白（10px）に戻します */
      font-size: 13px;
      font-weight: 500;
      text-align: center;
      color: #2B2B2B;
      line-height: 1.4;
      transition: color 0.25s ease;
   }
   header #header_nav .sub_menu_grid li a:hover .txt {
      color: #FA5B22; 
   }

   /* 既存の共通アンダーラインの暴発防止 */
   header #header_nav .sub_menu_grid li a::after,
   header #header_nav .sub_menu_grid li a::before {
      display: none !important;
   }
}
