
/* 基本設定 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #FAF7F0;
  background-image: url("../images/hidecode-bg3.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 85%;
  background-attachment: fixed;

  color: #6B5B4D;
  font-family: Arial, sans-serif;
  margin: 0;

}

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

ul {
  list-style: none;
}

/* ヘッダー */
.header {
  width: 100%;
  padding: 20px 100px;
  box-sizing: border-box;
  position: fixed;

  display: flex;
  justify-content: space-between;
  align-items: center;
  top: 0;
  left: 0;
  z-index: 1000;
  background-color: #FAF7F0;
}

/* ロゴ */
.logo {
  font-size: 32px;
  font-weight: 700;
  margin: 0;
}

.logo a {
  display: block;
}

.logo img {
  display: block;
  width: 170px;
  height: auto;
}


/* ナビゲーション */
.nav-list {
  display: flex;
  align-items: center;
  gap: 45px;
}

.nav-list a {
  font-size: 18px;
  transition: opacity 0.3s;
}

.nav-list a:hover {
  opacity: 0.6;
}

.nav {
  position: relative;
  left: 85px;
}

/* スマホ版：背景画像を固定 */
@media screen and (max-width: 767px) {
  body {
    background-attachment: scroll;
  }

  body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: inherit;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    z-index: -1;
    pointer-events: none;
  }
}

/* スマホ用ヘッダーナビ */
@media (max-width: 767px) {
  .header .nav {
    position: static;
    left: auto;
    width: 100%;
  }

  .header .nav .nav-list {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 16px;
    padding: 0;
  }

  .header .nav .nav-list a {
    font-size: 13px;
  }
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 10px;
  gap: 8px;
}

.header .logo {
  flex-shrink: 0;
}

.header .logo img {
  width: 120px;
  height: auto;
}

.header .nav {
  width: auto;
  margin-left: auto;
}

.header .nav .nav-list {
  gap: 10px;
}

.header .nav .nav-list a {
  font-size: 11px;
  white-space: nowrap;
}
}

/* 小型タブレット用ヘッダー調整 */
@media (min-width: 768px) and (max-width: 1024px) {
  .header .nav {
    position: static;
    left: auto;
  }

  .header .nav .nav-list {
    gap: 12px;
  }

  .header .nav .nav-list a {
    font-size: 12px;
    white-space: nowrap;
  }
}

/* ナビゲーションの横並び */
.header .nav .nav-list {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
  list-style: none;
}

main {
    padding-top: 80px;
}


/* メインビジュアル */
.hero {
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
}

.hero-title {
  font-size: 56px;
  line-height: 1.4;
  font-weight: 700;
}

.hero-text {
  font-size: 24px;
  margin-top: 12px;
}

.hero-intro {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 16px;
    line-height: 1.45;
    letter-spacing: 0.14em;
    color: #555;
}

.hero-intro strong {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.18em;
}

.hero-intro span:first-child {
    margin-bottom: -3px;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.14em;
}


/* WORKS */

.works {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 70px;
  border-top: 1px solid #B8A38D;
}

.section-title {
  font-size: 40px;
  margin-bottom: 40px;
  text-align: center;
}

/* 作品を2列に並べる */
.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 55px 45px;
}

/* 作品カード */
.work-card {
  background:transparent;
  border: none;
  padding: 0;
  width: 92%;
  margin: 0 auto;
}

/* カード内のデザイン */
.work-visual {
  border: 2px solid #222;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  padding: 6px;
  box-sizing: border-box;
}

.work-title {
    background: #e60012;
    color: #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 72px;
    padding:  0;
    border-radius: 7px 7px 0 0;
}

.work-hello {
  font-size: 40px;
  font-weight: 900;
  line-height: 0.9;
  margin: 0;
  letter-spacing: -2px;
}

.work-message {
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  margin: 4px 0 0;
}

.work-bottom-bar {
    height: 20px;
    background: #e60012;
    border-radius: 0 0 7px 7px;
}

.project-mockup {
    width: 72% !important;
    height: auto !important;
    top: -20%;
    object-fit: contain;

    display: block;
    position: relative;
    margin-left: -20px !important;
    margin-right: 0px !important;
}

.project-logo {
    width: 20% !important;
    height: auto !important;
    object-fit: contain;
    display: block;
    position: relative;
    left: 14px;
}

/* 後から作品画像に変更 */
.work-image {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;

    background: #fff;
    box-sizing: border-box;
    padding: 25px 30px;
}

.work-image img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    display: block;
    margin: auto;
}

.work-bottom-bar {
    height: 16px;
    background: #e60012;
}

/* 作品情報 */
.work-name {
  font-size: 22px;
  margin-top: 16px;
}

.work-category {
  font-size: 16px;
  margin-top: 8px;
}

/* =========================
   GRAPHIC WORKS
========================= */

.graphic-works {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 40px 100px;
}

.graphic-works-heading {
    margin-bottom: 50px;
    text-align: center;
}

.graphic-works-heading h2 {
    margin: 0;
    font-size: 42px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.graphic-works-heading span {
    display: block;
    width: 38px;
    height: 2px;
    margin: 14px auto 16px;
    background: #1756d1;
}

.graphic-works-heading p {
    margin: 0;
    font-size: 12px;
    letter-spacing: 0.25em;
}


/* 3カラム */

.graphic-works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}


/* カード */

.graphic-card {
    width: 100%;
}

/* BANNERカードのクリック設定 */
#banner-card {
  cursor: pointer;
  transition: transform 0.3s ease;
}

#banner-card:hover {
  transform: translateY(-5px);
}

#banner-card:focus-visible {
  outline: 2px solid #1756d1;
  outline-offset: 4px;
}

.graphic-card-visual {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 0.68;
    overflow: hidden;
    border: 1px solid #222;
    background: #fff;
    border-radius: 18px;
}

.graphic-card-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* BANNER 作品一覧 */
.banner-gallery[hidden] {
  display: none;
}

.banner-gallery {
  max-width: 1000px;
  margin: 60px auto 0;
  padding: 0 24px;
}

.banner-gallery h3 {
  font-size: 28px;
  margin-bottom: 30px;
  text-align: center;
}

.banner-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}

.banner-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: inherit;
  font: inherit;
}

.banner-item img {
  width: 100%;
  height: 300px;
  object-fit: contain;
  background: #eee;
  border-radius: 12px;
}

@media (max-width: 600px) {
  .banner-gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* HELLOカード内のバナー画像 */
#banner-card .graphic-card-main {
  padding: 10px;
  box-sizing: border-box;
  height: 60%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}



/* 青いHELLO部分 */

.graphic-card-head {
    height: 33%;
    padding: 16px 20px 12px;
    box-sizing: border-box;
    background: #1756d1;
    color: #fff;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.graphic-hello {
    margin: 0;
    font-size: 30px;
    font-weight: 800;
    line-height: 0.9;
}

.graphic-message {
    margin: 4px 0 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
}


/* カード中央 */

.graphic-card-main {
    height: 62%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#banner-card img.banner-preview {
    width: 150px !important;
    height: auto !important;
    max-width: 150px !important;
}

/* HORITERA画像のサイズ調整 */
/* HORITERA画像 */
#banner-card .banner-preview {
  display: block;
  width: 150px;
  height: auto;
  max-width: 90%;
  object-fit: contain;
}

.graphic-card-main p {
    margin: 0;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.08em;
}


/* 下の青ライン */

.graphic-card-bottom {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 5%;
    background: #1756d1;
}


/* カード下の文字 */

.graphic-card h3 {
    margin: 14px 0 4px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.graphic-category {
    margin: 0;
    font-size: 10px;
    letter-spacing: 0.14em;
    color: #777;
}

/* GRAPHIC WORKS 3COLUMN FIX */

.graphic-works .graphic-works-grid {
    width: 100%;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 30px !important;
}

.graphic-works .graphic-card {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

/* PROJECT 02・03 画像サイズ調整 */
.work-image {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 0;
}

.work-image a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.work-image a img {
  display: block;
  max-width: 90%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* スマホ版 GRAPHIC WORKS */
@media (max-width: 767px) {
  .graphic-works .graphic-works-grid {
    grid-template-columns: 1fr !important;
  }
}


/* スマートフォン対応 */
@media (max-width: 767px) {
  .works {
    padding: 40px 20px 60px;
  }

  .works-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-title {
    font-size: 32px;
  }
}


/* ABOUT */

.about {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 40px 100px;
    border-top: 1px solid #bdbdbd;
    padding-bottom: 15px;
}

.about-title {
    margin: 0;
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.title-line {
    display: block;
    width: 38px;
    height: 2px;
    margin: 14px auto 16px;
    background: #e53935;
}

.section-subtitle {
    margin: 0 0 55px;
    text-align: center;
    font-size: 14px;
    letter-spacing: 0.05em;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 65px;
    align-items: start;
}

.about-content {
    padding-top: 5px;
}

.about-role {
    margin: 0 0 30px;
    font-size: 15px;
    letter-spacing: 0.32em;
}

.about-heading {
    margin: 0;
    font-size: 38px;
    line-height: 1.35;
    letter-spacing: 0.03em;
}

.about-line {
    display: block;
    width: 42px;
    height: 2px;
    margin: 25px 0;
    background: #e53935;
}

.about-text {
    margin: 0;
    font-size: 15px;
    line-height: 2;
}


/* SKILLS */

.skills {
    padding: 30px;
    background: #f1f1f1;
}

.skills-title {
    margin: 0;
    font-size: 20px;
    letter-spacing: 0.08em;
}

.skills-line {
    display: block;
    width: 25px;
    height: 2px;
    margin: 10px 0 25px;
    background: #e53935;
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 35px;
    row-gap: 22px;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.skill-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;

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

    background: #050505;
    color: #fff;

    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
}

.skill-item h4 {
    margin: 0 0 5px;
    font-size: 15px;
    font-weight: 500;
}

.skill-item p {
    margin: 0;
    font-size: 11px;
    line-height: 1.5;
}

.ai-creative {
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid #cfcfcf;
}

.ai-label {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.ai-sub {
    margin: 5px 0 10px;
    color: #e53935;
    font-size: 11px;
    letter-spacing: 0.18em;
}

.ai-text {
    margin: 0;
    font-size: 12px;
}

/* ABOUT VISUAL */

.about-visual {
    position: relative;
    width: 100%;
    height: 330px;
    overflow: hidden;
    background: #000;
}

.about-visual-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    filter: grayscale(25%) brightness(0.72);
}

.about-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.05),
        rgba(0, 0, 0, 0.18)
    );
    pointer-events: none;
}

.about-visual-copy {
    position: absolute;
    right: 55px;
    bottom: 35px;
    z-index: 2;

    display: flex;
    align-items: flex-start;
    gap: 12px;

    color: #fff;
}

.visual-red-line {
    display: block;
    width: 2px;
    height: 68px;
    background: #e53935;
}

.about-visual-copy p {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    letter-spacing: 0.18em;
}

/* CONTACT */

.contact {
    position: relative;
    padding: 95px 30px;
    color: #fff;
    text-align: center;
    margin-top: 2px;

    background:
        linear-gradient(
            rgba(0, 0, 0, 0.42),
            rgba(0, 0, 0, 0.58)
        ),
        url("../images/contact-bg.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.contact-inner {
    max-width: 900px;
    margin: 0 auto;
}

.contact-title {
    margin: 0;
    font-size: 42px;
    letter-spacing: 0.03em;
}

.contact-line {
    display: block;
    width: 38px;
    height: 2px;
    margin: 16px auto;
    background: #e53935;
}

.contact-subtitle {
    margin: 0 0 35px;
    font-size: 14px;
}

.contact-text {
    margin: 0 auto 40px;
    font-size: 15px;
    line-height: 2;
}

.contact-button {
    display: inline-flex;
    width: 310px;
    height: 72px;

    align-items: center;
    justify-content: center;
    gap: 40px;

    border: 1px solid #fff;

    color: #fff;
    font-size: 17px;
    letter-spacing: 0.1em;

    transition: 0.3s;
}

.contact-button:hover {
    background: #fff;
    color: #000;
}


/* FOOTER */

.footer {
    padding: 40px;
    background: #000;
    color: #fff;
}

.footer-top {
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 35px;

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;

    border-bottom: 1px solid #555;
}

.footer-small {
    margin: 0 0 3px;
    font-size: 9px;
    letter-spacing: 0.12em;
}

.footer-logo {
    display: inline-block;
    margin: 0;
    padding: 3px 6px;

    border: 2px solid #fff;

    font-size: 20px;
    font-weight: 800;
    line-height: 1;
}

.footer-nav {
    display: flex;
    gap: 50px;
}

.footer-nav a {
    color: #fff;
    font-size: 12px;
    letter-spacing: 0.12em;
}

.footer-social {
    justify-self: end;

    display: flex;
    align-items: center;
    gap: 30px;

    font-size: 22px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 30px;

    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.copyright {
    margin: 0;
    font-size: 11px;
    letter-spacing: 0.03em;
}

.footer-message {
    margin: 0;
    text-align: left;

    font-size: 10px;
    line-height: 1.6;
    letter-spacing: 0.18em;

    color: #aaa;
}


/* ABOUT / CONTACT / FOOTER / MOBILE */

@media (max-width: 767px) {

    .about {
        padding: 60px 20px 70px;
    }

    .about-title,
    .contact-title {
        font-size: 32px;
    }

    .section-subtitle {
        margin-bottom: 40px;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .about-role {
        font-size: 12px;
    }

    .about-heading {
        font-size: 29px;
    }

    .about-text {
        font-size: 13px;
    }

    .about-text br {
        display: none;
    }

    .skills {
        padding: 25px 20px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact {
        padding: 75px 20px;
    }

    .contact-text {
        font-size: 13px;
    }

    .contact-text br {
        display: none;
    }

    .contact-button {
        width: 100%;
        max-width: 310px;
    }

    .footer {
        padding: 35px 20px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-nav {
        gap: 25px;
    }

    .footer-social {
        justify-self: start;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
    }
}

.about-visual {
    height: 240px;
}

.about-visual-image {
    object-position: 60% center;
}

.about-visual-copy {
    right: 20px;
    bottom: 20px;
}

.about-visual-copy p {
    font-size: 9px;
}

.visual-red-line {
    height: 55px;
}

.graphic-works {
    margin-top: 70px;
    padding-top: 50px;
}

.graphic-works-heading {
    margin-bottom: 35px;
}

.graphic-works-heading h3 {
    font-size: 26px;
}

.graphic-works-grid {
    grid-template-columns: 1fr;
    gap: 45px;
}

.graphic-work-title {
    height: 105px;
}

.graphic-work-image {
    height: 200px;
}

/* CONTACT FORM PAGE */
.contact-page {
  max-width: 650px;
  margin: 0 auto;
  padding: 100px 24px;
  color: #6B5B4D;
}

.contact-page h1 {
  font-size: 48px;
  letter-spacing: 0.1em;
  margin-bottom: 15px;
}

.contact-page > p {
  margin-bottom: 50px;
}

.contact-page form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-page label {
  font-size: 14px;
  font-weight: bold;
}

.contact-page input,
.contact-page textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 15px;
  border: 1px solid #B8AA9B;
  border-radius: 0;
  background: #fff;
  color: #333;
  font: inherit;
}

.contact-page button {
  margin-top: 20px;
  padding: 18px;
  border: none;
  background: #6B5B4D;
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.1em;
  cursor: pointer;
}

.contact-page button:hover {
  background: #4E4035;
}

.contact-page > a {
  display: inline-block;
  margin-top: 40px;
  font-size: 13px;
}

/* Instagramリンク */
.footer-social a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
}

.instagram-text {
    font-size: 10px;
    letter-spacing: 1.5px;
    white-space: nowrap;
}