@charset "UTF-8";

/* =====================================================
   components.css
   UI Components for IYOPLAN ADS（2025）
   ===================================================== */


/* =====================================================
   1. Hero
   ===================================================== */

.c-hero {
  position: relative;
  width: 100%;
  min-height: 40vh;
  height: 350px;
  overflow: hidden;
}

/* 黒い半透明レイヤー */
.c-hero-overlay{
  position:absolute;
  inset:0;
  background:rgba(0, 0, 0, 0.4);
}
.c-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.c-hero__copy {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--color-white);
  text-align: center;
  text-shadow: 0 3px 10px rgba(0, 0, 0, .4);
}

.c-hero__copy h1 {
  font-size: var(--fz-4xl);
  font-weight: 200;
  color: var(--color-white);
  margin-bottom: 10px;
}

.c-hero__copy p {
  font-size: var(--fz-lg);
  opacity: .9;
}

.c-page-hero__title {
  color: var(--color-main);
}

/* サブ階層ページのヘッダー*/
.c-hero_sub {
  margin-bottom: var(--space-2xl);
  margin-inline: auto;
  padding-inline: var(--layout-container-padding);
  background-color: var(--color-c-herosub);
  padding-block-end: 0;

  display: flex;
  align-items: center;
  min-height: 25vh;

  width: 100%;

}
.c-hero_sub_title {
    margin-left: 180px;
}
@media (max-width: 1300px) {
  .c-hero_sub {
    margin-bottom: var(--space-lg);
  }
}
@media (max-width: 769px) {
  .c-hero_sub_title {
      margin-left: 0px;
  }
}
.c-hero_sub h2 {
  font-size: var(--fz-5xl);
  /*color: var(--color-main);*/
  position: relative;
  z-index: 2;
  margin-bottom: var(--space-xs);

  font-family: "Inter", sans-serif;
  font-weight: 800;
  display: inline-block;
  color: #000000;
}
/* 背景グラデーションによるテキストクリップ処理 */
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .c-hero_sub h2 {
    /* 放射状グラデーションで上下左右の位置と広がりをコントロール */
    background-image: radial-gradient(
      ellipse var(--size-x, 45%) var(--size-y, 65%) at var(--x, 30%) var(--y, 75%),
      var(--color-main) 0%,
      #000000 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

.c-hero_sub span {
  font-size: var(--fz-2xl);
  display: block;
  color: #333333;

}
@media (max-width: 1300px) {
  .c-hero_sub h2 {
    font-size: 3.0rem;
  }
  .c-hero_sub span {
    font-size: var(--fz-2xl);
  }
}

@media (max-width: 480px) {
  .c-hero_sub {
    margin-bottom: var(--space-sm);
    
  }
  .c-hero_sub h2 {
    font-size: var(--fz-3xl);
  }
  .c-hero_sub span {
    font-size: var(--fz-xl);
  }

}



.c-section-head {
  margin-bottom: auto;
  background-color: unset;
  display: block;
  min-height: unset;
}

.c-section-head h2 {
  font-size: var(--fz-5xl);
  color: var(--color-main);
  position: relative;
  z-index: 2;
  margin-bottom: var(--space-xs);
}
@media (max-width: 1300px) {
  .c-section-head h2 {
    font-size: var(--fz-4xl);
  }
}
@media (max-width: 768px) {
  .c-section-head h2 {
    font-size: var(--fz-5xl);
  }
}
@media (max-width: 480px) {
  .c-section-head {
    margin-bottom: var(--space-sm);
    padding: 0;
  }
}

/*.c-section-head {
  position: relative;
}

.c-section-head h2 {
  font-size: var(--fz-3xl);
  font-weight: 800;
  color: var(--color-text);
  text-align: center;
  margin-bottom: var(--space-4xl);
  position: relative;
  z-index: 2;
}

.c-section-head__en {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -30%);
  font-size: 4.5rem;
  font-weight: 900;
  letter-spacing: .1em;
  color: var(--color-main-light);
  opacity: .12;
  z-index: 1;
  user-select: none;
  pointer-events: none;
}

.c-section-head__sub {
  margin-top: var(--space-xs);
  color: var(--color-text-muted);
}
*/





/* =====================================================
   2. Button
   ===================================================== */

.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);

  padding: var(--space-xxs) var(--space-lg);
  font-size: var(--fz-md);
  border-radius: var(--radius-md);
  transition: var(--motion-fast);
}
/*
.c-btn--outline {
  border: 1px solid var(--color-main);
  color: var(--color-main);
  background-color: var(--color-white);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  width: 100%;
}

.c-btn--outline::after {
  content: "";
  width: 2rem;
  height: auto;
  aspect-ratio: 4 / 1;
  display: block;
  background: transparent;
  border-bottom: 1px solid var(--color-main);
  border-right: 1px solid var(--color-main);
  transform: skewX(45deg); 
  transform-origin: bottom right;
}

.c-btn--outline:hover {
  background-color: var(--color-main);
  color: var(--color-white);
}

.c-btn--outline:hover::after {
  border-color: var(--color-white);
}
*/
/* ==================================================
   1. 基本版：通常時は白背景 → ホバーでメインカラーに染まる
   ================================================== */
.c-btn--outline {
  position: relative; /* 擬似要素の基準位置 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;           /* テキストと矢印（::after）の間隔 */
  /*padding: 14px 32px;*/
  
  /* 既存のベーススタイル */
  border: 1px solid var(--color-main);
  color: var(--color-main);
  background-color: var(--color-white);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  width: 100%;
  
  /* アニメーション用の共通設定 */
  overflow: hidden;    /* 丸角からはみ出る斜め背景をカット */
  z-index: 1;          /* 背景の上にテキストを表示 */
  text-decoration: none;
  transition: color 0.4s cubic-bezier(0.25, 1, 0.5, 1),
              border-color 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ホバー時に滑り込んでくる斜め背景（基本版：メインカラー） */
.c-btn--outline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 140%;
  height: 100%;
  background-color: var(--color-main); /* ホバー時の色：メインカラー */
  z-index: -1;
  transform: skewX(-25deg) translateX(-115%);
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* 矢印の共通形状（::after） */
.c-btn--outline::after {
  content: "";
  width: 2rem;
  height: auto;
  aspect-ratio: 4 / 1;
  display: block;
  background: transparent;
  border-bottom: 1px solid var(--color-main);
  border-right: 1px solid var(--color-main);
  transform: skewX(45deg); 
  transform-origin: bottom right;
  transition: border-color 0.4s cubic-bezier(0.25, 1, 0.5, 1),
              transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- オンマウス時の挙動（基本版） --- */
.c-btn--outline:hover,
.c-btn--outline:focus-within {
  color: var(--color-white); /* 文字色を白へ反転 */
  border-color: var(--color-main);
}

.c-btn--outline:hover::before,
.c-btn--outline:focus-within::before {
  transform: skewX(-25deg) translateX(-10%); /* 背景スライド */
}

.c-btn--outline:hover::after,
.c-btn--outline:focus-within::after {
  border-bottom-color: var(--color-white); /* 矢印を白へ反転 */
  border-right-color: var(--color-white);
  transform: skewX(45deg) translateX(4px);   /* 矢印が右へスライド */
}


/* ==================================================
   2. 逆パターン版：通常時はメインカラー → ホバーで白に染まる
   ================================================== */
/* クラス「c-btn--outline-reverse」を併記した時の上書きルール */
.c-btn--outline-reverse {
  background-color: var(--color-main);   /* 通常時：メインカラー */
  color: var(--color-white);             /* 通常時：文字は白 */
}

/* 逆パターン版の矢印（通常時は線が白） */
.c-btn--outline-reverse::after {
  border-bottom-color: var(--color-white);
  border-right-color: var(--color-white);
}

/* ホバー時に滑り込んでくる斜め背景（逆版：白） */
.c-btn--outline-reverse::before {
  background-color: var(--color-white);  /* ホバー時の色：白 */
}

/* --- オンマウス時の挙動（逆パターン版） --- */
.c-btn--outline-reverse:hover,
.c-btn--outline-reverse:focus-within {
  color: var(--color-main);             /* 文字色をメインカラーへ反転 */
  border-color: var(--color-main);
}

.c-btn--outline-reverse:hover::after,
.c-btn--outline-reverse:focus-within::after {
  border-bottom-color: var(--color-main); /* 矢印をメインカラーへ反転 */
  border-right-color: var(--color-main);
  transform: skewX(45deg) translateX(4px);
}

/* =====================================================
   3. Badge
   ===================================================== */

.c-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: var(--fz-xs);
  font-weight: 700;
  border-radius: var(--radius-full);
  color: var(--color-white);
}

.c-badge--new {
  background-color: var(--color-danger);
}

.c-badge--recommend {
  background-color: var(--color-accent);
}


/* =====================================================
   4. Card
   ===================================================== */

.c-card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  /*transition: var(--motion-base);*/
}

.c-card:hover {
  /*transform: translateY(-4px);
  box-shadow: var(--shadow-lg);*/
}

.c-card__img {
  width: 100%;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  overflow: hidden;
}

.c-card__title {
  font-size: var(--fz-xl);
  font-weight: 700;
  color: var(--color-main);
  margin-bottom: var(--space-sm);
}

.c-card__text {
  font-size: var(--fz-sm);
  line-height: 1.7;
  color: var(--color-text-light);
}


/* =====================================================
   5. Page Top Button
   ===================================================== */
/*
.c-pagetop {
  position: fixed;
  bottom: 20px;
  right: 20px;

  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);

  display: flex;
  align-items: center;
  justify-content: center;

  background-color: var(--color-accent-dark);
  color: var(--color-white);
  font-size: var(--fz-xl);
  cursor: pointer;

  box-shadow: var(--shadow-md);
  z-index: var(--z-floating);

  opacity: 0;
  pointer-events: none;
  transition: var(--motion-base);
}

.c-pagetop:hover {
  background-color: var(--color-main);
}

.c-pagetop.is-show {
  opacity: 1;
  pointer-events: auto;
}
*/
.c-footer-nav {
    display: grid;
    grid-template-columns:1fr auto 1fr;
    align-items: center;
    margin: var(--space-md) auto var(--space-lg);
}


.c-pagetop {
    position:relative;
    grid-column: 2;
    justify-self: center;

    display: flex;
    flex-direction: column;
    align-items: center;

    padding-top: 40px;
    text-decoration: none;
    color:var(--color-black);

    width: 125px;
}

.c-pagetop::before,
.c-pagetop::after {
    content: "";
    position:absolute;
    top:8px;
    width:60px;
    height:2px;
    background:var(--color-black);
}

.c-pagetop::before {
    left:3px;
    transform:rotate(-40deg);
    transform-origin:right center;
}

.c-pagetop::after {
    right:3px;
    transform:rotate(40deg);
    transform-origin:left center;
}

.c-pagetop__text{
    font-size: var(--fz-md);
    letter-spacing:.03em;
}

/* =====================================================
   6. Breadcrumb
   ===================================================== */

.c-breadcrumb {
  font-size: 14px;
}

.c-breadcrumb ul {
  display: flex;
  flex-wrap: wrap;
  gap: .5em;
}

.c-breadcrumb li {
  display: inline-flex;
  align-items: center;
}

.c-breadcrumb li::after {
  content: ">";
  margin: 0 .5em;
}

.c-breadcrumb li:last-child::after {
  content: none;
}

.c-breadcrumb a {
  color: var(--color-text-light);
}

.c-breadcrumb a:hover {
  text-decoration: underline;
}

/* Home icon */
.c-breadcrumb li:first-child a {
  font-size: 0;
}

.c-breadcrumb li:first-child a::before {
  content: "home";
  font-family: 'Material Symbols Outlined';
  font-size: 18px;
  color: var(--color-text-light);
}

.c-breadcrumb li:first-child a:hover::before {
  color: var(--color-main);
}

/* Under Hero */
.c-breadcrumb--under-hero,
.c-breadcrumb--footer {
  grid-column:1;
  justify-self:start;
  margin: 0;
  /*margin: var(--space-md) auto var(--space-lg);
    max-width: var(--layout-container-width);
  */
  /*padding-inline: var(--layout-container-padding);*/
}


/* =====================================================
   7. Responsive
   ===================================================== */

@media (max-width: 768px) {
  .c-hero {
    height: 260px;
  }

  .c-hero__copy h1 {
    font-size: 1.6rem;
  }

  .c-hero__copy p {
    font-size: 1rem;
  }

  .c-pagetop {
  }

  .c-section-head h2 {
    /*font-size: 1.8rem;*/
  }

  .c-section-head__en {
    font-size: 3rem;
    transform: translate(-50%, -20%);
    white-space: nowrap;
  }

}


@media (max-width: 480px) {
  .c-breadcrumb {
    font-size: 12px;
  }
}


/* =====================================================
   Carousel (Swiper wrapper)
   - Swiperのクラス(.swiper-*)に依存するスタイルはここに隔離
   ===================================================== */

.c-carousel {
  width: 100%;
}

/* Pickup ticker 用（横に流れるカルーセル） */
.c-carousel--ticker .swiper-wrapper {
  display: flex;
  transition-timing-function: linear !important;
}

.c-carousel--ticker .swiper-slide {
  width: 260px;
  height: auto;
  flex-shrink: 0;
}

/* Works 用（上線＋余白など “Swiper枠” の見た目） */
.c-carousel--works {
  padding: 40px 0;
  /*border-top: 2px solid var(--color-border-dark);*/
  overflow: hidden;
}


/* =====================================================
   Carousel Nav
   ===================================================== */

.c-carousel__wrap {
  position: relative;
}

.c-carousel__prev,
.c-carousel__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: var(--z-floating);

  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-main);

  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.c-carousel__prev::after,
.c-carousel__next::after {
  font-family: 'Material Symbols Outlined';
  font-size: 30px;
  color: var(--color-white);
}

.c-carousel__prev { left: -70px; }
.c-carousel__next { right: -70px; }

.c-carousel__prev::after { content: "chevron_left"; }
.c-carousel__next::after { content: "chevron_right"; }

/* Responsive */
@media (max-width: 768px) {
  .c-carousel__prev,
  .c-carousel__next {
    width: 32px;
    height: 32px;
  }
  .c-carousel__prev { left: 0; }
  .c-carousel__next { right: 0; }
}


/* =====================================================
   CTA Component
   ===================================================== */

.c-cta__box {
  border-radius: var(--radius-lg);
  background: linear-gradient(
    135deg,
    rgba(var(--color-accent-rgb),.10),
    rgba(var(--color-main-light-rgb), .10)
  );
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  padding: var(--space-3xl) var(--space-xl);
  text-align: center;
}

.c-cta__title {
  color: var(--color-main-dark);
  margin-bottom: var(--space-sm);
}

.c-cta__text {
  color: var(--color-text-light);
  max-width: 70ch;
  margin: 0 auto var(--space-lg);
}

.c-cta__actions {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .c-cta__box { padding: var(--space-2xl) var(--space-md); }
}


/* =====================================================
   Accordion
   ===================================================== */

.c-accordion {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.c-accordion__item {
  border: 1px solid var(--case-line);
  border-radius: var(--radius-lg);
  background: var(--case-surface);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.c-accordion__summary {
  cursor: pointer;
  padding: var(--space-md) var(--space-lg);
  font-weight: 800;
  color: var(--color-main-dark);
  background: linear-gradient(
    180deg,
    rgba(var(--color-main-light-rgb), .10),
    rgba(var(--color-main-light-rgb), .04)
  );
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.c-accordion__summary span {
  font-size: var(--fz-xs);
}

.c-accordion__summary::-webkit-details-marker {
  display: none;
}

.c-accordion__summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--color-main-dark);
  border-bottom: 2px solid var(--color-main-dark);
  transform: rotate(45deg);
  transition: transform var(--motion-fast);
  opacity: .9;
}

.c-accordion__item[open] .c-accordion__summary::after {
  transform: rotate(-135deg);
}

.c-accordion__content {
  padding: var(--space-md) var(--space-lg) var(--space-lg);
}

/* =====================================================
   Fixed CTA (Side / Bottom)
   ===================================================== */

/* Overlay */
.c-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: var(--motion-base);
  z-index: var(--z-overlay);
}

.c-overlay.is-active {
  opacity: 1;
  visibility: visible;
   backdrop-filter: blur(6px);
}

/* ---------------------------------
   PC: Side Tabs
--------------------------------- */
.c-side-tabs {
  /*　四角パターン
  position: fixed;
  top: calc(var(--layout-header-height) + 20px);
  right: 0;
  z-index: var(--z-floating);
  display: flex;
  gap: 10px;
  flex-direction: column;
  */
  /* 縦パターン
  position: fixed;
  top: calc(var(--layout-header-height) + 20px);
  right: 15px; 
  z-index: var(--z-floating);
  display: flex;
  flex-direction: column;
  gap: 12px;
  */

  /* 横パターン */
  position: fixed;
  top: calc(var(--layout-header-height) + 12px);
  right: 0px; 
  z-index: var(--z-floating);
  display: flex;
  flex-direction: column;
  gap: 12px;


}

.c-side-tab {
  /* 四角パターン
  color: var(--color-main);
  font-size: var(--fz-xs);
  letter-spacing: .05em;
  background: var(--color-accent);
  box-shadow: var(--shadow-md);
  width: 110px;
  height: auto;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  */

  /* 縦パターン 
  display: inline-flex;
  align-items: center;
  justify-content: center;  
  writing-mode: vertical-rl;
  text-orientation: mixed;

  width: 44px;
  height: auto;
  aspect-ratio: auto;
  padding: 20px 0;

  background-color: var(--color-white);
  color: var(--color-main);
  border: 1.5px solid var(--color-main);
  box-shadow: var(--shadow-md);

  font-size: var(--fz-sm);
  letter-spacing: 0.12em;
  text-decoration: none;

  transition: all 0.2s ease;

  color:  var(--color-text-white);
  height: 100%;
  width: 180px;
  aspect-ratio: 1 / 1;
  background: var(--color-main);
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 30px 0 0 30px;
  */

  /*横パターン*/
  background: var(--color-text-white);
  color:  var(--color-main);

  height: var(--layout-header-height);
  width: 180px;
  aspect-ratio: 1 / 1;
  padding: 0;
  display: grid;
  place-items: center;

  border: 1.5px solid var(--color-main);
  border-radius: 30px 0 0 30px;

}

.c-side-tab:hover {
  /*
  background-color: var(--color-main);
  color: var(--color-white);
  */
  background-color: var(--color-main);
  color: var(--color-white);
  /*background: var(--color-accent);*/
}
/*
@media (max-width: 768px) {
  .side-tabs {
    display: none;
  }

  .bottom-bar {
    display: flex;
  }
}*/


/* ---------------------------------
   SP: Bottom Bar
--------------------------------- */
.c-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-bg);
  display: flex;
  gap: 1px;
  z-index: 9999;
  height: var(--layout-bottom-bar-height);
}

.c-bottom-bar a {
  flex: 1;
  display: grid;
  place-items: center;
  color: var(--color-white);
  font-size: var(--fz-sm);
  font-weight: 700;
  background: var(--color-main);
}
.c-bottom-bar a:nth-of-type(2) {
  background: linear-gradient(to right, #1400E3, #CA87FF);
}

/* =====================================================
   Footer Component
   ===================================================== */

.c-footer__col {
  flex: 1;
  min-width: 260px;
}

.c-footer__light {
  display: flex;
  justify-content: flex-end;
}
@media (max-width: 768px) {
  .c-footer__light {
    display: block;
  }
}

.c-footer__title {
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.c-footer_companyaddress .c-footer__title {
  border-bottom: 2px solid var(--color-white);
  margin-bottom: var(--space-xs);
}

/* SNS */
.c-footer__sns {
  display: flex;
  gap: 14px;
  margin-left: 10%;
}
@media (max-width: 768px) {
  .c-footer__sns {
    margin-left: 0%;
  }
}

.c-footer__sns a {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
}
.c-footer__sns li a i {
    font-size: 35px;
} 

.c-footer__sns li:nth-child(1) a { background:#000; }
.c-footer__sns li:nth-child(2) a { background:#1877f2; }
/*.c-footer__sns li:nth-child(3) a { background:#e4405f; }*/
.c-footer__sns li:nth-child(3) a { background: #fff; }

.c-footer__sns li:nth-child(3) a i { 
  background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF, #515BD4);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.c-footer__info {
  position: relative;
}

.c-footer__info p {
  margin-bottom: var(--space-md);
  line-height: 1.6;
  margin-left: 15px;
}

.c-footer_companyaddress{
    display: flex;
    gap: 50px;
}
@media (max-width: 768px) {
  .c-footer_companyaddress{
      display: block;
  }
}

.c-footer__logo {
  max-width: 220px;
  margin-bottom: 15px; 
}
.c-footer__GPlog {
  margin-top: 10%;
  margin-left: 10%;
}
@media (max-width: 768px) {
  .c-footer__GPlog {
    margin-top: 5%;
    margin-left: auto;
  }

}
.c-footer__GPlog a img {
  width: 100px;
}


/* Copyright */
.c-footer__bottom {
  margin-top: 40px;
  font-size: .85rem;
  text-align: center;
  opacity: .7;
}

.c-breadcrumb-nav {
  margin-block: 50px;
}
.c-breadcrumb-nav__home {
  width: 15rem;
  margin: auto;
}


