@import url("_reset.css");
@import url("_vars.css");

/* ----- 基本設定 ------------ */
html {
  width: 100%;
  font-size: 13px;
  scroll-behavior: smooth;
  background-color: #c2ec8b;
}

body {
  font-family: var(--base-font);
  line-height: 1.5;
  color: #231815;
  width: 100%;
  font-feature-settings: "palt";
  word-wrap: break-word;
}

a {
  text-decoration: underline;
  outline: none;
  color: inherit;
}

a:hover {
  text-decoration: none;
}

img {
  vertical-align: bottom;
  max-width: 100%;
  image-rendering: -webkit-optimize-contrast;
}

p:not(:last-child) {
  margin-bottom: 0.6em;
}

main {
  max-width: 480px;
  margin: 0 auto;
  background-color: var(--bg-color);
  padding-bottom: 50px;
  overflow: clip;
}

/* ---------セクションフェードイン --------- */
.fadein {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fadein.show {
  opacity: 1;
  transform: translateY(0);
}

/* -----トップセクション ---------- */
section#top{
  position: relative;
  padding-top: 30px;
}

/* ---------アーチテキスト--------- */
.arc-text {
  max-width: 250px;
  margin: 0 auto 20px auto;
}

.arc-text img {
  display: block;
  opacity: 0;
  transform: translateY(20px); /* 少し下から浮かぶ感じに */
  transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

.arc-text img.active {
  opacity: 1;
  transform: translateY(0);
}

/*--------- メインタイトル--------- */
.main_ttl {
  max-width: 300px;
  margin: 0 auto;
}

.main_ttl img {
  width: 100%;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease-in-out;
  will-change: transform, opacity;
}

.main_ttl img.active {
  opacity: 1;
  animation: bounceIn 0.8s ease-out forwards;
}

@keyframes bounceIn {
  0%   { transform: scale(0.9); }
  60%  { transform: scale(1.1); }
  80%  { transform: scale(0.95); }
  100% { transform: scale(1); }
}
@media (max-width: 480px) {
  .main_ttl {
      max-width: 282px;
  }

}

/* ---------サイドタイトル--------- */
.side_ttl_left,
.side_ttl_right {
  position: absolute;
  top: 217px;
  width:55px;
  overflow: hidden;
}

.side_ttl_left { left: 18px; }
.side_ttl_right { right: 18px; }

.side_ttl_left img,
.side_ttl_right img {
  display: block;
  opacity: 0;
  transform: scale(0); /* 小さく開始 */
  transition: transform 0.8s ease-out, opacity 0.8s ease-out;
  will-change: transform, opacity;
}
@media (max-width: 480px) {
  .side_ttl_left, .side_ttl_right {
      position: absolute;
      top: 217px;
      width: 49px;
      overflow: hidden;
  }
}
.side_ttl_left img.active,
.side_ttl_right img.active {
  opacity: 1;
  transform: scale(1); /* 元サイズに戻す */
}

/* ---------トップキャラクター ---------*/
.top_character_wrapper {
    padding-top: 27px;
}
.top_character {
  position: relative;
  height: 460px;
}

.top-rin,
.top-corin {
  position: absolute;
  opacity: 0;
  transition: transform 0.7s ease-in-out, opacity 0.7s ease-in-out;
  will-change: transform, opacity;
}

@media (max-width: 480px) {
  .top_character_wrapper {
    height:auto;
    margin-top: 50px;
  }
  .top_character {
    height: 507px;
    position: relative;
    margin-top: 20px;
  }

  .top_character {
    height: 363px;
  }

}
/* ---------左リン初期位置 ---------*/
.top-rin {
 width: 287px;
    top: -5px;
    left: 80px;
  transform: translateX(-200px) rotateY(0deg);
}

.top-rin.active {
  transform: translateX(0) rotateY(360deg);
  opacity: 1;
}
@media (max-width: 480px) {
  .top-rin {
    width: 229px;
    left: 70px;
  }
}
/* ---------右コリン初期位置 ---------*/
.top-corin {
       width: 126px;
    bottom: -8px;
    right: 92px;
  transform: translateX(200px) rotateY(0deg);
}

.top-corin.active {
  transform: translateX(0) rotateY(360deg);
  opacity: 1;
}
@media(max-width:480px){
  .top-corin {
    width: 100px;
    bottom: -15px;
    right: 100px;
}
}



/* ---------トップテキスト--------- */
.top_tx02 {
  font-size: 20px;
    line-height: 1.7;
  text-align: center;
  color: #fff;
  font-family: "Noto Serif JP", serif;
  font-weight: bold;
  padding-top: 30px;
}
@media(max-width:480px){
  .top_tx02 {
      font-size: 18px;
  }
}
/****************** 紹介 ***********************/
/* ------- Profile用 --------- */
.profile {
  padding: 0 5%;
  position: relative;
}

.profile .en {
  position: absolute;
  right: 5%;
  width: 4%;
  top: 15%;
}

.profile .inner {
  background-color: #fff;
  border-radius: 20px;
  padding: 0 15px 20px;
  position: relative;
}

.profile .person .text li {
  font-weight: bold;
  font-size: 15px;
  border-bottom: 1px solid #000;
  line-height: 1.2;
  padding-bottom: .25em;
  margin-bottom: .25em;
}
@media (min-width: 481px) {
  .profile .person .text li {
    font-size: 18px;
  }
}
 .balloon {
    position: absolute;
    padding: 0 ;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    width: 36%;
    top: 4%;
    left: -2%;   
   
  }
 /* @media (min-width: 481px) {
   .balloon {
      font-size: 10px;
      width: 31%;
      padding: 0px 13px 5px 11px;
   }    
} */

.profile .description {
 line-height: 1.7rem;
    font-size: 1.2rem;
}

.profile .description em {
  color: #E60012;
  font-size: 110%;
  font-weight: bold;
  font-family: var(--serif-font);
}

p.profile_tx01{
 width: 59%;
}
.description p span{
  font-size: 117%;
  color:#e60012;
  font-family: "Noto Serif JP", serif;
  font-weight: bold;
}

.description p:not(:last-child) {
margin-bottom: 2em;
letter-spacing: 1px;
}
@media (max-width: 481px) {
  .profile .description {
    font-size: 1.1rem;
  line-height: 1.5rem;
  }
  .description p:not(:last-child) {
    margin-bottom: 1.1em;
    letter-spacing: 1px;
  }
}



/* ========== 犬山リン専用 ========== */
.profile.rin {
  margin-top:35%;
}

.profile.rin.animation .en img {
  opacity: 0;
  transform: translateY(30px);
}

.profile.rin.animation .headline .name {
  opacity: 0;
  transform: translateY(10px);
}

.profile.rin.animation .person .image .character {
  opacity: 0;
}
.profile.rin.animation .person .image .sign {
  opacity: 0;
  transform: translateY(10px);
}
.profile.rin.animation .person .image .dog {
  opacity: 0;
  transform: translateX(80px);
}

.profile.rin.active .en img {
  opacity: 1;
  transform: translateY(0);
  transition: all .7s .1s;
}
.profile.rin.active .headline .name {
  opacity: 1;
  transform: translateY(0);
  transition: all .5s .1s;
}

.profile.rin.active .person .image .character {
  opacity: 1;
  transition: opacity .5s .5s;
}
.profile.rin.active .person .image .character img {
  animation: rotate .6s .4s linear;
}
@media(max-width:480px){
  .profile.rin {
      margin-top: 43%;
  }
}
/* -----------アイデアアイコン（最後にピコン！）--------------- */
.profile.rin .person .image .idea {
  opacity: 0;
  transform: scale(0.8);
}

.profile.rin.active .person .image .idea {
  animation: pikonFlash 0.8s ease-out 2s forwards; /* 2秒後に発火 */
  position: absolute;
  top: -3px;
  right: -30px;
  width: 31px;
}

@keyframes pikonFlash {
  0%   { opacity: 0; transform: scale(0.8); filter: brightness(1); }
  40%  { opacity: 1; transform: scale(1.2); filter: brightness(2); } /* ピコン！ */
  60%  { transform: scale(1); filter: brightness(1.4); }
  100% { opacity: 1; transform: scale(1); filter: brightness(1); }   /* 常灯 */
}

.profile.rin .person .image .character {
     width: 58%;
    margin-left: 90px;
  transform: translateX(-10%);
}
.profile.rin .person .image .dog {
    position: absolute;
    top: 35%;
    left: 12%;
    width: 41%;
    z-index: 3;
}
.description{
  position: relative;
}
.profile.rin .description .photo.cheez01 {
  position: absolute;
   right: 8px;
    top: 44%;
    width: 18%;
}
.profile.rin.active .person .image .sign {
  opacity: 1;
  transform: translateY(0);
  transition: all .5s .3s;
  margin: 5% 0 0 12%;
}
.profile.rin.active .person .image .dog {
  opacity: 1;
  transform: translateX(0);
  transition: transform 1.3s 1s linear, opacity .4s 1s;
}
.profile.rin.active .person .image .dog img {
  animation: tokotoko .6s linear 4;
}

.profile.rin .en {
  transform: translate(105%, -50%);
}
.profile.rin .headline {
  position: absolute;
 top: -3px;
    width: 56%;
  transform: translate(-10%, -68%);
}
.profile.rin .headline .catch {
  width: 89%;
  display: block;
}
.profile.rin .headline .rin_en {
  position: absolute;
  top: 28px;
  right: -14%;
  width: 20%;
  display: block;
}
.profile.rin .headline .name {
  width: 82%;
  display: block;
  margin-left: auto;
}

.profile.rin .person {
  position: relative;
  padding-top: 16%;
  margin-bottom: 1em;
}
.profile.rin .person .text {
  width: 59%;
  padding-right: 30px;
}
.profile.rin .person .image {
  width: 44%;
    text-align: right;
    position: absolute;
    bottom: -136px;
    right: 0;
}
.cheez_w{
      width: 53%;
}
.profile.rin .description .photo.cheez02 {
  position: absolute;
right: 78px;
    bottom: 35%;
    width: 23%;
}
.profile.rin .description .photo.cheez03 {
 position: absolute;
right: 12px;
    bottom: 24%;
    width: 18%;
}


.profile.rin .description p {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
  line-height: 1.5em;
}

.profile.rin .description p.active {
  opacity: 1;
  transform: translateY(0);
}

.photo.animation {
  opacity: 0;
  transform: translateY(20px) rotate(10deg);
  transform-origin: right bottom;
  transition: all 0.6s ease;
}

.photo.animation.active {
  opacity: 1;
  transform: translateY(0) rotate(0deg);
}

@media(max-width:480px){
    .profile.rin .headline {
      top: -3px;
    }
    .profile.rin .person .image .character {
        margin-left: 82px;
    }
    .profile.rin .person .image .dog {
        position: absolute;
        top: 35%;
        left: 12%;
        width: 41%;
        z-index: 3;
    }
    .description{
      position: relative;
    }
    .profile.rin .description .photo.cheez01 {
      position: absolute;
      right: 20px;
      top: 41%;
      width: 18%;
    }
    .profile.rin .person .image .dog {
        left: 9%;
    }
    .profile.rin.active .person .image .idea {
        right: -30px;
        width: 26px;
    }
    .profile.rin .description .photo.cheez01 {
        position: absolute;
        right: -5px;
        top: 47%;
        width: 19%;
    }
    .profile.rin .description .photo.cheez02 {
        position: absolute;
        right: 75px;
        bottom: 36%;
        width: 25%;
    }
    .profile.rin .description .photo.cheez03 {
        position: absolute;
        right: 12px;
        bottom: 23%;
        width: 20%;
    }
}

/****************** 家系図 *******************/
.family_tree {
  margin-top: 30%;
  padding: 0 5%;
  position: relative;
} 

.family_tree.animation .headline .title {
  opacity: 0;
  transform: translateY(10px);
}

.family_tree.active .headline .title {
  opacity: 1;
  transform: translateY(0);
  transition: all .7s .1s;
}

.family_tree .inner {
  background-color: #fff;
  padding: 10px;
  position: relative;
  background: repeating-linear-gradient(
    -60deg,       /* 斜め45度 */
    #F4E5A0,      /* 黄色部分 */
    #F4E5A0 7px,
    #fff 7px,
    #fff 14px     /* 14pxごとに色が切り替わる */
  );
}

.family_tree .frame {
  border: 2px dotted #E60012;
  border-top: none;
  padding: 39px 10px 20px 10px;
  position: relative;
}

.family_tree .frame::before,
.family_tree .frame::after {
  content: '';
  position: absolute;
  top: 0;
  width: 15%;
  height: 2px;
  border-top: 2px dotted #E60012;
}

.family_tree .frame::before {
  left: 0;
}

.family_tree .frame::after {
  right: 0;
}

.family_tree .headline {
  position: absolute;
  top: -5px;
  width: 90%;
  left: 49%;
  transform: translate(-50%, -80%);
}

.family_tree .headline .catch {
  width: 100%;
  display: block;
}

.family_tree .headline .title {
  width: 70%;
  display: block;
  margin-inline: auto;
}

.family_tree .headline .title {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.family_tree .headline .title.active {
  opacity: 1;
  transform: translateY(0);
}

.tree_rin{
 position: absolute;
    bottom: 160px;
    left: 190px;
    width: 52px;
}
.tree_corin{
  position: absolute;
     bottom: 61px;
    left: 197px;
    width: 41px;
}


.tree_rin.animation img,
.tree_corin.animation img {
  opacity: 0;
  scale: 0.8;
}

.tree_rin.active img,
.tree_corin.active img {
  opacity: 1;
  scale: 1;
  transition: all .4s .2s cubic-bezier(.43, 1.51, .75, 1.2);
}

@media(max-width: 480px){
  .tree_rin {
   bottom: 145px;
    left: 53%;
    transform: translateX(-50%);
    width: 12.5%;
  }
  .tree_corin {
    bottom: 53px;
    left: 53%;
    transform: translateX(-50%);
    width: 10%;
    }
}
/*オンラインストア*/
.item.store.animation {
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.6s cubic-bezier(.43, 1.51, .75, 1.2);
}

.item.store.animation.active {
  opacity: 1;
  transform: scale(1);
}

/* 内部の各要素を順にフェードイン */
.item.store.animation > * {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.6s cubic-bezier(.43, 1.51, .75, 1.2);
}

.item.store.animation.active > *:nth-child(1) { opacity: 1; transform: scale(1); transition-delay: .2s; }
.item.store.animation.active > *:nth-child(2) { opacity: 1; transform: scale(1); transition-delay: .4s; }
.item.store.animation.active > *:nth-child(3) { opacity: 1; transform: scale(1); transition-delay: .6s; }
.item.store.animation.active > *:nth-child(4) { opacity: 1; transform: scale(1); transition-delay: .8s; }
.item.store.animation.active > *:nth-child(5) { opacity: 1; transform: scale(1); transition-delay: 1s; }



/************************ 会社概要 ************************/
.company{padding: 0 5%;margin: 40px 0;}
.company .inner{background: #fff;padding: 10px;border-radius: 20px;}
.company table{padding: 10px;}
.company .headline {
  font-family: var(--serif-font);
  font-weight: bold;
  text-align: center;
  font-size: 20px;
  position: relative;
  margin-bottom: 15px;
  @media (min-width: 481px) {
    font-size: 24px;
  }

  &::before,
  &::after {
    content: '';
    position: absolute;
    width: 25%;
    top: 50%;
    border-top: 2px dotted #fff;
  }
  &::before {
    left: 0;
  }
&::after {
    right: 0;
  }
}

 .company table {
  border-collapse: collapse;
  width: 100%;
  max-width: 700px;
  font-size: 13px;
  @media (min-width: 481px) {
    font-size: 1.15rem;
  }
}
.company table th,  .company table td {
  border: 2px solid #fff;
  background-color: #fff7d4;
  border-radius: 0 10px 10px 0;
  padding: 1em;
  align-content: center;
}
.company table th {
  background-color: #231815;
  color: #fff;
  font-weight: bold;
  text-align: center;
  border-radius: 10px 0 0 10px;
  width: 20%;
  min-width: 4em;
  position: relative;
}
.company table th::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
  border: 10px solid transparent;
  border-left: 10px solid #231815;
  z-index: 2;
}
 .company table th::after {
  content: '';
  position: absolute;
  top: 50%;
  left: calc(100% + 2px);
  transform: translateY(-50%);
  border: 12px solid transparent;
  border-left: 12px solid #fff;
  z-index: 1;
}

/* -------------------- バナー -------------------- */
#inuyama_bnr .headline {
  text-align: center;
  margin: 0 auto;
  display: block;
}

#inuyama_bnr .headline img {
  display: inline-block;
  max-width: 100%;
  height: auto;
}

.banner{
  padding: 0 5%;
  margin: 40px 0;
}

.banner .inner{
  background: #fff;
  padding: 10px;
  border-radius: 20px;
}
#inuyama_bnr .inner a{
  display: inline-block;
  margin-bottom: 10px;
}

