@charset "UTF-8";

:root {
    /* color */
    --color-main: #023C78;
    --color-sub: #CAAB8C;
    --color-base: #D8E7E8;
    --color-accent: #E55F1C;
    --color-text: #4D4D4D;
    --color-background: #FAF7F4;
    /* padding */
    /* width */
}


/* =========================
🟡contact
===========================*/

.contact__list {
    display: flex;
    flex-direction: column; /* 縦並び */
    align-items: center;
    gap: 4rem;
    margin-top: 50px;
}

/* 丸いカード */
.contact__item {
    width: 70vw;
    max-width: 300px;
    min-width: 225px;
    height: 70vw;
    max-height: 300px;
    min-height: 225px;
    border-radius: 50%;        /* 丸にする */
    display: flex;
    flex-direction: column;
    justify-content: center;   /* 縦中央 */
    align-items: center;       /* 横中央 */
    text-align: center;
    background-color: rgba(255, 255, 255, 0.5); /* 白の透過 */
    backdrop-filter: blur(6px); /* ガラス風 */
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.05); /* ドロップシャドウ */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact__item--title {
    display: flex;
    font-size: 1.2rem;
    line-height: 1.7rem;
    font-weight: 300;
    margin-bottom: 0.8rem;
    color: var(--color-text);
}

.contact__item--title p:first-child {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-main);
}

.contact__item--phone {
    font-family: Josefin Sans;
    font-size: 2.6rem;
    line-height: 2.6rem;
    font-weight: 200;
    color: var(--color-text);
    margin-top: 0.5rem;
}

.contact__item--phone span {
    font-size: 0.9rem;
}

.contact__item--mail {
    font-family: Josefin Sans;
    font-size: 2.3rem;
    line-height: 2.3rem;
    font-weight: 200;
    color: var(--color-text);
    margin-top: 0.5rem;
    letter-spacing: -0.02em;
}

.contact__item img {
    height: 25px;
    margin-bottom: 5px;
}

/* フォームボタン */

.contact__btn--text:first-child {
        display: none;
    }

.contact__links {
    text-align: center;
    margin-top: 4rem;
}

.contact__btn--text {
    width: 230px;
    height: 60px;
    border-radius: 40px;
    background-color: #023C78;
    margin: 0 auto 30px;
    font-size: 1.2rem;
    font-weight: 300;
    color: white;
    line-height: 60px;
    letter-spacing: 0.03em;
}

.contact__btn--text:nth-child(2) {
    background-color: var(--color-accent);
}

.contact__btn--text:hover {
    opacity: 0.5;
    transition: 0.5s;
}

/* 矢印 */

.contact__btn--text a {
  display: flex;
  justify-content: space-between; /* 左テキスト・右矢印 */
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 0 1.5rem 0 3rem;
  text-decoration: none;
  color: inherit;
  font-weight: 400;
  position: relative;
}

/* 線で作る矢印 */
.contact__btn--text a::after {
  content: "";
  display: inline-block;
  width: 10px;   /* 矢印の横幅 */
  height: 10px;  /* 矢印の縦幅 */
  border-top: 2px solid currentColor;  /* 線の色は文字色と同じ */
  border-right: 2px solid currentColor;
  transform: rotate(45deg); /* 45度回転で「＞」に見せる */
  transition: transform 0.3s ease;
  margin: 0 10px 0 30px; /* 自動的に右端へ */
}

/* ホバー時に少し右へスライド */
.contact__btn--text a:hover::after {
  transform: rotate(45deg) translateX(4px);
}


/* pc */

@media screen and (min-width: 769px) {

    .contact {
        display: flex;
        justify-content: center;
        gap: 40px;
        align-items: center;
        margin: 50px 20px 60px;
        flex-wrap: wrap;
    }

    .contact__list {
        display: flex;
        flex-direction: inherit; /* 縦並び解除 */
        justify-content: center;
        margin: 0;
    }

    /* 丸いカード */

    .contact__item--title {
        font-size: 1.4rem;
        line-height: 2.5rem;
        vertical-align: baseline;
    }

    .contact__item--title p:first-child {
        font-size: 2rem;
        font-weight: 700;
        line-height: 2rem;
    }

    .contact__item--phone {
        font-size: 3.7rem;
        line-height: 2.8rem;
        margin-top: 0.5rem;
    }

    .contact__item--phone span {
        font-size: 1.2rem;
        line-height: 2.8rem;
    }

    .contact__item--mail {
        font-size: 3.2rem;
        line-height: 3.2rem;
        margin-top: 0;
        margin-bottom: 30px;
    }

    /* フォームボタン */

    .contact__links {
        text-align: center;
        margin-top: 0;
    }

    .contact__btn--text {
        width: 280px;
        height: 80px;
        border-radius: 100px;
        margin-top: 0;
        font-size: 1.6rem;
        line-height: 100px;
        letter-spacing: 0.15em;
    }

    .contact__btn--text:nth-child(2) {
        margin-top: 50px;
    }

    .contact__btn--text:hover {
        opacity: 0.5;
        transition: 0.5s;
    }

    .contact__item--mail:hover,.contact__item--phone:hover {
        color: var(--color-accent);
    }

    .contact__item--phone:hover span {
        color: var(--color-text); /* 元の色に戻す */
    }
    
    .contact__btn--text a {
        padding: 0 1.5rem 0 5rem;
}

}

/* main pc 769px */

.contact__item:hover {
  transform: scale(1.05);
  box-shadow: 0px 10px 40px rgba(0, 0, 0, 0.1);
}

/* リンクのアクセシビリティ強化 */
.contact__item--phone a,
.contact__item--mail a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact__item--phone a:hover,
.contact__item--mail a:hover,
.contact__item--phone a:focus,
.contact__item--mail a:focus {
  color: var(--color-accent);
  outline: none;
}


/* フォーム =========================
==============================*/

/* お問い合わせフォーム */
.contact-form {
    width: 80vw;
    max-width: 1750px;
    margin: 60px auto 70px;
    padding: 60px 15% 60px;
    background: var(--color-base);
    border-radius: 100px;
    box-shadow: 0px 5px 20px rgba(0,0,0,0.05);
}

/* フォームタイトル */
.contact-form__title {
  font-size: 1.4rem;
  line-height: 5rem;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--color-text);
  margin-top: 20px;
  margin-bottom: 10px;
  text-align: center;
  border-bottom: 1px solid var(--color-text);
  padding-bottom: 5px;
  display: block; /* ← ブロック要素に戻す（省略してもOK） */
}

/* 説明テキスト */
.contact-form__text {
  font-size: 1.2rem;
  color: var(--color-text);
  margin-bottom: 50px;
  text-align: center;
}

.contact-form label {
    display: block;
    margin-bottom: 20px;
    font-weight: 500;
    color: var(--color-text);
    font-size: 1.3rem;
    line-height: 2rem;
    letter-spacing: 0.3em;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 6px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: white;
}

.contact-form textarea {
    min-height: 150px;
}

.contact-form button {
    display: block;
    width: 135px;
    padding: 15px;
    font-size: 1.6rem;
    background: var(--color-main);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    margin: 0 auto;
}

.contact-form button:hover {
    background: var(--color-accent);
}

.aution {
    margin-top: 30px;
    font-size: 1rem;
}


@media screen and (min-width: 769px) {
    .contact-form__title {
        font-size: 2.2rem;
    }
    .contact-form__text {
        font-size: 1.5rem;
        color: var(--color-text);
        margin-bottom: 50px;
        text-align: center;
    }

    .contact-form label {
        display: block;
        margin-bottom: 20px;
        font-weight: 500;
        color: var(--color-text);
        font-size: 1.6rem;
        line-height: 2rem;
        letter-spacing: 0.3em;
    }

    .contact-form input,
    .contact-form textarea {
        width: 100%;
        padding: 10px;
        margin-top: 6px;
        border: 1px solid #ccc;
        border-radius: 5px;
        background-color: white;
    }

    .contact-form textarea {
        min-height: 150px;
    }

    .contact-form button {
        display: block;
        width: 135px;
        padding: 15px;
        font-size: 1.6rem;
        background: var(--color-main);
        color: #fff;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        text-align: center;
        margin: 0 auto;
    }

    .contact-form button:hover {
        background: var(--color-accent);
    }

    .aution {
        margin-top: 30px;
        font-size: 1.2rem;
    }

}


/* アニメーション＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝
＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝ */

#animation {
  animation: fade-in 3s;
  animation-fill-mode: forwards;
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
