/*
 * スラウェブ（/web/）LP専用スタイル
 * Sub Top Page テンプレートのみで読み込み
 * 追加日: 2026-05-11
 * 更新日: 2026-05-14
 */

/* =========================================
   HERO SECTION
   ========================================= */
.p-hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  background-color: #f1f1ef;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.p-hero-container {
  display: flex;
  width: 100%;
  height: 100%;
  position: relative;
}

/* --- RIGHT IMAGE --- */
.p-hero-right {
  position: absolute;
  top: 0;
  right: 0;
  width: 75%;
  height: 100%;
  z-index: 1;
}

.p-hero-img-box {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.p-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.1);
  transition: transform 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.p-hero-section.is-active .p-hero-img {
  transform: scale(1);
}

/* --- LEFT CONTENT --- */
.p-hero-left {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  padding-left: 5%;
}

.p-hero-inner {
  width: auto;
  min-width: 800px;
}

/* =========================================
   HERO TEXT STYLES
   ========================================= */
.p-hero-title {
  font-size: clamp(36px, 4.2vw, 64px);
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.2;
  margin-bottom: 24px;
  text-shadow:
    0 0 15px rgba(255,255,255,1),
    0 0 10px rgba(255,255,255,1),
    0 0 5px rgba(255,255,255,1);
  white-space: nowrap;
}

.p-hero-subtitle {
  font-size: clamp(18px, 2.0vw, 28px);
  font-weight: 900;
  letter-spacing: 0.12em;
  margin-bottom: 40px;
  text-shadow:
    0 0 12px rgba(255,255,255,1),
    0 0 8px rgba(255,255,255,1);
  white-space: nowrap;
}

.p-hero-copy-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 50px;
}

.p-hero-line {
  width: 60px;
  height: 1px;
  background-color: #333;
  flex-shrink: 0;
  align-self: center;
}

.p-hero-copy {
  font-size: clamp(14px, 1.3vw, 18px);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.8;
  text-shadow:
    0 0 10px rgba(255,255,255,1),
    0 0 5px rgba(255,255,255,1);
  white-space: nowrap;
}

/* =========================================
   HERO TEXT ANIMATION（p-home-menuと同じ方式）
   ========================================= */
/* タイトル（Revealマスク付き — p-home-menu h2と同じ） */
.p-hero-title-wrap {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s ease;
}

.p-hero-title-wrap.is-show {
  opacity: 1;
  transform: translateY(0);
}

.p-hero-title-wrap span {
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.p-hero-title-wrap span::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #f1f1ef;
  transform: translateX(0);
  transition: transform 1.2s cubic-bezier(.77, 0, .18, 1);
}

.p-hero-title-wrap.is-show span::after {
  transform: translateX(101%);
}

/* サブタイトル（Revealマスク付き — p-home-menu h2と同じ） */
.p-hero-subtitle-wrap {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease .2s, transform 1s ease .2s;
}

.p-hero-subtitle-wrap.is-show {
  opacity: 1;
  transform: translateY(0);
}

.p-hero-subtitle-wrap span {
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.p-hero-subtitle-wrap span::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #f1f1ef;
  transform: translateX(0);
  transition: transform 1.2s cubic-bezier(.77, 0, .18, 1);
  transition-delay: .15s;
}

.p-hero-subtitle-wrap.is-show span::after {
  transform: translateX(101%);
}

/* コピー */
.p-hero-copy-wrap {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease .4s, transform 1s ease .4s;
}

.p-hero-copy-wrap.is-show {
  opacity: 1;
  transform: translateY(0);
}

/* CTA */
.p-hero-action {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease .6s, transform 1s ease .6s;
}

.p-hero-action.is-show {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   HERO CTA BUTTON — 白オパシティ背景付き
   ========================================= */
.p-hero-action {
  position: relative;
}

.p-hero-action .p-home-menu-btn {
  max-width: 560px;
  opacity: 1;
  transform: none;
  transition: background 0.4s ease;
  background: rgba(255, 255, 255, 0.35);
}

/* =========================================
   HERO RESPONSIVE (1024px以下)
   ========================================= */
@media screen and (max-width: 1024px) {
  .p-hero-title,
  .p-hero-subtitle,
  .p-hero-copy {
    white-space: normal;
  }

  .p-hero-inner {
    min-width: auto;
  }
}

@media screen and (max-width: 768px) {
  .p-hero-section {
    height: auto;
  }

  .p-hero-container {
    flex-direction: column;
  }

  .p-hero-right {
    position: relative;
    width: 100%;
    height: 40vh;
  }

  .p-hero-left {
    width: 100%;
    height: auto;
    padding: 40px 24px;
    background-color: #f1f1ef;
  }

  .p-hero-title {
    font-size: 8.5vw;
    text-shadow: none;
  }

  .p-hero-subtitle {
    font-size: 4vw;
    text-shadow: none;
  }

  .p-hero-copy {
    text-shadow: none;
  }

  .p-hero-action .p-home-menu-btn {
    width: 100%;
    max-width: 100%;
    background: transparent;
  }
}

/* =========================================
   SECTION (MENU)
   ========================================= */
.p-home-menu {
  position: relative;
  width: 92%;
  max-width: 1200px;
  margin: 120px auto;
  min-height: 720px;
}

/* =========================================
   IMAGE AREA
   ========================================= */
.p-home-menu-image {
  position: absolute;
  left: 0;
  top: 10%;
  width: 70%;
  z-index: 1;
}

.p-home-menu-image-img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: center center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
}

/* =========================================
   TEXT AREA
   ========================================= */
.p-home-menu-box {
  position: absolute;
  right: 0;
  top: 0;
  width: 68%;
  background: #fff;
  padding: 60px 60px 40px 60px;
  z-index: 5;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .04);
}

/* =========================================
   POINT ICON（#359BB6背景の白文字 POINT XX）
   ========================================= */
.p-home-menu-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #359bb6;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 6px 18px;
  margin-bottom: 24px;
  min-width: auto;
  width: auto;
  height: auto;
  position: static;
}

/* 旧アイコンの疑似要素を無効化 */
.p-home-menu-line::before,
.p-home-menu-line::after {
  display: none;
}

/* =========================================
   TITLE
   ========================================= */
.p-home-menu-title {
  font-size: clamp(28px, 2.6vw, 48px);
  font-weight: 800;
  letter-spacing: .10em;
  line-height: 1.25;
  margin-bottom: 40px;
}

/* =========================================
   H3（サブ見出し）
   ========================================= */
.p-home-menu-subtitle {
  font-size: clamp(16px, 1.3vw, 22px);
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1.4;
  margin-bottom: 20px;
}

/* =========================================
   P（本文テキスト）
   ========================================= */
.p-home-menu-desc {
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 2;
  font-weight: 400;
  letter-spacing: .02em;
  margin-bottom: 24px;
  max-width: 720px;
}

/* =========================================
   TEXT（従来互換）
   ========================================= */
.p-home-menu-text {
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 2;
  font-weight: 500;
  letter-spacing: .02em;
  margin-bottom: 40px;
  max-width: 720px;
}

/* =========================================
   BUTTON
   ========================================= */
.p-home-menu-btn {
  width: 100%;
  max-width: 620px;
  min-height: 74px;
  padding: 16px 24px;
  border: 2px solid #111;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease .5s, transform 1s ease .5s;
  -webkit-appearance: none;
}

.p-home-menu-btn.is-show {
  opacity: 1;
  transform: translateY(0);
}

/* hover 左→右 */
.p-home-menu-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #111;
  transform: translateX(-101%);
  transition: transform .5s cubic-bezier(.77, 0, .18, 1);
  z-index: 1;
}

.p-home-menu-btn:hover::before {
  transform: translateX(0);
}

.p-home-menu-btn span {
  color: #111;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .18em;
  position: relative;
  z-index: 2;
  transition: color .4s ease;
}

.p-home-menu-btn:hover span {
  color: #fff;
}

/* =========================================
   MENU RESPONSIVE (960px以下)
   ========================================= */
@media screen and (max-width: 960px) {
  .p-home-menu {
    min-height: auto;
    margin: 80px auto;
  }

  .p-home-menu-image {
    position: relative;
    width: 100%;
    top: 0;
  }

  .p-home-menu-image-img {
    height: 280px;
  }

  .p-home-menu-box {
    position: relative;
    width: 92%;
    top: -40px;
    margin-left: auto;
    padding: 50px 32px;
  }

  .p-home-menu-title {
    font-size: 7.0vw;
    margin-bottom: 30px;
  }

  .p-home-menu-subtitle {
    font-size: 5.5vw;
  }

  .p-home-menu-desc {
    font-size: 4.5vw;
    font-weight: 400;
    margin-bottom: 20px;
  }

  .p-home-menu-text {
    font-size: 3.6vw;
    margin-bottom: 40px;
  }

  .p-home-menu-btn {
    min-height: 64px;
    padding: 18px 24px;
    -webkit-appearance: none;
  }

  .p-home-menu-btn span {
    font-size: 4.0vw;
  }
}

/* =========================================
   TITLE ANIMATION
   ========================================= */
.p-home-menu-title {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s ease;
}

.p-home-menu-title.is-show {
  opacity: 1;
  transform: translateY(0);
}

/* 文字 Reveal */
.p-home-menu-title span {
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.p-home-menu-title span::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  transform: translateX(0);
  transition: transform 1.2s cubic-bezier(.77, 0, .18, 1);
}

.p-home-menu-title.is-show span::after {
  transform: translateX(101%);
}

/* =========================================
   SUBTITLE ANIMATION
   ========================================= */
.p-home-menu-subtitle {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease .2s, transform 1s ease .2s;
}

.p-home-menu-subtitle.is-show {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   DESC ANIMATION（h3と同じ）
   ========================================= */
.p-home-menu-desc {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease .2s, transform 1s ease .2s;
}

.p-home-menu-desc.is-show {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   TEXT ANIMATION
   ========================================= */
.p-home-menu-text {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease .3s, transform 1s ease .3s;
}

.p-home-menu-text.is-show {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   REVERSE LAYOUT (左右反転)
   ========================================= */
.p-home-menu--reverse .p-home-menu-image {
  left: auto;
  right: 0;
}

.p-home-menu--reverse .p-home-menu-box {
  right: auto;
  left: 0;
}

/* =========================================
   NEWSLETTER SECTION（メルマガ）
   ========================================= */
.p-newsletter {
  padding: 120px 0;
  text-align: center;
  background: #359BB8;
  color: #fff;
}

.p-newsletter-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.p-newsletter-title {
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 700;
  margin-bottom: 32px;
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}

.p-newsletter-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: #fff;
}

.p-newsletter-text {
  font-size: 16px;
  margin-bottom: 48px;
  line-height: 2;
  color: rgba(255, 255, 255, 0.9);
}

/* --- Newsletter CTA（既存ボタンの白バージョン） --- */
.p-newsletter-cta .p-home-menu-btn {
  border-color: #fff;
  max-width: 480px;
  margin: 0 auto;
  opacity: 1;
  transform: none;
  transition: background 0.4s ease;
}

.p-newsletter-cta .p-home-menu-btn span {
  color: #fff;
}

/* hover: 白で塗りつぶし、文字を青に */
.p-newsletter-cta .p-home-menu-btn::before {
  background: #fff;
}

.p-newsletter-cta .p-home-menu-btn:hover span {
  color: #359BB8;
}

/* --- Newsletter Responsive --- */
@media screen and (max-width: 768px) {
  .p-newsletter {
    padding: 80px 0;
  }

  .p-newsletter-cta .p-home-menu-btn {
    width: 100%;
    max-width: 100%;
  }
}

/* =========================================
   BLOG SECTION
   ========================================= */
.p-blog {
  position: relative;
  padding: 100px 0;
  background-image: url('images/blog-bg.webp');
  background-size: cover;
  background-position: center;
  color: #fff;
}

/* 暗いオーバーレイ */
.p-blog::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.p-blog > .l-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Blog Header (TITLE + VIEW ALL) --- */
.p-blog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 60px;
}

.p-blog-line {
  width: 24px;
  height: 3px;
  background: #359bb6;
  margin-bottom: 12px;
}

.p-blog-title {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1;
}

/* VIEW ALL ボタン（既存ボタンの白ゴースト版） */
.p-blog-viewall .p-home-menu-btn {
  width: auto;
  max-width: none;
  height: auto;
  padding: 10px 40px;
  border-color: #fff;
  opacity: 1;
  transform: none;
  transition: background 0.4s ease;
}

.p-blog-viewall .p-home-menu-btn span {
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.1em;
}

.p-blog-viewall .p-home-menu-btn::before {
  background: #fff;
}

.p-blog-viewall .p-home-menu-btn:hover span {
  color: #000;
}

/* --- Blog Grid（news-card レイアウト） --- */
.p-blog .forweb-posts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* カード初期状態（非表示）→ is-show で表示 */
.p-blog .forweb-post-card {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s ease;
}

.p-blog .forweb-post-card.is-show {
  opacity: 1;
  transform: translateY(0);
}

/* カード hover で浮き上がり */
.p-blog .forweb-post-card.is-show:hover {
  transform: translateY(-8px);
}

/* news-card（ブログセクション内） */
.p-blog .news-card {
  background: #fff;
  padding: 1rem;
  box-shadow: 0 10px 6px rgba(0, 0, 0, 0.10);
  border-radius: 0;
}

.p-blog .news-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.p-blog .news-card-image-container {
  position: relative;
  overflow: hidden;
}

.p-blog .news-card-image-container img {
  width: 100%;
  height: auto;
  display: block;
}

.p-blog .news-card .category-info-wrapper {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  font-size: 14px;
  color: #fff;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.p-blog .news-card .category-icon {
  width: 12px;
  height: 12px;
}

.p-blog .news-card-content h3 {
  margin: 0.5rem 0;
  font-size: 1rem;
  color: #666;
  line-height: 1.5;
}

.p-blog .news-card-content .news-card-date {
  font-size: 0.85rem;
  color: #359bb6;
}

.p-blog .news-card-content .news-card-excerpt {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #888;
}

.p-blog .news-card:hover h3 {
  color: #359BB6;
  transition: color 0.3s ease;
}

/* --- Blog Responsive --- */
@media screen and (max-width: 960px) {
  .p-blog .forweb-posts {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 600px) {
  .p-blog {
    padding: 80px 0;
  }

  .p-blog-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .p-blog-title {
    font-size: 36px;
  }

  .p-blog .forweb-posts {
    grid-template-columns: 1fr;
  }

  .p-blog-viewall .p-home-menu-btn {
    width: 100%;
    text-align: center;
  }
}

/* =========================================
   PROFILE SECTION（プロフィール）
   ========================================= */
.p-profile-section {
  padding: 100px 20px;
  background-color: #f9f9f7;
}

.p-profile-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

/* --- LEFT: Image --- */
.p-profile-left {
  flex: 0 0 40%;
}

.p-profile-img-wrap {
  width: 70%;
  position: relative;
  overflow: hidden;
}

.p-profile-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 5;
  background-color: #ddd;
}

/* --- RIGHT: Content --- */
.p-profile-right {
  flex: 1;
}

.p-profile-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #359bb6;
  margin-bottom: 8px;
}

.p-profile-title {
  font-size: clamp(26px, 4vw, 32px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.p-profile-name-jp {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 32px;
}

.p-profile-lead {
  font-size: 17px;
  font-weight: 700;
  border-left: 4px solid #359bb6;
  padding-left: 16px;
  margin-bottom: 24px;
  line-height: 1.6;
}

.p-profile-career {
  list-style: none;
  margin-bottom: 32px;
  padding: 0;
}

.p-profile-career li {
  font-size: 15px;
  margin-bottom: 4px;
}

.p-profile-text {
  font-size: 15px;
  margin-bottom: 48px;
  line-height: 1.8;
}

.p-profile-text p {
  margin-bottom: 1.5em;
}

/* --- Profile CTA（既存ボタン） --- */
.p-profile-footer .p-home-menu-btn {
  max-width: 480px;
  opacity: 1;
  transform: none;
  transition: background 0.4s ease;
}

/* --- Profile Responsive --- */
@media screen and (max-width: 850px) {
  .p-profile-container {
    flex-direction: column;
    gap: 40px;
  }

  .p-profile-left {
    width: 100%;
  }

  .p-profile-section {
    padding: 60px 24px;
  }

  .p-profile-footer .p-home-menu-btn {
    width: 100%;
    max-width: 100%;
  }
}

/* =========================================
   CTA SECTION（お申し込み）
   ========================================= */
.p-cta-section {
  position: relative;
  width: 100%;
  min-height: 400px;
  display: flex;
  align-items: center;
  padding: 80px 0;
  background-image: url('images/cta-bg.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* 白オーバーレイ */
.p-cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.70);
  z-index: 1;
}

.p-cta-container {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

/* --- Content --- */
.p-cta-content {
  flex: 1;
}

.p-cta-title {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 24px;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.p-cta-text {
  font-size: 16px;
  font-weight: 500;
}

.p-cta-text p {
  margin-bottom: 8px;
}

/* --- CTA Button（既存ボタン） --- */
.p-cta-action {
  flex-shrink: 0;
}

.p-cta-action .p-home-menu-btn {
  width: auto;
  max-width: none;
  height: auto;
  padding: 24px 48px;
  opacity: 1;
  transform: none;
  transition: background 0.4s ease;
}

.p-cta-action .p-home-menu-btn span {
  font-size: 18px;
}

/* --- CTA Responsive --- */
@media screen and (max-width: 960px) {
  .p-cta-container {
    flex-direction: column;
    text-align: center;
    padding: 0 24px;
  }

  .p-cta-title {
    font-size: 22px;
  }

  .p-cta-action .p-home-menu-btn {
    width: 100%;
    padding: 20px;
  }
}
