/* ============================================================
   pages.css
   All page-specific styles consolidated into one file.
   Shared components (breadcrumb, pagination, filter-bar,
   page-inner, page-title-area, nav-active, CTA buttons)
   live in common.css.
   ============================================================ */


/* =============================================================
   TOP PAGE
   ============================================================= */

/* ------------------------------------------------------------
   Hero Section
   ------------------------------------------------------------ */
.hero-section {
  width: 100%;
  padding-top: 20px;
  overflow: hidden;
}

.hero-bg {
  position: relative;
  width: 100%;
  height: 520px;
  background-image: url('../images/hero-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(248, 250, 255, 0.92) 0%,
    rgba(248, 250, 255, 0.6) 55%,
    rgba(248, 250, 255, 0) 100%
  );
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--section-px);
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 700px;
  width: 100%;
  padding-top: 190px;
}

.hero-title {
  font-size: 32px;
  font-weight: 500;
  color: var(--color-heading-blue);
  letter-spacing: -0.05em;
  white-space: nowrap;
  line-height: 1.25;
}

.hero-subtitle {
  font-size: 16px;
  font-weight: 400;
  color: var(--color-heading-blue);
  white-space: nowrap;
  line-height: 1.4;
}

.hero-cta {
  padding: 20px 0;
}

.btn-works {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 32px;
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-btn);
  font-size: 15px;
  font-weight: 400;
  color: var(--color-accent);
  background-color: transparent;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s;
}

.btn-works:hover {
  background-color: var(--color-accent);
  color: #ffffff;
}

.btn-works img,
.btn-works svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ------------------------------------------------------------
   Top – Works Section
   ------------------------------------------------------------ */
.works-section {
  background-color: var(--color-bg-white);
}

/* ------------------------------------------------------------
   Top – Works Grid & Cards (shared with works list page)
   ------------------------------------------------------------ */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 0;
}

.work-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 24px 20px;
  background-color: var(--color-bg-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s;
  text-decoration: none;
  color: inherit;
}

.work-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0px 12px 24px 0px rgba(0, 0, 0, 0.12);
}

.work-card.hidden,
.work-card[hidden] {
  display: none !important;
}

.work-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #d9d9d9;
  overflow: hidden;
}

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

.work-info {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.work-texts {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 80px;
  padding: 8px 0;
  font-size: 12px;
  color: var(--color-text-gray);
}

.work-title {
  font-size: 15px;
  font-weight: 500;
}

.work-desc {
  font-size: 13px;
  font-weight: 400;
}

.work-category {
  font-size: 12px;
  font-weight: 400;
}

.work-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.work-date {
  font-size: 12px;
  font-weight: 400;
  color: var(--color-text-date);
}

.work-zoom {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.2s;
  cursor: pointer;
}

.work-zoom:hover {
  opacity: 1;
}

.work-zoom img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ------------------------------------------------------------
   Top – Service Section
   ------------------------------------------------------------ */
.service-section {
  background-color: var(--color-bg-light);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  justify-content: center;
  padding: 20px 0;
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 280px;
  padding: 28px 20px;
  background-color: var(--color-bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0px 12px 24px 0px rgba(0, 0, 0, 0.12);
}

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
}

.service-icon img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.service-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  justify-content: flex-start;
  width: 100%;
}

.service-name {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
  text-align: center;
  line-height: 1.4;
}

.service-desc {
  font-size: 13px;
  font-weight: 400;
  color: var(--color-text-gray);
  line-height: 1.93;
  text-align: left;
}

.service-meta {
  font-size: 13px;
  font-weight: 400;
  color: var(--color-text-gray);
  text-align: center;
  line-height: 1;
}

/* ------------------------------------------------------------
   Top – Philosophy Section
   ------------------------------------------------------------ */
.philosophy-section {
  background-color: var(--color-bg-white);
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  justify-content: center;
  padding: 20px 44px;
}

.philosophy-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 300px;
  padding: 28px;
  background-color: var(--color-bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.philosophy-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0px 12px 24px 0px rgba(0, 0, 0, 0.12);
}

.philosophy-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.philosophy-icon img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.philosophy-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 120px;
  width: 100%;
}

.philosophy-name {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
  text-align: center;
  line-height: 1.3;
}

.philosophy-desc {
  font-size: 13px;
  font-weight: 400;
  color: var(--color-text-gray);
  line-height: 1.69;
  text-align: left;
}


/* =============================================================
   ABOUT PAGE
   ============================================================= */

/* ------------------------------------------------------------
   About – Main Area
   ------------------------------------------------------------ */
.about-main {
  padding: 0 10px 30px;
  position: relative;
}

/* ------------------------------------------------------------
   About – Intro Section
   ------------------------------------------------------------ */
.about-intro {
  margin-bottom: 60px;
}

.about-intro__body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-right: 30px;
  margin-bottom: 40px;
  position: relative;
}

.about-intro__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0 10px;
}

.about-intro__role {
  font-size: 16px;
  font-weight: 400;
  color: #1e40af;
}

.about-intro__desc {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 16px;
  font-weight: 400;
  color: #4b5563;
}

.about-intro__photo {
  flex-shrink: 0;
  max-width: 298px;
  width: 100%;
  height: auto;
  overflow: hidden;
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
}

.about-intro__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.about-divider {
  border: none;
  border-top: 2px solid var(--color-border);
  margin: 0;
}

/* ------------------------------------------------------------
   About – Block Common Styles
   ------------------------------------------------------------ */
.about-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 80px;
}

.block-title-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  white-space: nowrap;
}

.block-title-en {
  font-family: var(--font-jp);
  font-size: 32px;
  font-weight: 500;
  color: #1f2937;
  line-height: 1;
}

.block-title-en--serif {
  font-family: var(--font-en);
  font-weight: 600;
  color: var(--color-title);
}

.block-title-ja {
  font-size: 15px;
  font-weight: 400;
  color: var(--color-text-gray);
  line-height: 1;
  margin-bottom: 2px;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checklist-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex-shrink: 0;
}

/* ------------------------------------------------------------
   About – Background Section
   ------------------------------------------------------------ */
.background-layout {
  display: flex;
  align-items: stretch;
  min-height: 134px;
}

.background-checklist {
  background-color: var(--color-bg-light);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 30px 40px 30px 20px;
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 500;
  color: #1f2937;
}

.background-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 30px;
  border-bottom: 2px solid var(--color-text-gray);
  font-size: 15px;
  font-weight: 500;
  color: #1f2937;
  line-height: 1.6;
}

/* ------------------------------------------------------------
   About – Skills Grid
   ------------------------------------------------------------ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 10px 0;
}

.skill-card {
  background-color: var(--color-bg-light);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 178px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0px 12px 24px 0px rgba(0, 0, 0, 0.12);
}

.skill-card__header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.skill-card__icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex-shrink: 0;
}

.skill-card__name {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
  white-space: nowrap;
}

.skill-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-gray);
  line-height: 1.6;
  letter-spacing: -0.03em;
  flex: 1;
}

/* ------------------------------------------------------------
   About – Philosophy List
   ------------------------------------------------------------ */
.philosophy-list {
  background-color: var(--color-bg-light);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 30px 40px 30px 20px;
  font-size: 15px;
  font-weight: 500;
  color: #1f2937;
  min-height: 124px;
  justify-content: center;
}

/* ------------------------------------------------------------
   About – Bottom CTA
   ------------------------------------------------------------ */
.about-cta {
  background-color: var(--color-bg-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 50px 20px;
}

.about-cta__text {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-gray);
  text-align: center;
}

.about-cta__buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}


/* =============================================================
   SERVICE PAGE
   ============================================================= */

/* ------------------------------------------------------------
   Service – Title Description
   ------------------------------------------------------------ */
[data-page="service"] .page-title-desc {
  font-size: 16px;
  font-weight: 400;
  color: #4b5563;
  line-height: 1.7;
}

/* ------------------------------------------------------------
   Service – Block Common
   ------------------------------------------------------------ */
.service-block {
  padding: 0 10px 50px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.service-block__title {
  font-family: var(--font-jp);
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1;
}

.service-block__desc {
  font-size: 16px;
  font-weight: 400;
  color: #4b5563;
  line-height: 1.7;
}

/* ------------------------------------------------------------
   Service – Service Cards
   ------------------------------------------------------------ */
.service-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  justify-content: center;
  padding: 20px 0;
}

.service-card-item {
  background-color: var(--color-bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 280px;
  padding: 28px 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card-item:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0px 12px 24px 0px rgba(0, 0, 0, 0.12);
}

.service-card-item__icon-area {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
}

.service-card-item__icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.service-card-item__text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  justify-content: flex-start;
  width: 100%;
  padding-top: 8px;
}

.service-card-item__name {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
  text-align: center;
  line-height: 1.4;
}

.service-card-item__desc {
  font-size: 13px;
  font-weight: 400;
  color: var(--color-text-gray);
  line-height: 1.93;
  text-align: left;
}

.service-card-item__meta {
  font-size: 13px;
  font-weight: 400;
  color: var(--color-text-gray);
  text-align: center;
  line-height: 1;
}

/* ------------------------------------------------------------
   Service – Process Section
   ------------------------------------------------------------ */
.process-section {
  background-color: var(--color-bg-light);
  padding: 40px 64px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.process-section__header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 10px;
}

.process-steps-card {
  background-color: #ffffff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 10px 5px;
}

.process-steps {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 30px 20px;
  max-width: 200px;
  width: 100%;
}

.process-step__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
}

.process-step__icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.process-step__label {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  text-align: center;
  line-height: 1.5;
}

/* ------------------------------------------------------------
   Service – Process Accordion
   ------------------------------------------------------------ */
.process-details {
  border: 1px solid #4b5563;
  border-radius: var(--radius-card);
  overflow: hidden;
}

.process-details__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 50px 10px 20px;
  background-color: #f1f2f7;
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid #4b5563;
  transition: background-color 0.2s;
}

.process-details__header:hover {
  background-color: #e8e9f0;
}

.process-details__header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: #1f2937;
}

.process-details__check-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.accordion-toggle-icon {
  display: block;
  width: 24px;
  height: 3px;
  background-color: #1f2937;
  border-radius: 8px;
  position: relative;
  flex-shrink: 0;
  transition: transform 0.35s ease;
}

.accordion-toggle-icon::before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 3px;
  background-color: #1f2937;
  border-radius: 8px;
  transform: rotate(90deg);
  transition: transform 0.35s ease;
}

[aria-expanded="true"] > .accordion-toggle-icon,
[aria-expanded="true"] .accordion-toggle-icon {
  transform: rotate(180deg);
}

[aria-expanded="true"] > .accordion-toggle-icon::before,
[aria-expanded="true"] .accordion-toggle-icon::before {
  transform: rotate(0deg);
}

.process-details__body {
  background-color: transparent;
  overflow: hidden;
  transition: height 0.35s ease;
}

.process-details__body.is-collapsed {
  display: none;
}

.process-detail-item__body {
  overflow: hidden;
  transition: height 0.3s ease, padding 0.3s ease;
}

.process-detail-item__body.is-collapsed {
  display: none;
}

.process-detail-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px 5px;
  box-shadow: inset 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
}

.process-detail-item {
  display: flex;
  flex-direction: column;
  padding: 10px 20px;
}

.process-detail-item__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 50px 10px 20px;
  background-color: #ffffff;
  border: 1px solid #4b5563;
  border-radius: var(--radius-card);
  cursor: pointer;
  user-select: none;
  box-shadow: var(--shadow-card);
  transition: background-color 0.2s;
}

.process-detail-item__header:hover {
  background-color: #f9fafb;
}

.process-detail-item__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: #1f2937;
}

.process-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 48px;
  font-size: 15px;
  font-weight: 500;
  color: #1f2937;
}

.process-detail-item__body {
  padding: 20px 20px 20px 68px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.7;
}

.process-detail-item__body[hidden] {
  display: none;
}

/* ------------------------------------------------------------
   Service – Process CTA
   ------------------------------------------------------------ */
.process-cta {
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 20px clamp(20px, 8vw, 134px);
  background-color: #fafbff;
}

.process-cta__text {
  font-size: 16px;
  font-weight: 500;
  color: #4b5563;
  line-height: 1.7;
  white-space: nowrap;
}

/* ------------------------------------------------------------
   Service – FAQ Section
   ------------------------------------------------------------ */
.faq-section {
  padding: 40px 10px 50px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.faq-section__header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 10px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px 5px 10px;
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-card);
}

.faq-item {
  display: flex;
  flex-direction: column;
  padding: 10px 20px;
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 50px 10px 20px;
  background-color: #fafbff;
  border: 1px solid #4b5563;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s;
}

.faq-item__question[aria-expanded="true"] {
  border-bottom: none;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
}

.faq-item__question:hover {
  background-color: #f0f4ff;
}

.faq-item__question-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-item__q-label {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
  width: 40px;
  text-align: center;
}

.faq-item__q-text {
  font-size: 15px;
  font-weight: 500;
  color: #1f2937;
  white-space: nowrap;
}

.faq-item__answer {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 20px;
  background-color: #ffffff;
  border: 1px solid #4b5563;
  border-top: none;
  border-radius: 0 0 var(--radius-card) var(--radius-card);
  overflow: hidden;
  transition: height 0.3s ease, padding 0.3s ease;
}

.faq-item__answer.is-collapsed {
  display: none;
}

.faq-item__a-label {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
  width: 40px;
  text-align: center;
  flex-shrink: 0;
  padding-top: 6px;
}

.faq-item__a-text {
  font-size: 15px;
  font-weight: 400;
  color: var(--color-text);
  line-height: 2;
}

.faq-item__a-text p + p {
  margin-top: 8px;
}

/* ------------------------------------------------------------
   Service – Bottom CTA
   ------------------------------------------------------------ */
.service-bottom-cta {
  background-color: var(--color-bg-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 50px 20px;
}

.service-bottom-cta__text {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-gray);
  text-align: center;
}

.service-bottom-cta__buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}


/* =============================================================
   WORKS LIST PAGE
   ============================================================= */

/* Works grid & card styles are defined in the TOP PAGE section
   above since they are shared between index and works pages.
   Only works-list-specific styles go here. */

/* ------------------------------------------------------------
   Works – Empty State
   ------------------------------------------------------------ */
.works-empty {
  text-align: center;
  font-size: 18px;
  color: var(--color-text-gray);
  padding: 60px 0;
}


/* =============================================================
   WORK DETAIL PAGE
   ============================================================= */

/* ------------------------------------------------------------
   Work Detail – Main Area
   ------------------------------------------------------------ */
.detail-main {
  padding: 0 10px 30px;
}

/* ------------------------------------------------------------
   Work Detail – Title Area
   ------------------------------------------------------------ */
.detail-title-area {
  padding: 20px 10px 30px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-title {
  font-family: var(--font-jp);
  font-size: 22px;
  font-weight: 500;
  color: var(--color-title);
  line-height: 1.4;
}

.detail-subtitle {
  font-size: 15px;
  font-weight: 400;
  color: var(--color-text-gray);
}

/* ------------------------------------------------------------
   Work Detail – Description (本文テキスト)
   ------------------------------------------------------------ */
.detail-description {
  padding: 0 0 20px;
  font-size: 15px;
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.8;
}

.detail-description p {
  margin-bottom: 0.8em;
}

.detail-description p:last-child {
  margin-bottom: 0;
}

/* ------------------------------------------------------------
   Work Detail – Images / Gallery
   ------------------------------------------------------------ */
.detail-images {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 10px 0 40px;
}

.detail-image-item {
  overflow: hidden;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  flex-shrink: 0;
}

.detail-image-item img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.detail-image-item--large {
  max-width: 420px;
  width: 100%;
}

.detail-image-item--small {
  max-width: 300px;
  width: 100%;
}

.detail-image-item--half {
  flex: 1;
  min-width: 0;
}

.detail-image-item--half img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-card);
}

.detail-image-item--half img + img {
  margin-top: 12px;
}

/* ------------------------------------------------------------
   Work Detail – Spec Table
   ------------------------------------------------------------ */
.detail-spec {
  padding: 10px 0 40px;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.spec-table__label {
  background-color: var(--color-bg-light);
  border: 1px solid var(--color-border);
  padding: 12px 20px;
  font-weight: 500;
  color: var(--color-text);
  white-space: nowrap;
  width: 140px;
}

.spec-table__value {
  border: 1px solid var(--color-border);
  padding: 12px 20px;
  font-weight: 400;
  color: var(--color-text-gray);
}

/* ------------------------------------------------------------
   Work Detail – Sections
   ------------------------------------------------------------ */
.detail-section {
  padding: 10px 0 40px;
}

.detail-section__title {
  font-family: var(--font-jp);
  font-size: 20px;
  font-weight: 500;
  color: var(--color-title);
  margin-bottom: 12px;
}

.detail-section__divider {
  border: none;
  border-top: 2px solid var(--color-border);
  margin-bottom: 24px;
}

/* ------------------------------------------------------------
   Work Detail – Points (Challenge / Effort)
   ------------------------------------------------------------ */
.detail-point {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detail-point__row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.detail-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 4px 14px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  margin-top: 2px;
}

.detail-badge--challenge {
  background-color: #dbeafe;
  color: #1e40af;
}

.detail-badge--effort {
  background-color: #dcfce7;
  color: #166534;
}

.detail-point__text {
  font-size: 15px;
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.7;
}

.detail-point__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
}

.detail-point__item {
  font-size: 15px;
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.7;
  padding-left: 16px;
  position: relative;
}

.detail-point__item::before {
  content: '\30FB';
  position: absolute;
  left: 0;
  color: var(--color-text-gray);
}

/* ------------------------------------------------------------
   Work Detail – Purpose
   ------------------------------------------------------------ */
.detail-purpose {
  font-size: 15px;
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.8;
}

/* ------------------------------------------------------------
   Work Detail – Navigation
   ------------------------------------------------------------ */
.detail-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 40px 0 10px;
}

.detail-nav__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-btn);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  background-color: transparent;
  transition: border-color 0.2s, color 0.2s, background-color 0.2s;
  white-space: nowrap;
}

.detail-nav__btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.detail-nav__btn--return {
  background-color: var(--color-bg-light);
}

.detail-nav__btn--return img,
.detail-nav__btn--return svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.detail-nav__btn svg {
  flex-shrink: 0;
}


/* =============================================================
   BLOG LIST PAGE
   ============================================================= */

/* ------------------------------------------------------------
   Blog – Title Note & Description
   ------------------------------------------------------------ */
.blog-title-note {
  font-size: 15px;
  font-weight: 400;
  color: var(--color-text-gray);
  padding: 0 10px;
}

[data-page="blog"] .page-title-desc {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-gray);
  line-height: 1.7;
}

/* ------------------------------------------------------------
   Blog – Card Grid
   ------------------------------------------------------------ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 0;
}

/* ------------------------------------------------------------
   Blog – Card Styles
   ------------------------------------------------------------ */
.blog-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 24px;
  background-color: var(--color-bg-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.blog-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0px 12px 24px 0px rgba(0, 0, 0, 0.12);
}

.blog-card[hidden],
.blog-card.hidden {
  display: none !important;
}

.blog-card__thumb {
  width: 100%;
  height: 198px;
  border-radius: var(--radius-card);
  overflow: hidden;
  background-color: #d9d9d9;
  flex-shrink: 0;
}

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

.blog-card__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.blog-card__meta-top {
  padding: 8px 5px 3px;
}

.blog-cat-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  background-color: #eff6ff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 400;
  color: #64748b;
  white-space: nowrap;
}

.blog-card__title {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-gray);
  line-height: 1.5;
}

.blog-card__desc {
  font-size: 13px;
  font-weight: 400;
  color: #475569;
  line-height: 1.7;
}

.blog-card__date {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: #94a3b8;
  text-align: left;
  margin-top: 4px;
}


/* =============================================================
   BLOG ARTICLE PAGE
   ============================================================= */

/* ------------------------------------------------------------
   Article – Main Area
   ------------------------------------------------------------ */
.article-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 10px 30px;
}

/* ------------------------------------------------------------
   Article – Header
   ------------------------------------------------------------ */
.article-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.article-title {
  font-family: var(--font-jp);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-title);
  line-height: 1.4;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.article-date {
  font-size: 13px;
  font-weight: 400;
  color: var(--color-text-date);
}

.article-cat-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  background-color: #eff6ff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 400;
  color: #64748b;
  white-space: nowrap;
}

.article-lead {
  font-size: 15px;
  font-weight: 400;
  color: var(--color-text-gray);
  line-height: 1.8;
  padding: 4px 0;
}

/* ------------------------------------------------------------
   Article – Hero Image
   ------------------------------------------------------------ */
.article-hero {
  width: 100%;
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-bottom: 48px;
  box-shadow: var(--shadow-card);
}

.article-hero img {
  width: 100%;
  max-height: 420px;
  height: auto;
  object-fit: cover;
  display: block;
}

/* ------------------------------------------------------------
   Article – Body Typography
   ------------------------------------------------------------ */
.article-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 15px;
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.9;
}

.article-h2 {
  font-family: var(--font-jp);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-title);
  line-height: 1.4;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-border);
  margin-top: 12px;
}

.article-h3 {
  font-family: var(--font-jp);
  font-size: 17px;
  font-weight: 700;
  color: var(--color-title);
  line-height: 1.5;
  padding-left: 12px;
  border-left: 4px solid var(--color-accent);
}

.article-img {
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.article-img img {
  max-width: 400px;
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.article-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 0;
  list-style: none;
}

.article-list li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.8;
}

.article-list li::before {
  content: '\30FB';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

/* ------------------------------------------------------------
   Article – Navigation
   ------------------------------------------------------------ */
.article-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 56px 0 10px;
}

.article-nav__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-btn);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  background-color: transparent;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}

.article-nav__btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.article-nav__btn--return {
  background-color: var(--color-bg-light);
  text-align: center;
}

.article-nav__btn--return img,
.article-nav__btn--return svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.article-nav__btn svg {
  flex-shrink: 0;
}


/* =============================================================
   CONTACT PAGE
   ============================================================= */

/* ------------------------------------------------------------
   Contact – Title Description
   ------------------------------------------------------------ */
[data-page="contact"] .page-title-desc {
  font-size: 15px;
  font-weight: 400;
  color: var(--color-text-gray);
  line-height: 1.7;
}

/* ------------------------------------------------------------
   Contact – Form Section
   ------------------------------------------------------------ */
.contact-form-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 0 80px;
}

/* ------------------------------------------------------------
   Contact – Info Box
   ------------------------------------------------------------ */
.contact-info-box {
  background-color: var(--color-bg-light);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 32px;
  border-radius: var(--radius-card);
  margin-bottom: 48px;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #1f2937;
}

.contact-info-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}

/* ------------------------------------------------------------
   Contact – Form System
   ------------------------------------------------------------ */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group--privacy {
  gap: 6px;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
}

.form-required {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  padding: 0 8px;
  background-color: #dc2626;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 3px;
}

.form-optional {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  padding: 0 8px;
  background-color: var(--color-text-gray);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 3px;
}

.form-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  font-size: 15px;
  font-family: var(--font-jp);
  color: var(--color-text);
  background-color: var(--color-bg-white);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(77, 163, 255, 0.15);
}

.form-input::placeholder {
  color: #9ca3af;
}

.form-input.is-error {
  border-color: #dc2626;
}

.form-select-wrap {
  position: relative;
  display: block;
}

.form-select-wrap::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  width: 10px;
  height: 6px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236b7280'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
}

.form-select {
  width: 100%;
  height: 48px;
  padding: 0 40px 0 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  font-size: 15px;
  font-family: var(--font-jp);
  color: var(--color-text);
  background-color: var(--color-bg-white);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.form-select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(77, 163, 255, 0.15);
}

.form-select.is-error {
  border-color: #dc2626;
}

.form-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  font-size: 15px;
  font-family: var(--font-jp);
  color: var(--color-text);
  background-color: var(--color-bg-white);
  outline: none;
  resize: vertical;
  min-height: 180px;
  line-height: 1.7;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(77, 163, 255, 0.15);
}

.form-textarea::placeholder {
  color: #9ca3af;
}

.form-textarea.is-error {
  border-color: #dc2626;
}

/* ------------------------------------------------------------
   Contact – Form Validation
   ------------------------------------------------------------ */
.form-error {
  font-size: 12px;
  font-weight: 500;
  color: #dc2626;
  min-height: 16px;
  line-height: 1.4;
}

/* ------------------------------------------------------------
   Contact – Checkbox
   ------------------------------------------------------------ */
.form-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.form-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.form-checkbox-custom {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-border);
  border-radius: 4px;
  background-color: var(--color-bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background-color 0.2s;
}

.form-checkbox:checked + .form-checkbox-custom {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
}

.form-checkbox:checked + .form-checkbox-custom::after {
  content: '';
  display: block;
  width: 10px;
  height: 6px;
  border-left: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(-45deg) translate(1px, -1px);
}

.form-checkbox-text {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text);
}

.form-privacy-link {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.2s;
}

.form-privacy-link:hover {
  opacity: 0.8;
}

/* ------------------------------------------------------------
   Contact – Submit Button
   ------------------------------------------------------------ */
.form-submit-wrap {
  display: flex;
  justify-content: center;
}

.form-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 40px;
  background-color: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: var(--radius-btn);
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-jp);
  cursor: pointer;
  transition: opacity 0.2s, background-color 0.2s;
}

.form-submit-btn:hover {
  opacity: 0.85;
}

.form-submit-btn:disabled {
  background-color: var(--color-text-gray);
  cursor: not-allowed;
  opacity: 0.7;
}

.form-submit-btn img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* ------------------------------------------------------------
   Contact – Thanks Message
   ------------------------------------------------------------ */
.contact-thanks {
  margin-top: 0;
}

.contact-thanks__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 64px 40px;
  background-color: var(--color-bg-light);
  border-radius: var(--radius-card);
  text-align: center;
}

.contact-thanks__icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.contact-thanks__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-title);
}

.contact-thanks__text {
  font-size: 15px;
  font-weight: 400;
  color: var(--color-text-gray);
  line-height: 1.8;
}

.contact-thanks__btn {
  margin-top: 8px;
}


/* =============================================================
   PRIVACY POLICY PAGE
   ============================================================= */
.privacy-policy-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 0 60px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--color-text);
}

.privacy-policy-content h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-title);
  margin: 40px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-accent);
}

.privacy-policy-content p {
  margin-bottom: 1em;
}

.privacy-policy-content ul {
  margin: 0 0 1em 1.5em;
  list-style: disc;
}

.privacy-policy-content li {
  margin-bottom: 0.4em;
}

.privacy-policy-content a {
  color: var(--color-accent);
  text-decoration: underline;
}

.privacy-policy-content a:hover {
  opacity: 0.8;
}

.privacy-policy-date {
  margin-top: 40px;
  font-size: 14px;
  color: var(--color-text-gray);
}
