@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
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

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

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

:root {
  --color-bg: #fbf7f4;
  --color-base: #ffffff;
  --color-text: #3f3a38;
  --color-sub: #7d7470;
  --color-pink: #d98d98;
  --color-pink-light: #f8e8e9;
  --color-blue: #8bb8d6;
  --color-green: #aabca2;
  --color-border: #eee2dd;
  --shadow-soft: 0 12px 32px rgba(80, 60, 50, 0.08);
  --radius-lg: 28px;
  --radius-md: 20px;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  line-height: 1.9;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.sensai-home {
  max-width: 760px;
  margin: 0 auto;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.9), transparent 40%),
    var(--color-bg);
  overflow: hidden;
}

/* ヘッダー */
.sensai-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(238, 226, 221, 0.8);
}

.sensai-header__inner {
  min-height: 76px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sensai-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sensai-logo__mark {
  color: var(--color-green);
  font-size: 24px;
}

.sensai-logo__text strong {
  display: block;
  font-size: 20px;
  letter-spacing: .08em;
  font-weight: 500;
}

.sensai-logo__text small {
  display: block;
  color: #a97867;
  font-size: 11px;
  letter-spacing: .08em;
  line-height: 1.2;
}

.sensai-menu {
  width: 54px;
  border: none;
  background: transparent;
  padding: 0;
  color: var(--color-text);
}

.sensai-menu span {
  display: block;
  width: 34px;
  height: 2px;
  margin: 7px auto;
  background: var(--color-text);
}

.sensai-menu em {
  display: block;
  font-style: normal;
  font-size: 10px;
  letter-spacing: .08em;
}

/* 共通 */
.section-block,
.section-card {
  margin: 34px 16px;
}

.section-block h2,
.section-card h2 {
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: .08em;
  text-align: center;
  line-height: 1.6;
}

.section-block > p,
.section-card > p {
  color: var(--color-sub);
  font-size: 14px;
  text-align: center;
}

.section-card {
  padding: 30px 20px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(238,226,221,.8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.sensai-label {
  color: var(--color-pink);
  font-size: 13px;
  letter-spacing: .12em;
  text-align: center;
}

/* ファーストビュー */
.sensai-hero {
  position: relative;
  padding-bottom: 36px;
  background: linear-gradient(180deg, #fff 0%, #fbf3f3 100%);
}

.sensai-hero__image {
  height: 300px;
  overflow: hidden;
}

.sensai-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sensai-hero__content {
  position: relative;
  margin: -36px 16px 0;
  padding: 26px 18px 24px;
  background: rgba(255,255,255,.84);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.sensai-hero h1 {
  margin: 6px 0 16px;
  font-size: clamp(30px, 9vw, 44px);
  font-weight: 500;
  letter-spacing: .07em;
  line-height: 1.55;
}

.sensai-hero h1 span {
  color: var(--color-pink);
}

.sensai-hero__lead {
  margin: 0 0 20px;
  color: var(--color-sub);
  font-size: 14px;
  line-height: 2;
}

/* 検索 */
.sensai-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(80,60,50,.08);
}

.sensai-search input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  padding: 12px 14px;
  font-size: 15px;
  background: transparent;
}

.sensai-search button {
  border: none;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--color-pink);
  color: #fff;
  font-size: 13px;
}

/* ボタン */
.sensai-hero__buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.sensai-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border-radius: 999px;
  color: #fff;
  font-size: 15px;
  letter-spacing: .08em;
  box-shadow: 0 10px 22px rgba(80,60,50,.12);
}

.sensai-button--pink {
  background: linear-gradient(135deg, #e4a0aa, #cf7c89);
}

.sensai-button--blue {
  background: linear-gradient(135deg, #9fc8df, #76a9c9);
}

.sensai-button--wide {
  width: 100%;
  margin-top: 20px;
}

/* チップ */
.sensai-topic-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 20px 2px 4px;
}

.sensai-topic-chips a {
  white-space: nowrap;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-sub);
  font-size: 13px;
}

/* はじめての方 */
.sensai-link-cards {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.sensai-link-cards a {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: center;
  padding: 16px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 20px rgba(80,60,50,.06);
}

.sensai-link-cards span {
  grid-row: span 2;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--color-pink-light);
  border-radius: 50%;
  font-size: 22px;
}

.sensai-link-cards strong {
  color: var(--color-pink);
  font-size: 16px;
}

.sensai-link-cards small {
  color: var(--color-sub);
  font-size: 12px;
}

/* カテゴリ */
.sensai-category-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 22px;
}

.sensai-category-grid a {
  min-height: 150px;
  padding: 18px 14px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(238,226,221,.9);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 24px rgba(80,60,50,.06);
}

.sensai-category-grid span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  background: var(--color-pink-light);
  border-radius: 50%;
  font-size: 22px;
}

.sensai-category-grid strong {
  display: block;
  font-size: 17px;
  line-height: 1.5;
}

.sensai-category-grid small {
  display: block;
  color: var(--color-sub);
  font-size: 12px;
}

/* 悩み */
.sensai-worry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 22px;
}

.sensai-worry-grid a {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  text-align: center;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 20px rgba(80,60,50,.06);
  font-size: 15px;
  line-height: 1.7;
}

/* おすすめ記事 */
.sensai-post-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 20px 0;
  background: #fff;
  border-radius: 999px;
  padding: 6px;
  box-shadow: 0 8px 20px rgba(80,60,50,.06);
}

.sensai-post-tabs button {
  border: none;
  background: transparent;
  padding: 10px 0;
  border-radius: 999px;
  color: var(--color-sub);
  font-family: inherit;
  font-size: 14px;
}

.sensai-post-tabs button.active {
  background: var(--color-pink-light);
  color: var(--color-pink);
}

.sensai-post-list {
  display: grid;
  gap: 14px;
}

.sensai-post-card {
  display: grid;
  grid-template-columns: 38% 1fr;
  gap: 14px;
  padding: 12px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 22px rgba(80,60,50,.06);
}

.sensai-post-card img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 16px;
}

.sensai-post-card span {
  color: var(--color-pink);
  font-size: 12px;
}

.sensai-post-card h3 {
  margin: 4px 0 6px;
  font-size: 17px;
  line-height: 1.6;
}

.sensai-post-card p {
  margin: 0;
  color: var(--color-sub);
  font-size: 12px;
  line-height: 1.7;
}

/* 診断 */
.sensai-test {
  background: linear-gradient(180deg, #fff2f3, #fff);
}

.sensai-test h2 span {
  color: var(--color-pink);
}

.sensai-test-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 22px 0;
}

.sensai-test-points span {
  display: grid;
  place-items: center;
  min-height: 72px;
  padding: 8px;
  text-align: center;
  background: #fff;
  border-radius: 999px;
  color: var(--color-sub);
  font-size: 12px;
  box-shadow: 0 8px 20px rgba(80,60,50,.06);
}

/* PC微調整 */
@media (min-width: 768px) {
  .sensai-home {
    border-left: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
  }

  .sensai-hero__image {
    height: 420px;
  }

  .sensai-hero__content {
    padding: 36px;
  }

  .section-block,
  .section-card {
    margin: 48px 32px;
  }
}