/* ===========================
   リセット
   =========================== */
*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: #2a2a2a;
  background: #f8f7f4;
  line-height: 1.9;
  font-weight: 400;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.loading { overflow: hidden; }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container { max-width: 920px; margin: 0 auto; padding: 0 28px; }
.container-wide { max-width: 1100px; margin: 0 auto; padding: 0 36px; }

.sp-only { display: none; }

/* ===========================
   ローディング（バー）
   =========================== */
.loader {
  position: fixed; inset: 0;
  background: #f8f7f4;
  z-index: 9999;
  display: flex; align-items: flex-end;
  transition: opacity 0.4s ease 0.1s, visibility 0.4s ease 0.1s;
}
.loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-bar {
  width: 0; height: 2px;
  background: #2a2a2a;
  animation: loadBar 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes loadBar {
  to { width: 100%; }
}

/* ===========================
   ページ遷移
   =========================== */
.transition-overlay {
  position: fixed; inset: 0;
  background: #2a2a2a;
  z-index: 9998;
  transform: scaleY(0);
  transform-origin: bottom;
  pointer-events: none;
}

/* ===========================
   ヘッダー
   =========================== */
.header {
  position: fixed; top: 0; left: 0; width: 100%;
  z-index: 100;
  mix-blend-mode: normal;
  transition: background 0.4s ease;
}
.header:not(.header--solid) { background: transparent; }
.header--solid, .header.scrolled {
  background: rgba(248, 247, 244, 0.96);
  backdrop-filter: blur(8px);
}

.nav {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 920px; margin: 0 auto; padding: 20px 28px;
}

.nav-logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px; font-weight: 600;
  letter-spacing: 2px; color: #2a2a2a;
}

.nav-links { display: flex; list-style: none; gap: 24px; }
.nav-links a {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px; font-weight: 500;
  letter-spacing: 1.5px; color: #999;
  text-transform: uppercase;
  transition: color 0.3s;
}
.nav-links a:hover, .nav-links a.current { color: #2a2a2a; }

.nav-toggle {
  display: none; flex-direction: column; gap: 6px;
  background: none; border: none; cursor: pointer; padding: 4px; z-index: 101;
}
.nav-toggle span { display: block; width: 20px; height: 1.5px; background: #2a2a2a; transition: all 0.3s; }
.nav-toggle.active span:first-child { transform: rotate(45deg) translate(3px, 4px); }
.nav-toggle.active span:last-child  { transform: rotate(-45deg) translate(3px, -4px); }

/* ===========================
   ヒーロー（トップ）左テキスト＋右ビジュアル
   =========================== */
.hero {
  min-height: 100vh;
  display: flex;
  position: relative;
  overflow: hidden;
}

/* 左：テキスト */
.hero-text {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f7f4;
  padding: 100px 48px 80px;
  position: relative;
  z-index: 2;
}

.hero-text-inner {
  max-width: 420px;
}

.hero-eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px; font-weight: 500;
  letter-spacing: 4px; text-transform: uppercase;
  color: #bbb;
  margin-bottom: 32px;
  opacity: 0;
}

.hero-copy {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 500;
  line-height: 1.9;
  letter-spacing: 3px;
  margin-bottom: 24px;
  color: #1a1a1a;
}

.hero-copy-line {
  display: block;
  overflow: hidden;
}

.hero-sub {
  font-size: 13px;
  font-weight: 400;
  line-height: 2.2;
  color: #999;
  letter-spacing: 1px;
  margin-bottom: 32px;
  opacity: 0;
}

.hero-pillars {
  display: flex; gap: 16px;
  opacity: 0;
}

.hero-pillars span {
  font-family: 'Montserrat', sans-serif;
  font-size: 9px; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase;
  color: #ccc;
  padding: 4px 10px;
  border: 1px solid #e4e2dc;
  border-radius: 2px;
}

/* 右：ビジュアル */
.hero-visual {
  flex: 1;
  position: relative;
  background: #1a1e2a;
  min-height: 100vh;
}

#hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}

/* スクロールインジケーター */
.hero-scroll-wrap {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  opacity: 0;
}

.hero-scroll-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #ccc;
  display: block;
  animation: dotBounce 2s ease infinite;
}

@keyframes dotBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(12px); opacity: 0.3; }
}

/* ===========================
   3本柱
   =========================== */
.pillars {
  padding: 100px 0;
  border-bottom: 1px solid #eae8e3;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.pillar { padding: 0 8px; }

.pillar-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 40px; font-weight: 300;
  color: #ddd;
  display: block; margin-bottom: 12px; line-height: 1;
}

.pillar-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 18px; font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.pillar-en {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px; font-weight: 400;
  letter-spacing: 2px; text-transform: uppercase;
  color: #bbb;
  margin-bottom: 14px;
}

.pillar-text {
  font-size: 13px;
  color: #777;
  line-height: 2;
}

/* ===========================
   共通ラベル
   =========================== */
.label-en {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase;
  color: #bbb;
}

.label-line {
  flex: 1; height: 1px; background: #eae8e3; margin-left: 16px;
}

/* ===========================
   プロジェクト（トップ）
   =========================== */
.projects { padding: 80px 0; }

.projects-label {
  display: flex; align-items: center;
  margin-bottom: 48px;
}

.pj {
  display: flex; gap: 44px; align-items: center;
  padding: 44px 0;
  border-bottom: 1px solid #eae8e3;
  color: inherit;
  transition: background 0.4s ease;
}
.pj:first-of-type { border-top: 1px solid #eae8e3; }
.pj--reverse { flex-direction: row-reverse; }

.pj:hover { background: rgba(0,0,0,0.015); }

.pj-visual { flex: 1; position: relative; }

.pj-img {
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  overflow: hidden;
  background: #efede8;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.5s ease;
}

.pj:hover .pj-img { transform: scale(0.98); }

.pj-svg { width: 56%; height: auto; }

.pj-img--photo { padding: 0; }
.pj-img--photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.pj-img--logo {
  background: #fff;
  padding: 0;
  display: flex; align-items: center; justify-content: center;
}
.pj-img--logo img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}

.pj-img--app {
  background: #fff;
  padding: 0;
  display: flex; align-items: center; justify-content: center;
}
.pj-img--app img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.pj-num {
  position: absolute; top: -16px; left: -4px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 72px; font-weight: 300;
  color: rgba(0,0,0,0.04);
  line-height: 1; pointer-events: none;
}

.pj--reverse .pj-num { left: auto; right: -4px; }

.pj-body { flex: 1; }

.pj-cat {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase;
  color: #bbb; display: block; margin-bottom: 8px;
}

.pj-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 22px; font-weight: 500;
  color: #1a1a1a; margin-bottom: 12px;
  letter-spacing: 1px;
}

.pj-desc {
  font-size: 13px;
  color: #777;
  line-height: 2.1;
  margin-bottom: 16px;
}

.pj-arrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px; color: #ccc;
  transition: color 0.3s, transform 0.3s;
  display: inline-block;
}

.pj:hover .pj-arrow { color: #2a2a2a; transform: translateX(4px); }

/* ===========================
   全活動CTA
   =========================== */
.all-works-cta { padding: 40px 0 80px; }

.cta-link {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; color: #999; letter-spacing: 1px;
  transition: color 0.3s;
}
.cta-link:hover { color: #2a2a2a; }
.cta-link svg { transition: transform 0.3s; }
.cta-link:hover svg { transform: translateX(6px); }

/* ===========================
   ステートメント
   =========================== */
.statement {
  padding: 100px 0;
  background: #1a1e2a; color: #fff;
}

.statement-quote {
  max-width: 600px;
}

.statement-quote p {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 400;
  line-height: 2.4;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.75);
}

/* ===========================
   About導入（トップ）
   =========================== */
.about-teaser { padding: 100px 0; }

.about-teaser-inner {
  display: flex; gap: 48px; align-items: center;
}

.about-teaser-photo {
  flex-shrink: 0;
  width: 240px; height: 300px;
  border-radius: 3px; overflow: hidden;
  background: #e8e6e0;
}

.about-teaser-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.about-teaser-ph {
  width: 100%; height: 100%;
  background: #e8e6e0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px; color: #b8b4ac;
}

.about-teaser-body { flex: 1; }
.about-teaser-body .label-en { display: block; margin-bottom: 14px; }
.about-teaser-body p { font-size: 14px; color: #666; line-height: 2.2; margin-bottom: 20px; }

.text-link {
  font-size: 13px; color: #999;
  border-bottom: 1px solid #ddd; padding-bottom: 1px;
  transition: color 0.3s, border-color 0.3s;
}
.text-link:hover { color: #2a2a2a; border-color: #2a2a2a; }

/* ===========================
   ページヒーロー（下層共通）
   =========================== */
.page-hero {
  padding: 130px 0 44px;
  background: #f8f7f4;
}

.page-hero-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px; font-weight: 500;
  letter-spacing: 3px; text-transform: uppercase;
  color: #bbb; display: block; margin-bottom: 8px;
}

.page-hero-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 28px; font-weight: 500;
  color: #1a1a1a; letter-spacing: 2px;
}

/* ===========================
   About ページ
   =========================== */
.about-main { padding: 56px 0 72px; border-bottom: 1px solid #eae8e3; }

.about-layout {
  display: flex; gap: 48px; align-items: flex-start;
}

.about-photo {
  flex-shrink: 0; width: 220px; height: 280px;
  border-radius: 3px; overflow: hidden;
  background: #e8e6e0;
}

.about-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.about-photo-ph {
  width: 100%; height: 100%;
  background: #e8e6e0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px; color: #b8b4ac;
}

.about-body { flex: 1; }

.about-role {
  font-size: 12px; color: #aaa;
  letter-spacing: 1px; margin-bottom: 20px;
}

.about-text p {
  font-size: 14px; color: #555;
  line-height: 2.2; margin-bottom: 16px;
}

/* Values */
.about-values { padding: 72px 0; }

.section-heading {
  font-family: 'Noto Serif JP', serif;
  font-size: 18px; font-weight: 500;
  color: #1a1a1a; margin-bottom: 40px;
  letter-spacing: 1px;
}

.values-list { display: flex; flex-direction: column; gap: 0; }

.val {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 28px 0;
  border-bottom: 1px solid #eae8e3;
}

.val:last-child { border-bottom: none; }

.val-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px; font-weight: 300;
  color: #ddd; line-height: 1;
  flex-shrink: 0; width: 40px;
}

.val-body h3 {
  font-size: 15px; font-weight: 500;
  color: #2a2a2a; margin-bottom: 6px;
}

.val-body p {
  font-size: 13px; color: #777; line-height: 2;
}

/* Career */
.about-career {
  padding: 72px 0;
  background: #f2f1ed;
}

.timeline { display: flex; flex-direction: column; }

.tl-item {
  display: flex; gap: 24px; align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid #e4e2dc;
}

.tl-year {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px; font-weight: 500;
  color: #bbb; letter-spacing: 1px;
  flex-shrink: 0; width: 48px;
}

.tl-item p { font-size: 14px; color: #555; }

.tl-detail {
  display: block;
  font-size: 12px; color: #aaa; margin-top: 2px;
}

/* ===========================
   Works 一覧
   =========================== */
.works-full { padding: 48px 0 72px; }

.wf-item {
  display: flex; gap: 36px; align-items: center;
  padding: 32px 0;
  border-bottom: 1px solid #eae8e3;
  color: inherit;
}
.wf-item:first-child { border-top: 1px solid #eae8e3; }

.wf-img {
  flex-shrink: 0; width: 280px;
  aspect-ratio: 16 / 10;
  border-radius: 3px; overflow: hidden;
}

.wf-ph {
  width: 100%; height: 100%;
  background: #efede8;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px; font-weight: 300; color: #b0ada6;
  letter-spacing: 1px;
  transition: transform 0.5s ease;
}
.wf-item:hover .wf-ph { transform: scale(1.03); }

.wf-img--photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.wf-item:hover .wf-img--photo img { transform: scale(1.03); }

.wf-img--logo {
  background: #fff;
  padding: 0;
  display: flex; align-items: center; justify-content: center;
}
.wf-img--logo img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.5s ease;
}
.wf-item:hover .wf-img--logo img { transform: scale(1.03); }

.wf-img--app {
  background: #fff;
  padding: 0;
}
.wf-img--app img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.wf-item:hover .wf-img--app img { transform: scale(1.03); }

.wf-info { flex: 1; }

.wf-cat {
  font-family: 'Montserrat', sans-serif;
  font-size: 9px; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase;
  color: #bbb; display: block; margin-bottom: 4px;
}

.wf-info h2 {
  font-size: 17px; font-weight: 500;
  color: #2a2a2a; margin-bottom: 6px;
  transition: color 0.3s;
}
.wf-item:hover .wf-info h2 { color: #666; }

.wf-info p { font-size: 13px; color: #999; line-height: 1.8; }

/* ===========================
   Works 詳細
   =========================== */
.detail-kv {
  padding-top: 64px;
  background: #efede8;
  display: flex; align-items: center; justify-content: center;
  min-height: 40vh;
}

.detail-kv-bg {
  display: flex; align-items: center; justify-content: center;
  width: 100%; padding: 48px 0;
}

.detail-kv-svg { width: min(50%, 240px); height: auto; }

.detail-content { padding: 48px 0 72px; }

.detail-header {
  padding-bottom: 24px;
  border-bottom: 1px solid #eae8e3;
  margin-bottom: 28px;
}

.detail-cat {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase;
  color: #bbb; display: block; margin-bottom: 8px;
}

.detail-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 26px; font-weight: 500;
  color: #1a1a1a; margin-bottom: 16px;
  letter-spacing: 1px;
}

.detail-meta { display: flex; gap: 28px; flex-wrap: wrap; }
.detail-meta dt {
  font-size: 10px; font-weight: 500; color: #bbb;
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 2px;
}
.detail-meta dd { font-size: 13px; color: #666; }

.detail-body { max-width: 660px; margin-bottom: 40px; }
.detail-body p { font-size: 14px; color: #555; line-height: 2.2; margin-bottom: 16px; }

.detail-gallery {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px; margin-bottom: 36px;
}

.detail-gal-item {
  aspect-ratio: 4 / 3;
  border-radius: 3px; overflow: hidden;
}

.detail-gal-ph {
  width: 100%; height: 100%;
  background: #efede8;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: #b8b4ac;
}

.detail-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding-top: 24px; border-top: 1px solid #eae8e3;
}

.detail-tags span {
  font-size: 11px; color: #aaa;
  padding: 3px 10px;
  border: 1px solid #e4e2dc;
  border-radius: 2px;
}

/* Related */
.related { padding: 56px 0; background: #f2f1ed; }
.related .label-en { display: block; margin-bottom: 20px; }

.related-list { display: flex; gap: 24px; }

.rel-item { flex: 1; color: inherit; max-width: 280px; }

.rel-thumb {
  aspect-ratio: 4 / 3; border-radius: 3px;
  overflow: hidden; margin-bottom: 8px;
}

.rel-ph {
  width: 100%; height: 100%;
  background: #e8e6e0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px; color: #b8b4ac;
  transition: transform 0.4s;
}
.rel-item:hover .rel-ph { transform: scale(1.03); }

.rel-item h3 {
  font-size: 13px; font-weight: 400; color: #777;
  transition: color 0.3s;
}
.rel-item:hover h3 { color: #2a2a2a; }

/* ===========================
   Contact
   =========================== */
.contact-section { padding: 48px 0 72px; }
.contact-inner { max-width: 480px; margin: 0 auto; }

.contact-lead {
  font-size: 14px; color: #777;
  line-height: 2; text-align: center; margin-bottom: 36px;
}

.contact-form { display: flex; flex-direction: column; gap: 18px; }

.form-group label {
  display: block; font-size: 11px; font-weight: 500;
  color: #aaa; letter-spacing: 0.5px; margin-bottom: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 10px 12px;
  border: 1px solid #ddd; border-radius: 2px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px; color: #2a2a2a;
  background: #fff; transition: border-color 0.3s; outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: #999; }
.form-group textarea { resize: vertical; }

.btn-submit {
  padding: 12px 36px;
  background: #2a2a2a; border: none;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px; color: #fff;
  cursor: pointer; transition: background 0.3s;
  align-self: center; border-radius: 2px;
  letter-spacing: 1px;
}
.btn-submit:hover { background: #555; }

/* ===========================
   フッター
   =========================== */
.footer {
  padding: 40px 0;
  background: #eeedea;
  border-top: 1px solid #e4e2dc;
}

.footer-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
}

.footer-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px; font-weight: 500;
  color: #999; letter-spacing: 1.5px;
}

.footer-nav { display: flex; gap: 16px; }
.footer-nav a {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px; color: #bbb;
  letter-spacing: 1px; text-transform: uppercase;
  transition: color 0.3s;
}
.footer-nav a:hover { color: #2a2a2a; }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; }
.footer-sns { display: flex; gap: 12px; }
.footer-sns a {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px; color: #ccc; letter-spacing: 1px;
  transition: color 0.3s;
}
.footer-sns a:hover { color: #2a2a2a; }
.footer-copy { font-size: 9px; color: #ddd; }

/* ===========================
   LP ページ共通
   =========================== */
.lp-hero {
  min-height: 80vh;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #1a1e2a 0%, #2a2e3a 100%);
  color: #fff;
  text-align: center;
  padding: 120px 28px 80px;
}

.lp-hero--school {
  background: linear-gradient(160deg, #1e2a1f 0%, #2a3a2e 100%);
}

/* 画像付きヒーロー */
.lp-hero--image {
  position: relative;
  overflow: hidden;
}

.lp-hero-bg {
  position: absolute; inset: 0;
  z-index: 0;
  overflow: hidden;
}

.lp-hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.22;
  filter: grayscale(30%) contrast(1.05);
}

.lp-hero--image .lp-hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,15,25,0.35) 0%, rgba(10,15,25,0.75) 100%);
}

.lp-hero--image .lp-hero-inner {
  position: relative;
  z-index: 1;
}

.lp-hero-logo {
  display: block;
  width: 80px;
  height: auto;
  margin: 0 auto 20px;
  opacity: 0.9;
  filter: brightness(0) invert(1);
}

/* アイコン中心のヒーロー */
.lp-hero--icon .lp-hero-inner {
  position: relative;
  z-index: 1;
}

.lp-hero-icon {
  width: 160px;
  height: 160px;
  margin: 0 auto 36px;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  display: flex; align-items: center; justify-content: center;
  padding: 18px;
}

.lp-hero-icon img {
  width: 100%; height: 100%;
  object-fit: contain;
}

.lp-hero--school .lp-hero-icon {
  padding: 0;
}

.lp-hero-inner { max-width: 640px; }

.lp-hero-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px; font-weight: 500;
  letter-spacing: 4px; text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 28px;
}

.lp-hero-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 500;
  line-height: 2;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.92);
  margin-bottom: 20px;
}

.lp-hero-sub {
  font-size: 13px;
  line-height: 2.2;
  color: rgba(255,255,255,0.45);
  letter-spacing: 1px;
}

.lp-section {
  padding: 80px 0;
}

.lp-section--alt {
  background: #f2f1ed;
}

.lp-heading {
  font-family: 'Noto Serif JP', serif;
  font-size: 20px; font-weight: 500;
  color: #1a1a1a;
  letter-spacing: 1px;
  margin-bottom: 40px;
  text-align: center;
}

.lp-text-block {
  max-width: 640px;
  margin: 0 auto;
}

.lp-text-block p {
  font-size: 14px;
  color: #555;
  line-height: 2.2;
  margin-bottom: 16px;
}

/* LP Pain */
.lp-pain-list {
  max-width: 640px;
  margin: 0 auto;
  display: flex; flex-direction: column; gap: 0;
}

.lp-pain {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid #eae8e3;
}

.lp-pain:last-child { border-bottom: none; }

.lp-pain-icon {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px; color: #ccc;
  flex-shrink: 0;
  margin-top: 2px;
}

.lp-pain p {
  font-size: 14px;
  color: #555;
  line-height: 2;
}

/* LP Features */
.lp-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.lp-feature {
  padding: 28px 20px;
  background: #fff;
  border-radius: 4px;
  border: 1px solid #eae8e3;
}

.lp-section--alt .lp-feature {
  background: #fff;
}

.lp-feature-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px; font-weight: 300;
  color: #ddd;
  display: block; margin-bottom: 12px; line-height: 1;
}

.lp-feature h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 16px; font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.lp-feature p {
  font-size: 13px;
  color: #777;
  line-height: 2;
}

.lp-feature-img {
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  overflow: hidden;
  margin: -28px -20px 20px;
  margin-top: -28px;
  background: #f0efeb;
}

.lp-feature-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.lp-features--image .lp-feature {
  padding-top: 0;
  overflow: hidden;
}

.lp-features--image .lp-feature:hover .lp-feature-img img {
  transform: scale(1.03);
}

/* LP 画像ブロック */
.lp-image-block {
  max-width: 720px;
  margin: 48px auto 0;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

.lp-image-block img {
  width: 100%; height: auto; display: block;
}

.lp-image-block--wide {
  max-width: 880px;
  margin-top: 0;
  margin-bottom: 48px;
}

/* LP サブテキスト */
.lp-sub-text {
  max-width: 640px;
  margin: -24px auto 36px;
  text-align: center;
  font-size: 13px;
  color: #777;
  line-height: 2;
}

/* LP 2カラム */
.lp-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 760px;
  margin: 0 auto;
}

.lp-two-col-item {
  padding: 24px 24px;
  background: #fff;
  border: 1px solid #eae8e3;
  border-radius: 4px;
}

.lp-two-col-item h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 15px; font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 14px;
}

.lp-two-col-item ul {
  list-style: none;
  display: flex; flex-direction: column; gap: 8px;
}

.lp-two-col-item li {
  font-size: 13px;
  color: #666;
  line-height: 1.8;
  padding-left: 14px;
  position: relative;
}

.lp-two-col-item li::before {
  content: '▶';
  position: absolute; left: 0;
  color: #ccc;
  font-size: 9px;
  top: 4px;
}

/* LP 特典グリッド */
.lp-bonus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 840px;
  margin: 0 auto;
}

.lp-bonus-item {
  background: #fff;
  border: 1px solid #eae8e3;
  border-radius: 4px;
  overflow: hidden;
}

.lp-bonus-item img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid #eae8e3;
}

.lp-bonus-item h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 15px; font-weight: 500;
  color: #1a1a1a;
  padding: 18px 20px 6px;
}

.lp-bonus-item p {
  font-size: 12px;
  color: #777;
  line-height: 1.9;
  padding: 0 20px 20px;
}

/* LP ギャラリー 4カラム拡張 */
.lp-gallery--4 {
  grid-template-columns: repeat(4, 1fr);
}

/* LP 学習環境 */
.lp-env-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.lp-env-item {}

.lp-env-img {
  aspect-ratio: 16 / 10;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 16px;
  background: #efede8;
  border: 1px solid #eae8e3;
}

.lp-env-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.lp-env-item:hover .lp-env-img img {
  transform: scale(1.03);
}

.lp-env-item h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 15px; font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.lp-env-item p {
  font-size: 12px;
  color: #888;
  line-height: 1.9;
}

/* LP ギャラリー */
.lp-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.lp-gallery-item {
  aspect-ratio: 1 / 1;
  border-radius: 3px;
  overflow: hidden;
  background: #efede8;
}

.lp-gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.lp-gallery-item:hover img {
  transform: scale(1.05);
}

/* LP Flow */
.lp-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.lp-flow-step {
  text-align: center;
  position: relative;
}

.lp-flow-step::after {
  content: '';
  position: absolute;
  top: 20px; right: -12px;
  width: 1px; height: 20px;
  background: #ddd;
  transform: rotate(-30deg);
}

.lp-flow-step:last-child::after { display: none; }

.lp-flow-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 9px; font-weight: 500;
  letter-spacing: 2px;
  color: #bbb;
  display: block;
  margin-bottom: 12px;
}

.lp-flow-step h3 {
  font-size: 14px; font-weight: 500;
  color: #2a2a2a;
  margin-bottom: 8px;
}

.lp-flow-step p {
  font-size: 12px;
  color: #999;
  line-height: 1.9;
}

/* LP Results */
.lp-results {
  display: flex; flex-direction: column;
  gap: 0;
  max-width: 640px;
  margin: 0 auto;
}

.lp-result {
  padding: 28px 0;
  border-bottom: 1px solid #eae8e3;
}

.lp-result:last-child { border-bottom: none; }

.lp-result-text {
  font-family: 'Noto Serif JP', serif;
  font-size: 15px;
  color: #444;
  line-height: 2.2;
  margin-bottom: 8px;
}

.lp-result-attr {
  font-size: 12px;
  color: #bbb;
}

/* LP Compare */
.lp-compare {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 680px;
  margin: 0 auto;
}

.lp-compare-item {
  padding: 28px 24px;
  background: #fff;
  border: 1px solid #eae8e3;
  border-radius: 4px;
}

.lp-compare-item--highlight {
  background: #1a1e2a;
  border-color: #1a1e2a;
  color: #fff;
}

.lp-compare-item h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 16px; font-weight: 500;
  margin-bottom: 16px;
}

.lp-compare-item--highlight h3 {
  color: rgba(255,255,255,0.92);
}

.lp-compare-item ul {
  list-style: none;
  display: flex; flex-direction: column; gap: 10px;
}

.lp-compare-item li {
  font-size: 13px;
  color: #666;
  line-height: 1.8;
  padding-left: 16px;
  position: relative;
}

.lp-compare-item li::before {
  content: '·';
  position: absolute; left: 0;
  color: #ccc;
}

.lp-compare-item--highlight li {
  color: rgba(255,255,255,0.65);
}

.lp-compare-item--highlight li::before {
  color: rgba(255,255,255,0.3);
}

/* LP CTA */
.lp-cta {
  padding: 80px 0;
  background: #1a1e2a;
}

.lp-cta-inner {
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}

.lp-cta-inner h2 {
  font-family: 'Noto Serif JP', serif;
  font-size: 22px; font-weight: 500;
  color: rgba(255,255,255,0.92);
  margin-bottom: 14px;
  letter-spacing: 1px;
}

.lp-cta-inner p {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  line-height: 2.2;
  margin-bottom: 28px;
}

.lp-cta-btn {
  display: inline-block;
  padding: 14px 40px;
  background: #fff;
  color: #1a1a1a;
  font-size: 13px; font-weight: 500;
  letter-spacing: 1px;
  border-radius: 2px;
  transition: background 0.3s, transform 0.3s;
}

.lp-cta-btn:hover {
  background: #f0efeb;
  transform: translateY(-1px);
}

/* ===========================
   アプリ ポートフォリオ
   =========================== */
.app-kv {
  min-height: 80vh;
  display: flex; align-items: center;
  background: linear-gradient(160deg, #0f1724 0%, #1a2236 100%);
  padding: 100px 28px 60px;
  overflow: hidden;
}

.app-kv-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex; align-items: center; gap: 60px;
  width: 100%;
}

.app-kv-text { flex: 1; }

.app-kv-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px; font-weight: 500;
  letter-spacing: 4px; text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  display: block; margin-bottom: 20px;
}

.app-kv-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.92);
  margin-bottom: 16px;
}

.app-kv-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 1px;
}

/* KV ロゴ */
.app-kv-logo {
  flex-shrink: 0;
  width: 240px;
  height: 240px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}

.app-kv-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* KV スタック（3枚重ね） */
.app-kv-stack {
  flex-shrink: 0;
  position: relative;
  width: 360px;
  height: 280px;
}

.app-kv-stack-item {
  position: absolute;
  width: 220px;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 30px 60px rgba(0,0,0,0.45);
  transition: transform 0.5s ease;
}

.app-kv-stack-item img {
  width: 100%;
  height: auto;
  display: block;
}

.app-kv-stack-item--back {
  top: 0;
  right: 0;
  transform: rotate(6deg);
  opacity: 0.85;
}

.app-kv-stack-item--mid {
  top: 30px;
  left: 50px;
  transform: rotate(-4deg);
  opacity: 0.92;
}

.app-kv-stack-item--front {
  top: 60px;
  left: 10px;
  transform: rotate(2deg);
  z-index: 2;
}

.app-kv-stack:hover .app-kv-stack-item--back  { transform: rotate(8deg) translate(6px, -4px); }
.app-kv-stack:hover .app-kv-stack-item--mid   { transform: rotate(-6deg) translate(-4px, -2px); }
.app-kv-stack:hover .app-kv-stack-item--front { transform: rotate(3deg) translate(2px, 2px); }

/* Phone mockup */
.app-kv-mockup {
  flex-shrink: 0;
}

.app-mockup-phone {
  width: 220px;
  background: #1e2538;
  border-radius: 28px;
  border: 2px solid rgba(255,255,255,0.1);
  padding: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.app-mockup-screen {
  background: #fff;
  border-radius: 20px;
  padding: 0 16px 20px;
  min-height: 380px;
}

.app-mockup-statusbar {
  height: 28px;
  display: flex; align-items: center; justify-content: center;
}

.app-mockup-statusbar::after {
  content: '';
  width: 40px; height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
}

.app-mockup-header {
  font-size: 13px; font-weight: 500;
  color: #2a2a2a;
  text-align: center;
  padding: 8px 0 14px;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 14px;
}

.app-mockup-card {
  background: #f8f7f4;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 10px;
}

.app-mockup-line {
  height: 6px;
  background: #e8e6e0;
  border-radius: 3px;
  margin-bottom: 6px;
}

.app-mockup-line:last-child { margin-bottom: 0; }

.w40 { width: 40%; }
.w50 { width: 50%; }
.w60 { width: 60%; }
.w70 { width: 70%; }
.w80 { width: 80%; }
.w90 { width: 90%; }

.app-mockup-btn {
  background: #2a2a2a;
  color: #fff;
  font-size: 11px;
  text-align: center;
  padding: 8px;
  border-radius: 4px;
  margin-top: 14px;
}

.app-mockup-field {
  padding: 10px 12px;
  margin-bottom: 8px;
}

.app-mockup-field span {
  font-size: 9px;
  color: #bbb;
  display: block;
  margin-bottom: 4px;
}

.app-mockup-field .app-mockup-line {
  margin-bottom: 0;
}

.app-mockup-hypothesis {
  padding: 10px 12px;
  background: #f8f7f4;
  border-radius: 6px;
  margin-bottom: 8px;
}

.app-hypo-tag {
  font-size: 9px; font-weight: 500;
  color: #999;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.app-hypo-status {
  font-size: 9px;
  color: #bbb;
  margin-top: 6px;
  padding: 2px 8px;
  background: #f0efeb;
  border-radius: 2px;
  display: inline-block;
}

.app-hypo-status.done {
  background: #e6f4ea;
  color: #5a9a6a;
}

/* App sections */
.app-section {
  padding: 80px 0;
}

.app-section--alt {
  background: #f2f1ed;
}

.app-heading {
  font-family: 'Noto Serif JP', serif;
  font-size: 20px; font-weight: 500;
  color: #1a1a1a;
  letter-spacing: 1px;
  margin-bottom: 40px;
}

/* App overview */
.app-overview {
  display: flex; gap: 48px;
  align-items: flex-start;
}

.app-overview-meta {
  flex-shrink: 0;
  width: 200px;
  display: flex; flex-direction: column; gap: 16px;
}

.app-overview-meta dl {}

.app-overview-meta dt {
  font-size: 10px; font-weight: 500;
  color: #bbb;
  letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 2px;
}

.app-overview-meta dd {
  font-size: 13px; color: #555;
}

.app-overview-text { flex: 1; }

.app-overview-text p {
  font-size: 14px;
  color: #555;
  line-height: 2.2;
}

/* App screens */
.app-screens {
  display: flex; flex-direction: column;
  gap: 60px;
}

.app-screen-item {
  display: flex; align-items: center; gap: 48px;
}

.app-screen-item--reverse {
  flex-direction: row-reverse;
}

.app-screen-mockup {
  flex-shrink: 0;
}

.app-mini-phone {
  width: 180px;
  background: #2a2a2a;
  border-radius: 24px;
  border: 2px solid #e4e2dc;
  padding: 6px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.app-mini-screen {
  background: #fff;
  border-radius: 18px;
  padding: 0 12px 16px;
  min-height: 300px;
}

.app-mini-screen .app-mockup-statusbar::after {
  width: 32px; height: 3px;
}

.app-mini-screen .app-mockup-header {
  font-size: 11px;
  padding: 6px 0 10px;
}

.app-mini-screen .app-mockup-card {
  padding: 8px;
  margin-bottom: 6px;
}

.app-mini-screen .app-mockup-line {
  height: 4px;
  margin-bottom: 4px;
}

.app-mini-screen .app-mockup-btn {
  font-size: 9px;
  padding: 6px;
  margin-top: 10px;
}

.app-mini-screen .app-mockup-field {
  padding: 6px 8px;
  margin-bottom: 4px;
}

.app-mini-screen .app-mockup-field span {
  font-size: 8px;
}

.app-mini-screen .app-mockup-hypothesis {
  padding: 6px 8px;
  margin-bottom: 4px;
}

.app-mini-screen .app-hypo-tag {
  font-size: 8px;
  margin-bottom: 3px;
}

.app-mini-screen .app-hypo-status {
  font-size: 8px;
  margin-top: 3px;
}

.app-screen-info { flex: 1; }

.app-screen-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px; font-weight: 300;
  color: #ddd;
  display: block; margin-bottom: 6px; line-height: 1;
}

.app-screen-info h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 18px; font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 14px;
}

.app-screen-info p {
  font-size: 13px;
  color: #777;
  line-height: 2;
}

.app-screen-info ul {
  list-style: none;
  display: flex; flex-direction: column; gap: 6px;
}

.app-screen-info li {
  font-size: 13px;
  color: #666;
  line-height: 1.9;
  padding-left: 16px;
  position: relative;
}

.app-screen-info li::before {
  content: '▶';
  position: absolute; left: 0;
  color: #bbb;
  font-size: 9px;
  top: 4px;
}

/* 実写スクショ */
.app-screen-real {
  flex-shrink: 0;
  width: 360px;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #eae8e3;
  box-shadow: 0 16px 40px rgba(0,0,0,0.06);
}

.app-screen-real img {
  width: 100%; height: auto; display: block;
}

/* App process */
.app-process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.app-process-step {
  padding: 24px 16px;
  border-top: 2px solid #eae8e3;
}

.app-process-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px; font-weight: 300;
  color: #ddd;
  display: block; margin-bottom: 10px; line-height: 1;
}

.app-process-step h3 {
  font-size: 14px; font-weight: 500;
  color: #2a2a2a;
  margin-bottom: 8px;
}

.app-process-step p {
  font-size: 12px;
  color: #999;
  line-height: 1.9;
}

/* App tech */
.app-tech {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.app-tech-item {
  padding: 24px 20px;
  background: #fff;
  border-radius: 4px;
  border: 1px solid #eae8e3;
}

.app-tech-item h3 {
  font-size: 12px; font-weight: 500;
  color: #aaa;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.app-tech-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
}

.app-tech-tags span {
  font-size: 12px; color: #555;
  padding: 4px 10px;
  background: #f8f7f4;
  border-radius: 2px;
}

/* App future */
.app-future {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.app-future h2 {
  font-family: 'Noto Serif JP', serif;
  font-size: 22px; font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.app-future p {
  font-size: 14px;
  color: #666;
  line-height: 2.2;
}

/* ===========================
   GSAP reveal
   =========================== */
[data-gsap="reveal"],
[data-gsap="project"] {
  opacity: 0;
  transform: translateY(20px);
}

/* ===========================
   レスポンシブ
   =========================== */
@media (max-width: 768px) {
  .container, .container-wide { padding: 0 18px; }
  .nav { padding: 14px 18px; }
  .sp-only { display: inline; }

  .nav-links {
    display: none; position: fixed; inset: 0;
    background: rgba(248,247,244,0.98);
    flex-direction: column; align-items: center; justify-content: center; gap: 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 13px; }
  .nav-toggle { display: flex; }

  .hero { flex-direction: column; min-height: auto; }
  .hero-text { padding: 100px 20px 48px; min-height: 60vh; }
  .hero-text-inner { max-width: 100%; }
  .hero-visual { min-height: 40vh; flex: none; }
  .hero-scroll-wrap { display: none; }
  .hero-pillars { flex-wrap: wrap; }

  .pillars-grid { grid-template-columns: 1fr; gap: 32px; }

  .pj, .pj--reverse { flex-direction: column; gap: 20px; }
  .pj-num { font-size: 48px; }

  .about-teaser-inner { flex-direction: column; gap: 28px; }
  .about-teaser-photo { width: 180px; height: 230px; }

  .about-layout { flex-direction: column; gap: 28px; }
  .about-photo { width: 160px; height: 200px; }

  .wf-item { flex-direction: column; gap: 14px; }
  .wf-img { width: 100%; }

  .detail-gallery { grid-template-columns: 1fr; }
  .related-list { flex-direction: column; }

  .page-hero { padding: 100px 0 32px; }
  .page-hero-title { font-size: 24px; }

  .footer-top, .footer-bottom {
    flex-direction: column; gap: 10px; align-items: flex-start;
  }

  /* LP responsive */
  .lp-hero { padding: 100px 20px 60px; min-height: 60vh; }
  .lp-hero-icon { width: 120px; height: 120px; margin-bottom: 28px; border-radius: 20px; }
  .lp-features { grid-template-columns: 1fr; gap: 20px; }
  .lp-flow { grid-template-columns: 1fr 1fr; gap: 20px; }
  .lp-flow-step::after { display: none; }
  .lp-compare { grid-template-columns: 1fr; gap: 16px; }
  .lp-env-grid { grid-template-columns: 1fr; gap: 24px; }
  .lp-gallery { grid-template-columns: 1fr 1fr; }
  .lp-gallery--4 { grid-template-columns: 1fr 1fr; }
  .lp-two-col { grid-template-columns: 1fr; gap: 16px; }
  .lp-bonus-grid { grid-template-columns: 1fr; gap: 20px; }

  /* App portfolio responsive */
  .app-kv { padding: 100px 20px 48px; min-height: auto; }
  .app-kv-inner { flex-direction: column; gap: 36px; text-align: center; }
  .app-mockup-phone { width: 200px; margin: 0 auto; }
  .app-kv-stack { width: 280px; height: 240px; margin: 0 auto; }
  .app-kv-stack-item { width: 170px; }
  .app-overview { flex-direction: column; gap: 28px; }
  .app-overview-meta { width: 100%; flex-direction: row; flex-wrap: wrap; gap: 20px; }
  .app-screen-item,
  .app-screen-item--reverse { flex-direction: column; gap: 28px; }
  .app-screen-real { width: 100%; max-width: 360px; }
  .app-process { grid-template-columns: 1fr 1fr; gap: 20px; }
  .app-tech { grid-template-columns: 1fr 1fr; gap: 16px; }
}

/* ============================================
   Instagram Section
   ============================================ */
.instagram-section {
  padding: 140px 0 120px;
  background: var(--color-bg, #faf8f4);
}
.instagram-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 56px;
  padding: 0 40px;
}
.instagram-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 38px;
  font-weight: 500;
  margin: 12px 0 16px;
  letter-spacing: 0.04em;
}
.instagram-lead {
  font-size: 15px;
  line-height: 1.9;
  color: #555;
  max-width: 480px;
}
.instagram-handle {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  letter-spacing: 0.08em;
  color: #1a1a1a;
  text-decoration: none;
  border-bottom: 1px solid #1a1a1a;
  padding-bottom: 4px;
  transition: opacity 0.3s;
  white-space: nowrap;
}
.instagram-handle:hover { opacity: 0.6; }

/* Instagram reel — flowing carousel of post slides */
.ig-reel {
  position: relative;
  overflow: hidden;
  padding: 20px 0 40px;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 140px, #000 calc(100% - 140px), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 140px, #000 calc(100% - 140px), transparent 100%);
}
.ig-reel-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: ig-reel-scroll 180s linear infinite;
  will-change: transform;
}
.ig-reel:hover .ig-reel-track,
.ig-reel-track:focus-within {
  animation-play-state: paused;
}
@keyframes ig-reel-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ig-slide {
  position: relative;
  flex-shrink: 0;
  width: 260px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #ece7dc;
  box-shadow: 0 10px 26px rgba(30, 28, 22, 0.08);
  display: block;
  text-decoration: none;
  transition: transform 0.4s ease;
}
.ig-slide:hover { transform: translateY(-4px); }
.ig-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ig-slide-label {
  position: absolute;
  top: 16px;
  left: 16px;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(26, 26, 26, 0.72);
  padding: 6px 12px;
  backdrop-filter: blur(4px);
}
/* Mark end of a post with a wider gap to signal post boundary */
.ig-slide--last {
  margin-right: 56px;
}
@media (prefers-reduced-motion: reduce) {
  .ig-reel-track { animation: none; }
}

.ig-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.4s ease;
}
.ig-card:hover { transform: translateY(-4px); }

.ig-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #ece7dc;
  margin-bottom: 20px;
}
.ig-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, opacity 0.4s;
}
.ig-card:hover .ig-card-img img {
  transform: scale(1.04);
  opacity: 0.92;
}

/* Stack variant: cover + peek */
.ig-card-stack {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  margin-bottom: 92px; /* space for peek to extend below */
}
.ig-card-cover {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #ece7dc;
  box-shadow: 0 12px 28px rgba(30, 28, 22, 0.08);
  z-index: 2;
  transition: transform 0.5s ease;
}
.ig-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, opacity 0.4s;
}
.ig-card-peek {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 88%;
  height: 160px;
  overflow: hidden;
  background: #ece7dc;
  box-shadow: 0 10px 24px rgba(30, 28, 22, 0.08);
  z-index: 1;
  transition: top 0.5s ease, left 0.5s ease, right 0.5s ease;
}
.ig-card-peek img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: top center;
}
.ig-card--peek:hover .ig-card-cover {
  transform: translateY(-8px);
}
.ig-card--peek:hover .ig-card-peek {
  top: 92%;
  left: 6%;
  right: 6%;
}
.ig-card--peek:hover .ig-card-cover img {
  transform: scale(1.03);
  opacity: 0.95;
}

.ig-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 4px;
}
.ig-card-cat {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8a8272;
}
.ig-card-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.55;
  color: #1a1a1a;
  margin: 0;
  letter-spacing: 0.02em;
}
.ig-card-teaser {
  font-size: 13.5px;
  line-height: 1.85;
  color: #555;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ig-card-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #1a1a1a;
  margin-top: 6px;
  transition: letter-spacing 0.3s;
}
.ig-card:hover .ig-card-link { letter-spacing: 0.14em; }

@media (max-width: 768px) {
  .instagram-section { padding: 80px 0 80px; }
  .instagram-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 32px;
    padding: 0 24px;
  }
  .instagram-title { font-size: 28px; }
  .ig-reel {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
  }
  .ig-reel-track {
    gap: 12px;
    animation-duration: 140s;
  }
  .ig-slide { width: 190px; }
  .ig-slide--last { margin-right: 32px; }
  .ig-slide-label { font-size: 9px; padding: 5px 10px; }
}

/* ============================================
   Contact — LINE + Instagram channels
   ============================================ */
.contact-section .contact-lead {
  text-align: center;
  font-size: 17px;
  line-height: 2;
  color: #3a3a3a;
  margin: 0 auto 72px;
  max-width: 520px;
}
.contact-main {
  max-width: 720px;
  margin: 0 auto;
}
.contact-channel {
  background: #fff;
  border: 1px solid #ece7dc;
  padding: 56px 56px 60px;
  position: relative;
}
.contact-channel--line {
  background: linear-gradient(180deg, #fff 0%, #f6faf4 100%);
}
.channel-label {
  position: absolute;
  top: 28px;
  right: 32px;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8a8272;
}
.channel-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin: 0 0 20px;
  color: #1a1a1a;
}
.channel-desc {
  font-size: 14.5px;
  line-height: 2;
  color: #555;
  margin: 0 0 36px;
  max-width: 520px;
}
.channel-action {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

/* LINE button */
.line-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #06c755;
  color: #fff;
  text-decoration: none;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 18px 36px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(6, 199, 85, 0.22);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s;
}
.line-btn:hover {
  transform: translateY(-2px);
  background: #05b04b;
  box-shadow: 0 14px 30px rgba(6, 199, 85, 0.3);
}
.line-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* QR */
.line-qr {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #8a8272;
  font-size: 12px;
  letter-spacing: 0.06em;
}
.line-qr img {
  width: 84px;
  height: 84px;
  display: block;
  border: 1px solid #ece7dc;
  background: #fff;
  padding: 6px;
}

/* Divider between channels */
.contact-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 40px 0;
  position: relative;
}
.contact-divider::before,
.contact-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e6e1d4;
  max-width: 180px;
}
.contact-divider span {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #a8a090;
  padding: 0 20px;
}

/* Instagram button */
.ig-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #1a1a1a;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  letter-spacing: 0.08em;
  border-bottom: 1px solid #1a1a1a;
  padding-bottom: 6px;
  transition: letter-spacing 0.3s, opacity 0.3s;
}
.ig-btn:hover {
  letter-spacing: 0.12em;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .contact-section .contact-lead { font-size: 15px; margin-bottom: 48px; }
  .contact-channel { padding: 40px 28px 44px; }
  .channel-label { top: 20px; right: 20px; font-size: 9px; }
  .channel-title { font-size: 22px; }
  .channel-desc { font-size: 13.5px; margin-bottom: 28px; }
  .channel-action { gap: 20px; }
  .line-btn { padding: 16px 28px; font-size: 14px; width: 100%; justify-content: center; }
  .line-qr { width: 100%; justify-content: flex-start; }
  .contact-divider { margin: 28px 0; }
  .contact-divider::before,
  .contact-divider::after { max-width: 80px; }
}
