@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;500;600;700;800;900&family=Noto+Sans+JP:wght@400;500;600;700;800;900&display=swap');

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; }

/* Variables */
:root {
  --color-primary: #000000;
  --color-secondary: #0C41A0;
  --color-heading: #FFFFFF;
  --color-box-shadow: #bfbfbf;  
  --font-main: 'Noto Sans JP', serif;
  --font-number: 'Noto Sans', serif;
}

/* Base styles */
html {
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  line-height: 1;
  color: var(--color-primary);
}

main {
  background-image: url(../img/tile.png);
  background-repeat: repeat;
}

.container {
  max-width: 480px;
  margin: 0 auto;
}

/* Hero */
.hero__middle {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 0.8rem;
}

.hero__middle-image {
  flex: 1;
}

/* Reasons */
.reasons__heading {
  background: var(--color-secondary);
  color: var(--color-heading);
  text-align: center;
  padding: 1rem;
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 2px;
}

.reasons__content {
  margin: 1rem 1rem 0;
  padding: 1.5rem 1rem;
  background: #fff;
  border: 1px solid var(--color-secondary);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: 3px 3px var(--color-box-shadow);
}

.reason__box {
  position: relative;
  background: #FDD605;
  padding: 1.5rem;
}

.reason__title {
  display: inline-block;
  font-weight: 900;
  font-size: 1rem;
  padding-bottom: 0.3rem;
  border-bottom: 4px solid var(--color-secondary);
  margin-bottom: 1rem;

  text-shadow: 
    -2px -2px 0 white,
     2px -2px 0 white,
    -2px  2px 0 white,
     2px  2px 0 white,
    0px -2px 0 white,
    0px  2px 0 white,
   -2px  0px 0 white,
    2px  0px 0 white;
}

.reason__title b {
  font-size: 1.4rem;
}

.reason__description {
  font-size: 0.65rem;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 0;
  max-width: 67%;
}

.reason__image {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  max-width: 28%;
}

/* Contact */
.contact__banner {
  max-width: 360px;
  margin: 1.5rem auto;
  overflow: hidden;
  background: #fff;
}

.contact__content {
  display: flex;
}

.phone__section {
  background: #015EF7;
  flex: 1;
  text-align: center;
}

.phone__time {
  display: inline-block;
  background: white;
  color: #015EF7;
  font-size: 1.1rem;
  font-weight: bold;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  margin: 1rem auto 0;
}

.phone__time-label {
  font-size: 0.8rem;
  vertical-align: middle;
}

.phone__number a {
  font-size: 1.75rem;
  font-weight: bold;
  color: white;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.9rem 0;
}

.phone__icon {
  display: inline-block;
  width: 24px;
  margin-top: 4px;
}

.line__section {
  width: 108px;
  background: #fff;
  border: 3px solid #01B902;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.5rem
}

.line__icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
}

.line__icon {
  width: 32px;
}

.line__text {
  margin: 0;
  font-weight: bold;
  font-size: 0.7rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.contact__footer {
  text-align: center;
  font-weight: 900;
  color: red;
  padding: 0.3rem;
  font-size: 0.8rem;
  border: 1px solid rgba(0,0,0,0.3);
  border-top: none;
  letter-spacing: 2px;
}

/* Flow */
.flow__heading {
  background: var(--color-secondary);
  color: var(--color-heading);
  text-align: center;
  padding: 1rem;
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 2px;
}

.flow__content {
  margin: 1rem;
  background: white;
  padding: 2.5rem 12%;
  border: 1px solid var(--color-secondary);
  box-shadow: 3px 3px var(--color-box-shadow);
}

.flow__step {
  background: #FFD700;
  border-radius: 12px;
  padding: 20px;
  position: relative;
  text-align: center;
  color: #000;
}

.flow__step-number {
  position: absolute;
  top: -17px;
  left: 17px;
  background: var(--color-secondary);
  color: white;
  font-family: var(--font-number);
  font-weight: 900;
  font-size: 1.4rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.flow__icon {
  position: absolute;
  top: 1.3rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--color-secondary);
  display: flex;
  justify-content: center;
  align-items: center;
}

.flow__icon img {
  width: 28px;
}

.flow__title {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--color-secondary);
  margin-bottom: 1.3rem;
  text-shadow:
      -1px -1px 0 white,
      1px -1px 0 white,
      -1px 1px 0 white,
      1px 1px 0 white,
      0px -1px 0 white,
      0px 1px 0 white,
      -1px 0px 0 white,
      1px 0px 0 white,
      3px 3px 0 red;
}

.flow__description {
  font-size: 0.6rem;
  font-weight: 600;
  line-height: 1.5;
  margin: 0;
}

.flow__icon {
  font-size: 1.5rem;
  margin-left: 8px;
}

.flow__arrow {
  text-align: center;
  margin: 1rem 0;
  font-size: 1.3rem;
  color: var(--color-secondary);
}

/* Feedback */
.feedback {
  margin-top: 8rem;
  position: relative;
}

.feedback__heading {
  width: 100%;
  position: absolute;
  top: -5.2rem;
  z-index: 3;
}

.feedback__heading-box {
  background: #fff;
  text-align: center;
  padding: 0.3rem 1rem 0;
  border: 4px solid var(--color-secondary);
  max-width: 384px;
  height: 5.6rem;
  margin: 0 auto;
  position: relative;
  box-shadow: 3px 3px rgba(0, 0, 0, 0.2);
}

.feedback__heading-box::after {
  content: "";
  position: absolute;
  bottom: -28px;
  left: 30px;
  width: 0;
  height: 0;
  border-top: 14px solid var(--color-secondary);
  border-left: 10px solid transparent;
  border-right: 10px solid var(--color-secondary);
  border-bottom: 14px solid transparent;
}

.feedback__heading-image {
  width: 60px;
  position: absolute;
  bottom: 0;
  right: 0.8rem;
}

.feedback__heading-text {
  margin-top: 0.5rem;
  margin-right: 4rem;
}

.feedback__heading-text h1 {
  font-size: 1.3rem;
  font-weight: 900;
  display: inline-block;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid red;
}

.feedback__heading-text h2 {
  font-size: 1.1rem;
  font-weight: 900;
  margin: 0.5rem 0 0;
}

/* Company */
.company {
  background: url(../img/company-back.png);
  margin-bottom: 8rem;
}

.company__heading {
  background: var(--color-secondary);
  color: #fff;
  text-align: center;
  padding: 0.8rem;
  font-size: 1.1rem;
  font-weight: bold;
  letter-spacing: 1px;
}

.company__info {
  width: 84%;
  margin: 1rem auto;
  background-color: white;    
  padding: 1rem 1.5rem;
  font-size: 0.7rem;  
  line-height: 1.3;
}

.company__row {
  display: flex;
  padding: 0.5rem 0;
  border-bottom: 1px solid #D9D9D9;
}

.company__label {
  flex: 0.3;
  font-weight: 900;
}

.company__text {
  flex: 0.7;
  font-weight: 500;
}

/* Floating */
.floating {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;  
  z-index: 9999;
}

.floating .contact {
  background: #ffffff;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.15);
}

.floating .contact__banner {
    max-width: 100%;
    margin: 0;
}