/* =========================================================
   Main Visual
========================================================= */
.main-visual {
  height: calc(100vh - 118px);
  position: relative;
  overflow: hidden;
  margin: 0 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 100px;
}

.main-visual-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
}

.main-visual-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* メインビジュアルコンテンツ */
.main-visual-content {
  position: absolute;
  top: 50%;
  left: 6%;
  z-index: 2;
  text-align: center;
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 40px;
}

.main-visual-title {
  font-family: var(--font-shippori);
  text-align: left;
}

.main-visual-btn {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semi-bold);
  color: var(--bk);
  padding: 16px 48px;
  border-radius: 5px;
  background: linear-gradient(
    90deg,
    rgba(225, 225, 225, 0.8) 0%,
    rgba(245, 245, 245, 0.8) 69.95%,
    rgba(140, 140, 140, 0.8) 100%
  );
  text-decoration: none;
  transition: all 0.3s ease;
}

.main-visual-btn:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .main-visual {
    margin: 0px var(--space-sm);
    margin-bottom: var(--space-xxxl);
    height: calc(100vh - 80px);
  }

  .main-visual-btn {
    font-size: var(--font-size-xxs);
    padding: 16px 18px;
    gap: 30px;
  }
}

/* =========================================================
   コラム
========================================================= */
#column.column {
  margin-bottom: 130px;
}

#column.column .box-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

#column .item-title {
  margin-bottom: 0px;
}

#column.column .box-img h3 {
  border-bottom: 1px solid var(--gray5);
  font-size: var(--font-size-md);
  margin-bottom: 10px;
  line-height: var(--line-height-default);
  padding-bottom: 4px;
  min-height: 65px;
}

#column.column .box-img {
  display: flex;
  gap: 32px;
}

#column.column .box-img .item-img {
  width: calc((100% - 64px) / 3);
}

#column.column .box-img .item-img .column-img {
  margin-bottom: 15px;
}

/* コラム（トップ）：サムネイルを16:9枠で上下中央寄せ、はみ出しはカット、不足分は白背景 */
#column.column .box-img .item-img .column-img {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #ffffff;
}

#column.column .box-img .item-img .column-img img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: auto;
  transform: translate(-50%, -50%);
  display: block;
}

/* コラム本文は2行で省略表示 */
#column.column .box-img .item-img p {
  line-height: var(--line-height-default);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#column.column .column-bg {
  position: relative;
}

#column.column .column-bg::before {
  content: "";
  border-radius: 30px 0 0 30px;
  position: absolute;
  top: auto;
  bottom: -30px;
  right: 0px;
  height: 50%;
  width: calc(100svw - 60px);
  background: var(
    --gradient,
    linear-gradient(117deg, #f4f4f4 15.02%, #f5f5f5 47.53%, #ddd 85.07%)
  );
  z-index: -1;
}

@media (max-width: 768px) {
  #column.column .box-img {
    flex-direction: column;
    padding: 0px 16px;
  }
  #column.column .box-img h3 {
    min-height: 0px;
    padding-bottom: 8px;
  }  
  #column.column .bg::before {
    height: 100%;
  }

  #column.column {
    margin-bottom: 80px;
  }

  #column.column .box-img .item-img {
    width: 100%;
  }

  #column.column .column-bg::before {
    height: 85%;
    width: 96%;
  }
}

/* =========================================================
   お知らせ
========================================================= */
#news {
  margin-bottom: var(--space-xxxl);
}

#news .wrapper {
  display: flex;
  gap: 40px;
}

/* お知らせ表のスタイル */
#news .news-list {
  background: var(--white);
  border-radius: 8px;
  padding: 0;
  box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.15);
  width: calc(80% - 32px);
  padding: 32px;
}

#news .box-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
  width: calc(20% - 8px);
}

#news .news-item {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray5);
  gap: 20px;
}

#news .news-item:hover {
  background-color: rgba(66, 66, 66, 0.03); /* ほんのりグレー */
}

#news .item-title {
  margin-bottom: 0px;
}

#news .news-date {
  font-size: 14px;
  font-weight: 400;
  min-width: 80px;
}

#news .news-tag {
  background: var(--white);
  border: 1px solid var(--gray5);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
  flex-shrink: 0;
}

#news .news-text {
  font-size: 14px;
  color: var(--bk);
  font-weight: 400;
  flex: 1;
}
.box-title-sp {
  display: none;
}
/* レスポンシブ対応 */
@media (max-width: 768px) {
  #news .news-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 16px;
  }

  #news .news-date {
    min-width: auto;
  }

  #news .news-tag {
    align-self: flex-start;
  }

  #news .wrapper {
    flex-direction: column;
  }

  #news .box-title {
    flex-direction: row;
    width: 100%;
    align-items: center;
  }

  #news .news-list {
    width: 100%;
  }
  #news .box-title-sp {
    display: flex;
    justify-content: flex-end
  } 
}

/* =========================================================
強み
========================================================= */
#strength {
  margin-bottom: var(--space-xxxl);
  background: linear-gradient(
    117deg,
    #f4f4f4 15.02%,
    #f5f5f5 47.53%,
    #ddd 85.07%
  );
  padding: 120px;
  margin-bottom: var(--space-xxxl);
}

#strength h2 {
  justify-content: center;
  font-size: clamp(1.375rem, 0.042rem + 2.78vw, 2.125rem);
}

#strength p {
  justify-content: center;
  font-size: clamp(0.688rem, 0.132rem + 1.16vw, 1rem);
}

#strength .title {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 120px;
}

#strength .box {
  display: flex;
  gap: 60px;
  justify-content: space-between;
  align-items: flex-start;
}

.strength-center {
  position: absolute;
  top: 82%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
}

/* 説明文部分 */
.strength-content {
  width: 60%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 30px;
}

.strength-item {
  border-bottom: 1px solid var(--gray5);
  padding-bottom: 16px;
}

.strength-item h3 {
  font-size: 22px;
  font-weight: 600;
}

.strength-item h3 span {
  font-size: 22px;
  margin-left: 20px;
}

.strength-item p {
  font-size: 14px;
  color: var(--bk);
  line-height: 1.6;
}

.strength-btn {
  margin-top: 20px;
}

.strength-btn .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 12px 24px;
  font-size: 14px;
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
}

.strength-btn .btn:hover {
  background: #e8e8e8;
  transform: translateY(-2px);
}

.strength-btn .btn::after {
  content: "→";
  font-size: 16px;
}

/* レスポンシブ対応 */
@media (max-width: 1200px) {
  #strength {
    padding: 56px;
}
}

@media (max-width: 768px) {
  #strength {
    padding: 60px 0px;
  }
  #strength h2 {
    text-align: left;
    font-size: var(--font-size-3xl);
  }
  
  #strength p {
    text-align: left;
    font-size: var(--font-size-xs);
  }
  #strength .box {
    flex-direction: column;
    gap: 40px;
  }

  #strength .strength-content {
    gap: 20px;
    width: 100%;
  }

  #strength .strength-item {
    padding-bottom: 20px;
  }

  #strength .strength-item h3 {
    font-size: 16px;
  }

  #strength .strength-item h3 span {
    font-size: 14px;
  }

  #strength .title {
    margin-bottom: 30px;
  }
}

/* =========================================================
サービス紹介
========================================================= */
#service {
  margin-bottom: var(--space-xxxl);
}

#service .wrapper-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

#service .item {
  border: 0.5px solid var(--gray5_7D7D7D, #7d7d7d);
  background-color: #f5f5f5;
  background-image: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.8),
      rgba(245, 245, 245, 0.8)
  );
  padding: 32px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: background 0.3s ease, border-color 0.3s ease;
}

#service .item:hover {
  background: linear-gradient(
    180deg,
    rgba(245, 245, 245, 0.9) 0%,
    rgba(225, 225, 225, 0.9) 100%
  );
}

#service .item .number {
  margin-bottom: 16px;
}

#service .item h3 {
  font-size: 20px;
}

#service .item p {
  margin-bottom: 24px;
}

#service .item .h3-title {
  margin-bottom: 24px;
}

#service .item .btn {
  align-self: flex-end;
}

#service .item:hover .btn-arrow {
  transform: translateX(4px);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  #service .wrapper-box {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  #service .item {
    padding: 30px;
  }  
  #service .item .h3-title {
    line-height: var(--line-height-default);
  }
  #service .item p {
    margin-bottom: 8px;
  }
}

/* =========================================================
アクチュアリーとは
========================================================= */
#actuary {
  background-image: url("../images/actuary-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 180px 0px;
  margin-bottom: var(--space-xxxl);
}

#actuary .wrapper {
  display: flex;
  gap: 60px;
}

#actuary .wrapper p {
  margin-bottom: 32px;
}

#actuary .wrapper .title-box {
  width: calc(40% - 24px);
}

#actuary .wrapper .img-box {
  width: calc(60% - 36px);
}

@media (max-width: 768px) {
  #actuary .wrapper {
    flex-direction: column;
  }

  #actuary .wrapper .title-box {
    width: 100%;
  }

  #actuary .wrapper .img-box {
    width: 100%;
  }

  #actuary {
    padding: 50px 0px;
  }
}
