/*
Theme Name: Iki Salon
Theme URI: http://example.com/iki-salon
Author: Antigravity
Author URI: http://example.com
Description: A minimalist salon theme based on iki-salon.jp
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: iki-salon
*/

:root {
  --color-text: #333333;
  --color-light-text: #666666;
  --color-bg: #ffffff;
  --color-accent: #000000;
  --color-gray: #f4f4f4;
  --font-main: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --font-serif: "Times New Roman", "YuMincho", "Hiragino Mincho ProN", serif;
  --container-width: 1200px;
}

/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s;
}

a:hover {
  opacity: 0.7;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 40px;
  font-weight: normal;
  letter-spacing: 0.05em;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  z-index: 1000;
  border-bottom: 1px solid #eee;
  height: 80px;
  display: flex;
  align-items: center;
}

.site-header .container {
  letter-spacing: 0.05em;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 2000;
}

.menu-toggle .bar {
  display: block;
  width: 25px;
  height: 2px;
  background-color: #333;
  margin: 5px 0;
  transition: 0.3s;
}

.menu-toggle.active .bar:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 5px);
}

.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -5px);
}

.header-actions {
  display: flex;
  gap: 20px;
  align-items: center;
}

.btn-reserve {
  background: var(--color-accent);
  color: #fff;
  padding: 10px 20px;
  font-size: 12px;
  border-radius: 2px;
}

.icon-instagram {
  width: 20px;
  height: 20px;
  display: block;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="2" y="2" width="20" height="20" rx="5" ry="5"></rect><path d="M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z"></path><line x1="17.5" y1="6.5" x2="17.51" y2="6.5"></line></svg>');
  background-repeat: no-repeat;
  background-position: center;
}

/* FV (First View) */
.fv-section {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  color: #fff;
}

.fv-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
}

.fv-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.fv-title {
  font-family: var(--font-serif);
  font-size: 4rem;
  margin-bottom: 20px;
}

.fv-subtitle {
  font-size: 1.2rem;
  letter-spacing: 0.1em;
}

/* News */
.news-list {
  max-width: 800px;
  margin: 0 auto;
}

.news-item {
  display: flex;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}

.news-date {
  width: 120px;
  color: var(--color-light-text);
  font-size: 14px;
}

.news-title {
  flex: 1;
}

/* Concept */
.concept-section {
  background: var(--color-gray);
  text-align: center;
}

.concept-text {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 2;
}

/* Interior Section */
.interior-row {
  display: flex;
  align-items: center;
  margin-bottom: 60px;
  gap: 40px;
}

.interior-row:nth-child(even) {
  flex-direction: row-reverse;
}

.interior-img {
  flex: 1;
}

.interior-img img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.interior-content {
  flex: 1;
  padding: 20px;
}

.interior-title {
  font-size: 1.8rem;
  margin-bottom: 20px;
  font-family: var(--font-serif);
}

/* Menu */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.menu-category {
  margin-bottom: 40px;
}

.menu-category-title {
  font-size: 1.5rem;
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.menu-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  border-bottom: 1px dotted #ccc;
  padding-bottom: 5px;
}

.menu-price {
  font-weight: bold;
}

/* Staff */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

.staff-item {
  text-align: center;
}

.staff-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  margin-bottom: 15px;
  filter: grayscale(100%);
  transition: filter 0.3s;
}

.staff-item:hover .staff-img {
  filter: grayscale(0%);
}

.staff-name {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.staff-position {
  font-size: 0.9rem;
  color: var(--color-light-text);
}

/* Style */
.style-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.style-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

/* Access */
.access-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.access-info {
  flex: 1;
  min-width: 300px;
}

.access-map {
  flex: 1;
  min-width: 300px;
  height: 400px;
}

.access-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.info-row {
  margin-bottom: 20px;
}

.info-label {
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
}

/* Footer */
.site-footer {
  background: #111;
  color: #fff;
  padding: 60px 0 20px;
  text-align: center;
}

.footer-logo {
  font-size: 2rem;
  font-family: var(--font-serif);
  margin-bottom: 30px;
  display: block;
}

.copyright {
  font-size: 0.8rem;
  color: #888;
}

/* Popup CTA */
.popup-cta {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #fff;
  padding: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  z-index: 2000;
  max-width: 300px;
  display: none;
  /* Toggled by JS */
  border-radius: 4px;
}

.popup-cta.active {
  display: block;
  animation: fadeInUp 0.5s;
}

.popup-close {
  position: absolute;
  top: 5px;
  right: 10px;
  cursor: pointer;
  font-size: 20px;
}

.popup-content h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.popup-btn {
  display: block;
  background: var(--color-accent);
  color: #fff;
  text-align: center;
  padding: 10px;
  margin-top: 10px;
  border-radius: 2px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {

  /* Global */
  .section {
    padding: 50px 0;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  .container {
    padding: 0 20px;
    width: 100%;
  }

  /* Header */
  .site-header {
    height: 60px;
  }

  .site-header .container {
    padding: 0 15px;
    height: 100%;
    justify-content: space-between;
  }

  .site-logo a {
    font-size: 20px;
  }

  /* Navigation */
  .menu-toggle {
    display: block;
  }

  .main-navigation {
    position: fixed;
    top: 60px;
    /* Below header */
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background: #fff;
    display: block;
    /* Change from flex to block for vertical scrolling if needed */
    padding: 40px 20px;
    transform: translateX(100%);
    /* Slide from right */
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
    border-top: 1px solid #eee;
  }

  .main-navigation.toggled {
    transform: translateX(0);
  }

  .main-navigation ul {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    /* Left align menu items */
  }

  .main-navigation a {
    font-size: 1.2rem;
    display: block;
  }

  .fv-subtitle {
    font-size: 1rem;
  }

  /* News */
  .news-item {
    flex-direction: column;
    gap: 5px;
  }

  .news-date {
    width: auto;
    font-size: 12px;
  }

  /* Concept */
  .concept-text {
    font-size: 1rem;
    text-align: left;
  }

  /* Interior */
  .interior-row,
  .interior-row:nth-child(even) {
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
  }

  .interior-img img {
    height: 250px;
  }

  .interior-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
  }

  .interior-content {
    padding: 0;
  }

  /* Menu */
  .menu-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .menu-item {
    margin-bottom: 20px;
  }

  /* Staff */
  .staff-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .staff-img {
    height: 200px;
  }

  .staff-name {
    font-size: 1rem;
  }

  .staff-position {
    font-size: 0.8rem;
  }

  /* Style */
  .style-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .style-item img {
    height: 200px;
  }

  /* Access */
  .access-container {
    flex-direction: column;
    gap: 30px;
  }

  .access-map {
    height: 300px;
  }

  /* Popup */
  .popup-cta {
    left: 10px;
    right: 10px;
    bottom: 10px;
    max-width: none;
    width: auto;
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .fv-title {
    font-size: 2rem;
  }

  .staff-grid {
    grid-template-columns: 1fr;
  }

  .style-grid {
    grid-template-columns: 1fr;
  }
}