@charset "utf-8";
/*共通設定*/

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        "Noto Sans JP",
        "Helvetica Neue",
        Arial,
        sans-serif;
    background-color: #fff;
    color: #1f2937;
    line-height: 1.7;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    padding: 0;
}

/* 共通パーツ */
.button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 220px;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
    transition: 0.3s;
}

.section-title {
    margin-top: 40px;
    text-align: center;
}

.section-title__en {
    display: inline-block;
    margin-bottom: 4px;
    background-color: #eef2ff;
    border-radius: 20px;
    padding: 5px 14px;
    color: #4f46e5;
    font-size: 13px;
    font-weight: 700;
}

.section-title__ja {
    font-size: 38px;
    margin-bottom: 6px;
    font-family:"Noto Sans JP",sans-serif;
    font-weight: 800;
}

.section-title__text {
    margin-bottom: 52px;
    font-size: 16px;
    color: #6b7280;
}

.works-card__tags {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 10px;
    gap: 6px;
}

.tag {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

.tag--html {
    color: #fff;
    background-color: #f5a011;
}

.tag--css {
    color: #1d4ed8;
    background-color: #dbeafe;
}

.tag--js {
    color: #db2777;
    background-color: #fce7f3;
}

.tag--sass {
    color: #7c3aed;
    background-color: #ede9fe;
}

.tag--wp {
    color: #16a34a;
    background-color: #dcfce7;
}

.tag--php {
    color: #ca8a04;
    background-color: #fef3c7;
}

.works-card__title {
    font-size: 17px;
    font-weight: 700;
}

.works-card__text {
    margin-top: 10px;
    font-size: 13px;
    color: #6b7280;
}

.works-card__more {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 13px;
    color: #4f46e5;
    font-weight: 700;
}

.works-card__arrow {
    display: flex;
    align-items: center;
}

.skill-card {
    background-color: #fff;
    padding: 36px 24px;
    text-align: center;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(31, 41, 55, 0.06);
}

.skill-card img {
    width: 60px;
    margin: 0 auto 16px;
}

.skill-card h3 {
    font-size: 18px;
    font-weight: 700;
}

.skill-card p {
    margin-bottom: 16px;
    color: #6b7280;
    font-size: 13px;
}

/* 個別部品 */
/* header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
}

.header__inner {
    position: relative;
    max-width: 1440px;
    height: 72px;
    margin: 0 auto;
    padding: 0 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__logo {
    margin: 0;
    font-size: 24px;
    font-family: "Poppins", sans-serif;
    font-weight: 700;
}

.header__logo a {
    color: #111827;
    text-decoration: none;
}

.header__nav {

}

.header__list {
    display: flex;
    align-items: center;
    gap: 36px;
}

.header__item {
    color: #6b7280;
    font-size: 15px;
    font-weight: 600;
}

.header__item a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.header__item:not(.header__item--contact) a:hover {
   color: #4f46e5;
}

.header__item--contact {
   padding: 10px 24px;
   background-color: #4f46e5;
   color: #fff;
   border-radius: 6px;
   transition:
      background-color 0.3s,
      color 0.3s;
}

.header__item--contact:hover {
    background-color: #3730a3;
}

/* パソコンではハンバーガーボタンを非表示 */
.header__hamburger {
    display: none;
}

/* firstView */
.fv {
    background: linear-gradient(135deg, #f7f8ff 0%, #eef0ff 100%);
}

.fv__inner {
    position: relative;
    width: 100%;
}

.fv__content {
    position: absolute;
    top: 50%;
    left: 8%;
    transform: translateY(-50%);
    max-width: 560px;
}

.fv__label {
    width: fit-content;
    max-width: none;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 32px;
    padding: 6px 16px;
    color: #4338ca;
    background-color: #e0e7ff;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}

.fv__label-badge {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}

.fv__label-text {
    font-size: 13px;
    color: #4338ca;
    white-space: nowrap;
}

.fv__title {
    margin: 0;
    font-size: 48px;
    font-weight: 800;
    line-height: 1.25;
    text-align: left;
}

.fv__text {
    margin: 32px 0 0;
    font-size: 17px;
    line-height: 1.8;
    color: #6b7280;
    text-align: left;
}

.fv__buttons {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    margin-top: 32px;
}

.fv__button-arrow {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transform: translateY(1px);
}

.button--primary {
    color: #fff;
    background-color: #4f46e5;
}

.button--outline {
    border: 2px solid #4f46e5;
    background-color: #fff;
    color: #4f46e5;
}

.fv__image {
    width: 100%;
}

.fv__image img {
    display: block;
    width: 100%;
    height: auto;
}

/* works */
.works {
    padding: 88px 80px;
}

.works__inner {
    max-width: 1440px;
    margin: 0 auto;
}

.works__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.works-card {
    background-color: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(31, 41, 55, 0.08);
    overflow: hidden;
    transition: 0.3s;
}

.works-card:hover {
  transform: translateY(-6px);
}

.works-card__link {

}

.works-card__image img {
    width: 100%;
    /* 画像の縦横比を調整 */
    aspect-ratio: 16 / 10;
    /* 画像の枠いっぱいに表示する */
    object-fit: cover;
}

.works-card__body {
    padding: 22px;

}

.works__button {
    margin: 52px auto 0;
    max-width: 240px;
}

.works__button-arrow {
    display: flex;
    align-items: center;
    transform: translateY(1px);
}

/* skill */
.skills {
    padding: 88px 80px;
    background-color: #F8FAFF;
}

.skills__inner {
    max-width: 1440px;
    margin: 0 auto;
}

.skills__list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

/* about */
.about {
    padding: 88px 80px;
}

.about__inner {
    max-width: 1020px;
    margin: 0 auto;
}

.about__content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about__profile {
    width: 260px;
    text-align: center;
    /* プロフィール部分は縮めない */
    flex-shrink: 0;
}

.about__image {
    width: 240px;
    height: 240px;
    margin: 0 auto 16px;
    border-radius: 50%;
    overflow: hidden;
    background: #eef0ff;
}

.about__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about__name {
    font-size: 22px;
    font-weight: 700;

}

.about__job {
    margin-top: 5px;
    font-size: 13px;
    color: #4f46e5;
    font-weight: 700;
}

.about__sns {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.about__text-area {
    flex: 1;
}

.about__heading {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 20px;
}

.about__heading br {
    display: none;
}

.about__text {
    margin: 0 0 14px;
    font-size: 15px;
    color: #6b7280;
}

.about__info {
    display: flex;
    margin-top: 32px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.about__info-item {
    flex: 1;
    padding: 15px;
    text-align: center;
}

.about__info-item dt {
    font-size: 12px;
    color: #9ca3af;
}

.about__info-item dd {
    font-size: 14px;
    font-weight: 700;
}

.about__info-item:not(:last-child) {
  border-right: 1px solid #e5e7eb;
}

/* contact */
.contact {
    padding: 88px 80px;
    background-color: #F8FAFF;
}

.contact__inner {
    max-width: 640px;
    margin: 0 auto;
}

.contact-form {
    padding: 52px;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(31, 41, 55, 0.08);
}

.contact-form__item {
    margin-bottom: 20px;
}

.contact-form__item label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;

}

.contact-form__item label span {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 4px;
    background-color: #fee2e2;
    color: #dc2626;
    font-size: 11px;
}

.contact-form__item input,
.contact-form__item textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    background-color: #f9fafb;
    border-radius: 8px;
    font-size: 14px;
    color: #1f2937;
}

.contact-form__item input::placeholder,
.contact-form__item textarea::placeholder {
    color: #9ca3af;
}

.contact-form__item textarea {
    min-height: 180px;
    resize: vertical;
}

.contact-form__privacy {
    display: flex;
    justify-content: flex-start;
    margin: 32px 0;
}

/* .contact-form__privacy-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #6b7280;
    cursor: pointer;
} */

.contact-form__privacy input {
   width: 18px;
   height: 18px;
   cursor: pointer;
}

.contact-form__privacy a {
    color: #eb3b3b;
    text-decoration: underline;
}

.contact-form__privacy a:hover {
  opacity: .8;
}

.contact-form__button {
    display: block;
    width: 100%;
    gap: 12px;
    padding: 16px 40px;
    border: none;
    border-radius: 8px;
    background-color: #4f46e5;
    color: #fff;
    text-align: center;
    cursor: pointer;
    transition: .3s;
    box-shadow: 0 8px 24px rgba(31, 41, 55, 0.08);
    font-size: 16px;
    font-weight: 700;
}

.contact-form__button:hover {
    opacity: .85;
}

.contact__button-icon {
  display: flex;
  align-items: center;
}

/* Contact Form 7 調整 */
.contact-form__item .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.contact-form__item .wpcf7-form-control {
    width: 100%;
}

/* プライバシーポリシー同意欄 */
.contact-form__privacy p {
    margin: 0;
}

.contact-form__privacy .wpcf7-form-control-wrap {
    display: inline-block;
    width: auto;
}

.contact-form__privacy .wpcf7-acceptance {
    display: block;
}

/* CF7標準の余白をリセット */
.contact-form__privacy .wpcf7-list-item {
    margin: 0;
    padding: 0;
}

/* チェックボックス＋文章 */
.contact-form__privacy .wpcf7-list-item label {
    display: grid;
    grid-template-columns: 14px max-content;
    align-items: center;
    column-gap: 0px;
    width: max-content;
    margin: 0;
    padding: 0;
    cursor: pointer;
}

/* チェックボックス本体 */
.contact-form__privacy input[type="checkbox"] {
    appearance: auto;
    width: 14px;
    height: 14px;
    margin: 0;
    cursor: pointer;
}

.contact-form__privacy .wpcf7-list-item-label {
    margin: 0;
    padding: 0;
}

.contact-form__privacy .wpcf7-list-item-label::before,
.contact-form__privacy .wpcf7-list-item-label::after {
    content: none;
}

/* エラー表示用css */
.wpcf7-not-valid-tip {
    margin-top: 6px;
    font-size: 12px;
    color: #dc2626;
}

.wpcf7-response-output {
    margin: 20px 0 0 !important;
    padding: 12px 16px !important;
    border-radius: 6px;
    font-size: 13px;
}

/* 送信アイコン */
.contact-form__submit {
    position: relative;
}

.contact-form__submit p {
    margin: 0;
}

.contact__button-icon {
    position: absolute;
    /* スパム対策のアイコンを配置することにより下記調整した */
    top: 48%;
    left: calc(50% - 60px);
    transform: translateY(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    color: #fff;
    pointer-events: none;
}

.contact__button-icon br {
    display: none;
}

/* footer */
.footer {
    background-color: #0f172a;
}

.footer__inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 25px 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer__copy {
    font-size: 13px;
    color: #6b7280;
}

.footer__nav {
   
}

.footer__list {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer__list a {
    font-size: 13px;
    color: #9ca3af;
}

/* レスポンシブモバイル表示 */
@media (max-width: 900px) {
  section {
    padding: 64px 20px;
  }

  .section-title__ja {
    font-size: 30px;
  }

  .section-title__en {
    font-size: 10px;
  }

/* header */
  .header__inner {
    max-width: 100%;
    height: 64px;
    padding: 0 40px;
  }

  .header__logo {
    /* z-indexを有効にする */
    position: relative;
    z-index: 102;
    font-size: 20px;
  }

  .header__hamburger {
    /* z-indexを有効にする */
    position: relative;
    z-index: 102;
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background-color: transparent;
    border: none;
    cursor: pointer;
  }

  .header__hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #111827;
    border-radius: 2px;
    transition:
    transform 0.3s,
    opacity 0.3s;
  }

  .header__nav {
    position: absolute;
    /* header__inner高さと揃える */
    top: 64px;
    left: 0;
    width: 100%;
    padding: 24px;
    background-color: #fff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);

    /* 最初はメニューを隠す */
    visibility: hidden;
    /* 完全に透明 */
    opacity: 0;
    transform: translateY(-10px);
    /* 見えないメニューを誤ってクリックするのを防ぐ */
    pointer-events: none;
    /* メニューの動きを滑らかにする */
    transition:
     /* 透明度・上下動き・表示非表示  */
      opacity 0.3s,
      transform 0.3s,
      visibility 0.3s;
  }

  .header__nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .header__list {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .header__item {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
  }

  .header__item a {
    display: block;
    padding: 16px;
    width: 100%;
  }

  .header__item--contact {
    margin-top: 20px;
    /* aタグにpaddingをつけるためリセット */
    padding: 0;
    border-bottom: none;
  }

  .header__item--contact a {
    padding: 14px 24px;
    border-radius: 6px;
  }

  .header__hamburger.is-open
  .header__hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .header__hamburger.is-open
  .header__hamburger-line:nth-child(2) {
    opacity: 0;
  }

  .header__hamburger.is-open
  .header__hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

/* firstView */
  .fv__inner {
  }

  .fv__image img {
    min-height: 640px;
    object-fit: cover;
    object-position: 65% center;
  }

  .fv__content {
    top: 50%;
    left: 52%;
    transform: translate(-50%, -50%);
    width: 86%;
    text-align: center;
  }

  .fv__label {
    margin: 0 auto 20px;
    padding: 6px 14px;
    font-size: 9px;
    gap: 8px;
  }

  .fv__label-badge {
    width: 10px;
    height: 10px;
  }

  .fv__label-text {
    font-size: 9px;
  }

  .fv__title {
    font-size: 34px;
    line-height: 1.25;
    text-align: center;
    padding: 2px 4px;
    background: rgba(255,255,255,.8);
    transform: translateX(5px);
  }

  .fv__text {
    max-width: 540px;
    text-align: center;
    margin: 28px auto 0;
    font-size: 14px;
    color: #374151;
    line-height: 1.8;
    padding: 4px 8px;
    background: rgba(255,255,255,.8);
  }

  .fv__text br {
    display: none;
  }

  .fv__buttons {
    flex-direction: column;
    gap: 14px;
    margin-top: 24px;
  }

  .button {
    width: 100%;
    text-align: center;
  }

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

  .works-card__body {
    padding: 18px;
  }

  .works-card__title {
    font-size: 16px;
  }

/* skill */
  .skills__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .skill-card {
    padding: 24px 12px;
  }

  .skill-card img {
    width: 50px;
    margin: 0 auto 10px;
  }

/* about */
  .about__content {
    flex-direction: column;
    gap: 32px;
    text-align: center;
  }

  .about__text {
    line-height: 1.5;
  }

  .about__text br {
    display: none;
  }

  .about__profile {
    width: 100%;
  }

  .about__text-area {
    width: 100%;
  }

  .about__heading {
    font-size: 21px;
  }

  .about__heading br {
    display: block;
  }

  .about__text br {
    display: none;
  }

  .about__info {
    flex-direction: column;
  }

  .about__info-item:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
  }

/* contact */
  .contact__inner {
    max-width: 100%;
  }

  .contact-form {
    padding: 28px 20px;
  }

  .contact-form__item textarea {
    min-height: 150px;
  }

  .contact-form__privacy {
    justify-content: flex-start;
  }

  .contact-form__privacy-label {
    align-items: flex-start;
    font-size: 13px;
  }

  .contact-form__button {
    width: 100%;
  }

/* footer */
  .footer__inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer__list {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
 }

@media (max-width: 480px) {
  .section-title__text {
    font-size: 13px;
    line-height: 1.7;
  }

  .header__inner {
     padding: 0 16px;
  }

  .header__nav {
     padding: 20px 16px;
  }

  .fv__image img {
     min-height: 600px;
  }

  .fv__title {
    font-size: 30px;
    transform: translateX(4px);
  }

  .fv__label {
    padding: 6px 12px;
    font-size: 12px;
  }

  .works-card__body {
    padding: 16px 14px;
  }

  .works-card__title {
    font-size: 14px;
    line-height: 1.5;
  }

  .works-card__text {
    font-size: 12px;
    line-height: 1.7;
  }

  .works__button {
    width: 100%;
    max-width: 200px;
    margin: 36px auto 0;
  }

  .works__button .button {
    width: 100%;
    min-width: 0;
    padding: 12px 16px;
    font-size: 10px;
  }

  .skills__list {
    grid-template-columns: 1fr;
  }

  .skill-card img {
    width: 48px;
    margin: 0 auto 8px;
  }

  .works-card__text br {
    display: none;
  }

  .about__profile {
    width: 100%;
  }

  .about__image {
    width: 150px;
    height: 150px;
    margin: 0 auto 16px;
  }

  .about__heading {
    font-size: 18px;
  }

  .about__heading br {
    display: block;
  }

  .about__text br {
    display: none;
  }

  .about__info {
    flex-direction: column;
  }

  .about__info-item:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
  }

  .contact {
    padding-left: 12px;
    padding-right: 12px;
  }

  .contact__inner {
    max-width: 100%;
  }

  .contact-form {
    padding: 24px 16px;
  }

  .contact-form__item textarea {
    min-height: 120px;
  }

  .contact-form__privacy {
    justify-content: flex-start;
    margin: 25px 0;
  }

  .contact-form__privacy .wpcf7-list-item label {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
  }

  .contact-form__privacy input[type="checkbox"] {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    margin-top: 2px;
  }

  .contact-form__privacy .wpcf7-list-item-label {
    flex: 1;
    min-width: 0;
    font-size: 11px;
    line-height: 1.5;
    white-space: normal;
  }

  .contact-form__privacy-label {
    align-items: flex-start;
    font-size: 11px;
  }

  .contact-form__button {
    width: 100%;
  }
}

@media (min-width: 1920px) {
    .fv__content {
        max-width: 650px;
    }

    .fv__title {
        font-size: 56px;
    }

    .fv__text {
        font-size: 18px;
    }
}