/**
 * Theme Name: NONKE SPA
 * Theme URI: https://nonke-spa.com/
 * Author: NONKE SPA Development Team
 * Author URI: https://nonke-spa.com/
 * Description: NONKE SPA専用のカスタムWordPressテーマ。予約システム、多言語化、スタッフ管理などの機能を統合。
 * Version: 1.0.5
 * License: GPL v2 or later
 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain: nonke-spa
 * Tags: custom-theme, booking-system, multilingual, spa
 */

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%; /* 10px = 1rem */
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: "游明朝", YuMincho, "Hiragino Mincho ProN", "Hiragino Mincho Pro", "MS PMincho", "MS Mincho", serif, "Times New Roman", "Georgia", "Palatino", serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "palt" 1; /* プロポーショナルメトリクスを有効化 */
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1.5rem;
    font-weight: 400; /* 明朝体は細めのウェイトが美しい */
    line-height: 1.2;
    font-feature-settings: "palt" 1;
}

/* フォーム要素はゴシック体で可読性を確保 */
input, textarea, select, button {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

/* リンクの下線を削除 */
a {
    text-decoration: none !important;
}

a:hover,
a:focus,
a:active,
a:visited {
    text-decoration: none !important;
}

/* ボタンとアイコンの下線も確実に削除 */
button,
.c-button,
.p-header__icon,
.p-header__nav a,
.p-spBottomMenu__item,
.l-footer__reserveBtn {
    text-decoration: none !important;
}

h1 { font-size: 3.2rem; }
h2 { font-size: 2.8rem; }
h3 { font-size: 2.4rem; }
h4 { font-size: 2.0rem; }
h5 { font-size: 1.8rem; }
h6 { font-size: 1.6rem; }

p {
    margin-bottom: 1.5rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-main {
    min-height: calc(100vh - 200px);
    padding: 0;
}

.site-footer {
    background-color: #333;
    color: #fff;
    padding: 40px 0;
    margin-top: 60px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.site-branding {
    font-size: 2.4rem;
    font-weight: bold;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    margin-left: 30px;
}

.main-navigation a {
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: #0073aa;
    text-decoration: none;
}

/* ==========================================================================
   Forms
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="date"],
input[type="time"],
textarea,
select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1.6rem;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #0073aa;
}

button,
input[type="submit"],
input[type="button"],
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1.6rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.btn:hover {
    background-color: #005a87;
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }
.mt-5 { margin-top: 50px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }
.mb-5 { margin-bottom: 50px; }

.pt-0 { padding-top: 0; }
.pt-1 { padding-top: 10px; }
.pt-2 { padding-top: 20px; }
.pt-3 { padding-top: 30px; }
.pt-4 { padding-top: 40px; }
.pt-5 { padding-top: 50px; }

.pb-0 { padding-bottom: 0; }
.pb-1 { padding-bottom: 10px; }
.pb-2 { padding-bottom: 20px; }
.pb-3 { padding-bottom: 30px; }
.pb-4 { padding-bottom: 40px; }
.pb-5 { padding-bottom: 50px; }

/* ==========================================================================
   WordPress Core
   ========================================================================== */

.alignleft {
    float: left;
    margin-right: 1.5rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    margin-bottom: 1.5rem;
    max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption-text {
    text-align: center;
    font-size: 1.4rem;
    color: #666;
    margin-top: 0.5rem;
}

.gallery {
    margin-bottom: 1.5rem;
}

.gallery-item {
    display: inline-block;
    text-align: center;
    vertical-align: top;
    width: 100%;
}

.gallery-columns-2 .gallery-item {
    max-width: 50%;
}

.gallery-columns-3 .gallery-item {
    max-width: 33.33%;
}

.gallery-columns-4 .gallery-item {
    max-width: 25%;
}

.sticky {
    display: block;
}

.bypostauthor {
    display: block;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media screen and (max-width: 768px) {
    html {
        font-size: 55%;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .header-inner {
        flex-direction: column;
    }
    
    .main-navigation ul {
        flex-direction: column;
        text-align: center;
    }
    
    .main-navigation li {
        margin: 10px 0;
    }
}

/* ==========================================================================
   Staff Styles
   ========================================================================== */

.staff-section {
    margin-bottom: 60px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 3.2rem;
    margin-bottom: 10px;
}

.section-date {
    font-size: 1.6rem;
    color: #666;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.today-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.staff-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.staff-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.staff-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.staff-thumbnail {
    position: relative;
    padding-bottom: 100%;
    overflow: hidden;
    background: #f5f5f5;
}

.staff-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.staff-time-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #0073aa;
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 1.3rem;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.staff-thumbnail.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.staff-thumbnail.no-image i {
    position: absolute;
    font-size: 60px;
    color: #ddd;
}

.staff-info {
    padding: 20px;
}

.staff-name {
    margin: 0 0 5px;
    font-size: 1.8rem;
}

.staff-role {
    margin: 0;
    color: #666;
    font-size: 1.4rem;
}

/* Single Staff */
.staff-single .staff-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.staff-single .staff-info {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.staff-single .staff-photo img {
    width: 100%;
    border-radius: 8px;
}

.staff-single .staff-bio {
    margin-bottom: 20px;
}

.staff-single .staff-schedule {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.staff-booking {
    text-align: center;
    margin-top: 40px;
}

.staff-work-time {
    margin-top: 10px;
    font-size: 1.4rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.staff-link-text {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    color: #0073aa;
    font-size: 1.4rem;
    transition: gap 0.3s ease;
}

.staff-card:hover .staff-link-text {
    gap: 10px;
}

.no-staff-message {
    text-align: center;
    padding: 40px;
    background: #f5f5f5;
    border-radius: 8px;
    color: #666;
    font-size: 1.6rem;
}

.today-card {
    background: #f0f8ff;
    border: 2px solid #e7f4f9;
}

.today-card:hover {
    border-color: #0073aa;
}

/* ==========================================================================
   Reservation System
   ========================================================================== */

.reservation-form {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin-top: 30px;
}

.reservation-step {
    margin-bottom: 30px;
}

.reservation-step h3 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0073aa;
}

.therapist-selection {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.therapist-card {
    text-align: center;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.therapist-card:hover,
.therapist-card.selected {
    border-color: #0073aa;
    background: #f0f8ff;
}

/* ==========================================================================
   Language Switcher
   ========================================================================== */

.language-switcher {
    display: flex;
    gap: 10px;
    margin-left: 20px;
}

.language-switcher a {
    display: flex;
    align-items: center;
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.language-switcher a:hover,
.language-switcher a.active {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.language-switcher img {
    width: 20px;
    height: 15px;
    margin-right: 5px;
}

/* ==========================================================================
   Banner Slider
   ========================================================================== */

.nonke-banner-slider {
    position: relative;
    overflow: hidden;
    margin: 30px 0;
}

.nonke-banner-slider .banner-item {
    display: none;
}

.nonke-banner-slider .banner-item.active {
    display: block;
}

.nonke-banner-slider img {
    width: 100%;
    height: auto;
}

.banner-navigation {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.banner-navigation button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.banner-navigation button.active,
.banner-navigation button:hover {
    background: #fff;
}

/* ==========================================================================
   Print
   ========================================================================== */

@media print {
    body {
        background: white;
        color: black;
    }
    
    .site-header,
    .site-footer,
    .main-navigation {
        display: none;
    }
}