/* ======================================= 
   ファイル名: around-layout-section.css
   ======================================= */

.around-section {
  max-width: 1200px;
  margin: 120px auto; /* 前のセクションとの間隔 */
  padding: 0 20px;
  box-sizing: border-box;
  font-family: "Yu Mincho", "游明朝体", serif;
  text-align: center; /* 全体を中央揃え */
}

.around-inner {
  /* 修正：side-content-layout.css のコンテンツ最大幅に合わせる */
  max-width: 800px; 
  margin: 0 auto;
}

/* タイトルと説明文 */
.around-title {
  font-size: 24px;
  font-weight: 600;
  color: #12458f; /* 強調色 */
  margin-bottom: 25px;
  letter-spacing: 0.05em;
}

.around-description {
  font-size: 15px;
  line-height: 1.8;
  color: #12458f;
  margin-bottom: 80px; /* 山形配置で画像が下がるため、余白を広めに確保 */
}

/* 3枚画像グリッド */
.around-image-grid {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 80px; 
  align-items: center;
}

/* 画像コンテナ（コピーライト配置の基準点） */
.around-img-container {
  position: relative;
  width: calc(33.333% - 10px);
  height: auto;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(18, 69, 143, 0.12);
}

.around-img-container img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 2; /* 縦長 1:2 を維持 */
  object-fit: cover;
  display: block; /* 画像下の隙間排除 */
}

/* コピーライトタグ（アネックスのスタイルを継承） */
.around-img-container .copyright-tag {
  position: absolute;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 10px;
  padding: 2px 8px;
  pointer-events: none;
  z-index: 2;
  font-family: sans-serif; /* 視認性のため */
}

/* --- 山形配置の調整 (PCのみ) --- */
@media (min-width: 769px) {
  /* コンテナ単位で上下移動させることでコピーライトも追従 */
  .around-img-container:nth-child(1),
  .around-img-container:nth-child(3) {
    transform: translateY(50px);
  }

  .around-img-container:nth-child(2) {
    transform: translateY(-30px);
  }
}

/* ボタン設定（視覚的中心をミリ単位で調整） */
.around-btn-wrapper {
  text-align: center;
}

.btn-around {
  display: inline-flex; 
  flex-direction: column;
  justify-content: center;
  align-items: center;
  
  /* スマートなサイズ */
  width: 120px; 
  height: 120px; 
  
  margin: 0 auto;
  font-size: 13px;
  font-weight: 600;
  color: #12458f;
  border: 1px solid #12458f; 
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border-radius: 50%;
  background-color: transparent;
  
  line-height: 1.2; 
  letter-spacing: 0.05em;
  box-sizing: border-box;

  /* 調整：上に浮いて見えるのを防ぐため、少しだけ下に押し下げる */
  padding-top: 6px; 
}

.btn-around .arrow {
  display: block;
  margin-left: 0;
  margin-top: 6px; /* 文字との距離を詰め、一つの塊として中心に見せる */
  font-size: 16px;
  line-height: 1;
  transition: transform 0.3s ease;
}

.btn-around:hover {
  background-color: #12458f;
  color: #fff;
}

.btn-around:hover .arrow {
  transform: translateY(3px);
}

/* 周辺セクションのスマホ対応 */
@media (max-width: 768px) {
  .around-section {
    margin: 80px auto;
  }

  .around-title {
    font-size: 20px;
  }

  .around-description {
    font-size: 14px;
    margin-bottom: 40px;
  }

  .around-image-grid {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
  }

  .around-img-container {
    width: calc(50% - 5px); 
    transform: translateY(0) !important;
  }

  /* スマホ用のサイズと位置微調整 */
  .btn-around {
    width: 110px;
    height: 110px;
    font-size: 12px;
    padding-top: 5px;
  }
}