@import url('https://fonts.googleapis.com/css?family=Noto+Sans+JP');

@font-face {
    font-family: 'gensenmaru';
    src: url('../fonts/GenSenRounded2JP-R.otf');
}

/* Minimal custom styles */
body {
    background-color: #f8f9fa;
    font-family: 'gensenmaru', 'Noto Sans JP', sans-serif;
    font-weight: 500;
}

main .container {
    max-width: 860px;
}

.container {
    max-width: 1400px;
}

/* Hero image width utility */
.w-80 {
    width: 80%;
}

@media (max-width: 576px) {
    .w-80 {
        width: 100%;
    }
}

/* Smooth scroll for in-page anchors */
html {
    scroll-behavior: smooth;
}

/* Theme: primary wheat (#f5deb3) applied across Bootstrap variables */
:root {
    --bs-primary: #f5deb3;
    --bs-primary-rgb: 245, 222, 179;
    --bs-primary-text-emphasis: #4a3b2a;
    --bs-primary-bg-subtle: #fff7e8;
    --bs-primary-border-subtle: #f0e0c2;
    --bs-link-color: #5c4630;
    --bs-link-hover-color: #4a3b2a;
    --bs-focus-ring-color: rgba(245, 222, 179, .25);
}

/* Hero section image: full width, responsive height on large screens */
.hero {
    position: relative;
    padding: 0;
    background: #f8f9fa;
    margin-top: 0;
}
.hero-media {
    position: relative;
}

.hero-frame {
    position: relative;
}

.slider {
    position: relative;
    width: 90%;
    margin: auto;
}

.slider img {
    display: block;
    width: 90% ;
    height: auto;
    border-radius: 20px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    margin: 0 auto;
    width: 90%;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.10) 0%, rgba(0,0,0, 0.35) 100%);
}
.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    pointer-events: none;
    padding-left: 1rem;
    padding-right: 1rem;

}
.hero-caption {
    backdrop-filter: blur(1px);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    width: min(60vw, 960px);
    margin-left: 1vw;
    margin-right: auto;
    margin-top: -50px;
    pointer-events: auto;
}

/* Hero caption text: white with black outline */
.hero-caption,
.hero-caption h1,
.hero-caption .lead,
.hero-caption p {
    color: #ffffff;
    text-shadow: -0.2px -0.2px #000000, -0.2px 0.2px #000000, 0.2px -0.2px #000000, 0.2px 0.2px #000000
}

@media (min-width: 992px) {
    .hero-content {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

.hero-text {
    font-size: calc(2.5rem + 2.1vw);
    color: rgb(250, 230, 192);
}

/* Mobile tweaks */
@media (max-width: 576px) {

    .slider {
        width: 100%;
    }
    .slider img {
        width: 100%;
        border-radius: 0.375rem;
        height: 200px;
    }
    .hero-overlay {
        width: 100%;
        border-radius: 0.375rem;
    }
    .hero-content {
        padding-left: 1rem;
        padding-right: 1rem;
        align-items: flex-end;
        padding-bottom: 1.25rem;
        backdrop-filter: blur(0px);
    }
    .hero-caption {
        padding: .75rem .875rem;
        width: 100%;
        margin-left: 0;
        border-radius: 10px;
    }
    .hero-caption .display-5 {
        font-size: 1.5rem;
        line-height: 1.25;
    }
    .hero-text {
        font-size: 2rem;
        line-height: 1.25;
    }
    .hero-caption .display-6 {
        font-size: 1.4rem;
        line-height: 1.25;
    }

    .hero-caption .lead {
        font-size: 1rem;
        line-height: 1.5;
    }
    .nav-icon {
        width: 24px;
        height: 24px;
    }
    .navbar .nav-link {
        padding: .25rem .5rem;
        font-size: .8rem;
        line-height: 1.1;
    }
    .service-item .service-icon {
        width: 72px;
        height: 72px;
    }
}

@media (min-width: 992px) {
    .hero img {
        object-fit: cover;
        object-position: center;
        border-radius: 20px;
    }
}

/* Card images keep aspect ratio and cover */
.card-img-top {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 0.7rem 0.7rem 0 0;
}

.card {
    border-radius: 0.7rem;
}

/* Badges in services list: improve legibility */
#services .badge {
    font-weight: 600;
    letter-spacing: .02em;
}

/* Table alignment for hours */
#hours table th,
#hours table td {
    text-align: center;
}

/* Links */
a {
    color: var(--bs-link-color);
}
a:hover,
a:focus {
    color: var(--bs-link-hover-color);
}

/* Navbar theming */
.navbar {
    background-color: #ffffff !important;
    border-color: #e9ecef !important;
}
.navbar .navbar-brand,
.navbar .nav-link {
    color: var(--bs-primary-text-emphasis);
    font-weight: bold;
}
.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .nav-link.active {
    color: #3b2d21;
}

/* Form focus */
.form-control:focus,
.form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 .25rem var(--bs-focus-ring-color);
}
.form-check-input:checked {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

/* Services badges to theme subtle */
#services .badge {
    background-color: var(--bs-primary-bg-subtle) !important;
    color: var(--bs-primary-text-emphasis) !important;
    border: 1px solid var(--bs-primary-border-subtle);
}

/* Hours table head subtle */
#hours .table-light {
    --bs-table-bg: rgba(179, 151, 99, 0.1);
}
#hours thead th {
    color: var(--bs-primary-text-emphasis);
    border-color: var(--bs-primary-border-subtle);
}

/* Headings color to match theme */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--bs-primary-text-emphasis) !important;
}

/* Services icons */
.service-item .service-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: inline-block;
}
.service-item .fw-semibold {
    color: var(--bs-primary-text-emphasis);
}

/* Navbar icons */
.nav-icon {
    width: 30px;
    height: 30px;
    display: inline-block;
}

/* Brand buttons: wheat (#f5deb3) */
.btn-primary {
    background-color: #f5deb3;
    border-color: #f5deb3;
    color: #5c4630;
}
.btn-primary:hover,
.btn-primary:focus {
    background-color: #e6c999; /* slightly darker */
    border-color: #e6c999;
    color: #4a3b2a;
}
.btn-primary:active {
    background-color: #dbbb85; /* pressed */
    border-color: #dbbb85;
    color: #433525;
}

.btn-outline-primary {
    background-color: rgb(204, 182, 141);
    border-color: rgba(204, 182, 141, 1);
    color: white;
}
.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: rgb(228, 206, 165);
    border-color: rgb(228, 206, 165);
    color: white;
}

/* Navbar brand stacked and centered */
.navbar-brand {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.15;
}
.navbar-brand .brand-main {
    font-size: 1.375rem;
}
.navbar-brand .brand-sub {
    font-size: .75rem;
    font-weight: 600;
    color: var(--bs-link-hover-color);
}

.nav-brand-icon{
    width: 40px;
    height: 40px;
    display: inline-block;
}

.brand{
    margin-left: 10px;
}

/* Mobile call floating action button */
.call-fab {
    position: fixed;
    right: 16px;
    bottom: 16px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: rgb(150, 124, 77);
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    border:0.5px solid #f8f9fa;
}
.call-fab img {
    filter: drop-shadow(0 1px 1px rgba(0,0,0,.15));
}

.body-hr {
    margin-top: 50px;
    color: rgb(179, 151, 99);
}

.history{
    background-color: rgba(179, 151, 99, 0.1);
    border-radius: 60px 0 60px 0;
    padding: 20px;
}

.history-list{
    list-style-type: none;
    margin-right: auto;
    border-spacing: 20px 10px;
    border-collapse: separate;
    font-size: 0.9rem;
}

.history-list p{
    display: inline-block;
}

.fade-in-on-scroll{
    -webkit-transition-duration: 1.8s;
    transition-duration: 1.8s;
    opacity: 0;
    transform: translate3d(1em, 0, 0);
    -webkit-transform: translate3d(1em, 0, 0);
    -moz-transform: translate3d(1em, 0, 0);
    -ms-transform: translate3d(1em, 0, 0);
    -o-transform: translate3d(1em, 0, 0);
    -webkit-transition: opacity transform ease-out;
    transition: opacity transform ease-out;
  }
  
  .fade-in-on-scroll.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    -moz-transform: translate3d(0, 0, 0);
    -ms-transform: translate3d(0, 0, 0);
    -o-transform: translate3d(0, 0, 0);
  }

  .googlemap{
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
    transform: translateY(0px);
    margin-top: 5px;
  }

  .access-icon {
    width: 24px;
    height: 24px;
    margin-bottom: .5rem !important;
}
  