/* 共通 */
body {
    margin: 0;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
    color: #1d1d1d;
    line-height: 1.6;
}

.only-pc {
    display: block;
}

.only-768-500px {
    display: none;
}

.only-768px {
    display: none;
}

.only-500px {
    display: none;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px); 
    transition: opacity 1s ease, transform 1s ease; 
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.js-pop {
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.4s ease-out, 
                transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.js-pop.is-show {
    opacity: 1;
    transform: scale(1); 
}

@keyframes scaleInOutside {
  0% {
    transform: scale(1.5);
    opacity: 0;
    filter: blur(10px);
  }
  100% {
    transform: scale(1);
    opacity: 1;
    filter: blur(0);
  }
}

.line-btn {
    display: block;
    background: #f39800;
    color: white;
    padding: 20px;
    font-size: 1.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 0 #d17a00;
    text-align: center;
    transition: all 0.3s ease; 
    position: relative;
    overflow: hidden;
}

.line-btn:hover {
    transform: translateY(-3px); 
    box-shadow: 0 7px 15px rgba(209, 122, 0, 0.4); 
    background: #ffaa33; 
}

.line-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    
    background-image: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    
    transition: none; 
}

.line-btn:hover::after {
    left: 100%; 
    transition: left 0.7s ease-in-out;
}

.underline-orange {
    display: inline-block; 
    text-decoration: none; 
    color: #333;           
    font-weight: bold;
    position: relative;    
    padding-bottom: 4px;  
    transition: color 0.3s;
    font-size: 1.1rem;
}

.underline-orange:hover {
    color: #f39800; 
}

.underline-orange::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;           
    background: #f39800;   
    transform: scaleX(0);  
    transform-origin: left;
    transition: transform 0.3s ease; 
}

.underline-orange:hover::after {
    transform: scaleX(1);  
}

.inner {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
}

.section-sub{
    text-align: center;
}

.section-title{
    text-align: center;
    font-size: 2rem;
    letter-spacing: 1px;
}

.section-title span {
    text-align: center;
    font-size: 3rem;
}

/* ヘッダー */
header {
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    margin: 0 auto;
}

.header-logo img {
    height: 80px;
    display: block;
}

.header-logo {
    margin: 0;
}

.header-logo a {
    text-decoration: none;
    font-weight: bold;
    color: #1d1d1d;
    font-size: 1.2rem;
}

.header-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.header-menu li {
    font-size: 14px;
    font-weight: 500;
    color: #1d1d1d;
    cursor: pointer;
    transition: color 0.3s ease;
}

.header-menu .line-btn {
    font-size: 1rem;
    padding: 15px 40px;
}

.header-menu li:hover {
    color: #f39800;
}

/* メインビジュアル */
.hero {
    background: url('../img/hero.webp') no-repeat center center/cover;
    height: 800px;
    position: relative;
    display: flex;
    align-items: center;
    padding-left: 10%;
    padding-bottom: 50px;
}

.gear-icon{
    max-width: 200px;
    display: inline-block;
}

.gear-icon img{
    width: 100%;
}

.catchphrase h2 {
    font-size: 3rem;
    color: #1d1d1d;
    margin-top: 0;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px #ffffff;
}

.catchphrase h2 span {
    font-size: 3.5rem;
}

.cta-area {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 370px;
}

.cta-area p{
    font-size: 1.5rem;
    background: #ffffff78;
    display: inline-block;
    padding: 20px 15px;
    text-align: center;
}

.about {
    background-image: url(../img/about_bk.png);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    /* background-color: #fdf5e6; */
    position: relative;
    padding-top: 100px;
    padding-bottom: 100px;
    margin-top: -50px;
    border-radius: 100% 100% 0 0 / 50px 50px 0 0; 
}

.speech{
    max-width: 1000px;
    width: 100%;
    margin: 50px auto;;
}

.speech-box{
    display: flex;
    justify-content: center;
    align-items: center;
}

.speech-box .speech-box-img{
    max-width: 100px;
    margin: 0 10px;
}

.speech-box .speech-box-img img{
    width: 100%;
}

.speechBubble-left, .speechBubble-right{
    position: relative;
    display: block;
    margin: 20px 0 20px 16px;
    padding: 16px;
    border: 4px solid #d17a00;
    border-radius: 12px;
    background-color: #ffffff;
    text-align: left;
    font-size: 1.6rem;
    font-weight: bold;
    line-height: 1.5;
    color: #000000;
}
  
.speechBubble-left::before,
.speechBubble-left::after,
.speechBubble-right::before,
.speechBubble-right::after{
    content: "";
    position: absolute;
    top: 50%;
    border-style: solid;
    transform: skew(0, -10deg);
}
  
.speechBubble-left::before {
    left: 0;
    border-width: 0 16px 16px 0;
    border-color: transparent #d17a00 transparent transparent;
    translate: -100% -50%;
    transform-origin: right;
}
  
.speechBubble-left::after {
    left: 0;
    border-width: 0 10px 10px 0; 
    border-color: transparent #ffffff transparent transparent;
    translate: calc(-100% + 3px) calc(-50% - 0.5px);
    transform-origin: right;
}
  
.speechBubble-right {
    margin-left: 0;
    margin-right: 16px;
    border: 4px solid #779738;
}
  
.speechBubble-right::before {
    left: auto;
    right: 0;
    border-width: 0 0 16px 16px;
    border-color: transparent transparent transparent #779738;
    translate: 100% -50%;
    transform-origin: left;
}
  
.speechBubble-right::after {
    left: auto;
    right: 0;
    border-width: 0 0 10px 10px;
    border-color: transparent transparent transparent #ffffff;
    translate: calc(100% - 3px) calc(-50% - 0.5px);
    transform-origin: left;
}

.story-txt{
    text-align: center;
    font-size: 2.5rem;
    letter-spacing: 1px;
    font-weight: bold;
}

.story-txt span {
    text-align: center;
    font-size: 3.5rem;
}

.story-txt .orange {
    color: #d17a00;
}


/* サービス */
.solution {
    background-color: #ffe4cc;
    padding-top: 100px;
    padding-bottom: 100px;
    margin-top: 0;
    text-align: center;
}

.gallery {
    display: flex;
    justify-content: center;
    gap: 50px;
    padding: 20px;
}

.gallery-item {
    max-width: 600px;
    width: 100%;
}

.gallery-item img {
    width: 100%;
    border-radius: 20px;
    object-fit: cover;
}

.bottom-btns{
    max-width: 400px;
    width: 100%;
    margin: 20px auto;
}

.bottom-btns .mamechishiki{
    background: #0e4f97;
    box-shadow: 0 4px 0 #0c3d76;
}


/* 豆知識 */
.trivia{
    background-image: url(../img/trivia_bk.png);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    padding-top: 100px;
    padding-bottom: 100px;
    margin-top: 0;
    text-align: center;
}

.trivia-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding: 20px;
    max-width: 1280px;
    margin: 0 auto;
}
  
.trivia-item {
    border: 4px solid #0268b8;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    box-shadow: 6px 6px 0 #dbe4ee;
    transition: all 0.3s ease;
}
  
.trivia-title {
    background: #0268b8;
    color: #fff;
    padding: 16px;
    font-weight: bold;
    line-height: 1.4;
    font-size: 1.6rem;
    cursor: pointer;
    position: relative;
    padding-right: 60px;
    user-select: none;
}
  
.trivia-body {
    padding: 18px;
    font-size: 1.2rem;
    line-height: 1.7;
    color: #333;
    white-space: pre-wrap;
    text-align: left;
    font-weight: bold;
    display: none;
}

.trivia-item.is-open {
    border-color: #0e4f97;
    box-shadow: 6px 6px 0 #dbe4ee;
}

.trivia-item.is-open .trivia-title {
    background-color: #0e4f97;
}

.trivia-item.is-open .trivia-body {
    display: block;
}

.trivia-title::before,
.trivia-title::after {
    content: "";
    position: absolute;
    right: 25px;
    top: 50%;
    width: 20px;
    height: 4px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.trivia-title::before {
    transform: translateY(-50%) rotate(90deg);
}

.trivia-title::after {
    transform: translateY(-50%);
}


.trivia-item.is-open .trivia-title::before {
    transform: translateY(-50%) rotate(0deg);
}


.cta{
    background: url('../img/contact_bk.png') no-repeat center center/cover;
    padding: 50px 20px;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 100px;
}

.cta-box {
    background: rgba(255, 255, 255, 0.9);
    padding: 60px 40px 80px;
    border-radius: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    text-align: center;
}

.cta-title {
    font-size: 3rem;
    margin-top: 10px;
    color: #1e63b5;
    margin-bottom: 20px;
}

.cta-desc{
    font-size: 1.2rem;
}

.cta-box .cta-area{
    margin: 0 auto;
}

/* フッター */
footer {
    background: rgba(0, 0, 0, 0.05);
    padding: 70px 20px;
    text-align: center;
}

.footer-nav {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 20px;
    padding: 0;
    margin: 30px 0;
    font-size: 14px;
    flex-wrap: wrap;
}

.copyright {
    font-size: 12px;
    color: #888;
}

.modal-overlay {
    display: none; 
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4); 
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal-overlay.is-active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: #fff;
    width: 90%;
    max-width: 900px;
    border-radius: 20px;
    padding: 40px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.modal-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.info-item {
    background: #f0f2f5; 
    padding: 25px;
    border-radius: 15px;
    text-align: left;
}

.info-item h3 {
    font-size: 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    color: #333;
}

.info-item h3::before {
    content: "●"; 
    color: #6d96cf;
    margin-right: 10px;
}

.consult-btn {
    display: inline-block;
    background: #7ca0cc;
    color: white;
    padding: 15px 60px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px; 
    z-index: 100;
    width: 80px;
    height: 80px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
  
.back-to-top img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
}
  
.back-to-top:hover {
    opacity: 0.8;
    transform: translateY(-5px); 
}

.ft-underline-orange {
    display: inline-block; 
    text-decoration: none; 
    color: #333;           
    position: relative;    
    padding-bottom: 4px;  
    transition: color 0.3s;
}

.ft-underline-orange:hover {
    color: #f39800; 
}

.ft-underline-orange::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;           
    background: #f39800;   
    transform: scaleX(0);  
    transform-origin: left;
    transition: transform 0.3s ease; 
}

.ft-underline-orange:hover::after {
    transform: scaleX(1);  
}