

:root {
  --navy: #02162e;
  --gold: #c89b3c;
  --ivory: #f7f4ed;
  --white: #ffffff;
  --text: #4b4b4b;
  --line: #dddddd;
}

/* ==================================================
   CONTACT HERO
================================================== */

.contact-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 430px;
  overflow: hidden;
  background-image:
    linear-gradient(
      rgba(255, 255, 255, 0.42),
      rgba(255, 255, 255, 0.42)
    ),
    url("../images/contact-hero.jpg");
  background-repeat: no-repeat;
  background-position: center 70%;
  background-size: cover;
}

.contact-hero .hero-text {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 80px));
  margin: 0 auto;
  color: var(--navy);
}

.contact-hero .hero-text h1 {
  margin: 0 0 18px;
  font-size: clamp(44px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.18em;
}

.contact-hero .hero-text h2 {
  margin: 0;
  font-family: "Shippori Mincho", serif;
  font-size: clamp(24px, 2.5vw, 28px);
  font-weight: 700;
  line-height: 1.5;
}


/* ==================================================
   CONTACT SECTION
================================================== */

.contact-section {
  width: min(1100px, calc(100% - 80px));
  margin: 0 auto;
  padding: 90px 0 100px;
  text-align: center;
}

.contact-section > h2 {
  margin: 0 0 24px;
  color: var(--navy);
  font-family: "Shippori Mincho", serif;
  font-size: clamp(30px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.45;
}

.lead {
  margin: 0 0 55px;
  color: var(--text);
  font-size: 20px;
  line-height: 2;
  letter-spacing: 0.03em;
}

.lead span,
.gold {
  color: var(--gold);
  font-weight: 700;
}


/* ==================================================
   CONTACT CARDS
================================================== */

.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 35px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
}

.contact-card {
  min-width: 0;
  padding: 55px 40px;
  text-align: center;
}

.contact-card:first-child {
  border-right: 1px solid var(--line);
}

.contact-card h3 {
  margin: 0 0 24px;
  color: var(--navy);
  font-family: "Shippori Mincho", serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.4;
}

.contact-card h3 small {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 500;
}

.contact-card p {
  margin: 0;
  color: var(--text);
  font-size: 17px;
  line-height: 2;
}

.contact-card .gold {
  margin-top: 8px;
}


/* ==================================================
   CONTACT CARD IMAGES
================================================== */

/*
   HTML内ではSNSロゴとQRコードが同じimgタグのため、
   1枚目をSNSロゴ、2枚目をQRコードとしてサイズを分けています。
*/

.contact-card > img {
  display: block;
  margin-right: auto;
  margin-left: auto;
  object-fit: contain;
}

.contact-card > img:first-child {
  width: 72px;
  height: 72px;
  margin-bottom: 20px;
}

.contact-card > img:nth-of-type(2) {
  width: 150px;
  height: 150px;
  margin-top: 24px;
  margin-bottom: 24px;
}


/* HTMLには現在ありませんが、追加した場合に使える設定 */
.icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  margin: 0 auto 18px;
  color: var(--white);
  background: var(--navy);
  border-radius: 50%;
  font-size: 34px;
  font-weight: 700;
}


/* ==================================================
   SNS BUTTON
================================================== */

.sns-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 230px;
  min-height: 48px;
  padding: 12px 30px;
  color: var(--white);
  background: var(--navy);
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  transition:
    background-color 0.3s ease,
    transform 0.3s ease;
}

.sns-btn:hover {
  background: var(--gold);
  transform: translateY(-3px);
}


/* ==================================================
   NOTICE
================================================== */

.notice {
  display: flex;
  align-items: center;
  gap: 45px;
  padding: 35px 50px;
  background: var(--white);
  border: 1px solid var(--gold);
  text-align: left;
}

.notice-title {
  flex-shrink: 0;
  min-width: 230px;
  color: var(--gold);
  font-size: 25px;
  font-weight: 700;
  line-height: 1.5;
}

.notice > div:last-child {
  min-width: 0;
}

.notice p {
  margin: 0 0 5px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.9;
}

.notice p:last-child {
  margin-bottom: 0;
}


/* ==================================================
   タブレット：1024px以下
================================================== */

@media screen and (max-width: 1024px) {

  .contact-hero .hero-text,
  .contact-section {
    width: min(100% - 56px, 960px);
  }

  .contact-hero {
    min-height: 400px;
    background-position: center 68%;
  }

  .contact-section {
    padding: 80px 0 90px;
  }

  .lead {
    font-size: 18px;
  }

  .contact-card {
    padding: 48px 30px;
  }

  .contact-card h3 {
    font-size: 29px;
  }

  .contact-card p {
    font-size: 16px;
  }

  .notice {
    gap: 30px;
    padding: 30px 35px;
  }

  .notice-title {
    min-width: 200px;
    font-size: 22px;
  }
}


/* ==================================================
   スマートフォン：768px以下
================================================== */

@media screen and (max-width: 768px) {

  .contact-hero .hero-text,
  .contact-section {
    width: min(100% - 40px, 700px);
  }

  .contact-hero {
    min-height: 380px;
    background-position: 58% center;
  }

  .contact-hero .hero-text h1 {
    font-size: 42px;
  }

  .contact-hero .hero-text h2 {
    font-size: 25px;
  }

  .contact-section {
    padding: 72px 0 80px;
  }

  .contact-section > h2 {
    font-size: 34px;
  }

  .lead {
    margin-bottom: 42px;
    font-size: 16px;
  }

  .lead br {
    display: none;
  }

  .contact-cards {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 45px 30px;
  }

  .contact-card:first-child {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .contact-card h3 {
    font-size: 29px;
  }

  .contact-card p {
    font-size: 15px;
  }

  .contact-card > img:first-child {
    width: 66px;
    height: 66px;
  }

  .contact-card > img:nth-of-type(2) {
    width: 145px;
    height: 145px;
  }

  .sns-btn:hover {
    transform: none;
  }

  .notice {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 28px 26px;
    text-align: center;
  }

  .notice-title {
    min-width: 0;
    font-size: 22px;
  }

  .notice p {
    font-size: 14px;
  }
}


/* ==================================================
   小さいスマートフォン：480px以下
================================================== */

@media screen and (max-width: 480px) {

  .contact-hero .hero-text,
  .contact-section {
    width: calc(100% - 32px);
  }

  .contact-hero {
    min-height: 350px;
    background-position: 62% center;
  }

  .contact-hero .hero-text h1 {
    font-size: 34px;
    letter-spacing: 0.1em;
  }

  .contact-hero .hero-text h2 {
    font-size: 22px;
  }

  .contact-section {
    padding: 58px 0 65px;
  }

  .contact-section > h2 {
    margin-bottom: 18px;
    font-size: 29px;
  }

  .lead {
    margin-bottom: 34px;
    font-size: 14px;
    line-height: 1.9;
  }

  .contact-card {
    padding: 36px 20px;
  }

  .contact-card h3 {
    margin-bottom: 18px;
    font-size: 26px;
  }

  .contact-card h3 small {
    display: block;
    margin-top: 4px;
    font-size: 12px;
  }

  .contact-card p {
    font-size: 14px;
    line-height: 1.85;
  }

  .contact-card > img:first-child {
    width: 58px;
    height: 58px;
    margin-bottom: 16px;
  }

  .contact-card > img:nth-of-type(2) {
    width: 130px;
    height: 130px;
    margin-top: 20px;
    margin-bottom: 20px;
  }

  .sns-btn {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 11px 20px;
    font-size: 14px;
  }

  .notice {
    padding: 23px 18px;
  }

  .notice-title {
    font-size: 19px;
  }

  .notice p {
    font-size: 12px;
    line-height: 1.8;
  }
}


/* ==================================================
   さらに小さいスマートフォン：360px以下
================================================== */

@media screen and (max-width: 360px) {

  .contact-hero .hero-text,
  .contact-section {
    width: calc(100% - 26px);
  }

  .contact-hero {
    min-height: 325px;
  }

  .contact-hero .hero-text h1 {
    font-size: 30px;
  }

  .contact-hero .hero-text h2 {
    font-size: 20px;
  }

  .contact-section > h2 {
    font-size: 26px;
  }

  .lead {
    font-size: 13px;
  }

  .contact-card {
    padding-right: 16px;
    padding-left: 16px;
  }

  .contact-card h3 {
    font-size: 23px;
  }

  .contact-card p {
    font-size: 13px;
  }

  .contact-card > img:nth-of-type(2) {
    width: 120px;
    height: 120px;
  }

  .notice {
    padding-right: 14px;
    padding-left: 14px;
  }

  .notice-title {
    font-size: 18px;
  }

  .notice p {
    font-size: 11px;
  }
}