/* AITAID テーマ：トップページと共通部分（ヘッダー・フッター・固定タブ）のスタイル */
  :root {
    --red: #AC3A39;
    --ink: #222;
    --spark: #E2A93B;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  body {
    font-family: "Noto Sans JP", sans-serif;
    color: var(--ink);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }
  a { color: inherit; text-decoration: none; }

  /* Header：finbee同様、英字の小見出し＋日本語の2段 */
  .head {
    max-width: 1100px; margin: 0 auto; padding: 28px 24px 0;
    display: flex; align-items: center; justify-content: space-between;
  }
  .logo { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 15px; letter-spacing: .06em; }
  .logo img { width: 44px; height: 44px; object-fit: contain; }
  nav ul { display: flex; gap: 36px; list-style: none; }
  nav a { display: block; text-align: center; font-size: 13px; font-weight: 700; letter-spacing: .08em; }
  nav a small { display: block; font-family: "Quicksand", sans-serif; font-size: 10px; color: var(--red); letter-spacing: .06em; margin-bottom: 2px; }
  nav a:hover { color: var(--red); }
  .nav-cta { display: none; }
  .menu { display: none; width: 28px; height: 20px; position: relative; background: none; border: 0; }
  .menu::before, .menu::after, .menu span { content: ""; position: absolute; left: 0; right: 0; height: 3px; background: var(--ink); border-radius: 2px; }
  .menu::before { top: 0; } .menu span { top: 8.5px; } .menu::after { bottom: 0; }
  .menu::before, .menu::after, .menu span { transition: transform .25s, opacity .2s; }
  .nav-open .menu::before { transform: translateY(8.5px) rotate(45deg); }
  .nav-open .menu::after { transform: translateY(-8.5px) rotate(-45deg); }
  .nav-open .menu span { opacity: 0; }

  /* コピー */
  .copy { text-align: center; padding: 64px 24px 0; }
  .copy h1 {
    font-size: clamp(26px, 2.7vw, 38px);
    font-weight: 700; letter-spacing: .08em; line-height: 1.5;
  }
  .copy h1 .q { color: var(--red); }
  .copy p {
    margin-top: 20px;
    font-size: clamp(13px, 1.1vw, 15px); font-weight: 500;
    letter-spacing: .12em; line-height: 2;
  }
  .sp { display: none; }

  /* ===== 帯とイラスト ===== */
  .stage-wrap { position: relative; height: 400px; }
  .stage { position: absolute; left: 0; top: 0; width: 100%; height: 400px; overflow: hidden; }
  .band {
    position: absolute; left: 20px; right: 20px; bottom: 0; height: 96px;
    background: var(--red); border-radius: 6px;
  }
  .track {
    position: absolute; left: 0; bottom: 16px;
    display: flex; align-items: flex-end; width: max-content;
    animation: flow 45s linear infinite;
  }
  @keyframes flow { to { transform: translateX(-50%); } }

  .scene { position: relative; padding: 0 64px; display: flex; justify-content: center; }
  .track .scene { min-width: 220px; padding: 0 16px; }  /* つぶやきが隣とくっつかない幅 */
  .mscene {
    display: none; position: absolute; left: 50%; bottom: 46px; padding: 0;
    transform: translateX(-50%); transition: opacity .4s, transform .4s;
  }
  .mscene.hide { opacity: 0; transform: translateX(-50%) translateY(14px); }
  .smalls, .bigs { display: flex; align-items: flex-end; }
  /* 縦横比を守る（公開版の「img{max-width:100%}」で横だけ縮まないように） */
  .smalls, .bigs { width: max-content; }
  .smalls img, .bigs img { display: block; max-width: none; user-select: none; }
  .smalls { transform-origin: 50% 100%; transition: transform .35s cubic-bezier(.5,0,.75,0); }
  .bigs {
    position: absolute; left: 50%; bottom: 0; z-index: 3;
    transform: translateX(-50%) scale(0); transform-origin: 50% 100%;
    transition: transform .35s ease-in;
    pointer-events: none;
  }
  /* できた！の人の足元だけに出る影：finbee同様、濃さの違う楕円を3重に重ねたフラットな形 */
  .glow {
    position: absolute; left: 50%; bottom: -16px; width: 300px; height: 40px; z-index: 1;
    background: radial-gradient(closest-side, #8A2C2B 0 37%, #962F2E 37% 62%, #A13433 62% 100%, transparent 100%);
    transform: translateX(-50%) scale(0); transition: transform .4s ease;
  }
  .murmur, .done {
    position: absolute; left: 50%; white-space: nowrap;
    font-family: "Zen Maru Gothic", sans-serif; font-weight: 700; letter-spacing: .06em;
  }
  .murmur {
    bottom: calc(100% + 8px); font-size: 12px;
    transform: translateX(-50%) rotate(var(--rot, -7deg));
    transition: opacity .25s;
  }
  .done {
    bottom: 300px; font-size: 16px; z-index: 4;
    transform: translateX(-50%) rotate(-5deg) scale(.6); opacity: 0;
    transition: opacity .3s, transform .3s;
  }
  .done::before, .done::after { content: "✦"; position: absolute; color: var(--spark); font-size: 13px; }
  .done::before { left: -20px; top: -6px; }
  .done::after { right: -18px; top: 10px; font-size: 10px; }
  .spk { position: absolute; z-index: 4; color: var(--spark); font-size: 14px; opacity: 0; transform: scale(0); transition: .3s; }

  /* 「できた！」の状態 */
  .scene.on .smalls { transform: scale(0); }
  .scene.on .murmur { opacity: 0; }
  .scene.on .bigs { transform: translateX(-50%) scale(1); transition: transform .55s cubic-bezier(.3,1.6,.5,1) .15s; }
  .scene.on .glow { transform: translateX(-50%) scale(1); transition-delay: .15s; }
  .scene.on .done { opacity: 1; transform: translateX(-50%) rotate(-5deg) scale(1); transition-delay: .45s; }
  .scene.on .spk { opacity: 1; transform: scale(1); transition-delay: .55s; }

  /* マスコット：ロゴの赤い渦（＝きっかけ） */
  .mascot { position: absolute; left: 0; top: 0; width: 34px; z-index: 6; will-change: transform; }
  .mascot img { width: 100%; display: block; animation: bob 1.1s ease-in-out infinite;
    filter: drop-shadow(0 0 1.5px #fff) drop-shadow(0 0 1.5px #fff); }  /* 赤い帯の上でも見えるよう白い縁 */
  @keyframes bob { 50% { transform: translateY(-5px) rotate(8deg); } }
  .trail { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 5; pointer-events: none; overflow: visible; }

  /* 右端の固定タブ：finbeeの「ダウンロードはこちらから」にあたる */
  .tab {
    position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 20;
    background: #fff; border: 3px solid var(--red); border-right: 0;
    border-radius: 10px 0 0 10px; overflow: hidden; width: 52px;
  }
  .tab a {
    display: block; padding: 16px 0; writing-mode: vertical-rl; margin: 0 auto; width: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; letter-spacing: .14em;
  }
  .tab a small { display: none; }
  .tab a + a { background: var(--red); color: #fff; }
  .tab a:hover { opacity: .85; }


  @media (max-width: 1200px) {
    .tab { top: auto; bottom: 0; left: 0; right: 0; width: auto; transform: none; display: flex; border: 0; border-radius: 0; box-shadow: 0 -2px 10px rgba(0,0,0,.08); }
    .tab a { writing-mode: horizontal-tb; flex: 1; flex-direction: column; text-align: center; padding: 10px 8px; font-size: 12px; letter-spacing: .04em; line-height: 1.5; }
    .tab a small { display: block; font-size: 10px; font-weight: 500; opacity: .75; }
    footer { padding-bottom: 96px; }
  }
  @media (max-width: 860px) {
    .menu { display: block; position: relative; z-index: 40; }
    nav {
      position: fixed; inset: 0; z-index: 35; background: #fff; padding: 96px 28px 40px;
      opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
    }
    .nav-open nav { opacity: 1; visibility: visible; }
    .nav-open { overflow: hidden; }
    nav ul { flex-direction: column; gap: 0; }
    nav li + li { border-top: 1px solid #F0E3E3; }
    nav a { text-align: left; padding: 16px 4px; font-size: 16px; }
    nav a small { font-size: 11px; }
    .nav-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 32px; }
    .nav-cta a { text-align: center; padding: 12px 6px; border-radius: 10px; font-size: 11px; font-weight: 500; border: 2px solid var(--red); color: var(--red); }
    .nav-cta a + a { background: var(--red); color: #fff; }
    .nav-cta b { display: block; font-size: 14px; letter-spacing: .06em; }
    .logo img { width: 38px; height: 38px; }
    .head { padding: 20px 28px 0; }
    .copy { padding: 44px 28px 0; }
    .copy h1 { letter-spacing: .06em; }
    .copy p { letter-spacing: .06em; margin-top: 16px; }
    .sp { display: inline; }
    /* 帯ごと縮小して表示 */
    /* スマホ：finbee同様、帯の上に1場面だけを置いて切り替える */
    .stage-wrap, .stage { height: 380px; }
    .stage-wrap { margin-top: 20px; }
    .band { left: 16px; right: 16px; height: 170px; border-radius: 8px; }
    .track { display: none; }
    .mscene { display: flex; }
    .mscene .glow { width: 240px; }

  }

  /* ===== FVより下の共通：finbee同様、小さな日本語＋大きな英単語＋説明の3段見出し ===== */
  .sec { padding: 120px 24px 0; }
  .sec-head { text-align: center; }
  .sec-head .jp { font-size: 13px; font-weight: 700; letter-spacing: .12em; }
  .sec-head h2 {
    font-family: "Quicksand", sans-serif; font-weight: 700;
    font-size: clamp(44px, 5vw, 64px); line-height: 1.1; letter-spacing: .04em; margin-top: 4px;
  }
  .sec-head h2 span { color: var(--red); }
  .sec-head .sub { margin-top: 14px; font-size: 14px; font-weight: 500; letter-spacing: .1em; line-height: 2; }

  /* ===== About ===== */
  .about-body { max-width: 1040px; margin: 56px auto 0; position: relative; }
  .about-top { position: relative; z-index: 2; display: grid; grid-template-columns: 1.08fr 1fr; align-items: start; padding: 0 40px; }
  .panel {
    background: #fff; border: 3px solid var(--red); border-radius: 12px;
    padding: 40px 40px 36px; margin-right: -36px; position: relative; z-index: 2;
  }
  .panel .kicker { font-family: "Quicksand", sans-serif; font-size: 14px; color: var(--red); letter-spacing: .08em; }
  .panel h3 { margin-top: 8px; font-size: clamp(20px, 2vw, 25px); font-weight: 700; line-height: 1.75; letter-spacing: .06em; }
  .panel h3 mark { background: linear-gradient(transparent 58%, rgba(172, 58, 57, .2) 58%); color: inherit; padding: 0 2px; }
  .panel p { margin-top: 18px; font-size: 14px; line-height: 2.05; letter-spacing: .05em; }
  .photo {
    margin-top: 64px; aspect-ratio: 4 / 3; border-radius: 12px;
    background: #E7E2E1; color: #8A7F7E; display: flex; align-items: center; justify-content: center;
    text-align: center; font-size: 13px; font-weight: 700; line-height: 1.8;
  }
  .photo small { font-weight: 500; }
  .red-block {
    background: var(--red); border-radius: 14px; color: #fff;
    margin-top: -140px; padding: 172px 64px 40px;
  }
  .values-more { display: block; margin-top: 22px; text-align: center; font-size: 14px; font-weight: 700; letter-spacing: .08em; }
  .values-more:hover { text-decoration: underline; }

  /* ===== 事業紹介：4列＋2本柱のラベル（3列目で重なる） ===== */
  .biz {
    max-width: 1040px; margin: 64px auto 0;
    display: grid; grid-template-columns: repeat(4, 1fr); column-gap: 28px; row-gap: 0;
  }
  .axis {
    display: flex; align-items: baseline; justify-content: center; gap: 12px;
    height: 44px; line-height: 44px; border-radius: 22px; padding: 0 20px;
  }
  .axis b { font-size: 16px; letter-spacing: .12em; }
  .axis small { font-size: 12px; letter-spacing: .06em; opacity: .8; }
  .axis-biz { grid-column: 1 / 4; grid-row: 1; background: #F3DCDB; color: var(--red); margin-right: 40px; }
  .axis-ppl { grid-column: 3 / 5; grid-row: 2; background: var(--red); color: #fff; margin-top: 10px; margin-left: 40px; }
  .item { grid-row: 3; text-align: center; display: flex; flex-direction: column; align-items: center; margin-top: 24px; }
  .item p { font-size: 14px; line-height: 1.95; text-align: left; letter-spacing: .03em; margin-top: 10px; }
  .item > p:last-of-type { flex: 1; }
  .circle { position: relative; width: min(230px, 100%); aspect-ratio: 1; margin: 28px auto 0; border-radius: 50%; background: #F3F1F1; }
  .item.center .circle { background: #F6E4E3; }
  .badge {
    position: absolute; left: 50%; top: -28px; transform: translateX(-50%);
    width: 62px; height: 62px; border-radius: 50%; background: var(--red); color: #fff;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    font-family: "Quicksand", sans-serif; line-height: 1.05; z-index: 2;
  }
  .badge small { font-size: 9px; letter-spacing: .04em; }
  .badge b { font-size: 20px; }
  .ill { position: absolute; inset: 0; }
  /* 丸の中に余白を残し、上のバッジに頭がかからない位置に置く */
  .ill img { position: absolute; left: 13%; top: 17%; width: 74%; height: 74%; object-fit: contain; }
  .item h4 { margin-top: 22px; font-size: 19px; letter-spacing: .06em; }
  .item .more { display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 700; color: var(--red); letter-spacing: .06em; }
  .item .more2 { display: flex; gap: 18px; margin-top: 14px; font-size: 13px; font-weight: 700; color: var(--red); letter-spacing: .04em; }
  .item .more2 a:hover, a.item:hover .more { text-decoration: underline; }
  a.item:hover .circle { background: #EFE6E6; }
  .tags { display: none; }
  .award {
    position: absolute; right: -14px; bottom: -4px; z-index: 3;
    width: 88px; height: 88px; border-radius: 50%; background: #fff; border: 3px solid var(--red); color: var(--red);
    display: flex; align-items: center; justify-content: center; text-align: center;
    font-size: 10px; font-weight: 700; line-height: 1.3; letter-spacing: .02em; transform: rotate(8deg);
  }
  .award b { font-family: "Quicksand", sans-serif; font-size: 18px; line-height: 1; margin: 0 1px; }
  .award small { font-size: 9px; }
  .award-note { max-width: 1040px; margin: 40px auto 0; font-size: 12px; color: #777; text-align: center; letter-spacing: .03em; line-height: 1.8; }
  .tags i { font-style: normal; font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 12px; background: #F3DCDB; color: var(--red); }
  .tags i.p { background: var(--red); color: #fff; }
  @media (max-width: 1080px) {
    .biz { grid-template-columns: repeat(2, 1fr); column-gap: 48px; row-gap: 64px; max-width: 680px; }
    .axis { display: none; }
    .item { grid-row: auto; margin-top: 0; }
    .tags { display: flex; gap: 6px; justify-content: center; margin-bottom: 14px; }
  }

  /* ===== メンバー ===== */
  .members { max-width: 1040px; margin: 64px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 48px; }
  .member { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .face { position: relative; width: min(210px, 100%); aspect-ratio: 1; }
  .face::before {  /* 写真の右下にずらした赤い丸 */
    content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--red);
    transform: translate(10px, 10px);
  }
  .face img { position: relative; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; background: #eee; }
  .member .tag {
    margin-top: 30px; font-size: 12px; font-weight: 700; letter-spacing: .06em;
    padding: 3px 14px; border-radius: 12px; background: #F3DCDB; color: var(--red);
  }
  .member h3 { margin-top: 12px; font-size: 22px; letter-spacing: .14em; }
  .member .en { font-family: "Quicksand", sans-serif; font-size: 13px; color: #888; letter-spacing: .06em; margin-top: 2px; }
  .member .role { margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--red); letter-spacing: .06em; }
  .member p.bio { margin-top: 14px; font-size: 14px; line-height: 1.95; text-align: left; letter-spacing: .03em; }
  .members-more { display: block; width: max-content; margin: 56px auto 0; font-size: 14px; font-weight: 700; color: var(--red); letter-spacing: .08em; }
  .members-more:hover { text-decoration: underline; }
  @media (max-width: 860px) {
    .members { grid-template-columns: 1fr; row-gap: 64px; max-width: 340px; margin-top: 48px; }
    .face { width: 180px; }
  }

  /* ===== 会社概要 ===== */
  .company { max-width: 820px; margin: 56px auto 0; border-radius: 12px; overflow: hidden; border: 3px solid var(--red); }
  .company div { display: grid; grid-template-columns: 180px 1fr; padding: 20px 32px; font-size: 15px; line-height: 1.85; letter-spacing: .04em; }
  .company div:nth-child(odd) { background: #F8EEEE; }
  .company dt { font-weight: 700; color: var(--red); }
  .company dd a { color: var(--red); font-weight: 700; font-size: 13px; }
  .company dd a:hover { text-decoration: underline; }

  /* ===== 採用・お問い合わせ ===== */
  .cta { max-width: 1040px; margin: 120px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 0 24px; }
  .cta-box {
    position: relative; border-radius: 14px; padding: 48px 44px 44px; overflow: hidden;
    display: flex; flex-direction: column; min-height: 340px;
  }
  .cta-box.recruit { background: #F3DCDB; }
  .cta-box.contact { background: var(--red); color: #fff; }
  .cta-box .en2 { font-family: "Quicksand", sans-serif; font-size: 42px; line-height: 1; letter-spacing: .04em; }
  .cta-box.recruit .en2 { color: var(--red); }
  .cta-box .jp2 { margin-top: 8px; font-size: 13px; font-weight: 700; letter-spacing: .12em; }
  .cta-box h3 { margin-top: 28px; font-size: 21px; line-height: 1.7; letter-spacing: .08em; max-width: 64%; }
  .cta-box p { margin-top: 12px; font-size: 14px; line-height: 1.95; letter-spacing: .04em; max-width: 64%; flex: 1; }
  .cta-box .btn {
    align-self: flex-start; margin-top: 24px; position: relative; z-index: 2;
    padding: 14px 28px; border-radius: 999px; font-size: 14px; font-weight: 700; letter-spacing: .08em;
  }
  .cta-box.recruit .btn { background: var(--red); color: #fff; }
  .cta-box.contact .btn { background: #fff; color: var(--red); }
  .cta-box .btn:hover { opacity: .88; }
  .cta-box .sub-link { margin-top: 14px; font-size: 12px; position: relative; z-index: 2; opacity: .9; }
  .cta-box .sub-link a { text-decoration: underline; }
  .cta-ill { position: absolute; right: 22px; bottom: 0; }
  .cta-ill img { display: block; height: 250px; width: auto; max-width: none; }

  /* ===== フッター ===== */
  footer { margin-top: 120px; background: #222; color: #CFCFCF; padding: 64px 24px 36px; font-size: 13px; line-height: 1.9; }
  .foot { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; }
  .foot-logo { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 15px; letter-spacing: .06em; }
  .foot-logo img { width: 40px; height: 40px; object-fit: contain; background: #fff; border-radius: 8px; padding: 4px; }
  .foot address { font-style: normal; margin-top: 16px; }
  footer h5 { color: #fff; font-size: 13px; letter-spacing: .08em; margin-bottom: 12px; }
  footer ul { list-style: none; }
  footer li + li { margin-top: 6px; }
  footer a:hover { color: #fff; text-decoration: underline; }
  .foot .license { margin-top: 14px; font-size: 12px; }
  .copyright { max-width: 1040px; margin: 48px auto 0; font-family: "Quicksand", sans-serif; font-size: 12px; color: #8C8C8C; letter-spacing: .06em; }

  @media (max-width: 860px) {
    .company div { grid-template-columns: 1fr; padding: 16px 20px; }
    .cta { grid-template-columns: 1fr; padding: 0 28px; margin-top: 96px; }
    .cta-box { padding: 36px 24px 32px; min-height: 0; }
    .cta-box h3, .cta-box p { max-width: none; }
    .cta-ill { display: none; }
    .foot { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
    .foot > div:first-child { grid-column: 1 / -1; }
    footer { padding: 56px 28px 96px; }  /* 画面下の固定タブに隠れないように */
  }

  /* スクロールでふわっと出す（JSが動かないときは最初から表示） */
  .js .fade { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
  .js .fade.in { opacity: 1; transform: none; }

  @media (max-width: 860px) {
    .sec { padding: 88px 28px 0; }
    .sec-head .sub { letter-spacing: .04em; font-size: 13px; }
    .about-top { grid-template-columns: 1fr; padding: 0; }
    .panel { margin-right: 0; padding: 28px 24px; }
    .photo { margin: 16px 12px 0; }
    .red-block { margin-top: -80px; padding: 104px 20px 24px; border-radius: 12px; }
    .biz { grid-template-columns: 1fr; row-gap: 80px; margin-top: 48px; }
    .axis { display: none; }
    .item { grid-row: auto; max-width: 340px; width: 100%; margin: 0 auto; }

  }

  @media (prefers-reduced-motion: reduce) {
    .track { animation: none; }
    .mascot img { animation: none; }
    .js .fade { opacity: 1; transform: none; transition: none; }
  }

/* ===== About の写真（未設定の間はイラスト） ===== */
.photo.is-ill { background: #F3DCDB; align-items: flex-end; overflow: hidden; }
.photo.is-ill img { display: block; height: 88%; width: auto; max-width: none; }
.photo.is-photo { background: none; overflow: hidden; }
.photo.is-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
