@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/

/* =========================================
   共通：投稿メタ非表示
========================================= */
.entry-date,
.post-date,
.entry-date-time,
.date-tags,
.author,
.entry-author,
.author-info,
.byline,
.entry-meta {
  display: none !important;
}

/* =========================================
   旧ブロック表示（互換用）
========================================= */
.tak-block{
  margin:18px 0;
}

.tak-block h2{
  font-size:18px;
  font-weight:900;
  margin:0 0 10px;
}

.tak-box{
  padding:12px 14px;
  border:1px solid #e5e7eb;
  border-radius:14px;
  background:#fff;
  line-height:1.8;
}

.tak-choices-list{
  margin:0;
  padding-left:22px;
  line-height:1.8;
}

.tak-choices-list li{
  margin:8px 0;
}

.tak-answer summary{
  cursor:pointer;
  font-weight:900;
  margin:10px 0;
}

.tak-answer[open] summary{
  margin-bottom:10px;
}

/* =========================================
   ランダム問題
========================================= */
.takken-random-wrap{
  max-width:860px;
  margin:24px auto;
  padding:24px;
  background:#fff;
  border-radius:16px;
  border:1px solid #e5e7eb;
  position:relative;
  box-sizing:border-box;
}

.takken-random-meta{
  display:flex;
  gap:10px;
  margin-bottom:12px;
  flex-wrap:wrap;
}

.takken-badge{
  display:inline-block;
  padding:6px 12px;
  border-radius:999px;
  background:#f3f4f6;
  color:#111827;
  font-weight:700;
  font-size:13px;
  line-height:1.2;
}

.takken-question-wrap{
  margin-bottom:20px;
}

.takken-question-title{
  display:inline-block;
  padding:4px 10px;
  border-radius:999px;
  background:#111827;
  color:#fff;
  font-size:12px;
  font-weight:800;
  margin-bottom:10px;
}

.takken-question{
  line-height:1.9;
  font-size:16px;
  color:#111827;
}

.takken-choices{
  display:grid;
  gap:10px;
}

.takken-choice{
  padding:14px 16px;
  border:1px solid #e5e7eb;
  border-radius:12px;
  background:#fafafa;
  color:#111827;
  line-height:1.8;
  box-sizing:border-box;
}

.takken-choice-no{
  font-weight:800;
  margin-right:6px;
}

.takken-choice.is-correct-answer{
  background:#fff7f7;
  border-color:#fca5a5;
}

.takken-choice.is-selected-wrong{
  border-color:#2563eb;
  box-shadow:0 0 0 2px rgba(37,99,235,.10);
}

.takken-answer-buttons-wrap{
  margin-top:18px;
}

.takken-answer-buttons-title{
  font-size:14px;
  font-weight:800;
  color:#6b7280;
  margin-bottom:10px;
}

.takken-answer-buttons{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:10px;
}

.takken-answer-btn{
  appearance:none;
  border:1px solid #d1d5db;
  background:#fff;
  color:#111827;
  border-radius:12px;
  padding:12px 0;
  font-size:18px;
  font-weight:800;
  cursor:pointer;
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}

.takken-answer-btn:hover{
  transform:translateY(-1px);
  box-shadow:0 8px 18px rgba(0,0,0,.06);
  border-color:#9ca3af;
}

.takken-answer-btn:disabled{
  cursor:default;
}

.takken-answer-btn.is-locked{
  opacity:.92;
}

.takken-answer-btn.is-selected-correct{
  background:#dc2626;
  border-color:#dc2626;
  color:#fff;
}

.takken-answer-btn.is-selected-wrong{
  background:#2563eb;
  border-color:#2563eb;
  color:#fff;
}

.takken-answer{
  margin-top:24px;
  padding:16px;
  background:#f9fafb;
  border-radius:12px;
  border:1px solid #e5e7eb;
}

.takken-answer h3{
  color:#dc2626;
  margin-top:0;
}

.takken-one-line{
  margin:10px 0;
  font-weight:700;
}

.takken-commentary,
.takken-story,
.takken-exam{
  margin-top:16px;
}

.takken-answer-bottom{
  margin-top:22px;
  padding-top:16px;
  border-top:1px solid #e5e7eb;
}

.takken-point-block{
  margin-top:10px;
}

.takken-point-title{
  font-size:14px;
  font-weight:800;
  color:#6b7280;
  margin-bottom:8px;
}

.takken-point-row{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.takken-point-badge{
  display:inline-block;
  padding:7px 12px;
  border-radius:999px;
  background:#eef2ff;
  color:#3730a3;
  font-size:13px;
  font-weight:700;
  line-height:1.4;
}

.takken-next-wrap{
  margin-top:20px;
}

.takken-next{
  display:inline-block;
  padding:12px 18px;
  border-radius:12px;
  border:1px solid #111827;
  background:#111827;
  color:#fff;
  font-weight:800;
  text-decoration:none;
}

/* 判定エフェクト */
.takken-judge-overlay{
  position:fixed;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  pointer-events:none;
  opacity:0;
  z-index:9999;
}

.takken-judge-overlay.is-show{
  animation:takkenJudgeFade .9s ease forwards;
}

.takken-judge-mark{
  font-size:min(34vw, 220px);
  font-weight:900;
  line-height:1;
  transform:scale(.78);
  filter:drop-shadow(0 8px 30px rgba(0,0,0,.08));
}

.takken-judge-overlay.is-correct .takken-judge-mark{
  color:rgba(220, 38, 38, .88);
}

.takken-judge-overlay.is-wrong .takken-judge-mark{
  color:rgba(37, 99, 235, .88);
}

@keyframes takkenJudgeFade {
  0% { opacity:0; }
  18% { opacity:1; }
  35% { opacity:1; }
  100% { opacity:0; }
}

.takken-judge-overlay.is-show .takken-judge-mark{
  animation:takkenJudgePop .9s ease forwards;
}

@keyframes takkenJudgePop {
  0% { transform:scale(.78); }
  24% { transform:scale(1.05); }
  100% { transform:scale(1); }
}

/* =========================================
   ログイン / 新規登録 / マイページ共通
========================================= */
.takken-auth-wrap{
  max-width:980px;
  margin:32px auto;
}

.takken-auth-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:20px;
}

.takken-auth-card{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:18px;
  padding:24px;
  box-shadow:0 8px 24px rgba(0,0,0,.04);
  box-sizing:border-box;
}

.takken-auth-title{
  margin:0 0 16px;
  font-size:22px;
  font-weight:800;
  color:#111827;
}

.takken-auth-text{
  margin:0 0 10px;
  color:#374151;
  line-height:1.8;
}

.takken-auth-form{
  display:grid;
  gap:12px;
}

.takken-auth-label{
  font-size:14px;
  font-weight:700;
  color:#374151;
}

.takken-auth-input{
  width:100%;
  padding:12px 14px;
  border:1px solid #d1d5db;
  border-radius:12px;
  font-size:16px;
  box-sizing:border-box;
  background:#fff;
}

.takken-auth-input:focus{
  outline:none;
  border-color:#111827;
  box-shadow:0 0 0 3px rgba(17,24,39,.08);
}

.takken-auth-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 18px;
  border-radius:12px;
  font-weight:800;
  text-decoration:none;
  border:1px solid #111827;
  cursor:pointer;
  box-sizing:border-box;
}

.takken-auth-btn-primary{
  background:#111827;
  color:#fff;
}

.takken-auth-btn-secondary{
  background:#fff;
  color:#111827;
}

.takken-auth-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:16px;
}

.takken-auth-notice{
  margin-bottom:20px;
  padding:14px 16px;
  border-radius:14px;
  border:1px solid;
}

.takken-auth-notice p{
  margin:0;
  line-height:1.8;
}

.takken-auth-notice-success{
  background:#f0fdf4;
  border-color:#86efac;
  color:#166534;
}

.takken-auth-notice-error{
  background:#fef2f2;
  border-color:#fca5a5;
  color:#991b1b;
}

/* =========================================
   マイページ / 練習メニュー
========================================= */
.takken-dashboard-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:20px;
  margin-top:20px;
}

.takken-dashboard-card{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:18px;
  padding:24px;
  box-shadow:0 8px 24px rgba(0,0,0,.04);
  box-sizing:border-box;
}

.takken-dashboard-title{
  margin:0 0 16px;
  font-size:20px;
  font-weight:800;
  color:#111827;
}

.takken-stat-list{
  display:grid;
  gap:12px;
}

.takken-stat-item{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px 14px;
  border:1px solid #e5e7eb;
  border-radius:12px;
  background:#fafafa;
  gap:12px;
}

.takken-stat-label{
  color:#374151;
  font-weight:700;
}

.takken-stat-value{
  color:#111827;
  font-weight:900;
  font-size:18px;
}

.takken-history-list{
  display:grid;
  gap:12px;
}

.takken-history-item{
  padding:14px 16px;
  border:1px solid #e5e7eb;
  border-radius:12px;
  background:#fafafa;
}

.takken-history-main{
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:6px;
}

.takken-history-date{
  color:#6b7280;
  font-size:14px;
}

.takken-history-sub{
  color:#374151;
  line-height:1.8;
}

.takken-history-link{
  color:#111827;
  text-decoration:none;
  font-weight:800;
}

.takken-history-link:hover{
  text-decoration:underline;
}

.takken-menu-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:16px;
}

.takken-menu-card{
  display:flex;
  flex-direction:column;
  gap:6px;
  padding:18px;
  border:1px solid #e5e7eb;
  border-radius:14px;
  background:#fafafa;
  color:#111827;
  text-decoration:none;
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.takken-menu-card:hover{
  transform:translateY(-1px);
  box-shadow:0 8px 18px rgba(0,0,0,.06);
  border-color:#d1d5db;
}

.takken-menu-card strong{
  font-size:16px;
}

.takken-menu-card span{
  color:#6b7280;
  line-height:1.7;
}

.takken-chip-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.takken-chip{
  display:inline-block;
  padding:8px 14px;
  border-radius:999px;
  background:#f3f4f6;
  color:#111827;
  text-decoration:none;
  font-weight:700;
  font-size:13px;
}

.takken-chip:hover{
  background:#e5e7eb;
}

.takken-set-header{
  max-width:860px;
  margin:0 auto 20px;
}

.takken-set-title{
  margin:0 0 6px;
  font-size:24px;
  font-weight:900;
  color:#111827;
}

.takken-set-text{
  margin:0;
  color:#6b7280;
  line-height:1.8;
}

.takken-set-footer{
  max-width:860px;
  margin:8px auto 0;
  text-align:center;
}

/* =========================================
   シンプルトップ
========================================= */
.tak-simple-top{
  padding:32px 20px;
}

.tak-simple-top-inner{
  max-width:860px;
  margin:0 auto;
}

.tak-simple-top h1{
  margin:0 0 12px;
  font-size:32px;
  font-weight:900;
  color:#111827;
}

.tak-simple-top p{
  margin:0 0 20px;
  color:#6b7280;
  line-height:1.9;
}

.tak-simple-top-links{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.tak-simple-top-links a{
  display:inline-block;
  padding:10px 14px;
  border:1px solid #d1d5db;
  border-radius:999px;
  background:#fff;
  color:#111827;
  text-decoration:none;
  font-weight:700;
}

.tak-simple-top-links a:hover{
  background:#f9fafb;
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/

/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*768px以下*/
@media screen and (max-width: 768px){
  .takken-auth-grid{
    grid-template-columns:1fr;
  }

  .takken-dashboard-grid{
    grid-template-columns:1fr;
  }

  .takken-auth-card,
  .takken-dashboard-card{
    padding:18px;
  }

  .takken-menu-grid{
    grid-template-columns:1fr;
  }
}

/*640px以下*/
@media screen and (max-width: 640px){
  .takken-random-wrap{
    padding:18px;
    margin:16px auto;
  }

  .takken-question{
    font-size:15px;
  }

  .takken-choice{
    padding:12px 14px;
  }

  .takken-answer-buttons{
    gap:8px;
  }

  .takken-answer-btn{
    padding:11px 0;
    font-size:17px;
  }
}

/*480px以下*/
@media screen and (max-width: 480px){
  .takken-random-meta{
    gap:8px;
  }

  .takken-badge{
    font-size:12px;
    padding:6px 10px;
  }

  .takken-answer-buttons{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .takken-auth-actions{
    flex-direction:column;
  }

  .takken-auth-btn,
  .takken-next{
    width:100%;
  }

  .takken-stat-item{
    flex-direction:column;
    align-items:flex-start;
  }

  .takken-history-main{
    flex-direction:column;
    align-items:flex-start;
  }

  .tak-simple-top{
    padding:24px 16px;
  }

  .tak-simple-top h1{
    font-size:26px;
  }

  .tak-simple-top-links{
    flex-direction:column;
  }

  .tak-simple-top-links a{
    width:100%;
    box-sizing:border-box;
  }
}

.takken-recaptcha-wrap{
  margin-top: 8px;
  margin-bottom: 8px;
}

/* スマホで「正解数 / 回答数 / この分野を解く」を1行寄りにする */
@media screen and (max-width: 480px){
  .takken-history-sub{
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .takken-history-sub a{
    flex: 0 0 auto;
  }
}

@media screen and (max-width: 480px){
  .takken-history-sub{
    font-size: 14px;
  }
}

.takken-recaptcha-wrap{
  margin-top: 8px;
  margin-bottom: 8px;
}

/* Cocoon スマホフッターメニュー非表示 */
.mobile-footer-menu-buttons {
  display: none !important;
}