/* ===== css/gyoumu.css (inlined) ===== */
:root{
  --bg: #fff;
  --overlay-bg: rgba(0,0,0,0.45);
  --gap: 24px;
  --radius: 12px;
  --primary: #2563eb;
}

body{
  background: var(--bg);
  color: #111827;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

.container{
  max-width: 900px;
  margin: 0 auto;
}

/* 上段の項目ラベル */
.top-labels{
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 16px 0;
}

.label{
  background: transparent;
  padding: 6px 14px;
  font-weight: 600;
  font-size: 0.98rem;
  text-align: center;
}

.label h2{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.2rem;
  margin: 0;
}

.label-icon{
  width: 50px;
  height: 50px;
  display: inline-block;
  object-fit: contain;
  vertical-align: middle;
}

/* カード群 */
.cards{
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

.card{
  position: relative;
  overflow: visible;
  background: linear-gradient(131.34deg, rgba(232,253,219,.6) 0, rgba(193,248,189,.6) 100%);
  padding: 18px;
  border: 1px solid rgba(15,23,42,0.04);
  min-height: 120px;
  text-align: center;
  border-radius: 8px;
}

/* バッジ */
.card-badge{
  position: absolute;
  width: 220px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 5;
}

.card--support .card-badge{ top: -32px; right: -22px; }
.card--office  .card-badge{ top: -32px; left: 22px; }
.card--design  .card-badge{ top: -32px; right: -22px; }

.card-badge img{ display:block; max-width:100%; height:auto; border-radius:8px; }

/* item list */
.item-list{
  list-style: none;
  display: grid;
  gap: 28px;
  padding: 0;
  margin: 0;
  justify-items: center;
}

.item-list li{ width: 100%; max-width: 420px; }

/* 共通ボタン */
button {
  border: 1px solid rgba(60,60,60,0.6);
  background-color: #fff;
  font-size: 16px;
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
}

button.item-btn{ width:78%; text-align:center; font-size:15px; }
button.item-btn:hover{ background:#f1f5ff; }
button.item-btn:active{ transform: translateY(1px); }

/* モーダル要素 */
.modal-tag{
  display: block;
  background: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  color: #1f2937;
  font-size: 0.2rem;
  text-align: center;
  border: 1px solid rgba(60,60,60,0.6);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25);
  white-space: nowrap;
  margin-top: 12px;
}

/* overlay / modal */
.overlay{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--overlay-bg);
  z-index: 1000;
  padding: 20px;
}
.overlay.active{ display:flex; }
.modal{
  background-color: #fff;
  border-radius: var(--radius);
  width: 100%;
  max-width: 720px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  overflow:auto;
  max-height: 90vh;
  padding: 18px;
  text-align: center;
  font-weight: bold;
}

.modal header{ display:flex; align-items:flex-start; justify-content:center; gap:12px; }
.modal header h2{ margin:0; font-size:20px; }

.modal .content{ margin-top:12px; font-size:15px; line-height:1.6; text-align:left; font-weight:normal; }
.modal .actions{ margin-top:16px; display:flex; gap:8px; justify-content:flex-end; flex-direction: column-reverse; }

.btn{ padding:8px 12px; border-radius:6px; border:0; cursor:pointer; }
.btn.primary{ background:var(--primary); color:#fff; }
.btn.ghost{ background:#f1f1f1; color:#222; }

/* tags */
.tags{ display:flex; flex-wrap:wrap; gap:53px; background:#fff; padding:12px; margin-top:12px; }
.tag{
  display:inline-flex; align-items:center; justify-content:center;
  padding:8px 12px; border:2px solid #000; background:#fff; color:#000; border-radius:4px;
  font-weight:bold; white-space:nowrap; box-sizing:border-box;
}

/*モーダル　マウスオーバー時の画像の処理 スタート */
.modal {
  overflow: visible; /* はみ出しを許可 */
}

.zoom-image {
  max-width: 100%;
  max-height:200px;/*ここで通常サイズの縦サイズを制限*/
  width:auto;
  height: auto;
  transition: transform 0.2s ease;
  transform-origin: center center;
  position: relative;
  z-index: 1;
}

.zoom-image:hover {
  transform: scale(2);
  z-index: 9999;
}
/* マウスオーバー時の処理　END　*/

/* ギャラリー */
.flex{ display:flex; flex-wrap:wrap; gap:16px; margin-top:12px; }
.flex .item{ flex: 0 0 calc((100% - 32px) / 3); }
.flex img{ width:100%; height:100%; display:block; object-fit:cover; }


@media (max-width:800px){
  .flex .item{ flex:0 0 calc((100% - 16px)/2); }

/*モーダル　マウスオーバー時の画像の処理 スタート */
.modal {
  overflow: visible; /* はみ出しを許可 */
}

.zoom-image {
  max-width: 100%;
  max-height:200px;/*ここで通常サイズの縦サイズを制限*/
  width:auto;
  height: auto;
  transition: transform 0.2s ease;
  transform-origin: center center;
  position: relative;
  z-index: 1;
}

.zoom-image:hover {
  transform: scale(2);
  z-index: 9999;
}

/* マウスオーバー時の処理　END　*/
}
@media (max-width:480px){
  .flex .item{ flex:0 0 100%; }
.modal{overflow-y: auto;} /*スマホサイズ:モーダル内スクロール*/
.zoom-image:hover {
  transform: scale(1);
  z-index: 9999;/*スマホモーダル内の画像はhoverさせない*/
}



/* tags */
.tags{ display:flex; flex-wrap:wrap; gap:8px; background:#fff; padding:12px; margin-top:12px; }
.tag{
  display:inline-flex; align-items:center; justify-content:center;
  padding:8px 12px; border:2px solid #000; background:#fff; color:#000; border-radius:4px;
  font-weight:bold; white-space:nowrap; box-sizing:border-box;
}}

/* レスポンシブ: モバイルではバッジを中央上へ移動しサイズを小さくする */
@media (max-width:600px){
  .card-badge{ top:8px; left:88%; transform:translateX(-50%); width:76px; }
  .top-labels{ flex-direction:column; gap:8px; align-items:center; }
  .container{ max-width:100%; }
  .card{ padding:14px; }
   button.item-btn{width:64%;}
   .card--office .card-badge {
   top: -32px;
   left: 40px;
}
}
/* ===== end css ===== */
