/* SUNYSIDE コーポレートサイト（たたき） */
:root {
  --ink: #111;
  --sub: #666;
  --line: #e6e6e6;
  --gray: #f6f6f4;
  --pink: #ff50d6;
  --wrap: 1120px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: .02em;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.4; }
p { margin: 0; }
.muted { color: var(--sub); font-size: 13px; }
.center { text-align: center; }

/* 仮の文章の目印 */
.tbd { text-decoration: underline dotted var(--pink) 2px; text-underline-offset: 5px; }

/* ロゴ */
.logo { display: block; width: 100%; height: auto; }

/* ヘッダー */
.hd {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 32px;
  padding: 16px clamp(16px, 4vw, 40px);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
}
.hd__logo { width: 132px; flex-shrink: 0; }
.hd__logo:hover .logo__ray { animation: glint .6s var(--ease); }
.hd--noray .hd__logo .logo__ray { display: none; } /* 02：左上のロゴはピンクの三角なし */
.hd__nav { display: flex; gap: 24px; margin-left: auto; font-size: 13px; font-weight: 600; }
.hd__nav a { text-decoration: none; position: relative; }
.hd__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--pink); transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease);
}
.hd__nav a:hover::after { transform: scaleX(1); transform-origin: left; }
@keyframes glint { 0%, 100% { opacity: 1; } 40% { opacity: .2; } }

/* ボタン */
.btn {
  display: inline-block; padding: 14px 32px; border-radius: 999px;
  background: var(--ink); color: #fff; text-decoration: none; font-weight: 700; font-size: 14px;
  transition: transform .25s var(--ease), background .25s;
}
.btn:hover { transform: translateY(-2px); background: #000; }
.btn--sm { padding: 8px 18px; font-size: 12px; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #fff; }

/* セクション */
.sec { padding: clamp(72px, 10vw, 128px) max(clamp(16px, 4vw, 40px), calc((100% - var(--wrap)) / 2)); }
.sec--gray { background: var(--gray); }
.sec--sub { padding-top: 56px; }
.sec__head { margin-bottom: 40px; }
.sec__en { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--pink); }
.sec__ja { font-size: clamp(26px, 4vw, 40px); }
.sec__lead { max-width: 720px; margin-bottom: 40px; color: #333; }
.more { margin-top: 32px; text-align: right; font-size: 14px; font-weight: 700; }
.more a { text-decoration: none; }
.more a::after { content: ""; display: inline-block; width: 24px; height: 1.5px; margin-left: 10px; vertical-align: middle; background: currentColor; transition: width .3s var(--ease); }
.more a:hover::after { width: 40px; }
.h2 { margin: 64px 0 24px; font-size: 22px; }

/* できること（ものさし） */
.scale__axis { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 800; margin-bottom: 20px; }
.scale__arrow { flex: 1; height: 1.5px; background: linear-gradient(to right, var(--line), var(--pink)); position: relative; }
.scale__arrow::after { content: ""; position: absolute; right: 0; top: -4px; border: 5px solid transparent; border-left: 7px solid var(--pink); transform: translateX(6px); }
/* 数字 */
.num { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.num li { background: #fff; border-radius: 16px; padding: 28px 24px; }
.num__val { font-size: clamp(28px, 3.6vw, 48px); font-weight: 800; line-height: 1.1; white-space: nowrap; }
.num__val { font-feature-settings: "tnum"; }
.num__label { margin-top: 12px; font-size: 13px; color: var(--sub); }
@media (max-width: 520px) { .num li { padding: 24px 16px; } .num__val { font-size: 24px; } }

/* 事例 */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.tabs button {
  font: inherit; font-size: 13px; font-weight: 700; padding: 8px 18px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--ink); background: #fff; color: var(--ink); transition: background .2s, color .2s;
}
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 24px; }
@media (max-width: 860px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cards { grid-template-columns: 1fr; } }
.card { display: block; text-decoration: none; }
.card[hidden] { display: none; }
.card__thumb {
  aspect-ratio: 1 / 1; overflow: hidden; border-radius: 16px; background: var(--gray);
  transition: border-radius .5s var(--ease);
  /* 角丸の変化をなめらかにする */
  isolation: isolate;
}
.card__thumb .pic, .card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
a.card:hover .card__thumb { border-radius: 50%; }
a.card:hover .card__thumb img { transform: scale(1.06); }
.card__body { padding-top: 16px; }
.card__title { font-size: 17px; }
.card__text { margin-top: 6px; font-size: 13px; color: #444; line-height: 1.8; }
.tags { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 11px; padding: 2px 10px; border-radius: 999px; background: var(--gray); color: var(--sub); }
.card.is-show { animation: pop .45s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: translateY(12px); } }


/* 画像（仮）。角の番号は差し替えの指示用 */
.pic { position: relative; margin: 0; overflow: hidden; background: var(--gray); }
.pic img { width: 100%; height: 100%; object-fit: cover; }
.pic__no {
  position: absolute; left: 8px; top: 8px; z-index: 1;
  font: 700 10px/1 ui-monospace, Menlo, monospace; letter-spacing: .04em;
  padding: 4px 6px; border-radius: 4px; background: rgba(0, 0, 0, .65); color: #fff; pointer-events: none;
}
.hero { aspect-ratio: 21 / 9; border-radius: 20px; margin-bottom: 48px; }
.article .hero { aspect-ratio: 16 / 9; margin: 0 0 40px; }

/* FV：左に文章、右に写真のコラージュ */
.fv {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 48px;
  min-height: calc(100svh - 76px);
  padding: 24px max(clamp(16px, 4vw, 40px), calc((100% - 1280px) / 2)) 64px;
  position: relative; overflow: hidden;
}
.fv::before {
  content: ""; position: absolute; right: 30%; top: -30%; width: 3px; height: 160%;
  background: linear-gradient(to bottom, transparent, var(--pink) 40%, transparent);
  transform: rotate(38deg); opacity: .5; z-index: 0;
}
.fv__copy { position: relative; z-index: 1; }
.fv__en { font-size: 13px; font-weight: 700; letter-spacing: .2em; color: var(--pink); margin-bottom: 16px; }
.fv__title { font-size: clamp(44px, 7.2vw, 108px); line-height: 1.1; letter-spacing: -.01em; }
.fv__lead { margin-top: 28px; max-width: 560px; font-size: clamp(14px, 1.4vw, 16px); }
.fv__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.fv__visual {
  position: relative; z-index: 1; display: grid; gap: 16px;
  grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(6, minmax(0, 1fr));
  aspect-ratio: 1 / 1; max-height: 78svh; width: 100%; justify-self: end;
}
.fv__visual .pic { border-radius: 24px; animation: float 6s ease-in-out infinite; }
.fv__p1 { grid-column: 1 / 4; grid-row: 1 / 4; border-radius: 50% !important; }
.fv__p2 { grid-column: 4 / 7; grid-row: 1 / 5; animation-delay: -1.5s !important; }
.fv__p3 { grid-column: 1 / 4; grid-row: 4 / 7; animation-delay: -3s !important; }
.fv__p4 { grid-column: 4 / 7; grid-row: 5 / 7; border-radius: 999px !important; animation-delay: -4.5s !important; }
@keyframes float { 50% { transform: translateY(-10px); } }
@media (max-width: 860px) {
  .fv { grid-template-columns: 1fr; min-height: 0; gap: 32px; padding-top: 32px; }
  .fv__visual { max-height: none; }
}

/* できること：写真つきのカード（小さい仕事 → 大きい仕事） */
.svc { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px 16px; }
.svc li { position: relative; }
.svc__pic { aspect-ratio: 4 / 3; border-radius: 16px; transition: border-radius .5s var(--ease); }
.svc__pic img { transition: transform .6s var(--ease); }
.svc li:hover .svc__pic { border-radius: 50%; }
.svc li:hover .svc__pic img { transform: scale(1.06); }
.svc__no { margin-top: 12px; font-size: 11px; font-weight: 800; color: var(--pink); }
.svc__name { font-size: 16px; }
.svc__desc { margin-top: 4px; font-size: 12px; color: var(--sub); line-height: 1.7; }
@media (max-width: 1000px) { .svc { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .svc { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 数字：左に写真 */
.numwrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.numwrap__pic { aspect-ratio: 5 / 6; border-radius: 24px; }
@media (max-width: 860px) { .numwrap { grid-template-columns: 1fr; gap: 32px; } .numwrap__pic { aspect-ratio: 16 / 9; } }

/* ニュース：サムネイルつき */
.news { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.news li { border-bottom: 1px solid var(--line); }
.news li:nth-child(-n+2) { border-top: 1px solid var(--line); }
.news a { display: flex; align-items: center; gap: 24px; padding: 16px 4px; height: 100%; text-decoration: none; }
.news__thumb { flex-shrink: 0; width: 160px; aspect-ratio: 16 / 10; border-radius: 12px; transition: border-radius .5s var(--ease); }
.news a:hover .news__thumb { border-radius: 999px; }
.news__thumb--none { display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); background: #fff; } /* 画像のないお知らせ */
.news__thumb--logo { outline: 1px solid var(--line); outline-offset: -1px; }
.news__thumb--none .logo { width: 46%; opacity: .18; }
.news__text { display: flex; flex-direction: column; gap: 2px; transition: transform .3s var(--ease); }
.news a:hover .news__text { transform: translateX(8px); }
.news time { font-size: 13px; color: var(--sub); font-feature-settings: "tnum"; }
@media (max-width: 860px) { .news { grid-template-columns: 1fr; } .news li:nth-child(2) { border-top: 0; } }
@media (max-width: 640px) { .news__thumb { width: 104px; } .news a { gap: 14px; } .news__text { font-size: 14px; } }

/* 大切にしていること：写真つき */
.values { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: v; }
.values li { background: #fff; border-radius: 20px; overflow: hidden; counter-increment: v; }
.values__pic { aspect-ratio: 16 / 10; }
.values__body { padding: 24px 28px 32px; }
.values__body::before { content: "0" counter(v); display: block; font-size: 12px; font-weight: 800; color: var(--pink); margin-bottom: 6px; }
.values h3 { font-size: 20px; margin-bottom: 10px; }
.values p { font-size: 14px; color: #444; }
@media (max-width: 860px) { .values { grid-template-columns: 1fr; } }

/* 最後のお問い合わせ：写真の上に文字 */
.cta { position: relative; color: #fff; text-align: center; overflow: hidden; }
.cta__bg { position: absolute; inset: 0; }
.cta__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(17, 17, 17, .78), rgba(255, 80, 214, .55)); }
.cta__in { position: relative; z-index: 2; padding: clamp(96px, 14vw, 160px) 16px; }
.cta__title { font-size: clamp(22px, 3.4vw, 36px); font-weight: 800; margin-bottom: 32px; }

.offices__pic { aspect-ratio: 16 / 9; border-radius: 12px; margin-bottom: 16px; }
.team__pic { aspect-ratio: 1 / 1; border-radius: 50%; width: 120px; margin-bottom: 16px; }

/* 記事 */
.article { max-width: 760px; }
.article__date { font-size: 13px; color: var(--sub); }
.article__title { font-size: clamp(22px, 3vw, 30px); margin: 8px 0 40px; }
.article__body p { margin: 0 0 1em; }
.article__body hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.article__body iframe { border-radius: 12px; }
.article__body a { word-break: break-all; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 760px; margin-top: 64px; font-size: 13px; }
.pager a { display: block; padding: 16px 20px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; }
.pager a:hover { border-color: var(--ink); }
.pager__prev::before { content: "前の記事"; display: block; font-size: 11px; color: var(--sub); }
.pager__next { text-align: right; }
.pager__next::before { content: "次の記事"; display: block; font-size: 11px; color: var(--sub); }

/* 表 */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; vertical-align: top; padding: 20px 8px; border-bottom: 1px solid var(--line); }
.table th { width: 180px; font-size: 14px; }
.table ul { margin: 0; padding-left: 1.2em; }
@media (max-width: 640px) { .table th, .table td { display: block; width: auto; } .table th { border: 0; padding-bottom: 0; } }

.offices, .team { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.offices > li, .team > li { background: var(--gray); border-radius: 16px; padding: 20px 20px 28px; }
.offices h3 { font-size: 16px; }
.offices ul { list-style: none; padding: 0; margin: 8px 0; }
.team__role { font-size: 12px; color: var(--pink); font-weight: 700; min-height: 1.5em; }
.team__name { font-size: 18px; margin-bottom: 8px; }
.team p:last-child { font-size: 13px; color: #444; }
@media (max-width: 760px) { .offices, .team { grid-template-columns: 1fr; } }

.prose { max-width: 760px; }
.prose h2 { font-size: 17px; margin: 40px 0 8px; }
.prose p { margin-bottom: 1em; }

/* フッター */
.ft { border-top: 1px solid var(--line); padding: 56px clamp(16px, 4vw, 40px) 40px; }
.ft__in { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 160px 1fr; gap: 24px 40px; align-items: start; }
.ft__nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 13px; }
.ft__nav a { text-decoration: none; }
.ft__nav a:hover { text-decoration: underline; }
.ft__ver { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--sub); } /* 試作の版へのリンク（プレビューの間だけ） */
.ft__ver a { color: var(--ink); }
.ft__copy { grid-column: 1 / -1; font-size: 11px; color: var(--sub); }
@media (max-width: 640px) { .ft__in { grid-template-columns: 1fr; } .ft__logo { width: 140px; } }

/* 小ネタ：1ピクセル */
.pixel { width: 3px; height: 3px; padding: 0; margin-left: 10px; border: 0; background: var(--pink); vertical-align: middle; cursor: pointer; position: relative; }
.pixel::after {
  content: "これが3,000円のお仕事です"; position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%) translateY(4px);
  white-space: nowrap; font-size: 11px; background: var(--ink); color: #fff; padding: 4px 10px; border-radius: 999px;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.pixel:hover::after, .pixel:focus-visible::after { opacity: 1; transform: translateX(-50%); }

/* 初回だけの演出（2.4秒以内に消える） */
.intro { display: none; }
.is-intro .intro {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 100; background: #fff;
  animation: intro-out .5s var(--ease) 1.9s forwards; cursor: pointer;
}
.intro__ray {
  position: absolute; right: 0; top: 0; width: 160vmax; height: 3px; background: var(--pink);
  transform-origin: right center; transform: rotate(-38deg) scaleX(0);
  animation: intro-ray .7s var(--ease) .1s forwards;
}
.intro__logo { width: min(320px, 60vw); opacity: 0; animation: intro-logo .6s var(--ease) .7s forwards; position: relative; }
.intro__logo .logo__ray { animation: glint .5s var(--ease) 1.3s; }
@keyframes intro-ray { to { transform: rotate(-38deg) scaleX(1); } }
@keyframes intro-logo { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes intro-out { to { opacity: 0; visibility: hidden; } }

/* 画面に入ったらふわっと出す */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .hd__nav { display: none; }
  .hd__cta { margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .scale__bar { transform: scaleX(1); }
}

.svc li.reveal { transition-delay: calc(var(--i) * 50ms); }
