/*
Theme Name: Site TT5
Template: twentytwentyfive
Version: 1.1.0
Description: OINEKO 用の Twenty Twenty-Five 子テーマ。
Text Domain: site-tt5
*/

/*
 * ─────────────────────────────────────────────
 * 子テーマ カスタムCSS
 * ─────────────────────────────────────────────
 * 原則として配色・書体・余白は theme.json で定義していますが、
 * 以下の要素はブロック標準機能のみでは表現できないため、
 * 旧テーマ（Blocs / Bootstrap 4）の意匠を忠実に再現するために記述しています。
 */

/* ================================================================
 * 1. 斜めSVGシェイプディバイダー
 * 理由: コアブロックには要素の境界に上下斜めカットのSVGを
 *       重ね合わせる機能がないため。
 * ================================================================ */
.bloc-shape-divider {
  position: absolute;
  width: 100%;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  pointer-events: none;
  line-height: 0;
}
.svg-divider {
  width: 100%;
  height: 100px;
  fill: #ffffff;
}
.bloc-divider-top {
  top: -1px;
  align-items: flex-start;
}
.bloc-divider-bottom {
  bottom: -1px;
  align-items: flex-end;
}
.bloc-divider-flip-x svg {
  transform: scale(-1, 1);
}
.bloc-divider-flip-y svg {
  transform: scale(1, -1);
}
.bloc-divider-t-fill {
  fill: #ffffff;
  width: 100%;
  height: 120px;
}
.bloc-divider-b-fill {
  fill: #ffffff;
  width: 100%;
  height: 120px;
}
@media (max-width: 768px) {
  .bloc-divider-t-fill,
  .bloc-divider-b-fill {
    height: 60px;
  }
}

/* ================================================================
 * 2. ヒーローセクション & プロフィールカード
 * 理由: 背景画像（パララックス風）の上に上下斜めディバイダーを重ね、
 *       中央に角丸50pxと独特のbox-shadowを持つ白カードを浮き上がらせる構造は
 *       標準Coverブロックの単独配置では実現できないため。
 * ================================================================ */
.oineko-hero-section {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 650px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px;
}
.oineko-prof-card {
  background: #ffffff;
  border-radius: 50px;
  box-shadow: 0px -1px 12px rgba(73, 70, 74, 0.45);
  max-width: 1020px;
  width: 100%;
  margin: 30px auto;
  padding: 40px 50px;
  display: flex;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 3;
  box-sizing: border-box;
}
@media (max-width: 900px) {
  .oineko-prof-card {
    flex-direction: column;
    text-align: center;
    padding: 35px 25px;
    border-radius: 30px;
    gap: 25px;
  }
}
.oineko-prof-avatar {
  flex-shrink: 0;
  text-align: center;
}
.oineko-prof-avatar img {
  border-radius: 50%;
  width: 260px;
  height: 260px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}
@media (max-width: 768px) {
  .oineko-prof-avatar img {
    width: 180px;
    height: 180px;
  }
}
.oineko-prof-body {
  flex-grow: 1;
}
.oineko-prof-name {
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-size: 2.2rem;
  margin: 0 0 6px 0;
  color: #212529;
  line-height: 1.2;
}
.oineko-prof-subtitle {
  font-family: "Lato", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: #555555;
  margin: 0 0 16px 0;
  line-height: 1.5;
}
.oineko-prof-text {
  font-family: "Open Sans", sans-serif;
  font-size: 0.95rem;
  line-height: 1.75;
  color: #444444;
  margin-bottom: 20px;
}
.oineko-prof-sns {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-top: 15px;
}
@media (max-width: 900px) {
  .oineko-prof-sns {
    justify-content: center;
  }
}
.oineko-prof-sns a {
  font-size: 32px;
  transition: transform 0.2s ease, opacity 0.2s ease;
  display: inline-block;
  text-decoration: none;
}
.oineko-prof-sns a:hover {
  transform: translateY(-3px) scale(1.1);
  opacity: 0.85;
}
.icon-crimson { color: #DA1738 !important; }
.icon-dodger-blue { color: #1DA1F2 !important; }
.icon-fashion-fuchsia { color: #E10795 !important; }
.icon-verdigris { color: #41C9B3 !important; }
.icon-mikado-yellow { color: #FFCE1B !important; }
.icon-discord-dark { color: #212529 !important; }

/* ================================================================
 * 3. プロジェクトカード（Blocs card-designer の完全再現）
 * 理由: 下部透明〜黒の滑らかなグラデーション、下部テキスト配置、
 *       ホバー時の画像ズーム、カプセル型枠線ボタンなどのプロ仕様UIは
 *       標準Coverブロックのプロパティだけでは構築できないため。
 * ================================================================ */
.oineko-project-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  height: 540px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  background-color: #000000;
  box-sizing: border-box;
}
.oineko-project-card__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}
.oineko-project-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1), opacity 1.2s ease-in-out;
  opacity: 0;
}
.oineko-project-card__img:first-child,
.oineko-project-card__img.is-active {
  opacity: 1;
}
.oineko-project-card:hover .oineko-project-card__img {
  transform: scale(1.08);
}
.oineko-project-card__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.65) 35%,
    rgba(0, 0, 0, 0.2) 65%,
    transparent 100%
  );
  z-index: 2;
  pointer-events: none;
}
.oineko-project-card__body {
  position: relative;
  z-index: 3;
  padding: 30px 24px;
  text-align: center;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.oineko-project-card__tag {
  font-family: "Lato", sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  color: #feffff;
  margin: 0 0 10px 0;
  letter-spacing: 0.5px;
}
.oineko-project-card__title {
  font-family: "Open Sans", sans-serif;
  font-size: 2.2rem;
  font-weight: 400;
  color: #ffffff;
  margin: 0 0 10px 0;
  line-height: 1.25;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}
.oineko-project-card__title a {
  color: #ffffff !important;
  text-decoration: none !important;
}
.oineko-project-card__caption {
  font-family: "Open Sans", sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  color: #feffff;
  margin: 0 0 20px 0;
  line-height: 1.5;
}
.oineko-project-card__btn {
  display: inline-block;
  padding: 8px 36px;
  border: 1px solid #feffff;
  border-radius: 3em;
  color: #feffff !important;
  font-family: "Open Sans", sans-serif;
  font-size: 0.9rem;
  text-decoration: none;
  background: transparent;
  transition: all 0.3s ease;
  cursor: pointer;
}
.oineko-project-card:hover .oineko-project-card__btn,
.oineko-project-card__btn:hover {
  background: #ffffff;
  color: #212529 !important;
}

/* ================================================================
 * 4. CONTACT セクション
 * 理由: 旧テーマ特有の水平境界線、および大きなカラーアイコンと
 *       ラベル・連絡先テキストの横並び配置。
 * ================================================================ */
.oineko-contact-divider {
  width: 100%;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  margin: 10px 0 40px 0;
}
.oineko-contact-grid {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}
.oineko-contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}
.oineko-contact-item i {
  font-size: 54px;
}
.oineko-contact-item__label {
  font-family: "Lato", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #212529;
  margin: 0 0 4px 0;
}
.oineko-contact-item__val {
  font-family: "Open Sans", sans-serif;
  font-size: 0.95rem;
  color: #555555;
  margin: 0;
}
@media (max-width: 600px) {
  .oineko-contact-grid {
    flex-direction: column;
    align-items: center;
  }
}

/* ================================================================
 * 5. フッター最下部 Wave Canvas アニメーション
 * 理由: 旧テーマの waves.js によるカタルーニャカラー波描画エリア。
 * ================================================================ */
.waves-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  line-height: 0;
  background: transparent;
  margin-top: 20px;
}
#wave-canvas {
  display: block;
  width: 100%;
  height: 100px;
}

/* ================================================================
 * 6. アーカイブ & 個別記事のヒーローバナー装飾
 * 理由: 青グラデーション文字（text-blue-gradient）や
 *       強い影付き白文字（h1-bloc-6-style）のタイポグラフィ再現。
 * ================================================================ */
.text-blue-gradient {
  background: linear-gradient(88deg, #61E1A3, #2F7DFF);
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  font-family: "Lato", sans-serif;
  font-weight: 900;
  text-shadow: none;
}
.h1-bloc-6-style {
  font-family: "Lato", sans-serif;
  font-weight: 900;
  background-color: transparent;
  text-shadow: 0px 1px 5px #000000, 0px 0px 1px #FEFFFE;
  color: #FEFFFF !important;
}
.archive-card-thumb {
  border-radius: 28px !important;
  overflow: hidden;
}
.archive-detail-btn {
  background: rgba(0, 0, 0, 0.35) !important;
  color: #ffffff !important;
  border-radius: 4px !important;
  padding: 6px 18px !important;
  font-size: 0.9rem !important;
  text-decoration: none !important;
  transition: background 0.3s ease !important;
}
.archive-detail-btn:hover {
  background: rgba(0, 0, 0, 0.65) !important;
}
