@charset "UTF-8";
/*
Theme Name:   Echo Child - LOM
Theme URI:    https://oldno07.com/
Description:  Echoカスタマイズ用子テーマ
Author:       4K WORKS
Author URI:   https://oldno07.com/
Template:     echo
Version:      0.0.3
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
*/

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  -webkit-appearance: none;
  appearance: none;
}

ul,
ol {
  list-style: none;
}

a {
  text-decoration: none;
  transition: all 0.3s;
}

a:hover {
  text-decoration: none;
}

p {
  margin: unset;
  padding: unset;
}

:root {
  --main-color: #004e78;
  --sub-color: rgba(28, 114, 173, 0.8);
  --accent-color: #f4be30;
  --bg-color: #f6f6f7;
  --bg-color-hover: #e3ecef;
  --shadow-color: #c7dade;
  --text-color: #162524;
  --link-color: #0f1818;
  --title-color: #464647;
  --title-size: 24px;
  --inline-padding-base: 16px;
  --block-padding-base: 24px;
  --header-height: 150px;
}

@media screen and (min-width: 768px) {
  :root {
    --inline-padding-base: 24px;
    --block-padding-base: 32px;
    --title-size: 32px;
  }
}

@media screen and (min-width: 851px) {
  :root {
    --header-height: 72px;
  }
}

@media screen and (min-width: 960px) {
  :root {
    --inline-padding-base: 32px;
    --block-padding-base: 48px;
    --header-height: 72px;
  }
}

#body {
  color: #222;
  background-color: #fff;
}

.main {
  width: 100%;
}

.footer {
  background: var(--bg-color);
}

.sp {
  display: block;
}

.pc {
  display: none;
}

@media screen and (min-width: 768px) {
  .sp {
    display: none;
  }

  .pc {
    display: block;
  }
}

/**
 * カスタマイズ用のスタイルは以下に追加
 */
.header-logo {
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  width: 180px;
  height: 40px;
  padding-left: 8px;
  line-height: 1;
  z-index: 2;
}
.logo {
  white-space: nowrap;
}
.powered-by {
  font-size: 12px;
  line-height: 1;
}


@media (min-width: 851px) {
  .header-logo {
    height: 68px;
	width: 240px;
  }
}

.category-navigation-content {
  padding-block: var(--block-padding-base) 0;
}
.category-navigation-title {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #004e78;
  padding-bottom: 16px;
  text-align: center;
  border-bottom: 1px dashed #b3b3b3;
}
.category-navigation-list {
  display: flex;
  justify-content: center;
  align-items: center;
	flex-wrap: wrap;
  gap: 8px;
  padding-top: 24px;
}
.category-navigation-list li {
  width: calc((100% - 8px) / 2);
}
.category-navigation-list a {
  display: block;
  text-align: center;
  font-size: 12px;
  line-height: 1;
  color: #004e78;
  white-space: nowrap;
  padding: 8px 0;
  border-radius: 8px;
  background-color: var(--bg-color);
}
@media screen and (min-width: 480px) {
  .category-navigation-list li {
    width: calc((100% - 24px) / 4);
  }
}

@media screen and (min-width: 768px) {
  .category-navigation-list {
    gap: 16px;
  }
  .category-navigation-list li {
    width: calc((100% - 48px) / 4);
		max-width: 224px;
  }
	.category-navigation-list a {
		font-size: 15px;
	}
}

/* カテゴリ名は記事一覧の見出しであってページの主役ではないので、
 * セクション見出し（h2）より一段控えめなラベルとして扱う */
.recommend-posts h3 {
  margin: 0;
  font-size: 1.125rem; /* 18/16 */
  font-weight: 700;
  padding-bottom: 10px;
  color: var(--main-color);
  border-bottom: none;
  position: relative;
}
@media screen and (min-width: 768px) {
  .recommend-posts h3 {
    font-size: 1.25rem; /* 20/16 */
  }
}

.site-footer {
  background-color: #f0f0f0;
}
.site-footer-content {
  padding: var(--block-padding-base) 0;
}
.site-footer ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  line-height: 1;
  padding: 20px 0;
}
.site-footer ul a {
  font-size: 15px;
}
@media (min-width: 769px) {
  .site-footer-content {
    margin-left: 32px;
  }
  .site-footer ul {
    flex-direction: row;
  }
}

:root {
  --font-family: Inter, 'Noto Sans JP', sans-serif;
  --color_bg: #fff;
  --color_text: #222;
  --color_link: #00c;
  --color_link-hover: #33f;
  --font-weight_thin: 100;
  --font-weight_light: 300;
  --font-weight_regular: 400;
  --font-weight_medium: 500;
  --font-weight_semibold: 600;
  --font-weight_bold: 700;
  --font-weight_black: 900;
}
body {
  font-family: Inter, 'Noto Sans JP', sans-serif;
  scroll-padding-top: 8px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

small {
  font-family: Inter, sans-serif;
}
/* ヘッダー */

.l-header {
  position: relative;
  z-index: 100;
  border-top: 4px solid rgba(0, 78, 120, 0.9);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.16);
}

@media (max-width: 850px) {
  .l-header {
    border-top: 0 none;
  }
}

.l-header a {
  color: inherit;
  text-decoration: none;
}

/* __body */
.l-header__body {
  display: grid;
  grid-template-areas: 'logo market nav utility';
  grid-template-columns: auto auto 1fr auto;
  align-items: end;
  justify-content: space-between;
  padding: 0 20px 0 40.45px;
}

@media (max-width: 1280px) {
  .l-header__body {
    padding: 0 1.3889vw 0 2.809vw; /* 20/1440*100, 40.45/1440*100 */
  }
}

@media (max-width: 850px) {
  .l-header__body {
    grid-template-areas:
      'alternate alternate alternate'
      'logo      market    utility'
      'nav       nav       nav';
    grid-template-columns: 120px auto 1fr;
    align-items: center;
    justify-content: start;
    padding: 0;
  }
}

/* __logo */
.l-header__logo {
  grid-area: logo;
  display: flex;
  align-items: center;
  margin: 0 33px 0 0;
  padding: 5.5px 0 6.92px;
  height: 55.57px;
  font-weight: var(--font-weight_regular);
}

@media (max-width: 1280px) {
  .l-header__logo {
    margin-right: 2.2917vw; /* 33/1440*100 */
  }
}

@media (max-width: 850px) {
  .l-header__logo {
    margin-right: 5px;
    padding: 6.95px 8.5px 9.86px;
    height: auto;
  }
}

.l-header__logo__content {
  display: block;
}

.l-header__logo__image {
  display: block;
  width: 183.55px;
  height: 55.57px;
}

@media (max-width: 1280px) {
  .l-header__logo__image {
    width: 12.7465vw; /* 183.55/1440*100 */
    height: 3.859vw; /* 55.57/1440*100 */
  }
}

@media (max-width: 850px) {
  .l-header__logo__image {
    width: 103.01px;
    height: 31.19px;
  }
}

/* __utility と __nav の共通スタイル */
.l-header__utility,
.l-header__nav {
  display: flex;
  justify-content: end;
  font-weight: var(--font-weight_medium);
  font-size: 0.9375rem; /* 15/16 */
  line-height: 1.3125rem; /* 21/16 */
}

@media (max-width: 1280px) {
  .l-header__utility,
  .l-header__nav {
    font-size: 1.0417vw; /* 15/1440*100 */
    line-height: 1.4583vw; /* 21/1440*100 */
  }
}

@media (max-width: 850px) {
  .l-header__utility,
  .l-header__nav {
    font-size: 0.9375rem;
    line-height: 1.3125rem;
  }
}

.l-header__utility__link,
.l-header__nav__link {
  position: relative;
  display: block;
  padding: 0 0 11px;
}

.l-header__utility__link::after,
.l-header__nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  border-left: 2px solid #1c72ad;
  width: 0;
  height: 8px;
  opacity: 0;
}

@media (hover) {
  .l-header__utility__link:hover::after,
  .l-header__nav__link:hover::after {
    opacity: 1;
  }
}

.l-header__utility__link.--current::after,
.l-header__nav__link.--current::after {
  opacity: 1;
}

.l-header__utility__copy,
.l-header__nav__copy {
  position: absolute;
  left: -20px;
  right: -20px;
  top: -1.125rem; /* -18/16 */
  margin: auto;
  padding: 0 9px;
  border-radius: 3px;
  width: fit-content;
  background: linear-gradient(96deg, #004e78 0%, #00273c 100%) 0% 0% no-repeat;
  color: #fff;
  font-size: 0.75rem; /* 12/16 */
  line-height: 1.0625rem; /* 17/16 */
  opacity: 0.9;
  white-space: nowrap;
}

@media (max-width: 1280px) {
  .l-header__utility__copy,
  .l-header__nav__copy {
    top: -1.25vw; /* -18/1440*100 */
    padding: 0 0.625vw; /* 9/1440*100 */
    border-radius: 0.2083vw; /* 3/1440*100 */
    font-size: 0.8333vw; /* 12/1440*100 */
    line-height: 1.1806vw; /* 17/1440*100 */
  }
}

@media (max-width: 850px) {
  .l-header__utility__copy,
  .l-header__nav__copy {
    position: static;
    box-sizing: border-box;
    display: block;
    margin: auto;
    padding: 0 4px;
    max-width: 100%;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.9);
    color: #004e78;
    opacity: 1;
    font-weight: var(--font-weight_medium);
    font-size: 0.75rem;
    line-height: 1.0625rem;
  }
}

.l-header__utility__copy__paren,
.l-header__nav__copy__paren {
  display: none;
}

.l-header__utility > ul,
.l-header__nav > ul {
  display: flex;
  gap: 0 26px;
  align-items: end;
  margin: 0;
  padding: 0;
  list-style-type: none;
}

@media (max-width: 1280px) {
  .l-header__utility > ul,
  .l-header__nav > ul {
    gap: 0 1.8056vw; /* 26/1440*100 */
  }
}

/* __nav 固有スタイル */
.l-header__nav {
  grid-area: nav;
}

@media (max-width: 850px) {
  .l-header__nav {
    justify-content: stretch;
    align-items: stretch;
    background: #004e78;
    color: #fff;
  }
}

@media (max-width: 850px) {
  .l-header__nav > ul {
    display: table;
    width: 100%;
  }
}

@media (max-width: 850px) {
  .l-header__nav > ul > li {
    display: table-cell;
    text-align: center;
    vertical-align: middle;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
  }
}

@media (max-width: 850px) {
  .l-header__nav > ul > li:first-of-type {
    border-left: 0 none;
  }
}

/* nav親リンク共通（%プレースホルダー展開） */
@media (max-width: 850px) {
  .l-header__nav > ul > li > .l-header__nav__link,
  .l-header__nav__category__toggle {
    position: relative;
    display: block;
    padding: 5px 4px 15px;
    font-weight: var(--font-weight_bold);
    font-size: 1rem; /* 16/16 */
    line-height: 1.5rem; /* 24/16 */
  }
}

@media (max-width: 850px) {
  .l-header__nav > ul > li > .l-header__nav__link::after,
  .l-header__nav__category__toggle::after {
    content: none;
  }
}

/* __nav__category */
.l-header__nav__category {
  margin: 0;
  padding: 0;
}

.l-header__nav__category__toggle::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5px;
  margin: auto;
  width: 10.339px;
  height: 6.169px;
  background: url(https://lomgrp.co.jp/wp-content/themes/lomgrp/assets/images/arrow_sp-menu.svg) 0 0 no-repeat;
  background-size: contain;
}
.l-header__nav__category__toggle {
  cursor: pointer;
}
@media (min-width: 851px) {
  .l-header__nav__category__toggle {
    display: none;
  }
}

.l-header__nav__category__label {
  display: block;
}

.l-header__nav__category__sub {
  display: block;
  font-weight: var(--font-weight_regular);
  font-size: 0.75rem; /* 12/16 */
  line-height: 1.0625rem; /* 17/16 */
}

.l-header__nav__category.--selected .l-header__nav__category__toggle {
  background-color: #337193;
}

.l-header__nav__category__body {
  margin: 0;
  padding: 0;
}

@media (max-width: 850px) {
  .l-header__nav__category__body {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    background: #337193;
  }
}

.l-header__nav__category__body > ul {
  display: flex;
  align-items: end;
  gap: 0 26px;
  margin: 0;
  padding: 0;
  list-style-type: none;
}

@media (max-width: 1280px) {
  .l-header__nav__category__body > ul {
    gap: 0 1.8056vw; /* 26/1440*100 */
  }
}

@media (max-width: 850px) {
  .l-header__nav__category__body > ul {
    display: table;
    width: 100%;
  }
}

@media (max-width: 850px) {
  .l-header__nav__category__body > ul > li {
    display: table-cell;
    text-align: center;
    vertical-align: middle;
  }
}

@media (max-width: 850px) {
  .l-header__nav__category__body > ul > li:first-of-type {
    border-left: 0 none;
  }
}

@media (max-width: 850px) {
  .l-header__nav__category__body > ul > li:first-of-type .l-header__nav__link::before {
    content: none;
  }
}

@media (max-width: 850px) {
  .l-header__nav__category__body > ul > li .l-header__nav__link {
    padding: 12px 0 17px;
    font-weight: var(--font-weight_regular);
    font-size: 0.9375rem; /* 15/16 */
    line-height: 1.3125rem; /* 21/16 */
  }
}

@media (max-width: 850px) {
  .l-header__nav__category__body > ul > li .l-header__nav__link::before {
    content: '';
    position: absolute;
    top: 11px;
    bottom: 11px;
    left: 0;
    width: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
  }
}

@media (max-width: 850px) {
  .l-header__nav__category__body > ul > li .l-header__nav__link::after {
    content: none;
  }
}

.l-header__nav__category.--selected .l-header__nav__category__body {
  display: block;
}

/* __utility 固有スタイル */
.l-header__utility {
  grid-area: utility;
  margin-left: 26px;
}

@media (max-width: 1280px) {
  .l-header__utility {
    margin-left: 1.8056vw; /* 26/1440*100 */
  }
}

@media (max-width: 850px) {
  .l-header__utility {
    margin-left: 7px;
    padding: 0 0 4.67px;
    font-weight: var(--font-weight_bold);
    font-size: 0.8125rem; /* 13/16 */
    line-height: 1.1875rem; /* 19/16 */
  }
}

@media (max-width: 850px) {
  .l-header__utility__link {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 4px;
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 850px) {
  .l-header__utility__link::after {
    content: none;
  }
}

@media (max-width: 850px) {
  .l-header__utility > ul {
    margin: 0 0 0 auto;
    gap: 0;
    align-items: stretch;
  }
}

@media (max-width: 850px) {
  .l-header__utility > ul > li {
    flex: 1;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    border-left: 1px solid rgba(28, 78, 117, 0.3);
  }
}

/* __alternate */
.l-header__alternate {
  grid-area: alternate;
  position: absolute;
  top: 4px;
  right: 22.6px;
}

@media (max-width: 1280px) {
  .l-header__alternate {
    right: calc(20px + 0.1806vw); /* 2.6/1440*100 */
  }
}

@media (max-width: 850px) {
  .l-header__alternate {
    position: static;
    padding: 3px 4px 2px;
    border-bottom: 4px solid rgba(0, 78, 120, 0.9);
    background: #f6f6f7;
  }
}

/* __sns */
.l-header__sns {
  display: flex;
  justify-content: end;
  gap: 0 32px;
  margin: 0;
  padding: 0;
  list-style-type: none;
  font-size: 0.75rem; /* 12/16 */
  line-height: 1.5rem; /* 24/16 */
}

@media (max-width: 1280px) {
  .l-header__sns {
    gap: 0 2.2222vw; /* 32/1440*100 */
    font-size: 0.8333vw; /* 12/1440*100 */
    line-height: 1.6667vw; /* 24/1440*100 */
  }
}

@media (max-width: 850px) {
  .l-header__sns {
    flex-direction: column;
    justify-content: start;
    gap: 4px 0;
    font-size: 0.75rem;
    line-height: 1.875rem; /* 30/16 */
  }
}

.l-header__sns .--twitter a {
  color: #1d9bf0;
}

.l-header__sns .--twitter a::before {
  content: '';
  display: inline-block;
  margin: 0 6px 0 0;
  border-radius: 4px;
  width: 25px;
  height: 24px;
  vertical-align: middle;
  background: url(https://lomgrp.co.jp/wp-content/themes/lomgrp/assets/images/iconsX150.png) 50% 50% no-repeat;
  background-size: 100% auto;
}

@media (max-width: 1280px) {
  .l-header__sns .--twitter a::before {
    margin: 0 0.4167vw 0 0; /* 6/1440*100 */
    border-radius: 0.2778vw; /* 4/1440*100 */
    width: 1.7361vw; /* 25/1440*100 */
    height: 1.6667vw; /* 24/1440*100 */
  }
}

@media (max-width: 850px) {
  .l-header__sns .--twitter a::before {
    margin: 0 6px 0 0;
    border-radius: 4px;
    width: 31px;
    height: 30px;
  }
}

/* ==================================================================
 * メディアカテゴリ導線（全ページ共通）
 * ------------------------------------------------------------------
 * ヘッダーは追従させない方針（通常フロー）なので、この帯もそのまま下に置く。
 * ================================================================== */
.l-header__categories {
  border-bottom: 1px solid #e3e6e8;
  background: #fff;
}

.l-header__categories__list {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  margin: 0 auto;
  padding: 0 8px;
  max-width: 1080px;
  height: 44px;
  list-style-type: none;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.l-header__categories__list::-webkit-scrollbar {
  display: none;
}

.l-header__categories__item {
  flex: 0 0 auto;
}

.l-header__categories__link {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 12px;
  border-bottom: 2px solid transparent;
  color: var(--main-color);
  font-weight: var(--font-weight_medium);
  font-size: 0.8125rem; /* 13/16 */
  line-height: 1;
  white-space: nowrap;
}

.l-header__categories__link.--current {
  border-bottom-color: var(--main-color);
}

@media (hover) {
  .l-header__categories__link:hover {
    background: var(--bg-color);
  }
}

@media screen and (min-width: 851px) {
  .l-header__categories__list {
    justify-content: center;
    height: 48px;
  }

  .l-header__categories__link {
    padding: 0 20px;
    font-size: 0.875rem; /* 14/16 */
  }
}

/* フッターのカテゴリ導線 */
.l-footer__categories {
  padding: 24px var(--inline-padding-base);
  border-top: 1px solid #e3e6e8;
  background: #fff;
}

.l-footer__categories__heading {
  margin: 0 0 12px;
  color: var(--main-color);
  text-align: center;
  font-weight: var(--font-weight_bold);
  font-size: 0.875rem; /* 14/16 */
  line-height: 1;
}

.l-footer__categories__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 auto;
  padding: 0;
  max-width: 1080px;
  list-style-type: none;
}

.l-footer__categories__link {
  display: block;
  padding: 8px 16px;
  border-radius: 8px;
  background-color: var(--bg-color);
  color: var(--main-color);
  font-size: 0.8125rem; /* 13/16 */
  line-height: 1;
}

@media (hover) {
  .l-footer__categories__link:hover {
    background-color: var(--bg-color-hover);
  }
}

/* ==================================================================
 * 記事ヘッダーのメタ情報（PR表記・更新日・執筆者を1行に）
 * ------------------------------------------------------------------
 * 項目が入りきらない幅では自動で折り返す。
 * ================================================================== */
.article-header .article-meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  padding-top: 12px;
  color: #888;
  font-size: 0.75rem; /* 12/16 */
  line-height: 1.8;
}

/* 単独表示を前提にした余白を打ち消し、1行に収める */
.article-header .article-meta-line .promotion-note {
  padding: 0;
  font-size: inherit;
  line-height: inherit;
}

.article-header .article-meta-line .updatedate {
  font-size: 0.8125rem; /* 13/16 */
}

.article-byline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8125rem; /* 13/16 */
}

.article-byline-name {
  color: var(--main-color);
  font-weight: var(--font-weight_medium);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ==================================================================
 * コメント欄
 * ------------------------------------------------------------------
 * リセットCSSで appearance:none を当てているため、
 * 入力欄とボタンは既定の見た目を持たない。ここで明示的に組む。
 * ================================================================== */
.article-comments {
  margin-top: var(--block-padding-base);
  padding-block: var(--block-padding-base);
  border-top: 1px solid #e3e6e8;
}

.article-comments-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--main-color);
  font-size: 1.25rem; /* 20/16 */
  line-height: 1.4;
}

.article-comments-count {
  color: #666;
  font-weight: var(--font-weight_regular);
  font-size: 0.8125rem; /* 13/16 */
}

/* 投稿済みコメント */
.article-comments-list,
.article-comments-list .children {
  list-style: none;
}

.article-comments-list > li {
  margin-bottom: 16px;
  padding: 16px;
  border-radius: 8px;
  background: var(--bg-color);
}

.article-comments-list .children {
  margin-top: 16px;
  padding-left: 16px;
  border-left: 2px solid #d5dde0;
}

.article-comments-list .comment-author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem; /* 14/16 */
}

.article-comments-list .comment-author img {
  border-radius: 50%;
  width: 32px;
  height: 32px;
}

.article-comments-list .comment-author .says {
  display: none;
}

.article-comments-list .comment-metadata {
  margin-top: 4px;
  color: #777;
  font-size: 0.75rem; /* 12/16 */
}

.article-comments-list .comment-content {
  margin-top: 12px;
  font-size: 0.9375rem; /* 15/16 */
  line-height: 1.8;
}

.article-comments-list .comment-content p + p {
  margin-top: 1em;
}

.article-comments-list .reply {
  margin-top: 12px;
  font-size: 0.8125rem; /* 13/16 */
}

.article-comments-list .comment-reply-link,
.article-comments-pagination a {
  color: var(--main-color);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-comments-list .comment-awaiting-moderation {
  display: block;
  margin-top: 8px;
  color: #a05000;
  font-size: 0.8125rem;
}

.article-comments-pagination {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  font-size: 0.8125rem;
}

/* 投稿フォーム */
.article-comments .comment-reply-title {
  margin-bottom: 8px;
  color: var(--main-color);
  font-size: 1.0625rem; /* 17/16 */
  line-height: 1.4;
}

.article-comments .comment-reply-title small {
  margin-left: 8px;
  font-size: 0.8125rem;
  font-weight: var(--font-weight_regular);
}

.article-comments-notes,
.article-comments .comment-form-cookies-consent label {
  color: #666;
  font-size: 0.8125rem; /* 13/16 */
  line-height: 1.7;
}

.article-comments-notes {
  margin-bottom: 16px;
}

.article-comments .comment-form p {
  margin-bottom: 16px;
}

.article-comments .comment-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.8125rem; /* 13/16 */
  font-weight: var(--font-weight_medium);
}

.article-comments .comment-form .required {
  margin-left: 4px;
  color: #c0392b;
}

.article-comments .comment-form input[type="text"],
.article-comments .comment-form input[type="email"],
.article-comments .comment-form textarea {
  display: block;
  padding: 10px 12px;
  width: 100%;
  border: 1px solid #c9d2d6;
  border-radius: 6px;
  background: #fff;
  color: var(--text-color);
  font-size: 1rem; /* 16px未満にするとiOSで拡大されるため下げない */
  line-height: 1.6;
}

.article-comments .comment-form textarea {
  resize: vertical;
}

.article-comments .comment-form input[type="text"]:focus,
.article-comments .comment-form input[type="email"]:focus,
.article-comments .comment-form textarea:focus {
  outline: 2px solid var(--sub-color);
  outline-offset: 1px;
  border-color: var(--main-color);
}

.article-comments .comment-form-cookies-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.article-comments .comment-form-cookies-consent input[type="checkbox"] {
  flex: 0 0 auto;
  margin-top: 3px;
  width: 16px;
  height: 16px;
  border: 1px solid #c9d2d6;
  border-radius: 3px;
  background: #fff;
}

.article-comments .comment-form-cookies-consent input[type="checkbox"]:checked {
  border-color: var(--main-color);
  background: var(--main-color);
}

.article-comments .comment-form-cookies-consent label {
  margin-bottom: 0;
  font-weight: var(--font-weight_regular);
}

.article-comments-submit {
  display: inline-block;
  padding: 12px 32px;
  border: 0;
  border-radius: 8px;
  background: var(--main-color);
  color: #fff;
  font-weight: var(--font-weight_bold);
  font-size: 0.9375rem; /* 15/16 */
  line-height: 1;
  cursor: pointer;
}

@media (hover) {
  .article-comments-submit:hover {
    background: var(--sub-color);
  }
}

.article-comments-closed {
  color: #666;
  font-size: 0.875rem;
}

@media screen and (min-width: 768px) {
  .article-comments .comment-form-author,
  .article-comments .comment-form-email {
    display: inline-block;
    width: calc(50% - 8px);
    vertical-align: top;
  }

  .article-comments .comment-form-author {
    margin-right: 12px;
  }
}

/* ==================================================================
 * 記事一覧（カテゴリ・記事一覧・TOPの新着・TOPのおすすめ）
 * ------------------------------------------------------------------
 * 読者はタイトルの条件（「2回線目」「再契約」など）で記事を選ぶため、
 * 画像ではなく見出しを主役にした横並びの行に統一する。
 * トップページ内で一覧の形が二種類あると散漫に見えるため、
 * 「新着記事」と「おすすめ記事」は同じ行の形で揃える。
 * サイドバー・記事末尾の関連記事には影響しない。
 * ================================================================== */

/* 「おすすめ記事」はカテゴリ見出しが上にあるので、カテゴリラベルは重複情報
 * （非表示の指定は common.css 側にある） */
.archive-content .post-list,
.recent-posts .post-list,
.recommend-posts .post-list {
  gap: 0;
  border-top: 1px solid #e8ebed;
}

.archive-content .post-list-item,
.recent-posts .post-list-item,
.recommend-posts .post-list-item {
  width: 100%;
  border-bottom: 1px solid #e8ebed;
}

.archive-content .post-list-item > a,
.recent-posts .post-list-item > a,
.recommend-posts .post-list-item > a {
  padding: 14px 0;
}

/* 画像の拡大とカード全体の半透明化は行の形に合わないので止める */
@media (hover) {
  .archive-content .post-list-item > a:hover,
  .recent-posts .post-list-item > a:hover,
  .recommend-posts .post-list-item > a:hover {
    opacity: 1;
    background: var(--bg-color);
  }

  .archive-content .post-list-item > a:hover img,
  .recent-posts .post-list-item > a:hover img,
  .recommend-posts .post-list-item > a:hover img {
    transform: none;
  }
}

.archive-content .post-list-item > a article,
.recent-posts .post-list-item > a article,
.recommend-posts .post-list-item > a article {
  flex-direction: row;
  align-items: flex-start;
  gap: 14px;
}

.archive-content .post-list-item-thumbnail,
.recent-posts .post-list-item-thumbnail,
.recommend-posts .post-list-item-thumbnail {
  flex: 0 0 auto;
  width: 112px;
  border-radius: 4px;
}

.archive-content .post-list-item-meta,
.recent-posts .post-list-item-meta,
.recommend-posts .post-list-item-meta {
  gap: 6px;
  min-width: 0;
}

.archive-content .post-list-item-title,
.recent-posts .post-list-item-title,
.recommend-posts .post-list-item-title {
  height: auto;
  font-size: 0.9375rem; /* 15/16 */
  line-height: 1.55;
}

.archive-content .post-list-item-time,
.recent-posts .post-list-item-time,
.recommend-posts .post-list-item-time {
  color: #8a8a85;
  font-size: 0.75rem; /* 12/16 */
}

.archive-content .post-list-item-category a,
.recent-posts .post-list-item-category a {
  padding: 1px 6px;
  font-size: 0.625rem; /* 10/16 */
}

/* サムネイル上のカテゴリラベルは出さない。
 * アイキャッチ画像の中にカテゴリ名が入っており、タイトルにも同じ語が出るため、
 * 同じ情報が三重になるうえ、小さいサムネイルでは画像の1/4を覆ってしまう。
 * カテゴリへの導線はヘッダーの帯・「カテゴリーから探す」・フッターにある。 */
.archive-content .post-list-item-category,
.recent-posts .post-list-item-category {
  display: none;
}

@media screen and (min-width: 768px) {
  .archive-content .post-list-item,
  .recent-posts .post-list-item,
  .recommend-posts .post-list-item {
    width: calc((100% - var(--inline-padding-base) * 2) / 2);
  }

  .archive-content .post-list,
  .recent-posts .post-list,
  .recommend-posts .post-list {
    column-gap: calc(var(--inline-padding-base) * 2);
  }

  .archive-content .post-list-item-thumbnail,
  .recent-posts .post-list-item-thumbnail,
  .recommend-posts .post-list-item-thumbnail {
    width: 140px;
  }

  .archive-content .post-list-item-title,
  .recent-posts .post-list-item-title,
  .recommend-posts .post-list-item-title {
    font-size: 1rem; /* 16/16 */
  }
}

/* 横スクロールできることが分かるよう、右端をぼかす */
.l-header__categories {
  position: relative;
}

.l-header__categories::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 1px;
  width: 32px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0), #fff);
  pointer-events: none;
}

@media screen and (min-width: 851px) {
  .l-header__categories::after {
    content: none;
  }
}

/* 「もっと見る」の下に空きすぎた余白ができるので、次のセクションへ寄せる */
.recent-posts .section-footer {
  padding-bottom: var(--block-padding-base);
}

/* ==================================================================
 * 見出しのルールと色の役割
 * ------------------------------------------------------------------
 * 色には役割をひとつだけ持たせる。
 *   カテゴリ色 … どの分野の記事か（道しるべ）
 *   紺 #004e78 … 押せるもの（リンク・ボタン・現在地）
 *   墨 #1b2a33 … 読むもの（見出し・記事タイトル）
 *   グレー      … 補助情報（日付・英語の小見出し）
 * 変更前は見出しもリンクも同じ紺で、色を見ても押せるかどうか分からなかった。
 * ================================================================== */
:root {
  --ink-color: #1b2a33;
  --muted-color: #8a8a85;
}

/* 見出しの色・寄せ方は common.css 側で直接指定している。
 * common.css は header.php で style.css より後に読み込まれるため、
 * ここに書いても上書きされてしまう。 */
.category-navigation-title,
.recommend-posts h3 {
  color: var(--ink-color);
}

.category-navigation-title {
  text-align: left;
  font-size: var(--title-size);
  /* 破線の下線は装飾でしかないので外す */
  border-bottom: none;
  padding-bottom: 0;
}

.category-navigation-content .section-subtitle {
  display: block;
}

.category-navigation-list {
  justify-content: flex-start;
  padding-top: 16px;
}


/* ==================================================================
 * パンくず・本文幅の統一
 * ------------------------------------------------------------------
 * 1ページの中で、パンくず・見出し・本文の左端を1本にそろえる。
 *   一覧系（トップ・カテゴリ・記事一覧・検索）… .container と同じ 1200px
 *   記事・固定ページ                        … .article-container と同じ 800px
 * 変更前はパンくずの文字が画面の左端寄り、本文は中央寄せで、
 * 広い画面ほど左端がずれていた。
 * ================================================================== */
.breadcrumbs ol {
  max-width: calc(1200px - var(--inline-padding-base) * 2);
  margin: 0 auto;
}

.breadcrumbs--article ol {
  max-width: calc(800px - var(--inline-padding-base) * 2);
}

/* パンくず直下の見出しまでの間隔を、記事・一覧でそろえる（一覧側は common.css） */
.entry.single .article-header {
  padding-top: 20px;
}

/* タイトルとアイキャッチがくっつかないよう間をあける */
.entry.single .article-header .featured-image {
  margin-top: 16px;
}

/* アイキャッチ：PCでは本文と同じ幅に収める（スマホは画面幅いっぱいのまま） */
@media screen and (min-width: 768px) {
  .entry.single .article-header .featured-image {
    max-width: calc(800px - var(--inline-padding-base) * 2);
    margin-inline: auto;
    border-radius: 6px;
    overflow: hidden;
  }
}

/* コメント欄の区切り線を、画面幅ではなく本文幅に収める */
.article-comments {
  padding-top: 0;
  border-top: 0;
}

.article-comments > .article-container::before {
  content: "";
  display: block;
  margin-bottom: var(--block-padding-base);
  border-top: 1px solid #e3e6e8;
}

/* ==================================================================
 * カテゴリ説明文
 * ------------------------------------------------------------------
 * 見出しの下に1〜2文の案内文を出す。件数の横に並ぶと読みにくいので、
 * 説明文は1行目に、件数はその下に置く。読みやすい行の長さに抑える。
 * ================================================================== */
.archive-meta {
  flex-wrap: wrap;
}

.archive-description {
  flex-basis: 100%;
  color: #444;
  font-size: 0.875rem; /* 14/16 */
  line-height: 1.8;
}

.archive-description p {
  max-width: 44em;
}

.archive-description p + p {
  margin-top: 4px;
}

.archive-description a {
  color: var(--main-color);
  text-decoration: underline;
  text-underline-offset: 2px;
}
