html,
body {
    height: auto;
    margin: 0;
    padding: 0;
    font-size: 10px;
    box-sizing: border-box;
    background-color: #fff;
}
p,
h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
}
*,
*:before,
*:after {
    box-sizing: inherit;
}
ul,
ol {
    list-style: none;
    margin: 0;
    padding: 0;
}
a {
    text-decoration: none;
    color: inherit;
}
main {
    padding-bottom: 16rem;
}
.top-container {
    margin-bottom: 10rem;
}
.font-noto-sans {
    font-family: "Noto Sans JP", sans-serif;
}
.font-noto-serif {
    font-family: "Noto Serif JP", serif;
}
.font-noto-bold {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: bold;
}
.font-garamond {
    font-family: "EB Garamond", serif;
}
.top-header {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: #fff;
    padding: 2.8rem 0;
}
.logo img {
    max-height: 8.8rem;
    /* max-height: 100%; */
}
.main-image {
    height: 48rem;
    width: 100%;
    position: relative;
}
.main-image .main {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
}
.main-image .slogan {
    position: absolute;
    width: 36rem;
    top: 50%;
    right: 10%;
    transform: translate(0%, -50%);
}
.pledge-sec {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 0 auto;
    text-align: center;
    font-size: 1.6rem;
    padding-top: 5.5rem;
    position: relative;
}
.pledge-sec .title h1 {
    font-size: 2.4rem;
    margin-bottom: 1.6rem;
    display: flex;
    justify-content: center;
    align-items: center;
}
.pledge {
    font-size: 1.6rem;
}

.pledge-sec .title h1::after {
    margin-left: 1.6rem;
}
.pledge-sec .title h1::before {
    margin-right: 1.6rem;
}
.pledge-sec .title h1::after,
.pledge-sec .title h1::before {
    content: "";
    display: inline-block;
    width: 8rem;
    height: 0.1rem;
    background-color: #000;
    /* margin-left: 1.6rem; */
}
.headline {
    display: flex;
    justify-content: center;
    align-items: center;
}
.sub {
    font-size: 1.6rem;
    margin-bottom: 2.4rem;
}
.pledge {
    font-weight: bold;
    line-height: 2;
    margin-bottom: 3.2rem;
    display: inline-block;
}
.pledge li {
    text-align: left;
    padding-left: 1.3em;
    text-indent: -1.3em;
    margin-bottom: 10px;
}
.pledge ul li::before {
    content: "";
    display: inline-block;
    width: 0.8rem;
    height: 0.8rem;
    background: #fd7e00;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 0.5em;
}
.sub2 {
    margin-bottom: 4.2rem;
    font-size: 1.6rem;
}

/* =========================================
   history-sec（画像バナー一覧）
   ・PC：3列まで / 4つ目以降は折り返すように更新（2026/01/15）
========================================= */

.history-sec{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.4rem;

  width: min(100%, 75rem);
  margin: 0 auto 5.6rem;

  text-align: center;
  font-size: 1.6rem;
}

/* photos01〜photos99… 直下のdivなら全部対象 */
.history-sec > div{
  flex: 0 0 calc((100% - 2.4rem * 2) / 3); /* 3列 */
  max-width: 23.4rem;
  transition: 0.3s;

  /* ボーダー＆角丸 */
  border: 1px solid #B1B1B1;
  border-radius: 6px;

  /* 画像のはみ出し防止（角丸を効かせる） */
  overflow: hidden;

  /* 背景（画像が読み込めない時の保険） */
  background: #fff;
}

.history-sec > div:hover{
  opacity: 0.8;
}

.history-sec > div > a{
  display: block;
  width: 100%;

  /* ここが “サイズ違いでも統一” の核：枠の比率を固定 */
  aspect-ratio: 234 / 120; /* お好みで調整OK（今の見た目に近い横長） */
}

/* picture を使う場合でも崩れないように */
.history-sec picture{
  display: block;
  width: 100%;
  height: 100%;
}

/* 画像は枠にフィットさせてトリミング（はみ出し・縮み不揃いを防ぐ） */
.history-sec img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;     /* 枠いっぱいにして、足りない分はトリミング */
  object-position: center;
}

/* スマホ対応：2カラム表示 */
@media (max-width: 768px){

  /* 両サイドに余白を作る */
  .history-sec{
    justify-content: flex-start; /* ←最後の1枚も左寄せになる */
    padding: 0 1.2rem;           /* ←左右の余白（好みで調整） */
    box-sizing: border-box;
    gap: 1.6rem;
  }

  /* 2カラム */
  .history-sec > div{
    flex: 0 0 calc((100% - 1.6rem) / 2); /* 2列（gap 2.4remを前提） */
    max-width: none;
  }
}



.company-song {
    width: 24rem;
    position: absolute;
    top: 2.4rem;
    right: 2.4rem;
}
.company-song:hover {
    opacity: 0.8;
}
.company-song img {
    width: 100%;
}
@media screen and (max-width: 768px) {
    .main-image {
        height: 30rem;
    }
    .pledge-sec .title h1::after {
        margin-left: 1rem;
    }
    .pledge-sec .title h1 {
        font-size: 2rem;
    }
    .pledge-sec .title h1::before {
        margin-right: 1rem;
    }
    .pledge-sec .title h1::after,
    .pledge-sec .title h1::before {
        content: "";
        display: inline-block;
        width: 3rem;
        height: 0.1rem;
        background-color: #000;
    }
    .company-song {
        position: unset;
        margin-bottom: 2.4rem;
    }
    .title {
        padding: 0 1.6rem;
    }
    .main-image .slogan {
        width: 40%;
    }
    .logo {
        width: 19.8rem;
        margin: 0;
    }
}
