/*
Skin Name: クリーンテック (MIINOHARA向け)
  Description: 動画クリエイター・AIツール向けのモダンなSaaS風デザイン
  Skin URI: https://yusukegoto.com/
  Author: Yusuke Goto
  Author URI: https://yusukegoto.com/
  Screenshot URI: https://im-cocoon.net/wp-content/uploads/skin-template.png
  Version: 1.0.4
  Priority: 1
*/

/* -------------------------------------------
 * カラー変数・基本設定
 * ------------------------------------------- */
:root {
  --main-color: #2563eb; /* テックブルー */
  --main-hover: #1d4ed8;
  --bg-color: #f8fafc; /* ごく薄いグレー/ブルー */
  --text-main: #334155;
  --text-light: #64748b;
  --border-color: #e2e8f0;
  --card-bg: #ffffff;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --input-bg: #f1f5f9; /* 入力欄の通常時の背景 */
  --input-border: #cbd5e1;
  --focus-ring: rgba(37, 99, 235, 0.25);
}

/* -------------------------------------------
 * ベーススタイル (body, content)
 * ------------------------------------------- */
body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

#container {
  background-color: transparent;
}

/* -------------------------------------------
 * ヘッダー (header)
 * ------------------------------------------- */
#header-container {
  background-color: var(--card-bg);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border-color);
}

.tagline {
  color: var(--text-light);
  font-size: 12px;
  padding: 5px 0;
}

.site-name-text {
  color: var(--main-color);
  font-weight: 800;
  letter-spacing: 1px;
}

/* -------------------------------------------
 * メインコンテンツ・記事 (main, post)
 * ------------------------------------------- */
#main {
  padding-top: 2em;
}

.post {
  background-color: var(--card-bg);
  border-radius: 12px; /* 角丸 */
  box-shadow: var(--shadow-md); /* 浮かせる */
  border: none;
  padding: 10px;
  margin-bottom: 30px;
}

/* タイトル周り */
h1.entry-title {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 15px;
  margin-bottom: 20px;
  position: relative;
}

/* タイトルにちょっとしたアクセント */
h1.entry-title::before {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--main-color);
}

.post-date, .entry-date {
  color: var(--text-light);
  font-size: 14px;
}

/* -------------------------------------------
 * エントリーカード (トップページのリスト等)
 * ------------------------------------------- */
.entry-card-wrap {
  background-color: var(--card-bg);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.entry-card-wrap:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.entry-card-title {
  color: var(--text-main);
  font-weight: 700;
}

.cat-label {
  background-color: var(--main-color);
  border-radius: 4px;
}

/* -------------------------------------------
 * シェアボタン・フォローボタン周り
 * ------------------------------------------- */
.sns-share, .sns-follow {
  border-top: 1px dashed var(--border-color);
  padding-top: 20px;
  margin-top: 30px;
}

.sns-share-message, .sns-follow-message {
  color: var(--text-light);
  font-weight: 600;
}

/* -------------------------------------------
 * フッター (footer)
 * ------------------------------------------- */
#footer {
  background-color: #1e293b; /* フッターはダークに引き締める */
  color: #cbd5e1;
  border-top: none;
}

#footer a {
  color: #e2e8f0;
  text-decoration: none;
}

#footer a:hover {
  color: var(--main-color);
}

.footer-title, .widget-title {
  color: #ffffff;
  border-bottom: 1px solid #334155;
  padding-bottom: 10px;
}

.footer-bottom {
  background-color: #0f172a;
  border-top: 1px solid #334155;
}

.copyright {
  color: #94a3b8;
}

/* -------------------------------------------
 * トップへ戻るボタン (go-to-top)
 * ------------------------------------------- */
.go-to-top-button {
  background-color: var(--main-color);
  color: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.go-to-top-button:hover {
  background-color: var(--main-hover);
  transform: scale(1.1);
}

/* モバイル用メニューボタン */
.mobile-menu-buttons {
  background-color: var(--card-bg);
  border-top: 1px solid var(--border-color);
}

.menu-button-in {
  color: var(--text-main);
}

/* 検索ボックスやカスタムフォームの入力欄共通 */
input[type="text"],
input[type="password"],
textarea,
select,
.search-edit {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px; /* スマホでタップした時の自動ズーム防止 */
  color: var(--text-main);
  background-color: var(--input-bg);
  border: 1px solid transparent; /* 普段はボーダーを隠す */
  border-radius: 10px; /* 少し大きめの角丸 */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* 滑らかなアニメーション */
  box-sizing: border-box;
  font-family: inherit;
}

/* プレースホルダー（入力のヒント文字）の色 */
input::placeholder,
textarea::placeholder {
  color: #94a3b8;
}

/* 入力欄にフォーカス（選択）した時のリッチなエフェクト */
input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus,
.search-edit:focus {
  outline: none;
  background-color: #ffffff;
  border-color: var(--main-color);
  box-shadow: 0 0 0 4px var(--focus-ring); /* 綺麗なフォーカスリング */
}

/* -------------------------------------------
 * ボタンのデザイン（グラデーション＆ホバーアクション）
 * ------------------------------------------- */
button,
.transcription-button,
.fcpxml-button,
.search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #ffffff;
  /* メインカラーから少し深い青紫へのグラデーション */
  background: linear-gradient(135deg, var(--main-color), #4338ca);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  margin-top: 10px;
}

/* ボタンホバー時（少し浮いて影が濃くなる） */
button:hover,
.transcription-button:hover,
.fcpxml-button:hover,
.search-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
  background: linear-gradient(135deg, var(--main-hover), #3730a3);
}

/* -------------------------------------------
 * 独自ツールエリア（文字起こし・FCPXML）のコンテナ
 * ------------------------------------------- */
.transcription-wrapper,
.fcpxml-wrapper {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px;
  margin: 2.5em 0;
  box-shadow: var(--shadow-sm);
}

.transcription-title,
.fcpxml-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: #0f172a;
  border-bottom: none; /* Cocoonデフォルトの線を消す */
  padding-bottom: 0;
}

.transcription-description,
.fcpxml-description {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.transcription-label,
.fcpxml-label {
  display: inline-block;
  font-weight: 700;
  margin-bottom: 8px;
  margin-top: 16px;
  color: #1e293b;
  font-size: 0.9rem;
}

/* -------------------------------------------
 * ファイル選択（input type="file"）のおしゃれ化
 * ------------------------------------------- */
.transcription-file-input {
  padding: 12px;
  background-color: var(--input-bg);
  border: 2px dashed var(--input-border); /* 点線でドロップエリアっぽく */
  border-radius: 10px;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
  transition: all 0.3s ease;
  color: var(--text-light);
}

.transcription-file-input:hover {
  border-color: var(--main-color);
  background-color: #eff6ff;
}

/* ファイルを選択するボタン部分のみのデザイン */
.transcription-file-input::file-selector-button {
  padding: 8px 16px;
  border-radius: 6px;
  border: none;
  background-color: #334155;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-right: 16px;
  font-size: 0.85rem;
}

.transcription-file-input::file-selector-button:hover {
  background-color: #0f172a;
}

/* -------------------------------------------
 * FCPXMLのオプション並び（Flexboxで横並びに）
 * ------------------------------------------- */
.fcpxml-options {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
}

.fcpxml-option-group {
  flex: 1; /* 幅を均等に割る */
}

/* スマホでは縦並びに戻す */
@media screen and (max-width: 768px) {
  .fcpxml-options {
    flex-direction: column;
    gap: 0;
  }
}

/* ==========================================
 * LP風トップページ カスタムCSS
 * ========================================== */

/* Noto Sans JPを全体に適用 */
.lp-custom-page {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: #f8fafc; /* 薄いグレー背景 */
    margin: 0;
    padding: 0;
}

/* -------------------------------------------
 * ヒーローセクション (ファーストビュー)
 * ------------------------------------------- */
.lp-hero {
    background: linear-gradient(135deg, #1e293b, #3b82f6); /* ダークネイビーからブルーへのグラデーション */
    color: #ffffff;
    padding: 80px 20px;
    text-align: center;
    margin-bottom: 50px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.lp-hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 10px;
    letter-spacing: 2px;
}

.lp-hero-subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    opacity: 0.9;
    margin: 0;
}

/* -------------------------------------------
 * コンテンツエリア・セクション見出し
 * ------------------------------------------- */
.lp-content {
    padding-bottom: 80px;
}

.lp-section-header {
    text-align: center;
    margin-bottom: 40px;
}

.lp-section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 5px;
}

.lp-section-header p {
    color: #64748b;
    font-size: 0.95rem;
}

/* -------------------------------------------
 * ツール一覧 (カードUI)
 * ------------------------------------------- */
.lp-tool-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    padding: 0 15px;
}

/* Cocoonのデフォルトの線を消して、カードを浮かせる */
.lp-custom-page .entry-card-wrap {
    border: none !important;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.lp-custom-page .entry-card-wrap:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* サムネイル画像エリア */
.lp-custom-page .entry-card-thumb {
    margin: 0;
    position: relative;
    border-bottom: 1px solid #e2e8f0;
}

.lp-custom-page .entry-card-thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover; /* 画像の比率を崩さずトリミング */
    display: block;
}

/* カードのテキストエリア */
.lp-custom-page .entry-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.lp-custom-page .entry-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 15px;
    line-height: 1.5;
}

/* -------------------------------------------
 * ブログ特有の不要な要素を隠す・整える
 * ------------------------------------------- */
/* 管理者用PVを非表示（LPには不要なため） */
.lp-custom-page .admin-pv {
    display: none !important;
}

/* 日付やカテゴリを控えめに（カードの最下部に配置） */
.lp-custom-page .entry-card-meta {
    margin-top: auto; /* 下に押しやる */
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 15px;
}

.lp-custom-page .post-date {
    font-size: 0.85rem;
    color: #94a3b8;
}

.lp-custom-page .entry-category {
    background-color: #eff6ff;
    color: #3b82f6;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* 画像上の「未分類」ラベルなどを非表示にする場合（不要なら消す） */
.lp-custom-page .entry-card-thumb .cat-label {
    display: none; 
}

/* ==========================================
 * トップページ（LP風）カスタムデザイン
 * ========================================== */

/* ベース設定 */
.lp-custom-page {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: #f8fafc; /* 薄いグレー/ブルー背景 */
    color: #334155;
    margin: 0;
    padding: 0;
}

/* Cocoonデフォルトの余分な枠線や背景をリセット */
.lp-custom-page #container,
.lp-custom-page #content {
    background: transparent;
    border: none;
    box-shadow: none;
}

/* -------------------------------------------
 * 1. ヒーローセクション (ファーストビュー)
 * ------------------------------------------- */
.lp-hero {
    /* テック系らしい深みのあるグラデーション */
    background: linear-gradient(135deg, #0f172a 0%, #3b82f6 100%);
    color: #ffffff;
    padding: 100px 20px;
    text-align: center;
    margin-bottom: 60px;
}

.lp-hero-inner {
    max-width: 800px;
    margin: 0 auto;
}

.lp-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0 0 16px;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.lp-hero-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    opacity: 0.9;
    margin: 0;
}

/* スマホ表示時のヒーロー調整 */
@media screen and (max-width: 768px) {
    .lp-hero { padding: 60px 20px; }
    .lp-hero-title { font-size: 2.2rem; }
    .lp-hero-subtitle { font-size: 1rem; }
}

/* -------------------------------------------
 * 2. コンテンツエリア・セクション見出し
 * ------------------------------------------- */
.lp-section-header {
    text-align: center;
    margin-bottom: 50px;
}

.lp-section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px;
    border-bottom: none; /* Cocoonの見出し線を消す */
}

.lp-section-header p {
    color: #64748b;
    font-size: 1rem;
}

/* -------------------------------------------
 * 3. ツール一覧 (カードUI)
 * ------------------------------------------- */
.lp-tool-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    padding: 0 5px 80px;
}

/* カード本体のデザイン */
.lp-custom-page .entry-card-wrap {
    background: #ffffff;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

/* ホバー時の浮き上がりエフェクト */
.lp-custom-page .entry-card-wrap:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.15), 0 10px 10px -5px rgba(37, 99, 235, 0.05);
    border-color: #bfdbfe !important;
}

/* サムネイル画像 */
.lp-custom-page .entry-card-thumb {
    margin: 0;
    position: relative;
    border-bottom: 1px solid #f1f5f9;
}

.lp-custom-page .entry-card-thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

/* 画像上の未分類ラベルを非表示 (モダンな見た目のため) */
.lp-custom-page .entry-card-thumb .cat-label {
    display: none; 
}

/* カードのテキスト部分 */
.lp-custom-page .entry-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.lp-custom-page .entry-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 15px;
    line-height: 1.5;
}

/* PV数などの管理者表記を非表示 */
.lp-custom-page .admin-pv {
    display: none !important;
}

/* 日付やカテゴリ (カード最下部) */
.lp-custom-page .entry-card-meta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
}

.lp-custom-page .post-date {
    font-size: 0.85rem;
    color: #94a3b8;
}

.lp-custom-page .entry-category {
    background-color: #eff6ff;
    color: #2563eb;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* -------------------------------------------
 * 4. カスタムフッター
 * ------------------------------------------- */
.footer {
    background-color: #0f172a;
    color: #cbd5e1;
    padding: 60px 20px 20px;
    border-top: none;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
}

/* Tailwindがない環境向けのウィジェットレイアウト補完 */
.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

/* ウィジェット内のタイトルとリンク */
.footer h3, .footer .widget-title {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    border-bottom: 2px solid #334155;
    padding-bottom: 10px;
}

.footer a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.footer a:hover {
    color: #60a5fa; /* ホバーで明るいブルー */
}

.footer p {
    text-align: center;
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
    padding-top: 20px;
    border-top: 1px solid #1e293b;
}

/* スマホ用フッターの調整 */
@media screen and (max-width: 768px) {
    .footer-widgets { display: none; } /* PC用を隠す */
    .footer-widgets-mobile {
        display: block;
        margin-bottom: 40px;
    }
}