/* =========================
  Object Project（p-）
  ========================= */
@layer project {
  .feature-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px 40px;
  }
  .feature-item {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid var(--g-indigo-200);
  }
  @media (min-width: 768px) {
    .feature-list {
      grid-template-columns: repeat(2, 1fr);
      gap: 4rem 3.2rem;
    }
  }
  /* トップ */
  .p-hero {
    position: relative;
    color: var(--white);
    background-image: url("../img/bg_symbol.svg"), url("../img/bg_symbol.svg"),
      linear-gradient(135deg, #7f6dd9 0%, #45a9c7 77%, #f7d0a8 100%);
    background-repeat: no-repeat;
    background-position: left -67px top -45px, right -60px top 80px, 0 0;
    background-size: 180px auto, 180px auto, auto;
    overflow: hidden;
  }
  .p-hero__bg-particles {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
  }
  .p-hero__bg-particles .particle {
    position: absolute;
    inset: -20%;
    background-image: url("../img/top/particle.svg");
    background-repeat: repeat;
    background-size: 50px 50px;
    opacity: 0.5;
    will-change: transform, background-position;
    transition: transform 0.2s ease-out;
    animation: particleMove 80s linear infinite;
  }
  .p-hero__bg-particles .particle:nth-child(1) {
    opacity: 0.15;
  }
  .p-hero__bg-particles .particle:nth-child(2) {
    background-size: 80px auto;
    opacity: 0.25;
  }
  .p-hero__bg-particles .particle:nth-child(3) {
    background-size: 60px auto;
    opacity: 0.35;
  }
  @keyframes particleMove {
    from {
      background-position: 0 0;
    }
    to {
      background-position: -200px -200px;
    }
  }
  @media (max-width: 768px) {
    .p-hero__bg-particles {
      display: none;
    }
  }
  .p-hero__inner {
    max-width: 1240px;
    margin-inline: auto;
    padding: 20px 20px 40px;
    position: relative;
  }
  .p-hero__eyebrow {
    margin: 0 auto 20px;
    font-size: clamp(1.2rem, 2vw, 1.4rem);
    letter-spacing: 0.08em;
    font-family: var(--font-heading-en);
    font-weight: normal;
    color: var(--g-indigo-200);
  }
  .p-hero__title {
    gap: 5px 0;
    font-size: clamp(2.8rem, 6vw, 3.6rem);
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.5;
  }
  .p-hero__logo {
    display: inline-block;
    height: 1.6em;
    padding-top: 0.1em;
    vertical-align: bottom;
  }
  @media (min-width: 768px) {
    .p-hero {
      background-position: left calc(50% - 600px) top -106px,
        left calc(50% + 508px) top -67px, 0 0;
      background-size: 420px auto, 420px auto, auto;
    }
    .p-hero__eyebrow {
      margin-bottom: 1.4em;
      font-size: clamp(1.6rem, 1.65vw, 2.2rem);
      text-align: right;
    }
    .p-hero__title {
      margin: 0 auto 1.25em;
      font-size: clamp(4.2rem, 4.1vw, 5.6rem);
    }
  }
  .p-hero__lead {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 30px;
    font-size: 1.6rem;
    line-height: 1.8;
  }
  .p-hero__lead-emphasis {
    font-size: 1.275em;
    font-weight: bold;
  }
  .p-hero__lead-tail {
    display: block;
  }
  .p-hero__actions {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
  }
  @media (min-width: 768px) {
    .p-hero__body {
      display: grid;
      grid-template-columns: auto minmax(320px, 1fr);
      gap: 40px;
    }
    .p-hero__lead {
      display: block;
      margin: 0 auto 40px;
      font-size: clamp(1.8rem, 1.7vw, 2.2rem);
    }
    .p-hero__lead-tail {
      display: inline;
    }
    .p-hero__actions {
      flex-direction: row;
      flex-wrap: wrap;
      gap: 20px;
    }
  }
  .p-hero__news {
    width: 100%;
    margin: 40px auto auto;
    background: #ffffffd9;
    border-radius: 20px;
    color: var(--indigo-950);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.16);
  }
  .p-hero__newsHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: #7171711a;
  }
  .p-hero__newsTitle {
    margin: 0;
    font-size: 1.4rem;
    font-weight: bold;
  }
  .p-hero__newsLink {
    padding-right: 2.5rem;
    background: url(../img/ic_yagasuri_indigo.svg) no-repeat right 0.15em;
    background-size: 1.5rem;
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--indigo-950);
    text-decoration: none;
  }
  .p-hero__newsList {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    line-height: 1.6;
  }
  .p-hero__newsItem {
    display: flex;
    flex-direction: column;
    padding: 10px 15px;
    font-size: 1.5rem;
  }
  .p-hero__newsItem:not(:last-child) {
    border-bottom: 1px solid var(--g-indigo-200);
  }
  .p-hero__newsItem time {
    font-size: 1.4rem;
    color: var(--g-indigo-700);
  }
  .p-hero__newsItem a {
    color: var(--indigo-950);
    text-decoration: none;
  }
  @media (min-width: 768px) {
    .p-hero__news {
      margin-top: 0;
    }
  }
  @media (hover: hover) {
    .p-hero__newsItem a:hover {
      text-decoration: underline dotted var(--g-indigo-700);
    }
  }
  /* Project Article Header */
  .p-articleHeader {
    max-width: 1240px;
    margin-inline: auto;
    margin-bottom: 30px;
  }
  .p-articleTitle {
    margin: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--white);
    font-size: clamp(2.4rem, 4vw, 3.6rem);
    font-weight: bold;
    line-height: 1.5;
  }
  .p-articleTitle.p-articleTitle--noBreadcrumb {
    padding-top: 20px;
  }
  .p-articleLead {
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-family: var(--font-heading-en);
    letter-spacing: 0.04em;
    color: var(--g-indigo-700);
    line-height: 1.5;
  }
  @media (min-width: 768px) {
    .p-articleHeader {
      margin-bottom: 60px;
    }
    .p-articleTitle {
      font-size: clamp(3.6rem, 2.5vw, 4.8rem);
    }
    .p-articleLead {
      font-size: 1.3rem;
    }
  }
  .p-articleDate {
    display: block;
    margin-block: 10px 30px;
    font-size: 1.3rem;
    letter-spacing: 0.04em;
    color: var(--g-indigo-700);
    line-height: 1.5;
  }
  @media (min-width: 768px) {
    .p-articleDate {
      font-size: 1.4rem;
    }
  }
  /* Top Carousel */
  .p-topCarousel.swiper {
    padding-block: 30px 50px !important;
  }
  .p-topCarousel .swiper-wrapper {
    transition-timing-function: linear !important;
  }
  .p-topCard {
    display: block;
    text-decoration: none;
    color: inherit;
  }
  .p-topCard img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    border: 1px solid var(--g-indigo-700);
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .p-topCard__title {
    display: flex;
    justify-content: space-between;
    gap: 3px;
    margin-top: 10px;
    font-size: 1.4rem;
  }
  .p-topCard__title::after {
    display: inline-block;
    content: "open_in_new";
    margin-top: 2px;
    font-family: "Material Symbols Outlined";
    font-weight: normal;
    font-style: normal;
    font-size: 1.2em;
    line-height: 1;
    vertical-align: middle;
    color: var(--g-indigo-200);
  }
  @media (hover: hover) {
    .p-topCard:hover img {
      transform: translateY(-4px);
      opacity: 0.9;
    }
  }
  .p-topCarousel__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-top: 24px;
  }
  .p-topCarousel .swiper-pagination {
    position: static !important;
    display: flex !important;
    gap: 8px;
    width: auto !important;
  }
  .p-topCarousel .swiper-pagination-bullet {
    margin: 0 !important;
    width: 6px !important;
    height: 6px !important;
    background: var(--g-indigo-700) !important;
    opacity: 1;
  }
  .p-topCarousel .swiper-pagination-bullet-active {
    background: var(--g-indigo-700) !important;
  }
  .swiper-navigation {
    display: flex;
    gap: 20px;
  }
  .swiper-button-prev,
  .swiper-button-next {
    border: none;
    border-radius: 50%;
    background: none;
    cursor: pointer;
  }
  .p-topCarousel .swiper-button-prev,
  .p-topCarousel .swiper-button-next {
    width: auto !important;
    margin-top: 0 !important;
    padding: 0 !important;
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
  }
  .swiper-button-prev::after,
  .swiper-button-next::after {
    display: none;
  }
  .swiper-button-prev::before,
  .swiper-button-next::before {
    content: "";
    display: block;
    width: 16px;
    height: 16px;
    border-top: 2px solid var(--g-indigo-700);
    border-right: 2px solid var(--g-indigo-700);
    margin: auto;
  }
  .swiper-button-prev::before {
    transform: rotate(-135deg);
  }
  .swiper-button-next::before {
    transform: rotate(45deg);
  }
  @media (min-width: 768px) {
    .p-topCarousel .swiper-pagination {
      gap: 15px;
    }
    .p-topCarousel .swiper-pagination-bullet {
      width: 8px !important;
      height: 8px !important;
    }
    .swiper-button-prev::before,
    .swiper-button-next::before {
      width: 20px;
      height: 20px;
    }
  }

  /* ニュース */
  @media (min-width: 768px) {
    .p-news__inner {
      display: grid;
      grid-template-columns: auto 1fr;
      gap: 80px;
      position: relative;
    }
  }
  .p-news__years {
    display: table;
    height: 3rem;
    margin-bottom: 20px;
    padding-right: 20px;
    background: #ffffffdd;
    position: sticky;
    top: var(--header-h);
    overflow-x: auto;
    overflow-y: hidden;
    z-index: 1;
  }
  .p-news__yearList {
    display: inline-flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .p-news__yearBtn {
    all: unset;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 2rem;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
  }
  .p-news__yearText {
    margin-top: -5px;
  }
  .p-news__yearBtn .c-icon {
    font-size: 1em;
  }
  @media (min-width: 768px) {
    .p-news__years {
      align-self: start;
      height: auto;
      overflow: visible;
      background: none;
    }
    .p-news__yearList {
      flex-direction: column;
      gap: 1.6rem;
    }
    .p-news__yearBtn {
      font-size: 2.8rem;
    }
  }
  .p-news__yearBlock {
    position: relative;
    scroll-margin-top: 4rem;
  }
  .p-news__yearBlock + .p-news__yearBlock {
    margin-top: 60px;
  }
  .p-news__yearTitle {
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    padding-right: 20px;
    background: #ffffffcc;
    position: sticky;
    top: calc(var(--header-h) + 3rem);
  }
  .p-news__yearTitle::before {
    content: "";
    width: 1.2em;
    height: 1.2em;
    flex-shrink: 0;
    background-image: url("../img/ic_shuriken_lime.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }
  @media (min-width: 768px) {
    .p-news__yearBlock:first-child .p-news__yearTitle {
      margin-top: 0;
    }
    .p-news__yearBlock {
      scroll-margin-top: 0;
    }
    .p-news__yearTitle {
      top: var(--header-h);
      background: none;
    }
  }
  .p-news__list {
    margin: 0;
    padding: 0;
  }
  .p-news__item {
    list-style-type: none;
    padding: 20px 0;
    border-top: 1px dotted var(--g-indigo-200);
  }
  .p-news__item:last-child {
    border-bottom: 1px dotted var(--g-indigo-200);
  }
  .p-news__item article {
    display: grid;
    gap: 20px;
  }
  .p-news__date {
    display: block;
    font-size: 1.5rem;
    color: var(--g-indigo-700);
  }
  .p-news__body {
    font-size: 1.6rem;
    line-height: 1.8;
  }
  .p-news__body p {
    margin: 0;
  }
  @media (min-width: 768px) {
    .p-news__item {
      padding: 30px 0;
    }
    .p-news__item article {
      grid-template-columns: 180px 1fr;
      align-items: center;
      gap: 0;
    }
    .p-news__date {
      margin-bottom: 0;
    }
  }

  /* スタッフ */
  .p-staff {
  }
  .p-staff__list {
    display: grid;
    gap: 40px;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .p-staff__item {
    container-type: inline-size;
    container-name: staff;
  }
  @media (min-width: 768px) {
    .p-staff__list {
      grid-template-columns: repeat(2, 1fr);
      gap: 50px;
    }
  }

  .p-staffCard {
    padding-block: 20px;
    background: var(--white);
    border: 1px solid var(--g-indigo-200);
  }
  /* header */
  .p-staffCard__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
  }
  .p-staffCard__name {
    margin: 0;
    padding-inline: 20px 0;
    border-left: 10px solid var(--lime-300);
    font-size: 2rem;
    line-height: 1.2;
  }
  .p-staffCard__name::before {
    display: none;
  }
  .p-staffCard__nameEn {
    display: inline-block;
  }
  .p-staffCard__more {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 4px 7px 6px;
    background: var(--g-indigo-100);
    color: #4b4fa3;
    font-size: 1.4rem;
    font-weight: bold;
    text-decoration: none;
    line-height: 1;
    overflow-wrap: normal;
    word-break: normal;
  }
  .p-staffCard__more:hover {
    background: #f3f5ff;
  }
  .p-staffCard__more:after {
    margin-top: 2px;
    font-variation-settings: "wght" 400 !important
  }
  .p-staffCard__body {
    display: grid;
    gap: 20px;
    margin-top: 20px;
    padding-inline: 20px;
  }

  .p-staffCard__photo {
    margin: 0;
  }
  .p-staffCard__photo img {
    display: block;
    width: 140px;
    aspect-ratio: 160 / 185;
    margin: auto;
    object-fit: cover;
    border-radius: 20px;
  }
  /* meta */
  .p-staffCard__meta {
    display: grid;
    gap: 20px;
  }
  .p-staffCard__meta dt {
    font-size: 1.2rem;
    color: var(--g-indigo-700);
  }
  .p-staffCard__meta dt:first-child {
    margin-top: 0;
  }
  .p-staffCard__meta dd {
    margin: 0;
    font-size: 1.4rem;
    font-weight: bold;
    line-height: 1.6;
  }
  @container staff (min-width: 450px) {
    .p-staffCard__body {
      grid-template-columns: auto 1fr;
    }
  }

  @media (min-width: 768px) {
    .p-staffCard {
      padding-block: 30px;
      gap: 30px;
    }
    .p-staffCard__body {
      gap: 30px;
      margin-top: 30px;
      padding-inline: 30px;
    }
    .p-staffCard__photo img {
      width: 160px;
    }
  }
  /* コンテンツ・ツール */
  .p-tool-map {
    width: 100%;
    aspect-ratio: 1200 / 936;
    position: relative;
    background: url(../img/contents/graph_bgOnlineContents_sp.webp) no-repeat
      center;
    background-size: 100% auto;
  }
  .p-tool-map__item {
    width: 16%;
    background: var(--white);
    border: 1px solid var(--indigo-950);
    position: absolute;
    left: var(--x);
    top: var(--y);
  }
  .p-tool-map__item img {
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }
  @media (min-width: 768px) {
    .p-tool-map {
      background-image: url(../img/contents/graph_bgOnlineContents_pc.webp);
    }
  }
  @media (hover: hover) {
    .p-tool-banner {
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .p-tool-banner:hover::after {
      content: "詳細を見る";
      display: flex;
      align-items: center;
      justify-content: center;
      height: 2em;
      margin: auto;
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      background: rgba(0, 0, 0, 0.16);
      background: #ffffffcc;
      background: var(--g-indigo-100);
      font-size: 1.2rem;
      font-weight: bold;
      transition: opacity 0.2s ease;
      pointer-events: none;
    }
    .p-tool-banner:hover,
    .p-tool-banner:focus-visible {
      transform: translateY(-3px) scale(1.03);
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.16);
    }
    .p-tool-banner:hover .p-tool-banner__image,
    .p-tool-banner:focus-visible .p-tool-banner__image {
      filter: brightness(1.05);
    }
    .p-tool-banner:hover::after,
    .p-tool-banner:focus-visible::after {
      opacity: 1;
    }
  }

  .p-tool-list {
    display: grid;
    list-style: none;
    margin: 0 auto;
    padding: 0;
  }
  .p-tool-list__item {
    container-name: tool-list__item;
    container-type: inline-size;
    display: table;
    max-width: 360px;
    margin-inline: auto;
    border-bottom: 2px dotted var(--g-indigo-200);
  }
  .p-tool-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 40px 10px;
  }
  .p-tool-card__logo {
    margin: 0;
    max-width: 240px;
  }
  .p-tool-card__logo img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border: 1px solid var(--g-indigo-200);
    margin: 0 auto;
  }
  .p-tool-card__body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
  }
  .p-tool-card__title {
    margin: 0;
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 1.4;
  }
  .p-tool-card__title::before {
    display: none;
  }
  .p-tool-card__meta {
    display: grid;
    gap: 30px;
    width: 100%;
  }
  .p-tool-card__categories {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .p-tool-card__actions {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    width: 100%;
  }

  @container tool-list__item (min-width: 700px) {
    .p-tool-card {
      display: grid;
      grid-template-columns: 190px 1fr;
      gap: 40px;
    }
    .p-tool-card__title {
      font-size: 2.2rem;
    }
    .p-tool-card__meta {
      grid-template-columns: 1fr auto;
    }
    .p-tool-card__actions {
      flex-direction: row;
      gap: 1.6rem;
    }
  }
  @media (min-width: 600px) {
    .p-tool-list {
      grid-template-columns: repeat(2, 1fr);
      gap: 0 30px;
    }
  }
  @media (min-width: 768px) {
    .p-tool-list {
      grid-template-columns: 1fr;
    }
    .p-tool-list__item {
      display: block;
      width: 100%;
      max-width: 100%;
    }
  }
    /* アプリダウンロード */
  .p-appDL {
    flex-direction: row;
    gap: 10px !important;
    align-items: stretch !important;
    width: max-content;
    margin-block: 20px;
    padding: 10px;
    background-color: var(--g-indigo-200);
    background-image: radial-gradient(circle, #ffffff 0.5px, transparent 0.5px);
    background-position: 0 0;
    background-size: 9px 9px;
  }
  .p-appDL .wp-block-group {
    width: 160px;
    padding: 10px;
    background: #fff;
    border-radius: 20px;
    text-align: center;
  }
  .p-appDL p {
    margin-bottom: 0;
  }
  .p-appDL-btn {
    display: inline-block;
    width: max-content;
    height: max-content;
    margin-top: 0;
    margin-bottom: auto;
  }
  .p-appDL-btn::after {
    display: none;
  }
  .p-appDL-btn img {
    width: auto;
    height: 50px;
    height: 40px;
    vertical-align:middle;
  }
  .p-appDL-btn.p-appDL-btn--android img {
    margin-top: -7px;
    height: 60px;
    height: 50px;
  }
  @media (min-width: 768px) {
    .p-appDL {
      gap: 20px !important;
      padding: 20px;
    }
    .p-appDL .wp-block-group {
      width: 200px;
    }
    .p-appDL-btn img {
      height: 50px;
    }
    .p-appDL-btn.p-appDL-btn--android img {
      height: 60px;
    }
  }

  /* よくあるご質問 */
  .p-faq {
    display: grid;
    gap: 20px;
  }
  .p-faq__item {
    display: grid;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.16);
    overflow: hidden;
  }
  .p-faq__toggle {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px 15px 20px;
    font-size: 1.6rem;
    font-weight: bold;
    position: relative;
    cursor: pointer;
  }
  .p-faq__toggle::-webkit-details-marker {
    display: none;
  }
  .p-faq__toggle::before,
  .p-faq__answer::before {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3em;
    aspect-ratio: 2;
    padding-top: 0.2em;
    border-radius: 0.8rem;
    font-weight: 700;
    font-family: var(--font-heading-en);
    line-height: 1;
  }
  .p-faq__toggle::before {
    content: "Q";
    background: var(--g-indigo-700);
    color: var(--white);
  }
  .p-faq__toggle::after {
    content: "add";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5em;
    aspect-ratio: 1;
    background: var(--g-indigo-700);
    border-radius: 100px;
    color: var(--white);
    font-family: "Material Symbols Rounded";
    font-size: 1.8rem;
    font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
    line-height: 1;
    position: absolute;
    right: 10px;
    top: 10px;
  }
  .p-faq__item[open] .p-faq__toggle::after {
    content: "remove";
  }
  .p-faq__answer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px 15px 20px;
    position: relative;
    overflow: hidden;
    transition: height 0.2s;
    will-change: height;
  }
  .p-faq__answer::before {
    content: "A";
    background: var(--g-indigo-200);
    color: var(--indigo-800);
  }
  .p-faq__answer p {
    margin: 0;
  }
  @media (min-width: 768px) {
    .p-faq {
      gap: 30px;
    }
    .p-faq__item {
    }
    .p-faq__toggle {
      flex-direction: row;
      align-items: center;
      padding: 30px;
    }
    .p-faq__toggle::before,
    .p-faq__answer::before {
      align-self: flex-start;
      width: 2.3em;
      aspect-ratio: 1;
    }
    .p-faq__toggle::after {
      align-self: flex-start;
      flex-shrink: 0;
      margin-top: 0.3em;
      margin-left: auto;
      position: static;
    }
    .p-faq__answer {
      flex-direction: row;
      align-items: center;
      gap: 20px;
      padding: 30px;
    }
  }
  /* 404 */
  .p-404 p {
    margin-block: 1em;
    line-height: 1.75;
  }
  .p-404__nav {
    display: grid;
    gap: 1em;
    margin-top: 30px;
  }
}
