/* TATA Portfolio — Old Design Restoration */

/* 1. 全体の横幅と背景 */
:root {
  --tata-bg: #f7f3eb;
  --tata-paper: #fffefa;
  --tata-ink: #263b35;
  --tata-muted: #697c73;
  --tata-green: #368a76;
  --tata-line: #dce6dd;
}

body {
  background: var(--tata-bg);
  color: var(--tata-ink);
}

/* WordPressのコンテンツ幅制限を解除 */
body.home .wp-site-blocks main.wp-block-group {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
}

body.home .wp-site-blocks main > .wp-block-group {
  max-width: none;
}

body.home .wp-site-blocks main > .wp-block-group > .alignwide,
body.home .wp-site-blocks main > .wp-block-group > .wp-block-columns,
body.home .wp-site-blocks main > .wp-block-group > .wp-block-group {
  max-width: 1120px;
}

body.home #home,
body.home #about,
body.home #works,
body.home #skills,
body.home #creative,
body.home #contact {
  box-sizing: border-box;
  max-width: 1120px !important;
  width: calc(100% - 64px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* 2. セクション背景：画面の端まで広げる */
body.home #about,
body.home #skills,
body.home #contact {
  position: relative;
  isolation: isolate;
}

body.home #about::before,
body.home #skills::before,
body.home #contact::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: #fffdf8;
}

body.home #contact::before {
  background: #fffdf8;
}

/* 3. セクション余白 */
body.home #about,
body.home #works,
body.home #skills,
body.home #creative {
  padding-top: 96px !important;
  padding-bottom: 96px !important;
}

body.home #contact {
  padding-top: 80px !important;
  padding-bottom: 80px !important;
}

/* 4. HOME：旧サイトの左右バランス */
body.home #home.tata-hero {
  min-height: calc(92vh - 86px);
  padding-top: 70px;
  padding-bottom: 70px;
}

body.home #home > .wp-block-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: 60px;
}

body.home #home > .wp-block-columns > .wp-block-column {
  width: 100%;
  min-width: 0;
  flex-basis: auto !important;
}

body.home #home h1 {
  font-size: clamp(48px, 4.4vw, 56px);
  line-height: 1.35;
  letter-spacing: -.035em;
}

/* 5. ABOUT */
body.home #about .wp-block-columns {
  gap: 80px;
  align-items: start;
}

/* 6. WORKS */
body.home #works .wp-block-post-template {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

body.home #works .tata-work-card {
  background: var(--tata-paper);
  border: 1px solid var(--tata-line);
  border-radius: 22px;
  overflow: hidden;
}

/* 7. SKILLS */
body.home #skills .wp-block-columns {
  gap: 20px;
}

body.home #skills .wp-block-column {
  min-width: 0;
}

/* 8. CREATIVE：グラデーションと円形装飾 */
body.home #creative .wp-block-columns {
  gap: 20px;
}

body.home #creative .wp-block-column {
  position: relative;
  min-width: 0;
  min-height: 250px;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(145deg, #b7cfc0, #496f68) !important;
  color: white;
  transition: transform .25s ease, box-shadow .25s ease;
}

body.home #creative .wp-block-column:nth-child(2) {
  background: linear-gradient(140deg, #dfd4b7, #ae9b7d) !important;
}

body.home #creative .wp-block-column:nth-child(3) {
  background: linear-gradient(140deg, #a9c5c5, #4e777e) !important;
}

body.home #creative .wp-block-column::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -35px;
  width: 200px;
  height: 200px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 50%;
  pointer-events: none;
}

body.home #creative .wp-block-column:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 60px #263b3512;
}

body.home #creative .wp-block-column h3,
body.home #creative .wp-block-column a {
  position: relative;
  z-index: 1;
  color: #fff !important;
}

/* 9. CONTACT */
body.home #contact {
  text-align: center;
}

body.home #contact > .wp-block-group {
  border-radius: 30px;
}

/* 10. スマホ */
@media (max-width: 800px) {
  body.home #home,
  body.home #about,
  body.home #works,
  body.home #skills,
  body.home #creative,
  body.home #contact {
    width: calc(100% - 40px) !important;
  }

  body.home #home > .wp-block-columns {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  body.home #home > .wp-block-columns > .wp-block-column {
    width: 100%;
  }

  body.home #home h1 {
    font-size: clamp(30px, 7.4vw, 36px);
  }

  body.home #about,
  body.home #works,
  body.home #skills,
  body.home #creative,
  body.home #contact {
    padding-top: 62px !important;
    padding-bottom: 62px !important;
  }

  body.home #about .wp-block-columns {
    gap: 30px;
  }

  body.home #works .wp-block-post-template {
    grid-template-columns: 1fr;
  }

  body.home #creative .wp-block-columns {
    flex-direction: column;
    gap: 14px;
  }

  body.home #creative .wp-block-column {
    min-height: 190px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.home #creative .wp-block-column {
    transition: none;
  }
}

/* ========================================
   SKILLS / CREATIVE DESIGN MATCH
======================================== */

/* セクション見出し */
body.home #skills h2,
body.home #creative h2 {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: clamp(36px, 3.3vw, 40px);
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: -0.035em;
}

/* セクション説明文 */
body.home #skills > p,
body.home #creative > p {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 14px;
    line-height: 1.9;
    color: #697c73;
}

/* SKILLS：旧サイトの白いカード */
body.home #skills .wp-block-columns > .wp-block-column {
    box-sizing: border-box;
    padding: 28px !important;
    background: #fffefa !important;
    border: 1px solid #dce6dd !important;
    border-radius: 20px !important;
    min-height: 190px;
}

/* SKILLS カードタイトル */
body.home #skills .wp-block-column h3 {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 18px !important;
    font-weight: 500;
    line-height: 1.5;
    color: #263b35;
}

/* SKILLS カード説明 */
body.home #skills .wp-block-column p {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 13px !important;
    line-height: 1.9;
    color: #697c73;
}

/* CREATIVE：カード全体 */
body.home #creative .wp-block-columns > .wp-block-column {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    box-sizing: border-box;
    min-height: 250px;
    padding: 24px !important;
    overflow: hidden;
    border: none !important;
    border-radius: 20px !important;
    color: #fff !important;
}

/* グラデーション：旧サイトと同じ配色 */
body.home #creative .wp-block-columns > .wp-block-column:nth-child(1) {
    background: linear-gradient(145deg, #b7cfc0, #496f68) !important;
}

body.home #creative .wp-block-columns > .wp-block-column:nth-child(2) {
    background: linear-gradient(140deg, #dfd4b7, #ae9b7d) !important;
}

body.home #creative .wp-block-columns > .wp-block-column:nth-child(3) {
    background: linear-gradient(140deg, #a9c5c5, #4e777e) !important;
}

/* 円形装飾 */
body.home #creative .wp-block-columns > .wp-block-column::before {
    content: "";
    position: absolute;
    width: 200px;
    height: 200px;
    top: -40px;
    right: -35px;
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 50%;
    pointer-events: none;
}

/* CREATIVE：文字を右下へ */
body.home #creative .wp-block-column h3,
body.home #creative .wp-block-column p,
body.home #creative .wp-block-column a {
    position: relative;
    z-index: 1;
    color: #fff !important;
    text-align: right !important;
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 21px !important;
    font-weight: 500;
    line-height: 1.4;
    margin: 0 !important;
}

/* スマホ */
@media (max-width: 800px) {
    body.home #skills h2,
    body.home #creative h2 {
        font-size: clamp(28px, 7vw, 32px);
    }

    body.home #skills .wp-block-columns > .wp-block-column {
        min-height: auto;
    }

    body.home #creative .wp-block-columns > .wp-block-column {
        min-height: 190px;
    }
}

