.input-page{
  background-color: #FFB4AC;
  color: #43403F;
}
main{
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}
/* 見出し */
.title h1{
  margin-left: 40px;
  margin-top: 30px;
  margin-bottom: 10px;
}
.expo{
  display: flex;
  align-items: center;
  gap: 30px;
}
.expo img{
  width: 120px;
}

@media screen and (max-width: 768px){
  .title{
    position: relative; /* 飛行機基準 */
  }
  .title h1{
    font-size: 1.6rem;
    margin: 25px 0 30px;
    text-align: left;    /* 中央ならcenter */
  }
  .expo{
    display: block;
    margin-bottom: 35px;
  }
  .expo img{
    position: absolute;
    width: 60px;
    top: 5px;
    right: 30%;
  }
}


/* sub-title */
.sub-title{
  display: flex;
  gap: 10px;
  min-width: 130px;
}
.name .sub-title{
  min-width: 80px;
}
.en{
  opacity: 0.7;
  font-size: 0.65rem;
  margin-top: 5px;
}

/* 黄色の枠 */
.name,.add,.type,.text{
  background: #FFEBD3;
  padding: 10px;
  border-radius: 20px;
}
.name,.add,.type{
  margin-bottom: 30px;
}
.row{
  display: flex;
  align-items: center;
  gap: 50px;
}
.row input{
  flex: 1;
}

@media screen and (max-width: 768px){
  .row{
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
  .sub-title{
    min-width: auto;
  }
  .name,
  .add,
  .type,
  .text{
    padding: 12px;
    border-radius: 16px;
  }
}


/* 入力エリア */
input, textarea{
  width: 100%;
  padding: 10px;
  border-radius: 10px;

  background: #FFEBD3;
  border: 1px solid #E5C7A8;
  transition: .2s;
}

input:focus,
textarea:focus{
  background: #fff;
  outline: none;
}

/* 内容 */
textarea{
  resize: none;
}


@media screen and (max-width: 768px){
  textarea{
    min-height: 160px;
  }
}



/* 名前 */
.name{
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 400px;
}

/* メール */
.add{
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  max-width: 650px;
}
.mail{
  display: flex;
  align-items: flex-end;   /* 下揃え */
  gap: 20px;
  position: relative;
  padding-right: 120px;
}
.add .row input{
  max-width: 440px;
}

@media screen and (max-width: 768px){
  .mail{
    position: relative;
    padding-right: 0;
  }
  .add .row input{
    max-width: none;
  }
}


/* 猫 */
.cat{
  position: absolute;
  right: -20px;
}


@media screen and (max-width: 768px){    /* SPの時は種類の右下 */
  .type{
    position: relative;
  }

  .cat{
    position: absolute;
    right: 5%;
    top: 240px;
    width: 100px;
    z-index: 1;
  }
}


/* 種類・ラジオボタン */
.radio-wrap{
  display: flex;
  gap: 60px;
}
.radio-wrap label{
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 14px;
}
.radio-wrap span{
  font-size: 0.8rem;
  margin-top: 2px;
}
.radio-wrap input{
  margin-top: 13px;
}
.radio-item{
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.label-text{
  display: flex;
  flex-direction: column;
}
.label-text .en{
  font-size: 11px;
  opacity: 0.7;
}

@media screen and (max-width: 768px){
  .type{
    text-align: left;
  }
  .radio-wrap{
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    margin-left: 30px;
  }
  .radio-wrap label{
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
  }
  .label-text{
    flex-direction: row;
    gap: 6px;
    align-items: baseline;
  }
  .label-text .en{
    font-size: 0.7rem;
    opacity: 0.6;
  }
  .radio-wrap input{
    margin-top: 8px;
  }
}


/* プライバシーポリシー */
.alert{
  color: #475a77;
  font-size: 0.65rem;
  margin-top: 5px;
  text-align: right;
}
@media screen and (max-width: 768px){
  .alert{
    text-align: left;
    font-size: 0.55rem;
  }
}


/* 送信ボタンの位置 */
.btn{
  margin: 50px 0 40px;
  display: flex;
  justify-content: center;
}

/* ボタン本体 */
.btn button{
  appearance: none;             /* OS 標準のボタン見た目を消す */
  -webkit-appearance: none;     /* Safari / Chrome 用（黒枠の元） */

  background: #6f9c8b;          /* 通常時の背景色 */
  color: #fff;                  /* 文字色を白に */
  border: none;                 /* デフォルトの枠線を消す */
  border-radius: 12px;          /* 角丸 */
  padding: 14px 64px;           /* サイズ */
  cursor: pointer;              /* 押せますよカーソル */

  display: flex;                /* 日本語＋英語を並べる */
  align-items: center;          /* 縦方向中央揃え */
  justify-content: center;      /* 横方向中央揃え */
  gap: 12px;                    /* 日本語と英語の間隔 */

  font-family: "Zen Kurenaido", sans-serif; /* フォント統一 */
  font-weight: 600;
  letter-spacing: 0.05em;       /* 文字を少し広げてボタン感 */

  transition:
    background .2s ease,       /* 色がなめらかに変わる */
    box-shadow .2s ease,       /* 影の変化をなめらかに */
    transform .1s ease;        /* 押した時の動きをキビキビ */

  box-shadow: 0 6px 0 #4f7f6f;  /* 下に段差＝立体的ボタン */

  position: relative;     /* 疑似要素をボタン基準で配置するため */
  overflow: hidden;       /* 光がはみ出さないようにする */
}

/* ボタン内テキスト */
.btn button span{
  margin: 0;                    /* p タグの余白を消す */
  line-height: 1;               /* 行の高さを詰める */
}

/* 日本語 */
.btn button span:first-child{
  font-size: 1rem;
}

/* 英語 */
.btn button span:last-child{
  font-size: 0.7rem;
  opacity: 0.8;
}

/* hover */
.btn button:hover{
  background: #5f8c7c;          /* 少し濃くする */
  box-shadow:
    0 6px 0 #4f7f6f,
    0 0 24px rgba(255,255,255,0.2);
}

/* active（押した時） */
.btn button:active{
  transform: translateY(4px);   /* 下に沈んで「押した感」 */
  box-shadow: 0 2px 0 #4f7f6f;  /* 影を浅くして接地感 */
  background: #5a8576;          /* さらに少し濃く */
}

/* Firefoxの黒いフォーカス線対策 */
.btn button::-moz-focusring{
  outline: none;                /* Firefox 特有の点線を消す */
}

/* ボタン光らせる */
.btn button::after{
  content: "";            /* 疑似要素を表示させるため必須 */
  position: absolute;     /* ボタンの中に重ねる */
  top: -20%;
  left: -150%;            /* 最初はボタンの左外に隠す */
  width: 150%;            /* 少し大きめにして斜め光を作る */
  height: 140%;

  /* 白い光のグラデーション */
  background: linear-gradient(
    120deg,               /* 斜め方向 */
   transparent 40%,               /* 最初は何も見えない */
    rgba(255,255,255,0.25),        /* うっすら光 */
    rgba(255,255,255,0.15),
    transparent 60%
  );

  transition: left 2.2s ease; /* 動かす数字大きくするともっとゆっくり */
  pointer-events: none;            /* マウス操作の邪魔をしない */
}
/* ホバーした瞬間に光が走る */
.btn button:hover::after{
  left: 120%;             /* 右側へ通過させる */
}

/* タップした時 */
@media (hover: none){
  .btn button:active{
    animation: tapGlow 0.4s ease;
  }
}

@keyframes tapGlow{
  0%{
    box-shadow:
      0 2px 0 #4f7f6f,
      0 0 0 rgba(255,255,255,0);
  }
  100%{
    box-shadow:
      0 2px 0 #4f7f6f,
      0 0 22px rgba(255,255,255,0.35);
  }
}


/* footer */
footer{
  text-align: center;
  margin-bottom: 20px;
}



/* ----- 確認画面 ----- */
.confirm-page{
  background-color: #FFE1D6;
}
.text-check{
  font-size: 1.3rem;
  width: 750px;
  line-height: 2;
  margin: 60px auto;
}
.conf-text{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}
.text-box{
  display: flex;
  flex-direction: column; /* ←縦並びに戻す */
  margin-top: 50px;
  margin-left: 90px;
  font-size: 1.8rem;
}
.confirm-img{
  width: 200px;
  transform: translateY(-15px);
  opacity: 0.9;
}
.confirm-item{
  display: flex;
  margin-top: 40px;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px dashed #ccc;
}
.label{
  width: 80px;
  font-weight: bold;
}
.value{
  flex: 1;
  white-space: pre-wrap;
}
@media screen and (max-width: 768px){
  .conf-text{
    flex-direction: column;
    align-items: center;
    gap: 0px;
  }
  .text-box{
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    text-align: left;
  }
  .confirm-img{
    order: -1;
    width: 80px;
    align-self: flex-end; /* ←これで右寄せ */
  }
  .confirm-item{
    display: flex;
    align-items: flex-start; /* ← 上揃えにするの大事 */
    gap: 10px;
  }

  .label{
    width: 60px;        /* ← 少し広げてもOK */
    flex-shrink: 0;     /* ← これ超重要！！ */
  }

  .value{
    flex: 1;
    word-break: break-word; /* ← 長文折り返し */
  }
}

/* エアメール便せん風枠 */
.confirm-page form {
  position: relative;
  margin-top: 80px;
  margin-bottom: 60px;
  padding: 60px;
  border-radius: 16px;
  background: 
    repeating-linear-gradient(
      45deg,
      #b84a4a 0 30px,
      #F2EFE6 30px 40px,
      #4a6f8f 40px 70px,
      #F2EFE6 70px 80px
    );
  opacity: 0.95;
  filter: saturate(80%);
}
.confirm-page form * {
  position: relative;
  z-index: 1;
}
.confirm-page form::after{
  content: "";
  position: absolute;
  inset: 12px; /* ← 枠の太さ */
  background: #F2EFE6;
  border-radius: 12px;
  z-index: 0;
}
@media screen and (max-width: 768px){
  .confirm-page form{
    padding: 40px 30px; /* 上下40 左右30 */
  }
}
/* 確認画面ボタン */
.confirm-btn{
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  width: fit-content;
}
.confirm-page .btn button{
  background: #6f9c8b;
  color: #f2efe6;
  border-radius: 15px;
  box-shadow: none;
  border: 2px solid #5a7a68;

  transform: rotate(-3deg); /* 少し傾ける */
  opacity: 0.9;
  mix-blend-mode: multiply;
  letter-spacing: 0.15em;
  filter: contrast(110%) saturate(85%);
  box-shadow: inset 0 0 8px rgba(0,0,0,0.15);
}
button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 #e5bcbc;
}
.confirm-page .btn button:active{
  transform: translateY(4px) scale(0.97);
  box-shadow: 0 2px 0 #e5bcbc;
  background: #5a7a68;
}
/* ボタン横スタンプ */
.confirm-page .stamp{
  position: absolute;
  width: 80px;
  opacity: 0;
  transform: scale(0.8);
  transition: 0.4s;
  pointer-events: none;

  mix-blend-mode: normal;
  filter: contrast(140%) saturate(130%);
}
.stamp.hand{
  top: -5px;
  left: -70px;
  transform: rotate(20deg) scale(0.8);
  width: 120px;
}
.stamp.immigra{
  bottom: 5px;
  right: -50px;
  transform: rotate(2deg) scale(0.8);
  width: 130px;
  filter: contrast(120%) saturate(110%);
}
.stamp.paw{
  top: 20px;
  right: -40px;
  transform: rotate(-8deg) scale(1);
  width: 40px;
}

/* ① イミグレ */
.confirm-page .btn:hover .immigra{
  opacity: 1;
  transform: rotate(2deg) scale(1);
  transition-delay: 0s;
}
/* ② 肉球 */
.confirm-page .btn:hover .paw{
  opacity: 0.85;
  transform: rotate(-5deg) scale(1);
  transition-delay: 0.4s;
}
/* ③ 指さし */
.confirm-page .btn:hover .hand{
  opacity: 1.5;
  transform: rotate(20deg) scale(1);
  transition-delay: 0.7s;
}
@media screen and (max-width: 768px){
  .stamp.hand{
    opacity: 1;
    width: 75px;
    left: -15px;
  }
  .stamp.immigra{
    opacity: 1;
    width: 110px;
    right: -20px;
  }
  .stamp.paw{
    opacity: 1;
    width: 30px;
    right: -20px;
    top: 30px;
  }
}


/* ----- 送信完了画面 ----- */
.complete-page{
  background-color: #FFF1E6;
}
.comp-img{
  display: flex;
  max-width: 800px;
  align-items: center;
  justify-content: center;
  margin: 30px auto 0;
  gap: 30px;

  width: 100%;
  height: auto;
}
.comp-img1{
  max-width: 550px;
}
.comp-img2{
  max-width: 230px;
  margin-top: 100px;
}
@media screen and (max-width: 768px){
  .comp-img{
    max-width: 500px;
    gap: 3px;
  }
  .comp-img1{
    max-width: 200px;
  }
  .comp-img2{
    max-width: 130px;
  }
  .complete-page .comp-text{
    font-size: 16px;
  }
}
.comp-text{
  margin-top: 50px;
  text-align: center;
  font-size: 1.8rem;
}
.home-link{
  display: inline-block;
  margin-top: 80px;
  font-size: 1.2rem;
  color: #43403F;
  text-decoration: none;
  position: relative;
  transition: 0.3s;
  margin-bottom: 50px;
}
.home-link .plane{
  display: inline-block;
  margin-left: 8px;
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.back{
  text-align: center;
}
.home-link:hover .plane{
  transform: translateX(18px);
  opacity: 0.7;
}