/* ようよう制作 公式サイト */
:root {
  --bg: #111113;
  --card: #19191b;
  --raised: #232325;
  --text: #ededed;
  --text2: #a1a1a6;
  --muted: #85858b;
  --body: #d6d6da;
  --line: rgba(237, 237, 237, 0.1);
  --blue: #28aafa;
  --orange: #fa8b28;
  --purple: #b39bff;
  --brand: #28aafa;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1160px;
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #ffffff;
  --card: #f3f3f5;
  --raised: #e6e6ea;
  --text: #16161a;
  --text2: #55555c;
  --muted: #6b6b73;
  --body: #2b2b30;
  --line: rgba(22, 22, 26, 0.12);
  --blue: #0a74bb;
  --orange: #bd5600;
  --purple: #6a42d4;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "LINE Seed JP", "Zen Kaku Gothic New", system-ui, -apple-system, "Hiragino Sans", sans-serif;
  line-height: 1.6;
  border-top: 6px solid var(--brand);
  transition: background-color 300ms, color 300ms;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.num { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding-top: 12px; padding-bottom: 12px; }
.logo img { height: 40px; width: auto; }
.logo .logo-d { display: none; }
[data-theme="light"] .logo .logo-w { display: none; }
[data-theme="light"] .logo .logo-d { display: block; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; font-size: 14px; color: var(--text2); }
.nav a { position: relative; padding: 10px 12px; transition: color 180ms; }
.nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 1px;
  background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform 280ms var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.theme-toggle {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: transparent;
  display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
}
.theme-toggle .moon { display: none; }
[data-theme="light"] .theme-toggle .moon { display: block; }
[data-theme="light"] .theme-toggle .sun { display: none; }

/* ---------- motion helpers ---------- */
.lift { transition: transform 180ms var(--ease); }
.lift:hover { transform: translateY(-1px) scale(1.03); }
.lift:active { transform: scale(0.97); }
.card .img { transition: transform 450ms var(--ease); }
.card:hover .img { transform: scale(1.03); }
.row .t { transition: transform 220ms var(--ease), color 180ms; }
.row:hover .t { transform: translateX(6px); color: var(--blue); }
.tile { transition: transform 260ms var(--ease), border-color 200ms; }
.tile:hover { transform: scale(1.02); border-color: rgba(40, 170, 250, 0.6); }

/* ---------- common parts ---------- */
.section { padding-bottom: 80px; }
.section-title { margin: 0 0 20px; display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 500; }
.section-title::before {
  content: ""; width: 16px; height: 16px; flex: 0 0 auto;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M3 4 L11 18 L19 4' fill='none' stroke='%2328aafa' stroke-width='4' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.more { margin-top: 16px; font-size: 14px; }
.more a { color: var(--blue); }
.page-title { margin: 0; font-size: 28px; font-weight: 500; }
.ph { background: var(--raised); }
.img, .thumb, .main-img, .cover, .lc-thumb { position: relative; overflow: hidden; }
.img > img, .thumb > img, .main-img > img, .cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph-warm { background: #2a241d; } .ph-blue { background: #1e262d; } .ph-purple { background: #26222e; }
.ph-green { background: #1f2622; } .ph-red { background: #2a1f22; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 10px; border: 0;
  font-size: 14px; cursor: pointer;
}
.btn-primary { background: #28aafa; color: #0b1a24; font-weight: 700; }
.btn-primary:hover { color: #0b1a24; }
.btn-sub { background: var(--raised); }
.cat { font-size: 13px; }
.cat-diary, .cat-goods { color: var(--orange); }
.cat-tech, .cat-other { color: var(--blue); }
.cat-world, .cat-news { color: var(--purple); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; vertical-align: 1px; }
.dot-goods { background: #fa8b28; } .dot-world { background: #9a6bfa; } .dot-other { background: #28aafa; }

/* ---------- carousel ---------- */
.carousel { padding: 24px 0 40px; overflow: hidden; --w: 70%; --gap: 2%; }
.carousel-track { display: flex; transition: transform 600ms var(--ease); }
.slide {
  position: relative; flex: 0 0 var(--w); margin-right: var(--gap); aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden;
  opacity: 0.35; transform: scale(0.94); transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}
.slide.is-active { opacity: 1; transform: none; }
.slide .img { position: absolute; inset: 0; }
.slide-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 72px 32px 28px;
  background: linear-gradient(180deg, rgba(10, 10, 12, 0) 0%, rgba(10, 10, 12, 0.85) 100%);
}
.slide-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.slide-meta .date { color: #b5b5ba; margin-left: 8px; }
.slide-meta .c-goods, .slide-meta .c-diary { color: #fa8b28; }
.slide-meta .c-news, .slide-meta .c-world { color: #b39bff; }
.slide-meta .c-tech { color: #28aafa; }
.slide-title { margin-top: 8px; font-size: 26px; line-height: 1.5; font-weight: 500; color: #f2f2f2; }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 20px; }
.carousel-arrow {
  width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--line); background: transparent;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.carousel-dots { display: flex; gap: 8px; align-items: center; }
.carousel-dots button {
  height: 6px; width: 8px; border: 0; padding: 0; border-radius: 3px; cursor: pointer; background: var(--line);
  transition: width 300ms var(--ease), background-color 300ms;
}
.carousel-dots button[aria-current="true"] { width: 28px; background: #28aafa; }

/* ---------- top ---------- */
.intro { padding-top: 24px; padding-bottom: 48px; }
.intro h1 { margin: 0; font-size: 24px; line-height: 1.6; font-weight: 500; }
.works-feature { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.works-feature .main { flex: 2 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.works-feature .main .img { flex: 1; min-height: 320px; border-radius: 16px; }
.works-feature .side { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.works-feature .side .card { display: flex; flex-direction: column; gap: 12px; }
.works-feature .img { border-radius: 16px; aspect-ratio: 4 / 3; }
.card-foot { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.card-foot .name { font-weight: 500; }

.list-row {
  display: flex; flex-wrap: wrap; gap: 4px 20px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line);
}
.list-row .date { font-size: 13px; color: var(--muted); width: 88px; }
.list-row .cat { width: 64px; }
.list-row .t { flex: 1 1 300px; font-size: 16px; line-height: 1.7; }

.profile { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; padding: 32px; border-radius: 20px; background: var(--card); }
.profile img { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.profile .name { font-size: 28px; font-weight: 500; }
.profile p { margin: 12px 0 0; font-size: 17px; line-height: 2; color: var(--body); flex: 1 1 360px; }
.profile .text { flex: 1 1 360px; min-width: 0; }

.links { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.links .tile {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 16px; padding: 32px 20px;
  border-radius: 16px; background: var(--card); border: 1px solid var(--line); text-align: center;
}
.links .logo-slot { width: 96px; height: 96px; display: flex; align-items: center; justify-content: center; }
.links .logo-slot img { max-width: 88px; max-height: 88px; width: auto; height: auto; object-fit: contain; }
.links button.tile { font: inherit; color: var(--text); cursor: pointer; width: 100%; }
.links .copy-id { margin-top: -10px; font-size: 13px; color: var(--muted); }
.links .copy-id::after { content: "  ・ 押すとコピー"; }
.sns-x-d { display: none; }
[data-theme="light"] .sns-x-w { display: none; }
[data-theme="light"] .sns-x-d { display: block; }
.links .name { font-size: 18px; font-weight: 500; }
.contact-note { margin: 20px 0 0; font-size: 15px; color: var(--text2); }

/* ---------- tabs ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 4px 28px; margin: 24px 0 32px; border-bottom: 1px solid var(--line); }
.tabs button, .tabs a.tab {
  padding: 12px 0; margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent; background: transparent;
  font-size: 15px; cursor: pointer; color: var(--text2);
}
.tabs button[aria-selected="true"], .tabs a.tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--tab, #28aafa); }
.tabs .count { margin-left: 6px; font-size: 12px; color: var(--muted); }
[hidden] { display: none !important; }

/* ---------- works ---------- */
.works-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 40px 24px; }
.works-grid .card { display: flex; flex-direction: column; gap: 12px; }
.works-grid .img { aspect-ratio: 4 / 3; border-radius: 12px; }
.works-grid .name { font-size: 16px; font-weight: 500; }
.works-grid .desc { font-size: 14px; line-height: 1.7; color: var(--text2); margin-top: -4px; }

.work-detail { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-top: 40px; padding-bottom: 80px; }
.gallery { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.gallery .main-img { aspect-ratio: 4 / 3; border-radius: 16px; }
.gallery .thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.gallery .thumbs button { aspect-ratio: 1 / 1; border-radius: 8px; border: 2px solid transparent; padding: 0; cursor: pointer; overflow: hidden; background: var(--raised); }
.gallery .thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.gallery .thumbs button[aria-current="true"] { border-color: var(--text); }
.work-info { flex: 1 1 320px; min-width: 0; }
.work-info h1 { margin: 0; font-size: 26px; line-height: 1.5; font-weight: 500; }
.work-info .meta { margin-top: 8px; font-size: 13px; color: var(--muted); }
.work-info p { margin: 24px 0 0; font-size: 15px; line-height: 2; color: var(--body); }
.work-info .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.mini-grid .card { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.mini-grid .img { aspect-ratio: 4 / 3; border-radius: 12px; }
.sub-title { font-size: 15px; color: var(--text2); margin: 0 0 16px; font-weight: 400; }

/* ---------- blog list ---------- */
.narrow { max-width: 880px; margin: 0 auto; padding: 48px 24px 80px; }
.post-row { display: flex; gap: 24px; align-items: flex-start; padding: 24px 0; border-bottom: 1px solid var(--line); }
.post-row .body { flex: 1; min-width: 0; }
.post-row .meta { display: flex; gap: 16px; align-items: center; font-size: 13px; }
.post-row .meta .date { color: var(--muted); }
.post-row .t { display: block; margin-top: 8px; font-size: 18px; line-height: 1.6; font-weight: 500; }
.post-row .excerpt { margin-top: 6px; font-size: 14px; line-height: 1.8; color: var(--text2); }
.post-row .thumb { flex: 0 0 auto; width: 160px; aspect-ratio: 4 / 3; border-radius: 10px; }
.load-more { display: flex; justify-content: center; margin-top: 32px; }
.btn-outline { border: 1px solid rgba(40, 170, 250, 0.5); background: transparent; color: var(--blue); }
.news-list { border-top: 1px solid var(--line); }
.news-list .list-row { padding: 20px 0; }
.news-list .t { font-size: 17px; }

/* ---------- article ---------- */
.article { max-width: 680px; margin: 0 auto; padding: 48px 24px 64px; }
.article .meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--muted); }
.article h1 { margin: 12px 0 0; font-size: 28px; line-height: 1.6; font-weight: 500; }
.pr-note { margin-top: 12px; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text2); }
.pr { padding: 2px 6px; border-radius: 4px; border: 1px solid var(--line); font-size: 11px; color: var(--text); }
.article .cover { margin-top: 32px; aspect-ratio: 3 / 2; border-radius: 12px; }
.prose { font-size: 16px; line-height: 2; color: var(--body); margin-top: 32px; }
.prose p { margin: 0 0 24px; }
.prose h2 { margin: 48px 0 16px; font-size: 20px; line-height: 1.6; font-weight: 500; color: var(--text); }
.prose a:not(.link-card) { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.prose blockquote { margin: 0 0 32px; padding-left: 16px; border-left: 2px solid var(--line); color: var(--text2); }
.prose figure { margin: 0 0 24px; }
.prose figure .img { aspect-ratio: 4 / 3; border-radius: 12px; }
.prose figure > img { width: 100%; height: auto; border-radius: 12px; }
.prose ul, .prose ol { margin: 0 0 24px; padding-left: 1.5em; }
.prose code { font-size: 0.9em; padding: 1px 5px; border-radius: 4px; background: var(--card); }
.prose pre code { padding: 0; background: none; }
.prose figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); }
.prose pre { padding: 16px; border-radius: 10px; background: var(--card); overflow-x: auto; font-size: 13px; line-height: 1.7; }

.video { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #1c1c1f; margin-bottom: 8px; }
.video button { position: absolute; inset: 0; width: 100%; border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.video .play { width: 68px; height: 48px; border-radius: 12px; background: rgba(0, 0, 0, 0.6); display: flex; align-items: center; justify-content: center; transition: transform 180ms var(--ease); }
.video button:hover .play { transform: scale(1.08); }
.video .video-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video .title { position: absolute; left: 16px; top: 14px; font-size: 14px; color: #ededed; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-source { margin: 0 0 32px; font-size: 13px; color: var(--muted); }

.link-card { display: flex; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); margin-bottom: 24px; text-decoration: none; }
.link-card .lc-body { flex: 1; min-width: 0; padding: 16px 20px; display: flex; flex-direction: column; gap: 6px; }
.link-card .lc-title { font-size: 15px; line-height: 1.6; font-weight: 500; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.link-card .lc-desc { font-size: 13px; line-height: 1.7; color: var(--text2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.link-card .lc-site { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 12px; color: var(--muted); }
.link-card .lc-fav { width: 14px; height: 14px; border-radius: 3px; flex: 0 0 auto; }
.link-card .lc-thumb { flex: 0 0 31%; max-width: 200px; min-height: 120px; }
.link-card .lc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.link-card .pr { margin-left: 4px; font-size: 10px; padding: 1px 5px; color: var(--text2); }

.post-nav { margin-top: 64px; border-top: 1px solid var(--line); font-size: 15px; }
.post-nav a { display: flex; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.post-nav .label { color: var(--muted); font-size: 13px; width: 56px; padding-top: 2px; flex: 0 0 auto; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid rgba(40, 170, 250, 0.35); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 32px; padding-bottom: 32px; font-size: 14px; color: var(--text2); }
.site-footer .links-row { display: flex; flex-wrap: wrap; gap: 24px; }
.site-footer .copy { color: var(--muted); font-size: 13px; text-align: right; }

/* ---------- small screens ---------- */
@media (max-width: 720px) {
  .carousel { --w: 86%; --gap: 3%; }
  .slide-caption { padding: 48px 18px 16px; }
  .slide-title { font-size: 18px; }
  .intro h1 { font-size: 20px; }
  .works-feature .main .img { min-height: 220px; }
  .profile { padding: 24px; gap: 20px; }
  .profile img { width: 112px; height: 112px; }
  .profile .name { font-size: 22px; }
  .post-row .thumb { width: 96px; }
  .link-card .lc-thumb { min-height: 96px; }
  .site-footer .copy { text-align: left; }
  .logo img { height: 34px; }
  .theme-toggle { margin-left: auto; }
  .nav { order: 3; width: calc(100% + 16px); margin: 0 -8px; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 10px 8px; white-space: nowrap; flex: 0 0 auto; }
  .nav a::after { left: 8px; right: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
