/*
Theme Name: Tsubaki Psychology Room
Theme URI: https://example.com/
Author: Tsubaki Psychology Room
Description: つばき心理相談室の静的サイトを忠実に再現したWordPressテーマです。
Version: 1.0.1
Text Domain: tsubaki
*/

:root {
  --bg-color: #FFFFFF;
  --nav-bg-color: #E6F3F4;
  --nav-active-bg-color: #D4EBEC;
  --nav-border-color: #E0D8CF;
  --text-color: #333333;
  --accent-color: #8C6D62;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: 'M PLUS Rounded 1c', sans-serif;
}

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

.site-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  min-width: 250px;
  max-width: 250px;
  height: 100vh;
  background-color: var(--bg-color);
  border-right: 1px solid var(--nav-border-color);
  position: sticky;
  top: 0;
  padding: 1rem 0;
  box-sizing: border-box;
}

.sidebar .logo {
  display: block;
  width: 100%;
  margin: 0 auto 1rem;
}

.sidebar .nav-link {
  display: block;
  background-color: var(--nav-bg-color);
  color: var(--accent-color);
  font-weight: bold;
  text-align: center;
  padding: 0.75rem 0;
  text-decoration: none;
}

.sidebar .nav-link.active {
  background-color: var(--nav-active-bg-color);
  color: var(--accent-color);
}

.sidebar .volcano {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.main-content {
  flex-grow: 1;
  padding: 2rem;
  position: relative;
  box-sizing: border-box;
}

img.hero {
  width: 100%;
  display: block;
  margin-top: 3rem;
  margin-left: auto;
  margin-right: 0;
}

img.section-img {
  width: 100%;
  height: auto;
  margin-bottom: 1.5rem;
}

.main-content h1 {
  color: var(--accent-color);
  text-align: center;
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.main-content h2 {
  color: var(--accent-color);
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.main-content h2 a {
  color: inherit;
  text-decoration: none;
}

.main-content h2 a:hover,
.main-content h2 a:focus {
  text-decoration: underline;
}

.main-content section p,
.main-content section li {
  margin-bottom: 0.75rem;
}

ul.section-list,
ol {
  padding-left: 1.5rem;
}

.petal {
  position: absolute;
  width: 14px;
  height: auto;
  pointer-events: none;
}

.petal.p1 { top: 80px; right: 160px; }
.petal.p2 { top: 260px; right: 100px; }
.petal.p3 { bottom: 180px; right: 250px; }
.petal.p4 { bottom: 120px; left: 300px; }
.petal.p5 { bottom: 60px; left: 40px; }

@media (max-width: 768px) {
  .site-layout { flex-direction: column; }

  .sidebar {
    min-width: 100%;
    max-width: 100%;
    height: auto;
    position: relative;
    border-right: none;
    border-bottom: 1px solid var(--nav-border-color);
    padding: 0.5rem 0 0.75rem;
  }

  .sidebar .logo {
    max-width: 260px;
    margin: 0.25rem auto 0.75rem;
  }

  .sidebar .nav-link {
    padding: 0.6rem 0;
    font-size: 0.9rem;
  }

  .main-content { padding: 1.5rem 1rem 2rem; }

  img.hero {
    width: 100%;
    margin-top: 1.5rem;
    margin-left: auto;
    margin-right: auto;
  }

  .main-content h1 {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
  }

  .main-content h2 {
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
  }

  .petal,
  .volcano { display: none; }
}
