@charset "UTF-8";
/* Template: swell
Theme Name: SWELL CHILD
Theme URI: https://swell-theme.com/
Description: SWELLの子テーマ
Version: 1.0.0
Author: LOOS WEB STUDIO
Author URI: https://loos-web-studio.com/
License: GNU General Public License
License URI: http://www.gnu.org/licenses/gpl.html
*/

/* ===================================================================
   Terao Clinica SWELL Child Theme Styles
   
   Design principle: All custom CSS uses the "tc-" namespace prefix
   to avoid conflicts with SWELL core and third-party plugins.
   Font scaling uses a CSS custom property (--tc-font-scale) applied
   only to content areas, keeping SWELL's rem-based layout intact.
   =================================================================== */

:root {
  --tc-accent-color: #ef8c01; /* Terao Clinica Orange */
  --tc-green-color: #38930b; /* Terao Clinica Green */
  --tc-green-dark: #2a7307;  /* Terao Clinica Dark Green */
  --tc-green-light: #ecffe3; /* Terao Clinica Light Green Background */
  --tc-green-border: #43ab0f; /* Terao Clinica Accent Green Border */
  --tc-font-family-base: "Kosugi Maru", "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
  --tc-font-family-heading: "Zen Maru Gothic", "Kosugi Maru", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
  --tc-letter-spacing-base: 0.015em;
  --tc-line-height-base: 1.7;
  --tc-font-scale: 1; /* Font scale factor, set by JS. Matches terao-clinica.com ratios:
                          small=100/120≈0.833, middle=1 (default), large=140/120≈1.167 */
}

body.tc-body {
  overflow-x: hidden;
  font-family: var(--tc-font-family-base);
  line-height: var(--tc-line-height-base);
  letter-spacing: var(--tc-letter-spacing-base);
  word-break: auto-phrase;
  text-wrap: pretty;
  background-image: url("https://www.terao-clinica.com/style/00/images/header_bg.gif");
  background-repeat: repeat-x;
  background-position: top center;
  background-color: #FFF;
  margin: 0;
  padding: 0;
}

/* --- Page Shell Container --- */
.tc-page-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

/* --- Font Size Changer Application --- */
/*
 * Reproduces terao-clinica.com's font size switcher behaviour exactly.
 * Original site: body 62.5% (10px), #wrapper 120% (12px default).
 *   small: #wrapper { font-size: 100% } → 10px (scale 100/120 ≈ 0.833)
 *   middle: #wrapper { font-size: 120% } → 12px (scale 1, default)
 *   large: #wrapper { font-size: 140% } → 14px (scale 140/120 ≈ 1.167)
 *
 * Directly scales the html root font size to ensure SWELL's rem-based elements
 * in the main content change accordingly, while converting custom child elements to rems.
 */
html.tc-font-small {
  font-size: calc(62.5% * 0.8333) !important;
}
html.tc-font-middle {
  font-size: 62.5% !important;
}
html.tc-font-large {
  font-size: calc(62.5% * 1.1667) !important;
}

.tc-content-container {
  font-size: 1.2rem;
}

/* Also apply scaling to custom header text elements */
.tc-header-title {
  font-size: 1.08rem;
}

.tc-tagline {
  font-size: 1.0rem;
}

/* Also apply scaling to footer text */
.tc-footer-links {
  font-size: 1.1rem;
}

.tc-copyright {
  font-size: 1.1rem;
}

/* --- Breadcrumbs --- */
.tc-bread {
  margin-bottom: 12px;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  box-sizing: border-box;
}

.tc-bread-inner {
  padding-right: 7px;
  line-height: 1.2;
  font-size: 1.2rem;
  color: #333;
}

.tc-bread-inner a {
  color: #f98802;
  text-decoration: none;
}

.tc-bread-inner a:hover {
  text-decoration: underline;
}

/* Hide SWELL default breadcrumbs to avoid duplicate display */
.p-breadcrumb,
.swell-breadcrumb {
  display: none !important;
}

/* --- Header Layout --- */
.tc-header {
  width: 100%;
  border-top: 3px solid var(--tc-green-color);
  box-sizing: border-box;
}

.tc-header-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

/* Header Top Title Text - Adjusted padding to fit inside the 20px background stripe */
.tc-header-top-text-wrap {
  padding: 6px 0 0;
}

.tc-header-title {
  font-weight: normal;
  color: var(--tc-green-color);
  margin: 0;
  text-align: left;
  line-height: 1;
}

/* Header Content Layout */
.tc-header-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 0 15px;
}

.tc-header-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.tc-logo {
  margin-top: 5px;
}

.tc-logo img {
  display: block;
  max-width: 100%;
  height: auto;
  transition: opacity 0.2s ease;
}

.tc-logo img:hover {
  opacity: 0.8;
}

.tc-tagline {
  /* font-size set above via calc() for font-scale support */
  font-weight: normal;
  color: var(--tc-green-color);
  margin: 5px 0 0;
  letter-spacing: 0.05em;
  text-align: left;
}

.tc-header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.tc-tel-wrap {
  margin-bottom: 8px;
}

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

.tc-header-right-under {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  width: 100%;
}

.tc-inquiry-form {
  display: block;
}

.tc-inquiry-form a {
  display: block;
}

.tc-inquiry-form img {
  display: block;
  width: 162px;
  height: auto;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.tc-inquiry-form img:hover {
  opacity: 0.8;
  transform: scale(1.02);
}

.tc-fontsize-change {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tc-fontsize-label img {
  display: block;
  height: 12px;
  width: auto;
  margin-right: 2px;
}

.tc-fontsize-btn {
  display: block;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.tc-fontsize-btn:hover {
  opacity: 0.75;
  transform: scale(1.05);
}

.tc-fontsize-btn img {
  display: block;
  width: 23px;
  height: 23px;
}

.tc-header-bottom {
  height: 0;
  border: 0;
}

/* --- Main Content Wrapper --- */
.tc-content-container {
  flex-grow: 1;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 20px 15px;
  box-sizing: border-box;
  /* font-size set above via calc() for font-scale support */
}

/* --- Footer Layout --- */
.tc-footer {
  width: 100%;
  margin-top: auto; /* Pushes footer to the bottom of page shell */
  box-sizing: border-box;
  padding-top: 10px;
}

.tc-pagetop-wrap {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  box-sizing: border-box;
}

.tc-pagetop {
  display: flex;
  justify-content: flex-end;
  padding-right: 15px;
}

.tc-pagetop p {
  margin: 0;
  padding: 0;
  line-height: 1;
}

.tc-pagetop a {
  display: block;
}

.tc-pagetop a img {
  display: block;
  width: 106px;
  height: 24px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.tc-pagetop a img:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}

.tc-footer-inner {
  width: 100%;
  background-color: var(--tc-green-light);
  padding: 20px 15px 0;
  box-sizing: border-box;
  text-align: center;
  position: relative;
}

.tc-footer-content {
  max-width: 920px;
  margin: 0 auto;
  padding-bottom: 20px;
}

.tc-footer-links {
  list-style: none;
  padding: 0;
  margin: 0 0 15px;
  /* font-size set above via calc() for font-scale support */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px 10px;
  color: var(--tc-green-dark);
}

.tc-footer-links li {
  display: inline;
}

.tc-footer-links a {
  color: var(--tc-green-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

.tc-footer-links a:hover {
  color: var(--tc-accent-color);
  text-decoration: underline;
}

.tc-copyright {
  /* font-size set above via calc() for font-scale support */
  font-style: normal;
  color: var(--tc-green-dark);
  margin-top: 15px;
  line-height: 1.5;
  border-top: 1px dotted #bcd8ab;
  padding-top: 15px;
}

.tc-footer-bottom {
  height: 5px;
  background-color: var(--tc-green-border);
  width: 100%;
}

/* --- Responsive Layout (Tablet & Mobile) --- */
@media screen and (max-width: 768px) {
  .tc-header-content {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
  }

  .tc-header-left {
    align-items: center;
  }

  .tc-tagline {
    text-align: center;
    margin-top: 3px;
  }

  .tc-header-right {
    align-items: center;
  }

  .tc-tel-wrap {
    margin-bottom: 5px;
  }

  .tc-header-right-under {
    justify-content: center;
    gap: 10px;
  }

  .tc-pagetop a img {
    width: 80px;
    height: auto;
  }

  .tc-footer-links {
    gap: 4px 6px;
  }
}

@media screen and (max-width: 480px) {
  .tc-header-title {
    text-align: center;
  }

  .tc-footer-links {
    flex-direction: column;
    gap: 6px;
  }
  
  .tc-footer-links li {
    display: block;
  }
  
  /* Hide the vertical separators | on tiny mobile screens */
  .tc-footer-links {
    color: transparent;
  }
  .tc-footer-links a {
    display: inline-block;
  }
}