html,
body{
  width:100%;
  overflow-x:hidden;
}

body{
  padding-top:72px;
}

img,
iframe{
  max-width:100%;
}

  :root{
      --bg:#ffffff;
      --text:#111827;
      --muted:#6b7280;
      --line:#e5e7eb;
      --card:#f9fafb;
      --accent:#1E90FF; /* Fivefieldsアクセント（お好みで） */
      --radius:16px;
      --shadow:0 8px 24px rgba(0,0,0,.06);
    }
    *{box-sizing:border-box}

.imgposi1 { margin: 0 auto; text-align: center; }

    body{
      margin:0;
  font-family: 'Inter', 'Noto Sans JP', "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  /* Geminiっぽさを出すためのコツ */
  color: #1f1f1f; /* 真っ黒じゃない、少し柔らかい黒 */
  line-height: 1.6; /* 行間を少し広めに取ると読みやすくなります */
      color:var(--text);
      background:var(--bg);
    }
    a{color:var(--accent); text-decoration:none}
    a:hover{text-decoration:underline}
    
    .wrap{
  max-width:1120px;
  margin:0 auto;
  padding:24px 16px 64px;
    }

  .cont-style1{background: linear-gradient(transparent 70%, #a7d6ff 70%);}
    .brand{display:flex; gap:12px; align-items:center}
    .brand .logo{
      width:34px; height:34px; border-radius:10px;
      background:linear-gradient(135deg, var(--accent), #60a5fa);
    }
    .brand strong{font-size:15px}
    .brand span{font-size:12px; color:var(--muted)}

    /* layout */
    .grid{
      display:grid;
      grid-template-columns: 1fr 320px;
      gap:24px;
      margin-top:18px;
    }
    @media (max-width: 980px){
      .grid{grid-template-columns:1fr}
    }

    /* hero */
    .hero{
      padding:22px;
      border:1px solid var(--line);
      border-radius:var(--radius);
      background:#fff;
      box-shadow:var(--shadow);
    }
    .breadcrumb{font-size:12px; color:var(--muted); margin:0 0 10px}
    h1{font-size:28px; line-height:1.25; margin:0 0 10px}
    .lead{margin:0 0 14px; color:#111827; font-size:15px}
    .meta{
      display:flex; flex-wrap:wrap; gap:10px;
      padding:0; margin:0; list-style:none;
      color:var(--muted); font-size:12px;
    }
    .chip{
      border:1px solid var(--line);
      background:var(--card);
      padding:6px 10px;
      border-radius:999px;
    }

    /* sections */
    .section{
      margin-top:18px;
      padding:20px;
      border:1px solid var(--line);
      border-radius:var(--radius);
      background:#fff;
      box-shadow:var(--shadow);
    }
    .section h2{
      margin:0 auto;
      font-size:18px;
      text-align: center;
      position: relative;
      padding: 0 65px;
      text-align: center;
      margin-top:8px;
    }

.section h2:before {
  position: absolute;
  top: calc(50% - 1px);
  left: 0;
  width: 100%;
  height: 2px;
  content: '';
  background: #a9a9a9;
}

.section h2 span {
  position: relative;
  padding: 1rem 1em;
  background: #fff;
  font-size: 24px;
  font-weight: 600;
}

    .section h3{
  position: relative;
  padding: 1rem 0.5rem;
  color: #1E90FF;
  font-weight: 600;
    }

    .section h3:after {
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 6px;
      content: '';
      background-image: -webkit-repeating-linear-gradient(135deg, #000, #000 1px, transparent 2px, transparent 5px);
      background-image: repeating-linear-gradient(-45deg, #000, #000 1px, transparent 2px, transparent 5px);
      background-size: 7px 7px;
      -webkit-backface-visibility: hidden;
      backface-visibility: hidden;
    }
   .section span { background: linear-gradient(transparent 80%, #a7d6ff 70%); font-size:16px; line-height: 2.0;}

/* 次におすすめ専用 */
#next ul{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:10px 20px;
  padding:0;
  margin-top:10px;
  list-style:none;
}

#next li{
  list-style:none;
}

#next a{
  display:block;
  padding:12px;
  border-radius:8px;
  border:1px solid #e5e7eb;
  background:#fff;
  transition:0.2s;
}

#next a:hover{
  background:#1e90ff;
  transform:translateY(-2px);
  box-shadow:0 4px 10px rgba(0,0,0,0.08);
  text-decoration: none;
  color: #fff;
}

/* スマホは1列 */
@media (max-width: 768px){

  .wrap{
    padding-left:16px;
    padding-right:16px;
  }

  .section{
    padding:26px 24px;
  }

  .section p,
  .section ul,
  .section ol,
  .section h3{
    margin-left:4px;
    margin-right:4px;
  }
  
.section h2 span {
  position: relative;
  padding:0 24px;
  background: #fff;
  font-size: 20px;
  font-weight: 600;
}

  .section h2 span{
    padding:0.6rem 0.8em;
    font-size:20px;
  }


  #next ul{
    grid-template-columns: 1fr;
  }


}

    .muted{color:var(--muted)}


    
    /* media cards */
    .media-grid{
      display:grid;
      grid-template-columns: repeat(3, 1fr);
      gap:14px;
    }
    @media (max-width: 980px){
      .media-grid{grid-template-columns:1fr}
    }
    .media-card{
      border:1px solid var(--line);
      border-radius:var(--radius);
      background:var(--card);
      padding:14px;
    }
    .media-card h3{margin:0 0 6px; font-size:14px}
    .media-card p{margin:0 0 10px; font-size:12px; color:var(--muted)}
    .btn{
      display:inline-block;
      border:1px solid rgba(30,144,255,.25);
      background:#fff;
      padding:8px 12px;
      border-radius:12px;
      font-size:13px;
    }
    .btn:hover{background:rgba(30,144,255,.06); text-decoration:none}

/* スライド */
.slide-viewer{
  position:relative;
  max-width:900px;
  margin:0 auto;
}

.slide-viewer img{
  width:100%;
  height:auto;
  border-radius:12px;
  display:block;
}
.slide-btn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:40px;
  height:40px;
  border:none;
  border-radius:50%;
  background:rgba(0,0,0,0.6);
  color:#fff;
  font-size:24px;
  cursor:pointer;
  z-index:10;
}

.slide-btn.prev{ left:10px; }
.slide-btn.next{ right:10px; }

.slide-btn:hover{
  background:rgba(0,0,0,0.9);
}

.slide-viewer{
  position:relative;
  max-width:900px;
  margin:0 auto;
  overflow:hidden;
  touch-action:pan-y;
  user-select:none;
}

.slide-viewer img{
  width:100%;
  height:auto;
  border-radius:12px;
  display:block;
  pointer-events:none;
}

/* 全画面ボタン */
.fullscreen-slide-btn{
  position:absolute;
  right:12px;
  bottom:12px;
  z-index:12;
  border:none;
  border-radius:999px;
  padding:8px 14px;
  background:rgba(0,0,0,0.65);
  color:#fff;
  font-size:14px;
  cursor:pointer;
}

.fullscreen-slide-btn:hover{
  background:rgba(0,0,0,0.9);
}

/* 全画面モーダル */
.slide-modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.92);
  z-index:5000;
  display:none;
  align-items:center;
  justify-content:center;
  padding:24px;
}

.slide-modal.active{
  display:flex;
}

.slide-modal img{
  max-width:95vw;
  max-height:90vh;
  object-fit:contain;
  border-radius:8px;
  background:#fff;
}

/* 閉じる */
.slide-modal-close{
  position:absolute;
  top:18px;
  right:22px;
  width:44px;
  height:44px;
  border:none;
  border-radius:50%;
  background:rgba(255,255,255,0.16);
  color:#fff;
  font-size:30px;
  cursor:pointer;
  z-index:5010;
}

.slide-modal-close:hover{
  background:rgba(255,255,255,0.3);
}

/* 全画面内の左右ボタン */
.slide-modal-btn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:52px;
  height:52px;
  border:none;
  border-radius:50%;
  background:rgba(255,255,255,0.18);
  color:#fff;
  font-size:36px;
  cursor:pointer;
  z-index:5010;
}

.slide-modal-btn.prev{
  left:24px;
}

.slide-modal-btn.next{
  right:24px;
}

.slide-modal-btn:hover{
  background:rgba(255,255,255,0.35);
}

@media(max-width:768px){
  .slide-modal{
    padding:12px;
  }

  .slide-modal img{
    max-width:96vw;
    max-height:82vh;
  }

  .slide-modal-btn{
    width:44px;
    height:44px;
    font-size:30px;
  }

  .slide-modal-btn.prev{
    left:10px;
  }

  .slide-modal-btn.next{
    right:10px;
  }

  .slide-modal-close{
    top:12px;
    right:12px;
  }

  .fullscreen-slide-btn{
    font-size:12px;
    padding:7px 12px;
  }
}

/* 動画（すでにあるembedを強化） */

    /* embed */
    .embed{
  max-width:900px;
  margin:0 auto;
      margin-top:10px;
      border:1px solid var(--line);
      border-radius:var(--radius);
      overflow:hidden;
      background:#000;
      aspect-ratio: 16 / 9;
    }
    .embed iframe{width:100%; height:100%; border:0}

.youtube-btn{
  display:inline-block;
  margin-top:12px;
  padding:10px 18px;
  border-radius:999px;
  background:#ff0000;
  color:#fff;
  font-weight:bold;
  text-decoration:none;
  transition:0.3s;
}

.youtube-btn:hover{
  background:#cc0000;
  transform:scale(1.05);
}

    .audio{
      margin-top:10px;
      border:1px solid var(--line);
      border-radius:var(--radius);
      padding:12px;
      background:#fff;
    }
    audio{width:100%}

    /* checklist */
    .checklist ul{margin:0; padding-left:18px}
    .checklist li{margin:6px 0}

    /* sidebar */
.side{
  display:flex;
  flex-direction:column;
  gap:14px;
}

/* stickyは内側だけにする */
.side-inner{
  position:sticky;
  top:76px;
  display:flex;
  flex-direction:column;
  gap:14px;
  max-height:80vh;
  overflow-y:scroll; /* ←変更 */
  scrollbar-width: thin;
  scrollbar-color: #60a5fa transparent;
}

.side-inner::-webkit-scrollbar{
  width:6px;
}

.side-inner::-webkit-scrollbar-thumb{
  background:linear-gradient(180deg, #60a5fa, #1e90ff);
  border-radius:10px;
}

.side-inner::-webkit-scrollbar-button{
  height:0;
  width:0;
}
.contact-box{
  text-align:center;
}

.contact-box a{
  display:block;
  padding:12px;
  background:#f3961c;
  color:#fff;
  border-radius:6px;
  text-decoration:none;
  font-weight:bold;
}

.contact-box a:hover{
  background:#f5ce4e;
}
    @media (max-width: 980px){
      .side{position:static}
    }
    .box{
      border:1px solid var(--line);
      background:#fff;
      box-shadow:var(--shadow);
      padding:16px;
    }
    .box h2{font-size:16px; margin:0 auto; text-align: center; margin-bottom:20px; margin-top:18px; padding:8px; background-color: #60a5fa; border-radius: 4px; color: #fff; }
    .toc a{display:block; padding:10px 6px; font-size:13px; color:#111827; border-bottom: 1px solid #ccc; text-decoration: none;}
    .toc a:hover { background-color: #60a5fa; color: #ffffff;}
    .toc a span{color:var(--muted); font-size:12px}
    .note{
      background:linear-gradient(180deg, rgba(30,144,255,.06), #fff);
      border-color:rgba(30,144,255,.25);
    }

    /* footer */
    footer{margin-top:28px; color:var(--muted); font-size:12px}
    .ad{
      margin-top:18px;
      padding:14px;
      border:1px dashed var(--line);
      border-radius:var(--radius);
      background:#fff;
      color:var(--muted);
      font-size:12px;
      text-align:center;
    }