/* The SEO Tools 共通スタイル（白 + 濃紺 / 影なし / 角丸4-6px） */
:root {
  --navy: #0b1f3a;
  --blue: #1f78c8;
  --blue-dark: #155a94;
  --blue-light: #8cc4f2;
  --alt: #f3f6fa;
  --line: #d9e0e8;
  --text: #1c2b3f;
  --muted: #5b6b80;
  --danger: #c0392b;
  --ok: #1e8449;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--alt);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  word-break: auto-phrase;
}
img, svg, canvas { max-width: 100%; }
a { color: var(--blue-dark); }
a:hover { color: var(--navy); }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; background: #e8eef5; padding: 1px 6px; border-radius: 3px; }

.t-wrap { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.t-skip { position: absolute; left: -9999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.t-skip:focus { left: 8px; top: 8px; }

/* ----- header ----- */
.t-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.t-header__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.t-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 700; text-decoration: none; letter-spacing: .02em; white-space: nowrap; }
.t-brand__mark { display: inline-grid; place-items: center; width: 30px; height: 30px; background: var(--navy); color: #fff; border-radius: 4px; font-size: 15px; font-weight: 800; }
.t-nav { display: flex; align-items: center; gap: 4px; }
.t-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--navy); font-size: 14px; font-weight: 600; text-decoration: none; }
.t-nav a:hover { color: var(--blue); }
.t-nav .t-nav__cta { background: var(--navy); color: #fff; border-radius: var(--radius); margin-left: 6px; }
.t-nav .t-nav__cta:hover { background: var(--blue-dark); color: #fff; }

/* ----- hero ----- */
.t-hero { background: linear-gradient(135deg, #0b1f3a 0%, #12335c 100%); color: #fff; padding: 36px 0 40px; }
.t-crumb { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 13px; color: #aebbd0; margin-bottom: 14px; }
.t-crumb a { color: #cfe3f7; text-decoration: none; }
.t-crumb a:hover { text-decoration: underline; color: #fff; }
.t-crumb li + li::before { content: "/"; margin-right: 8px; color: #6e87a8; }
.t-crumb { padding: 0; }
.t-crumb li { display: inline; }
.t-h1 { font-size: clamp(24px, 4.4vw, 36px); line-height: 1.4; font-weight: 800; letter-spacing: .01em; text-wrap: balance; }
.t-lead { margin-top: 12px; max-width: 760px; color: #d5e0ee; font-size: 15px; }
.t-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.t-badge { border: 1px solid rgba(255, 255, 255, .28); border-radius: 3px; padding: 2px 10px; font-size: 12px; color: #dbe8f6; line-height: 1.9; }

/* ----- tool panels ----- */
.t-main { padding: 28px 0 8px; }
.t-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.t-panel + .t-panel { margin-top: 16px; }
.t-panel__title { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.t-panel__title small { font-weight: 500; color: var(--muted); font-size: 12px; }
.t-grid { display: grid; gap: 16px; }
.t-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.t-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.t-grid > .t-panel + .t-panel { margin-top: 0; }
.t-stack { display: grid; gap: 14px; }
.t-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.t-row--between { justify-content: space-between; }

.t-label { display: block; font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.t-hint { font-size: 12px; color: var(--muted); line-height: 1.7; }
.t-input, .t-select, .t-textarea {
  width: 100%; border: 1px solid #b9c5d3; background: #fff; border-radius: var(--radius);
  padding: 10px 12px; min-height: 44px; font-size: 16px; line-height: 1.5;
}
.t-textarea { min-height: 240px; resize: vertical; line-height: 1.7; }
.t-textarea--mono, .t-input--mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; }
.t-textarea[readonly] { background: #f7f9fc; }
.t-input:focus, .t-select:focus, .t-textarea:focus, .t-btn:focus-visible, .t-chk input:focus-visible { outline: 3px solid rgba(31, 120, 200, .35); outline-offset: 1px; border-color: var(--blue); }
.t-input.is-error { border-color: var(--danger); background: #fff6f5; }
input[type="range"] { width: 100%; accent-color: var(--blue); min-height: 32px; }
input[type="color"] { width: 48px; height: 44px; padding: 2px; border: 1px solid #b9c5d3; border-radius: var(--radius); background: #fff; }

.t-chk { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; font-size: 14px; cursor: pointer; }
.t-chk input { width: 18px; height: 18px; accent-color: var(--blue); flex: none; }
.t-opts { display: grid; gap: 4px 20px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

.t-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 18px; border-radius: var(--radius); border: 1px solid var(--navy);
  background: #fff; color: var(--navy); font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none; line-height: 1.2;
}
.t-btn:hover { background: var(--alt); color: var(--navy); }
.t-btn--primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.t-btn--primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.t-btn--sm { min-height: 36px; padding: 0 12px; font-size: 13px; }
.t-btn--danger { color: var(--danger); border-color: #d9b3ae; }
.t-btn[disabled] { opacity: .45; cursor: not-allowed; }

.t-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.t-stat { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; background: #fff; }
.t-stat dt { font-size: 12px; color: var(--muted); line-height: 1.5; }
.t-stat dd { font-size: 24px; font-weight: 800; color: var(--navy); line-height: 1.4; font-variant-numeric: tabular-nums; }
.t-stat dd small { font-size: 12px; font-weight: 600; color: var(--muted); margin-left: 2px; }
.t-stat--main { background: var(--navy); border-color: var(--navy); }
.t-stat--main dt { color: #aebbd0; }
.t-stat--main dd { color: #fff; }
.t-stat--main dd small { color: #cfe3f7; }

.t-msg { min-height: 1.6em; font-size: 13px; color: var(--ok); }
.t-msg.is-error { color: var(--danger); }
.t-count { font-size: 12px; color: var(--muted); margin-top: 6px; font-variant-numeric: tabular-nums; }

.t-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.t-table th, .t-table td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; line-height: 1.7; }
.t-table th { background: var(--alt); color: var(--navy); white-space: nowrap; font-weight: 700; }
.t-scroll { overflow-x: auto; }

.t-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  background: var(--navy); color: #fff; padding: 10px 18px; border-radius: var(--radius); font-size: 14px; z-index: 90;
  transition: opacity .2s, transform .2s;
}
.t-toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ----- sections below tool ----- */
.t-section { margin-top: 40px; }
.t-section__head { margin-bottom: 14px; }
.t-section__en { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .2em; color: var(--blue-dark); text-transform: uppercase; }
.t-section__en::before { content: ""; width: 28px; height: 2px; background: var(--blue); }
.t-section h2 { font-size: clamp(20px, 3vw, 24px); line-height: 1.5; color: var(--navy); margin-top: 4px; }
.t-steps { counter-reset: s; display: grid; gap: 10px; }
.t-steps li { counter-increment: s; position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 14px 56px; }
.t-steps li::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 28px; height: 28px; display: grid; place-items: center; background: var(--navy); color: #fff; border-radius: 50%; font-size: 14px; font-weight: 800; }
.t-steps strong { color: var(--navy); }
.t-uses { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.t-uses li { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--navy); border-radius: var(--radius); padding: 14px 16px; font-size: 15px; }
.t-prose { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.t-prose p + p { margin-top: .8em; }
.t-faq { display: grid; gap: 8px; }
.t-faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.t-faq summary { cursor: pointer; list-style: none; padding: 14px 44px 14px 16px; font-weight: 700; color: var(--navy); position: relative; min-height: 48px; }
.t-faq summary::-webkit-details-marker { display: none; }
.t-faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--blue); }
.t-faq details[open] summary::after { content: "−"; }
.t-faq details p { padding: 0 16px 16px; color: var(--text); }

.t-related { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.t-related a { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; color: var(--navy); }
.t-related a:hover { border-color: var(--blue); }
.t-related b { display: block; font-size: 15px; }
.t-related span { display: block; font-size: 13px; color: var(--muted); line-height: 1.6; margin-top: 2px; }

.t-cta { margin-top: 48px; background: var(--navy); color: #fff; }
.t-cta__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 32px 0; }
.t-cta h2 { font-size: clamp(18px, 3vw, 22px); line-height: 1.5; }
.t-cta p { color: #cbd7e6; font-size: 14px; margin-top: 4px; }
.t-cta .t-btn { background: var(--blue); border-color: var(--blue); color: #fff; min-height: 48px; padding: 0 26px; }
.t-cta .t-btn:hover { background: var(--blue-dark); }

/* ----- footer ----- */
.t-footer { background: #081729; color: #aebbd0; font-size: 14px; }
.t-footer__in { padding: 36px 0 24px; display: grid; gap: 24px; grid-template-columns: 1.1fr 2fr; }
.t-footer h3 { color: #fff; font-size: 14px; margin-bottom: 8px; }
.t-footer a { color: #cfe3f7; text-decoration: none; }
.t-footer a:hover { color: #fff; text-decoration: underline; }
.t-footer__links { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 2px 20px; }
.t-footer__links a { display: block; padding: 5px 0; }
.t-footer__copy { border-top: 1px solid rgba(255, 255, 255, .12); padding: 14px 0 22px; font-size: 12px; color: #8fa0b8; }

/* ----- hub ----- */
.t-search { position: relative; max-width: 560px; margin-top: 22px; }
.t-search input { padding-left: 16px; }
.t-cat { margin-top: 36px; }
.t-cat h2 { font-size: 18px; color: var(--navy); display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding-bottom: 8px; border-bottom: 2px solid var(--navy); }
.t-cat h2 small { font-size: 13px; font-weight: 500; color: var(--muted); }
.t-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); margin-top: 14px; }
.t-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; text-decoration: none; color: var(--text); }
.t-card:hover { border-color: var(--blue); }
.t-card b { color: var(--navy); font-size: 17px; line-height: 1.5; }
.t-card span { margin-top: 4px; font-size: 13.5px; color: var(--muted); line-height: 1.7; flex: 1; }
.t-card i { margin-top: 10px; font-style: normal; font-size: 13px; font-weight: 700; color: var(--blue-dark); }
.t-empty { display: none; margin-top: 24px; color: var(--muted); }

/* ----- tool specific ----- */
.t-preview-serp { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; background: #fff; font-family: Arial, "Hiragino Sans", "Noto Sans JP", sans-serif; }
.t-preview-serp__url { font-size: 12px; color: #4d5156; line-height: 1.5; }
.t-preview-serp__title { font-size: 20px; color: #1a0dab; line-height: 1.4; margin-top: 2px; }
.t-preview-serp__desc { font-size: 14px; color: #4d5156; line-height: 1.58; margin-top: 4px; }
.t-drop { border: 2px dashed #9fb0c4; border-radius: var(--radius); background: #fff; padding: 28px 16px; text-align: center; color: var(--muted); cursor: pointer; }
.t-drop.is-over { border-color: var(--blue); background: #eef6fd; }
.t-drop b { color: var(--navy); display: block; font-size: 16px; margin-bottom: 4px; }
.t-files { display: grid; gap: 10px; margin-top: 14px; }
.t-file { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 10px; }
.t-file img { width: 72px; height: 72px; object-fit: cover; background: repeating-conic-gradient(#e9eef4 0 25%, #fff 0 50%) 50% / 14px 14px; border-radius: 3px; }
.t-file__name { font-weight: 700; color: var(--navy); word-break: break-all; line-height: 1.5; font-size: 14px; }
.t-file__meta { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.t-thumbs { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.t-thumb { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.t-thumb img { display: block; width: 100%; height: auto; background: #dfe6ee; aspect-ratio: 16 / 9; object-fit: cover; }
.t-thumb__body { padding: 10px 12px; display: grid; gap: 8px; }
.t-thumb__title { font-weight: 700; color: var(--navy); font-size: 14px; }
.t-thumb__title small { font-weight: 500; color: var(--muted); margin-left: 6px; }
.t-thumb__url { font-size: 12px; color: var(--muted); word-break: break-all; line-height: 1.5; }
.t-video { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; }
.t-video > div, .t-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.t-video.is-mirror { transform: scaleX(-1); }
.t-square { position: relative; width: 100%; max-width: 360px; aspect-ratio: 1 / 1; background: #fff; border: 1px solid var(--line); overflow: hidden; margin-inline: auto; }
.t-square img { width: 100%; height: 100%; display: block; transform-origin: center; }
.t-donut { display: grid; place-items: center; }
.t-donut svg { width: min(100%, 280px); height: auto; }
.t-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; font-size: 13px; margin-top: 8px; }
.t-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.t-result-box { background: var(--alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; font-size: 15px; line-height: 1.9; }
.t-result-box strong { color: var(--navy); font-size: 1.15em; }
.t-rule { display: grid; grid-template-columns: 1fr 24px 1fr 44px; gap: 8px; align-items: start; }
.t-rule__arrow { text-align: center; color: var(--muted); line-height: 44px; }
.t-rule__n { grid-column: 1 / -1; font-size: 12px; color: var(--muted); margin: -4px 0 4px; }
.t-pw { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 6px 6px 6px 12px; }
.t-pw code { background: none; font-size: 16px; word-break: break-all; padding: 0; }

@media (max-width: 900px) {
  .t-grid--2, .t-grid--3 { grid-template-columns: minmax(0, 1fr); }
  .t-footer__in { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .t-wrap { width: calc(100% - 28px); }
  .t-hero { padding: 26px 0 28px; }
  .t-nav a:not(.t-nav__cta) { padding: 0 8px; font-size: 13px; }
  .t-nav .t-nav__cta { margin-left: 2px; padding: 0 10px; }
  .t-nav a.t-nav__site { display: none; }
  .t-panel { padding: 16px 14px; }
  .t-btn { padding: 0 14px; }
  .t-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t-stat dd { font-size: 21px; }
  .t-file { grid-template-columns: 56px 1fr; }
  .t-file img { width: 56px; height: 56px; }
  .t-file .t-row { grid-column: 1 / -1; }
  .t-rule { grid-template-columns: minmax(0, 1fr) 44px; }
  .t-rule__arrow { display: none; }
  .t-rule > .t-input:nth-of-type(2) { grid-column: 1 / 2; }
  .t-cards { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .t-toast { transition: none; }
}

/* 透過・抽選・ゲーム・タイマー用 */
.t-checker { background: repeating-conic-gradient(#e9eef4 0 25%, #fff 0 50%) 0 0 / 16px 16px; }
.t-swatch { display: inline-block; width: 44px; height: 44px; border-radius: 4px; border: 1px solid var(--line); vertical-align: middle; background: #fff; }
.t-big { font-size: clamp(44px, 10vw, 88px); font-weight: 800; color: var(--navy); line-height: 1.1; font-variant-numeric: tabular-nums; word-break: break-all; }
.t-hit { display: block; width: min(100%, 520px); min-height: 200px; margin: 0 auto; border: 0; border-radius: 6px; background: var(--blue); color: #fff; font-size: 20px; font-weight: 700; cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.t-hit:disabled { background: #9fb0c4; cursor: default; }
.t-hit:not(:disabled):active { transform: translateY(1px); }
.t-bar { position: relative; height: 10px; border-radius: 999px; background: #e3e9f1; overflow: hidden; }
.t-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--blue); border-radius: inherit; transition: width .1s linear; }
.t-flash { animation: t-flash .6s ease-out; }
@keyframes t-flash { 0% { transform: scale(.7); opacity: .2; } 60% { transform: scale(1.06); opacity: 1; } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .t-flash { animation: none; } }

[hidden] { display: none !important; }

