/**
 * PWJ Special Page Style (Editorial & Human-Centric Design)
 * 
 * @description AIらしさを排除し、雑誌の特集記事のような人間味と熱量を演出
 * @package swell_child
 */

/* --- Variables --- */
:root {
  --pwj-navy: #004098;
  --pwj-navy-dark: #001F4D;
  --pwj-gold: #C5A028;
  --pwj-gold-pale: #F9F4E8;
  --pwj-text: #1C1C1C;
  --pwj-border: #DDE4EE;
  --pwj-white: #FFFFFF;

  --font-serif: "Noto Serif JP", serif;
  --font-sans: "Noto Sans JP", "游ゴシック", sans-serif;

  --container-width: 1200px;
}

/* --- Base & Texture --- */
.pwj-page-wrapper {
  font-family: var(--font-sans);
  color: var(--pwj-text);
  line-height: 1.9;
  background-color: var(--pwj-white);
  /* 紙のような質感を微かに追加（擬似要素でノイズを入れる手法も可能だがここではシンプルに） */
  background-image: radial-gradient(#F0F4F8 1px, transparent 1px);
  background-size: 40px 40px;
  overflow-x: hidden;
}

/* SWELL Container Reset */
.page-template-pwj-page .l-content.l-container {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.pwj-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 40px;
}

/* --- Typography --- */
.pwj-v-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 0.3em;
  font-family: var(--font-serif);
  color: var(--pwj-border);
}

.pwj-section-label {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.4em;
  color: var(--pwj-gold);
  text-transform: uppercase;
  display: block;
  margin-bottom: 2rem;
}

/* --- Animations (Organic Movement) --- */
.pwj-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.pwj-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Hero Section (Full-Width Editorial Overlay) --- */
.pwj-hero {
  position: relative;
  height: 100vh;
  min-height: 800px;
  display: flex;
  align-items: center;
  background: var(--pwj-navy-dark);
  overflow: hidden;
}

.pwj-hero__image-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.pwj-hero__image-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(0, 31, 77, 0.8) 0%, rgba(0, 31, 77, 0.4) 50%, transparent 100%);
  z-index: 2;
}

.pwj-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(105%);
}

.pwj-hero__content {
  position: relative;
  z-index: 10;
  padding-left: 10%;
  max-width: 1000px;
  color: var(--pwj-white);
  text-align: left;
  /* 明示的に左寄せ */
}

.pwj-hero__title-main {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1.2;
  /* 少し広げて読みやすく */
  margin-bottom: 2rem;
  color: var(--pwj-white);
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  text-align: left;
}

.pwj-hero__title-sub {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--pwj-gold);
  display: block;
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
  text-align: left;
}

@media (max-width: 768px) {
  .pwj-hero__image-wrap::after {
    background: linear-gradient(0deg, rgba(0, 31, 77, 0.8) 0%, rgba(0, 31, 77, 0.3) 100%);
  }

  .pwj-hero__content {
    padding: 0 40px;
    /* モバイルでも少し余白を持たせる */
    text-align: left;
    /* モバイルも左寄せ */
    width: 100%;
  }
}

/* --- Intro Section (Asymmetry) --- */
/* --- Intro Section (Asymmetry) --- */
.pwj-intro {
  padding: 260px 0 100px;
  /* More whitespace */
  position: relative;
  overflow: hidden;
}

/* Background Watermark Typography */
.pwj-intro::before {
  content: "PHILOSOPHY";
  position: absolute;
  top: 5%;
  left: -5%;
  font-family: var(--font-serif);
  font-size: 18vw;
  color: rgba(0, 31, 77, 0.03);
  /* Extremely subtle */
  font-weight: 700;
  line-height: 1;
  z-index: 0;
  pointer-events: none;
}

.pwj-intro-layout {
  display: flex;
  gap: 100px;
  align-items: flex-start;
  position: relative;
  z-index: 2;
}

.pwj-intro__v {
  margin-top: 50px;
}

.pwj-intro__title {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  margin-bottom: 8rem;
  /* Push content down */
  line-height: 1.4;
  position: relative;
  text-align: left;
  letter-spacing: 0.05em;
  color: var(--pwj-navy);
}

.pwj-intro__title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -30px;
  width: 60px;
  height: 1px;
  background: var(--pwj-gold);
}

/* --- Shared Editorial Components (Unity) --- */
.pwj-editorial-layout {
  display: flex;
  gap: 30px;
  align-items: center;
  /* Center alignment for the whole block */
  position: relative;
  z-index: 2;
  margin-bottom: 120px;
  justify-content: center;
}

.pwj-editorial__main {
  flex: 1;
  max-width: 1000px;
  /* Restrict width for better centering */
}

.pwj-editorial__content-flex {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: center;
  /* Center vertically relative to each other */
  position: relative;
  width: 100%;
}


.pwj-intro .pwj-editorial__text {
  left: 100px;
}

/* Base Text Block - Broken Grid (Heavy Overlap) */
/* Base Text Block - Compact & Sharp */
.pwj-editorial__text {
  grid-row: 1;
  z-index: 10;
  background: #fff;
  padding: 60px 20px;
  /* Tighter padding */
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.05);
  /* Very subtle, diffuse shadow */
  position: relative;
  top: 80px;

  /* Shift Down Significantly */
  border: 1px solid rgba(0, 0, 0, 0.03);
  /* Crisp border */
}

.pwj-editorial__text p {
  font-size: 1rem;
  line-height: 2.1;
  color: #333;
  font-feature-settings: "palt";
  margin-bottom: 1.5rem;
  font-weight: 500;
}

/* Base Image Block - Massive & Dominant */
.pwj-editorial__image-bg {
  grid-row: 1;
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  overflow: hidden;
  box-shadow: none;
  /* No shadow on image, let it be flat and sharp */
  top: -50px;
  /* Shift Up Significantly */
}

.pwj-editorial__image-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.5s cubic-bezier(0.2, 1, 0.2, 1);
}

.pwj-editorial-layout:hover .pwj-editorial__image-bg img {
  transform: scale(1.02);
}

/* --- Mirroring Modifiers & Sizing --- */

/* Normal (Section 2 Default): Text Left (Small), Image Right (Large) */
.pwj-editorial--normal .pwj-editorial__text {
  grid-column: 1 / 7;
  /* Span 5 (Smaller) start from 2 to give breathing room */
  margin-right: -80px;
  /* Overlap */
  opacity: 0.9;
}

.pwj-editorial--normal .pwj-editorial__image-bg {
  grid-column: 4 / 13;
  /* Span 9 (Larger) */
}

/* Mirrored (Section 3): Text Right (Small), Image Left (Large) */
.pwj-editorial--mirrored {
  flex-direction: row-reverse;
}

.pwj-editorial--mirrored .pwj-editorial__text {
  grid-column: 6 / 12;
  /* Span 5 (Smaller) end at 11 */
  margin-left: -60px;
  /* Overlap */
  opacity: 0.9;
}

.pwj-editorial--mirrored .pwj-editorial__image-bg {
  grid-column: 1 / 10;
  /* Span 9 (Larger) */
}

@media (max-width: 768px) {
  .pwj-editorial-layout {
    flex-direction: column !important;
    gap: 40px;
    margin-bottom: 80px;
  }

  .pwj-editorial__content-flex {
    display: flex;
    flex-direction: column-reverse;
  }

  .pwj-editorial__image-bg {
    width: 100%;
    margin: 0 !important;
    top: 0;
    grid-column: 1 / -1;
    /* Reset grid override */
  }

  .pwj-editorial__text {
    width: 90%;
    margin: -60px auto 0 !important;
    padding: 40px 30px;
    border-right: none !important;
    border-left: none !important;
    border-top: 2px solid var(--pwj-gold);
    top: 0;
    grid-column: 1 / -1;
    /* Reset grid override */
  }

  .pwj-intro .pwj-editorial__text {
    left: 0;
  }
}

/* --- Insights (Overlap & Storytelling) --- */
.pwj-insight-wrap {
  position: relative;
  margin-bottom: 120px;
}

.pwj-insight-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
}

.pwj-insight__img {
  position: relative;
  z-index: 1;
}

.pwj-insight__img img {
  width: 100%;
  box-shadow: 30px 30px 80px rgba(0, 0, 0, 0.1);
}

.pwj-insight__box {
  background: var(--pwj-white);
  padding: 80px;
  margin-left: -120px;
  position: relative;
  z-index: 2;
  border: 1px solid var(--pwj-border);
}

.pwj-insight__title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: var(--pwj-navy);
}

/* --- Engineering Section (Magazine Grid) --- */
.pwj-eng {
  padding: 160px 0;
  background: var(--pwj-navy-dark);
  color: var(--pwj-white);
}

.pwj-eng-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.pwj-eng-card {
  grid-column: span 4;
  padding: 40px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

/* Staggering removed for uniform height */

.pwj-eng__num {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--pwj-gold);
  line-height: 1;
  margin-bottom: 2rem;
  display: block;
}

/* --- CSR Column (Newsletter / Column Style) --- */
.pwj-csr-col {
  padding: 140px 0;
  position: relative;
  overflow: hidden;
}

/* Move REPORT watermark to container to free up pseudo-elements */
.pwj-csr-col::before {
  content: "DONATION";
  position: absolute;
  top: 50%;
  left: 2%;
  transform: translateY(-50%);
  font-family: var(--font-serif);
  font-size: 10rem;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  color: rgba(0, 31, 77, 0.03);
  font-weight: 700;
  z-index: 0;
  pointer-events: none;
  letter-spacing: 0.1em;
}

.pwj-col-box {
  background: var(--pwj-gold-pale);
  padding: 80px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  /* Ensure content is above watermark */
}

/* Offset Square 1 (Navy Frame) */
.pwj-col-box::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 1px solid var(--pwj-navy);
  z-index: -1;
  /* Behind main box */
}

/* Offset Square 2 (Gold Frame) */
.pwj-col-box::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  border: 1px solid var(--pwj-gold);
  z-index: -1;
  /* Behind main box */
}

/* --- PWJ CTA (Dedicated Section) --- */
.pwj-cta {
  padding: 60px 0;
  background-color: var(--pwj-navy-dark);
  position: relative;
  text-align: center;
  overflow: hidden;
}

.pwj-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("https://ship-inspection.com/wp-content/uploads/2025/12/1月5日、珠洲市の飯田港に入る豊島丸-1.webp");
  background-size: cover;
  background-position: 80% center;
  /* Focus right */
  transform: scale(1.1);
  /* Enlarge slightly */
  z-index: 0;
}

.pwj-cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  /* Slight dim */
  z-index: 1;
}

.pwj-cta .pwj-container {
  position: relative;
  z-index: 2;
}

.pwj-cta__inner {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.6);
  /* Stylish Opacity */
  padding: 80px 60px;
  backdrop-filter: blur(4px);
  /* Frost effect */
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.1);
}

.pwj-cta__title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--pwj-navy);
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
}

.pwj-cta__text {
  font-size: 1rem;
  color: var(--pwj-text);
  margin-bottom: 3rem;
  line-height: 2;
}

.pwj-btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  padding: 20px 50px;
  background: var(--pwj-navy);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
  border: 1px solid var(--pwj-navy);
}

.pwj-btn-cta:hover {
  background: transparent;
  color: var(--pwj-navy);
}

.pwj-btn-cta svg {
  transition: transform 0.3s ease;
}

.pwj-btn-cta:hover svg {
  transform: translate(5px, -5px);
}

/* --- About Ship Section Specifics --- */
.pwj-about-ship {
  padding: 220px 0 140px;
  background-color: var(--pwj-white);
  position: relative;
  overflow: hidden;
}

/* Background Watermark for About Ship */
.pwj-about-ship::after {
  content: "MOBILITY";
  position: absolute;
  top: 0%;
  /* Bottom alignment for variety */
  right: -5%;
  font-family: var(--font-serif);
  font-size: 18vw;
  font-weight: 700;
  color: rgba(0, 31, 77, 0.03);
  z-index: 0;
  line-height: 1;
  pointer-events: none;
}

/* Remove old 02 */
/* .pwj-about-ship::before was here */

.pwj-about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 80px;
  margin-top: 160px;
  /* More space */
  border-top: 1px solid var(--pwj-border);
  padding-top: 60px;
  position: relative;
  z-index: 5;
}

.pwj-about-features .pwj-feature-item {
  /* Removed border-left for cleaner look */
  padding-left: 0;
  position: relative;
}

.pwj-feature-item::before {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--pwj-gold);
  margin-bottom: 25px;
}

.pwj-about-features .pwj-feature-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--pwj-navy);
  margin-bottom: 1.5rem;
  display: block;
}

@media (max-width: 768px) {
  .pwj-about-features {
    grid-template-columns: 1fr;
    gap: 60px;
    margin-top: 80px;
  }
}

/* Vertical Text Adjustment (Absolute relative to parent text block) */
.pwj-about__v {
  position: absolute;
  top: 0;
  left: -60px;
  margin-top: 0;
  height: auto;
}

@media (max-width: 1200px) {
  .pwj-about__v {
    left: -40px;
    /* Adjust for tighter screens */
  }
}

/* --- Representative Message --- */
.pwj-rep-msg {
  padding: 180px 0;
  /* More spacing */
  background-color: #fff;
  border-top: 1px solid var(--pwj-border);
}

.pwj-rep-layout {
  display: flex;
  gap: 100px;
  align-items: flex-start;
}

.pwj-rep-text-col {
  flex: 1;
}

.pwj-rep-img-col {
  width: 350px;
  flex-shrink: 0;
  position: relative;
}

.pwj-rep-img-col img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  filter: grayscale(10%) contrast(105%);
}

.pwj-rep-img-col::before {
  content: '';
  position: absolute;
  top: 20px;
  right: -20px;
  width: 100%;
  height: 100%;
  border: 1px solid var(--pwj-gold);
  z-index: -1;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
  .pwj-hero {
    height: 100vh;
    /* Full screen height for impact */
    min-height: 600px;
    padding-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .pwj-hero__image-wrap {
    height: 100%;
    width: 100%;
    margin: 0;
    /* Removing side margins */
    position: absolute;
    top: 0;
    left: 0;
  }

  .pwj-hero__content {
    padding: 0 20px;
    width: 100%;
    text-align: center;
    /* Center text */
    margin-top: 0;
  }

  .pwj-hero__title-main {
    text-align: center;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    /* Stronger shadow for readability over image */
  }

  .pwj-hero__title-sub {
    text-align: center;
  }

  .pwj-insight-inner {
    grid-template-columns: 1fr;
  }

  .pwj-insight__box {
    margin-left: 0;
    margin-top: -60px;
    padding: 40px;
  }

  .pwj-about-layout {
    flex-direction: column;
  }

  .pwj-about__img-layer {
    width: 100%;
  }

  .pwj-about__text-layer {
    position: relative;
    width: 100%;
    margin-top: -60px;
    padding: 0 20px;
  }

  .pwj-about__text-layer .pwj-insight__title {
    margin-left: 0;
    width: 90%;
    margin: 0 auto;
  }

  .pwj-about-features {
    position: relative;
    bottom: auto;
    left: auto;
    width: 100%;
    margin-top: 60px;
    flex-direction: column;
    gap: 40px;
    padding: 40px;
  }

  .pwj-feature-item {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 30px 0 0;
  }

  .pwj-feature-item:first-child {
    border-top: none;
    padding-top: 0;
  }

  .pwj-about-ship::before {
    font-size: 15rem;
    left: -2rem;
  }

  .pwj-about__v {
    display: none;
  }

  .pwj-eng-grid {
    display: flex;
    flex-direction: column;
  }

  .pwj-eng-card {
    margin-top: 0 !important;
    padding: 30px 0;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }
}

@media (max-width: 768px) {
  .pwj-rep-layout {
    flex-direction: column-reverse;
    gap: 60px;
  }

  .pwj-rep-img-col {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .pwj-intro-layout {
    flex-direction: column;
    gap: 40px;
  }

  .pwj-intro__v {
    display: none;
  }

  .pwj-col-box {
    padding: 40px 20px;
  }
}

/* --- Mobile Specific (Base 375px - Max 450px) --- */
@media (max-width: 450px) {
  .pwj-container {
    padding: 0 20px;
  }

  /* Hero Typography */
  .pwj-hero__title-main {
    font-size: 2.2rem;
    /* Optimized for 375 */
    margin-bottom: 1.5rem;
  }

  .pwj-hero__title-sub {
    font-size: 1rem;
    line-height: 1.6;
  }

  .pwj-btn-gold {
    width: 100%;
    text-align: center;
    padding: 15px 20px !important;
    font-size: 0.95rem !important;
  }

  /* Intro Section */
  .pwj-intro {
    padding: 80px 0 0px;
  }

  .pwj-intro__title {
    font-size: 1.8rem;
    margin-bottom: 4rem;
  }

  .pwj-editorial__text {
    padding: 30px 20px;
    margin-top: -40px !important;
    /* Pull up closer to image */
  }

  .pwj-editorial__text p {
    font-size: 0.95rem;
    line-height: 1.9;
    text-align: left;
    /* Ensure left align for readability */
  }

  /* Engineering Grid */
  .pwj-eng-card {
    padding: 20px 0;
  }

  .pwj-sig-text {
    font-size: 1.2rem;
  }

  /* CSR Column */
  .pwj-col-box {
    padding: 30px 20px;
  }

  .pwj-col-box table th,
  .pwj-col-box table td {
    display: block;
    width: 100%;
    padding: 10px 0;
  }

  .pwj-col-box table th {
    padding-bottom: 5px;
    border-bottom: none;
    font-size: 0.9rem;
  }

  /* Representative Message */
  .pwj-rep-msg {
    padding: 80px 0;
  }

  .pwj-rep-img-col {
    max-width: 100%;
  }

  /* CTA */
  .pwj-cta__inner {
    padding: 40px 20px;
  }

  .pwj-cta__title {
    font-size: 1.6rem;
  }

  .pwj-btn-cta {
    width: 100%;
    justify-content: center;
    padding: 18px 20px;
    font-size: 0.9rem;
  }

  .pwj-about-ship {
    padding: 30px 0 0px;
    background-color: var(--pwj-white);
    position: relative;
    overflow: hidden;
}
.sp-br{
  display: block;
}

.pwj-col-box::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: -8px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--pwj-gold);
    z-index: -1;
}

.pwj-col-box::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--pwj-navy);
    z-index: -1;
}
.pwj-eng {
    padding: 80px 0;
    background: var(--pwj-navy-dark);
    color: var(--pwj-white);
}

.pwj-insight__title{
  font-size: 1.27rem;
}


.pwj-rep-img-col::before {
    content: '';
    position: absolute;
    top: 8px;
    right: -8px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--pwj-gold);
    z-index: -1;
}
}

.sp-br{
  display: block;
}