/* marry 記事ページの着せ替え（2026-11）
   今の Rails の記事ページ（HTML はそのまま）に、新しいトップと同じ色・書体をかぶせる。
   広告の枠（.center・.article-footer-ad・GPT が差し込む要素）は、隠したり大きさを変えたりしない。
   読み込み：nginx が </head> の前に Google Fonts とこのファイルの <link> を差し込む */

:root {
  --m-bg: #fff9fa;
  --m-white: #fff;
  --m-blush: #fdeef1;
  --m-pink-1: #fbdde5;
  --m-pink-2: #f6bccb;
  --m-pink-3: #ec8fab;
  --m-rose: #c63d6f;
  --m-rose-d: #a92f5b;
  --m-ink: #4a2c36;
  --m-sub: #876670;
  --m-line: #f5dbe2;
  --m-serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --m-sans: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif;
  --m-latin: "Cormorant Garamond", "Shippori Mincho", serif;
}

/* ---------- 土台 ---------- */
html { background: var(--m-bg); }
html body {
  background: var(--m-bg);
  color: var(--m-ink);
  font-family: var(--m-sans);
  -webkit-font-smoothing: antialiased;
  /* 幅は元の 700px のまま（広告の親の幅を変えない） */
  max-width: 700px;
}
html body a { color: inherit; }

/* ---------- ヘッダー ---------- */
html body .l-header {
  position: sticky; top: 0; z-index: 9;
  height: 60px;
  background: rgba(255, 249, 250, .93);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--m-line);
}
html body .l-header .header_logo { height: 60px; display: flex; align-items: center; justify-content: center; }
html body #marry_header_logo {
  content: url(https://marry-xoxo.com/assets-2026/img/logo.svg);
  width: 92px; height: auto;
}
html body .l-header ul { margin-top: -60px; line-height: 60px; }
html body .l-header ul a { height: 60px; display: inline-flex; align-items: center; justify-content: center; }
html body .l-header .marryIcon-menu { color: var(--m-ink); height: 60px; font-size: 26px; }
html body .l-header ul li a img { filter: brightness(0) opacity(.72); width: 22px; height: 22px; }

/* メニュー（☰ を押すと出る画面） */
html body .headerview { background-color: var(--m-bg); color: var(--m-ink); border-inline: 1px solid var(--m-line); }
html body .headerview a,
html body .headerview_list a { color: var(--m-ink); }
html body .headerview_list a:hover { color: var(--m-rose); }
html body .headerview_list .highlight { background: var(--m-blush); color: var(--m-rose); border-radius: 99px; padding: 4px 14px; font-size: 15px; }
html body .headerview_list .highlight.highlight_with_link { padding-right: 26px; }
html body .headerview_list a.highlight::before { border-color: var(--m-rose); }
html body .headerview_list a { font-size: 15px; letter-spacing: .04em; }
html body .headerview_closebox a { box-shadow: 0 0 0 1px var(--m-line); background: var(--m-white); }
html body .headerview_closebox a::before { color: var(--m-ink); font-size: 24px; }
html body .headerview .form-search .input-text { background: var(--m-white); color: var(--m-ink); border: 1px solid var(--m-line); border-radius: 99px; height: 42px; font-family: var(--m-sans); }
html body .headerview .form-search .input-text::placeholder { color: var(--m-sub); }
html body .headerview .form-search .submit_button { color: var(--m-sub); top: 19px; left: 8px; }
html body .headerview .form-search .submit_button svg,
html body .headerview .form-search .submit_button path { fill: var(--m-sub); stroke: var(--m-sub); }
html body .headerview .article_listItem a h3 .article_listItem_title { font-family: var(--m-serif); font-weight: 600; font-size: 17px; }

/* ---------- 記事の頭 ---------- */
html body .l-articles .l-article { margin: 0 clamp(16px, 4vw, 28px) 5px; }
html body .l-articles header.l-article-header { padding-top: 24px; }
html body .l-articles .article_top.is-show { margin: 0; }
html body .l-articles .article_top { display: flex; flex-direction: column; gap: 18px; text-align: left; }
html body .l-articles .article_top > img {
  width: 100%; height: auto;
  border-radius: 20px; background: var(--m-blush);
}
html body .l-articles .article_top_title {
  order: -1;
  position: static;
  background: none;
  color: var(--m-ink);
  font-family: var(--m-serif);
  font-weight: 600;
  font-size: clamp(21px, 4.6vw, 29px);
  line-height: 1.65;
  letter-spacing: .03em;
  padding: 0;
}
html body .l-articles header.l-article-header .article-header_createdAt {
  font-family: var(--m-latin); font-size: 15px; letter-spacing: .06em; color: var(--m-sub);
  margin: 14px 0 0;
}
html body .l-articles header.l-article-header .article-header_favorite a,
html body .l-articles footer.l-article-footer .article-footer_favorite a {
  color: var(--m-rose); border-color: var(--m-pink-2); background: var(--m-white); border-radius: 99px;
}
html body .l-articles header.l-article-header .article-header_favorite .marryIcon-heart,
html body .l-articles footer.l-article-footer .article-footer_favorite .marryIcon-heart { color: var(--m-rose); }

/* ---------- 本文 ---------- */
/* 大見出し（h2） */
html body .l-articles .article_body-headline {
  font-family: var(--m-serif);
  font-weight: 600;
  font-size: clamp(18px, 3.8vw, 22px);
  line-height: 1.7;
  letter-spacing: .04em;
  text-indent: 0;
  margin: 2.6em 0 1.1em;
  padding: 13px 18px;
  background: var(--m-blush);
  border: 0;
  border-left: 4px solid var(--m-pink-3);
  border-radius: 14px;
  color: var(--m-ink);
}
html body .l-articles .article_body-headline > i { display: none; }
html body .l-articles .article_body-headline > span { letter-spacing: inherit; }

/* 本文の段落（旧サイトでは h3 で書かれている） */
html body .l-articles .article_body-subhead {
  font-family: var(--m-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 2.05;
  letter-spacing: .02em;
  text-indent: 0;
  margin: 0 0 1.05em;
  color: var(--m-ink);
  overflow-wrap: anywhere;
}
html body .l-articles .article_body-subhead > i { display: none; }
html body .l-articles .article_body-subhead > span { letter-spacing: inherit; }

/* 写真 */
html body .l-articles .article_body-image-wrapper { margin: 1.8em 0; }
html body .l-articles .article_body-image-wrapper .article_body-image,
html body .l-articles .article_body-image-wrapper .article_body-image-signedIn { border-radius: 16px; background: var(--m-blush); }
html body .l-articles .article_body-image-wrapper .article_body-image img,
html body .l-articles .article_body-image-wrapper .article_body-image-signedIn img { border: 0; margin: 0; border-radius: 16px; }
html body .l-articles .article_body-image-source {
  display: block; text-align: right; font-style: normal;
  font-size: 11.5px; line-height: 1.5; color: var(--m-sub); margin-top: 8px;
}
html body .l-articles .article_body-image-source a { color: var(--m-sub); border-bottom: 1px solid var(--m-line); }

/* 外へのリンク */
html body .l-articles p.article_body-link { border: 0; padding: 0; margin: 0 0 14px; font-size: 14.5px; color: var(--m-rose); }
html body .l-articles p.article_body-link a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 20px;
  border: 1px solid var(--m-pink-3); border-radius: 16px;
  background: var(--m-white); color: var(--m-rose);
  font-weight: 700; line-height: 1.6;
  transition: background .25s, color .25s;
}
html body .l-articles p.article_body-link a::after { content: "→"; flex: none; }
html body .l-articles p.article_body-link a:hover { background: var(--m-rose); border-color: var(--m-rose); color: #fff; }

/* 本文中のふつうのリンク・強調 */
html body .l-articles .l-article a:not([class]) { color: var(--m-rose); }

/* ---------- 記事の終わり ---------- */
html body .l-articles footer.l-article-footer { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--m-line); color: var(--m-sub); font-size: 13px; }
html body .l-articles footer.l-article-footer .article-footer_createdAt { font-family: var(--m-latin); font-size: 15px; letter-spacing: .04em; }
html body .l-articles footer.l-article-footer .article-header_sourceName { font-size: 12px; margin-bottom: 14px; }
html body .l-articles footer.l-article-footer .article-footer_writtenBy {
  padding: 14px 0; border-top: 1px solid var(--m-line); border-bottom: 1px solid var(--m-line);
  color: var(--m-ink); font-size: 13.5px; margin-bottom: 20px;
}
html body .l-articles footer.l-article-footer .article-footer_writtenBy img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; vertical-align: middle; margin-right: 10px; }

/* ---------- 記事の下（キーワード・おすすめ・ランキング） ---------- */
html body .heading-ribbon,
html body .heading-ribbon.is-alignLeft {
  height: auto; line-height: 1.5;
  margin: 44px clamp(16px, 4vw, 28px) 14px;
  padding: 0 0 10px;
  text-indent: 0; white-space: normal;
  background: none; outline: 0;
  border: 0; border-bottom: 1px solid var(--m-line);
  color: var(--m-ink);
  font-family: var(--m-serif); font-weight: 600;
  font-size: 18px; letter-spacing: .08em;
  position: relative;
}
html body .heading-ribbon > i { color: var(--m-pink-3); font-size: 18px; vertical-align: -3px; margin-right: 6px; }
html body .heading-ribbon.is-ranking { color: var(--m-ink); }
html body .heading-ribbon.is-ranking > i { color: var(--m-rose); }
html body .heading-ribbon strong { font-weight: 600; }
html body .heading-ribbon.is-alignLeft .heading_option {
  position: static; display: inline; width: auto; margin-left: 8px;
  font-family: var(--m-sans); font-weight: 400; font-size: 11.5px; letter-spacing: .02em; color: var(--m-sub);
}

/* キーワード */
html body .tag_list { margin: 0 clamp(16px, 4vw, 28px); display: flex; flex-wrap: wrap; gap: 8px; }
html body .tag_list > li { border: 1px solid var(--m-line); border-radius: 99px; background: var(--m-white); color: var(--m-ink); margin: 0; }
html body .tag_list > li > a { display: inline-flex; align-items: center; min-height: 36px; padding: 4px 14px; font-size: 13px; }
html body .tag_list > li > a > i { display: none; }
html body .tag_list > li > a::before { content: "#"; margin-right: 2px; color: var(--m-pink-3); }
html body .tag_list > li:hover { border-color: var(--m-pink-3); color: var(--m-rose); }

/* バナー */
/* キャンペーンのバナー：広告と同じ部品なので、幅・余白は元のまま。角だけ丸める */
html body .banner img { border-radius: 14px; }

/* 記事の一覧（ランキング・おすすめ・一覧ページ・検索結果） */
html body .article_listItem {
  height: auto; min-height: 0; overflow: hidden;
  margin: 0 clamp(16px, 4vw, 28px) 10px;
  background: var(--m-white);
  border: 1px solid var(--m-line);
  border-radius: 16px;
  transition: border-color .25s;
}
html body .article_listItem:hover { border-color: var(--m-pink-3); }
html body a > div.article_listItem,
html body .article_listItem > a { display: grid; grid-template-columns: 104px 1fr; gap: 14px; align-items: center; padding: 10px; }
html body a > div.article_listItem { margin-bottom: 10px; }
html body .article_listItem .article_listItem_image_wrapper { grid-column: 1; grid-row: 1; position: static; width: 104px; height: 104px; border-radius: 12px; overflow: hidden; background: var(--m-blush); }
html body .article_listItem .article_listItem_image_wrapper img { width: 100%; height: 100%; object-fit: cover; position: static; }
html body .article_listItem .article_listItem_heading { grid-column: 2; grid-row: 1; margin: 0; font-size: 14px; color: var(--m-ink); }
html body .article_listItem .article_listItem_title { font-weight: 500; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
html body .article_listItem .article_listItem_description { margin: 4px 0 0; color: var(--m-sub); }
html body .article_listItem .article_listItem_option { color: var(--m-rose); font-family: var(--m-latin); font-style: italic; font-size: 15px; margin-bottom: 2px; }
html body .article_listItem .article_listItem_option .article_listItem_option_tag { border-color: var(--m-pink-2); color: var(--m-rose); background: var(--m-blush); border-radius: 99px; padding: 2px 9px; font-family: var(--m-sans); font-style: normal; font-size: 11px; }
html body .article_listItem .article_listItem_option.is-advertising::after { font-family: var(--m-sans); font-style: normal; font-size: 11px; color: var(--m-sub); margin-left: 6px; }

/* ---------- フッター ---------- */
html body .l-footer { margin-top: 56px; background: var(--m-blush); padding: 40px 20px 90px; text-align: center; }
html body .l-footer ul { background: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 22px; }
html body .l-footer ul li,
html body .l-footer ul li:nth-of-type(odd),
html body .l-footer ul li:nth-of-type(even) {
  float: none; width: auto; height: auto; line-height: 1.6;
  background: none; border: 0; color: var(--m-ink);
  font-size: 12.5px;
}
html body .l-footer ul li a { display: inline-block; padding: 8px 0; }
html body .l-footer ul li a:hover { color: var(--m-rose); }
html body .l-footer small.copyright { background: none; color: var(--m-sub); padding: 20px 0 0; font-size: 12px; line-height: 1.8; letter-spacing: .04em; }
