:root {
   --color-bg: #ffffff;
   --color-raise: #f4f4f7;
   --color-text: #17171c;
   --color-muted: #575765;
   --color-accent: #5b3fa8;
   --color-accent-deep: #47308a;
   --color-border: #e2e2e9;
   --font-head: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
   --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
   --font-mark: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
   --container: 1060px;
   --radius: 16px;
   --space: clamp(54px, 9vw, 100px);
   --edge: clamp(18px, 4.5vw, 30px);
}

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

html {
   scroll-behavior: smooth;
   -webkit-text-size-adjust: 100%;
}

body {
   margin: 0;
   background: var(--color-bg);
   color: var(--color-text);
   font-family: var(--font-body);
   font-size: 17px;
   line-height: 1.7;
}

::selection { background: #ded4f4; color: var(--color-text); }

[id] { scroll-margin-top: 76px; }

.tq-hold {
   width: 100%;
   max-width: var(--container);
   margin: 0 auto;
   padding: 0 var(--edge);
}

a { color: var(--color-accent); }
a:hover { color: var(--color-accent-deep); }

:focus-visible {
   outline: 2px solid var(--color-accent);
   outline-offset: 3px;
}

h1, h2, h3 {
   font-family: var(--font-head);
   font-weight: 620;
   line-height: 1.2;
   margin: 0 0 18px;
   letter-spacing: -0.027em;
}

h1 { font-size: clamp(2.15rem, 6.6vw, 3.35rem); }
h2 { font-size: clamp(1.45rem, 3.8vw, 2.1rem); }
h3 { font-size: 1.13rem; letter-spacing: -0.012em; }

p { margin: 0 0 16px; }

img { max-width: 100%; height: auto; display: block; }

.tq-bar {
   position: sticky;
   top: 0;
   z-index: 30;
   background: #ffffff;
   padding: 8px 0;
}

.tq-bar__in {
   display: flex;
   flex-wrap: wrap;
   align-items: center;
   justify-content: space-between;
   gap: 4px 22px;
   background: var(--color-raise);
   border-radius: 999px;
   padding: 6px 10px 6px 18px;
}

.tq-sign {
   display: inline-flex;
   align-items: center;
   gap: 9px;
   font-size: 1.18rem;
   font-weight: 700;
   letter-spacing: -0.028em;
   color: var(--color-text);
   text-decoration: none;
   padding: 6px 0;
}

.tq-sign svg { color: var(--color-accent); flex: 0 0 auto; }

.tq-nav ul {
   display: flex;
   flex-wrap: wrap;
   gap: 0 6px;
   list-style: none;
   margin: 0;
   padding: 0;
}

.tq-nav a {
   display: inline-block;
   padding: 11px 14px;
   min-height: 44px;
   border-radius: 999px;
   font-size: 0.9rem;
   color: var(--color-text);
   text-decoration: none;
   transition: 140ms ease;
}

.tq-nav a:hover { background: #ffffff; color: var(--color-accent); }

.tq-first { padding: clamp(44px, 8vw, 92px) 0 8px; }

.tq-first p {
   font-size: clamp(1.08rem, 2.5vw, 1.22rem);
   max-width: 36em;
}

.tq-first h1 { max-width: 16em; }

.tq-who {
   font-family: var(--font-mark);
   font-size: 0.75rem;
   letter-spacing: 0.1em;
   text-transform: uppercase;
   color: var(--color-muted);
   margin-bottom: 20px;
}

.tq-glyphs {
   display: none;
   margin: 30px 0 0;
   color: var(--color-accent);
   width: 100%;
   max-width: 460px;
   height: auto;
}

.tq-zone { padding: var(--space) 0 0; }

.tq-zone:last-of-type { padding-bottom: 12px; }

.tq-prose { max-width: 40em; }

.tq-pad {
   background: var(--color-raise);
   border-radius: var(--radius);
   padding: clamp(26px, 5vw, 42px) clamp(20px, 4vw, 38px);
   max-width: 44em;
}

.tq-pad p:last-child { margin-bottom: 0; }

.tq-swipe {
   display: none;
   font-family: var(--font-mark);
   font-size: 0.71rem;
   letter-spacing: 0.08em;
   text-transform: uppercase;
   color: var(--color-muted);
   margin: 0 0 8px;
}

.tq-scrollbox {
   overflow-x: auto;
   background: var(--color-raise);
   border-radius: var(--radius);
   padding: clamp(20px, 4vw, 30px) clamp(18px, 3.5vw, 28px) 8px;
   margin: 22px 0 12px;
   -webkit-overflow-scrolling: touch;
}

table {
   border-collapse: collapse;
   width: 100%;
   min-width: 600px;
   font-size: 0.94rem;
   line-height: 1.6;
}

caption {
   text-align: left;
   font-size: 1rem;
   font-weight: 620;
   line-height: 1.45;
   padding-bottom: 16px;
}

th, td {
   padding: 13px 20px 13px 0;
   text-align: left;
   vertical-align: top;
   border-bottom: 1px solid var(--color-border);
}

thead th {
   font-family: var(--font-mark);
   font-size: 0.67rem;
   letter-spacing: 0.1em;
   text-transform: uppercase;
   color: var(--color-muted);
   padding-bottom: 11px;
}

tbody tr:last-child th,
tbody tr:last-child td { border-bottom: 0; }

tbody th { font-weight: 620; padding-right: 24px; }

.tq-tr {
   font-family: var(--font-mark);
   font-size: 0.92rem;
   color: var(--color-accent);
   white-space: nowrap;
}

.tq-said {
   font-style: italic;
   font-size: 0.88rem;
   color: var(--color-muted);
   max-width: 42em;
}

.tq-items { padding-left: 22px; max-width: 42em; }
.tq-items li { margin-bottom: 12px; }
.tq-items li::marker { color: var(--color-accent); }

.tq-gloss { margin: 24px 0 0; max-width: 44em; }

.tq-gloss dt {
   font-weight: 620;
   font-size: 1.05rem;
   padding-top: 22px;
   border-top: 1px solid var(--color-border);
   line-height: 1.4;
}

.tq-gloss dt:first-child { padding-top: 0; border-top: 0; }

.tq-gloss dd { margin: 5px 0 22px; color: var(--color-muted); }

.tq-feed {
   list-style: none;
   margin: 26px 0 0;
   padding: 0;
   display: grid;
   grid-template-columns: 1fr;
   gap: 18px;
   align-items: start;
}

.tq-item {
   background: var(--color-raise);
   border-radius: var(--radius);
   padding: clamp(20px, 3.5vw, 26px);
   min-width: 0;
}

.tq-item p:last-of-type { margin-bottom: 0; }

.tq-item__row {
   display: flex;
   gap: 15px;
   align-items: center;
   margin-bottom: 14px;
}

.tq-item__row img { border-radius: 13px; flex: 0 0 auto; background: #ffffff; }

.tq-item__row > div { min-width: 0; }

.tq-item h3 { margin: 0; }

.tq-label {
   font-family: var(--font-mark);
   font-size: 0.7rem;
   line-height: 1.6;
   letter-spacing: 0.04em;
   text-transform: uppercase;
   color: var(--color-muted);
   margin: 0 0 5px;
}

.tq-frame { margin: 20px 0 0; }

.tq-frame img {
   border-radius: 13px;
   background: #ffffff;
   width: 100%;
   height: 200px;
   object-fit: cover;
   object-position: 50% 18%;
}

.tq-frame figcaption {
   font-size: 0.8rem;
   color: var(--color-muted);
   margin-top: 11px;
}

.tq-pill {
   display: inline-block;
   min-height: 44px;
   padding: 14px 28px;
   border: 1px solid var(--color-accent);
   border-radius: 999px;
   background: var(--color-accent);
   color: #ffffff;
   font-family: var(--font-body);
   font-size: 0.93rem;
   font-weight: 500;
   text-decoration: none;
   text-align: center;
   cursor: pointer;
   transition: 140ms ease;
}

.tq-pill:hover {
   background: var(--color-accent-deep);
   border-color: var(--color-accent-deep);
   color: #ffffff;
   transform: translateY(-1px);
}

.tq-pill--hollow {
   background: transparent;
   color: var(--color-accent);
}

.tq-pill--hollow:hover { background: transparent; color: var(--color-accent-deep); }

.tq-more { text-decoration: none; font-size: 0.96rem; }
.tq-more u { text-decoration: none; display: inline-block; transition: 140ms ease; }
.tq-more:hover { text-decoration: underline; }
.tq-more:hover u { transform: translateX(4px); }

.tq-mini { font-size: 0.85rem; color: var(--color-muted); max-width: 40em; margin-top: 18px; }

.tq-links { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }

.tq-links li {
   background: var(--color-raise);
   border-radius: var(--radius);
   transition: 140ms ease;
}

.tq-links li:hover { background: #eeecf6; }

.tq-links a {
   display: block;
   padding: 17px 20px;
   min-height: 44px;
   text-decoration: none;
}

.tq-links a:hover { text-decoration: underline; }

.tq-write__addr {
   display: inline-block;
   font-family: var(--font-mark);
   font-size: clamp(1.02rem, 4.4vw, 1.5rem);
   word-break: break-word;
   margin: 8px 0 18px;
   padding: 8px 18px;
   border-radius: 999px;
   background: #ffffff;
   text-decoration: none;
}

.tq-write__addr:hover { text-decoration: underline; }

.tq-foot {
   margin-top: var(--space);
   padding: clamp(38px, 6vw, 56px) 0 clamp(44px, 7vw, 62px);
   background: var(--color-raise);
   font-size: 0.91rem;
}

.tq-foot__grid {
   display: grid;
   grid-template-columns: 1fr;
   gap: 28px;
}

.tq-foot h2 {
   font-family: var(--font-mark);
   font-size: 0.7rem;
   font-weight: 400;
   letter-spacing: 0.14em;
   text-transform: uppercase;
   color: var(--color-muted);
   margin-bottom: 12px;
}

.tq-foot ul { list-style: none; margin: 0; padding: 0; }
.tq-foot a { display: inline-block; padding: 12px 0; min-height: 44px; }
.tq-foot p { color: var(--color-muted); margin-bottom: 8px; line-height: 1.6; }

.tq-note {
   margin-top: 30px;
   color: var(--color-muted);
   font-family: var(--font-mark);
   font-size: 0.74rem;
   letter-spacing: 0.04em;
}

.tq-doc { max-width: 42em; padding: clamp(30px, 5vw, 50px) 0 24px; }
.tq-doc h2 { margin-top: 40px; }
.tq-doc > p:first-of-type { color: var(--color-muted); }

.tq-ask {
   position: fixed;
   left: 14px;
   right: 14px;
   bottom: 14px;
   background: var(--color-text);
   color: #f1f1f5;
   border-radius: var(--radius);
   padding: 22px;
   z-index: 70;
}

.tq-ask p { margin: 0 0 15px; font-size: 0.89rem; line-height: 1.6; max-width: 58em; }
.tq-ask a { color: #c8b8f2; }
.tq-ask__row { display: flex; flex-wrap: wrap; gap: 12px; }

.tq-ask .tq-pill {
   background: transparent;
   border-color: #f1f1f5;
   color: #f1f1f5;
   flex: 1 1 auto;
}

.tq-ask .tq-pill:hover { background: #f1f1f5; border-color: #f1f1f5; color: var(--color-text); }

.tq-empty { padding: clamp(54px, 11vw, 96px) 0 clamp(64px, 13vw, 114px); max-width: 34em; }

@media (max-width: 700px) {
   .tq-swipe { display: block; }
}

@media (min-width: 560px) {
   .tq-ask .tq-pill { flex: 0 0 auto; }
   .tq-foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 740px) {
   .tq-feed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
   .tq-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
   .tq-glyphs { display: block; }
   .tq-foot__grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
}

.tq-browsers { list-style: none; margin: 20px 0 0; padding: 0; max-width: 42em; display: grid; gap: 10px; }

.tq-browsers li { background: var(--color-raise); border-radius: var(--radius); }

.tq-browsers li:hover { background: #eeecf6; }

.tq-browsers a {
   display: block;
   padding: 15px 18px;
   min-height: 44px;
   text-decoration: none;
}

.tq-browsers a:hover { text-decoration: underline; }

@media (max-width: 739px) {
   .tq-bar__in {
      flex-wrap: nowrap;
      gap: 0 10px;
      padding: 4px 6px 4px 16px;
   }

   .tq-nav {
      min-width: 0;
      overflow-x: auto;
      scrollbar-width: none;
   }

   .tq-nav ul {
      flex-wrap: nowrap;
   }

   .tq-nav ul::-webkit-scrollbar { display: none; }

   .tq-nav a {
      white-space: nowrap;
      padding: 11px 11px;
      font-size: 0.86rem;
   }

   [id] { scroll-margin-top: 66px; }
}

.tq-goods {
   list-style: none;
   margin: 26px 0 20px;
   padding: 0;
   display: grid;
   grid-template-columns: 1fr;
   gap: 16px;
   align-items: start;
}

.tq-good {
   background: var(--color-raise);
   border-radius: var(--radius);
   padding: clamp(20px, 3.5vw, 28px);
   min-width: 0;
}

.tq-good h3 {
   margin: 0 0 12px;
   font-size: 1.1rem;
}

.tq-good__kind {
   font-family: var(--font-mark);
   font-size: 0.7rem;
   letter-spacing: 0.09em;
   text-transform: uppercase;
   color: var(--color-accent);
   margin: 0 0 10px;
}

.tq-good p:last-child { margin-bottom: 0; }

@media (min-width: 740px) {
   .tq-goods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.tq-cover { margin: 30px 0 0; }

.tq-cover img {
   width: 100%;
   max-width: 580px;
   border-radius: var(--radius);
}

.tq-cover figcaption {
   font-size: 0.82rem;
   color: var(--color-muted);
   margin-top: 12px;
   max-width: 42em;
}
