@charset "UTF-8";

/* =========================================================
   CREA DESIGN PROJECT
   cdp.css Ver.2026
   対象: CDP/index.html
   配置: CDP/css/cdp.css
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --cdp-blue: #075ca8;
  --cdp-blue-dark: #063f73;
  --cdp-cyan: #0099d8;
  --cdp-orange: #e97316;
  --cdp-orange-dark: #bd5310;
  --cdp-ink: #1c2b36;
  --cdp-muted: #5b6b77;
  --cdp-line: #d7e1e8;
  --cdp-soft: #f3f7fa;
  --cdp-white: #ffffff;
  --cdp-focus: #ffbf47;
  --cdp-shadow: 0 8px 24px rgba(20, 48, 68, 0.10);
  --cdp-radius: 16px;
  --cdp-content: 1120px;
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--cdp-soft);
}

body {
  margin: 0;
  color: var(--cdp-ink);
  background: var(--cdp-soft);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
}

iframe {
  max-width: 100%;
}

a {
  color: var(--cdp-blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
}

a:visited {
  color: #654a91;
}

a:hover {
  color: var(--cdp-orange-dark);
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--cdp-focus);
  outline-offset: 3px;
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  margin-top: 0.75rem;
  margin-bottom: 1.5rem;
  padding-left: 1.75rem;
}

li + li {
  margin-top: 0.35rem;
}

strong {
  color: #a33b15;
  font-weight: 700;
}

/* ---------- Page container ---------- */
.main {
  width: min(calc(100% - 32px), var(--cdp-content));
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px clamp(18px, 4vw, 56px) 56px;
  background: var(--cdp-white);
  box-shadow: 0 0 32px rgba(20, 48, 68, 0.08);
}

/* ---------- Header ---------- */
.Header1 {
  margin: 0 0 1.5rem;
  text-align: right;
  color: var(--cdp-muted);
  font-size: 0.82rem;
  line-height: 1.7;
}

.Header1 > a {
  display: inline-block;
  margin-left: 0.65rem;
  white-space: nowrap;
}

.Header1 h1 {
  margin: 0.8rem 0 0;
  padding: clamp(1.25rem, 3vw, 2.2rem) 1rem;
  color: var(--cdp-white);
  background: linear-gradient(135deg, var(--cdp-blue-dark) 0%, var(--cdp-blue) 54%, var(--cdp-cyan) 100%);
  border-radius: var(--cdp-radius);
  box-shadow: var(--cdp-shadow);
  text-align: center;
  font-size: clamp(1.65rem, 4vw, 2.7rem);
  line-height: 1.35;
  letter-spacing: 0.035em;
}

#content {
  scroll-margin-top: 1rem;
}

/* ---------- Headings ---------- */
h1,
h2,
h3,
h4,
h5 {
  overflow-wrap: normal;
  word-break: normal;
}

h2 {
  margin: 4rem 0 1.5rem;
  padding: 0.65rem 0 0.65rem 1rem;
  color: var(--cdp-blue-dark);
  border-left: 8px solid var(--cdp-orange);
  border-bottom: 1px solid var(--cdp-line);
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.45;
}

/* ファーストビューのキャッチコピー */
.main > h2:first-of-type{
    margin: 1.5rem 0 2rem;
    padding: 1.8rem 1rem;
    background: #f8fbfd;
    color: var(--cdp-blue-dark);
    border: 2px solid #bcd9ea;
    border-left: 8px solid var(--cdp-orange);
    border-radius: 12px;
    box-shadow: none;
    text-align: center;
    font-size: clamp(1.45rem,4vw,2rem);
    font-weight: 700;
    letter-spacing: .03em;
    line-height: 1.7;
    text-wrap: balance;
}

.main > h2:first-of-type br{
    display:block;
}

/* =================================================
   作品ページ用 h1
   （タニナルなど個別作品紹介ページ）
================================================= */

.main > h1{
    margin: 1.5rem 0 2rem;
    padding: 1.8rem 1rem;
    background: #f8fbfd;
    color: var(--cdp-blue-dark);
    border: 2px solid #bcd9ea;
    border-left: 8px solid var(--cdp-orange);
    border-radius: 12px;
    text-align: center;
    font-size: clamp(1.4rem,4vw,2.1rem);
    line-height: 1.6;
    letter-spacing: .02em;
    box-shadow: none;
}

.main > h1 span{
    display:block;
    margin-top:.5rem;
    font-size:.65em;
    font-weight:normal;
    color:var(--cdp-muted);
}

/* 作品ページ用戻りリンク */
.backlink{
    margin:0 0 2rem;
    text-align:center;
}

.backlink a{
    display:inline-block;
    padding:.5rem 1rem;
    border:1px solid #bcd9ea;
    border-radius:999px;
    background:#f8fbfd;
    text-decoration:none;
    font-weight:bold;
}

h3 {
  margin: 2.8rem 0 1.1rem;
  padding-bottom: 0.5rem;
  color: var(--cdp-blue);
  border-bottom: 2px solid #bcd9ea;
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  line-height: 1.5;
}

h4 {
  margin: 2.2rem 0 1rem;
  padding: 0.75rem 1rem;
  color: var(--cdp-blue-dark);
  background: #f7fafc;
  border-left: 5px solid var(--cdp-cyan);
  border-radius: 0 10px 10px 0;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.55;
}

h4 a {
  color: inherit;
}

h5 {
  margin: 2rem 0 1rem;
  padding: 0.7rem 0.9rem;
  color: #79380f;
  background: #fff6e9;
  border-left: 4px solid var(--cdp-orange);
  font-size: 1rem;
  line-height: 1.55;
}

/* ---------- Intro card ---------- */
.main > .content {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 4vw, 2.5rem);
  margin: 0 0 2rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--cdp-white);
  border: 1px solid var(--cdp-line);
  border-radius: var(--cdp-radius);
  box-shadow: var(--cdp-shadow);
}

.main > .content .left {
  float: none;
  flex: 0 0 auto;
  width: min(220px, 32%);
  height: auto;
  padding: 0;
  border-radius: 14px;
}

.main > .content > div {
  min-width: 0;
}

.main > .content p {
  margin: 0;
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  line-height: 1.95;
}

/* =================================================
   TOP WORKS
================================================= */

.topworks{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:1.5rem;
    margin:2rem 0 3rem;
}

.topwork-card{
    flex:1 1 300px;
    max-width:340px;
    background:#fff;
    border:1px solid #d7e1e8;
    border-radius:16px;
    overflow:hidden;
    box-shadow:
        0 6px 20px rgba(0,0,0,.08);
    text-decoration:none;
    color:inherit;
    transition:.25s ease;
}

.topwork-card:hover{
    transform:translateY(-6px);
    box-shadow:
        0 12px 28px rgba(0,0,0,.15);
}

.topwork-card img{
    display:block;
    width:100%;
    aspect-ratio:4/3;
    object-fit:cover;
}

.topwork-caption{
    padding:1rem;
}

.topwork-caption h3{
    margin:0 0 .4rem;
    border:none;
    padding:0;
    color:var(--cdp-blue-dark);
    font-size:1.15rem;
}

.topwork-caption p{
    margin:0;
    color:var(--cdp-muted);
    font-size:.92rem;
    line-height:1.6;
}

/* ---------- Student CTA ---------- */
.main > h3:first-of-type {
  margin: 1.8rem 0 2.5rem;
  padding: 0;
  border: 0;
  text-align: center;
}

.main > h3:first-of-type a[href="#student"] {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  color: var(--cdp-white);
  background: var(--cdp-orange);
  border: 2px solid var(--cdp-orange);
  border-radius: 999px;
  box-shadow: 0 5px 14px rgba(189, 83, 16, 0.22);
  text-decoration: none;
  font-weight: 700;
}

.main > h3:first-of-type a[href="#student"]:visited {
  color: var(--cdp-white);
}

.main > h3:first-of-type a[href="#student"]:hover {
  color: var(--cdp-white);
  background: var(--cdp-orange-dark);
  border-color: var(--cdp-orange-dark);
}

/* ---------- News archive ---------- */

details{
    margin:1.5rem 0 3rem;
    padding:1rem 1.25rem;
    background:#f1f4f7;
    border:2px solid #0099d8;
    border-left-width:6px;
    border-radius:12px;
    transition:all .2s ease;
}

details[open]{
    box-shadow:
        0 2px 8px rgba(0,153,216,.15);
}

summary{
    cursor:pointer;
    color:#075ca8;
    font-weight:700;
    line-height:1.6;
    list-style-position:outside;
}

summary:hover{
    color:#e97316;
}

details[open] summary{
    margin-bottom:1rem;
    padding-bottom:.75rem;
    border-bottom:1px solid #cfd9e1;
}

details p{
    padding:.5rem 0 .85rem;
    margin:0;
    border-bottom:1px dotted #ccd6de;
}

details p:last-child{
    border-bottom:none;
}

/* ---------- Flow / lists ---------- */
ol {
  padding: 1.25rem 1.5rem 1.25rem 3rem;
  background: #f8fbfd;
  border: 1px solid var(--cdp-line);
  border-radius: 14px;
}

ol li::marker {
  color: var(--cdp-orange-dark);
  font-weight: 700;
}

/* ---------- Images / case studies ---------- */
.photo {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(1rem, 3vw, 2rem);
  margin: 1.8rem auto 2.5rem;
  text-align: center;
}

.photo > div {
  flex: 1 1 300px;
  max-width: 470px;
  overflow: hidden;
  background: var(--cdp-white);
  border: 1px solid var(--cdp-line);
  border-radius: 14px;
  box-shadow: var(--cdp-shadow);
}

.photo > div > img {
  display: block;
  width: 100%;
  padding: 0;
}

.photo > div > p {
  margin: 0;
  padding: 0.85rem 1rem 1rem;
  color: var(--cdp-muted);
  text-align: left;
  font-size: 0.92rem;
  line-height: 1.65;
}

/* p.photo は複数画像または単独画像用 */
p.photo {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 1rem;
  padding: 0;
}

p.photo img {
  width: auto;
  max-width: min(100%, 470px);
  max-height: 560px;
  object-fit: contain;
  padding: 0;
  background: var(--cdp-white);
  border: 1px solid var(--cdp-line);
  border-radius: 14px;
  box-shadow: var(--cdp-shadow);
}

/* ---------- Video ---------- */
.movie {
  margin: 1.8rem auto 2.5rem;
  text-align: center;
}

.movie iframe {
  display: block;
  width: min(100%, 800px);
  height: auto;
  aspect-ratio: 16 / 9;
  margin: 0 auto 1rem;
  border: 0;
  border-radius: 14px;
  box-shadow: var(--cdp-shadow);
}

.movie p {
  color: var(--cdp-muted);
  font-size: 0.92rem;
}

/* ---------- Swiper gallery ---------- */
.cube {
  width: 100%;
  margin: 1.5rem auto 3rem;
  padding: 0.75rem 0 2rem;
  overflow: hidden;
}

.cube .swiper-container {
  width: min(76vw, 440px);
  max-width: 100%;
  margin: 0 auto;
  overflow: visible;
}

.cube .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cdp-white);
  border-radius: 14px;
}

.cube .swiper-slide img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  padding: 0;
  border-radius: 14px;
  box-shadow: var(--cdp-shadow);
}

.swiper-button-prev,
.swiper-button-next {
  color: var(--cdp-blue);
}

.swiper-pagination-bullet-active {
  background: var(--cdp-blue);
}

/* ---------- Footer ---------- */
.Footer {
  width: min(calc(100% - 32px), var(--cdp-content));
  margin: 0 auto;
  padding: 1.5rem clamp(18px, 4vw, 56px);
  color: #eaf4fa;
  background: var(--cdp-blue-dark);
  border-radius: var(--cdp-radius) var(--cdp-radius) 0 0;
  text-align: right;
  font-size: 0.82rem;
  line-height: 1.7;
}

.Footer a,
.Footer a:visited {
  color: var(--cdp-white);
}

/* ---------- Utility compatibility ---------- */
.left { float: left; }
.right { float: right; }
.clear { clear: left; }
.clear_r { clear: right; }

/* ---------- Tablet / mobile ---------- */
@media screen and (max-width: 800px) {
  html {
    scroll-behavior: auto;
  }

  body {
    font-size: 15px;
    line-height: 1.75;
  }

  .main {
    width: 100%;
    padding: 10px 16px 40px;
    box-shadow: none;
  }

  .Header1 {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.25rem 0.75rem;
    font-size: 0.75rem;
  }

  .Header1 > a {
    margin-left: 0;
    white-space: nowrap;
  }

  .Header1 h1 {
    flex: 0 0 100%;
    margin-top: 0.65rem;
    padding: 1.15rem 0.75rem;
    border-radius: 12px;
  }

  .main > h2:first-of-type {
    margin-top: 1rem;
    padding: 1.25rem 0.8rem;
    border-radius: 12px;
  }

  .main > .content {
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
    text-align: left;
  }

  .main > .content .left {
    width: min(58%, 190px);
  }

  h2 {
    margin-top: 3.2rem;
  }

  h3 {
    margin-top: 2.3rem;
  }

  h4 {
    padding: 0.7rem 0.8rem;
  }

  details {
    padding: 0.75rem 0.85rem;
  }

  ol {
    padding: 1rem 1rem 1rem 2.6rem;
  }

  .photo {
    gap: 1rem;
  }

  .photo > div {
    flex-basis: 100%;
    width: 100%;
    max-width: 560px;
  }

  p.photo {
    display: block;
  }

  p.photo img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: none;
    margin: 0 auto 1rem;
  }

  .cube .swiper-container {
    width: min(82vw, 380px);
  }

  .Footer {
    width: 100%;
    padding: 1.25rem 16px;
    border-radius: 12px 12px 0 0;
    text-align: center;
  }
}

/* ---------- Small phones ---------- */
@media screen and (max-width: 480px) {
  .Header1 {
    justify-content: flex-start;
    text-align: left;
  }

  .Header1 h1 {
    text-align: center;
  }

  .main > h3:first-of-type a[href="#student"] {
    width: 100%;
    text-align: center;
  }

  .cube .swiper-container {
    width: min(78vw, 320px);
  }

  .swiper-button-prev,
  .swiper-button-next {
    transform: scale(0.82);
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ---------- Print ---------- */
@media print {
  html,
  body {
    background: #fff;
  }

  .main,
  .Footer {
    width: 100%;
    max-width: none;
    box-shadow: none;
  }

  .Header1 h1,
  .main > h2:first-of-type,
  .Footer {
    color: #000;
    background: #fff;
    border: 1px solid #777;
  }

  details {
    display: block;
  }

  details > * {
    display: block;
  }

  .swiper-button-prev,
  .swiper-button-next,
  .swiper-pagination {
    display: none !important;
  }
}
