@charset "UTF-8";

/*共通*/
:root {
  --text-color-01: #000000;
  --text-color-02: #333333;
  --text-color-02: #444444;
  --primary-color-01: #ffff66;
  --primary-color-02: #eecce8;
  --primary-color-03: #ff5153;
  --bg-color-01: #f3eec9;
}
p {
  font-size: 1.1rem;
}
#about-page h2 {
  margin: 1vw 0 0 ;

  & img {
    width: auto;
    height: 2.4rem;
  }
}

/*当世館ってどんな会社？*/
.about-intro {
  position: relative;
  background-color: var(--bg-color-01);
  overflow: hidden;
}
/* 背景の雲 */
.about-intro::before {
  content: "";
  position: absolute;
  top: 10vw;
  right: -8vw;
  width: 30vw;
}
.intro-wrap {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  z-index: 1;
}
.abo-title {
  width: 76%;
  margin: 0 auto 1vw;
}
.intro-figure {
    width: 70%;
    margin: -8vh auto 0;
}
.bubble {
  box-sizing: border-box;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;

  & h3 {
    margin: 0 0 0.1em;
    font-size: 1.05rem;
  }
  & p {
    margin: 0;
    font-size: 0.85rem;
        line-height: 1.6;
        text-align: justify;
        letter-spacing: normal;
  }
}
.bubble01 {
  background-image: url(../img/about/hukidashi-01.svg);
}
.bubble02 {
  background-image: url(../img/about/hukidashi-02.svg);
}
.bubble03 {
  background-image: url(../img/about/hukidashi-03.svg);
}
.bubble04 {
  background-image: url(../img/about/hukidashi-04.svg);
}
.bubble05 {
  background-image: url(../img/about/hukidashi-05.svg);
}
.bubble06 {
  background-image: url(../img/about/hukidashi-04.svg);
}
.bubble07 {
  background-image: url(../img/about/hukidashi-05.svg);
}
.bubble08 {
  background-image: url(../img/about/hukidashi-04.svg);
}
/* 波型の白い縁 */
.about-intro::after {
  content: "";
  display: block;
  height: 3vw;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' preserveAspectRatio='none'%3E%3Cpath d='M0 10 Q12.5 0 25 10 T50 10 T75 10 T100 10 V20 H0 Z' fill='%23ffffff'/%3E%3C/svg%3E");
  background-size: 12vw 100%;
  background-repeat: repeat-x;
  background-position: bottom center;
}
.intro-more {
  text-align: center;
  position: relative;
  z-index: 1;

  & p {
    font-weight: 700;
    margin: 0 0 3vw;
  }
}
.more-btn {
  display: inline-block;
  padding: 0 2.5em 0.6em;

  & img {
    width: 160px;
    display: block;
  }
  /* 通常時はbtn-more、開いたらbtn-more-upを表示 */
  & .btn-close {
    display: none;
  }
  &.open .btn-open {
    display: none;
  }
  &.open .btn-close {
    display: block;
  }
}

/* moreボタンで開閉するエリア */
.more-box {
  display: none;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.more-box.open {
  display: grid;
  animation: moreFade 0.5s ease;
}
@keyframes moreFade {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/*ふわふわ雲の装飾*/
.fwfw01 {
  animation: floating-y1 2.3s ease-in-out infinite alternate-reverse;
}
@keyframes floating-y1 {
  0% {
    transform: translateY(8%);
  }
  100% {
    transform: translateY(-8%);
  }
}
.fwfw02 {
  animation: floating-y2 1.8s ease-in-out infinite alternate-reverse;
}
@keyframes floating-y2 {
  0% {
    transform: translateY(-10%);
  }
  100% {
    transform: translateY(10%);
  }
}
.fwfw03 {
  animation: floating-y3 2s ease-in-out infinite alternate-reverse;
}
@keyframes floating-y3 {
  0% {
    transform: translateY(-10%);
  }
  100% {
    transform: translateY(10%);
  }
}
.kumo {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}
/* イントロ（当世館ってどんな会社？）内 */
.kumo01 {
  width: 22vw;
  left: -7vw;
  top: 36%;
}
.kumo02 {
  width: 18vw;
  right: -5vw;
  top: 10%;
}
.kumo03 {
  width: 10vw;
  right: 1vw;
  top: 26%;
}
.kumo04 {
  width: 14vw;
  right: -3vw;
  bottom: 6%;
}
.kumo05 {
  width: 8vw;
  left: 4vw;
  top: 6%;
}
/* 理念セクション内 */
.kumo06 {
  width: 14vw;
    left: 12vw;
    top: 66%;
  }
.kumo07 {
  width: 18vw;
  right: -5vw;
  top: 30%;
}
.kumo08 {
  width: 18vw;
  right: 8vw;
  top: 58%;
}

/*社長からのご挨拶*/
.president-message {
  background-color: #fff;
  padding: 4vw 0 5vw;

  & .zcontainer {
    max-width: 1100px;
  }
}
.president-wrap {
  display: flex;
  gap: 4vw;
  align-items: flex-start;
}
.president-figure {
  margin: 0;
  width: 42%;
  flex-shrink: 0;
}
.president-text {
  & p {
    margin: 0 0 1.6em;
    text-align: justify;
    line-height: 1.9;
  }
}
.president-name {
  font-weight: 500;

  & span {
    font-size: 1.5rem;
    font-weight: 700;
  }
}

/*会社概要＋理念（ベージュ背景）*/
.about-company-area {
  background-color: var(--bg-color-01);
  position: relative;
  padding-top: 7vw;

  /* 上部の波型（白い波がベージュに食い込む） */
  &::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3vw;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' preserveAspectRatio='none'%3E%3Cpath d='M0 10 Q12.5 0 25 10 T50 10 T75 10 T100 10 V0 H0 Z' fill='%23ffffff'/%3E%3C/svg%3E");
    background-size: 12vw 100%;
    background-repeat: repeat-x;
    background-position: top center;
  }
}

/*会社概要*/
.company-inner {
  max-width: 1000px;
  display: grid;
  grid-template-columns: 30% 1fr;
  align-items: start;
}
.company-table {
  position: relative;
  font-size: 18px;
}
.company-suwaro {
  position: absolute;
  top: -2.5vw;
  right: 0;
  width: 70px;
}
.company-table dl {
  margin: 0;
}
.company-table .row {
  display: grid;
  grid-template-columns: 100px 1fr;
  padding: 1.3em 0;
  border-bottom: 1px dashed #c9bc85;

  & dt {
    font-weight: 700;
  }
  & dd {
    margin: 0;
    line-height: 1.9;
  }
  & a {
    font-weight: 700;

    &::after {
      content: "＞";
      margin-left: 0.8em;
      font-size: 0.9em;
    }
  }
}
.label2 {
  font-weight: 700;
  margin: 0 1em 0 3em;
}
/* 電話/FAX・創立/設立の2項目行（PCは従来どおり1行で横並び） */
.company-table .row-2col {
  display: flex;
  align-items: baseline;

  & dt:first-of-type {
    width: 100px;
    flex-shrink: 0;
  }
  & dd + dt {
    margin-left: 3em;
    margin-right: 1em;
  }
}

/*当世館の理念*/
.about-philosophy {
  position: relative;
  padding-top: 7vw;

  /* 雲より前面にコンテンツを表示 */
  & .zcontainer {
    position: relative;
    z-index: 1;
  }
}
.bg-toseikan {
  position: absolute;
  left: -1.5vw;
  top: 0;
  width: 17vw;
}
.philosophy-box {
  box-sizing: border-box;
  background: url(../img/about/abo-item01.svg) no-repeat center;
  background-size: 100% 100%;
  max-width: 520px;
  margin: 0 auto 3vw;
  padding: 3vw 2vw;
  text-align: center;

  & p {
    margin: 0 0 0.8em;
    font-weight: 600;
    line-height: 1.6;
    font-size: 1.5rem;
  }
  & .box-label {
    margin-bottom: 0.1em;

    & img {
      width: auto;
      height: 1rem;
    }
  }
  & .box-main {
    font-size: 1.4rem;
    font-weight: 700;
  }
}
.philosophy-text {
  text-align: center;
  padding: 3vw 0 10vw;

  & p {
    margin: 0 0 2em;
    line-height: 1.8;
    font-weight: 500;
    font-size: 20px;
  }
}
.philosophy-bottom {
  margin: 0;
  position: relative;
  padding-bottom: 10vh;

  /* ピンクの帯：画像の高さの半分の位置から下に敷く */
  &::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: calc(50% - 5vh);
    bottom: 0;
    background-color: #e6d7e3;
  }
  & img {
    position: relative;
    display: block;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
  }
}

/*SPサイズ*/
@media screen and (max-width: 767px) {
  #about-page h2 {
    margin: 5vw 0 ;

    & img {
      height: 2rem;
    }
  }

  /*当世館ってどんな会社？*/
  .about-intro {
    padding-top: 25vw;
  }
  .about-intro::before {
    top: 30vw;
    width: 50vw;
  }
  .abo-title {
    width: 92%;
    margin-bottom: 3vw;
  }
  .intro-figure {
    width: 100%;
    margin-bottom: 4vw;
  }
  /* SP用の吹き出し画像に差し替え */
  .bubble {
    /*margin: 4vw auto;*/
    padding: 9% 10%;
  }
  .bubble01,
  .bubble03,
  .bubble05,
  .bubble07 {
    background-image: url(../img/about/sp_hukidashi-01.svg);
  }
  .bubble02,
  .bubble04,
  .bubble06,
  .bubble08 {
    background-image: url(../img/about/sp_hukidashi-02.svg);
  }
  .about-intro::after {
    height: 5vw;
    background-size: 25vw 100%;
  }
  .intro-more {
    padding: 4vw 0 6vw;
  }
  .more-btn img {
    width: 34vw;
  }
  .more-box.open {
    grid-template-columns: 1fr;
    padding-bottom: 8vw;
  }
  /* 雲（SPサイズ）*/
  .kumo01 {
    width: 42vw;
    left: -14vw;
  }
  .kumo02 {
    width: 32vw;
    right: -10vw;
  }
  .kumo03 {
    width: 18vw;
  }
  .kumo04 {
    width: 26vw;
  }
  .kumo05 {
    width: 15vw;
  }
  .kumo06 {
    width: 26vw;
  }
  .kumo07 {
    width: 32vw;
  }
  .kumo08 {
    width: 16vw;
  }

  /*社長からのご挨拶*/
  .president-message {
    padding: 10vw 0;
  }
  .president-wrap {
    flex-direction: column;
    gap: 5vw;
  }
  .president-figure {
    width: 90%;
    margin: 0 auto;
  }

  /*会社概要*/
  .about-company-area {
    padding-top: 14vw;
  }
  .about-company-area::before {
    height: 5vw;
    background-size: 25vw 100%;
  }
    .company-table .row {
    grid-template-columns: 1fr;
    gap: 0.4em;
    padding: 1em 0;

    & dd {
      line-height: 1.8;
    }
  }
  /* 電話/FAX・創立/設立を左右2列で高さをそろえる（SPのみ） */
  .company-table .row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    grid-auto-flow: column;
    gap: 0.4em 0.1em;

    & dt:first-of-type {
      width: auto;
    }
    & dd + dt {
      margin: 0;
    }
  }
  .company-table .row {
    grid-template-columns: auto;
  }
  .company-inner {
    display: block;
    padding-top: 13vw;
  }
  .company-suwaro {
    top: -10vw;
    width: 15vw;
  }

  .label2 {
    margin: 0 1em 0 2em;
  }

  /*当世館の理念*/
  .about-philosophy {
    padding-top: 12vw;
  }
  .bg-toseikan {
    left: -2vw;
    top: 8vw;
    width: 40vw;
  }
  .philosophy-box {
    background-image: url(../img/about/sp_abo-item01.svg);
    background-size: 100%;
    margin-bottom: 6vw;
    padding: 10vw 0;

    & p {
      font-size: 1.25rem;
    line-height: 1.5;
    }
    & .box-label {
      margin-bottom: 0;
    }

    & .box-label img {
       height: 0.9rem;
    }
    & .box-main {
      font-size: 1.3rem;
    }
  }
  .philosophy-text {
    padding: 5vw 0 17vw;

    & p {
      font-size: 1rem;
         line-height: 1.6;
         font-weight: 500;
         font-size: 18px;
    }
  }
  .about-philosophy {
    & .zcontainer {
        margin-top: 10vw;
     }
  }
  .bubble.bubble02 {
    padding-top: 14vw;
  }
  .bubble.bubble03 {
    padding: 12% 10%;
}
  .bubble.bubble04 {
    padding-top: 13vw;
  }
.bubble.bubble05 {
            padding: 9% 8% 5%;
        margin: 0 auto;
        width: 350px;
        height: 167px;
  }
  .bubble.bubble06 {
    margin: 0 auto;
        padding: 12% 8% 5%;
        width: 350px;
        height: 167px;
  }
  .bubble.bubble07 {
           padding: 9% 8% 5%;
        margin: 0 auto;
        width: 350px;
        height: 167px;
  }

.bubble.bubble08 {
      padding: 13% 8% 5%;
        margin: 0 auto;
        width: 350px;
        height: 167px;
  }
.president-text {
    & p {
        margin: 0 2vw 1.6em;
        text-align: justify;
        line-height: 1.6;
        font-size: 1rem;
    }
  } 
.president-name {
    & span {
        font-size: 1.2rem;
        font-weight: 700;
    }
  }
  .company-table {
    font-size: 1rem;
  } 
}

/*PCサイズ*/
@media screen and (min-width: 768px) {
  .about-intro {
    padding-top: 7vw;
  }
  .intro-wrap {
    padding-bottom: 2vw;
  }
  /* 吹き出しをキャラクターの周囲に配置 */
  .bubble {
    position: absolute;
    width: 36%;
    padding: 2.6% 3% 4%;
  }
  .bubble01 {
    top: 35%;
    left: -8%;
    width: 34%;
    padding: 3% 6% 3.4%;
  }
  .bubble02 {
    top: 48%;
    right: -9%;
  }
  .bubble03 {
    top: 69%;
    left: -8%;
    width: 34%;
    padding: 4% 6% 3.4%;
  }
  .bubble04 {
    top: 80%;
    right: -6%;
    width: 33%;
    padding: 4% 3% 2%;
  }
  /* more-box内の吹き出しは絶対配置を解除して2列グリッドに */
  .more-box.open {
    grid-template-columns: 1fr 1fr;
    gap: 3vw 6vw;
    padding: 3vw 0 4vw;
  }
  .more-box .bubble {
    position: static;
    width: auto;
    padding: 3em 2.8em;
  }
  .bubble.bubble05 {
    width: 83%;
    padding: 12% 11% 8.4%;
    margin: 0 0% 0 17%;
}
.bubble.bubble06 {
        width: 83%;
        padding: 14% 9% 11%;
}
.bubble.bubble08 {
        width: 83%;
        padding: 18% 9% 11%;
}

.bubble.bubble07 {
         width: 83%;
        padding: 16% 11% 13%;
      margin: 0 0% 0 17%;
    }
  /* 右列は少し下げてリズムをつける */
  .bubble06,
  .bubble08 {
    margin-top: 0;
  }
}

/* タブレット */
@media screen and (min-width: 767px) and (max-width: 1280px) {
  .bubble {
    & h3 {
      font-size: 1.4vw;
    }
    & p {
      font-size: 1.1vw;
    }
  }
  .company-table .row {
    grid-template-columns: 120px 1fr;
  }
}
