@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&display=swap');


/* ============================================
   カスタム変数
   ============================================ */
:root {
    --primary-blue: #0062B0;
    --dark-blue: #0062B0;
    --light-blue: #e7f1ff;
    --text-dark: #212529;
    --text-light: #6c757d;
}

/* ============================================
   基本スタイル
   ============================================ */
body {
    font-family:"Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Meiryo", sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    padding-top: 0;
}

p {
    line-height: 1.7em;
}

/* ============================================
   ヘッダー
   ============================================ */
.top-bar {
    background-color: var(--primary-blue) !important;
    font-size: .85em;
    transition: opacity 0.3s ease, transform 0.3s ease, height 0.3s ease, margin 0.3s ease, padding 0.3s ease;
    overflow: hidden;
}
.top-bar.hidden {
    opacity: 0;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: translateY(-100%);
    pointer-events: none;
}
.top-bar a:hover {
    opacity: .8;
    transition: .3s;
}
.top-bar .py-2 {
    padding:.2rem 0 !important;
}
.navbar-brand img {
    width:145px;
}
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    width: 100%;
}
.navbar {
    padding:1.12rem 0;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
    position: relative;
    z-index: 1031;
}
.navbar-brand,
.navbar-toggler {
    position: relative;
    z-index: 1032;
}
.navbar-collapse {
    display: flex !important;
}
@media (max-width: 991.98px) {
    .navbar-collapse {
        display: none !important;
        overflow: hidden;
    }
    
    .navbar-collapse.show {
        display: flex !important;
    }
    
    /* フェードイン・フェードアウトアニメーション */
    .navbar-collapse {
        position: relative;
        z-index: 0;
        opacity: 0;
        transition: opacity 0.3s ease-out;
    }
    
    .navbar-collapse.collapsing {
        display: flex !important;
        height: 0;
        overflow: hidden;
        transition: height 0.15s ease-out, opacity 0.3s ease-out;
        opacity: 0;
    }
    
    .navbar-collapse.collapsing.show {
        opacity: 1;
    }
    
    .navbar-collapse.show {
        opacity: 1;
        transition: opacity 0.3s ease-out;
    }
    
    /* トグルボタンを画面の右端に配置 */
    .navbar-toggler {
        position: absolute;
        right: 0;
        top: 0;
    }
}
.navbar-nav .nav-link {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s;
    font-size:.9rem;
}
.navbar-nav .nav-link:hover {
    color: var(--primary-blue);
}
.navbar-nav .nav-link.btn {
    background: linear-gradient(to right, #0062B0, #1D9BFF) !important;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    margin-left: 0.5rem;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    border: none;
}
.navbar-nav .nav-link.btn:hover {
    background: linear-gradient(to right, #005299, #4A9DD9) !important;
    color: white !important;
    transform: translateY(2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: .3s;
}
.navbar-nav .btn {
    padding: 0.5rem 1.5rem;
}

/* ナビゲーショントグルボタン */
.navbar-toggler {
    background-color: var(--primary-blue) !important;
    border: none !important;
    border-radius: 0 !important;
}
.navbar-toggler:focus {
    box-shadow: none !important;
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}
/* メニューが開いている時はバツマークに変更 */
.navbar-toggler.menu-open .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M6 6L24 24M24 6L6 24'/%3e%3c/svg%3e") !important;
}
@media (max-width: 768px) { 
    .top-bar {
        display: none;
    }
    .navbar {
        padding:0;
        overflow: hidden;
    }
    .navbar-brand {
        padding:.6em 0;
    }
    .navbar-brand img {
        width:100px;
    }
    .navbar-toggler {
        height:60px;
        width:60px;
        right: 0 !important;
    }
    .navbar-collapse.show {
        padding:1rem 0 2rem 0;
        flex-direction: column;
        align-items: normal;
    }
    .navbar-nav {
        margin-left: 0 !important;
        margin-bottom: 1rem;;
    }
    .navbar-nav .nav-link {
        position: relative;
    }
    .navbar-nav .nav-link span {
        color: var(--primary-blue);
        font-size:.8em;
        margin-right: 5px;
    }
    .navbar-nav .nav-link.underline::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: calc(-50vw + 50% - 15px);
        width: 96vw;
        height: 1px;
        background-color: var(--primary-blue);
    }
    .navbar-nav .nav-link.underline::before {
        content: "";
        position: absolute;
        bottom: -2px;
        left: calc(-50vw + 50% - 15px + 96vw - 2.5px);
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background-color: var(--primary-blue);
    }
    .navbar-nav .contact-btn {
        margin-top: 1rem;
    }
    .navbar-nav .contact-btn a {
        display: block;
    }
    .sp-nav a.blue-btn {
        background: linear-gradient(to right, #0062B0, #1D9BFF) !important;
        padding: 0.5rem 1.5rem;
        border-radius: 9999px;
        display: inline-flex;
        align-items: center;
        white-space: nowrap;
        border: none;
        display: block;
        text-align: center;
    }
    .sp-nav a.blue-btn:hover {
        background: linear-gradient(to right, #005299, #4A9DD9) !important;
        color: white !important;
        transform: translateY(2px);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        transition: .3s;
    }
    .sp-nav a.white-btn {
        font-size: .8rem;;
        padding: 0.5rem 1.5rem;
        display: block;
        text-align: center;
    }
}
@media (min-width: 769px) { 
    .navbar-nav .nav-link span {
        display: none;
    }
}

/* ============================================
   フッター
   ============================================ */
.footer {
    border-top: 1px solid #dee2e6;
    padding:0;
}
.footer-brand .brand-text {
    font-size: 1.3rem;
}
.footer ul li {
    margin-bottom: 0.5rem;
}
.footer ul li a:hover {
    color: var(--primary-blue) !important;
}
.footer-info {
    padding-top:3rem;
    text-align: center;
    font-size:.7em;
    border-right: 1px solid var(--primary-blue);
}
.footer-info address a {
    color: var(--text-dark);
    text-decoration: none;
}
.footer-info img {
    width:160px;
}
.footer-link {
    padding-top: 3rem;
}
.footer-link h6 a {
    color: var(--primary-blue);
    text-decoration: none;
    position: relative;
    padding-left: 1em;
    font-size: .9rem;
}

.footer-link h6 a::before {
    content: "▶";
    position: absolute;
    left: 0;
    top:.35em;
    color: var(--primary-blue);
    transition: color 0.3s;
    font-size:.8em;
}

.footer-link h6 a:hover {
    color: #333;
    transition: .3s;
}

.footer-link h6 a:hover::before {
    color: #333;
}
.footer-link ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-link ul li {
    margin-bottom: 0rem;
}
.footer-link ul li a {
    color: var(--text-dark);
    text-decoration: none;
    font-size:.8em;
}
.footer-link ul li a:hover {
    color: var(--primary-blue);
    transition: .3s;
}
.footer-link .blue-btn {
    font-size:1rem;
    padding:.5rem 0;
    display: block;
    text-align: center;
    margin: 0 0 .4rem 0;
}
.footer-cr {
    text-align: center;
    padding:1rem 0;
    color: var(--primary-blue);
    font-size:.7em;
    border-top: 1px solid var(--primary-blue);
}
.footer-cr p {
    margin: 0;
}
@media (max-width: 768px) { 
    .footer-info {
        border:none;
        border-bottom: 2px solid var(--primary-blue);
    }
    .footer-link {
        padding-top: 1rem;
    }
    .footer-link-item {
        padding-left: 20%;
    }
}

/* ============================================
   共通
   ============================================ */
section {
    padding:3rem 0;
    scroll-margin-top: 120px; /* 固定ヘッダーの高さを考慮 */
}
.section-title h2 {
    font-size: 2rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: .1rem;
    text-align: center;
}
.section-title p {
    font-size: 1.3rem;
    font-weight: bold;
    color: #98CEF8;
    margin-bottom: .1rem;
    text-align: center;
    font-family: "Lexend", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Meiryo", sans-serif;
}
.section-title.blue h2 {
    color: var(--text-dark);
    font-size:1.6rem;
    margin-bottom: 2rem;
}
.section-title.blue p {
    color: var(--primary-blue);
    margin-bottom: -.3rem;
}
.sub-font {
    font-family: "Lexend", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Meiryo", sans-serif;
}

.blue-btn {
    background-color: var(--primary-blue);
    color: #ffffff;
    padding: 0.8rem 3.5rem;
    margin-top: .8rem;
    display: inline-block;
    border-radius:9999px;
    text-decoration: none;
    font-weight: bold;
    border:1px solid var(--primary-blue);
}
.blue-btn:hover {
    background-color: #ffffff;
    color: var(--primary-blue);
    transition: .3s;
}
.white-btn {
    background-color: #ffffff;
    color: var(--primary-blue);
    padding: 0.8rem 3.5rem;
    margin-top: .8rem;
    display: inline-block;
    border-radius:9999px;
    text-decoration: none;
    font-weight: bold;
    border:1px solid var(--primary-blue);
}
.white-btn:hover {
    background-color: var(--primary-blue);
    color: #ffffff;
    transition: .3s;
}

.title-underline {
    color: var(--primary-blue);
    position: relative;
    margin-bottom: 2rem;;
}
.title-underline::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -11px;
    width: 100%;
    height: 1px;
    background-color: var(--primary-blue);
}
.title-underline::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -15px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: var(--primary-blue);
}
@media (max-width: 768px) { 
    section {
        padding:1.4rem 0;
    }
    .blue-btn {
        padding: 0.4rem 3rem;
    }
    .white-btn {
        padding: 0.4rem 3rem;
    }
}

/* ============================================
   トップ
   ============================================ */
   
/* Hero section */
#top .hero-section {
    overflow: hidden;
    background-color: var(--primary-blue);
    padding:0;
}
#top .hero-image {
    width: 100%;
    position: relative;
}

/* Hero Slider */
#top .hero-section .carousel {
    width: 100%;
}
#top .hero-section .carousel-inner {
    width: 100%;
}
#top .hero-section .carousel-item {
    width: 100%;
}
#top .hero-section .carousel-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* スライダーのナビゲーションを非表示 */
#top .hero-section .carousel-control-prev,
#top .hero-section .carousel-control-next,
#top .hero-section .carousel-indicators {
    display: none !important;
}

/* Intro Section */
#top #intro {
    background-image: url('../img/top/intro_bg.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-size: contain;
}
#top #intro h2 {
    font-size: 3rem;
    font-weight: bold;
    color: #62AEEA;
    margin-bottom: 2.5rem;
    margin-top: 2rem;
    display: inline-block;
    position: relative;
}
#top #intro h2 span {
    color:var(--primary-blue);
}
#top #intro h2::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -11px;
    width: 100%;
    height: 1px;
    background-color: var(--primary-blue);
}
#top #intro h2::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -15px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: var(--primary-blue);
}
#top #intro h3 {
    color:var(--primary-blue);
    line-height: 1.6;
    font-weight: bold;
}
@media (max-width: 768px) { 
    #top #intro h3 {
        font-size:1.2rem;
    }
}
#top #intro .lead {
    font-size: 1.1rem;
    font-weight: normal;
}
#top #intro .lead span {
    color: var(--primary-blue);
    font-weight: bold;
}
#top #intro .video-container iframe {
    border-radius: 10px;
}
@media (max-width: 768px) { 
    #top #intro {
        background-size: 250%;
        background-position: center center;
    }
}

/* 製品セクション */
#top #products {
    background: url('../img/top/product_bg.png') no-repeat center center #0062B0;
    background-size: cover;
    padding-bottom: 7rem;
    padding-top: 3rem;
}
#top .product-card {
    border-radius: 8px;
    height: 100%;
    display: flex;
    flex-direction: column;
}
#top .product-card a {
    display: block;
}
#top .product-card a img {
    display: block;
    filter: drop-shadow(0 8px 0 #003B6A);
    transition: filter 0.2s ease, transform 0.2s ease;
}
#top .product-card a:hover img,
#top .product-card a:focus img {
    filter: none; 
    transform: translateY(4px);
}
@media (max-width: 768px) { 
    #top #products {
        background-size: contain;
        background-position: center bottom;
        padding-bottom: 2rem;
    }
}

/* WashiON PRIDE セクション */
#top .pride-section {
    background-color: #EBF7FF;
    padding: 6em 0;
}
#top .pride-section .container {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 4em;
    box-shadow: 0 3px 10px 0 rgba(0,98, 176, 0.15);
}
#top .pride-section h2 {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}
#top .pride-section p {
    color: var(--primary-blue);
    font-weight: bold;
    line-height: 1.7;
}
@media (max-width: 768px) { 
    #top .pride-section {
        padding: 2rem 15px;
    }
    #top .pride-section .container {
        padding: 3rem 2rem;
    }
    #top .pride-section h2 {
        font-size: 1.2rem;
    }
    #top .pride-section p {
        font-size: .85rem;
    }
}


/* 会社情報セクション */
#top .company-section {
    background-color: #ffffff;
    overflow: hidden;
}
#top .company-section h2 img {
    width:300px;
    margin-bottom: 1rem;;
}
#top .company-section h2 {
    display: inline-block;
    max-width:400px;
}
#top .company-info h4 {
    color: var(--primary-blue);
    font-weight: bold;
    font-size:1rem;
}
#top .company-section address {
    font-weight:bold;
}
#top .company-section address strong {
    color: var(--primary-blue);
}
@media (max-width: 768px) { 
    #top .company-section {
        padding:.8rem 0;
    }
    #top .company-section .company-info {
        padding:0 1rem;
    }
    #top .company-section h2 {
        text-align: center;
        width:100%;
    }
    #top .company-section address {
        font-size:.8rem;
    }
    #top .company-image {
        overflow: hidden;
        padding: 20px 0;
        margin: 0 -15px 0 -35px;
    }
    #top .company-image img {
        transform: scale(1.1);
    }
    #top .company-section address {
        margin-bottom: 0;
    }
    #top .company-section a {
        margin-top: 0;
        margin-bottom: 2rem;
    }
}


/* ニュース・会員サービスセクション */
#top .news-member-section {
    background-color: #F1F1F1;
}
#top .news-member-section .white-card {
    padding: 1rem;
}
#top .news-member-section .white-card .inner {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 3px 10px 0 rgba(0, 0, 0, 0.15);
}
#top .news-member-section .white-card ul {
    list-style: none;
    padding: 0;
    margin: 0; 
}

/* NEWSリスト */
#top .news-member-section .news-list li {
    margin-bottom: 1rem;
}
#top .news-member-section .news-list .date,
#top .news-member-section .news-list .cat {
    font-size: 0.7em;
}
#top .news-member-section .news-list .cat {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.2rem 0.6rem;
    background-color: var(--primary-blue);
    color: #ffffff;
    border-radius: 9999px;
}
#top .news-member-section .news-list h3 a {
    font-size: 1rem;
    text-decoration: none;
    color:#222;
    margin: 0.2rem 0 0;
}
#top .news-member-section .news-list h3 a:hover {
    color: var(--primary-blue);
    transition: .3s;
}


/* 採用セクション */
#top .recruit-section {

    position: relative;
    overflow: hidden;
}
#top .recruit-section a:hover img {
    opacity: .8;
    transition: .3s;
}

/* お問い合わせセクション */
.contact-section {
    background: url('../img/top/contact_bg.png')  center center;
    background-size: 700px;
}
.contact-section p {
    margin-bottom: 0;
}

.contact-section .tel {
    background-image: url('../img/top/tel_bg.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 200px;
    position: relative;
    overflow: hidden;
}

.contact-section .tel a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    color: #ffffff;
    width: 100%;
    height: 100%;
    padding: 2rem;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.contact-section .tel a h3,
.contact-section .tel a p {
    color: #ffffff;
}

.contact-section .tel a img {
    width: 25px;
    height: auto;
    margin-bottom: 8px;
}

.contact-section .tel:hover a {
    transform: scale(1.05);
    opacity: 0.9;
}

.contact-section .form {
    background-image: url('../img/top/form_bg.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 200px;
    position: relative;
    overflow: hidden;
}

.contact-section .form a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    color: #ffffff;
    width: 100%;
    height: 100%;
    padding: 2rem;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.contact-section .form a h3,
.contact-section .form a p {
    color: #ffffff;
}

.contact-section .form a h3 {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
}

.contact-section .form a h3::after {
    content: "";
    top:0;
    display: inline-block;
    width: 1.2em;
    height: 1.2em;
    background-image: url('../img/top/arrow.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.contact-section .form a img {
    width: 35px;
    height: auto;
    margin-bottom: 8px;
}

.contact-section .form:hover a {
    transform: scale(1.05);
    opacity: 0.9;
}
.contact-section .tel p ,
.contact-section .form p {
    font-size:.7em;
}

/* PC時のみ角丸を適用 */
@media (min-width: 769px) {
    .contact-section .tel {
        border-radius: 8px 0 0 8px;
    }
    
    .contact-section .form {
        border-radius: 0 8px 8px 0;
    }
}

@media (max-width: 768px) { 
    .contact-section {
        padding:2rem 15px;
    }
    .contact-section .form,
    .contact-section .tel {
        margin:0;
    }
    .contact-section .form {
        border-bottom-left-radius:10px;
        border-bottom-right-radius:10px;
    }
    .contact-section .tel {
        border-top-left-radius:10px;
        border-top-right-radius:10px;
    }
    .contact-section .form h3 {
        font-size:1.3rem;
    }
}



/* ============================================
   レスポンシブ
   ============================================ */
   @media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-logo {
        font-size: 2.5rem;
    }
    
    .section-title-primary,
    .section-title-white {
        font-size: 2rem;
    }
    
    .hero-section {
        height: auto;
        min-height: auto;
    }
    
    /* スマホ表示時にコンテナの左右パディングを削除 */
    #top .hero-section .container {
        padding-left: 0;
        padding-right: 0;
        margin: 0;
        max-width: inherit;
    }
    
    #top .hero-section .carousel-item img {
        width: 100%;
        height: auto;
    }
    
    .product-card {
        margin-bottom: .1rem;
    }
    
    .navbar-nav .nav-link.btn {
        margin-left: 0;
        margin-top: 0.5rem;
        width: 100%;
        justify-content: center;
    }

    .title-underline {
        position: relative;
    }
    .title-underline::before {
        left: -15px;
        width: calc(100% + 15px); 
    }
    .title-underline::after {
        right: auto;
        left: calc(100% - 4.5px); 
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-logo {
        font-size: 2rem;
    }
    
    .section-title-primary,
    .section-title-white {
        font-size: 1.5rem;
    }
}

/* ============================================
   アニメーション
   ============================================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.navbar-scrolled {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    background-color: rgba(255, 255, 255, 0.95) !important;
}
