@charset "UTF-8";

#sub.company .subMain {
    background-image: url(../images/main-company.jpg);
}

#sub.company h2 {
    font-size: 1.8em;
}

/* companyProfile
--------------------------------------------- */

.companyProfile dl {
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid #ccc;
  max-width: 1000px;
  margin: 2rem auto;
  border-top: none;
}

.companyProfile dt,
.companyProfile dd {
  border-bottom: 1px solid #ccc;
  padding: 1.6rem;
}

.companyProfile dt {
  width: 20%;
  font-weight: bold;
}

.companyProfile dd {
  width: 80%;
  line-height: 1.6;
}

.companyProfile dl dt:first-of-type,
.companyProfile dl dd:first-of-type {
  border-top: none;
}
.companyProfile dl dt:last-of-type,
.companyProfile dl dd:last-of-type {
  border-bottom: none;
}

@media (max-width: 768px) {
  .companyProfile dt,
  .companyProfile dd {
    width: 100%;
    border-bottom: none;
    padding: 1rem;
  }

  .companyProfile dt {
    background: #f8f8f8;
  }

  .companyProfile dd {
    border-bottom: 1px solid #ccc;
  }
  .companyProfile dl dd:last-of-type {
    border-bottom: none;
  }
}

/* パララックスエリア
--------------------------------------------- */
.parallaxArea {
  position: relative;
  width: 100%;
  height: 40vh;
  overflow: hidden;
}

.parallaxBg01 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  background-image: url("../images/company-img01.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 1;
}

.parallaxBg02 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  background-image: url("../images/company-img02.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 1;
}

.parallaxContent {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: center;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 768px) {
  .parallaxArea {
    height: 25vh;
  }

  .parallaxBg {
    background-attachment: scroll;
  }
}


/* history
--------------------------------------------- */
.history .contents{
  max-width: 900px;
}

.timeline {
  --gap: 32px;
  margin: 0;
  padding: 0;
  display: grid;
  row-gap: var(--gap);
  position: relative;
  overflow: hidden; /* ← はみ出しを隠す */
}

.timeline > li {
  display: grid;
  grid-template-columns: 140px 28px 1fr;
  align-items: stretch;
  column-gap: 18px;
}

.timeline .dot {
  position: relative;
  min-height: 24px;
  background:
    radial-gradient(circle 7px at 50% 50%, #004080 99%, transparent 100%)
    no-repeat center/14px 14px;
}

.timeline .dot::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: #004080;
  opacity: 1;
  bottom: -1000px;
}

.timeline > li:first-child .dot::before {
  top: 50%;
}

.timeline > li:last-child .dot::before {
  bottom: 50%;
}

.timeline .time {
  display: inline-flex;
  align-items: baseline;
}

.timeline .era {
  display: inline-block;
  width: 5em;
  text-align: right;
  margin-right: 0.5em;
}

.timeline .monthNum {
  display: inline-block;
  width: 2ch;
  text-align: right;
}

.timeline .monthUnit {
  margin-left: 0.1em;
}


/*
.timeline .time {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  white-space: nowrap;
  line-height: 1.8;
}
*/
.timeline .time .era,
.timeline .time .month  { font-weight: 600; }
.timeline .desc { line-height: 1.8; }

@media (max-width: 768px) {
  .timeline > li {
    grid-template-columns: 130px 24px 1fr;
    column-gap: 12px;
  }
  .timeline .time { justify-content: flex-start; }
}

@media (max-width: 560px) {

  .timeline {
    position: relative;
    --gap: 6px;
  }
  .timeline::before {
    content: "";
    position: absolute;
    left: 9px;
    top: 5px;
    bottom: 0;
    width: 2px;
    background: #004080;
  }

  .timeline > li {
    grid-template-columns: 20px 1fr;
    grid-template-areas:
      "dot time"
      "dot desc";
    align-items: start;
    row-gap: var(--gap);
    margin-bottom: 1.4rem;
  }

  .timeline .time {
    grid-area: time;
    line-height: 1.2;
    gap: 0;
    font-weight: 600;
  }
  .timeline .desc { grid-area: desc; }

  .timeline .dot  {
    grid-area: dot;
    align-self: start;
    width: 20px;
    height: 1.6em;
    position: relative;
    background:
      radial-gradient(circle 7px at 50% 50%, #004080 99%, transparent 100%)
      no-repeat center/14px 14px;
  }

  .timeline .dot::before { display: none; }

  .timeline .era {
    text-align: left;
    width: auto;
  }
  .timeline .monthNum {
    width: 0;
  }
}


/*companyAccess
--------------------------------------------------------------*/

.mapWrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* アスペクト比16:9の場合。4:3なら75%に変更 */
  overflow: hidden;
}

.mapWrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
