/* てづくり工房 Country Garden - restored from the 2001-2008 archive. Stylesheet v1 */
:root {
  --tk-bg: #fff0f5;
  --tk-paper: #ffffff;
  --tk-ink: #004080;
  --tk-brown: #89494b;
  --tk-pink: #ff3fad;
  --tk-link: #8080ff;
  --tk-visited: #ff3fad;
  --tk-lilac: #efe6ff;
  --tk-mint: #e4f7ee;
  --tk-line: #f3c9dc;
}

* { box-sizing: border-box; }

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body.tk-body {
  margin: 0;
  background-color: #fff0f5;
  background-image: radial-gradient(circle at 12px 12px, #ffe0ec 3px, transparent 4px);
  background-size: 36px 36px;
  color: #004080;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, "Yu Gothic", "MS PGothic", Verdana, sans-serif;
  line-height: 1.9;
  letter-spacing: .02em;
}

.tk-body a { color: #5a5ae0; text-decoration: none; border-bottom: 1px dotted #8080ff; }
.tk-body a:hover, .tk-body a:focus { color: #ff3fad; border-bottom-color: #ff3fad; }
.tk-body a:visited { color: #b0399a; }

.tk-skip { position: absolute; left: -9999px; top: 0; background: #fff; padding: 8px 14px; z-index: 50; }
.tk-skip:focus { left: 8px; top: 8px; }

/* Centered notebook page */
.tk-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 14px 30px;
}

.tk-head {
  text-align: center;
  padding: 26px 10px 12px;
}
.tk-head img { max-width: 100%; height: auto; display: block; margin: 0 auto 8px; border: 0; }
.tk-logo {
  display: inline-block;
  font-size: 1.6rem;
  font-weight: bold;
  color: #ff3fad;
  border: 0;
  letter-spacing: .12em;
}
.tk-logo:hover { color: #d81f8a; border: 0; }
.tk-tagline { margin: 2px 0 0; font-size: .82rem; color: #89494b; }

/* Beads string divider */
.tk-beads {
  height: 14px;
  margin: 8px 0 0;
  background-image:
    radial-gradient(circle at 7px 7px, #ff8fc8 5px, transparent 6px),
    radial-gradient(circle at 21px 7px, #b9a4ff 5px, transparent 6px),
    radial-gradient(circle at 35px 7px, #8fd9c0 5px, transparent 6px);
  background-size: 42px 14px;
  background-repeat: repeat-x;
}

/* Tabs across the top */
.tk-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; list-style: none; margin: 14px 0 0; padding: 0; }
.tk-tabs li { margin: 0; }
.tk-tabs a {
  display: block;
  padding: 6px 16px 5px;
  background: #ffffff;
  border: 2px solid #f3c9dc;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  color: #89494b;
  font-size: .86rem;
  letter-spacing: .06em;
}
.tk-tabs a:hover, .tk-tabs a:focus { background: #efe6ff; color: #004080; border-color: #b9a4ff; }
.tk-tabs a[aria-current="page"] { background: #ff3fad; color: #fff; border-color: #ff3fad; }
.tk-tab-toggle { display: none; }

/* The sheet */
.tk-sheet {
  background: #ffffff;
  border: 2px solid #f3c9dc;
  border-radius: 0 0 16px 16px;
  padding: 28px 40px 34px;
  box-shadow: 0 4px 0 #f3c9dc;
}

.tk-crumbs { font-size: .78rem; color: #89494b; margin: 0 0 14px; }
.tk-crumbs a { color: #89494b; border-bottom: 0; text-decoration: underline; }
.tk-crumbs span { margin: 0 5px; }

.tk-sheet h1 {
  font-size: 1.55rem;
  line-height: 1.5;
  margin: 0 0 .5em;
  padding: 0 0 .3em;
  color: #89494b;
  border-bottom: 3px dotted #ff8fc8;
  font-weight: bold;
}
.tk-sheet h2 {
  font-size: 1.15rem;
  margin: 1.9em 0 .6em;
  padding: 2px 12px;
  background: #efe6ff;
  border-left: 8px solid #ff3fad;
  color: #004080;
}
.tk-sheet h3 { font-size: 1.02rem; margin: 1.5em 0 .3em; color: #89494b; }
.tk-sheet h3::before { content: "\25C6"; color: #ff8fc8; margin-right: .4em; font-size: .8em; }

.tk-lede { font-size: 1.02rem; color: #89494b; margin: 0 0 1.4em; }
.tk-meta { font-size: .78rem; color: #a17a80; margin: 0 0 1.4em; }

.tk-sheet p { margin: 0 0 1.1em; }
.tk-sheet ul, .tk-sheet ol { margin: 0 0 1.2em; padding-left: 1.5em; }
.tk-sheet li { margin-bottom: .4em; }

.tk-pic { margin: 1.4em auto; text-align: center; }
.tk-pic img { max-width: 100%; height: auto; border: 6px solid #fff; outline: 2px solid #f3c9dc; }
.tk-pic figcaption { font-size: .8rem; color: #89494b; margin-top: 6px; }
.tk-pic-side { float: right; width: 260px; max-width: 42%; margin: .2em 0 1em 1.6em; }
.tk-sheet::after { content: ""; display: block; clear: both; }

.tk-note {
  margin: 1.4em 0;
  padding: 12px 18px;
  background: #e4f7ee;
  border: 2px dashed #8fd9c0;
  border-radius: 10px;
  font-size: .94rem;
}

.tk-table { width: 100%; border-collapse: collapse; margin: 1.3em 0; font-size: .92rem; }
.tk-table th, .tk-table td { border: 1px solid #f3c9dc; padding: 8px 12px; text-align: left; vertical-align: top; }
.tk-table th { background: #ffeaf3; color: #89494b; }

/* Card list for sections and blog */
.tk-cards { list-style: none; margin: 1.4em 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.tk-card { background: #fffafc; border: 2px solid #f3c9dc; border-radius: 12px; overflow: hidden; }
.tk-card a { display: block; height: 100%; border: 0; color: #004080; }
.tk-card a:hover { background: #efe6ff; }
.tk-card img { display: block; width: 100%; height: 150px; object-fit: cover; }
.tk-card-body { padding: 10px 16px 14px; }
.tk-card-title { display: block; font-weight: bold; color: #89494b; margin-bottom: 2px; }
.tk-card-text { display: block; font-size: .84rem; line-height: 1.7; }
.tk-card-date { display: block; font-size: .72rem; color: #a17a80; }

.tk-shots { list-style: none; margin: 1.2em 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.tk-shots li { text-align: center; font-size: .78rem; color: #89494b; line-height: 1.5; }
.tk-shots img { width: 100%; height: 130px; object-fit: cover; display: block; border: 4px solid #fff; outline: 2px solid #f3c9dc; margin-bottom: 4px; }

.tk-related { margin-top: 2.2em; padding: 12px 18px; background: #efe6ff; border-radius: 10px; }
.tk-related h2 { margin: 0 0 .3em; padding: 0; background: none; border: 0; font-size: 1rem; }
.tk-related ul { margin: 0; }

/* Footer */
.tk-foot { max-width: 900px; margin: 0 auto; padding: 8px 14px 34px; text-align: center; font-size: .82rem; color: #89494b; }
.tk-foot ul { list-style: none; margin: 10px 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; }
.tk-foot a { color: #89494b; border-bottom: 1px dotted #89494b; }
.tk-foot p { margin: 4px 0; }

.tk-lost { text-align: center; padding: 30px 0; }

/* Tablet */
@media (max-width: 700px) {
  .tk-sheet { padding: 20px 20px 26px; }
  .tk-cards { grid-template-columns: 1fr; }
  .tk-tab-toggle {
    display: block; margin: 12px auto 0; padding: 8px 22px; background: #ff3fad; color: #fff;
    border: 0; border-radius: 18px; font: inherit; font-size: .88rem; cursor: pointer;
  }
  .tk-tabs { display: none; flex-direction: column; margin-top: 10px; }
  .tk-tabs.tk-open { display: flex; }
  .tk-tabs a { border-radius: 10px; border-bottom: 2px solid #f3c9dc; text-align: center; }
  .tk-pic-side { float: none; width: auto; max-width: 100%; margin: 1.2em auto; }
  .tk-logo { font-size: 1.3rem; }
}

/* Phone */
@media (max-width: 440px) {
  .tk-page { padding: 0 8px 20px; }
  .tk-sheet { padding: 16px 14px 22px; }
  .tk-sheet h1 { font-size: 1.28rem; }
  .tk-table { font-size: .8rem; }
  .tk-table th, .tk-table td { padding: 5px 6px; }
  .tk-shots { grid-template-columns: repeat(2, 1fr); }
}

@media print {
  .tk-tabs, .tk-tab-toggle, .tk-beads, .tk-foot ul { display: none; }
  body.tk-body { background: #fff; }
  .tk-sheet { border: 0; box-shadow: none; padding: 0; }
}

/* ---- Accessibility and small refinements ---- */
.tk-body a:focus-visible,
.tk-tab-toggle:focus-visible {
  outline: 3px solid #ff3fad;
  outline-offset: 2px;
}

.tk-sheet hr {
  border: 0;
  border-top: 3px dotted #ff8fc8;
  margin: 1.8em 0;
}

.tk-sheet blockquote {
  margin: 1.4em 0;
  padding: 8px 18px;
  border-left: 6px solid #b9a4ff;
  background: #efe6ff;
}

.tk-sheet strong {
  color: #89494b;
}

.tk-sheet h1 + h2,
.tk-sheet .tk-lede + h2 {
  margin-top: 1.2em;
}

.tk-sheet a {
  overflow-wrap: anywhere;
}

.tk-sheet img {
  max-width: 100%;
  height: auto;
}

.tk-pic img {
  background: #fff;
}

.tk-shots img {
  background: #fffafc;
}

.tk-shots li span {
  display: block;
}

.tk-card a:focus-visible {
  outline: 3px solid #ff3fad;
  outline-offset: -3px;
}

.tk-related li {
  margin-bottom: .2em;
}

.tk-note p {
  margin: 0;
}

.tk-lost h1 {
  font-size: 1.8rem;
}

.tk-foot-h {
  margin: 12px 0 2px;
  font-weight: bold;
  color: #004080;
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

@media (min-width: 1100px) {
  .tk-page {
    max-width: 940px;
  }
  .tk-foot {
    max-width: 940px;
  }
}

.tk-crumbs a:hover {
  color: #ff3fad;
}

.tk-head {
  position: relative;
}

.tk-tabs a {
  white-space: nowrap;
}

.tk-cards .tk-card:nth-child(even) {
  background: #f7f3ff;
}
