@charset "UTF-8";

/* ==========================================================================
   Main Visual（メインビジュアル）
   ========================================================================== */
.p-main-visual {
  width: 100%;
  min-height: 720px;
  padding: var(--space-section-pv) 0 calc(var(--space-section-pv) / 2);
  background-color: var(--color-primary);
  display: flex;
  overflow: hidden;
  position: relative;
}

.p-main-visual__left {
  width: 60%;
  height: 100%;
  padding-bottom: 40px;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

/* スライダー */
.js-mv-slider {
  width: 504px !important; 
  height: 504px;
  overflow: visible !important; 
  padding-right: 24px;
}

.js-mv-slider .swiper-slide {
  width: 480px !important;
  height: 100%;
  border: 1px solid var(--color-text-main);
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--color-bg-gray);
}

.js-mv-slider .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.js-mv-slider .swiper-pagination {
  position: absolute !important;
  bottom: 0px !important;
  right: 24px !important;
  left: auto !important;
  width: auto !important;
}

.swiper-pagination-bullet-active {
  background: var(--swiper-pagination-bullet-inactive-color, #000000) !important;
}

/* キャッチコピーエリア */
.p-main-visual__right {
  width: 40%;
  display: flex;
  align-items: center;
  padding-left: 60px;
  padding-right: 40px;
  background-color: var(--color-primary);
}

.p-main-visual__catch {
  color: var(--color-text-main);
  max-width: 540px;
  position: relative; /* 子要素 absolute の基準点 */
  padding-top: 40px;  /* ひし形と文字の被り防止 */
  padding-bottom: 80px; /* 画像とテキストの被り防止 */
}

.p-main-visual__title {
  font-size: 42px;
  font-weight: bold;
  line-height: 1.4;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.p-main-visual__text {
  font-size: var(--font-size-body);
  line-height: 1.8;
  opacity: 0.9;
}

/* ロゴ装飾 */
.p-main-visual__logo {
  position: absolute;
  bottom: 0;
  right: calc(40% - 500px - 60px); /* .l-footer__inner の max-width と padding に同期 */
  width: 500px;
  height: 100px;
  background-image: url("../images/common/maxim-ehime_white.png");
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: contain;
  pointer-events: none;
}

/* ひし形装飾 */
.p-main-visual__deco-diamond {
  position: absolute;
  background-color: #fff;
  transform: rotate(45deg);
  pointer-events: none;
}

.p-main-visual__deco-diamond.-large {
  top: 0;
  left: 10px;
  width: 24px;
  height: 24px;
}

.p-main-visual__deco-diamond.-small {
  top: 16px;
  left: 38px;
  width: 12px;
  height: 12px;
}

/* 右下配置画像 */
.p-main-visual__bottom-right-img {
  position: absolute;
  bottom: 180px;
  right: calc(40% - 400px - 280px);
  width: 200px;
  height: auto;
  pointer-events: none;
  z-index: 1;
}

.p-main-visual__bottom-right-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* --------------------------------------------------------------------------
   Main Visual - Responsive（レスポンス集約）
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .p-main-visual {
    height: auto;
    min-height: 570px;
    flex-direction: column-reverse; /* 上がキャッチコピー、下がスライド */
    padding: var(--space-section-pv-sp) 0;
  }

  .p-main-visual__logo {
    right: 0;
  }

  /* 下側：スライドエリア */
  .p-main-visual__left {
    width: 100% !important;
    height: auto;
    padding-bottom: 40px;
    overflow: visible;
    display: block !important;
  }

  .js-mv-slider {
    width: 100% !important; 
    max-width: 100% !important;
    height: 190px;
    padding-right: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    overflow: visible !important;
  }

  .js-mv-slider .swiper-slide {
    width: 280px !important;
    height: 100%;
  }

  .js-mv-slider .swiper-pagination {
    bottom: -30px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    text-align: center;
  }

  /* 上側：キャッチコピーエリア */
  .p-main-visual__right {
    width: 100% !important;
    height: auto;
    padding: 0 20px 40px 20px;
    justify-content: center;
    text-align: center;
    background-color: var(--color-primary);
  }

  .p-main-visual__catch {
    max-width: 100%;
    margin: 0 auto;
  }

  .p-main-visual__title {
    font-size: 28px;
    line-height: 1.4;
    margin-bottom: 16px;
  }

  /* 右下配置画像（スマホ） */
  .p-main-visual__bottom-right-img {
    right: -20px;
    top: 280px;
    bottom: auto;
    width: 100px;
    opacity: 0.8;
  }
}

@media (max-width: 768px) {
  .p-main-visual__logo {
    width: 80%;
    background-position: bottom right;
  }
}


/* ==========================================================================
   Concept Section（コンセプト）
   ========================================================================== */
.l-concept {
  padding: var(--space-section-pv) 20px;
  background-color: var(--color-bg-white);
}

.l-concept__inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.l-concept__badge {
  display: block;
  font-size: var(--font-size-concept);
  font-weight: bold;
  color: var(--color-accent-orange);
  letter-spacing: 0.08em;
  margin-bottom: 48px;
  position: relative;
  padding-bottom: 24px;
  text-align: left;
}

.l-concept__badge::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% + 100px);
  max-width: 1200px;
  height: 1px;
  background-color: var(--color-text-main);
}
@media (max-width: 1100px) {
  .l-concept__badge::after {
    width: calc(100% + 20px);
  }
}
.l-concept__body {
  text-align: left;
  margin-bottom: 56px;
}

.l-concept__text {
  font-size: var(--font-size-body);
  line-height: 2;
  color: var(--color-text-main);
  letter-spacing: 0.04em;
}

.l-concept__text + .l-concept__text {
  margin-top: 24px;
}

.l-concept__link-wrap {
  text-align: right;
}

@media (max-width: 768px) {
  .l-concept {
    padding: var(--space-section-pv-sp) 20px;
  }
  .l-concept__badge {
    font-size: var(--font-size-concept-sp);
    margin-bottom: 32px;
    padding-bottom: 16px;
  }
  .l-concept__badge::after {
    width: 100vw;
  }
  .l-concept__text {
    font-size: var(--font-size-body-sp);
  }
  .l-concept__link-wrap {
    text-align: center;
  }
}


/* ==========================================================================
   Service Section（事業紹介）
   ========================================================================== */
.l-service {
  padding: var(--space-section-pv) 20px;
  background-color: var(--color-bg-gray);
}

.l-service__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.l-service__grid {
  display: flex;
  gap: 32px;
}

/* --------------------------------------------------------------------------
   事業カード（コンポーネント）
   -------------------------------------------------------------------------- */
.p-service-card {
  flex: 1; 
  display: flex;
  flex-direction: column;
}

.p-service-card__info {
  margin-bottom: 20px;
}

.p-service-card__ja {
  font-size: 14px; 
  color: var(--color-text-sub);
  font-weight: bold;
  margin-bottom: 4px;
}

.p-service-card__ja::before {
  content: '●';
  color: var(--color-primary);
  margin-right: 0.5em;
}

.p-service-card__en {
  font-size: var(--font-size-h3-en);
  color: var(--color-text-main);
  line-height: 1.2;
}

.p-service-card__link {
  display: block;
  text-decoration: none;
}

.p-service-card__img-wrap {
  position: relative;
  width: 100%;
  padding-top: 100%; 
  border-radius: 20px; 
  overflow: hidden;    
  background-color: #000000;
}

.p-service-card__img-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease; 
}

.p-service-card__icon {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background-color: var(--color-primary);
  border: 1px solid var(--color-text-main);
  border-radius: 50%; 
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: transform 0.3s ease, background-color 0.3s ease; 
}

.p-service-card__icon::after {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--color-text-main);
  border-right: 2px solid var(--color-text-main);
  transform: rotate(45deg);
  margin-left: -2px; 
}

@media (hover: hover) {
  .p-service-card__link:hover img { opacity: 0.5; }
  .p-service-card__link:hover .p-service-card__icon { transform: translate(0x, -4px); }
}

@media (min-width: 1120px) {
  .p-service-card__en br { display: none; }
}
@media (max-width: 992px) {
  .l-service__grid {
    flex-direction: column;
    gap: 48px;
  }
  .p-service-card__en { font-size: var(--font-size-h3-en-sp); }
  .p-service-card__en br { display: none; }
  .p-service-card__img-wrap { padding-top: 55%; }
}


/* ==========================================================================
   Case Studies Section（導入事例）
   ========================================================================== */
.l-cases {
  padding: var(--space-section-pv) 20px;
  background-color: var(--color-bg-white);
}

.l-cases__inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   横幅100% 導入事例カード
   -------------------------------------------------------------------------- */
.p-case-wide-card {
  width: 100%;
}

.p-case-wide-card__link {
  display: block;
  text-decoration: none;
}

.p-case-wide-card__img-wrap {
  position: relative;
  width: 100%;
  padding-top: 25%; 
  min-height: 250px;
  border-radius: 20px;
  overflow: hidden;    
  background-color: #000000;
}

.p-case-wide-card__img-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease; 
}

.p-case-wide-card__icon {
  position: absolute;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background-color: var(--color-primary);
  border: 1px solid var(--color-text-main);
  border-radius: 50%; 
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: transform 0.3s ease; 
}

.p-case-wide-card__icon::after {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--color-text-main); 
  border-right: 2px solid var(--color-text-main);
  transform: rotate(45deg);
  margin-left: -2px; 
}

@media (hover: hover) {
  .p-case-wide-card__link:hover img { opacity: 0.5; }
  .p-case-wide-card__link:hover .p-case-wide-card__icon { transform: translate(0px, -4px); }
}

@media (max-width: 768px) {
  .p-case-wide-card__img-wrap { padding-top: 56.25%; }
  .p-case-wide-card__icon { bottom: 16px; right: 16px; }
}


/* ==========================================================================
   Brands Section（ブランド一覧）
   ========================================================================== */
.l-brands {
  padding: var(--space-section-pv) 20px;
  background-color: var(--color-primary);
}

.l-brands__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.l-brands__grid {
  display: flex;
  gap: 64px;
}

/* --------------------------------------------------------------------------
   ブランドカード（コンポーネント）
   -------------------------------------------------------------------------- */
.p-brand-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: auto;
}

.p-brand-card__logo-area {
  position: relative;
  width: 200px;
  height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.p-brand-card__logo-img {
  width: 160px;
  height: 160px;
  /* 非活性スタイル
  background-color: var(--color-bg-white);
  border-radius: 50%;
  border: 2px solid var(--color-text-main);
  box-shadow: 0 6px 15px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 16px;
  */
  z-index: 2;
  animation: floatAnimation 3s ease-in-out infinite;
}

.p-brand-card__logo-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.p-brand-card__logo-shadow {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 12px;
  background-color: rgba(0, 0, 0, 0.15);
  border-radius: 50%;
  z-index: 1;
  animation: shadowAnimation 3s ease-in-out infinite;
}

.p-brand-card__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -10px;
  flex-grow: 1;
}

.p-brand-card__title {
  font-size: 22px;
  font-weight: bold;
  color: var(--color-text-main);
  margin-bottom: 20px;
}

.p-brand-card__text {
  font-size: var(--font-size-body-sp);
  line-height: 1.8;
  color: var(--color-text-main);
  text-align: left;
  margin-bottom: 32px;
}

.p-brand-card__btn-wrap {
  margin-top: auto;
  padding-top: 20px;
}

/* アニメーションキーフレーム */
@keyframes floatAnimation {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

@keyframes shadowAnimation {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 1; }
  50% { transform: translateX(-50%) scale(0.7); opacity: 0.5; }
}

@media (max-width: 992px) {
  .l-brands__grid {
    flex-direction: column;
    gap: 80px;
  }
  .p-brand-card__logo-area { height: 200px; }
  .p-brand-card__logo-shadow { bottom: 10px; }
}


/* ==========================================================================
   News & Blog Section（最新情報）
   ========================================================================== */
.l-news {
  padding: var(--space-section-pv) 20px;
  background-color: var(--color-bg-white);
}

.l-news__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.l-news__content {
  max-width: 960px;
  margin-left: auto;
  position: relative;
}

.l-news__list {
  list-style: none;
  padding: 0;
  margin: 0 0 40px 0;
  border-top: 1px solid #eeeeee;
}

.l-news__btn-wrap {
  text-align: right;
}

/* --------------------------------------------------------------------------
   ニュースアイテム
   -------------------------------------------------------------------------- */
.p-news-item {
  border-bottom: 1px solid #eeeeee;
}

.p-news-item__link {
  display: flex;
  align-items: flex-start;
  padding: 24px 0;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

@media (hover: hover) {
  .p-news-item__link:hover { opacity: 0.7; }
}

.p-news-item__cat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  height: 28px;
  font-size: 12px;
  font-weight: bold;
  color: var(--color-text-white);
  border-radius: 14px;
  margin-right: 32px;
  flex-shrink: 0;
}

.p-news-item__cat.--cat1 { background-color: var(--color-accent-orange); }
.p-news-item__cat.--cat2 { background-color: var(--color-accent-blue); }
.p-news-item__cat.--cat3 { background-color: #ef4444; }

.p-news-item__cat.--info { background-color: var(--color-accent-orange); }
.p-news-item__cat.--holiday { background-color: var(--color-accent-red); }
.p-news-item__cat.--shop { background-color: var(--color-accent-green); }
.p-news-item__cat.--event { background-color: var(--color-accent-blue); }



.p-news-item__body {
  display: flex;
  align-items: flex-start;
  flex-grow: 1;
}

.p-news-item__date {
  font-size: 15px;
  font-weight: bold;
  color: var(--color-text-muted);
  font-family: var(--font-family-en);
  margin-right: 32px;
  padding-top: 1px;
  flex-shrink: 0;
}

.p-news-item__title {
  font-size: var(--font-size-body-sp);
  line-height: 1.6;
  color: var(--color-text-main);
  margin: 0;
  text-align: left;
}

@media (max-width: 768px) {
  .l-news__content { width: 100%; }
  .p-news-item__link {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 0;
  }
  .p-news-item__cat { margin-bottom: 12px; margin-right: 0; }
  .p-news-item__body { width: 100%; }
  .p-news-item__date { margin-right: 16px; }
  .l-news__btn-wrap { text-align: center; margin-top: 24px; }
}
