/* =====================
  Base
===================== */
body {
  margin: 0;
  font-family: "Epilogue", sans-serif;
  font-family: "Noto Sans JP", sans-serif;
  color: #333;
  line-height: 1.8;
}

/* モーダル表示中は背景スクロール禁止 */
body.is-modal-open {
  overflow: hidden;
}

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

a:hover {
  opacity: 0.8;
}

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

dd {
  margin-left: 0;
}

.font-bold {
  font-weight: 600;
}

.font-small {
  font-size: 12px !important;
}

.link {
  text-decoration: underline;
}

/* =====================
  Header
===================== */
.header {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1000;
  padding: 24px 0;
  font-family: "Epilogue", sans-serif;
}

.header-inner {
  width: min(1100px, 90%);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
}

.logo {
  font-size: 1.2rem;
  font-weight: 600;
}

.nav {
  display: grid;
  grid-auto-flow: column;
  gap: 32px;
}

@media (max-width: 767px) {
  .header {
    padding: 16px 0;
  }
  .header-inner {
    justify-content: center;
  }
  .nav {
    display: none;
  }
}

/* =====================
  Hero
===================== */
.hero {
  padding: 56px 0;
  text-align: center;
}

.hero-inner {
  width: min(700px, 90%);
  margin: 0 auto;
}

.hero-image {
  max-width: 240px;
  border-radius: 50%;
  margin: 0 auto 16px;
}

.hero-image img {
  width: 100%;
}

.hero-title {
  font-size: 40px;
  margin-bottom: 24px;
  font-family: "Epilogue", sans-serif;
}

.hero-text {
  font-size: 15px;
  margin-bottom: 32px;
  font-family: "Noto Sans JP", sans-serif;
}

.btn {
  display: inline-block;
  padding: 16px 0px;
  width: 240px;
  background: #222;
  color: #fff;
  border-radius: 999px;
  font-size: 20px;
  font-family: "Epilogue", sans-serif;
}

@media (max-width: 767px) {
  .hero {
    padding: 24px 0;
  }
  .hero-title {
    font-size: 32px;
    margin-bottom: 24px;
  }
  .btn {
    display: inline-block;
    padding: 12px 0px;
    width: 200px;
    font-size: 16px;
  }
}

/* =====================
  Section
===================== */
.section {
  padding: 80px 0;
}

.section-inner {
  width: min(1100px, 90%);
  margin: 0 auto;
}

.section-title {
  font-size: 32px;
  margin-bottom: 32px;
  font-family: "Epilogue", sans-serif;
}

@media (max-width: 767px) {
  .section {
    padding: 40px 0;
  }

  .section-title {
    font-size: 24px;
    margin-bottom: 16px;
  }
}

/* =====================
  Section layout（PC横並び）
===================== */
@media (min-width: 767px) {
  .section-horizontal .section-inner {
    display: grid;
    grid-template-columns: 200px 1fr;
    column-gap: 64px;
    align-items: start;
  }

  .section-horizontal .section-title {
    margin-bottom: 0;
  }
}

/* =====================
  Skills
===================== */
.skill-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  list-style: none;
  padding: 0;
}

.skill-list li {
  border: 1px solid #ddd;
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  font-size: 0.9rem;
  font-family: "Noto Sans JP", sans-serif;
}

/* =====================
  Tools
===================== */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  list-style: none;
  padding: 0;
}

.tool-card {
  border: 1px solid #ddd;
  border-radius: 16px;
  padding: 24px;
}

.tool-name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tool-card img {
  width: 32px;
  height: auto;
}

.tool-card p {
  font-family: "Epilogue", sans-serif;
  font-weight: 400;
  margin-top: 2px;
}

.bar {
  display: block;
  height: 4px;
  margin-top: 2vh;
  background: #e0e0e0;
  border-radius: 999px;
  overflow: hidden;
}

.bar::after {
  content: "";
  display: block;
  height: 100%;
  width: calc(var(--level) * 1%);
  background: #5b9bd5;
  border-radius: 999px;
  min-width: 8px;
}

/* =====================
  Work
===================== */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 80px 48px;
}

@media (max-width: 768px) {
  .work-grid {
    gap: 40px;
  }
}

.work-grid h3 {
  margin-top: 16px;
}

.work-grid p{
  font-size: 0.9em;
}

.work-grid li a {
  display: block;
}

.work-grid li {
  overflow: hidden;
}

.work-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid #ddd;
  overflow: hidden;
  border-radius: 16px;
}

.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.tag {
  display: inline-block;
  border: 1px solid #333;
  border-radius: 999px;
  font-size: 12px;
  padding: 2px 12px;
  margin-top: 12px;
  margin-right: 4px;
  font-family: "Epilogue", sans-serif;
}


/* =====================
  Offer
===================== */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  list-style: none;
  padding: 0;
}

.offer-grid li h3 {
  margin: 40px 0px 16px;
  font-size: 18px;
}

.offer-grid li p {
  font-size: 14px;
}

@media (max-width: 768px) {
.offer-grid li h3 {
  margin: 20px 0px 10px;
  font-size: 16px;
}

.offer-grid li p {
  font-size: 14px;
}
}

/* =====================
  Footer
===================== */
.footer {
  padding: 40px 0;
  text-align: center;
  font-size: 12px;
  color: #666;
  margin-top: 120px;
}

/* ==================================================
  Work Detail Page
================================================== */

.work-detail {
  max-width: 1040px;
  margin: 0 auto;
  padding: 120px 20px 0px;
}

/* ===== Hero ===== */

.work-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.work-hero-image {
  border-radius: 16px;
  aspect-ratio: 1 / 1;
}

.work-hero-image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.work-category {
  font-family: "Epilogue", sans-serif;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 32px;
}

.work-title {
  font-size: 28px;
  margin-bottom: 4px;
}

.work-client {
  font-size: 14px;
  margin-bottom: 16px;
}

.work-tags {
  font-family: "Epilogue", sans-serif;
  display: flex;
  gap: 8px;
  margin-bottom: 40px;
}

.work-tags li {
  padding: 2px 12px;
  border: 1px solid #333;
  border-radius: 999px;
  font-size: 12px;
}

.work-info div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  margin-bottom: 10px;
}

.work-info dt {
  font-size: 13px;
  font-weight: 600;
}

.work-info dd {
  font-size: 14px;
}

/* ===== Content Section ===== */

.work-section {
  margin-top: 80px;
  padding: 40px;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
}

.work-section-title {
  font-size: 28px;
  margin-bottom: 24px;
}

.work-section h3 {
  font-size: 20px;
  margin-top: 32px;
  margin-bottom: 8px;
}

.work-section h4 {
  font-size: 16px;
  margin-top: 16px;
  margin-bottom: 8px;
}

.work-section p,
.work-section li {
  list-style: disc;
  font-size: 16px;
  line-height: 1.8;
}

.work-section ul {
  padding-left: 1.2em;
}

.work-emphasis {
  margin-top: 16px;
  font-weight: 500;
}

/* ===== Image Grid ===== */

.work-image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 24px 0;
}

.work-image-grid img {
  width: 100%;
  border-radius: 12px;
  background: #e0e0e0;
}

/* ===== Responsive ===== */

@media (max-width: 768px) {

  .work-detail {
    padding: 40px 20px 80px;
  }

  .work-hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .work-section {
    padding: 24px;
    margin-top: 40px;
  }

  .work-image-grid {
    grid-template-columns: 1fr;
  }

  .work-category {
    margin-bottom: 10px;
  }

  .work-title {
    font-size: 24px;
    margin-bottom: 2px;
  }

  .work-section-title {
    font-size: 20px;
    margin-bottom: 16px;
  }

  .work-section h3 {
    font-size: 16px;
    margin-top: 16px;
    margin-bottom: 8px;
  }

  .work-section h4 {
    font-size: 14px;
    margin-top: 12px;
    margin-bottom: 6px;
  }

  .work-section p,
  .work-section li {
    list-style: disc;
    font-size: 14px;
    line-height: 1.8;
  }
}

/* ==================================================
  About Page
================================================= */

.about-page {
  max-width: 1040px;
  margin: 0 auto;
  padding: 120px 20px 0px;
}

/* ===== Section Layout ===== */

.about-section {
  display: grid;
  grid-template-columns: 200px 1fr;
  column-gap: 64px;
  margin-bottom: 120px;
}

.about-section:last-child {
  margin-bottom: 0px;
}

.about-title {
  font-size: 28px;
  line-height: 1.2;
  font-family: "Epilogue", sans-serif;
}

/* ===== Card List ===== */

.about-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.about-card {
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  padding: 32px;
  background: #fff;
}

/* ===== Card Header ===== */

.about-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.about-card h2 {
  font-size: 16px;
}

.about-role {
  font-size: 13px;
  color: #666;
  margin-top: 2px;
}

.about-period {
  padding: 2px 12px;
  border: 1px solid #333;
  border-radius: 999px;
  font-size: 12px;
  white-space: nowrap;
}

/* ===== Text ===== */

.about-text {
  font-size: 14px;
  line-height: 1.8;
  margin-top: 16px;
}

.experience-list {
  padding-left: 1.2em;
  margin-top: 16px;
}

.experience-list li {
  list-style: disc;
  font-size: 14px;
  line-height: 1.8;
}


/* ===== Simple Card (Licence) ===== */

.about-card--simple {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ===== Responsive ===== */

@media (max-width: 768px) {

  .about-page {
    max-width: 1040px;
    margin: 0 auto;
    padding: 40px 20px 20px;
  }

  .about-section {
    grid-template-columns: 1fr;
    row-gap: 24px;
    margin-bottom: 80px;
  }

  .about-title {
    font-size: 24px;
  }

  .about-card {
    padding: 24px;
  }

  .about-card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .about-card--simple {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* ==================================================
  Work Page UI/UX 
================================================= */
.persona-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 24px 0px 40px;
}

.persona-image {
  width: 100%;
  max-width: 360px;
}

.persona-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  object-fit: cover;
}

.persona-profile {
  flex: 1;
  font-size: 14px;
}

@media (min-width: 768px) {
  .persona-info {
    flex-direction: row;
    align-items: flex-start;
    gap: 48px;
  }
}

.profile-list {
  display: grid;
  row-gap: 16px;
}

.profile-list div {
  display: grid;
  grid-template-columns: 100px 1fr;
  column-gap: 16px;
}

.profile-list dt {
  font-weight: 600;
  color: #555;
}

.profile-list dd {
  margin: 0;
}

/* ==================================================
  imaga modal
================================================= */

.image-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.image-modal.is-open {
  display: flex;
}

.image-modal img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
}

.image-modal__close {
  color: #000;
  position: absolute;
  top: 16px;
  right: 16px;
  background: #fff;
  border: none;
  font-size: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
}

/* モーダル対象画像 */
.js-modal-image {
  cursor: pointer;
  transition: opacity 0.2s ease;
}

/* hover可能な端末のみ */
@media (hover: hover) and (pointer: fine) {
  .js-modal-image:hover {
    opacity: 0.85;
  }
}

