/* General Styles */
:root {
    --navbar-height: 76px;
    --border-color: rgba(24, 24, 27, 0.1);
    --brand: 25 95% 53%;  /* Orange color in HSL */
    --brand-foreground: 25 95% 53%;
    --tw-ring-offset-shadow: 0 0 #0000;
    --tw-ring-shadow: 0 0 #0000;
}

@media (max-width: 650px) {
    html {
        font-size: calc(16 * 0.266666667vw);
    }
    .d-flex {
        display: block !important;
    }
}

body {
    background-color: #FEFEFE;
    color: #363331;
    font-family: "Noto Sans JP", serif;
    line-height: 1.4;
    letter-spacing: 0.1rem;
}

a {
    color: #363331;
}

img {
    width: 100%;
    height: auto;
}
.mermaid svg {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}
/* Navbar */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* 半透明の黒 */
    z-index: 998;
    display: none;
}
.navbar {
    height: var(--navbar-height);
    background-color: rgba(255, 255, 255, 0.98);
    padding: 1rem 0;
}

.navbar-brand {
    padding: 0;
}

.navbar-expand-lg .navbar-collapse{
    justify-content: end;
}

.navbar-brand img {
    height: 20px;
}

.navbar-nav {
    margin-right: 2rem;
}

.nav-link {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #BF6B72;
}

.nav-buttons {
    gap: .6rem;
}
.nav-buttons .btn {
    padding: .7rem 1.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 200px;
}
.nav-buttons .btn-light {
    background-color: #BF6B72;
    color: #fff;
    transition: all .3s;
}
.nav-buttons .btn-light:hover {
    background-color: #BF6B72;
    opacity: 0.7;
}
.nav-buttons .btn-primary {
    transition: all .3s;
}
.nav-buttons .btn-primary:hover {
    background-color: #0D6EFD;
    opacity: 0.7;
}
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: #fff;
        padding: 3rem 1rem;
        margin: 0 -1rem;
        text-align: center;
    }
    .navbar-collapse .me-2 {
        margin-right: 0!important;
    }
    .nav-buttons {
        margin-top: 1rem;
        flex-direction: column;
    }
    .nav-buttons .btn {
        width: 100%;
        text-align: center;
    }
}

.navbar-button {
    position: relative;
    display: none;
    border: none;
    background-color: #BF6B72;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.navbar-button i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@media (max-width: 650px) {
    .navbar-nav {
        margin-right: 0;
    }
    .navbar-button {
        display: block;
    }
    .nav-buttons {
        display: flex!important;
        margin-top: 1rem;
        flex-direction: column;
        align-items: center;
    }
    .nav-buttons .btn {
        max-width: 12rem;
        text-align: center;
    }
}

/* Hero Section */
.hero {
  padding: 40px 0;
}

.hero .container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.hero-content {
  flex: 1 1 auto;
}

.hero-image {
  flex: 0 0 auto;
  text-align: right;
}

.hero-image img {
  width: 100%;
  max-width: 700px;
  height: auto;
}

.scroll-down {
  text-align: center;
  margin-top: 20px;
}

@media screen and (max-width: 768px) {
  .hero .container {
    display: block;
    text-align: center;
  }
  .hero-image {
    margin-top: 20px;
    text-align: center;
  }
  .hero-image img {
    max-width: 80%;
  }
}

.scroll-down {
    position: absolute;
    bottom: 20px;
    right: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #363331;
}

.scroll-down p {
    margin: 0;
    font-size: 12px;
    letter-spacing: 0.2em;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    margin-top: 10px;
}

.scroll-line {
    width: 1px;
    height: 80px;
    background: rgba(82, 84, 89, 0.3);
    position: relative;
    overflow: hidden;
}

.scroll-line span {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #363331;
    animation: scrollLine 2s ease infinite;
}

@keyframes scrollLine {
    0% {
        transform: translateY(-100%);
    }
    50% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(100%);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    margin: 4.5rem auto 0;
}

.main-title {
    font-size: 3.9rem;
    font-weight: 300;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.sub-title {
    line-height: 1.6;
}

@media (max-width: 650px) {
    .main-title {
        font-size: 2.6rem;
    }
    .sub-title {
        font-size: .9rem;
    }
    .br-sp {
        display: none;
    }
}

/* Badge Container */
.badge-container .badge {
    border: 1px solid var(--border-color);
    font-weight: 500;
}

/* Avatar Placeholder */
.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #333;
}

/* List Group */
.list-group-item {
    border-color: var(--border-color);
}

/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
footer {
    padding: 1rem 0;
}

.footer-links a {
    color: #374151;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-brand {
    display: inline-block;
    width: 8rem;
    padding: 0;
    margin-right: 2rem;
}

.footer-links a:hover {
    color: #BF6B72;
}

.copyright {
    color: #6B7280;
    font-size: 0.75rem;
}
@media (max-width: 650px) {
    footer .row {
        text-align: center;
    }
    .footer-links {
        margin-bottom: 1rem;
    }
    .footer-links .me-4 {
        margin-right: 0rem !important;
        margin-bottom: 2rem;
    }
    .footer-links a {
        display: block;
    }
    .footer-brand {
        margin: 0 auto 2rem;
    }
    .col-md-6 {
        justify-content: center !important;
    }
    .social-links {
        margin-bottom: 0.5rem;
    }
    .copyright {
        text-align: center;
    }
}

/* Features Section */
.features-section {
    position: relative;
    padding: 7rem 0;
    background-color: #F4F3EF;
    border-radius: 25px 25px 0 0;
}
.features-section::after {
    content: '';
    width: 100%;
    height: 25px;
    background-color: #F4F3EF;
    position: absolute;
    bottom: -25px;
    left: 0;
    z-index: -1;
}
.features-section h2 {
    font-size: 2.5rem;
    line-height: 1.4;
}
.features-section h2 span {
    color: #BF6B72;
}
.features-item {
    padding: 1.5rem;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-radius: 1rem;
}
.features-point {
    font-size: 0.95rem;
    margin-top: 2rem;
}

@media (max-width: 650px) {
    .features-section {
		padding: 6rem 0;
		text-align:center;
    }
    .features-section h2 {
        font-size: 2rem;
    }
    .features-section h5 {
        font-size: 1rem;
    }
    .container.sp {
        padding-right: 0;
        padding-left: 0;
    }
    .features-item {
        margin-bottom: 1rem;
    }
    .features-section h4 {
        font-size: 1.25rem;
        text-align: left !important;
    }
    .features-section p {
        font-size: 1rem;
        text-align: left !important;
    }
}

/* Capabilities Section */
.capabilities-section {
    padding: 6rem 0;
    background-color: #FEFEFE;
    border-radius: 25px 25px 0 0;
}
.capabilities-section h2 {
    font-size: 2.5rem;
}
.capabilities-section h2 span {
    color: #BF6B72;
}
.capability-card {
    padding: 1.5rem;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-radius: 1rem;
    transition: transform 0.3s ease;
}
.capability-card:hover {
    transform: translateY(-5px);
}
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #F4F4F5;
    border-radius: 1rem;
    font-size: 0.875rem;
    color: #71717A;
}

.card-circle {
    display: inline-block;
    margin-right: .5rem;
    margin-bottom: .3rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #BF6B72;
}

@media (max-width: 650px) {
    .capabilities-section h2 {
        font-size: 2rem;
    }
}

/* Mission Section */
.mission-section {
    position: relative;
    background-color: #BF6B72;
    border-radius: 25px 25px 0 0;
    color: #fff;
}
.mission-section::after {
    content: '';
    width: 100%;
    height: 25px;
    background-color: #BF6B72;
    position: absolute;
    bottom: -25px;
    left: 0;
    z-index: -1;
}
.mini-app-badge {
  position: absolute;
  top: 20px;    /* お好みの位置に調整 */
  left: 20px;   /* お好みの位置に調整 */
  background: #00B900; /* バッジの背景色 */
  color: #fff;      /* バッジ文字色 */
  padding: 8px 12px;
  border-radius: 4px;
  font-weight: bold;
  text-decoration: none; /* リンク下線を消したい場合 */
  z-index: 999;     /* バッジが上に来るように */
}
.mini-app-badge:hover {
  opacity: 0.8; /* ホバー時の演出など */
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.mini-app-badge {
  animation: pulse 2s infinite;
}
.mission-bg{
    height: 100%;
    padding: 6rem 0;
}
.mission-tag {
    display: inline-block;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.8);
}
.mission-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 1.5rem;
}
.mission-description {
    font-size: 1rem;
    line-height: 1.8;
    opacity: 0.9;
    max-width: 800px;
}
@media (max-width: 768px) {
    .mission-title {
        font-size: 2rem;
    }
}
.mission-image {
    border-radius: 1rem;
    overflow: hidden;
    padding: .5rem;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}
.mission-image img {
    border-radius: 1rem;
    overflow: hidden;
}
@media (max-width: 650px) {
    .mission-description {
        font-size: .9rem;
    }
    .mission-item {
        margin-bottom: 2rem;
    }
    .mission-item:last-of-type {
        margin-bottom: 0rem;
    }
}

/* Service Flow Section */
.service-flow-section {
    position: relative;
    padding: 6rem 0;
    background-color: #F4F3EF;
    border-radius: 25px 25px 0 0;
}
.service-flow-section::after {
    content: '';
    width: 100%;
    height: 25px;
    background-color: #F4F3EF;
    position: absolute;
    bottom: -25px;
    left: 0;
    z-index: -1;
}
.service-flow-section h2 {
    font-size: 2.5rem;
}
.service-flow-section h2 span {
    color: #BF6B72;
}
.flow-card {
    padding: 2rem;
    background-color: #fff;
    border-radius: 1rem;
    height: 100%;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}
.flow-subtitle {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    text-align: center;
}
.flow-content {
    position: relative;
}
.flow-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}
.flow-list li {
    margin-bottom: 1.5rem;
}
.flow-list li:last-child {
    margin-bottom: 0;
}
.flow-list h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #BF6B72;
}
.flow-list ul {
    list-style: none;
    padding-left: 1rem;
}
.flow-list li {
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    color: #666;
}
.flow-image {
    width: 55%;
    margin: 0 auto;
    border-radius: 0.5rem;
    overflow: hidden;
}
.card-arrow-box {
    position: absolute;
    top: 50%;
    left: -2.5rem;
    transform: translateY(-50%);
    z-index: 5;
}
.card-arrow-box i {
    font-size: 4rem;
    color: #BF6B72;
}
.card-arrow-box.right {
    left: auto;
    right: -2.5rem;
}
.info-text {
    font-size: 0.7rem;
    color: #666;
    margin-top: 1rem;
    text-align: left;
}
@media (max-width: 768px) {
    .center-card::before,
    .center-card::after {
        display: none;
    }
    .flow-card {
        margin-bottom: 2rem;
    }
}
@media (max-width: 650px) {
    .service-flow-section h2 {
        font-size: 2rem;
    }
    .card-arrow-box {
        top: -2.4rem;
        left: 50%;
        transform: translateX(-50%) rotate(90deg);
    }
    .card-arrow-box.right {
        top: inherit;
        right: 50%;
        bottom: -2.4rem;
        transform: translateX(50%) rotate(90deg);
    }
}

/* Message Section */
.message-section {
    background-color: #FEFEFE;
    padding: 6rem 0;
    border-radius: 25px 25px 0 0;
}
.message-section h2 {
    font-size: 2.5rem;
    line-height: 1.4;
}
.message-card {
    padding: 0 3rem;
}
.message-card-item{
    flex-direction: row-reverse;
}
.message-avatar {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
}
.message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.message-avatar p {
    font-size: 0.8rem;
    text-align: center;
    margin-bottom: 0;
    margin-top: 0.8rem;
}
.message-content {
    position: relative;
    flex: 1;
    background-color: #F4F4F5;
    padding: 2rem;
    border-radius: 1rem;
}
.message-content::before {
    content: "";
    position: absolute;
    top: 50px;
    margin-top: -8px;
    left: -16px;
    border: 8px solid transparent;
    border-right: 8px solid #F4F4F5;
}
.message-content.right::before {
    left: auto;
    right: -16px;
    border: 8px solid transparent;
    border-left: 8px solid #F4F4F5;
}
.message-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #4B5563;
    margin-bottom: 0;
}
@media (max-width: 650px) {
    .message-section h2 {
        font-size: 2rem;
    }
    .message-card {
        padding: 0;
        margin-bottom: 2rem !important;
    }
    .message-card .d-flex {
        display: flex !important;
        flex-direction: column;
    }
    .message-content::before {
        display: none;
    }
    .message-title {
        font-size: 1.1rem;
    }
    .message-avatar {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: auto;
    }
    .message-avatar img {
        width: 6rem;
        height: 6rem;
        margin-right: 0.5rem;
    }
    .message-avatar p {
        text-align: left;
    }
}

@media (max-width: 650px) {
    .service-flow-section h2 {
        font-size: 2rem;
    }
    .card-arrow-box {
        top: -2.4rem;
        left: 50%;
        transform: translateX(-50%) rotate(90deg);
    }
    .card-arrow-box.right {
        top: inherit;
        right: 50%;
        bottom: -2.4rem;
        transform: translateX(50%) rotate(90deg);
    }
}

/* Company Info Section */
.company-info-section {
    padding: 6rem 0;
    background-color: #FEFEFE;
    border-radius: 25px 25px 0 0;
}
.company-info-section h2 {
    font-size: 2.5rem;
}
.company-info-table {
    width: 100%;
    border-top: 1px dashed #363331;
}
.info-row {
    display: flex;
    border-bottom: 1px dashed #363331;
}
.info-label {
    width: 180px;
    padding: 2.5rem 1.5rem 2.5rem 0;
    font-weight: 600;
    flex-shrink: 0;
}
.info-content {
    flex: 1;
    padding: 2.4rem 1.5rem 2.5rem 1.5rem;
    line-height: 1.8;
}
.certification-logo {
    max-width: 200px;
}
@media (max-width: 650px) {
    .company-info-section h2 {
        font-size: 2rem;
    }
    .info-row {
        flex-direction: column;
    }
    .info-label {
        width: 100%;
        padding: 1rem;
    }
    .info-content {
        padding: 1rem;
    }
    .certification-logo {
        max-width: 150px;
    }
}

/* Contact Modal Styles */
.modal-body form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.modal-body label {
    font-weight: bold;
}
.modal-body input,
.modal-body textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.modal-body button {
    background-color: #BF6B72;
    color: #fff;
    border: none;
    padding: 0.75rem;
    border-radius: 4px;
    cursor: pointer;
}
.modal-body button:hover {
    opacity: 0.8;
}
/* Contact Section */
.contact-section {
  padding: 6rem 0;
}

.contact-container {
  position: relative;
}

.contact-bg {
  background-color: #F4F3EF;        /* 背景色を元の薄いグレーに */
  border-radius: 25px 25px 0 0;
  padding: 4rem 0;
}

.contact-content {
  text-align: center;
}

.contact-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* 「連絡する」ボタンのスタイル */
.contact-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #BF6B72;  /* オレンジ色 */
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.3s ease;
  font-size: 0.9rem;
}
.contact-arrow:hover {
  opacity: 0.8;
}

/* アイコンとテキストの間にスペース */
.contact-icon {
  margin-right: 0.5rem;
}

/* --- Fusion Section --- */
.fusion-section {
  background-color: #f9fafb;  /* やわらかいライトグレー */
  padding-top: 60px;
  padding-bottom: 60px;
}

.fusion-section h2 {
    font-size: 2.5rem;
}
.fusion-section h2 span {
    color: #BF6B72;
}
}

.fusion-section p.lead {
  font-size: 1.1rem;
  color: #555;
}

.fusion-section .card {
  border: none;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #ffffff;
}

.fusion-section .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.fusion-section .card-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #222;
}

.fusion-section .card-text {
  font-size: 0.95rem;
  color: #666;
}

.fusion-section .text-center p {
  font-size: 1rem;
  color: #444;
}
