/* =========================================================
   色の設定（ここを変えるとサイト全体の色が変わります）
   ========================================================= */
:root {
  --em: #3cc3a0;        /* エメラルドグリーン */
  --em-deep: #1f8f72;   /* 濃いエメラルド */
  --em-pale: #e5f7f0;   /* 淡いエメラルド */
  --red: #f08a8a;       /* 淡い赤 */
  --red-pale: #fdeaea;
  --blue: #6fa8e2;      /* 淡い青 */
  --blue-pale: #e7f0fb;
  --ink: #24403a;       /* 文字の色 */
  --ink-soft: #5d746e;
  --bg: #f7fcfa;        /* 背景 */
  --white: #fff;
  --radius: 24px;
  --shadow: 0 10px 30px rgba(31, 143, 114, .12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.9;
  letter-spacing: .04em;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }

/* ---------- 仮画像（画像が無いときに表示される枠） ---------- */
.ph {
  position: relative;
  background: linear-gradient(135deg, var(--em-pale), var(--blue-pale) 55%, var(--red-pale));
  overflow: hidden;
}
.ph::before {
  content: "画像：" attr(data-label);
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 13px; color: var(--ink-soft);
  font-family: Poppins, sans-serif;
  text-align: center; padding: 8px;
}
.ph img { position: relative; width: 100%; height: 100%; object-fit: cover; z-index: 1; }

/* ---------- ヘッダー ---------- */
.header {
  position: fixed; top: 12px; left: 12px; right: 12px; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px 10px 22px;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(12px);
  border-radius: 999px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .05);
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 36px; width: auto; }
.logo-text { font-family: Poppins, sans-serif; font-weight: 700; font-size: 22px; color: var(--em-deep); line-height: 1.1; }
.logo-text small { display: block; font-family: "Zen Maru Gothic"; font-size: 10px; font-weight: 500; color: var(--ink-soft); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; transition: background .2s; }
.nav a:hover { background: var(--em-pale); }
.nav .nav-cta { background: var(--em); color: #fff; }
.nav .nav-cta:hover { background: var(--em-deep); }
.menu-btn { display: none; }

/* ---------- 共通パーツ ---------- */
.section { padding: 110px 24px; max-width: 1120px; margin: 0 auto; }
.eyebrow {
  font-family: Poppins, sans-serif; font-weight: 600; font-size: 13px;
  letter-spacing: .2em; color: var(--em);
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; border-radius: 2px; }
.title { font-size: clamp(28px, 4.6vw, 46px); font-weight: 900; line-height: 1.45; margin-bottom: 28px; }
.lead { color: var(--ink-soft); margin: -12px 0 40px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 32px; border-radius: 999px;
  background: var(--em); color: #fff; font-weight: 700;
  box-shadow: 0 8px 20px rgba(60, 195, 160, .35);
  transition: transform .2s, background .2s;
}
.btn:hover { transform: translateY(-3px); background: var(--em-deep); }
.btn-outline { background: #fff; color: var(--em-deep); border: 2px solid var(--em); box-shadow: none; margin-top: 40px; }
.btn-outline:hover { background: var(--em-pale); }
.link { font-weight: 700; color: var(--em-deep); border-bottom: 2px solid var(--em); padding-bottom: 2px; }

/* スクロールで ふわっと表示 */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s, transform .8s; }
.reveal.is-show { opacity: 1; transform: none; }

/* ---------- ① ヒーロー ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-columns: 1fr minmax(300px, 460px); gap: 5vw; align-items: center;
  padding: 120px max(6vw, calc((100% - 1240px) / 2)) 80px; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(135deg, var(--em-pale), var(--bg) 45%, var(--blue-pale) 75%, var(--red-pale));
}
.hero-inner { position: relative; z-index: 3; }
.hero-visual {
  aspect-ratio: 1122 / 1402; border-radius: 28px;
  box-shadow: 0 24px 60px rgba(31, 60, 90, .22);
  transform: rotate(2deg); animation: pop 1s .3s both;
}
@keyframes pop { from { opacity: 0; transform: translateY(40px) rotate(6deg); } }
.hero-tag { font-family: Poppins, sans-serif; font-weight: 600; font-size: 13px; letter-spacing: .15em; color: var(--ink-soft); margin-bottom: 18px; }
.hero-tag span { display: inline-block; padding: 4px 12px; margin: 0 6px; border-radius: 999px; background: #fff; }
.hero-tag span:nth-child(1) { color: var(--em-deep); }
.hero-tag span:nth-child(2) { color: var(--blue); }
.hero-tag span:nth-child(3) { color: var(--red); }
.hero-copy { font-size: clamp(40px, 5.6vw, 84px); white-space: nowrap; font-weight: 900; line-height: 1.25; margin-bottom: 24px; }
.hero-copy span { display: block; opacity: 0; transform: translateY(40px); animation: rise .9s forwards; }
.hero-copy span:nth-child(1) { color: var(--em-deep); animation-delay: .2s; }
.hero-copy span:nth-child(2) { color: var(--blue); animation-delay: .45s; padding-left: .8em; }
.hero-copy span:nth-child(3) { color: var(--red); animation-delay: .7s; padding-left: 1.6em; }
@keyframes rise { to { opacity: 1; transform: none; } }
.hero-sub { font-size: clamp(15px, 1.6vw, 18px); font-weight: 500; margin-bottom: 36px; }
.bubble { position: absolute; border-radius: 50%; z-index: -1; filter: blur(2px); animation: float 8s ease-in-out infinite; }
.b1 { width: 180px; height: 180px; background: var(--em-pale); left: -40px; bottom: 60px; }
.b2 { width: 110px; height: 110px; background: var(--red-pale); left: 40%; top: 14%; animation-delay: -3s; }
.b3 { width: 70px; height: 70px; background: var(--blue-pale); left: 30%; bottom: 12%; animation-delay: -5s; }
@keyframes float { 50% { transform: translateY(-24px); } }

/* ---------- ② コンセプト ---------- */
.about { text-align: center; }
.about .eyebrow { justify-content: center; }
.about-body p { font-size: clamp(15px, 1.8vw, 18px); margin-bottom: 20px; }
.about-body strong { color: var(--em-deep); background: linear-gradient(transparent 60%, var(--em-pale) 60%); }
.keywords { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-top: 44px; }
.keywords li {
  width: 150px; height: 150px; border-radius: 50%;
  display: grid; place-items: center; font-size: 22px; font-weight: 900; color: #fff;
}
.k-em { background: var(--em); } .k-red { background: var(--red); } .k-blue { background: var(--blue); }

/* ---------- ③ 活動内容 ---------- */
.tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.tab { padding: 12px 26px; border-radius: 999px; background: #fff; font-weight: 700; border: 2px solid var(--c); color: var(--c); transition: .2s; }
.tab.is-active, .tab:hover { background: var(--c); color: #fff; }
.panel { display: none; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.panel.is-active { display: grid; animation: fade .5s; }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } }
.panel-img { aspect-ratio: 1; border-radius: 18px; }
.panel-img.wide { aspect-ratio: 1672 / 941; }
.panel-en { font-family: Poppins, sans-serif; font-size: 12px; letter-spacing: .2em; color: var(--ink-soft); }
.panel-text h3 { font-size: clamp(22px, 2.8vw, 30px); line-height: 1.5; margin: 8px 0 16px; }
.panel-text p { margin-bottom: 20px; }

/* ---------- ④ サイクル ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { background: #fff; border-radius: var(--radius); padding: 30px 24px; box-shadow: var(--shadow); border-top: 6px solid var(--c); position: relative; }
.step-no { font-family: Poppins, sans-serif; font-size: 44px; font-weight: 700; color: var(--c); opacity: .3; line-height: 1; }
.step-en { font-family: Poppins, sans-serif; font-size: 12px; letter-spacing: .2em; color: var(--c); margin-top: 10px; font-weight: 600; }
.step h3 { font-size: 22px; margin: 2px 0 8px; }
.step p:last-child { font-size: 14px; color: var(--ink-soft); }

/* ---------- ⑤ ギャラリー ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter { padding: 8px 20px; border-radius: 999px; background: #fff; font-size: 14px; font-weight: 700; border: 1px solid #d5ebe3; }
.filter.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.work { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); transition: transform .3s; }
.work:hover { transform: translateY(-6px); }
.work.is-hidden { display: none; }
.work .ph { aspect-ratio: 1; }
.work-body { padding: 14px 18px 18px; }
.work-cat { font-size: 11px; font-weight: 700; padding: 2px 10px; border-radius: 999px; color: #fff; }
.work-cat.stamp { background: var(--em); } .work-cat.ai { background: var(--blue); } .work-cat.resin { background: var(--red); }
.work h3 { font-size: 16px; margin-top: 6px; }

/* ---------- ⑥ キャラクター ---------- */
.characters { text-align: center; }
.characters .eyebrow { justify-content: center; }
.chara-list { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; margin-bottom: 36px; }
.chara-btn { display: flex; flex-direction: column; align-items: center; gap: 8px; font-family: Poppins, sans-serif; font-weight: 600; font-size: 13px; }
.chara-btn .ph { width: 96px; height: 96px; border-radius: 50%; border: 4px solid #fff; box-shadow: var(--shadow); transition: transform .3s, border-color .3s; }
.chara-btn .ph::before { content: attr(data-label); font-size: 10px; }
.chara-btn:hover .ph { transform: translateY(-6px) rotate(-4deg); }
.chara-btn.is-active .ph { border-color: var(--c); transform: scale(1.1); }
.chara-detail { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center; text-align: left; background: #fff; border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); max-width: 820px; margin: 0 auto; }
.chara-detail .ph { aspect-ratio: 1; border-radius: 20px; }
.chara-detail .ph img { object-fit: contain; }
.chara-en { font-family: Poppins, sans-serif; font-weight: 700; letter-spacing: .15em; }
.chara-detail h3 { font-size: 30px; }
.chara-catch { font-weight: 700; margin-bottom: 10px; }
.chara-hired { margin-top: 12px; font-weight: 900; color: var(--c); }
.chara-like { margin-top: 14px; font-size: 14px; padding: 10px 16px; border-radius: 12px; background: var(--bg); }

/* ---------- ⑦ AIノウハウ ---------- */
.learn { text-align: center; }
.learn .eyebrow { justify-content: center; }
.learn-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: left; }
.learn-card { background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.learn-card::after { content: ""; position: absolute; right: -30px; top: -30px; width: 100px; height: 100px; border-radius: 50%; background: var(--c); opacity: .15; }
.lv { font-family: Poppins, sans-serif; font-weight: 700; color: var(--c); font-size: 13px; letter-spacing: .15em; }
.learn-card h3 { font-size: 20px; line-height: 1.5; margin: 8px 0 12px; }
.learn-card p:last-child { font-size: 14px; color: var(--ink-soft); }

/* ---------- ⑧ 自己紹介 ---------- */
.profile-inner { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: center; }
.profile-img { aspect-ratio: 1; border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%; box-shadow: var(--shadow); }
.profile-name { font-size: 36px; font-weight: 900; }
.profile-name small { font-size: 14px; color: var(--ink-soft); }
.profile-role { color: var(--em-deep); font-weight: 700; margin-bottom: 18px; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 20px; }
.profile-message { margin-top: 8px; padding: 18px 22px; border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.profile-message strong { color: var(--em-deep); }
.tags li { font-size: 13px; padding: 4px 14px; border-radius: 999px; background: var(--em-pale); color: var(--em-deep); font-weight: 700; }
.tags li:nth-child(3n+2) { background: var(--blue-pale); color: #3a78b8; }
.tags li:nth-child(3n) { background: var(--red-pale); color: #c85a5a; }

/* ---------- ⑨ SNS ---------- */
.sns-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.sns-card { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 20px; align-items: center; padding: 28px 30px; border-radius: var(--radius); color: #fff; transition: transform .25s; }
.sns-card:hover { transform: translateY(-5px); }
.sns-card.x { background: #1d2b28; }
.sns-card.line { background: #06c755; }
.sns-icon { grid-row: span 2; width: 60px; height: 60px; border-radius: 16px; background: rgba(255, 255, 255, .15); display: grid; place-items: center; font-weight: 700; font-size: 20px; font-family: Poppins, sans-serif; }
.sns-name { font-weight: 700; font-size: 18px; }
.sns-id { font-size: 13px; opacity: .8; }
.arrow { grid-row: 1 / span 2; grid-column: 3; font-size: 22px; }

/* ---------- ⑩ FAQ ---------- */
.faq-list { max-width: 820px; }
.faq details { background: #fff; border-radius: 16px; margin-bottom: 12px; box-shadow: 0 4px 14px rgba(0, 0, 0, .04); }
.faq summary { padding: 20px 56px 20px 24px; font-weight: 700; cursor: pointer; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; font-family: Poppins; color: var(--em); margin-right: 12px; }
.faq summary::after { content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--em); transition: transform .3s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 24px 22px 50px; color: var(--ink-soft); }

/* ---------- ⑪ お問い合わせ ---------- */
.contact-box { text-align: center; padding: 70px 24px; border-radius: 40px; background: linear-gradient(135deg, var(--em-pale), var(--blue-pale) 60%, var(--red-pale)); }
.contact-box .eyebrow { justify-content: center; }
.contact-box > p:not(.eyebrow) { margin-bottom: 30px; }

/* ---------- フッター ---------- */
.footer { text-align: center; padding: 40px 20px 50px; font-size: 13px; color: var(--ink-soft); }
.footer-logo { font-family: Poppins, sans-serif; font-weight: 700; font-size: 26px; color: var(--em-deep); }
.to-top { position: fixed; right: 20px; bottom: 20px; width: 48px; height: 48px; border-radius: 50%; background: var(--em); color: #fff; display: grid; place-items: center; font-size: 20px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 40; }
.to-top.is-show { opacity: 1; pointer-events: auto; }

/* =========================================================
   スマホ表示（画面幅 900px 以下）
   ========================================================= */
@media (max-width: 900px) {
  .menu-btn { display: flex; flex-direction: column; justify-content: center; gap: 6px; width: 44px; height: 44px; border-radius: 50%; background: var(--em); z-index: 60; }
  .menu-btn span { display: block; width: 18px; height: 2px; background: #fff; margin: 0 auto; transition: .3s; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
  .nav { position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 8px; background: rgba(247, 252, 250, .98); opacity: 0; pointer-events: none; transition: opacity .3s; }
  .nav.is-open { opacity: 1; pointer-events: auto; }
  .nav a { font-size: 18px; }
  .section { padding: 80px 16px; }
  .hero { padding: 110px 16px 60px; }
  .panel, .chara-detail, .profile-inner { grid-template-columns: 1fr; gap: 24px; }
  .panel { padding: 16px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .learn-grid, .sns-grid { grid-template-columns: 1fr; }
  .profile-img { max-width: 280px; margin: 0 auto; }
  .chara-detail { padding: 20px; }
  .chara-detail .ph { max-width: 240px; margin: 0 auto; width: 100%; }
  .keywords li { width: 104px; height: 104px; font-size: 17px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  .logo-text small { display: none; }
  .chara-btn .ph { width: 72px; height: 72px; }
}
/* 画面幅 1000px 以下はトップを縦並びに */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; gap: 36px; min-height: auto; padding-bottom: 60px; }
  .hero-copy { font-size: clamp(40px, 10vw, 76px); }
  .hero-visual { width: min(100%, 420px); margin: 0 auto; transform: rotate(1.5deg); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .hero-copy span { opacity: 1; transform: none; }
}
