@charset "UTF-8";

/* font */
@import url('https://fonts.googleapis.com/css2?family=M+PLUS+1p:wght@400;500;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Alfa+Slab+One&display=swap');

/* 共通 */
body {
  font-family: "M PLUS 1p", sans-serif;
}

body.is-locked {
  overflow: hidden;
}

:root {
  --drop-shadow: 4px 4px 6px rgba(0, 0, 0, 0.2);
  --color-main: #4da3d9;
  --color-main2: #7fc8e8;
  --color-main3: #b7e4f8;
  --bubble-bg: #e9f6fb;
  --shadow: 4px 4px 6px rgba(0, 0, 0, 0.20);
}

.portfolio_setumei {
  width: 1314px;
  height: 429px;
  margin: 0 auto;
}

.portfolio_setumei {
  width: 1314px;
  height: 429px;
  display: flex;
}

.portfolio_left,
.portfolio_right {
  width: 50%;
  height: 100%;
}

.portfolio_left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portfolio_right {
  padding: 40px;
  box-sizing: border-box;
  display: flex;
  align-items: center; /* 縦中央 */
}

.portfolio_right p {
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
}

.portfolio_right .indent {
  display: inline-block;
  padding-left: 1em; /* 1文字分下げる */
}

body {
  margin: 0;
  background: transparent;
  font-family: "Noto Sans JP", sans-serif;
}

.portfolio {
  width: 1400px;
  margin: 60px auto;
}



/* グリッド */
.grid-wrap {
  display: grid;
  grid-template-columns: repeat(3, 422px);
  
  column-gap: 27px;
  row-gap: 27px;
  justify-content: center;
  margin: 27px auto;
}

/* ▼ 変更：画面が狭くなったら列数を減らす */
@media screen and (max-width: 1023px) { /* 変更 */
  .grid-wrap {
    grid-template-columns: repeat(2, 1fr); /* 変更 */
    padding: 0 20px; /* 変更 */
  }
}

@media screen and (max-width: 767px) { /* 変更 */
  .grid-wrap {
    grid-template-columns: 1fr; /* 変更 */
    padding: 0 16px; /* 変更 */
  }
}

/* カード */
.ifb-card {
  width: 422px;
  height: 646px;
  background: transparent;
  border: 3px solid #E5E7EB;
  border-radius: 28px;
  padding: 18px 16px;
  box-sizing: border-box;
  text-align: center;
  box-shadow: 3px 3px 0 #B7D9EC;

}

/* ▼ 変更：狭い画面では横幅を可変に */
@media screen and (max-width: 1023px) { /* 変更 */
  .ifb-card {
    width: 100%; /* 変更 */
    max-width: 422px; /* 変更 */
    margin: 0 auto; /* 変更 */
  }
}

@media screen and (max-width: 767px) { /* 変更 */
  .ifb-card {
    height: auto; /* 変更：縦は内容に合わせる */
  }
}

.ifb-image {
  padding: 6px;
  border-radius: 6px;
}

.ifb-image img {
  width: 100%;
  display: block;
  border-radius: 4px;
}

.ifb-text {
  margin-top: 17px;
}

.ifb-title {
  color: #3583a9;
  font-size: 26px;
  letter-spacing: 0.25em;
  margin: 0;
}

.ifb-sub {
  color: #3583a9;
  font-size: 18px;
  margin-top: 10px;
}

/* === 説明文 === */

.Intro-text {
  width:374px;
  height:288px;
  line-height: 2;
  color: black;
  margin-top: 16px;
  font-size: 16px;
  font-weight:400;
  text-align: left;
  vertical-align: top;
}

.info-text-content{
  margin:24px auto;
}

.ifb-title-mazda{
  color: #3583a9;
  font-weight: 500;
  font-size:24px;
  line-height: 1.33;
  letter-spacing: 0em;
  text-align: center;
  vertical-align: top;
}

/* ▼ 変更：スマホでは横幅固定を解除 */
@media screen and (max-width: 767px) { /* 変更 */
  .Intro-text {
    width: 100%; /* 変更 */
    height: auto; /* 変更 */
  }
}



/* グリッド全体 */
.card-grid {
  max-width: 1200px;
  margin: 40px auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* カード共通 */
.pdf-card {
  position: relative;
  padding: 20px 24px 24px;
  background-color: #ffffff;
  border-radius: 14px;
  border: 1px solid #e5e7e8;          /* 変更: 枠線色を #E5E7E8 に */
  box-shadow: 0 4px 12px rgba(53, 131, 169, 0.15); /* 変更: 影色を薄い #3583a9 に */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 140px;
}

/* タイトル・年度 */
.pdf-card__title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  color: #22313f;
}

.pdf-card__year {
  margin: 0 0 16px;
  font-size: 13px;
  color: #6b7a89;
}

/* PDFバッジ（右上） */
.pdf-card__badge {
  position: absolute;
  top: 14px;
  right: 18px;
  padding: 4px 10px;
  border-radius: 999px;
  background-color: #1f6feb;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
}

/* ダウンロードリンク（左下） */
.pdf-card__download {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #1f6feb;
  text-decoration: none;
  font-weight: 500;
}

/* ここを変更：テキストの前の絵文字を画像アイコンに差し替え */
.pdf-card__download::before {
  content: "⇩";
  font-size: 14px;
}


/* ホバー */
.pdf-card:hover {
  box-shadow: 0 6px 20px rgba(53, 131, 169, 0.25); /* 変更: ホバー時の影色も薄い #3583a9 に */
  transform: translateY(-2px);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

/* レスポンシブ */
@media (max-width: 960px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}





