/* 全体 */
.about-page {
  /* padding: 40px 20px; */
  background: #f7efe3;
  /* max-width: 1200px; */
  margin: 0 auto;
}

/* ナビ */
.about-nav {
  background: #7fa4cb;
  padding: 30px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 15px;
  margin: 30px auto 20px;
  max-width: 1200px;
}

/* セクション */
.about-section-yuuaisha {
  background: #f7efe3;
  /* padding: 60px 20px;   /* ← 内側余白を統一 */
  margin: 0 auto 40px;  /* ← セクション間の余白 */
  /* max-width: 1200px; */
}

.about-section-ishiijuuji {
  background: #f7efe3;
  /* padding: 60px 20px;   /* ← 内側余白を統一 */
  margin: 0 auto 40px;  /* ← セクション間の余白 */
  /* max-width: 1200px; */
  padding: 0 10px;
}

.about-section-greeting {
  background: #fcf9f4;
  /* padding: 60px 20px;   /* ← 内側余白を統一 */
  margin: 0 auto 40px;  /* ← セクション間の余白 */
  /* max-width: 1200px; */
  padding: 50px 10px 0;
}

.about-section-link {
  background: #f7efe3;
  /* padding: 60px 20px;   /* ← 内側余白を統一 */
  margin: 0 auto 40px;  /* ← セクション間の余白 */
  /* max-width: 1200px; */
  padding-bottom: 10px;
}

.about-section-yuuaisha h2,
.about-section-ishiijuuji h2,
.about-section-greeting h2,
.about-section-link h2 {
  margin-bottom: 20px;
  text-align: center;
}

.yuuaisha-text {
  max-width: 1000px;
  margin: 0 auto;
  padding:10px 20px 80px;
}

/* スムーススクロール */
html {
  scroll-behavior: smooth;
}

/* タイトル */
.section-title {
    text-align: center;
    font-size: 2.0rem;
    font-weight: 500;
    margin-bottom: 15px;
}

/* サブタイトル */
.sec-sub-title {
    font-size: 1.15rem;
    font-weight: 500;
    margin: 30px 0;
    text-align: center;
    color: #f1a400;
    line-height: 1.6;
}

.support_request {
  position: relative;
  background: #fcf9f4;
  padding: 10px 20px 30px;
}

/* 下段タイトル */
.support_request .sec-sub-title {
  color: #555;
  margin-bottom: 30px;
}

/* 本文幅 */
.support_request > p {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.wrapper {
  text-align: center;
}

/* 写真 */
.photo-img {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;

  width: 50%;   /* サイズは調整 */
  max-width: 400px;
  aspect-ratio: 4/5;;

  margin: 0 auto;
}

.slider {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  overflow: hidden;
}

/* 共通 */
.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%); /* ← 上下中央 */

  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  font-size: 24px;
  padding: 10px;
  cursor: pointer;
  z-index: 10;
}

/* 左 */
.prev {
  left: 10px;
}

/* 右 */
.next {
  right: 10px;
}

.slide {
  width: 100%;
  height: 400px;
  position: relative;
  background: #f5f5f5;
  display: none;
  justify-content: center;
  align-items: center;
  position: relative;
}

.slide.active {
  display: block;
}

/* 画像 */
.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* コメント */
.slide p {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px 0;
  background: rgba(0,0,0,0.6);
  color: #fff;
  text-align: center;
  margin: 0;
}

/* スライダ 縦 */
.photo-img-vertical {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;

  width: 50%;   /* サイズは調整 */
  max-width: 500px;
  aspect-ratio: 4/6;;

  margin: 0 auto;
}

/* スライダ 横 */
.photo-img-horizontal {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;

  width: 70%;   /* サイズは調整 */
  max-width: 700px;
  aspect-ratio: 6/4;;

  margin: 0 auto;
}

.about-slid {
  margin-top: 20px;
  margin-bottom: 50px;
}

/* 石井十次とは */
.about-list {
  padding: 10px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.about-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* 1行 */
.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 0;
  position: relative;
}

/* 区切り線 */
.about-list li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: #7fa4cb;
}

/* 最後だけ線なし */
.about-list li:last-child::after {
  display: none;
}

.about-info {
  max-width: 950px;
  width: 100%;
  margin: 0 auto;
}

.info-flex {
  display: flex;
  gap: 10px; /* 間隔 */
}

.info-flex .text {
  flex: 2; /* 可変 */
  padding-left: 10px;
}

.info-flex .img-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 左タイトル */
.list-title {
  width: 20%;
  max-width: 120px;
  flex-shrink: 0;
}

.list-title h3 {
  margin: 0;
  font-size: 14px;
  color: #6b8db3;
}

/* 右テキスト */
.text {
  flex: 1;
  width: 80%;
}

.text p {
  margin: 2px;
  line-height: 1.8;
}

.wave-bg-3::before {
  display: none;
}

.greeting-content {
  padding: 10px;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
}

/* 関連リンク */
.link {
  display: flex;
  justify-content: center;
  gap: 50px;
}

.link li {
  display: flex;
  align-items: center;
}

.link li p {
  position: relative;
  padding-left: 30px;
  margin: 0;                   
  line-height: 1.4;  
}

.link li p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  
  width: 18px;
  height: 18px;
  background: #6c8ebf;
  border-radius: 50%;
}

.link li p::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);

  width: 6px;
  height: 6px;
  border-top: 1px solid #fff;
  border-right: 1px solid #fff;
}

.info-title {
  display: flex;
  align-items: center;
  font-size: 1rem;
  font-weight: 500;
  background: #d5d5d5;
  padding: 10px 0px 10px 15px;
  border-radius: 10px;
  margin-bottom: 50px;
}

.info-title::before {
  content: "";
  display: block;
  background: #7fa4cb;
  width: 5px;
  align-self: stretch;
  margin-right: 10px;
}

@media (max-width: 767px) {
  .link {
    flex-direction: column;
    gap: 15px;
  }
  .link li p {
    position: relative;
    padding-left: 30px;
    margin: 0;                   
    line-height: 0;  
  }
}