:root {
  --ink: #111216;
  --paper: #f4f2eb;
  --line: #c9c6bd;
  --lime: #d8ff47;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans JP", sans-serif;
}
.tips-hero {
  padding: 26px clamp(22px, 6vw, 90px) 70px;
  background:
    radial-gradient(circle at 84% 24%, #46516d 0, transparent 25%), #101114;
  color: #fff;
}
.tips-hero nav {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.16em;
}
.tips-hero nav a {
  color: #fff;
  text-decoration: none;
}
.eyebrow {
  margin-top: 11vh;
  color: var(--lime);
  font-weight: 900;
  letter-spacing: 0.12em;
}
.tips-hero h1 {
  margin: 18px 0;
  font-size: clamp(3.4rem, 9vw, 8rem);
  line-height: 0.92;
  letter-spacing: -0.07em;
}
.intro {
  max-width: 550px;
  color: #bfc1c7;
  line-height: 1.8;
}
main {
  padding: 44px clamp(20px, 6vw, 90px) 100px;
}
.tool-row {
  display: grid;
  grid-template-columns: minmax(220px, 350px) 1fr;
  align-items: center;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 2px solid var(--ink);
}
.tool-row label {
  display: flex;
  gap: 8px;
  padding: 10px 2px;
  border-bottom: 1px solid #888;
}
.tool-row input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
}
.tip-tabs {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  overflow: auto;
}
.tip-tabs button {
  border: 1px solid #aaa;
  border-radius: 999px;
  background: transparent;
  padding: 9px 15px;
  font: inherit;
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
}
.tip-tabs button.active {
  background: var(--ink);
  color: #fff;
}
.tips-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}
.device-section {
  --accent: #5d83ff;
  border: 1px solid var(--line);
  background: #faf9f5;
  padding: 25px;
}
.device-section[data-device="ipad"] {
  --accent: #936eff;
}
.device-section[data-device="watch"] {
  --accent: #83ac27;
}
.device-section[data-device="mac"] {
  --accent: #ef7740;
}
.device-section[data-device="airpods"] {
  --accent: #2baac6;
}
.device-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 14px;
}
.device-head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.04em;
}
.device-head span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
}
.tip-group {
  margin-top: 24px;
}
.tip-group h3 {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: #6b6c70;
}
.tip-card {
  position: relative;
  margin: 8px 0;
  padding: 15px 42px 15px 15px;
  border: 1px solid var(--line);
  background: #fff;
}
.tip-card b {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
}
.tip-card p {
  margin: 0;
  color: #5d5e63;
  font-size: 12px;
  line-height: 1.65;
}
.tip-card:after {
  content: "✦";
  position: absolute;
  right: 15px;
  top: 15px;
  color: var(--accent);
}
.empty {
  text-align: center;
  padding: 60px;
  color: #777;
}
@media (max-width: 760px) {
  .tips-hero {
    padding-bottom: 45px;
  }
  .eyebrow {
    margin-top: 8vh;
  }
  .tool-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .tip-tabs {
    justify-content: flex-start;
  }
  .tips-grid {
    grid-template-columns: 1fr;
  }
  .device-section {
    padding: 20px;
  }
}
