
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Noto+Sans+JP:wght@400;500;600;700&display=swap');

:root {
  --ink: #55536a;
  --muted: #9290a3;
  --lavender: #a38bbd;
  --blue: #dff1fb;
  --pink: #f9e5ef;
  --line: #eeeaf2;

  --topbar-h: 66px;
  --bottombar-h: 92px;

  --side-width: minmax(170px, 1fr);
  --content-width: minmax(420px, 680px);
  --toc-width: minmax(150px, 0.8fr);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f4f2f7;
  font-family: 'DM Sans', 'Noto Sans JP', sans-serif;
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}


/* =========================
   上部固定ヘッダー
========================= */

.topbar,
.bottombar {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 20;

  background: rgba(255,255,255,.97);

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 clamp(20px, 4vw, 64px);
}

.topbar {
  top: 0;
  height: var(--topbar-h);
  border-bottom: 1px solid #f0edf3;
}

.topbar-brand {
  color: #8c78a7;
  font-weight: 700;
  letter-spacing: .06em;
  font-size: 17px;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.top-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  color: #777187;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;

  transition: color .2s, transform .2s;
}

.top-nav a:hover {
  color: #a184bd;
  transform: translateY(-2px);
}


/* Google Fonts アイコン */

.material-symbols-rounded {
  font-size: 22px;
  line-height: 1;

  font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 24;
}


/* =========================
   下部固定フッター帯
========================= */

.bottombar {
  bottom: 0;
  min-height: var(--bottombar-h);

  justify-content: center;
  text-align: center;

  padding: 16px 20px;

  border-top: 1px solid #f0edf3;
}

.bottombar small {
  display: block;

  color: #9290a3;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .02em;
  line-height: 1.8;
}

.bottombar strong {
  font-weight: 600;
}


/* =========================
   3カラムレイアウト
========================= */

.layout {
  position: fixed;

  inset:
    var(--topbar-h)
    0
    var(--bottombar-h);

  display: grid;

  grid-template-columns:
    var(--side-width)
    var(--content-width)
    var(--toc-width);

  gap: clamp(18px, 3vw, 52px);

  justify-content: center;
  align-items: stretch;

  max-width: 1440px;
  margin: 0 auto;

  padding: 24px clamp(20px, 4vw, 64px);

  width: 100%;
  min-height: 0;
}


/* =========================
   左側：ロゴエリア
========================= */

.side-left,
.side-right {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.side-left {
  align-items: flex-start;
  justify-content: center;
}

.logo-link {
  display: block;
  width: min(100%, 340px);
}

.site-logo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}


/* =========================
   右側：目次
========================= */

.side-right {
  padding-top: 15vh;
}

.toc-title {
  margin: 0 0 24px;

  color: #a38bbd;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
}

.toc {
  display: grid;
  gap: 18px;
}

.toc a {
  color: #777187;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;

  transition: color .2s, padding .2s;
}

.toc a:hover {
  color: #a38bbd;
  padding-left: 5px;
}

.toc a span {
  color: #b6a7c7;
  margin-right: 8px;
}


/* =========================
   中央コンテンツ
========================= */

.content-frame {
  min-width: 0;
  height: 100%;

  overflow-y: auto;
  overscroll-behavior: contain;

  scrollbar-width: thin;
  scrollbar-color: #d8cce3 transparent;

  background: #fff;
  border-radius: 4px;

  box-shadow: 0 8px 35px rgba(89, 75, 110, .06);
}

.content-frame::-webkit-scrollbar {
  width: 6px;
}

.content-frame::-webkit-scrollbar-thumb {
  background: #d8cce3;
  border-radius: 8px;
}


/* =========================
   共通セクション
========================= */

.section {
  padding: clamp(34px, 6vw, 66px) clamp(25px, 6vw, 66px);
}


/* =========================
   HERO
========================= */

.hero {
  min-height: 420px;

  position: relative;
  overflow: hidden;

  display: flex;
  flex-direction: column;
  justify-content: center;

  background:
    linear-gradient(
      135deg,
      #e7f4fc 0%,
      #f1edfa 58%,
      #fcecf3 100%
    );
}

.eyebrow {
  margin: 0 0 12px;

  color: #a18ab8;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .2em;
}

/* HERO内ロゴ */

.hero-title {
  margin: 0;
  padding: 0;
  line-height: 0;
}

.hero-logo {
  display: block;

  width: min(100%, 340px);
  max-height: 300px;

  height: auto;
  object-fit: contain;
  object-position: left center;

  margin: 0 0 4px;
}

.hero-lead {
  margin: 22px 0 25px;

  color: #817d92;
  font-size: 12px;
  line-height: 2.1;
}

.text-link {
  width: fit-content;

  color: #8e79a8;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;

  border-bottom: 1px solid #c9b9d8;
  padding-bottom: 6px;
}

.text-link span {
  margin-left: 10px;
}

.hero-decoration {
  position: absolute;
  color: rgba(255,255,255,.9);
  pointer-events: none;
}

.decor-one {
  right: 12%;
  top: 18%;
  font-size: 45px;
}

.decor-two {
  right: 22%;
  bottom: 17%;
  font-size: 28px;
}


/* =========================
   見出し
========================= */

.section-heading {
  display: flex;
  align-items: flex-start;
  gap: 17px;
  margin-bottom: 25px;
}

.section-number {
  color: #b49fc8;
  font-size: 12px;
  font-weight: 700;
  padding-top: 2px;
}

.section-heading .eyebrow {
  margin-bottom: 5px;
}

.section-heading h2 {
  margin: 0;

  color: #69647e;
  font-size: 21px;
  letter-spacing: .06em;
}


/* =========================
   ABOUT
========================= */

.about {
  background: #fff;
}

.section-text {
  color: #777487;
  font-size: 13px;
  line-height: 2.1;
}

.muted {
  color: #a09baa;
}


/* =========================
   PROJECTS
========================= */

.projects {
  background: #fcfbfd;
}

.project-card {
  position: relative;

  display: flex;
  flex-direction: column;
  gap: 10px;

  min-height: 145px;
  padding: 24px;
  margin-top: 14px;

  border-radius: 4px;

  transition:
    transform .25s,
    box-shadow .25s;
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 9px 22px rgba(89,75,110,.08);
}

.project-blue {
  background: #e7f3fb;
}

.project-pink {
  background: #f9edf3;
}

.project-label {
  color: #9a8bad;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .16em;
}

.project-title {
  color: #6e6984;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: .04em;
}

.project-description {
  color: #888397;
  font-size: 11px;
}

.project-arrow {
  position: absolute;
  right: 22px;
  bottom: 18px;

  color: #a48cba;
  font-size: 21px;
}


/* =========================
   CONTACT
========================= */

.contact {
  background: #fff;
}

.contact-link {
  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-top: 22px;
  padding: 17px 19px;

  background: #f2edf7;
  color: #817092;

  font-size: 12px;
  font-weight: 600;

  transition: background .2s;
}

.contact-link:hover {
  background: #e9e0f1;
}


/* =========================
   中央コンテンツ内フッター
========================= */

.content-footer {
  display: flex;
  justify-content: center;
  align-items: center;

  padding: 35px 20px 30px;
  text-align: center;

  background: #faf9fc;
}

.footer-sparkle {
  display: block;
  width: 100%;

  color: #b9a9df;
  font-size: 18px;
  letter-spacing: 7px;
  text-align: center;
}


/* =========================
   スマートフォン
========================= */

@media (max-width: 850px) {

  :root {
    --bottombar-h: 92px;
  }

  body {
    overflow: auto;
  }

  .topbar {
    height: 60px;
    padding: 0 18px;
  }

  .bottombar {
    min-height: var(--bottombar-h);
    padding: 12px 12px;
  }

  .bottombar small {
    font-size: 8px;
    line-height: 1.7;
  }

  .layout {
    position: static;

    display: flex;
    flex-direction: column;
    gap: 0;

    padding: 60px 0 var(--bottombar-h);

    min-height: 100vh;
  }

  .side-left {
    display: none;
  }

  .side-right {
    order: -1;

    padding: 14px 18px;

    background: #fff;
    border-bottom: 1px solid var(--line);
  }

  .toc-title {
    margin: 0 0 9px;
  }

  .toc {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
  }

  .toc a {
    font-size: 9px;
  }

  .content-frame {
    height: auto;
    overflow: visible;

    border-radius: 0;
    box-shadow: none;
  }

  .hero {
    min-height: 370px;
  }

  .hero-logo {
    width: min(100%, 300px);
    max-height: 150px;
  }
}


/* =========================
   小さいスマートフォン
========================= */

@media (max-width: 480px) {

  .top-nav {
    gap: 15px;
  }

  .top-nav a {
    gap: 4px;
    font-size: 9px;
  }

  .top-nav .material-symbols-rounded {
    font-size: 20px;
  }

  .section {
    padding: 38px 23px;
  }

  .hero {
    min-height: 340px;
  }

  .hero-logo {
    width: min(100%, 260px);
    max-height: 130px;
  }

  .content-footer {
    padding: 30px 15px 24px;
  }

  .footer-sparkle {
    font-size: 15px;
    letter-spacing: 4px;
  }

}


/* =========================
   ABOUT：箇条書き
========================= */

.about-list {
  margin: 8px 0 0;
  padding-left: 1.5em;

  line-height: 2.1;
}

.about-list li {
  padding-left: 3px;
}


/* =========================
   Xプロフィールリンク
========================= */

.profile-link {
  display: block;
  width: fit-content;

  margin: 14px 20px 0 auto;

  color: #8e79a8;
  text-decoration: underline;
  text-decoration-color: #c9b9d8;
  text-underline-offset: 4px;

  font-size: 12px;
  font-weight: 600;

  transition: color .2s;
}

.profile-link:hover {
  color: #b18fc9;
}
