/*
Theme Name: N子の恋愛相談室
Theme URI:
Author:
Author URI:
Description: Instagram/TikTokプロフィール風トップのベーステーマ
Version: 1.0
Text Domain: profile-top-theme
*/

:root {
  --bg: #0b0c10;
  --card: #12141b;
  --soft: #171a23;
  --text: #e9eef7;
  --muted: #a9b3c7;
  --line: rgba(255,255,255,.08);
  --radius: 16px;
  --accent: #ff5fa2;     /* 恋愛系の主アクセント */
  --accent2: #a78bfa;    /* ほんのりラベンダー */
  --shadow-hard: 3px 5px 0 rgba(0,0,0,.35); /* 吹き出しの“硬め影”と馴染む */
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);

  /* "Noto Sans JP", sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue" */
}

img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 16px;
}

.pc { display: block; }
.sp { display: none; }

@media (max-width: 960px) {
  .pc { display: none; }
  .sp { display: block; }
}


/* ====== フォント ====== */
.content_single h2,
.content_single h3,
.content_single h4,
.content_single h5{
  color: var(--text);
  line-height: 1.35;
  letter-spacing: .02em;
  margin: 2.2em 0 .9em;
  scroll-margin-top: 96px; /* 固定ヘッダーがある場合 */
}

.content_single h1{
  font-size: 28px;
}

.content_single h2{
  font-size: 24px;
  font-weight: 800;
  padding: 14px 16px 14px 18px;
  border-radius: calc(var(--radius) - 2px);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid var(--line);
  margin: 80px 0 32px;
  position: relative;
  box-shadow: 0 0 0 1px rgba(255,255,255,.04) inset;

}

.content_single h2::before{
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 62%;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
}

.content_single h3{
  font-size: 20px;
  font-weight: 800;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--line);
  margin: 48px 0 32px;
  position: relative;

}

.content_single h3::before{
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  vertical-align: middle;
}

.content_single h4{
  font-size: clamp(16px, 1.7vw, 18px);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid var(--line);
  color: var(--text);
}

.content_single h4::before{
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.22);
}

.content_single h5{
  font-size: 16px;
  font-weight: 700;
  color: var(--muted);
  padding-left: 12px;
  border-left: 2px solid rgba(255,255,255,.14);
  margin-top: 1.6em;
}

.content_single ul{
  font-size: 16px;
  padding: 16px 16px 16px 40px;
  border: solid 1px #e9eef7;
}

.content_single ul li{
  font-size: 16px;
}

@media (max-width: 960px) {
  .content_single h1{
    font-size: 24px;    
  }
  .content_single h2{
    font-size: 22px;    
  }
  .content_single h3{
    font-size: 18px;
  }
  .content_single h4,
  .content_single h5{
    font-size: 16px;

  }
}




/* ====== Header ====== */
.site_header {
  padding: 10px 0 16px;
}

.site_brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.site_brand a {
  font-weight: 900;
  letter-spacing: .02em;
}

.site_nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.site_nav a {
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}

/* ====== Profile block ====== */
.profile {
  padding: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.profile_top {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 14px;
  align-items: start;
}

.avatar {
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.22), rgba(255,255,255,.06));
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
}

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

.profile_name {
  margin: 0;
  font-weight: 900;
  font-size: 18px;
}

.profile_bio_wrap {
  position: relative;
}

.profile_bio {
  line-height: 1.6;
  max-height: calc(1.6em * 5); /* 5行分 */
  overflow: hidden;
}

/* 「…」を擬似的に出さない（不要な装飾があれば念のため） */
.profile_bio::after {
  content: none;
}

/* 開いた状態 */
.profile_bio.is-open {
  max-height: none;
}

/* ボタン */
.bio_toggle {
  margin-top: 8px;
  padding: 0;
  border: none;
  background: none;
  color: var(--primary, #cc6a95);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.bio_toggle:hover {
  text-decoration: underline;
}

.profile_cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--text);
  font-weight: 800;
  font-size: 14px;
}

.btn.primary { background: rgba(255,255,255,.10); }

.stats {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 8px;
}

.stat {
  padding: 12px 10px;
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  text-align: center;
}

.stat_num { display: block; font-weight: 900; font-size: 18px; }
.stat_label { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }

/* ====== Link hub ====== */
.linkhub {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px; /* スクロールバー余白 */
  margin-top: 14px;
  -webkit-overflow-scrolling: touch; /* iOS慣性スクロール */
}

.linkhub::-webkit-scrollbar {
  display: none; /* スクロールバー非表示（任意） */
}

.linkhub_overview {
  position: relative;
  flex: 0 0 auto;
  min-width: 180px;
  padding: 14px 18px;
  border-radius: 12px 0 0 12px;
  background: var(--primary, #cc6a95);
  color: #fff;
  display: flex;
  align-items: center;
  pointer-events: none; /* ← 完全に非操作 */
}

/* 右側の尖り（三角） */
.linkhub_overview::after {
  content: "";
  position: absolute;
  right: -16px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 16px solid var(--primary, #cc6a95);
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;
}

/* 中身 */
.linkhub_overview_inner {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.linkhub_overview .linkhub_overview_title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.linkhub_overview_hint {
  font-size: 12px;
  opacity: 0.9;
}

.linkhub_item {
  flex: 0 0 auto;
  min-width: 220px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.02);
  text-decoration: none;
}

.linkhub_title {
  display: block;
  font-weight: 900;
  font-size: 14px;
}

.linkhub_desc {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

/* ====== Highlights ====== */
.highlights {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.02);
  overflow: hidden;
  padding: 8px 0;
}

.highlights_row {
  display: flex;
  gap: 14px;
  padding: 0 16px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; /* iOS対応 */
}

.highlights_row::-webkit-scrollbar {
  display: none;
}

.hl {
  flex: 0 0 auto;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  scroll-snap-align: start;
}

.hl_ring {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f8b3d0, #d8b4fe);
  position: relative;
  display: inline-block;
}

.hl_ring::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #fff;
}

.hl_ring img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.hl_label {
  font-size: 12px;
  white-space: nowrap;
}

/* ====== Tabs / Panels ====== */
.tabs {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 8px;
}

.tab {
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--muted);
  font-weight: 900;
}

.tab.is-active {
  color: var(--text);
  background: rgba(255,255,255,.10);
}

.panel[hidden] { display: none !important; }

/* ====== Grid (posts) ====== */
.grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.card {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  display: grid;
}

.thumb {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card_title {
  margin: 0;
  padding: 10px 10px 12px;
  font-size: 12px;
  color: var(--text);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Category panel */
.catgrid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 10px;
}

.cat {
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--text);
  font-weight: 900;
}

/* ====== Profile block_タブレット・モバイル ====== */
@media (max-width: 960px) {
  .wrap {
    padding-right: 16px;
    padding-left: 16px;
  }

  .profile {
    background: none;
    padding-right: 8px;
    padding-left: 8px;
    border: none;
    border-radius: 0;
  }

  .profile_top {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    row-gap: 22px;
  }

  .avatar {
    width: 100%;
    max-width: 120px;
    height: auto;
    margin: auto;
  }

  .profile_bio {
    font-size: 15px;
  }
}



/* ============================
   個別記事
============================ */
.thumb_area{
  width: 100%;
  max-width: 500px;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin: 36px auto;
  overflow: hidden;
}

/* ====== 吹き出しブロック ====== */
.balloon {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin: 48px 0;
}

.balloon__img {
  flex: 0 0 auto;
  margin: 0;
  text-align: center;
}

.balloon__img img {
  width: 68px;
  height: 68px;
  border-radius: 999px;
  object-fit: cover;
  display: block;
}

.balloon__name {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.2;
  opacity: .8;
}

.balloon__body {
  background: #f5f5f5;
  padding: 16px 20px;
  border-radius: 12px;
  position: relative;
  max-width: 70%;
  line-height: 1.7;
}

.balloon__body p {
  margin: 0;
  color: #0b0c10;
}

.balloon__body p + p {
  margin-top: .6em;
}

/* 右側（会話相手） */
.balloon--left .balloon__body{
  box-shadow: -3px 5px 0px #c7c7c7;
}

/* しっぽ（左） */
.balloon--left .balloon__body::before {
  content: "";
  position: absolute;
  top: 14px;
  left: -7px;
  border-width: 7px 7px 7px 0;
  border-style: solid;
  border-color: transparent #f5f5f5 transparent transparent;
  z-index: 1;
}

/* しっぽ影（左） */
.balloon--left .balloon__body::after {
  content: "";
  position: absolute;
  top: 19px;           /* 5px下＝影のY方向 */
  left: -10px;        /* -3px横＝影のX方向 */
  border-width: 7px 7px 7px 0;
  border-style: solid;
  border-color: transparent #c7c7c7 transparent transparent;
  z-index: 0;
}

/* 右側（会話相手） */
.balloon--right {
  flex-direction: row-reverse;
}

.balloon--right .balloon__body{
  box-shadow: 3px 5px 0px #c7c7c7;
}

/* しっぽ本体（右） */
.balloon--right .balloon__body::before {
  content: "";
  position: absolute;
  top: 14px;
  right: -7px;
  left: auto;
  border-width: 7px 0 7px 7px;
  border-style: solid;
  border-color: transparent transparent transparent #f5f5f5;
  z-index: 1;
}

/* しっぽ影（右） */
.balloon--right .balloon__body::after {
  content: "";
  position: absolute;
  top: 19px;          /* 5px下 */
  right: -10px;      /* 3px横 */
  border-width: 7px 0 7px 7px;
  border-style: solid;
  border-color: transparent transparent transparent #c7c7c7;
  z-index: 0;
}

.balloon--right .balloon__body {
  margin-left: auto;
}

/* ====== 吹き出しブロック（タブレット・モバイル版） ====== */
@media (max-width: 960px) {
  .balloon__body {
    max-width: 78%;
  }
}


/* ====== Note style ====== */
.note {
  position: relative;
  padding: 28px 18px;
  padding-left: 70px;
  border: 1px solid rgba(0,0,0,.12);
  background: #faf9f7;
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
  overflow: hidden;
  color: #2b2b2b;
}

.note::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,.12) 0px,
    rgba(0,0,0,.12) 1px,
    transparent 1px,
    transparent 28px
  );
  opacity: .25;
  pointer-events: none;
}

.note::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 46px;
  width: 3px;
  background: rgba(255, 99, 132, .55);
  pointer-events: none;
}

.note > * {
  position: relative;
  z-index: 1;
}

.note h2 {
  margin: 0 0 18px;
  font-size: 20px;
  line-height: 1.35;
  display: inline-block;
  padding: 10px 14px;
  background: #fff3c4;
  color: #3a2f00;
  box-shadow: 0 6px 14px rgba(0,0,0,.1);
}

.note h3 {
  margin: 18px 0 8px;
  font-size: 16px;
  line-height: 1.4;
  padding: 6px 12px;
  background: #eef1ff;
  border: 1px solid rgba(99, 102, 241, .35);
  color: #1f2a5a;
}

.note p {
  margin: 0 0 12px;
  line-height: 1.9;
  letter-spacing: .02em;
  color: #2b2b2b;
}

@media (max-width: 960px) {
  .note {
    padding: 22px 14px;
    padding-left: 58px;
  }

  .note::after {
    left: 36px;
  }

  .note h2 {
    font-size: 18px;
  }

  .note h3 {
    font-size: 15px;
  }
}

/* ====== 体験談・アドバイス ====== */
.testimony {
  position: relative;
  margin: 18px 0;
  padding: 16px 16px 14px;
  background: #fbfbfc;
  border: 2px solid rgba(0,0,0,.18);
  box-shadow: 0 12px 28px rgba(0,0,0,.08);
  overflow: hidden;
}

.testimony::before {
  content: "";
  position: absolute;
  left: -12px;
  right: -12px;
  top: 10px;
  height: 26px;
  transform: rotate(-1.2deg);
  background: rgba(0,0,0,.05);
  border-top: 1px dashed rgba(0,0,0,.18);
  border-bottom: 1px dashed rgba(0,0,0,.18);
  pointer-events: none;
}

.testimony::after {
  content: "TESTIMONY";
  position: absolute;
  right: 14px;
  bottom: 10px;
  font-weight: 900;
  letter-spacing: .14em;
  font-size: 18px;
  color: rgba(0,0,0,.06);
  transform: rotate(-6deg);
  pointer-events: none;
}

.testimony_top {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-bottom: 10px;
}

.testimony_tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .02em;
  background: #fff;
  border: 2px solid rgba(0,0,0,.18);
  box-shadow: 0 5px 0 rgba(0,0,0,.10);
}

.testimony_meta {
  font-size: 12px;
  color: rgba(0,0,0,.62);
}

.testimony_body {
  position: relative;
  z-index: 1;
  padding-top: 6px;
  border-left: 4px solid rgba(0,0,0,.12);
  padding-left: 12px;
}

.testimony_body p {
  margin: 0 0 10px;
  line-height: 1.9;
  color: #222;
}

.testimony_body p:last-child { margin-bottom: 0; }

/* 体験談（ピンク） */
.testimony--story {
  border-color: #f78da7;
}

.testimony--story .testimony_tag {
  color: #f78da7;
  border-color: #f78da7;
}

.testimony--story .testimony_tag::before {
  content: "🗒️";
  font-size: 14px;
}

/* アドバイス（ブルー） */
.testimony--advice {
  border-color: #1f2a5a;
}

.testimony--advice .testimony_tag {
  color: #1f2a5a;
  border-color: #1f2a5a;
}

.testimony--advice .testimony_tag::before {
  content: "💡";
  font-size: 14px;
}

.testimony_mark {
  background: rgba(255, 215, 0, .25);
  padding: 0 4px;
  border-radius: 6px;
  font-weight: 800;
}

@media (max-width: 960px) {
  .testimony {
    padding: 14px 14px 12px;
  }

  .testimony::after {
    font-size: 16px;
  }
}

/* ====== パンくずリスト ====== */
.breadcrumbs {
  margin: 12px 0 18px;
}

.breadcrumbs_list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.breadcrumbs_item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs_item:not(:last-child)::after {
  content: "/";
  opacity: .5;
}

.breadcrumbs_link {
  color: inherit;
  text-decoration: none;
}

.breadcrumbs_link:hover {
  text-decoration: underline;
}

.breadcrumbs_current {
  color: var(--text);
  font-weight: 600;
}

/* ====== フッター ====== */
.footer {
  margin: 18px 0 8px;
  padding: 14px 6px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid var(--line);
}

.grid {
  grid-template-columns: repeat(3, 1fr);
}

.catgrid {
  grid-template-columns: repeat(3,1fr);
}
