@import url("./all.min.css");

/* リセットとベーススタイル */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-blue: #0086dc;
  --primary-blue-dark: #0278c4;
  --primary-blue-light: #e6f7ff;
  --text-white: #ffffff;
  --text-dark: #333333;
  --text-gray: #666666;
  --text-light: #999999;
  --bg-white: #ffffff;
  --bg-gray: #f5f5f5;
  --bg-light-blue: #f0f8ff;
  --border-gray: #e0e0e0;
  --green-line: #06c755;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
}

body {
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--bg-white);
}


h1 {
  font-size: 0.8rem;
}

h2 {
  font-size: 2.0rem;
  font-weight: 700;
  margin-bottom: 1em;
  color: var(--primary-blue);
  text-align: center;
}

h3 {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.5;
  background-image: linear-gradient(var(--bg-white) 90%, #11b4c9 90%);
  margin: 1.0em 0 1.25em;
  padding-bottom: 0.5em;
}

h4 {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--primary-blue-dark);
  margin: 1.25em 0 1.25em;
  display: block;
}

.h4_service {
  -moz-appearance: none;
  -webkit-appearance: none;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 9999px;
  box-shadow: none;
  display: inline-flex;
  font-size: 1.25rem;
  height: 4.0em;
  justify-content: center;
  line-height: 1.25;
  padding: 10px 20px 10px;
  position: relative;
  vertical-align: top;
  background-color: transparent;
  border-color: #3e8ed0;
  color: #3e8ed0;
  width: 100%;
  text-align: center;
  margin: 0 auto 0.5em;
}

h5 {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 1.0em 0 1.0em;
}
h6 {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 1.0em 0 1.0em;
}
img {
  max-width: 100%;
  height: auto;
  /*display: block;*/
}

.btn-primary {
  flex: 1;
  background-color: var(--primary-blue);
  color: white;
  padding: 12px 28px;
  border-radius: 80px;
  font-weight: 500;
  font-size: 1.35rem;
  text-align: center;
  margin: 1.0rem 10px 1.0rem;
}

.btn-primary:hover {
  background-color: var(--primary-blue-dark);
  color: white;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.btn-primary-a {
  flex: 1;
  background-color: var(--primary-blue);
  color: white;
  padding: 12px 28px;
  border-radius: 80px;
  font-weight: 500;
  font-size: 1.35rem;
  text-align: center;
  margin: 1.0rem 10px 1.0rem;
}

.btn-primary-a:hover {
  background-color: var(--primary-blue-dark);
  color: white;
  transform: translateY(-5px);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}
@media screen and (max-width: 768px) {
h1 {
  font-size: 0.8rem;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.4rem;
}

h4 {
  font-size: 1.3rem;
}

.h4_service {
  font-size: 1.0rem;
}

h5 {
  font-size: 1.2rem;
}
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.container-bm50 {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 50px;
}

/* ヒーローセクション */
.heros {
  position: relative;
  height: 500px;
  overflow: hidden;
}

.heros-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.heros-content {
  position: absolute;
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
  text-align: left;
}

.heros-sub-content {
  padding: 2rem 0 2rem;
  line-height: 2;
}

.heros-title {
  font-size: 1.6rem;
  font-weight: 500;
  color: #ffffff;
  line-height: 1.5;
  text-shadow: 0 2px 8px rgba(51, 51, 51, 0.8);
  font-family: "Zen Maru Gothic", sans-serif;
  font-style: normal;
  text-align: left;
}
.heros-sub-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.5;
  text-shadow: 0 2px 8px rgba(255, 255, 255, 0.8);
  font-family: "Zen Maru Gothic", sans-serif;
  font-style: normal;
  text-align: left;
}
.heros-sub {
  height: 190px;
}
.heros-image-sub {
  width: 100%;
  height: 210px;
  object-fit: contain;
  background-image: url("../images/header_sub.jpg");
  background-repeat: no-repeat;
  background-position: right 0;
}
/* セクション共通スタイル */
.section-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 40px;
}
.section-title2 {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--primary-blue);
  text-align: center;
  margin-bottom: 40px;
}
.section-subtitle {
  text-align: center;
  color: var(--text-gray);
  margin-bottom: 30px;
  font-size: 1.0rem;
}

/* コンテンツ */
.contents-section {
  padding: 20px 0;
  background-color: var(--bg-white);
}

.contents-section_bg {
  padding: 20px 0;
  background-color: var(--bg-gray);
}

/* 会社紹介セクション */
.about-section {
  padding: 80px 0;
  background: url("../images/bg_message.png");
  background-repeat: no-repeat;
  /*background-size:contain;*/
  background-position: bottom right;
  background-color: var(--bg-gray);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image img {
  /*border-radius: 20px;
  box-shadow: var(--shadow-md);*/
  width: 100%;
}

.about-text .section-title {
  text-align: left;
  margin-bottom: 30px;
}

.about-description p {
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-gray);
  line-height: 1.8;
}

/* TOP QUALITY セクション */
.quality-section {
  padding: 60px 0;
  background-color: var(--bg-white);
}

.quality-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.quality-badge img {
  width: 300px;
}

.quality-section h5 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 30px;
}

.quality-subtitle {
  font-size: 1.0rem;
  font-weight: 800;
  color: var(--primary-blue);
  margin-bottom: 10px;
}

.quality-text p {
  color: var(--text-gray);
  line-height: 1.8;
}

/* 損害保険 */
.insurance-section {
  padding: 40px 20px 0;
  background-color: var(--bg-light-blue);
}

.insurance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 30px;
}

.insurance-card {
  background-color: var(--bg-white);
  border-radius: 25px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: solid 1px var(--primary-blue);
}

.insurance-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.insurance-image {
  /*height: 140px;*/
  overflow: hidden;
}

.insurance-image img {
  width: 100%;
  /*height: 100%;*/
  /*object-fit: cover;*/
  transition: transform 0.3s ease;
}

.insurance-card:hover .insurance-image img {
  /*transform: scale(1.05);*/
}

.insurance-title {
  padding: 0 10px 10px;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-blue);
}

/* 生命保険 */
.life-insurance-section {
  padding: 40px 20px 0;
  background-color: var(--bg-light-blue);
  padding-bottom: 50px;
}

.life-insurance-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.life-insurance-card {
  background-color: var(--bg-white);
  border-radius: 25px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.life-insurance-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.life-insurance-image {
  height: 220px;
  overflow: hidden;
}

.life-insurance-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.life-insurance-card:hover .life-insurance-image img {
  transform: scale(1.05);
}

.life-insurance-title {
  padding: 25px;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-blue);
}

/* 商品紹介 */
.service-info-section {
  padding: 30px 0;
  background-color: var(--bg-white);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

.service-card {
  position: relative;
  /*border-radius: 12px;*/
  overflow: hidden;
  height: 400px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.service-image {
  width: 100%;
  height: 100%;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

.service-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 30px 20px;
}

.service-overlay h2 {
  color: #fff;
  text-shadow: var(--primary-blue-dark);
}
.service-overlay small {
  font-size: 1.0rem;
  color: #fff;
}
.service-overlay p {
  color: white;
  font-size: 1.0rem;
  font-weight: 700;
  text-align: center;
  background-color: var(--primary-blue);
  color: white;
  padding: 12px 28px;
  border-radius: 25px;
  transition: all 0.3s ease;
  width: 200px;
  margin: 0.5em auto 0;
}

.service-overlay p:hover {
  background-color: var(--primary-blue-dark);
  box-shadow: var(--shadow-md);
}

/* 会社情報 */
.company-info-section {
  padding: 30px 0;
  background-color: var(--bg-white);
}

.company-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.company-card {
  position: relative;
  /*border-radius: 12px;*/
  overflow: hidden;
  height: 300px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.company-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.company-image {
  width: 100%;
  height: 100%;
}

.company-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.company-card:hover .company-image img {
  transform: scale(1.05);
}

.company-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  padding: 30px 20px;
}

.company-overlay p {
  color: white;
  font-size: 1.0rem;
  font-weight: 700;
  text-align: center;
  background-color: var(--primary-blue);
  color: white;
  padding: 12px 28px;
  border-radius: 25px;
  transition: all 0.3s ease;
  width: 200px;
  margin: 0 auto 0;
}

.company-overlay p:hover {
  background-color: var(--primary-blue-dark);
  box-shadow: var(--shadow-md);
}

/* お問い合わせ */
.contact-section {
  padding: 0 auto 0;
  margin-bottom: 30px;
  background-color: var(--primary-blue);
}

.contact-section-container {
  background-color: var(--bg-white);
  border-radius: 0 0 30px 30px;
  padding: 30px;
}

.contact-subtitle {
  text-align: center;
  color: var(--text-gray);
  margin-bottom: 50px;
  font-size: 1.0rem;
}

.contact-methods {
  max-width: 1000px;
  margin: 0 auto;
}

.contact-card {
  background-color: var(--bg-white);
  border-radius: 50px;
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow-md);
  margin-bottom: 30px;
}

.contact-label {
  color: var(--text-gray);
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.contact-phone {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-white);
  display: block;
}

.contact-buttons {
  display: flex;
  gap: 5px;
  justify-content: center;
  margin-bottom: 10px;
}

.contact-primary-small {
  font-size: 1.0rem;
}
.btn-primary-large {
  flex: 1;
  background-color: var(--primary-blue);
  color: white;
  padding: 15px 20px;
  border-radius: 80px;
  font-weight: 700;
  font-size: 1.35rem;
  text-align: center;
  transition: all 0.3s ease;
  margin: 0 10px;
}

.btn-primary-large:hover {
  /*background-color: var(--primary-blue-dark);*/
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-line-large {
  /*flex: 1;*/
  background-color: var(--green-line);
  color: white;
  padding: 20px 30px;
  border-radius: 80px;
  font-weight: 700;
  font-size: 1.4rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  margin: 0 10px;
}

.btn-line-large:hover {
  /*background-color: #05b04b;*/
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

/* フッター */
.footer {
  /*background-color: var(--text-dark);*/
  color: black;
  /*padding: 50px 0 30px;*/
  padding: 15px;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-links a {
  color: black;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--primary-blue-dark);
}

.footer-links ul {
  position: relative;
  display: flex;
  justify-content: space-between;
}

.footer-links li {
  padding: 10px;
  list-style: none;
}

.footer-links li a::after {
  content: "";
  border-right: 1px solid #ccc;
  position: absolute;
  display: block;
  top: 5px;
  height: 14px;
  margin-top: -7px;
}
.footer-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.footer-badges img {
  height: 100px;
  width: auto;
}

.footer-badges img:hover {
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-company {
  text-align: center;
}

.footer-company h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-weight: 800;
  background: none;
}

.footer-company p {
  font-size: 0.9rem;
  /*color: rgba(255, 255, 255, 0.7);*/
  /*margin-bottom: 5px;*/
}

.footer-copyright p {
  font-size: 0.8rem;
  /*margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.2);*/
}

@media (max-width: 900px) {
  .heros-title {
    font-size: 1.4rem;
  }
  .heros-sub-title {
    font-size: 1.8rem;
  }
  .contact-phone {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .heros {
    height: 400px;
  }

  .heros-content {
    right: 5%;
  }

  .heros-title {
    font-size: 1.0rem;
  }
  .heros-sub-title {
    font-size: 1.5rem;
  }
  .heros-image-sub {
    width: 100%;
    height: 180px;
    object-fit: contain;
    background-image: url("../images/header_sub-sp.jpg");
    background-repeat: no-repeat;
    background-position: right 0;
  }
  .section-title,
  .section-title2  {
    font-size: 1.65rem;
    margin-bottom: 10px;
  }

  .about-section {
    padding: 0 0 30px;
    background-size: contain;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .quality-content {
    display: block;
    margin-bottom: 30px;
  }
  .quality-badge img {
    width: 250px;
    margin: 0 auto 20px;
  }
  .insurance-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .insurance-title {
    font-size: 1.0rem;
  }
  .insurance-image {
    /*height: 140px;*/
  }
  .life-insurance-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .life-insurance-title {
    font-size: 1.0rem;
  }
  .life-insurance-image {
    height: 140px;
  }
  .service-grid,
  .company-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 10px;
  }

  .contact-buttons {
    flex-direction: column;
  }

  .contact-phone {
    font-size: 1.75rem;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .heros {
    height: 300px;
  }

  .heros-title {
    font-size: 0.8rem;
  }

  .insurance-grid {
    grid-template-columns: repeat(2, 1fr);
  }
    /*.life-insurance-grid {
    grid-template-columns: 1fr;
  }*/

  .insurance-title {
    font-size: 0.9rem;
  }
    .section-title {
    font-size: 1.35rem
  }
  .contact-primary-small {
    font-size: 0.9rem;
  }
  .btn-primary-large {
    font-size: 1.0rem;
  }

  .btn-line-large {
    font-size: 1.0rem;
  }
  .dropdown-menu {
    min-width: 90vw;
    left: 5vw;
    transform: none;
  }

  .dropdown-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .btn-gradient {
    padding: 12px 30px;
    font-size: 0.875rem;
  }
}


