/*
 * 連盟概要ページ専用 CSS。
 * 共通 hero (`.page-top` / `.scrolldown` / `.corporate-top h2` 等) は
 * `layouts/_base.css` 側にあり、本 file は corporate page 固有 selector のみ扱う。
 */

/* 共通項目 ==================== */
.corporate section {
  padding: 5rem 5vw;
  margin: 0 auto;
  color: rgb(50, 50, 50);
  z-index: 5;
  position: relative;
}

@media (max-width: 959px) {
  .corporate section {
    padding: 3rem 5vw;
  }
}

/* Page top ==================== */
.corporate-top::before {
  background-image: linear-gradient(rgba(0, 0, 0, .6), rgba(0, 0, 0, .6)),
                    url("/assets/generated/top/top_5_768-0332d38c.avif");
}

@media (min-width: 960px) {
  .corporate-top::before {
    background-image: linear-gradient(rgba(0, 0, 0, .6), rgba(0, 0, 0, .6)),
                      url("/assets/generated/top/top_5_1600-ac7a8dcb.avif");
  }
}

@supports not (background-image: url("dummy.avif")) {
  .corporate-top::before {
    background-image: linear-gradient(rgba(0, 0, 0, .6), rgba(0, 0, 0, .6)),
                      url("/assets/generated/top/top_5_768-42e02eb9.webp");
  }
}

.corporate-top h2::after {
  content: "連盟概要";
}

/* MVV ==================== */
.mvv dl {
  max-width: 675px;
  margin: 5rem auto;
}

.mvv dl h3 {
  font-size: 50px;
  font-style: italic;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  position: relative;
}

.mvv dl h3::after {
  color: rgb(200, 200, 200);
  font-size: 16px;
  position: absolute;
  bottom: 0;
  left: 0;
}

.mvv dl .corporate-vision::after {
  content: 'ビジョン';
}

.mvv dl .corporate-mission::after {
  content: 'ミッション';
}

.mvv dl dd {
  margin-left: 5rem;
  margin-bottom: 5rem;
  padding-bottom: 1rem;
  font-size: 20px;
  font-style: italic;
  border-bottom: solid 1px rgb(225, 225, 225);
}

.mvv dl dd p {
  margin-bottom: 0.75rem;
}

@media (max-width: 959px) {
  .mvv dl {
    max-width: 575px;
    margin: 2rem auto 0 auto;
  }
}

@media (max-width: 519px) {
  .mvv dl {
    width: 100%;
  }

  .mvv dl h3 {
    font-size: 40px;
    margin-bottom: 0;
  }

  .mvv dl h3::after {
    font-size: 14px;
  }

  .mvv dl dd {
    margin-left: 1rem;
    margin-bottom: 2rem;
    font-size: 16px;
  }
}

@media (min-width: 520px) and (max-width: 959px) {
  .mvv dl {
    width: 90%;
  }

  .mvv dl dd {
    margin-left: 2.5rem;
    margin-bottom: 2.5rem;
    font-size: 18px;
  }
}

/* About corporate ==================== */
/* History ==================== */
.about-corporate,
.history {
  display: flex;
  flex-direction: row;
}

.about-corporate h2,
.history h2 {
  width: 30%;
  text-align: center;
}

.about-corporate dl,
.history dl {
  display: flex;
  flex-wrap: wrap;
  border-top: solid 1px rgb(215, 215, 215);
  width: 70%;
}

.about-corporate dl dt,
.history dl dt {
  width: 25%;
  border-bottom: solid 1px rgb(215, 215, 215);
  padding: 1rem 0;
}

.about-corporate dl dd,
.history dl dd {
  width: 75%;
  margin-left: 0;
  border-bottom: solid 1px rgb(215, 215, 215);
  padding: 1rem 5rem 1rem 0;
  font-size: 14px;
}

.about-corporate dl dd .title,
.history dl dd .title {
  display: inline-flex;
  width: 4rem;
}

@media (max-width: 519px) {
  .about-corporate,
  .history {
    flex-direction: column;
  }

  .about-corporate h2,
  .history h2 {
    width: 100%;
  }

  .about-corporate dl,
  .history dl {
    width: 100%;
  }

  .about-corporate dl dt,
  .history dl dt {
    padding: 0.75rem 0;
    font-size: 14px;
  }

  .about-corporate dl dd,
  .history dl dd {
    padding: 0.75rem 0;
    font-size: 12px;
  }
}

@media (min-width: 520px) and (max-width: 959px) {
  .about-corporate h2,
  .history h2 {
    width: 25%;
  }

  .about-corporate dl,
  .history dl {
    width: 75%;
  }

  .about-corporate dl dd,
  .history dl dd {
    padding: 1rem 1rem 1rem 0;
  }
}

/* Director ==================== */
/* flex-wrap で「写真+プロフィール(計100%)」を1行目、挨拶(.greeting)を全幅の2行目に折り返す。 */
.director {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.director .director-title {
  width: 30%;
  text-align: center;
}

.director .director-title picture {
  display: block;
}

.director .director-title img {
  width: 75%;
  height: auto;
  margin-top: 1rem;
}

.director .profile {
  width: 70%;
}

.director .profile .profile-name {
  display: inline-flex;
  flex-direction: row;
  align-items: baseline;
  margin-bottom: 1rem;
}

.director .profile .profile-name h3 {
  font-size: 24px;
}

.director .profile .profile-name h4 {
  font-size: 20px;
}

@media (max-width: 519px) {
  .director {
    flex-direction: column;
  }

  .director .director-title {
    width: 100%;
  }

  .director .director-title img {
    margin-top: 0.5rem;
  }

  .director .profile {
    width: 100%;
    margin-top: 2rem;
    margin-bottom: 2rem;
  }

  .director .profile p {
    font-size: 12px;
  }
}

/* Greeting ==================== */
/* director 行(写真+プロフィール)の直下に全幅で続く。プロフィールと地続きに見せるため
   セクションを分けず、上に控えめな区切り線のみ置く。 */
.greeting {
  width: 100%;
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: solid 1px var(--color-border);
}

.greeting .greeting-heading {
  text-align: center;
  font-size: 16px;
  letter-spacing: 0.1em;
  color: var(--color-text-subtle);
  margin-bottom: .5rem;
}

/* リード文・締め・署名のみ明朝で「連盟の声」を立てる。本文・小見出しは既定 sans のまま。 */
.greeting .greeting-lead {
  max-width: 24em;
  margin: 0 auto 1rem;
  padding-bottom: 2rem;
  border-bottom: solid 1px var(--color-border);
  font-family: var(--font-mincho);
  font-size: clamp(22px, 4.5vw, 30px);
  line-height: 1.3;
  text-align: center;
  text-wrap: balance;
  color: var(--color-text);
}

.greeting .greeting-body {
  color: rgb(50, 50, 50);
}

.greeting .greeting-body p {
  font-size: 18px;
  line-height: 2;
  margin-block: .75em 0;
}

.greeting .greeting-chapter {
  padding: 2rem 5vw;
}

.greeting .greeting-subhead {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  margin: 0 0 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: solid 1px var(--color-border);
  font-size: 19px;
  font-weight: bold;
  line-height: 1.4;
  color: var(--color-text);
}

/* 章番号は .mvv h3::after と同じ淡いグレー(rgb(200,200,200))の数字装飾を踏襲。 */
.greeting .greeting-kicker {
  flex: 0 0 auto;
  font-family: var(--font-mincho);
  font-style: italic;
  font-size: 26px;
  line-height: 1;
  color: rgb(200, 200, 200);
}

.greeting .greeting-quote {
  margin: 1rem 0;
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 3px solid var(--color-border);
  font-size: 17px;
  font-style: italic;
  color: var(--color-text-muted);
}

.greeting .greeting-closing {
  margin: 3.5rem auto 0;
  font-family: var(--font-mincho);
  font-size: clamp(18px, 3.5vw, 22px);
  line-height: 1.8;
  text-align: center;
  color: var(--color-text);
}

.greeting .greeting-sign {
  width: 80vw;
  margin: 3rem auto;
  padding: 1rem 1rem;
  border-top: solid 1px var(--color-border);
  text-align: right;
}

.greeting .greeting-sign-org {
  margin: 0;
  font-size: 13px;
  color: var(--color-text-subtle);
}

.greeting .greeting-sign-name {
  margin: 0.35rem 0 0;
  font-family: var(--font-mincho);
  font-size: 18px;
  color: var(--color-text);
}

.greeting .greeting-sign-roman {
  margin-left: 0.75em;
  font-size: 14px;
  color: var(--color-text-subtle);
}

@media (min-width: 520px) and (max-width: 959px) {
  .greeting .greeting-body p {
    font-size: 17px;
    line-height: 1.8;
  }
}

@media (max-width: 519px) {
  .greeting {
    margin-top: 1rem;
    padding-top: 1rem;
  }

  .greeting .greeting-heading {
    font-size: 14px;
  }

  .greeting .greeting-lead {
    max-width: none;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    font-size: clamp(19px, 6vw, 22px);
  }

  .greeting .greeting-body p {
    font-size: 15px;
    line-height: 1.7;
  }

  .greeting .greeting-subhead {
    gap: 0.7rem;
    font-size: 17px;
  }

  .greeting .greeting-kicker {
    font-size: 22px;
  }

  .greeting .greeting-chapter {
    margin-top: 1rem;
    padding: 1rem 0;
  }

  .greeting .greeting-quote {
    padding-left: 1rem;
  }

  .greeting .greeting-closing {
    margin: 1.5rem auto 0;
    font-size: 17px;
    line-height: 1.7;
  }

  .greeting .greeting-sign {
    width: 100%;
    margin: 1.2rem auto;
  }

  .greeting .greeting-sign-roman {
    display: block;
    margin-left: 0;
  }
}
