/* ===========================
   ENCL - Inner Pages Shared CSS
   =========================== */

.pc-only { display: block; }
.sp-only { display: none; }

/* Page content base */
.page-content {
  padding-top: var(--header-h);
}

/* ===========================
   ABOUT PAGE
   =========================== */
.about-message {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.about-message-inner {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 60px;
  align-items: start;
}

.about-message h3 {
  font-family: var(--font-ja);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 28px;
}

.about-message-text {
  font-size: 0.85rem;
  line-height: 2;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.about-ceo-wrap {
  position: relative;
}

.about-ceo-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 4px;
  background: #e3f2fd;
}

.about-ceo-info {
  margin-top: 16px;
}

.about-ceo-role {
  font-size: 0.7rem;
  color: var(--text-light);
  display: block;
}

.about-ceo-name {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.about-ceo-name-en {
  font-family: var(--font-en);
  font-size: 0.75rem;
  color: var(--text-light);
  display: block;
  margin-top: 2px;
}

/* Vision/Mission/Values */
.about-vmv {
  background: var(--gray-dark);
  padding: 100px 0;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.about-vmv-section {
  margin-bottom: 80px;
}

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

.about-vmv-label {
  font-family: var(--font-en);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.15em;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.about-vmv-title {
  font-family: var(--font-en);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 20px;
}

.about-vmv-title-ja {
  font-family: var(--font-ja);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
  margin-bottom: 20px;
}

.about-vmv-text {
  font-size: 0.85rem;
  line-height: 2;
  color: rgba(255,255,255,0.7);
  max-width: 600px;
}

.about-values-list {
  margin-top: 32px;
}

.about-value-item {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.about-value-item:last-child {
  border-bottom: none;
}

.about-value-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.about-value-desc {
  font-size: 0.82rem;
  line-height: 1.9;
  color: rgba(255,255,255,0.65);
}

.about-vmv-img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 40px;
  background: rgba(255,255,255,0.05);
}

/* Company */
.about-company {
  padding: 80px 0;
}

.about-company h2 {
  font-family: var(--font-en);
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 36px;
}

.company-table {
  width: 100%;
  max-width: 640px;
  border-collapse: collapse;
}

.company-table tr {
  border-bottom: 1px solid var(--border);
}

.company-table th {
  font-size: 0.82rem;
  color: var(--text-light);
  font-weight: 400;
  text-align: left;
  padding: 16px 0;
  width: 160px;
  vertical-align: top;
}

.company-table td {
  font-size: 0.85rem;
  color: var(--text-primary);
  padding: 16px 0;
}

.about-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 60px;
}

.about-gallery-item {
  aspect-ratio: 1;
  overflow: hidden;
  background: #e8eaf6;
}

.about-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.about-gallery-item:hover img {
  transform: scale(1.05);
}

/* ===========================
   SERVICE PAGE
   =========================== */
.service-intro {
  padding: 48px 0 60px;
}

.service-intro-text {
  font-size: 0.88rem;
  line-height: 2;
  color: var(--text-secondary);
  max-width: 680px;
  margin-bottom: 16px;
}

.service-intro-text-en {
  font-family: var(--font-en);
  font-size: 0.78rem;
  line-height: 1.9;
  color: var(--text-light);
  max-width: 680px;
}

.service-items {
  padding: 20px 0 80px;
}

.service-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 80px;
  align-items: start;
  position: relative;
  overflow: hidden;
}

.service-item:nth-child(even) .service-item-text {
  order: -1;
}

.service-item-text {
  padding: 60px;
}

.service-item-name {
  font-family: var(--font-en);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 24px;
}

.service-item-desc {
  font-size: 0.85rem;
  line-height: 2;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.service-item-desc-en {
  font-family: var(--font-en);
  font-size: 0.75rem;
  line-height: 1.9;
  color: var(--text-light);
  margin-bottom: 28px;
}

.service-item-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #e8eaf6;
}

.service-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.service-item:hover .service-item-img img {
  transform: scale(1.03);
}

.service-item-deco {
  position: absolute;
  width: 120px;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

/* ===========================
   MEMBER LIST PAGE
   =========================== */
.member-intro {
  padding: 40px 0 60px;
}

.member-intro-text {
  font-size: 0.88rem;
  line-height: 2;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 12px;
}

.member-intro-text-en {
  font-family: var(--font-en);
  font-size: 0.75rem;
  line-height: 1.9;
  color: var(--text-light);
  max-width: 600px;
}

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

/* ===========================
   MEMBER DETAIL PAGE
   =========================== */
.member-detail-header {
  position: relative;
  padding-top: var(--header-h);
  overflow: hidden;
  min-height: 420px;
  display: grid;
  grid-template-columns: 1fr 480px;
}

.member-detail-header-text {
  padding: 60px 60px 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.member-detail-header-img {
  position: relative;
  overflow: hidden;
  background: #dce8f5;
}

.member-detail-header-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-detail-deco {
  position: absolute;
  top: 0; right: 0;
  width: 200px;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

.member-detail-deco::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 6px,
    var(--navy) 6px,
    var(--navy) 9px
  );
  opacity: 0.8;
}

.member-detail-career {
  background: var(--gray-dark);
  color: var(--white);
  padding: 28px 40px;
  border-radius: 0;
  margin: 0 60px;
  position: relative;
  z-index: 3;
}

.member-detail-career h3 {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.member-detail-career p {
  font-size: 0.82rem;
  line-height: 1.9;
  color: rgba(255,255,255,0.75);
}

.member-qa {
  padding: 60px 0;
}

.member-qa-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-bottom: 80px;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--border);
}

.member-qa-item:last-child {
  border-bottom: none;
}

.member-qa-item:nth-child(even) .member-qa-img {
  order: -1;
}

.member-qa-num {
  font-family: var(--font-en);
  font-size: 0.72rem;
  color: var(--text-light);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.member-qa-q {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.member-qa-a {
  font-size: 0.85rem;
  line-height: 2;
  color: var(--text-secondary);
}

.member-qa-img {
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 4px;
  background: #e3f2fd;
}

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

.back-btn-wrap {
  text-align: center;
  padding: 20px 0 60px;
}

/* ===========================
   NEWS LIST PAGE
   =========================== */
.news-list-wrap {
  padding: 20px 0 80px;
}

.news-list-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  transition: opacity 0.2s;
}

.news-list-card:first-child {
  border-top: 1px solid var(--border);
}

.news-list-card:hover { opacity: 0.65; }

.news-list-date {
  font-family: var(--font-en);
  font-size: 0.82rem;
  color: var(--navy);
  font-weight: 500;
}

.news-list-title {
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.6;
}

.news-more-btn {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

/* ===========================
   NEWS DETAIL PAGE
   =========================== */
.news-detail-wrap {
  padding: 20px 0 80px;
  max-width: 760px;
  margin: 0 auto;
}

.news-detail-date {
  font-family: var(--font-en);
  font-size: 0.82rem;
  color: var(--navy);
  font-weight: 500;
  margin-bottom: 14px;
}

.news-detail-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 36px;
}

.news-detail-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  margin-bottom: 36px;
  background: #e8eaf6;
}

.news-detail-img-caption {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  width: 100%;
  margin-bottom: 36px;
  position: relative;
}

.news-detail-img-caption .caption-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #e8eaf6;
}

.news-detail-img-caption .caption-img img {
  width: 100%; height: 100%; object-fit: cover;
}

.news-detail-img-caption .caption-text-wrap {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 0 20px;
  background: rgba(0,0,0,0.6);
}

.news-detail-img-caption .caption-text {
  color: white;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.news-detail-body {
  font-size: 0.88rem;
  line-height: 2.1;
  color: var(--text-secondary);
  margin-bottom: 60px;
}

.news-detail-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin-bottom: 48px;
}

/* ===========================
   CONTACT PAGE
   =========================== */
.contact-form-wrap {
  padding: 40px 0 80px;
}

.contact-intro {
  font-size: 0.85rem;
  line-height: 2;
  color: var(--text-secondary);
  margin-bottom: 48px;
  max-width: 640px;
}

.contact-form-inner {
  max-width: 740px;
  background: var(--white);
  border-radius: 12px;
  padding: 48px;
  box-shadow: 0 2px 24px rgba(0,0,0,0.06);
}

.form-field {
  margin-bottom: 28px;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.form-badge {
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--font-en);
}

.badge-required {
  background: var(--navy);
  color: var(--white);
}

.badge-optional {
  background: var(--navy);
  color: var(--white);
  opacity: 0.7;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 0.85rem;
  font-family: var(--font-ja);
  color: var(--text-primary);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--gray-light);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26,35,126,0.08);
}

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

.form-select-wrap::after {
  content: '▼';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.65rem;
  color: var(--text-light);
  pointer-events: none;
}

.form-textarea {
  resize: vertical;
  min-height: 150px;
}

.form-checkbox-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
}

.form-checkbox {
  width: 18px; height: 18px;
  border: 1.5px solid var(--border);
  border-radius: 3px;
  accent-color: var(--navy);
}

.form-checkbox-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.form-submit {
  display: block;
  width: 100%;
  max-width: 220px;
  margin: 0 auto;
  padding: 14px 32px;
  background: var(--gray-dark);
  color: var(--white);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: var(--font-ja);
  font-weight: 500;
  text-align: center;
  transition: all 0.25s;
}

.form-submit:hover {
  background: var(--text-primary);
  transform: translateY(-1px);
}

/* Thanks page */
.contact-thanks {
  padding: 40px 0 80px;
}

.thanks-box {
  background: var(--white);
  border-radius: 12px;
  padding: 60px 48px;
  box-shadow: 0 2px 24px rgba(0,0,0,0.06);
  text-align: center;
  max-width: 680px;
}

.thanks-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.thanks-text {
  font-size: 0.85rem;
  line-height: 2;
  color: var(--text-secondary);
}

/* ===========================
   PRIVACY PAGE
   =========================== */
.privacy-content {
  padding: 40px 0 80px;
}

.privacy-box {
  background: var(--white);
  border-radius: 12px;
  padding: 60px;
  box-shadow: 0 2px 24px rgba(0,0,0,0.04);
  max-width: 800px;
}

.privacy-section {
  margin-bottom: 28px;
}

.privacy-section h3 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.privacy-section p {
  font-size: 0.83rem;
  line-height: 2;
  color: var(--text-secondary);
}

.privacy-date {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 32px;
}

/* ===========================
   404 PAGE
   =========================== */
.error-404 {
  padding: 80px 0;
  display: flex;
  justify-content: center;
}

.error-404-box {
  background: var(--white);
  border-radius: 16px;
  padding: 80px 60px;
  box-shadow: 0 2px 32px rgba(0,0,0,0.06);
  text-align: center;
  max-width: 600px;
  width: 100%;
}

.error-404-num {
  font-family: var(--font-en);
  font-size: 5rem;
  font-weight: 300;
  color: var(--gray-dark);
  line-height: 1;
  margin-bottom: 20px;
}

.error-404-msg {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 768px) {
  .pc-only { display: none !important; }
  .sp-only { display: block !important; }

  /* About */
  .about-message { padding: 40px 0; }
  .about-message-inner { grid-template-columns: 1fr; }
  .about-vmv { padding: 60px 0; }
  .about-company { padding: 40px 0; }
  .about-gallery { grid-template-columns: repeat(2, 1fr); }

  /* Service */
  .service-item {
    grid-template-columns: 1fr;
    margin-bottom: 48px;
  }
  .service-item:nth-child(even) .service-item-text { order: 0; }
  .service-item-text { padding: 24px 0; }

  /* Member */
  .member-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .member-detail-header { grid-template-columns: 1fr; }
  .member-detail-header-img { height: 280px; }
  .member-detail-career { margin: 0 20px; }
  .member-qa-item { grid-template-columns: 1fr; gap: 24px; }
  .member-qa-item:nth-child(even) .member-qa-img { order: 0; }

  /* News */
  .news-list-card { grid-template-columns: 1fr; gap: 8px; }
  .news-detail-wrap { padding: 20px 0 60px; }

  /* Contact */
  .contact-form-inner { padding: 28px 20px; }

  /* Privacy */
  .privacy-box { padding: 28px 20px; }

  /* 404 */
  .error-404-box { padding: 48px 24px; }
}
