/* freetemplate-core: ダウンロード・ツールバー・商品紹介・関連記事・あとで見る・広告枠（テーマに依存しない分） */
:root { --ft-accent: #0091b6; --ft-accent-dark: #00769a; --ft-navy: #123a5e; --ft-line: #e6e6e6; --ft-muted: #777; }

/* ダウンロード */
.ft-dl { margin: 20px 0 10px; }
.ft-dl__btn { display: flex; align-items: center; justify-content: center; gap: 10px; max-width: 480px; padding: 16px 22px; border-radius: 10px; background: var(--ft-accent); color: #fff !important; font-size: 17px; font-weight: bold; text-decoration: none !important; box-shadow: 0 3px 10px rgba(0, 145, 182, .28); transition: .15s; }
.ft-dl__btn:hover { background: var(--ft-accent-dark); transform: translateY(-1px); }
.ft-dl__btn svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.ft-dl__note { display: block; margin-top: 8px; font-size: 12px; color: var(--ft-muted); }

/* 共有・URLコピー・あとで見る */
.ft-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 28px; }
.ft-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; border: 1px solid #ccc; background: #fff; color: #333; font-size: 13px; line-height: 1.2; cursor: pointer; text-decoration: none; transition: .15s; }
.ft-btn:hover { background: #f3f3f3; text-decoration: none; }
.ft-btn--ghost { border-color: #ddd; color: #777; }
.ft-tools__save.is-on { background: #fff4c2; border-color: #e3b800; }
.ft-btn svg { width: 15px; height: 15px; fill: currentColor; flex: none; }
.ft-toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: rgba(0, 0, 0, .82); color: #fff; padding: 10px 18px; border-radius: 20px; font-size: 14px; opacity: 0; transition: .25s; z-index: 99999; pointer-events: none; }
.ft-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* 商品紹介（エイトショップ） */
.ft-products { margin: 36px 0 24px; padding: 22px 22px 18px; border: 1px solid var(--ft-line); border-radius: 12px; background: #fff; }
.ft-products__title { margin: 0 0 6px !important; padding: 0 !important; border: 0 !important; background: none !important; font-size: 18px !important; line-height: 1.5 !important; color: #222; }
.ft-products__lead { margin: 0 0 16px; font-size: 13px; line-height: 1.7; color: #555; }
.ft-products__list { list-style: none; margin: 0 0 14px !important; padding: 0 !important; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ft-products__item { margin: 0 !important; padding: 0 !important; border: 0 !important; }
.ft-products__item a { display: block; color: #222; text-decoration: none; }
.ft-products__img { display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 8px; border: 1px solid #eee; background: #f7f7f7; }
.ft-products__img img { width: 100%; height: 100%; object-fit: cover; display: block; border: 0 !important; padding: 0 !important; transition: .2s; }
.ft-products__item a:hover img { transform: scale(1.04); }
.ft-products__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 8px; font-size: 12.5px; line-height: 1.45; min-height: 2.9em; }
.ft-products__price { display: block; margin-top: 3px; font-size: 13px; font-weight: bold; color: var(--ft-navy); }
.ft-products__more { margin: 0 !important; display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: 14px; }
.ft-products__more a { font-weight: bold; color: var(--ft-accent); }
.ft-products__more a.ft-products__sub { font-weight: normal; font-size: 13px; color: #666; }
@media (max-width: 650px) {
	.ft-products { padding: 16px 14px 12px; }
	.ft-products__list { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* 関連記事 */
.ft-related { margin: 32px 0; }
.ft-related__title { font-size: 17px !important; margin: 0 0 14px !important; }
.ft-related__list { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px 12px; }
.ft-related__list li { margin: 0 !important; padding: 0 !important; border: 0 !important; }
.ft-related__list a { display: block; color: #333; text-decoration: none; }
.ft-related__img { display: block; border: 1px solid var(--ft-line); border-radius: 8px; overflow: hidden; background: #fff; transition: .15s; }
.ft-related__img img { display: block; width: 100%; height: auto; border: 0 !important; padding: 0 !important; }
.ft-related__list a:hover .ft-related__img { box-shadow: 0 4px 14px rgba(0, 0, 0, .12); transform: translateY(-2px); }
.ft-related__name { display: block; margin-top: 6px; font-size: 12px; line-height: 1.45; }

/* 例文まとめ */
.ft-examples__list { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 6px 16px; }
.ft-examples__list li { margin: 0 !important; padding: 0 !important; border: 0 !important; }
.ft-examples__list a { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-bottom: 1px dotted #ccc; color: #333; text-decoration: none; font-size: 14px; }
.ft-examples__list a:hover { color: var(--ft-accent); }
.ft-examples__list img { width: 40px; height: 40px; border: 0 !important; padding: 0 !important; flex: none; }

/* 用紙サイズ */
.ft-paper__table { width: 100%; max-width: 560px; border-collapse: collapse; font-size: 14px; }
.ft-paper__table th { padding: 10px; text-align: center; font-weight: bold; background: #f0f0f0; border: 1px solid #ddd; }
.ft-paper__table td { padding: 6px 14px; border: 1px solid #ddd; }
.ft-paper__table td.size_01 { background: #fafafa; font-weight: bold; }

/* カテゴリー画像一覧 */
ul.cat100 { margin: 0 !important; padding: 0 !important; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 16px 10px; }
li.cat100 { margin: 0 !important; padding: 0 !important; text-align: center; font-size: 12.5px; line-height: 1.4; border: 0 !important; }
li.cat100 a { color: #333; text-decoration: none; display: block; }
li.cat100 img { width: 84px; height: 84px; border-radius: 50%; border: 1px solid var(--ft-line) !important; padding: 0 !important; transition: .15s; }
li.cat100 a:hover img { box-shadow: 0 4px 12px rgba(0, 0, 0, .15); transform: translateY(-2px); }
li.cat100 span { display: block; margin-top: 6px; }

/* あとで見る */
.ft-mylist-link { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.ft-mylist-link .ft-mylist-count { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: #999; color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.ft-mylist-link.has-items .ft-mylist-count { background: #e3b800; color: #222; }
.ft-mylist__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.ft-mylist__list { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.ft-mylist__list li { border: 1px solid #ddd; border-radius: 8px; overflow: hidden; background: #fff; margin: 0 !important; padding: 0 !important; }
.ft-mylist__thumb img { display: block; width: 100%; height: auto; border: 0 !important; padding: 0 !important; }
.ft-mylist__body { display: flex; gap: 6px; align-items: flex-start; padding: 8px; font-size: 13px; line-height: 1.4; }
.ft-mylist__body a { flex: 1; }
.ft-mylist__del { border: 0; background: #eee; border-radius: 50%; width: 24px; height: 24px; line-height: 24px; cursor: pointer; flex: none; padding: 0; }
.ft-mylist__empty { padding: 20px; background: #f7f7f7; border-radius: 8px; }

/* 広告（1ページ1枠） */
.ft-ad { margin: 28px auto; text-align: center; overflow: hidden; max-width: 100%; }
.ft-ad__label { display: block; font-size: 10px; color: #aaa; letter-spacing: .1em; margin-bottom: 4px; }
