/*
Theme Name: My Simple Portfolio
Author: Gemini
Description: カスタムHTMLデザインを表示するための最小構成テーマです。余計なスタイル干渉を排除しています。
Version: 1.0.0
*/

/* --- リセットCSS（ブラウザの差異をなくす） --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #fff;
    color: #333;
    /* Stickyを効かせるため、親要素のoverflowは絶対にvisibleにする */
    overflow-x: hidden; 
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
}

/* 以下、前回作成したデザイン用CSSです。
   テーマのスタイルシートに直接記述することで、設定の手間を省きます。
*/

/* --- 共通設定 prefix: bz- --- */
.bz-wrapper {
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  width: 100%;
  overflow-x: hidden;
}

.bz-wrapper svg {
  vertical-align: middle;
}

/* グラデーション定義 */
.bz-grad-blue { background: linear-gradient(135deg, #1e3a8a, #1d4ed8); }
.bz-grad-orange { background: linear-gradient(135deg, #c2410c, #991b1b); }
.bz-grad-purple { background: linear-gradient(135deg, #6b21a8, #be185d); }
.bz-grad-teal { background: linear-gradient(135deg, #115e59, #047857); }
.bz-grad-green { background: linear-gradient(135deg, #166534, #15803d); }

/* --- Pattern A: 没入型フルスクリーン --- */
.bz-pattern-a .bz-hero,
.bz-pattern-a .bz-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  box-sizing: border-box;
  /* スクロールスナップ設定 */
  scroll-snap-align: start;
}

/* スクロールスナップのコンテナ設定（Pattern Aのみ） */
.bz-pattern-a {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

.bz-pattern-a .bz-hero {
  background-color: #111827;
  color: #fff;
  text-align: center;
}

.bz-pattern-a .bz-hero-content {
  position: relative;
  z-index: 2;
}

.bz-pattern-a .bz-main-title {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.2;
}

.bz-pattern-a .bz-desc {
  color: #9ca3af;
  margin-top: 20px;
}

.bz-pattern-a .bz-scroll-icon {
  position: absolute;
  bottom: 30px;
  animation: bz-bounce 2s infinite;
}

.bz-pattern-a .bz-section {
  color: #fff;
}

.bz-pattern-a .bz-bg-number {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 150px;
  font-weight: bold;
  color: rgba(255,255,255,0.05);
  line-height: 1;
  pointer-events: none;
}

.bz-pattern-a .bz-container {
  max-width: 1000px;
  width: 100%;
  position: relative;
  z-index: 2;
}

.bz-pattern-a .bz-badge {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(0,0,0,0.2);
  border-radius: 99px;
  font-size: 0.85rem;
  margin-bottom: 20px;
}
.bz-text-blue { color: #60a5fa; }
.bz-text-orange { color: #fb923c; }
.bz-text-pink { color: #f472b6; }
.bz-text-teal { color: #34d399; }
.bz-text-green { color: #4ade80; }

.bz-pattern-a h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  font-weight: bold;
  line-height: 1.2;
  color: #fff;
}

.bz-pattern-a .bz-text {
  font-size: 1.1rem;
  line-height: 1.8;
  border-left: 4px solid rgba(255,255,255,0.3);
  padding-left: 20px;
  margin-bottom: 30px;
}

.bz-pattern-a .bz-btn-link {
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  font-size: 1.1rem;
}

.bz-pattern-a .bz-bg-blue { background: linear-gradient(135deg, #1e3a8a, #1d4ed8); }
.bz-pattern-a .bz-bg-orange { background: linear-gradient(135deg, #c2410c, #991b1b); }
.bz-pattern-a .bz-bg-purple { background: linear-gradient(135deg, #6b21a8, #be185d); }
.bz-pattern-a .bz-bg-teal { background: linear-gradient(135deg, #115e59, #047857); }
.bz-pattern-a .bz-bg-green { background: linear-gradient(135deg, #166534, #15803d); }

@media (min-width: 768px) {
  .bz-pattern-a .bz-main-title { font-size: 5rem; }
  .bz-pattern-a .bz-bg-number { font-size: 200px; right: 40px; }
  .bz-pattern-a h2 { font-size: 3.5rem; }
}


/* --- Pattern B: 交互レイアウト --- */
.bz-pattern-b {
  background: #fff;
  padding-bottom: 60px;
}

.bz-pattern-b .bz-header {
  text-align: center;
  padding: 60px 20px;
  background: #f9fafb;
  margin-bottom: 40px;
}

.bz-pattern-b .bz-main-title-dark {
  font-size: 2.5rem;
  color: #111827;
  margin-bottom: 10px;
  font-weight: bold;
}

.bz-pattern-b .bz-row {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 40px 20px;
}

.bz-pattern-b .bz-col-img,
.bz-pattern-b .bz-col-text {
  width: 100%;
}

.bz-pattern-b .bz-card-img {
  position: relative;
  width: 100%;
  padding-top: 75%; /* 4:3 aspect ratio */
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.bz-pattern-b .bz-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  z-index: 2;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bz-pattern-b .bz-img-number {
  position: absolute;
  bottom: 20px;
  left: 20px;
  font-size: 60px;
  font-weight: bold;
  color: rgba(255,255,255,0.2);
  line-height: 1;
}

.bz-pattern-b .bz-label-group {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.bz-pattern-b .bz-line {
  width: 40px;
  height: 1px;
  background: #9ca3af;
  margin-right: 15px;
}

.bz-pattern-b .bz-label {
  font-size: 0.85rem;
  font-weight: bold;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.bz-pattern-b h2 {
  font-size: 2rem;
  font-weight: bold;
  color: #111827;
  margin-bottom: 20px;
}

.bz-pattern-b p {
  color: #4b5563;
  line-height: 1.8;
  margin-bottom: 30px;
}

.bz-pattern-b .bz-link-dark {
  color: #111827;
  font-weight: bold;
  text-decoration: none;
  border-bottom: 2px solid #111827;
  padding-bottom: 4px;
  transition: color 0.3s;
}

.bz-pattern-b .bz-link-dark:hover {
  color: #2563eb;
  border-color: #2563eb;
}

@media (min-width: 768px) {
  .bz-pattern-b .bz-row {
    flex-direction: row;
    padding: 60px 20px;
  }
  .bz-pattern-b .bz-reverse {
    flex-direction: row-reverse;
  }
  .bz-pattern-b .bz-col-img,
  .bz-pattern-b .bz-col-text {
    width: 48%;
  }
}


/* --- Pattern C: 重なりスタック --- */
.bz-pattern-c {
  background: #f3f4f6;
  padding-bottom: 60px;
}

.bz-pattern-c .bz-stack-header {
  height: 50vh;
  background: #111827;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-bottom: -50px; /* カードを食い込ませる */
  padding: 20px;
}

.bz-pattern-c .bz-stack-header h1 {
  font-size: 2.5rem;
  font-weight: bold;
  color: #fff;
}

.bz-pattern-c .bz-arrow-down {
  margin-top: 20px;
  font-size: 24px;
  animation: bz-bounce 2s infinite;
}

.bz-pattern-c .bz-stack-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  padding: 0 20px;
}

.bz-pattern-c .bz-stack-card {
  position: sticky; /* スクロールで重なる魔法 */
  top: 100px; /* 具体的な値を指定（HTML側のstyle属性と合わせて調整可）*/
  margin-bottom: 40px;
}

.bz-pattern-c .bz-card-inner {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid #e5e7eb;
}

.bz-pattern-c .bz-card-left {
  padding: 30px;
  color: #fff;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
}

.bz-pattern-c .bz-card-num {
  font-size: 3rem;
  font-weight: bold;
  opacity: 0.3;
}

.bz-pattern-c .bz-card-en {
  font-weight: bold;
  letter-spacing: 1px;
  opacity: 0.9;
}

.bz-pattern-c .bz-card-right {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bz-pattern-c .bz-card-right h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  font-weight: bold;
  color: #111827;
}

.bz-pattern-c .bz-btn-pill {
  display: inline-block;
  background: #111827;
  color: #fff;
  padding: 10px 24px;
  border-radius: 99px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: bold;
  width: fit-content;
  margin-top: 20px;
}

@media (min-width: 768px) {
  .bz-pattern-c .bz-card-inner {
    flex-direction: row;
    min-height: 350px;
  }
  .bz-pattern-c .bz-card-left {
    width: 35%;
  }
  .bz-pattern-c .bz-card-right {
    width: 65%;
    padding: 40px;
  }
  .bz-pattern-c .bz-stack-header h1 {
    font-size: 4rem;
  }
}

@keyframes bz-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}