/*
Theme Name:   Hosting Memo Child
Description:  Twenty Twenty-Five 子テーマ / hosting-memo.jp
Template:     twentytwentyfive
Version:      1.0.0
*/

/* =============================================
   カスタムスタイル
   ※ theme.json で定義できない細かい調整のみここに記述
   ============================================= */

/* --- 記事本文の読みやすさ調整 --- */
.wp-block-post-content p {
  margin-bottom: 1.6em;
}

/* --- チェックリストボックス --- */
.hm-checklist {
  background: #FAFAF9;
  border: 1px solid #E5E7EB;
  border-left: 4px solid #0E7C66;
  border-radius: 4px;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}

.hm-checklist ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hm-checklist ul li {
  padding-left: 1.75rem;
  position: relative;
  margin-bottom: 0.6rem;
  line-height: 1.7;
}

.hm-checklist ul li::before {
  content: "☐";
  color: #0E7C66;
  position: absolute;
  left: 0;
  font-size: 1.1rem;
}

/* --- 注意喚起ボックス --- */
.hm-caution {
  background: #FEF3C7;
  border: 1px solid #F59E0B;
  border-left: 4px solid #F59E0B;
  border-radius: 4px;
  padding: 1rem 1.5rem;
  margin: 2rem 0;
}

.hm-caution::before {
  content: "⚠ 注意";
  display: block;
  font-weight: 700;
  color: #92400E;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

/* --- 手順ステップブロック --- */
.hm-steps {
  margin: 2rem 0;
  counter-reset: step-counter;
}

.hm-steps .hm-step {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.hm-steps .hm-step-number {
  background: #0E7C66;
  color: #fff;
  font-weight: 700;
  min-width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.hm-steps .hm-step-body {
  padding-top: 0.2rem;
}

/* --- テーブルの見やすさ調整 --- */
.wp-block-table table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95rem;
}

.wp-block-table th {
  background: #27364A;
  color: #fff;
  padding: 0.75rem 1rem;
  text-align: left;
}

.wp-block-table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid #E5E7EB;
}

.wp-block-table tr:nth-child(even) td {
  background: #F3F4F6;
}

/* --- 著者ボックス --- */
.hm-author-box {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: #F3F4F6;
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  margin: 3rem 0 2rem;
}

.hm-author-box .hm-author-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #27364A;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
}

.hm-author-box .hm-author-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: #27364A;
  margin-bottom: 0.4rem;
}

.hm-author-box .hm-author-bio {
  font-size: 0.875rem;
  color: #6B7280;
  line-height: 1.7;
  margin: 0;
}

/* --- CTAボタン --- */
.hm-cta-button {
  display: inline-block;
  background: #0E7C66;
  color: #fff !important;
  padding: 0.875rem 2rem;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
  transition: background 0.2s;
  text-align: center;
}

.hm-cta-button:hover {
  background: #27364A;
  color: #fff !important;
}

/* --- 最終更新日 --- */
.hm-last-updated {
  font-size: 0.8rem;
  color: #6B7280;
  margin-bottom: 1.5rem;
}

.hm-last-updated::before {
  content: "最終更新: ";
}

/* --- モバイル調整 --- */
@media (max-width: 600px) {
  .hm-author-box {
    flex-direction: column;
  }

  .wp-block-table {
    overflow-x: auto;
    display: block;
  }
}
