/* サクッとツール — shared styles */
:root {
  --bg: #f4f6f9;
  --card: #ffffff;
  --ink: #1c2333;
  --ink-soft: #5a6478;
  --line: #e3e8f0;
  --accent: #3565e0;
  --accent-soft: #eaf0ff;
  --ok: #0e9f6e;
  --radius: 16px;
  --shadow: 0 2px 10px rgba(28, 35, 51, .06);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.8;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

header {
  background: var(--card); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.hwrap {
  max-width: 760px; margin: 0 auto; padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { font-weight: 800; font-size: 19px; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.logo:hover { text-decoration: none; }
.logo .mark { color: var(--accent); }
.hnav a { font-size: 14px; color: var(--ink-soft); margin-left: 16px; font-weight: 600; }

main { max-width: 760px; margin: 0 auto; padding: 26px 16px 40px; }
.crumb { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 14px; }
h1 { font-size: 25px; line-height: 1.45; letter-spacing: .01em; }
.lead { color: var(--ink-soft); font-size: 14.5px; margin-top: 8px; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px 20px; margin-top: 18px;
}
.card h2 { font-size: 17px; margin-bottom: 12px; }

label { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink-soft); margin: 14px 0 6px; }
input[type="number"], input[type="text"], input[type="date"], input[type="time"], select, textarea {
  width: 100%; font-size: 18px; padding: 12px 14px; border: 1.5px solid var(--line);
  border-radius: 12px; background: #fbfcfe; color: var(--ink); font-family: inherit;
  transition: border-color .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); background: #fff; }
textarea { resize: vertical; min-height: 170px; line-height: 1.7; }
.row { display: flex; gap: 12px; }
.row > div { flex: 1; }

.segs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.seg {
  border: 1.5px solid var(--line); background: #fbfcfe; color: var(--ink-soft);
  border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 700;
  cursor: pointer; font-family: inherit; transition: all .15s;
}
.seg.on { background: var(--accent); border-color: var(--accent); color: #fff; }

.result {
  margin-top: 20px; background: var(--accent-soft); border: 1.5px solid #c9d8ff;
  border-radius: var(--radius); padding: 18px 20px;
}
.result .big { font-size: 34px; font-weight: 800; color: var(--accent); line-height: 1.3; }
.result .big small { font-size: 17px; font-weight: 700; }
.result .sub { font-size: 14px; color: var(--ink-soft); margin-top: 4px; font-weight: 600; }
.result table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 15px; }
.result td { padding: 7px 4px; border-bottom: 1px solid #d5e0f8; }
.result td:last-child { text-align: right; font-weight: 700; }
.result tr:last-child td { border-bottom: none; }

.btn {
  display: inline-block; background: var(--accent); color: #fff; border: none;
  font-size: 16px; font-weight: 800; font-family: inherit; padding: 13px 26px;
  border-radius: 12px; cursor: pointer; margin-top: 16px; transition: transform .1s, opacity .15s;
}
.btn:hover { opacity: .92; transform: translateY(-1px); }
.btn.ghost { background: #fff; color: var(--accent); border: 1.5px solid var(--accent); }

.share { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.share button {
  font-family: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer;
  border-radius: 999px; padding: 9px 18px; border: 1.5px solid var(--line);
  background: #fff; color: var(--ink-soft); transition: all .15s;
}
.share button:hover { border-color: var(--accent); color: var(--accent); }

.prose { font-size: 15px; }
.prose h2 { font-size: 18px; margin: 26px 0 10px; padding-left: 12px; border-left: 4px solid var(--accent); }
.prose p { margin-bottom: 12px; color: #333c50; }
.prose ul { margin: 0 0 12px 1.4em; color: #333c50; }
.prose li { margin-bottom: 4px; }

.toolgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin-top: 20px; }
.toolcard {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px; display: block; color: var(--ink);
  transition: transform .12s, border-color .15s;
}
.toolcard:hover { transform: translateY(-3px); border-color: var(--accent); text-decoration: none; }
.toolcard .ticon { font-size: 30px; }
.toolcard .tname { font-weight: 800; font-size: 16px; margin-top: 8px; }
.toolcard .tdesc { font-size: 13px; color: var(--ink-soft); margin-top: 4px; line-height: 1.6; }

.related { margin-top: 26px; }
.related h2 { font-size: 16px; margin-bottom: 10px; }

footer { border-top: 1px solid var(--line); background: var(--card); margin-top: 40px; }
.fwrap { max-width: 760px; margin: 0 auto; padding: 26px 18px; font-size: 13px; color: var(--ink-soft); }
.fwrap .flinks { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 12px; }
.fwrap a { color: var(--ink-soft); }

.notice { font-size: 12.5px; color: var(--ink-soft); margin-top: 14px; }

/* ad slot: activate after AdSense approval */
.ad-slot { margin: 22px 0; text-align: center; }

@media (max-width: 560px) {
  h1 { font-size: 21px; }
  .row { flex-direction: column; gap: 0; }
  .hnav a { margin-left: 12px; }
  .result .big { font-size: 29px; }
}
