/* 会社ごとの書類フォルダ（専務ページ・事務1画面・各フォルダページで共通） v1.4 */

/* 入口ボタン（専務ページ・事務1画面） */
.co-btns { display:grid; grid-template-columns:repeat(auto-fit,minmax(16rem,1fr)); gap:1rem; margin-bottom:2rem; }
.co-btn { display:flex; align-items:center; gap:1rem; padding:1.3rem 1.4rem; border-radius:16px;
          background:#fff; color:#333; text-decoration:none; box-shadow:0 4px 14px rgba(0,0,0,.12);
          border-left:10px solid #7b2a3a; transition:transform .15s, box-shadow .15s; }
.co-btn:hover { transform:translateY(-3px); box-shadow:0 8px 20px rgba(0,0,0,.18); }
.co-gl { border-left-color:#1f6fb2; }
.co-ico { font-size:2.4rem; line-height:1; }
.co-txt { flex:1; display:flex; flex-direction:column; gap:.2rem; }
.co-txt b { font-size:1.4rem; }
.co-txt small { font-size:.95rem; color:#777; }
.co-go { font-size:2rem; color:#bbb; }

/* フォルダページの見出し帯と戻るボタン */
.sub-head { display:flex; align-items:center; gap:1rem; flex-wrap:wrap;
            background:#7b2a3a; color:#fff; border-radius:16px; padding:1.1rem 1.4rem; margin:1rem 0 1.4rem; }
.sub-head.gl { background:#1f6fb2; }
.sub-head h1 { margin:0; flex:1; min-width:0;
               font-size:clamp(1.1rem, 2vw, 1.35rem);   /* 画面幅に合わせて少し小さめに */
               white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }  /* 改行させない */
.sub-head .who { font-size:1rem; background:rgba(255,255,255,.18); border-radius:999px; padding:.25rem .9rem; }
.back { display:inline-flex; align-items:center; gap:.4rem; padding:.6rem 1.1rem; border-radius:10px;
        background:rgba(255,255,255,.15); border:2px solid rgba(255,255,255,.5); color:#fff;
        text-decoration:none; font-weight:bold; font-size:1.05rem; }
.back:hover { background:rgba(255,255,255,.28); }

/* 専務の背景（専務ページと、専務が開いたフォルダページだけ） */
body.bg-senmu {
  background-image:
    url('https://topjapan.xbiz.jp/demo-2/senmu-box/image/hyou.png'),
    linear-gradient(135deg, #f9c6e3 0%, #e6b8f0 50%, #c9b8f5 100%) !important;
  /* 豹柄を画面の高さに合わせ、左右にも同じ柄を並べて余白を埋める */
  background-size: auto 100vh, cover !important;
  background-position: center top, center center !important;
  background-repeat: repeat-x, no-repeat !important;
  background-attachment: fixed, fixed !important;
  background-color: #f3c4e6 !important;
}
/* スマホ（縦長）は高さ合わせだと大きすぎるので、横幅に合わせて縦に並べる */
@media (max-width: 768px) {
  body.bg-senmu {
    background-size: 100% auto, cover !important;
    background-repeat: repeat-y, no-repeat !important;
    background-attachment: scroll, scroll !important;
  }
}

/* 稲葉さん（事務1）のメルヘン背景（事務1の画面と、事務1が開いたフォルダページ） */
body.bg-jimu {
  background-image:
    url("data:image/svg+xml;utf8,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22600%22 height=%22160%22 viewBox=%220 0 600 160%22%3E%0A%3Cg fill=%22%23ffffff%22%3E%0A%3Cellipse cx=%2280%22 cy=%22130%22 rx=%22110%22 ry=%2250%22 opacity=%22.85%22/%3E%3Cellipse cx=%22170%22 cy=%22100%22 rx=%2270%22 ry=%2255%22 opacity=%22.85%22/%3E%0A%3Cellipse cx=%22260%22 cy=%22135%22 rx=%22100%22 ry=%2245%22 opacity=%22.85%22/%3E%3Cellipse cx=%22390%22 cy=%22115%22 rx=%2285%22 ry=%2255%22 opacity=%22.8%22/%3E%0A%3Cellipse cx=%22500%22 cy=%22135%22 rx=%22120%22 ry=%2250%22 opacity=%22.85%22/%3E%3Cellipse cx=%22600%22 cy=%22110%22 rx=%2260%22 ry=%2245%22 opacity=%22.8%22/%3E%0A%3Cellipse cx=%220%22 cy=%22110%22 rx=%2260%22 ry=%2245%22 opacity=%22.8%22/%3E%0A%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml;utf8,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22900%22 height=%22260%22 viewBox=%220 0 900 260%22%3E%0A%3Cg fill=%22%23ffffff%22 opacity=%22.7%22%3E%0A%3Cellipse cx=%22120%22 cy=%2280%22 rx=%2260%22 ry=%2222%22/%3E%3Cellipse cx=%22155%22 cy=%2265%22 rx=%2235%22 ry=%2225%22/%3E%3Cellipse cx=%2295%22 cy=%2270%22 rx=%2228%22 ry=%2220%22/%3E%0A%3Cellipse cx=%22640%22 cy=%22170%22 rx=%2270%22 ry=%2224%22/%3E%3Cellipse cx=%22680%22 cy=%22152%22 rx=%2240%22 ry=%2228%22/%3E%3Cellipse cx=%22610%22 cy=%22158%22 rx=%2230%22 ry=%2220%22/%3E%0A%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml;utf8,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22320%22 height=%22320%22 viewBox=%220 0 320 320%22%3E%0A%3Cg fill=%22%23ffffff%22 opacity=%22.9%22%3E%0A%3Cpath d=%22M40 30l4 10 10 4-10 4-4 10-4-10-10-4 10-4z%22/%3E%0A%3Cpath d=%22M230 70l3 7 7 3-7 3-3 7-3-7-7-3 7-3z%22/%3E%0A%3Cpath d=%22M150 200l5 12 12 5-12 5-5 12-5-12-12-5 12-5z%22/%3E%0A%3Cpath d=%22M285 250l3 6 6 3-6 3-3 6-3-6-6-3 6-3z%22/%3E%0A%3Ccircle cx=%22110%22 cy=%2260%22 r=%222.5%22/%3E%3Ccircle cx=%22190%22 cy=%22140%22 r=%222%22/%3E%3Ccircle cx=%2260%22 cy=%22250%22 r=%222.5%22/%3E%0A%3Ccircle cx=%22270%22 cy=%22160%22 r=%222%22/%3E%3Ccircle cx=%2220%22 cy=%22150%22 r=%221.8%22/%3E%3Ccircle cx=%22200%22 cy=%22300%22 r=%222%22/%3E%0A%3C/g%3E%0A%3Cg opacity=%22.55%22%3E%0A%3Cpath fill=%22%23ffb3d1%22 d=%22M95 140c-6-8-18-4-18 5 0 7 9 13 18 20 9-7 18-13 18-20 0-9-12-13-18-5z%22/%3E%0A%3Cpath fill=%22%23c9b3ff%22 d=%22M255 20c-4-5-12-3-12 3 0 5 6 9 12 13 6-4 12-8 12-13 0-6-8-8-12-3z%22/%3E%0A%3Cpath fill=%22%23ffd27a%22 d=%22M30 300l3 7h8l-6 5 2 8-7-4-7 4 2-8-6-5h8z%22/%3E%0A%3Cpath fill=%22%239fe3d0%22 d=%22M300 100l3 7h8l-6 5 2 8-7-4-7 4 2-8-6-5h8z%22/%3E%0A%3C/g%3E%3C/svg%3E"),
    radial-gradient(circle at 15% 20%, rgba(255,255,255,.7) 0, rgba(255,255,255,0) 35%),
    radial-gradient(circle at 85% 30%, rgba(255,240,180,.55) 0, rgba(255,240,180,0) 30%),
    linear-gradient(180deg, #cfe8ff 0%, #e8dcff 40%, #ffe0ef 75%, #fff4e0 100%) !important;
  background-size: 600px 160px, 900px 260px, 320px 320px, cover, cover, cover !important;
  background-position: 0 100%, 0 40px, 0 0, center, center, center !important;
  background-repeat: repeat-x, repeat-x, repeat, no-repeat, no-repeat, no-repeat !important;
  background-attachment: fixed, fixed, fixed, fixed, fixed, fixed !important;
  background-color: #e8dcff !important;
}
@media (max-width: 768px) {
  body.bg-jimu { background-attachment: scroll, scroll, scroll, scroll, scroll, scroll !important; }
}

/* 専務ページの見出し（事務1との共有BOX／会社ごとの書類フォルダ）を白文字に。柄の上でも読めるよう影を付ける */
body.bg-senmu .sec-title {
  color: #fff !important;
  text-shadow: 0 1px 3px rgba(0,0,0,.65), 0 0 8px rgba(0,0,0,.35);
}