/* Import Tokens */
@import url('tokens.css');

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&family=Noto+Serif+JP:wght@700&family=Zen+Old+Mincho:wght@700&display=swap');

/* Basic Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  font-weight: var(--fw-normal);
  line-height: var(--lh-body);
  color: var(--color-black);
  background-color: var(--color-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
  color: var(--color-main);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* Utility Classes */
.container {
  width: 90%;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

/* Diagonal Section */
.diagonal-section {
  position: relative;
  background-color: var(--color-white);
  padding: var(--space-xxxl) 0;
}

.diagonal-section::before {
    content: '';
    position: absolute;
    top: -100%;
    bottom: -100%;
    left: -50%;
    right: -50%;
    background: linear-gradient(to bottom right, var(--color-primary-light) 50%, transparent 50%);
    transform: rotate(-5deg);
    z-index: -1;
}

/* Header */
.site-header {
    padding: var(--space-m) 0;
    background-color: var(--color-white);
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header .logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: var(--fw-bold);
    color: var(--color-main);
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: var(--space-l);
}

.main-nav a {
    padding: var(--space-s) 0;
    font-weight: var(--fw-bold);
    font-size: 0.9rem;
    transition: color 0.3s ease;
    position: relative;
}

.main-nav a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--color-accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease-in-out;
}

.main-nav a:hover:not(.btn)::after {
    transform: scaleX(1);
    transform-origin: left;
}


/* Footer */
.site-footer {
    background-color: var(--color-main);
    color: var(--color-white);
    padding: var(--space-xxl) 0;
    margin-top: var(--space-xxxl);
}

.site-footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-xl);
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-s);
}

.footer-info .logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: var(--fw-bold);
    color: var(--color-white);
    margin-bottom: var(--space-m);
}

.footer-info p {
    margin-bottom: var(--space-s);
    font-size: 0.9rem;
}

.copyright {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: var(--space-xl);
    padding-top: var(--space-l);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: var(--space-m) var(--space-xl);
    font-family: var(--font-body);
    font-weight: var(--fw-bold);
    text-align: center;
    border-radius: var(--radius-pill);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background-color: var(--color-main);
    color: var(--color-white);
    border: 2px solid var(--color-main);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-main);
    border: 2px solid var(--color-main);
}

.btn-accent {
    background-color: var(--color-accent);
    color: var(--color-main);
    border: 2px solid var(--color-accent);
}

/* Hero Section */
.hero {
    position: relative;
    height: 85vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('https://via.placeholder.com/1500x1000/5F6C65/FFFFFF?text=Relaxed+Luxury') no-repeat center center/cover;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -1px; /* Avoid anti-aliasing gaps */
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--color-base);
    transform: skewY(-3deg);
    transform-origin: bottom left;
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeIn 1.5s ease-out forwards;
}

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

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--color-white);
    margin-bottom: var(--space-m);
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: var(--space-l);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--color-main);
    margin: 6px 0;
    transition: all 0.3s ease-in-out;
}


@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1000;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .main-nav.is-open {
        transform: translateX(0);
    }

    .main-nav ul {
        flex-direction: column;
        gap: var(--space-xl);
    }
    
    .main-nav a {
        font-size: 1.5rem;
    }

    .nav-toggle {
        display: block;
    }

    .nav-toggle.is-active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .nav-toggle.is-active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-20px);
    }
    .nav-toggle.is-active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}

/* Page Header for subpages */
.page-header {
    padding: var(--space-xxxl) 0;
    background-color: var(--color-main);
    text-align: center;
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 25px;
    background: var(--color-base);
    transform: skewY(-2deg);
    transform-origin: bottom left;
}

.page-header h1 {
    color: var(--color-white);
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Menu/Price Table */
.price-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: var(--space-xl);
    box-shadow: var(--shadow-md);
}

.price-table th,
.price-table td {
    padding: var(--space-l);
    text-align: left;
    border-bottom: 1px solid #eee;
}

.price-table th {
    background-color: var(--color-main);
    color: var(--color-white);
    font-family: var(--font-body);
    font-weight: var(--fw-bold);
}

.price-table tr:last-child td {
    border-bottom: none;
}

.price-table td:last-child {
    text-align: right;
    font-weight: var(--fw-bold);
    font-family: var(--font-heading);
    color: var(--color-main);
}

.price-table .menu-description {
    font-size: 0.9rem;
    color: #777;
    display: block;
    margin-top: var(--space-xs);
}

/* Staff Card */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
}

.staff-card {
    background: var(--color-white);
    border-radius: var(--radius-m);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.staff-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.staff-card-content {
    padding: var(--space-l);
}

.staff-card-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-main);
    margin-bottom: var(--space-s);
}

.staff-card-role {
    font-weight: var(--fw-bold);
    color: var(--color-accent);
    margin-bottom: var(--space-m);
}

.staff-card-bio {
    font-size: 0.9rem;
}

/* Style Gallery */
.card-grid.style-gallery {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.style-card {
    background: var(--color-main);
    border-radius: var(--radius-m);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    position: relative;
    aspect-ratio: 1 / 1.2;
    cursor: pointer;
}

.style-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.style-card:hover img {
    transform: scale(1.05);
    opacity: 0.8;
}

.style-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: var(--space-xl) var(--space-l) var(--space-m);
    color: var(--color-white);
    transform: translateY(50%);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.style-card:hover .style-card-overlay {
    transform: translateY(0);
    opacity: 1;
}

.style-card-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: var(--space-xs);
    color: var(--color-white);
}

/* Blog List */
.blog-list {
    display: grid;
    gap: var(--space-xxl);
}

.blog-post-item {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-xl);
    align-items: center;
    background: var(--color-white);
    border-radius: var(--radius-m);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    text-decoration: none;
    color: var(--color-black);
}

.blog-post-item:hover {
    box-shadow: var(--shadow-md);
}

.blog-post-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-post-item:hover .blog-post-item-img img {
    transform: scale(1.05);
}

.blog-post-item-content {
    padding: var(--space-l);
}

.blog-post-item-title {
    font-size: 1.5rem;
    margin-bottom: var(--space-m);
    color: var(--color-main);
}

.blog-post-item-meta {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: var(--space-m);
}

.blog-post-item-excerpt {
    font-size: 1rem;
}

@media (max-width: 768px) {
    .blog-post-item {
        grid-template-columns: 1fr;
    }
}

/* Access Info */
.access-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xxl);
    align-items: center;
}

.access-info-list {
    list-style: none;
}

.access-info-list li {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: var(--space-m);
    padding: var(--space-m) 0;
    border-bottom: 1px solid #eee;
}

.access-info-list dt {
    font-weight: var(--fw-bold);
    color: var(--color-main);
}

.map-container {
    width: 100%;
    height: 400px;
    background: #eee;
    border-radius: var(--radius-m);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 768px) {
    .access-grid {
        grid-template-columns: 1fr;
    }
}
