/*
  Skin Name: 恋愛
  Description: スキン自作の際にひな型となるスキンです。スタイルは何も入っていません。
  Skin URI: https://wp-cocoon.com/
  Author: Yusuke Goto
  Author URI: https://yusukegoto.com/
  Version: 1.0.2
  Priority: 3
*/

/* ==========================================================================
   1. 基本設定 (Base)
   ========================================================================== */
:root {
  --bg-color: #FFF9F0;       /* 背景：和紙色 */
  --bg-white: #FFFFFF;
  --text-main: #333333;      /* 文字：濃い灰色 */
  --text-sub: #555555;
  --accent-gold: #F2C94C;    /* アクセント：黄金色 */
  --accent-gold-dark: #C59810;
  --sub-beige: #D3B59B;      /* サブ：ベージュ */
  --font-serif: "Shippori Mincho", "Hannari", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --font-sans: "Noto Sans JP", "M PLUS Rounded 1c", sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.9;
  letter-spacing: 0.05em;
  -webkit-font-smoothing: antialiased;
}

/* リンク色 */
a {
  color: var(--accent-gold-dark);
  text-decoration: none;
  transition: all 0.3s ease;
}
a:hover {
  color: var(--sub-beige);
  opacity: 0.8;
}

/* ==========================================================================
   2. ヘッダー (Header)
   ========================================================================== */
.header-container {
  background: linear-gradient(135deg, #FFF9F0 0%, #FFEFD5 100%);
  border-bottom: 1px solid rgba(211, 181, 155, 0.3);
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  position: relative;
  overflow: hidden;
  /* 高級感を出すため、丸みを少し抑えて上品に */
  border-radius: 0 0 20px 20px; 
}

/* 和風の光の演出 */
.header-container::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(242, 201, 76, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

/* ロゴ */
.logo-header, .site-name-text {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--text-main);
  text-shadow: 0 2px 4px rgba(0,0,0,0.05);
  margin: 10px 0;
}

.tagline {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-sub);
  letter-spacing: 0.1em;
  margin-bottom: 15px;
}

/* ==========================================================================
   3. グローバルナビ (Navigation)
   ========================================================================== */
.navi {
  background-color: transparent;
  margin-top: 10px;
}

/* メニュー項目 */
.navi-in > ul > li > a {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-main);
  padding: 10px 20px;
  position: relative;
  transition: 0.3s;
}

/* ホバー時の下線アニメーション */
.navi-in > ul > li > a::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--accent-gold);
  transition: width 0.3s;
}

.navi-in > ul > li > a:hover::after {
  width: 80%;
}
.navi-in > ul > li > a:hover {
  background-color: transparent;
  color: var(--accent-gold-dark);
}

/* モバイルメニュー */
.mobile-menu-buttons {
  color: var(--accent-gold-dark);
}

/* ==========================================================================
   4. 見出し (Headings)
   ========================================================================== */
/* 記事タイトル */
.entry-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  border-bottom: none;
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 30px;
}
.entry-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-gold), var(--sub-beige));
  position: absolute;
  bottom: 0;
  left: 0;
}

/* H2見出し */
.article h2 {
  font-family: var(--font-serif);
  background: transparent;
  padding: 10px 0 10px 15px;
  border-left: 4px solid var(--accent-gold);
  border-bottom: 1px solid rgba(211, 181, 155, 0.3);
  font-size: 1.5rem;
  margin: 40px 0 20px;
  color: var(--text-main);
}

/* H3見出し */
.article h3 {
  font-size: 1.3rem;
  border-bottom: none;
  position: relative;
  padding-left: 25px;
  margin: 30px 0 15px;
}
.article h3::before {
  content: "◆";
  color: var(--sub-beige);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9em;
}

/* ==========================================================================
   5. コンテンツ & カード (Contents & Cards)
   ========================================================================== */
/* 全体の枠幅調整 */
.wrap {
  max-width: 1100px;
  background-color: transparent; /* 背景透過 */
}

/* 記事カード（インデックス） */
.entry-card-wrap {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  border: 1px solid rgba(211, 181, 155, 0.2);
  transition: transform 0.3s, box-shadow 0.3s;
  margin-bottom: 20px;
}
.entry-card-wrap:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(242, 201, 76, 0.15);
  background-color: #fff;
}

/* サムネイル */
.entry-card-thumb img {
  border-radius: 8px;
}

/* ==========================================================================
   6. 診断コンテンツ独自スタイル (Custom Forms)
   ========================================================================== */
/* --- 共通ラッパー --- */
.ainoonayami-form,
.sityuusuimei-form-wrap,
.custom-comments-wrap {
  background: #FFFFFF; /* 視認性のため白背景 */
  border: 1px solid var(--sub-beige);
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 40px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.03);
  font-family: var(--font-serif);
}

/* --- 見出し --- */
.ainoonayami-form h2,
.sityuusuimei-form-wrap legend {
  font-size: 1.4rem;
  color: var(--text-main);
  border-bottom: 2px solid var(--accent-gold);
  padding-bottom: 10px;
  margin-bottom: 20px;
  background: none; /* リセット */
  display: block;
  width: 100%;
}

/* --- 入力フィールド --- */
input[type="text"],
input[type="email"],
input[type="date"],
textarea,
select {
  background-color: #FAFAFA;
  border: 1px solid #E0E0E0;
  border-radius: 6px;
  padding: 12px;
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
  transition: 0.3s;
  font-family: var(--font-sans);
}

input[type="text"]:focus,
input[type="date"]:focus,
textarea:focus,
select:focus {
  border-color: var(--accent-gold);
  background-color: #fff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(242, 201, 76, 0.2);
}

/* --- 送信ボタン (CTA) --- */
input[type="submit"],
button[type="submit"],
.cta-btn,
#sityu_submit_button {
  background: linear-gradient(135deg, var(--accent-gold) 0%, #D4AF37 100%);
  color: #fff;
  font-weight: bold;
  font-size: 1.1rem;
  border: none;
  border-radius: 50px;
  padding: 15px 40px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 30px auto 0;
}

input[type="submit"]:hover,
button[type="submit"]:hover,
.cta-btn:hover,
#sityu_submit_button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
  background: linear-gradient(135deg, #D4AF37 0%, var(--accent-gold) 100%);
  color: #fff;
}

/* --- 診断結果表示エリア --- */
.ainoonayami-result-wrap,
.sityuusuimei-result {
  background-color: #FFFCF5;
  border: 2px solid var(--accent-gold);
  border-radius: 15px;
  padding: 30px;
  margin-top: 30px;
  position: relative;
}

/* 結果の見出し強調 */
.ainoonayami-result h2 {
  border-left: 6px solid var(--accent-gold);
  padding-left: 15px;
  font-size: 1.6rem;
  color: var(--text-main);
}

/* スコアバー */
.ainoonayami-scorebar {
  background: #EEE;
  border-radius: 10px;
  height: 12px;
  overflow: hidden;
  margin-top: 5px;
}
.ainoonayami-scorebar > i {
  background: linear-gradient(90deg, var(--accent-gold), #FF9F43);
  display: block;
  height: 100%;
  border-radius: 10px;
}

/* ==========================================================================
   7. LP風セクション (Features, Hero)
   ========================================================================== */
/* LPの各セクション背景 */
.section-lp {
  padding: 60px 0;
}

/* 3カラムの特徴エリア */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.feature-item {
  background: #fff;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 5px 15px rgba(0,0,0,0.03);
  transition: 0.3s;
}

.feature-item:hover {
  transform: translateY(-5px);
  border-color: var(--accent-gold);
}

.feature-item h3 {
  font-family: var(--font-serif);
  color: var(--accent-gold-dark);
  margin-bottom: 15px;
  font-size: 1.3rem;
  border: none;
}

/* ==========================================================================
   8. フッター (Footer)
   ========================================================================== */
.footer {
  background-color: #4A4A4A; /* 濃いグレーで引き締め */
  color: #DDD;
  padding-top: 40px;
}

.footer-container {
  border-top: 3px solid var(--accent-gold);
  background-color: #4A4A4A;
}

.footer-title {
  color: var(--accent-gold);
  font-family: var(--font-serif);
  border-bottom: 1px solid #666;
}

.footer a {
  color: #BBB;
}
.footer a:hover {
  color: var(--accent-gold);
}

.copyright {
  color: #888;
  font-size: 0.8rem;
}

/* ==========================================================================
   9. レスポンシブ (Mobile)
   ========================================================================== */
@media screen and (max-width: 768px) {
  /* 全体の余白調整 */
  .content {
    padding: 10px;
  }
  
  /* カードを1列に */
  .features, .related-list {
    grid-template-columns: 1fr;
  }
  
  /* フォントサイズ調整 */
  .entry-title {
    font-size: 1.4rem;
  }
  
  /* フォーム周り */
  .ainoonayami-form,
  .sityuusuimei-form-wrap {
    padding: 20px;
  }
  
  input[type="submit"],
  button[type="submit"] {
    width: 100%;
  }
}

/* ==========================================================================
   10. 診断中オーバーレイ (Loading Overlay)
   ========================================================================== */
.sityu-overlay {
    display: none; /* デフォルトは非表示 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8); /* 背景を少し濃くして高級感を */
    z-index: 9999; /* 最前面に表示 */
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px); /* 背景を少しぼかす */
}

.sityu-overlay .box {
    background: #FFF9F0; /* 和紙色 */
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    max-width: 90%;
    width: 500px;
    border: 2px solid var(--accent-gold); /* 黄金色の枠線 */
    box-shadow: 0 0 30px rgba(242, 201, 76, 0.2);
    font-family: var(--font-serif);
    color: var(--text-main);
    line-height: 1.8;
}

/* ローディングアニメーション（回転） */
.sityu-overlay .loader {
    border: 5px solid rgba(211, 181, 155, 0.3); /* 薄いベージュ */
    border-top: 5px solid var(--accent-gold); /* 回る部分は黄金色 */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* オーバーレイ内のテキスト調整 */
.sityu-overlay .box div {
    margin-top: 15px;
}

/* 枠全体の設定 */
.premium-lock-area {
    position: relative; /* 子要素の基準点 */
    margin-top: 30px;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden; /* はみ出し防止 */
    min-height: 300px; /* ★重要：スマホでボタンが潰れないように高さを確保 */
}

/* ぼかして表示する文字（背景層） */
.blurred-background {
    padding: 20px;
    filter: blur(3px); /* スマホなら3pxくらいが丁度いい（強すぎると消える） */
    opacity: 0.7;      /* 薄くしすぎない */
    user-select: none; /* コピー禁止 */
    pointer-events: none; /* クリック無効 */
    font-size: 0.95em;
    line-height: 1.8;
    color: #333;
}

/* ロック画面のオーバーレイ（手前層） */
.lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    
    /* 上は透明、下に向かって白くなるグラデーション */
    background: linear-gradient(
        to bottom, 
        rgba(255,255,255,0.2) 0%, 
        rgba(255,255,255,0.8) 40%, 
        rgba(255,255,255,1) 100%
    );
    
    /* 中央揃え */
    display: flex;
    justify-content: center;
    align-items: center; /* 垂直方向の中央より少し下にするためにpaddingで調整も可 */
}

/* ロック画面の中身 */
.lock-content {
    text-align: center;
    width: 90%; /* スマホで横幅いっぱいにしない */
    max-width: 400px;
    padding-top: 40px; /* グラデーションで文字が隠れたあたりにボタンを置く */
}

.lock-msg {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 15px;
    color: #333;
    text-shadow: 0 2px 5px rgba(255,255,255,1); /* 文字を読みやすくする */
}

.lock-icon {
    font-size: 1.2em;
    margin-right: 5px;
}

/* プレミアムCTAボタン全体 */
.premium-cta-box {
    font-family: var(--font-serif); /* 和風フォントを使用 */
    background: var(--bg-color); /* 和紙色 */
    border: 3px solid var(--accent-gold); /* 黄金色の枠線 */
    border-radius: 12px;
    padding: 20px 15px;
    margin: 30px auto;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ヘッダー・タイトル */
.cta-price-header {
    font-size: 1.1em;
    font-weight: bold;
    color: var(--text-main);
    padding-bottom: 5px;
    border-bottom: 1px solid var(--sub-beige);
    margin-bottom: 10px;
}
.cta-icon-star {
    margin-right: 5px;
    color: var(--accent-gold);
}

/* 価格表示 */
.cta-price-detail {
    margin-bottom: 1px;
}
.strike-price {
    text-decoration: line-through;
    color: var(--text-sub);
    font-size: 0.9em;
    margin-right: 10px;
}
.actual-price {
    font-family: var(--font-sans); /* 価格は視認性の高いフォントで */
    font-size: 2.2em; /* 目立たせる */
    font-weight: 800;
    color: #b89b4f;
    display: inline-block;
    line-height: 1;
}
.unit {
    color: var(--text-sub);
    font-size: 0.9em;
    margin-left: 5px;
}

/* 約束文 */
.cta-promise-text {
    font-size: 1.05em;
    margin-bottom: 20px;
    padding: 5px 0;
    color: var(--text-main);
}

/* メインボタン */
.cta-btn-main {
    display: block;
    background: linear-gradient(180deg, var(--accent-gold), var(--accent-gold-dark));
    color: white;
    text-decoration: none;
    padding: 15px 10px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.25em;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 0 var(--accent-gold-dark); /* 押し込み効果 */
    transition: transform 0.1s, box-shadow 0.1s;
    border: none;
}
.cta-btn-main:hover {
    opacity: 0.9;
}
.cta-btn-main:active {
    transform: translateY(4px);
    box-shadow: 0 0 0 transparent;
}
.cta-btn-sub {
    display: block;
    font-size: 0.65em;
    font-weight: normal;
    margin-top: 3px;
    opacity: 0.8;
}

/* サブプロモーション（実質無料） */
.cta-sub-promo {
    margin-top: 15px;
}
.cta-btn-sub-link {
    font-size: 0.9em;
    color: var(--text-sub);
    text-decoration: underline;
}
.cta-btn-sub-link:hover {
    color: var(--accent-gold-dark);
}
/* ==========================================================================
   2. 命式テーブルのスタイル (.meishiki-table)
   ========================================================================== */
.meishiki-table, .summary-table {
    width: 100%;
    margin: 30px auto;
    border-collapse: collapse;
    background-color: var(--color-bg-paper);
    border-radius: 12px;
    overflow: hidden; /* 角丸を効かせるため */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.meishiki-table th, .meishiki-table td {
    border: 1px solid var(--color-border);
    padding: 10px 5px;
    text-align: center;
    font-size: 0.9em;
}

/* テーブルヘッダー (時柱〜年柱) */
.meishiki-table thead th {
    background-color: var(--color-primary);
    color: var(--color-text-main); /* 修正: 白から濃い茶色に変更しコントラストを確保 */
    font-weight: bold;
    border: none;
    border-bottom: 2px solid var(--color-secondary);
}
/* 天干・地支などの行ヘッダー */
.meishiki-table tbody tr td:first-child,
.meishiki-table tbody tr th:first-child {
    background-color: var(--color-accent);
    color: var(--color-text-main);
    font-weight: bold;
    border-right: 2px solid var(--color-border);
    min-width: 50px;
    padding-left: 10px;
    text-align: left;
}

/* 特に出したい文字の装飾（天干・地支） */
.meishiki-table tbody tr:nth-child(1) td,
.meishiki-table tbody tr:nth-child(2) td {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--color-primary);
}

/* 通変星・十二運の装飾 */
.meishiki-table tbody tr:nth-child(3) td,
.meishiki-table tbody tr:nth-child(4) td {
    background-color: #FFF5F7; /* 非常に薄いピンク */
}

/* ==========================================================================
   3. サマリーテーブルのスタイル (.summary-table)
   ========================================================================== */
.summary-table {
    border-radius: 10px;
    background-color: #fef9fb; /* 明るい背景 */
    box-shadow: 0 2px 10px rgba(255, 112, 166, 0.1);
}

.summary-table th, .summary-table td {
    border: 1px solid var(--color-border);
    padding: 12px 15px;
    font-size: 0.95em;
    text-align: left;
}

.summary-table th {
    width: 30%;
    background-color: #FFEAEE; /* ピンクのヘッダー */
    color: var(--color-text-main);
    font-weight: bold;
}

.summary-table td {
    font-weight: normal;
    background-color: var(--color-bg-paper);
}

/* 空亡・地支の関係の行 (colspanが使われている行) */
.summary-table tr:nth-child(3) th,
.summary-table tr:nth-child(4) th {
    background-color: #FFDAE0; /* より濃いピンク */
}

/* 用神・喜神 (強調したい部分) */
.summary-table tr:nth-child(2) td:first-of-type,
.summary-table tr:nth-child(2) td:last-of-type {
    font-weight: bold;
    color: var(--color-primary);
}