/*
Theme Name:Ogasawara Green Co.Ltd
Theme URI: https://ogasawara-green.co.jp
Author: Gutz Creative
Author URI: https://gutz.jp
Description: Ogasawara Green Theme by Gutz
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
Version: 1.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: Gutz
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
*/


/**
1. Normalize
2. Theme Specific CSS
*/


/* 1. Normalize */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
   ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */

 html {
    line-height: 1.15; /* 1 */
    -webkit-text-size-adjust: 100%; /* 2 */
  }
  
  /* Sections
     ========================================================================== */
  
  /**
   * Remove the margin in all browsers.
   */
  
  body {
    margin: 0;
  }
  
  /**
   * Render the `main` element consistently in IE.
   */
  
  main {
    display: block;
  }
  
  /**
   * Correct the font size and margin on `h1` elements within `section` and
   * `article` contexts in Chrome, Firefox, and Safari.
   * 
   * Note: h1 styles are defined in theme-specific CSS (line 443),
   * so this normalize rule is removed to avoid conflicts.
   */
  
  /* Grouping content
     ========================================================================== */
  
  /**
   * 1. Add the correct box sizing in Firefox.
   * 2. Show the overflow in Edge and IE.
   */
  
  hr {
    box-sizing: content-box; /* 1 */
    height: 0; /* 1 */
    overflow: visible; /* 2 */
  }
  
  /**
   * 1. Correct the inheritance and scaling of font size in all browsers.
   * 2. Correct the odd `em` font sizing in all browsers.
   */
  
  pre {
    font-family: monospace, monospace; /* 1 */
    font-size: 1em; /* 2 */
  }
  
  /* Text-level semantics
     ========================================================================== */
  
  /**
   * Remove the gray background on active links in IE 10.
   */
  
  a {
    background-color: transparent;
  }
  
  /**
   * 1. Remove the bottom border in Chrome 57-
   * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
   */
  
  abbr[title] {
    border-bottom: none; /* 1 */
    text-decoration: underline; /* 2 */
    text-decoration: underline dotted; /* 2 */
  }
  
  /**
   * Add the correct font weight in Chrome, Edge, and Safari.
   */
  
  b,
  strong {
    font-weight: bolder;
  }
  
  /**
   * 1. Correct the inheritance and scaling of font size in all browsers.
   * 2. Correct the odd `em` font sizing in all browsers.
   */
  
  code,
  kbd,
  samp {
    font-family: monospace, monospace; /* 1 */
    font-size: 1em; /* 2 */
  }
  
  /**
   * Add the correct font size in all browsers.
   */
  
  small {
    font-size: 80%;
  }
  
  /**
   * Prevent `sub` and `sup` elements from affecting the line height in
   * all browsers.
   */
  
  sub,
  sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
  }
  
  sub {
    bottom: -0.25em;
  }
  
  sup {
    top: -0.5em;
  }
  
  /* Embedded content
     ========================================================================== */
  
  /**
   * Remove the border on images inside links in IE 10.
   */
  
  img {
    border-style: none;
  }
  
  /* Forms
     ========================================================================== */
  
  /**
   * 1. Change the font styles in all browsers.
   * 2. Remove the margin in Firefox and Safari.
   */
  
  button,
  input,
  optgroup,
  select,
  textarea {
    font-family: inherit; /* 1 */
    font-size: 100%; /* 1 */
    line-height: 1.15; /* 1 */
    margin: 0; /* 2 */
  }
  
  /**
   * Show the overflow in IE.
   * 1. Show the overflow in Edge.
   */
  
  button,
  input { /* 1 */
    overflow: visible;
  }
  
  /**
   * Remove the inheritance of text transform in Edge, Firefox, and IE.
   * 1. Remove the inheritance of text transform in Firefox.
   */
  
  button,
  select { /* 1 */
    text-transform: none;
  }
  
  /**
   * Correct the inability to style clickable types in iOS and Safari.
   */
  
  button,
  [type="button"],
  [type="reset"],
  [type="submit"] {
    -webkit-appearance: button;
  }
  
  /**
   * Remove the inner border and padding in Firefox.
   */
  
  button::-moz-focus-inner,
  [type="button"]::-moz-focus-inner,
  [type="reset"]::-moz-focus-inner,
  [type="submit"]::-moz-focus-inner {
    border-style: none;
    padding: 0;
  }
  
  /**
   * Restore the focus styles unset by the previous rule.
   */
  
  button:-moz-focusring,
  [type="button"]:-moz-focusring,
  [type="reset"]:-moz-focusring,
  [type="submit"]:-moz-focusring {
    outline: 1px dotted ButtonText;
  }
  
  /**
   * Correct the padding in Firefox.
   */
  
  fieldset {
    padding: 0.35em 0.75em 0.625em;
  }
  
  /**
   * 1. Correct the text wrapping in Edge and IE.
   * 2. Correct the color inheritance from `fieldset` elements in IE.
   * 3. Remove the padding so developers are not caught out when they zero out
   *    `fieldset` elements in all browsers.
   */
  
  legend {
    box-sizing: border-box; /* 1 */
    color: inherit; /* 2 */
    display: table; /* 1 */
    max-width: 100%; /* 1 */
    padding: 0; /* 3 */
    white-space: normal; /* 1 */
  }
  
  /**
   * Add the correct vertical alignment in Chrome, Firefox, and Opera.
   */
  
  progress {
    vertical-align: baseline;
  }
  
  /**
   * Remove the default vertical scrollbar in IE 10+.
   */
  
  textarea {
    overflow: auto;
  }
  
  /**
   * 1. Add the correct box sizing in IE 10.
   * 2. Remove the padding in IE 10.
   */
  
  [type="checkbox"],
  [type="radio"] {
    box-sizing: border-box; /* 1 */
    padding: 0; /* 2 */
  }
  
  /**
   * Correct the cursor style of increment and decrement buttons in Chrome.
   */
  
  [type="number"]::-webkit-inner-spin-button,
  [type="number"]::-webkit-outer-spin-button {
    height: auto;
  }
  
  /**
   * 1. Correct the odd appearance in Chrome and Safari.
   * 2. Correct the outline style in Safari.
   */
  
  [type="search"] {
    -webkit-appearance: textfield; /* 1 */
    outline-offset: -2px; /* 2 */
  }
  
  /**
   * Remove the inner padding in Chrome and Safari on macOS.
   */
  
  [type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
  }
  
  /**
   * 1. Correct the inability to style clickable types in iOS and Safari.
   * 2. Change font properties to `inherit` in Safari.
   */
  
  ::-webkit-file-upload-button {
    -webkit-appearance: button; /* 1 */
    font: inherit; /* 2 */
  }
  
  /* Interactive
     ========================================================================== */
  
  /*
   * Add the correct display in Edge, IE 10+, and Firefox.
   */
  
  details {
    display: block;
  }
  
  /*
   * Add the correct display in all browsers.
   */
  
  summary {
    display: list-item;
  }
  
  /* Misc
     ========================================================================== */
  
  /**
   * Add the correct display in IE 10+.
   */
  
  template {
    display: none;
  }
  
  /**
   * Add the correct display in IE 10.
   */
  
  [hidden] {
    display: none;
  }

/* ==========================================================================
   2. Theme Specific CSS
   ========================================================================== */

/* ==========================================================================
   CSS Variables
   ========================================================================== */

:root {
  /* Admin Bar */
  --global--admin-bar--height: 0;

  /* Fonts */
  --green-zenkaku: "Zen Kaku Gothic New", sans-serif;
  --green-shippori: "Shippori Mincho", serif;

  /* Colors */
  --green-main-text: #101010;
  --green-main-text-hover: #646464;
  --green-dark-green: #006837;
  --green-medium-green: #008400;
  --green-medium-green2: #155e00;
  --green-light-green: #81d742;
  --green-border-gray: rgba(0, 0, 0, 0.06);
  --green-medium-gray: #c9caca;
  --green-light-gray: #f6f6f6;
  --green-circles-yellow: #F9E780;
  --green-circles-green: #A7C957;
  --green-circles-blue: #83D9FF;
  --green-circles-white: #f2f2f2;
}

.admin-bar {
  --global--admin-bar--height: 32px;
}

@media only screen and (max-width: 782px) {
  .admin-bar {
    --global--admin-bar--height: 46px;
  }
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

/* Typography */
html {
  font-size: 15px;
  overflow-x: hidden; /* Prevent horizontal scroll at root level */
}

@media (min-width: 1200px) {
  html {
    font-size: 16px;
  }
}

body {
  font-size: 1rem;
  font-family: var(--green-zenkaku);
  font-weight: 400;
  font-style: normal;
  line-height: 1.9;
  color: var(--green-main-text);
  overflow-x: hidden; /* Prevent horizontal scroll at body level */
}

/* Headings */
h1 {
  font-size: 2rem;
  font-weight: 500;
}

h2 {
  font-size: 1.5rem;
  font-weight: 500;
}

h3 {
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0.7em 0;
}

h4, h5, h6 {
  font-size: 1rem;
  font-weight: 500;
}

/* Paragraphs and Text */
p, h4, h5, h6 {
  padding-left: 1rem;
  padding-right: 0.5rem;
}

/* Links */
a {
  color: var(--green-main-text);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 2px;
  text-decoration-color: rgba(0, 0, 0, 0.3);
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--green-main-text-hover);
} 

/* ==========================================================================
   Header
   ========================================================================== */

/* Header Base */
header {
  position: relative;
  height: 68px;
  margin: 0;
  z-index: 50;
}

.header-wrapper {
  position: relative;
  width: 100%;
  height: 68px;
  background-color: white;
  border-bottom: 1px solid var(--green-border-gray);
  transition: all cubic-bezier(0.79, 0.14, 0.15, 0.86) 0.5s;
}

.header-fixed {
  position: fixed;
  height: 100% !important;
  overflow: scroll;
}

.header-container {
  position: relative;
  width: auto;
  height: 68px;
  margin: 0 auto;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
}

/* Logo */
.main-logo {
  position: absolute;
  top: 4px;
  left: 10px;
  white-space: nowrap;
}

.logo-mark,
.logo-type {
  display: inline-block;
}

.logo-mark img {
  width: 48px;
}

.logo-type img {
  width: 170px;
}

/* Contact Button */
.contact {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 5px;
  background: var(--green-dark-green);
  border-radius: 0.4em;
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
}

.contact a {
  display: block;
  color: white;
  text-decoration: none;
  transition: 0.3s all;
}

.contact a:hover {
  color: #E6E6E6;
}

/* Main Menu */
.main-menu {
  position: absolute;
  top: 68px;
  left: 0;
  width: 100%;
  height: 0;
  overflow: hidden;
  z-index: 20;
}

.show-menu {
  height: auto;
}

.menu-ul {
  display: flex;
  flex-direction: column;
  justify-content: start;
  max-width: 540px;
  margin: 18px auto;
  padding: 0 18px;
  list-style-type: none;
}

.primary-menu li {
  position: relative;
}

.primary-menu ul li a {
  display: block;
  color: var(--green-main-text);
  max-width: 510px;
  margin: auto;
  padding: 10px;
  text-decoration: none;
  border-bottom: 1px solid #ddd;
}

.primary-menu ul li a:hover {
  color: var(--green-main-text-hover);
}

/* Sub Menu */
.primary-menu .sub-menu {
  display: flex;
  flex-direction: column;
  max-height: 0;
  padding-left: 0;
  list-style-type: none;
  overflow: hidden;
  opacity: 0;
  z-index: 25;
}

.primary-menu .sub-menu li {
  display: block;
  margin-left: 0;
  padding: 0;
  background-color: rgb(255 255 255 / 90%);
  transition: 0.8s;
}

.primary-menu .sub-menu li a {
  margin-left: 1.5em;
}

.primary-menu .show-sub {
  max-height: 80vh;
  opacity: 1;
  transition: max-height 0.5s ease-in;
}

/* Sub Sub Menu */
.sub-sub-menu {
  position: unset;
  display: flex;
  flex-direction: column;
  max-height: 0;
  list-style-type: none;
  padding-left: 0;
  opacity: 0;
}

.show-sub-sub {
  max-height: 80vh;
  transition: max-height 0.5s ease-in;
  opacity: 1;
}

.primary-menu .sub-sub-menu li {
  background-color: unset;
  padding-left: 0;
  list-style-type: none;
}

.primary-menu .sub-sub-menu li a {
  margin-left: 3em;
}

/* Menu Toggle Button */
.menu-item-has-children .submenu-toggle-button {
  background: url("../images/nav-menu-icon-open.svg") center 50% no-repeat;
  display: block;
  position: absolute;
  z-index: 30;
  right: 8px;
  top: 0;
  width: 1.5em;
  height: 1.5em;
  margin: 0.6em 0.5em;
  border: 1px solid var(--green-main-text);
  border-radius: 2px;
  cursor: pointer;
}

.menu-item-has-children .toggle-button-active {
  background: url("../images/nav-menu-icon-close.svg") center 50% no-repeat;
}

/* Menu Triangle Indicator */
.menu-ul > li > a:hover::before,
.menu-ul > .current_page_item > a:before {
  position: absolute;
  left: 1px;
  top: 16px;
  content: '';
  height: 8px;
  aspect-ratio: cos(30deg);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  background-color: var(--green-dark-green);
}

.sub-menu > li > a:hover::before,
.sub-menu > .current_page_item > a:before {
  position: absolute;
  left: 18px;
  top: 16px;
  content: '';
  height: 8px;
  aspect-ratio: cos(30deg);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  background-color: var(--green-dark-green);
}

.sub-sub-menu > li > a:hover::before,
.sub-sub-menu > .current_page_item > a:before {
  position: absolute;
  left: 36px;
  top: 16px;
  content: '';
  height: 8px;
  aspect-ratio: cos(30deg);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  background-color: var(--green-dark-green);
}

.sub-menu.sub-menu > .current_page_parent > a:before {
  position: absolute;
  left: 17px;
  top: 16px;
  content: '';
  height: 7px;
  aspect-ratio: 1/cos(30deg);
  clip-path: polygon(50% 100%, 100% 0, 0 0);
  background-color: var(--green-dark-green);
}

.menu-ul.menu-ul > .current_page_ancestor > a:before {
  position: absolute;
  left: 0;
  top: 16px;
  content: '';
  height: 7px;
  aspect-ratio: 1/cos(30deg);
  clip-path: polygon(50% 100%, 100% 0, 0 0);
  background-color: var(--green-dark-green);
}

/* Hamburger Menu */
.menu-icon,
.check-button {
  position: absolute;
  top: 18px;
  right: 5px;
  cursor: pointer;
  display: block;
  line-height: 0;
  z-index: 35;
}

.check-button {
  border: none;
  background: transparent;
}

.menu-icon .bar1,
.menu-icon .bar2,
.menu-icon .bar3 {
  width: 28px;
  height: 2px;
  background-color: var(--green-main-text);
  margin: 6px 0;
  transition: 0.4s;
}

.animate-button .bar1 {
  -webkit-transform: rotate(-45deg) translate(-4px, 4px);
  transform: rotate(-45deg) translate(-4px, 4px);
}
.animate-button .bar2 {
  opacity: 0;
}

.animate-button .bar3 {
  -webkit-transform: rotate(45deg) translate(-7px, -7px);
  transform: rotate(45deg) translate(-7px, -7px);
}

.main-menu .show-sub {
  max-height: 80vh;
  opacity: 1;
  transition: max-height 0.5s ease-in;
}

/* Header Responsive */
@media (min-width: 400px) {
  .main-logo{
    top: 7px;
  }
  .logo-mark img{
    width: 51px;
  }
  .logo-type img{
    width: 174px;
  }
  .contact{
    right: 15px;
  }
  .menu-icon,
  .check-button {
  position: absolute;
  right: 10px;
  }
}


@media (min-width: 576px) {
  header, .header-wrapper{
    height: 72px;
  }

  .header-container {
    max-width: 570px;
    height: 72px;
  }
  .logo-mark img{
    width: 60px;
  }
  .logo-type{
    margin-left: 2px;
  }
  .logo-type img{
    width: 222px;
  }
  .main-menu {
  top: 72px;
  }
  .menu-ul {
  padding: 0px;
}
  .menu-icon,
  .check-button {
   top: 20px;
  }
  .menu-ul > li > a:hover::before, 
  .menu-ul > .current_page_item > a:before {
    position: absolute;
    left: 4px;
  }
  .menu-ul.menu-ul > .current_page_ancestor > a:before {
  left: 3px;
  }
  .contact {
    top: 12px;
    font-size: 14px;
  }
}

@media (min-width: 768px) {
  .header-container {
    max-width: 750px;
  }
  .menu-ul {
    max-width: 720px;
    padding: 0px;
  }
  .primary-menu ul li a{
    max-width: 690px;
    padding: 15px 10px;
  }
  .menu-ul > li > a:hover::before,
  .menu-ul > .current_page_item > a:before {
  left: 5px;
  top: 21px;
  }

  .sub-menu > li > a:hover::before,
  .sub-menu > .current_page_item > a:before {
    left: 19px;
    top: 21px;
  }
  .sub-sub-menu > li > a:hover::before,
  .sub-sub-menu > .current_page_item > a:before {
    top: 21px;
  }
  .sub-menu.sub-menu > .current_page_parent > a:before {
    left: 18px;
    top: 21px;
  }
  .menu-ul.menu-ul > .current_page_ancestor > a:before {
    top: 21px;
    left: 4px;
  }
  .menu-item-has-children .submenu-toggle-button {
    margin: 0.9em 0.5em;;
  }
}

@media (min-width: 992px) {
  .header-container {
    max-width: 990px;
    font-size: 14px;
  }
  .main-menu {
    top: 48px;
    right: 9px;
    left: unset;
    width: max-content;
    height: auto;
    overflow: visible;
    background: none;
  }
  .menu-ul {
    flex-direction: row;
    height: max-content;
    max-width: unset;
    margin: 0px;
    padding: 0px;
  } 
  .primary-menu ul li a {
    margin: 0px 10px 9px 10px;
    padding: 0px;
    border: none;
  }

  .primary-menu .sub-menu {
    position: absolute;
    width: max-content;
    top: 25px;
    left: 0;
    height: 0;
    max-height: unset;
    transform: translateY(-8%);
    transition: 0.8s;
    z-index: 40;
  }

  .primary-menu .sub-menu li a {
    margin: 0;
    padding: 8px 13px 8px 18px;
    border-bottom: 1px solid #ddd;
  }

  .primary-menu .sub-menu .sub-sub-menu li a{
    padding-left: 28px;
  }
  .menu-icon,
  .check-button {
		display: none;
	}
  .menu-ul > .menu-item-has-children > .submenu-toggle-button {
    display: none;
  }
  .menu-ul > .menu-item-has-children > a:after {
    font-family: 'FontAwesome';
    content: '\f078';
    font-size: 10px;
    vertical-align: 1px;
    margin-left: 4px;
  }

  .primary-menu li:hover .sub-menu {
    height: auto;
    transform: translateY(0);
    opacity: 1;
  }
  
  .primary-menu .show-sub {
    height: auto;
    transform: translateY(0);
    opacity: 1;
  }
  .menu-item-has-children .submenu-toggle-button {
    right: 0;  
    width: 1.4em;
    height: 1.4em;
    margin: 0.53em 0.4em;
  }

  .menu-ul.menu-ul > li > a:before {
    position: absolute;
    content: "";
    top: 19px;
    left: 8px;
    width: calc(100% - 18px);
    height: 2px;
    background: var(--green-dark-green);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s;
    aspect-ratio: unset;
    clip-path: unset;
  }
  .menu-ul li:hover > a:before {
    transform: scaleX(1);
    transform-origin: left;
  }
  
   .menu-ul.menu-ul > .current_page_item > a:before,
   .menu-ul.menu-ul > .current_page_ancestor > a:before{
    position: absolute;
    content: "";
    top: 19px;
    left: 8px;
    width: calc(100% - 18px);
    height: 2px;
    background: var(--green-dark-green);
    transform: scaleX(1);
    aspect-ratio: unset;
    clip-path: unset;
  }
  .sub-menu > li > a:hover::before,
  .sub-menu > .current_page_item > a:before {
    left: 7px;
    top: 14px;
  }
  .sub-sub-menu > li > a:hover::before,
  .sub-sub-menu > .current_page_item > a:before {
  left: 16px;
  top: 14px;
  }
  .sub-menu.sub-menu > .current_page_parent > a:before {
    left: 7px;
    top: 14px;
  }
}
@media (min-width: 1200px) {
  header, .header-wrapper {
    height: 78px;
  }
  .header-container {
    max-width: 1170px;
    height: 78px;
    font-size: 15px;
  }
  .main-menu {
    top: 52px;
  }
  .primary-menu ul li a {
  margin-bottom: 10px;
  }
  .main-logo {
    top: 4px;
    left: 5px;
  }
  .logo-mark img{
    width: 70px;
  }
  .logo-type img{
    width: 245px;
    margin-bottom: 2px;
  }

  .primary-menu .sub-menu {
    top: 27px;
  }
  .menu-ul.menu-ul > li > a:before {
    top: 21px;
  }
   .menu-ul.menu-ul > .current_page_item > a:before,
   .menu-ul.menu-ul > .current_page_ancestor > a:before{
    top: 21px;
  }
}

/* ==========================================================================
   Contents
   ========================================================================== */
/* Front Page Hero Section*/

.hero {
  position: relative;
  background: url("../images/hero-kasayama.jpg") 50% center no-repeat;
  background-size: cover;
  width: 100%;
  max-width: 100vw; /* Prevent overflow */
  height: calc(100vh - 78px);
  opacity: 0;
  transition: opacity 1s ease;
  overflow: hidden; /* Hide any overflow content */
}

.hero.is-ready {
  opacity: 1;
}

.natural-heritage{
  position: absolute;
  top: 15px;
  right: 12px;
  width: 120px;
  filter: drop-shadow(0px 3px 10px rgba(8, 8, 8, 0.8)); 
  -webkit-filter: drop-shadow(0px 3px 10px rgba(8, 8, 8, 0.8));
  z-index: 10;
}

/* Hero text - use h1.hero-text-h1 for higher specificity to override h1 base styles */
h1.hero-text-h1,
.hero-text-h1 {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 43%;
  left: 50%;
  font-family: "Shippori Mincho", serif;
  font-size: clamp(18px, 7vw, 28px);
  font-weight: 600;
  text-align: center;
  line-height: 1.8;
  white-space: nowrap;
  color: #fff;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0px 3px 3px rgba(8, 8, 8, 0.8)); 
  -webkit-filter: drop-shadow(0px 3px 3px rgba(8, 8, 8, 0.8));
  z-index: 11;
  max-width: calc(100vw - 30px); /* Account for padding */
  width: auto;
}

/* Prevent hero text from causing horizontal scroll on small screens */
@media (max-width: 510px) {
  h1.hero-text-h1,
  .hero-text-h1 {
    max-width: calc(100vw - 30px);
    font-size: clamp(16px, 6vw, 26px); /* Smaller font on very small screens */
  }
}

.hero-image01 {
  background: url("../images/hero-image01.png") center 50% no-repeat;
  background-size: cover;
  position: absolute;
  top: 12%;
  right: 16%;
  width: 112px;
  height: 116px;
  filter: drop-shadow(0px 3px 3px rgba(8, 8, 8, 0.8)); 
  -webkit-filter: drop-shadow(0px 3px 3px rgba(8, 8, 8, 0.8));
  z-index: 1;
  will-change: transform;
  animation: floatHero1 24s ease-in-out infinite alternate;
}

.hero-image02 {
  background: url("../images/hero-image02.png") center 50% no-repeat;
  background-size: cover;
  position: absolute;
  bottom: 18%;
  right: 5%;
  width: 143px;
  height: 132px;
  filter: drop-shadow(0px 3px 3px rgba(8, 8, 8, 0.8)); 
  -webkit-filter: drop-shadow(0px 3px 3px rgba(8, 8, 8, 0.8));
  z-index: 1;
  will-change: transform;
  animation: floatHero2 28s ease-in-out infinite alternate;
  animation-delay: 1.3s;
}

.hero-image03 {
  background: url("../images/hero-image03.png") center 50% no-repeat;
  background-size: cover;
  position: absolute;
  bottom: 5%;
  left: 5%;
  width: 155px;
  height: 152px;
  filter: drop-shadow(0px 3px 3px rgba(8, 8, 8, 0.8)); 
  -webkit-filter: drop-shadow(0px 3px 3px rgba(8, 8, 8, 0.8));
  z-index: 1;
  will-change: transform;
  animation: floatHero3 26s ease-in-out infinite alternate;
  animation-delay: 0.8s;
}

@keyframes floatHero1 {
  0% { transform: translate(0px, 0px) rotate(0deg); }
  20% { transform: translate(8px, -10px) rotate(0.6deg); }
  40% { transform: translate(-6px, 7px) rotate(-0.8deg); }
  60% { transform: translate(10px, 5px) rotate(1.2deg); }
  80% { transform: translate(-7px, -8px) rotate(-0.6deg); }
  100% { transform: translate(0px, 0px) rotate(0deg); }
}

@keyframes floatHero2 {
  0% { transform: translate(0px, 0px) rotate(0deg); }
  15% { transform: translate(12px, -8px) rotate(1.2deg); }
  35% { transform: translate(-9px, 6px) rotate(-1deg); }
  55% { transform: translate(14px, 9px) rotate(1.6deg); }
  75% { transform: translate(-11px, -7px) rotate(-1.2deg); }
  100% { transform: translate(0px, 0px) rotate(0deg); }
}

@keyframes floatHero3 {
  0% { transform: translate(0px, 0px) rotate(0deg); }
  25% { transform: translate(10px, -12px) rotate(0.8deg); }
  45% { transform: translate(-8px, 9px) rotate(-1.1deg); }
  70% { transform: translate(13px, 6px) rotate(1.4deg); }
  90% { transform: translate(-10px, -9px) rotate(-0.9deg); }
  100% { transform: translate(0px, 0px) rotate(0deg); }
}

@keyframes particleDriftMore {
  0% { transform: translate(0px, 0px) rotate(0deg); }
  20% { transform: translate(12px, -10px) rotate(8deg); }
  40% { transform: translate(-10px, 12px) rotate(16deg); }
  60% { transform: translate(14px, 10px) rotate(22deg); }
  80% { transform: translate(-12px, -11px) rotate(14deg); }
  100% { transform: translate(0px, 0px) rotate(0deg); }
}

@keyframes fireflyScale {
  0% { transform: translate(0,0) scale(0.9); }
  25% { transform: translate(0,0) scale(1.15); }
  50% { transform: translate(0,0) scale(0.85); }
  75% { transform: translate(0,0) scale(1.2); }
  100% { transform: translate(0,0) scale(0.95); }
}

@keyframes fireflyBlink {
  0% { opacity: 0.9; }
  10% { opacity: 0.4; }
  20% { opacity: 1; }
  35% { opacity: 0; }
  50% { opacity: 0.8; }
  65% { opacity: 0.2; }
  80% { opacity: 1; }
  100% { opacity: 0.9; }
}
/* multiple path variants to simulate randomness */
@keyframes particlePath1 {
  0% { transform: translate(0px, 0px) rotate(0deg); }
  20% { transform: translate(10px, -9px) rotate(6deg); }
  45% { transform: translate(-8px, 12px) rotate(12deg); }
  70% { transform: translate(12px, 7px) rotate(18deg); }
  100% { transform: translate(0px, 0px) rotate(0deg); }
}
@keyframes particlePath2 {
  0% { transform: translate(0px, 0px) rotate(0deg); }
  18% { transform: translate(-12px, -6px) rotate(-5deg); }
  42% { transform: translate(9px, 11px) rotate(9deg); }
  76% { transform: translate(-11px, 8px) rotate(-14deg); }
  100% { transform: translate(0px, 0px) rotate(0deg); }
}
@keyframes particlePath3 {
  0% { transform: translate(0px, 0px) rotate(0deg); }
  22% { transform: translate(8px, 10px) rotate(7deg); }
  50% { transform: translate(-10px, -9px) rotate(-10deg); }
  84% { transform: translate(6px, -12px) rotate(13deg); }
  100% { transform: translate(0px, 0px) rotate(0deg); }
}
@keyframes particlePath4 {
  0% { transform: translate(0px, 0px) rotate(0deg); }
  25% { transform: translate(-9px, 12px) rotate(8deg); }
  55% { transform: translate(12px, -7px) rotate(-9deg); }
  82% { transform: translate(-7px, -11px) rotate(11deg); }
  100% { transform: translate(0px, 0px) rotate(0deg); }
}
@keyframes particlePath5 {
  0% { transform: translate(0px, 0px) rotate(0deg); }
  28% { transform: translate(11px, 6px) rotate(6deg); }
  52% { transform: translate(-12px, 10px) rotate(-12deg); }
  90% { transform: translate(8px, -10px) rotate(15deg); }
  100% { transform: translate(0px, 0px) rotate(0deg); }
}
 
.circle-ornaments {
  list-style: none;
  padding-left: 0;
  margin:0;
}
.circle-ornaments div {
  position: absolute;
  border-radius: 50%;
  z-index: 5;
  will-change: transform, opacity;
  opacity: 0.9;
  animation: particlePath1 24s cubic-bezier(.42,.0,.58,1) infinite alternate-reverse, fireflyScale 8s ease-in-out infinite alternate, fireflyBlink 10s ease-in-out infinite;
}

.circles01 div:nth-child(1) {
  top: 15%;
  right: 29%;
  width: 27px;
  height: 27px;
  background-color: var(--green-circles-green);
  animation-name: particlePath1, fireflyScale, fireflyBlink;
  animation-duration: 22s, 6s, 9s;
  animation-delay: -0.5s, 0.3s, 0.1s;
  animation-timing-function: ease-in-out, ease-in-out, ease-in-out;
  transform-origin: -10px 6px;
}
.circles01 div:nth-child(2) {
  top: 21%;
  right: 14%;
  width: 12px;
  height: 12px;
  background-color: var(--green-circles-yellow);
  animation-name: particlePath2, fireflyScale, fireflyBlink;
  animation-duration: 28s, 7s, 11s;
  animation-delay: 1.2s, -0.4s, 0.6s;
  animation-timing-function: cubic-bezier(.55,.06,.68,.19), ease-in-out, ease-in-out;
  transform-origin: 8px -12px;
}

.circles01 div:nth-child(3) {
  top: 30%;
  right: 30%;
  width: 19px;
  height: 19px;
  background-color: var(--green-circles-white);
  animation-name: particlePath3, fireflyScale, fireflyBlink;
  animation-duration: 24s, 5.5s, 13s;
  animation-delay: -1.1s, 0s, -0.3s;
  animation-timing-function: ease, ease-in-out, ease-in-out;
  transform-origin: 6px 10px;
}
.circles01 div:nth-child(4) {
  top: 36%;
  right: 16%;
  width: 12px;
  height: 12px;
  background-color: var(--green-circles-blue);
  animation-name: particlePath4, fireflyScale, fireflyBlink;
  animation-duration: 30s, 6.5s, 8s;
  animation-delay: 0.6s, 0.2s, -0.6s;
  animation-timing-function: cubic-bezier(.25,.46,.45,.94), ease-in-out, ease-in-out;
  transform-origin: -8px -6px;
}

.circles02 div:nth-child(1) {
  bottom: 45%;
  right: 23%;
  width: 26px;
  height: 26px;
  background-color: var(--green-circles-blue);
  animation-name: particlePath5, fireflyScale, fireflyBlink;
  animation-duration: 25s, 7s, 12s;
  animation-delay: -0.8s, 0.1s, 0.5s;
  animation-timing-function: ease-in-out, ease-in-out, ease-in-out;
  transform-origin: 12px 4px;
}
.circles02 div:nth-child(2) {
  bottom: 30%;
  right: 28%;
  width: 15px;
  height: 15px;
  background-color: var(--green-circles-green);
  animation-name: particlePath2, fireflyScale, fireflyBlink;
  animation-duration: 31s, 6.2s, 9.5s;
  animation-delay: 0.9s, -0.2s, 0.8s;
  animation-timing-function: ease, ease-in-out, ease-in-out;
  transform-origin: -6px 9px;
}

.circles02 div:nth-child(3) {
  bottom: 23%;
  right: 9%;
  width: 14px;
  height: 14px;
  background-color: var(--green-circles-white);
  animation-name: particlePath3, fireflyScale, fireflyBlink;
  animation-duration: 26s, 5.8s, 10.5s;
  animation-delay: -1.4s, 0.4s, -0.9s;
  animation-timing-function: cubic-bezier(.55,.06,.68,.19), ease-in-out, ease-in-out;
  transform-origin: 5px -10px;
}
.circles02 div:nth-child(4) {
  bottom: 13%;
  right: 24%;
  width: 22px;
  height: 22px;
  background-color: var(--green-circles-yellow);
  animation-name: particlePath4, fireflyScale, fireflyBlink;
  animation-duration: 29s, 6.7s, 8.8s;
  animation-delay: 0.3s, -0.1s, 0.2s;
  animation-timing-function: ease-in, ease-in-out, ease-in-out;
  transform-origin: -11px 3px;
}

.circles03 div:nth-child(1) {
  bottom: 20%;
  left: 29%;
  width: 20px;
  height: 20px;
  background-color: var(--green-circles-yellow);
  animation-name: particlePath1, fireflyScale, fireflyBlink;
  animation-duration: 27s, 6.4s, 10.2s;
  animation-delay: -0.7s, 0.2s, -0.2s;
  animation-timing-function: ease-in-out, ease-in-out, ease-in-out;
  transform-origin: 7px -8px;
}
.circles03 div:nth-child(2) {
  bottom: 48%;
  left: 23%;
  width: 24px;
  height: 24px;
  background-color: var(--green-circles-white);
  animation-name: particlePath5, fireflyScale, fireflyBlink;
  animation-duration: 23s, 5.9s, 9.7s;
  animation-delay: 1.1s, -0.5s, 0.4s;
  animation-timing-function: ease, ease-in-out, ease-in-out;
  transform-origin: -5px 11px;
}

.circles03 div:nth-child(3) {
  bottom: 40%;
  left: 16%;
  width: 14px;
  height: 14px;
  background-color: var(--green-circles-green);
  animation-name: particlePath2, fireflyScale, fireflyBlink;
  animation-duration: 28s, 6.1s, 12.6s;
  animation-delay: -1.2s, 0.1s, -0.4s;
  animation-timing-function: cubic-bezier(.25,.46,.45,.94), ease-in-out, ease-in-out;
  transform-origin: 9px -7px;
}
.circles03 div:nth-child(4) {
  bottom: 60%;
  left: 17%;
  width: 17px;
  height: 17px;
  background-color: var(--green-circles-blue);
  animation-name: particlePath4, fireflyScale, fireflyBlink;
  animation-duration: 32s, 7.2s, 11.4s;
  animation-delay: 0.4s, -0.3s, 0.7s;
  animation-timing-function: ease-in, ease-in-out, ease-in-out;
  transform-origin: -10px -9px;
}


@media (min-width: 576px) {
  h1.hero-text-h1,
  .hero-text-h1 {
    font-size: 30px;
  }
  .natural-heritage{
    width: 126px;
    top: 20px;
    right: 20px;
  }
}

@media (min-width: 768px) {
  .natural-heritage{
    width: 147px;
    top: 25px;
    right: 25px;
  }

  h1.hero-text-h1,
  .hero-text-h1 {
    font-size: 38px;
    line-height: 1.6;
  }
  .hero-image01 {
    width: 140px;
    height: 144px;
  }
  .hero-image02 {
    width: 190px;
    height: 175px;
  }
  .hero-image03 {
  width: 234px;
  height: 229px;
  }
}
@media (min-width: 992px) {
  .natural-heritage{
    top:30px;
    right:30px;
  }
  h1.hero-text-h1,
  .hero-text-h1 {
    font-size: 43px;
  }
}

@media (min-width: 1200px) {
  .natural-heritage {
    top: 40px;
    right: 40px;
    width: 170px;
  }

  h1.hero-text-h1,
  .hero-text-h1 {
    top: 43%;
    left: 49%;
    font-size: 45px;
  }
  
  .hero-image01 {
    width: 188px;
    height: 194px;
  }
  .hero-image02 {
    width: 256px;
    height: 236px;
  }
  .hero-image03 {
    width: 314px;
    height: 307px;
  }
}

/* ==========================================================================
   Pages
   ========================================================================== */
.site-width {
    position: relative;
    width: auto;
    margin: 0px auto;
    padding-left: 15px;
    padding-right: 15px;
}

.site-width p,
.site-width h4,
.site-width h5,
.site-width h6 {
    padding-left: 0;
    padding-right: 0;
}

.main-contents {
    position: relative;
    width: auto;
    margin: 0px auto;
    padding-left: 15px;
    padding-right: 15px;
    /* Removed overflow-x: hidden to prevent double scrollbar issue */
}

.main-contents p,
.main-contents h4,
.main-contents h5,
.main-contents h6 {
    padding-left: 0;
    padding-right: 0;
}


/* Front Page*/
.front-page {
  margin-top: 30px;
}

.front-page p{
 padding: 0;
}

#our-philosophy {
  margin-top: 3rem;
  margin-bottom: 4rem;
}

.home-two-column {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px; 
  text-align: center;
  align-items: center;
  margin-bottom: 3rem;
}

.grid-reverse {
  order: 1;
}

.home-p p {
  line-height: 2;
}

.home-p p span{
  display: inline-block;
}

/* Prevent horizontal overflow on small screens */
@media (max-width: 510px) {
  .home-p p span {
    display: inline;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  
  .home-p p {
    word-break: break-word;
    overflow-wrap: break-word;
  }
}

.home-two-column .philosopy-img {
  width: 95%;
  margin: 15px auto;
}

.home-two-column img {
  width: 100%;
  margin: auto;
}

.home-two-column p {
  order:2;
}

.home-three-column {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px; 
  justify-items: left;
  text-align: center;
  margin-top: 30px;
}

.one-stop-service {
  margin-top: 60px;
}
.one-stop-service-container {
  width: 100%;
}

.one-stop-service-container img{
  width: 167px;
  height: 167px;
}

.one-stop-service-text h3 {
  font-size: 1.125rem;
  }

.one-stop-service-text p {
  max-width: 400px;
  margin: auto;
  font-size: 0.94rem;
  text-align: left;
}

@media (min-width: 420px) {
  .home-two-column .philosopy-img {
    width: 70%;
  }
}

@media (min-width: 576px) {
  .main-contents,
  .site-width  {
    max-width: 540px;
  }
  .one-stop-service-container {
  display: flex;
  justify-content: space-around;
  gap: 30px;
  }
  .one-stop-service-text h3 {
  text-align: left;
  }
  .one-stop-service-text p {
    max-width: 500px;
  }
}
@media (min-width: 768px) {
  .main-contents,
  .site-width  {
    max-width: 720px;
  }

  .home-two-column .philosopy-img {
    width: 60%;
  }

  .home-two-column img {
    width: 90%;
  }
  /*.home-two-column {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .home-two-column img, .home-two-column p {
    order:unset;
  }
  .home-two-column .philosopy-img {
    width: 90%;
    margin: auto;
  }*/
}

@media (min-width: 992px) {
  .main-contents,
  .site-width  {
    max-width: 960px;
  }
  .home-two-column {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .grid-reverse {
    order:unset;
  }

  .home-two-column .philosopy-img {
    width: 80%;
  }
  .home-two-column img {
    width: 100%;
  }

  .home-three-column {
    grid-template-columns: 1fr 1fr 1fr;
    justify-items: center;
  }
  .one-stop-service-container {
  display: unset;
  width: auto;
  max-width: 300px;
  }
  .one-stop-service-text h3 {
  text-align: center;
  }  .home-three-column {
    grid-template-columns: 1fr 1fr 1fr;
    justify-items: center;
  }
  .one-stop-service-container {
  display: unset;
  width: auto;
  max-width: 300px;
  }
  .one-stop-service-text h3 {
  text-align: center;
  }
  .one-stop-service-container img{
  width: 210px;
  height: 210px;
  }
}
@media (min-width: 1200px) {
  .main-contents,
  .site-width {
    max-width: 1140px;
  }
  .one-stop-service-container {
    max-width: 330px;
    }
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s cubic-bezier(.2,.6,.2,1), transform .8s cubic-bezier(.2,.6,.2,1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
}


/* ==========================================================================
   Page Banner
   ========================================================================== */

.page-banner {
  position: relative;
  color: white;
  line-height: 0;
}

.banner-image {
  position: relative;
  overflow: hidden;
}

.banner-image img {
  width: 100%;
  height: auto;
  pointer-events: none;
  display: block;
}

/* Mobile: Increase banner image height (change aspect ratio) */
@media (max-width: 767px) {
  .banner-image {
    aspect-ratio: 16 / 10; /* More vertical than default 16:9 */
  }
  
  .banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
}

.banner-title { /* デフォルトタイトル共通 */
  font-family: var(--green-shippori);
  position: absolute;
  top: 50%;
  left: 50%;
  margin: 0;
  line-height: 1.2;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0px 3px 3px rgba(8, 8, 8, 0.8));
  -webkit-filter: drop-shadow(0px 3px 3px rgba(8, 8, 8, 0.8));
}

.custom-banner-title {/* カスタムタイトル共通 */
  width: fit-content;
  height: fit-content;
  font-size: 1.7rem;
  font-weight: 400;
  line-height: 1.3;
  white-space: nowrap;
  margin: 0;
  filter: drop-shadow(0px 3px 3px rgba(8, 8, 8, 0.8));
  -webkit-filter: drop-shadow(0px 3px 3px rgba(8, 8, 8, 0.8));
  z-index: 30;
}

.h1-bottom-right { /* 会社案内 */
  position: absolute;
  bottom: 5%;
  right: 3%;
  font-size: 2rem!important;
  font-weight: 300;
}

/* Tablet and Desktop: Larger font size */
@media (min-width: 768px) {
  .h1-bottom-right {
    font-size: 3rem!important;
  }
}

.custom-title-default{/* カスタムタイトル中央寄せ(仮） */
  font-family: var(--green-shippori);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.h1-company-profile { /* 会社案内 */
  font-family: var(--green-shippori);
  white-space: nowrap;
  position: absolute;
  top: 50%;
  left: 50%;
  text-align: center;
  transform: translate(-50%, -50%);
}

.h1-company-profile span { 
  display: block;
}

@media (min-width: 576px) {
  .h1-company-profile span{
  display: unset;
  }
}

@media (min-width: 768px) {
  .custom-banner-title {
    font-size: 2.1rem;
  }
}

.custom-title-img {/* カスタムタイトル画像共通 */
  pointer-events: none;
}

.custom-title-img img {
  width: 100%;
}

.h1-image-default{/* カスタムタイトル画像(デフォルト) */
  position: absolute;
  right: 2%;
  bottom: 1%;
  width: clamp(300px, 46%, 600px);
}

.takarajima-title-img {/* 東京宝島　 */
  position: absolute;
  right: 2%;
  bottom: 5%;
  width: clamp(330px, 50%, 600px);
}

.contact-title-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  filter: drop-shadow(0px 3px 3px rgba(8, 8, 8, 1));
  -webkit-filter: drop-shadow(0px 3px 3px rgba(8, 8, 8, 1));
}

/* ==========================================================================
   Company Profile
   ========================================================================== */
.company-profile {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

.company-profile th,
.company-history th {
  white-space: nowrap;
  vertical-align: top;
}

.map-container {
  position: relative;
  width: 100%;
  height: auto;
  padding-bottom: 75%;
  overflow: hidden;
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.company-history {
  margin: auto;
}

.company-history table {
  width: fit-content;
  margin: auto;
}

.company-history td {
  padding-left: 0.5em;
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-info {
  background-color: var(--green-light-gray);
  max-width: 800px;
  margin: 0px auto 70px auto;
  padding: 1em 2.5em;
  border-radius: 20px; 
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-icon {
  background: url("../images/phone-icon.svg") center 50% no-repeat;
  width: 3em;
  height: 3em;
  margin-right: 10px;
}

.phone-num {
  margin-top: 0.5rem;
  margin-bottom: 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.phone-num span:first-child {
  font-size: 3.313rem;
  font-weight: 500;
  text-align: center;
  color: var(--green-medium-green);
  margin: 0;
  white-space: nowrap;
  line-height: 3.6rem;
}

.phone-num span:last-child  {
  font-size: 1rem;
  font-weight: 400;
  color: var(--green-main-text);
}

.contact-form-container {
  background-color: var(--green-light-gray);
}

/* ==========================================================================
   Contact Form 7
   ========================================================================== */
.wpcf7 {
  background-color: var(--green-light-gray); 
  padding: 0.5em 2em;
  border-radius: 10px;
  max-width: 800px;
  margin: auto;
}

input[type=button],
input[type=submit] {
  -webkit-box-sizing: border-box;
  -webkit-appearance: button;
  -moz-appearance: button;
  appearance: button;
}

input[type=button]::-webkit-search-decoration,
input[type=submit]::-webkit-search-decoration {
  display: none;
}

input[type=button]::focus,
input[type=submit]::focus {
  outline-offset: -2px;
}

input:where(:not([type=checkbox],[type=radio])),
select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

input[type=date],
input[type=email],
input[type=number],
input[type=password],
input[type=tel],
input[type=text],
input[type=url],
select,
textarea {
  font-size: 1rem;
  line-height: 1.9; /* Override normalize.css line-height: 1.15 to match body */
  border: 1px solid var(--green-border-gray);
  border-radius: 3px;
  padding: 0.8em 1em;
  margin: 0 0 0.5rem;
  width: calc(100% - 2.1em);
  color: var(--green-main-text);
  background-color: #fff;
}

input[type=file] {
  margin: 0.5rem 0;
}

input[type=submit] {
  font-size: 1rem;
  border: 1px solid var(--green-main-text-hover);
  background-color: var(--green-medium-green);
  color: #fff;
  padding: 0.5em 2em;
  border-radius: 3px;
}

input[type=submit]:not(:disabled):hover {
  color: #fff;
  cursor: pointer;
  background-color: var(--green-dark-green);
}


@media (min-width: 768px) {
  .company-profile {
    grid-template-columns: 1.2fr 0.8fr;
    margin-bottom: 60px;
  }
  .wpcf7 {
  padding: 1em 2.5em;
  }
}
/* ==========================================================================
   Footer
   ========================================================================== */

.footer-wrapper {
  background-image: url("../images/footer-decoration-mobile.svg");
  background-color: var(--green-dark-green);
  background-repeat: no-repeat;
  background-position: bottom center;
  color: white;
  margin-top: 50px;
}

.footer-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 20px;
  padding-bottom: 20px;
}


.footer-company-info {
  line-height: 1.4;
  margin-left: 40px;
}

.footer-company-name {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.footer-company-address {
  font-size: 13px;
  color: white;
  /*line-height: 1.4;*/
}

.footer-company-address a {
  color: white;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.5);
}

.footer-company-address a:hover {
  color: white;
  text-decoration-color: rgba(255, 255, 255, 0.8);
}

.social-links-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.social-links-container span {
  margin: 5px 0px;
  font-size: 14px;
  font-weight: 500;
}

.social-icons {
  display: flex;
}

.social-icons a {
  margin: 0px 5px;
  transition: 0.3s all;
}

.social-icons a:hover {
 transform: translateY(3px); 
}

.social-icons img {
  width: 36px;
}

.copy-right {
  position: absolute;
  bottom: 15px;
  left: 0;
  right: 0;
  margin: auto;
  width: fit-content;
  display: none;
  font-size: 12px;
}

.copy-right-mobile {
  font-size: 12px;
  line-height: 1;
}

@media (min-width: 576px) {
  .footer-container {
    display: block;
    height: 116px;
  }
  .footer-company-info {
    position: absolute;
    left: 15px;
    bottom: 25px;
    margin-left: 0;
  }
  .social-links-container {
    position: absolute;
    right: 15px;
    bottom: 25px;
  }
  .copy-right {
    font-size: 12px;
  }
}

@media (min-width: 768px) {
  .footer-wrapper {
  background-image: url("../images/footer-decoration.svg");
  }
  .copy-right {
    display: inline-block;
  }
  .copy-right-mobile {
    display: none;
  }
}

@media (min-width: 992px) {
  .footer-container {
  height: 120px;
  }
  .footer-company-name {
    font-size: 15px;
    line-height: 1.8;
  }
  .footer-company-address {
  font-size: 14px;
  }
}

@media (min-width: 1200px) {
  .footer-container {
  height: 122px;
  }
}
/* ==========================================================================
   Breadcrumb
   ========================================================================== */
.breadcrumb-wrapper {
  height: min-content;
  margin-bottom: 30px;
  border-top: 1px solid var(--green-border-gray); 
  border-bottom: 1px solid var(--green-border-gray); 
  font-size: 0.8125rem;
}

.breadcrumb-wrapper a {
  text-decoration: none;
}

.home-icon:before {
  font-family: 'FontAwesome';
  content: '\f015';
  margin: -3px 3px 0 0;
}

/* ==========================================================================
   Block Layout Fixes
   ========================================================================== */

.wp-block-image.aligncenter,
.wp-block-image .aligncenter {
  display: table;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.wp-block[data-align=center] > .wp-block-image {
  display: table;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.wp-block-image.alignleft,
.wp-block-image .alignleft {
  display: table;
  float: left;
  margin: 0.5em 1em 0.5em 0;
}

.wp-block[data-align=left] > .wp-block-image {
  display: table;
  float: left;
  margin: 0.5em 1em 0.5em 0;
}

.wp-block-image.alignright,
.wp-block-image .alignright {
  display: table;
  float: right;
  margin: 0.5em 0 0.5em 1em;
}

.wp-block[data-align=right] > .wp-block-image {
  display: table;
  float: right;
  margin: 0.5em 0 0.5em 1em;
}

/* Grid Blocks */
.wp-block-group.is-layout-grid .wp-block-columns {
  width: 100%;
  box-sizing: border-box;
}

.wp-block-group.is-layout-grid .wp-block-column {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Flex Layout - Horizontal Only */
.wp-block-group.is-layout-flex.is-content-justification-left:not([style*="flex-direction: column"]):not(.is-vertical) {
  justify-content: flex-start;
}
.wp-block-group.is-layout-flex.is-content-justification-center:not([style*="flex-direction: column"]):not(.is-vertical) {
  justify-content: center;
}
.wp-block-group.is-layout-flex.is-content-justification-right:not([style*="flex-direction: column"]):not(.is-vertical) {
  justify-content: flex-end;
}

/* Flex Layout - Vertical */
.wp-block-group.is-layout-flex.is-vertical {
  min-height: 100%;
}

.wp-block-group.is-layout-flex.is-vertical.is-content-justification-space-between {
  justify-content: space-between;
}

/* Grid Layout */
.wp-block-group.is-layout-grid {
  width: 100%;
  box-sizing: border-box;
}

.wp-block-group.is-layout-grid > *:not(.wp-block-green-link-button):not(.wp-block-green-link-button-old) {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-break: break-word;
}

.wp-block-group.is-layout-grid > .wp-block-green-link-button,
.wp-block-group.is-layout-grid > .wp-block-green-link-button-old {
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word !important;
  word-break: keep-all !important;
  white-space: normal !important;
}

.wp-block-group.is-layout-grid[style*="grid-template-columns"] > * {
  overflow-x: hidden;
  overflow-y: auto;
}

.wp-block-group.is-layout-grid > .wp-block-group.is-layout-flex {
  min-width: 0;
  width: 100%;
}

.wp-block-group.is-layout-grid > .wp-block-group.is-layout-flex.is-vertical,
.wp-block-group.is-layout-grid > .wp-block-group.is-layout-flex[style*="flex-direction: column"] {
  height: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.wp-block-group.is-layout-flex[style*="flex-direction: column"].is-content-justification-space-between,
.wp-block-group.is-layout-flex.is-vertical.is-content-justification-space-between {
  justify-content: space-between !important;
  min-height: 100%;
}

.wp-block-group.is-layout-constrained.is-content-justification-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ==========================================================================
   Custom Box
   ========================================================================== */
.custom-box {
   margin-top: 3em;
}

.custom-box-title {
  background-color: var(--green-medium-green);
  color: var(--green-circles-white);
  padding: 0.5em 1em;
  margin-bottom: 0;
  width: fit-content;
}
  
.custom-box-content {
  border: 1px solid var(--green-medium-green);
  padding: 1em;
}


/* ==========================================================================
   Heading Design
   ========================================================================== */

 .is-style-headline {
  position: relative;
  margin-left: auto;
  margin-right: auto;
  width: fit-content;
  text-align: center;
  font-size: 1.375rem;
  line-height: 2;
}

.is-style-headline:before,
.is-style-headline:after {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #000;
  content: "";
  display: inline-block;
  height: 1px;
  vertical-align: middle;
  width: 32px;
}
.is-style-headline:before {
  left: -2em;
}
.is-style-headline:after {
  right: -2em;
}

.is-style-headline span {
  display: inline-block;
}

 .is-style-headline-green {
  background: linear-gradient(.25turn, var(--green-medium-green), 60%, white);
  color: white;
  padding: 0.3em;
  margin: 1.5em 0 1em 0;
}

.is-style-headline-green-fill {
  font-size: 1.375rem;
  background-color: var(--green-medium-green);
  padding: 0 0.8rem;
  border-left: 0.5rem solid var(--green-dark-green);
  color: #fff;
}

.is-style-headline-green::before {
  content: "";
  width: 0.8em; 
  height: 0.8em;
  background-color: white;
  content: "";
  display: inline-block;
  margin: 0 0.5em 0 0.3em;
}

.is-style-headline-border {
  padding: 0.4em 0;
  position: relative;
}

.is-style-headline-border:before {
  content: "";
  border-top: 3px solid var(--green-light-green);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

.is-style-headline-border:after {
  content: "";
  border-bottom: 1px solid var(--green-border-gray);
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
}

.is-style-h-mincho {
  display: flex;
  flex-direction: column;
  font-family: "Shippori Mincho", serif;
  font-size: 1.6em;
  font-weight: 500;
  color: var(--green-main-text);
  margin: 3rem auto;
  width: fit-content;
}

/* Tablet: Adjust font size for better readability */
@media (min-width: 576px) {
  .is-style-h-mincho {
    font-size: 1.8em;
  }
}

/* Desktop: Full size */
@media (min-width: 768px) {
  .is-style-h-mincho {
    font-size: 2em;
  }
}

.h1-takarajima {
  display: flex;
  flex-direction: column;
  font-family: "Shippori Mincho", serif;
  font-size: 4.5vw;
  font-weight: 600;
  font-style: normal;
  text-align: center;
  color: var(--green-main-text);
  width: fit-content;
  margin-top: 2.8rem!important;
  margin-bottom: 2.8rem!important;
}

.takarajima-logo {
  width: 11rem!important;
}

.takarajima-contact {
  width: fit-content;
  margin: 3rem auto;
  padding: 2em;
  border: 1px solid #c9caca;
  border-radius: 1em;
}

@media (min-width: 576px) {
  .takarajima-logo {
    width: 15rem!important;
  }
  .h1-takarajima {
    font-size: 1.8em;
    text-align: left;
  }
}

@media (min-width: 768px) {
  .h1-takarajima  {
    font-size: 2em;
  }
  .h1-takarajima span:nth-child(2){
    margin-left: 4rem;
  }
  .h1-takarajima span:nth-child(3){
    margin-left: 8rem;
  }
  .h1-takarajima span:nth-child(4){
    margin-left: 12rem;
  }
}

.h1-serif {
  display: flex;
  flex-direction: column;
  font-family: "Shippori Mincho", serif;
  font-size: 2em;
  font-weight: 500;
  color: var(--green-main-text);
  margin: 3rem auto;
  width: fit-content;
}

.is-style-headline-square {
  margin-left: 0.5rem !important;
}

.is-style-headline-square::before {
  width: 0.65em;
  height: 0.65em;
  background-color: var(--green-main-text);
  content: "";
  display: inline-block;
  margin-right: 0.3rem;
}

.wp-headline-line {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  margin: 40px 0;
}

.wp-headline-line::before,
.wp-headline-line::after {
  content: "";
  flex: 1;
  height: 2px;
  background-color: #2f6b2f;
}

.wp-headline-box {
  background-color: #e6f5d8;
  padding: 20px 36px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
  color: #000;
}
.wp-headline-box-green {
  background-color: #e6f5d8;
  padding: 5px 36px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
  color: #000;
  white-space: nowrap;
}

.wp-headline-line-green {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  margin: 40px 0;
}

.wp-headline-line-green::before,
.wp-headline-line-green::after {
  content: "";
  flex: 1;
  height: 2px;
  background-color: #2f6b2f;
}

.wp-headline-box-blue {
  background-color: #CBE4F4;
  padding: 5px 36px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
  color: #000;
  white-space: nowrap;
}

.wp-headline-line-blue {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  margin: 40px 0;
}

.wp-headline-line-blue::before,
.wp-headline-line-blue::after {
  content: "";
  flex: 1;
  height: 2px;
  background-color: #365E80;
}

@media (max-width: 768px) {
  .wp-headline-box,
  .wp-headline-box-blue,
  .wp-headline-box-green {
    font-size: 18px;
    padding: 16px 20px;
    white-space: normal;
  }
}

/* ==========================================================================
   Shinobi Reviews
   ========================================================================== */
.css-ivd5yh {
  position: static;
  margin: 0 0 1em 0;
  height: auto;
}

.main-contents[data-has-shinobi-reviews] {
  min-height: 0 !important;
}

.ShinobiReviews {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  opacity: 1;
  transition: opacity 0.3s ease-in;
}

.css-1b9e8o5 {
  font-size: 1rem;
}

/* ==========================================================================
   WordPress Blocks
   ========================================================================== */
.wp-block-table {
  border-color: var(--green-border-gray);
}

.wp-block-table :is(table, thead, tbody, tfoot, th, td) {
  border-color: inherit;
}

.wp-block-table tr:first-child td {
  white-space: nowrap;
}

.youtube-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.youtube-embed iframe {
  width: 100%;
  height: 100%;
}

.flex-box-column {
  display: flex;
  flex-direction: column;
  align-self: unset !important;
}

.flex-box-column.is-content-justification-space-between {
  justify-content: space-between;
  min-height: 100%;
}

.wp-block-group.is-layout-grid .flex-box-column {
  height: 100%;
  min-height: 100%;
}

.flex-grow1 {
  flex-grow: 1;
}


/* ===== Timeline (scoped) ===== */
.tw-timeline{
  --line-x: 46px;         /* vertical line position from left */
  --dot: 22px;            /* circle size */
  --gap: 18px;
  --left-col: 140px;      /* date column width */
  --line-w: 4px;

  --c-green:#2f6b2f;
  --c-orange:#d48135;
  --c-blue:#2e6aa6;
  --c-line:#bfc3c9;
  --c-text:#111;
  --c-sub:#333;

  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: 12px 0 8px;
  font-family: system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  color: var(--c-text);
}

/* vertical line */
.tw-timeline__line{
  position:absolute;
  left: calc(var(--line-x) - (var(--line-w) / 2));
  top: 0;
  bottom: 0;
  width: var(--line-w);
  background: var(--c-line);
  border-radius: 999px;
}

/* item layout */
.tw-timeline__item{
  display:grid;
  grid-template-columns: var(--left-col) 1fr;
  column-gap: 34px;
  align-items:start;
  padding: 18px 0;
}

.tw-timeline__left{
  position: relative;
  padding-left: 0;
  min-height: calc(var(--dot) + 2px);
}

/* dot */
.tw-timeline__dot{
  position:absolute;
  left: calc(var(--line-x) - (var(--dot) / 2));
  top: 4px;
  width: var(--dot);
  height: var(--dot);
  border-radius: 999px;
  background: var(--c-green);
}

/* date text */
.tw-timeline__date{
  padding-left: calc(var(--line-x) + var(--gap));
  margin-top: 5px;
  font-weight: 600;
  line-height: 1.2;
  color: #1a1a1a;
  font-size: 16px;
  white-space: nowrap;
}

.tw-timeline__now{
  font-weight: 700;
  font-size: 14px;
  color: #111;
  opacity: .9;
}

.tw-timeline__right{
  position: relative;
  padding-top: 2px;
}

/* the small blue vertical accent line on the right side */
.tw-timeline__right::before{
  content:"";
  position:absolute;
  left: -18px;
  top: 6px;
  width: 2px;
  height: calc(100% - 6px);
  background: #2a61a5;
  opacity: .75;
  border-radius: 999px;
}

.tw-timeline__title{
  margin: 2px 0 6px 0;
  font-size: 1.1rem;
  line-height: 1.35;
  font-weight: 800;
}

.tw-timeline__desc{
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--c-sub);
}

.tw-timeline__list {
  margin: 0;
  padding-left: 20px;
  color: var(--c-sub);
  font-size: 16px;
  line-height: 1.7;
}

.tw-timeline__item--green .tw-timeline__dot {
  background: var(--c-green);
}

.tw-timeline__item--orange .tw-timeline__dot {
  background: var(--c-orange);
}

.tw-timeline__item--blue .tw-timeline__dot {
  background: var(--c-blue);
}

@media (max-width: 780px) {
  .tw-timeline {
    --left-col: 110px;
    --line-x: 34px;
    --dot: 18px;
  }
  .tw-timeline__title {
    font-size: 18px;
  }
  .tw-timeline__date {
    font-size: 14px;
  }
  .tw-timeline__list,
  .tw-timeline__desc {
    font-size: 15px;
  }
}

@media (max-width: 520px) {
  .tw-timeline {
    --left-col: 1fr;
    --line-x: 20px;
  }
  .tw-timeline__item {
    grid-template-columns: 1fr;
    row-gap: 10px;
    padding: 14px 0;
  }
  .tw-timeline__date {
    padding-left: calc(var(--line-x) + 14px);
    white-space: normal;
  }
  .tw-timeline__right {
    padding-left: calc(var(--line-x) + 14px);
  }
  .tw-timeline__right::before {
    left: calc(var(--line-x) - 6px);
    top: -8px;
    height: calc(100% + 8px);
  }
}

.carbon-3-columns {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  gap: 20px;
  align-items: center;
  text-align: center;
  margin: 40px 0;
}

.carbon-3-columns h4 {
  margin-top: -5px;
  line-height: 1.7;
}

@media (max-width: 780px) {
  .carbon-3-columns {
    flex-direction: column;
  }
}

/* ==========================================================================
   Search Results
   ========================================================================== */
.search-results {
  margin-top: 2rem;
  margin-bottom: 3rem;
}

.search-results-count {
  font-size: 0.9375rem;
  color: var(--green-main-text);
  margin-bottom: 2rem;
  padding: 0 1rem;
}

.search-posts {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.search-result-item,
.archive-post-item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--green-border-gray);
  border-radius: 4px;
  background-color: #fff;
  transition: box-shadow 0.3s ease;
}

.search-result-item:hover,
.archive-post-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.post-thumbnail {
  width: 100%;
  overflow: hidden;
  border-radius: 4px;
}

.post-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.search-result-item:hover .post-thumbnail img,
.archive-post-item:hover .post-thumbnail img {
  transform: scale(1.02);
}

.post-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.post-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.4;
}

.post-title a {
  color: var(--green-main-text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-title a:hover {
  color: var(--green-medium-green);
  text-decoration: underline;
  text-decoration-style: solid;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: var(--green-main-text-hover);
}

.post-meta time {
  color: var(--green-main-text-hover);
}

.post-meta .categories,
.post-meta .post-type {
  color: var(--green-medium-green);
}

.post-meta .categories a,
.post-meta .post-type {
  color: var(--green-medium-green);
  text-decoration: none;
}

.post-meta .categories a:hover {
  text-decoration: underline;
}

.post-excerpt {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--green-main-text);
  margin: 0;
}

.post-excerpt p {
  margin: 0;
  padding: 0;
}

.read-more {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.5rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--green-medium-green);
  text-decoration: none;
  border: 1px solid var(--green-medium-green);
  border-radius: 4px;
  transition: all 0.3s ease;
  width: fit-content;
}

.read-more:hover {
  background-color: var(--green-medium-green);
  color: #fff;
  text-decoration: none;
}

/* No Search Results */
.no-search-results {
  text-align: center;
  padding: 3rem 1rem;
}

.no-search-results h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--green-main-text);
}

.no-search-results > p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  color: var(--green-main-text);
  padding: 0;
}

.search-form-container {
  margin: 2rem 0;
  padding: 0 1rem;
}

.search-form-container form {
  display: flex;
  gap: 0.5rem;
  max-width: 500px;
  margin: 0 auto;
}

.search-form-container input[type="search"] {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  border: 1px solid var(--green-border-gray);
  border-radius: 4px;
  font-family: var(--green-zenkaku);
}

.search-form-container input[type="submit"] {
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #fff;
  background-color: var(--green-medium-green);
  border: 1px solid var(--green-medium-green);
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-family: var(--green-zenkaku);
}

.search-form-container input[type="submit"]:hover {
  background-color: var(--green-dark-green);
  border-color: var(--green-dark-green);
}

.search-suggestions {
  margin-top: 2rem;
  padding: 0 1rem;
}

.search-suggestions h3 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: var(--green-main-text);
}

.search-suggestions ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.search-suggestions li {
  margin: 0;
  padding: 0;
}

.search-suggestions a {
  display: inline-block;
  padding: 0.5rem 1rem;
  color: var(--green-medium-green);
  text-decoration: none;
  border: 1px solid var(--green-border-gray);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.search-suggestions a:hover {
  background-color: var(--green-light-gray);
  border-color: var(--green-medium-green);
  text-decoration: none;
}

/* ==========================================================================
   Archive Posts
   ========================================================================== */
.archive-posts {
  margin-top: 2rem;
  margin-bottom: 3rem;
}

/* Pagination */
.wp-pagenavi,
.navigation {
  margin: 3rem 0;
  text-align: center;
}

.wp-pagenavi .pages,
.navigation .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.wp-pagenavi a,
.wp-pagenavi span,
.navigation .nav-links a,
.navigation .nav-links span {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  text-decoration: none;
  border: 1px solid var(--green-border-gray);
  border-radius: 4px;
  color: var(--green-main-text);
  transition: all 0.3s ease;
}

.wp-pagenavi a:hover,
.navigation .nav-links a:hover {
  background-color: var(--green-medium-green);
  color: #fff;
  border-color: var(--green-medium-green);
}

.wp-pagenavi .current,
.navigation .nav-links .current {
  background-color: var(--green-medium-green);
  color: #fff;
  border-color: var(--green-medium-green);
}

/* Responsive: Tablet and Desktop */
@media (min-width: 768px) {
  .search-result-item,
  .archive-post-item {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .post-thumbnail {
    width: 200px;
    min-width: 200px;
    flex-shrink: 0;
  }

  .post-content {
    flex: 1;
  }

  .post-title {
    font-size: 1.5rem;
  }

  .search-results-count {
    font-size: 1rem;
  }

  .search-form-container form {
    max-width: 600px;
  }
}

@media (min-width: 992px) {
  .post-thumbnail {
    width: 250px;
    min-width: 250px;
  }
}

/* ==========================================================================
   Blog Index
   ========================================================================== */
.blog-items {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
  margin-bottom: 3rem;
}

/* Blog post items use the same styles as search-result-item and archive-post-item */
.blog-post-item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--green-border-gray);
  border-radius: 4px;
  background-color: #fff;
  transition: box-shadow 0.3s ease;
}

.blog-post-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.blog-post-item .post-meta .author {
  color: var(--green-main-text-hover);
}

.blog-post-item .post-meta .author a {
  color: var(--green-main-text-hover);
  text-decoration: none;
}

.blog-post-item .post-meta .author a:hover {
  color: var(--green-medium-green);
  text-decoration: underline;
}

.blog-post-item .post-tags {
  font-size: 0.8125rem;
  color: var(--green-main-text-hover);
  margin-top: 0.5rem;
}

.blog-post-item .post-tags a {
  color: var(--green-medium-green);
  text-decoration: none;
  margin-right: 0.5rem;
}

.blog-post-item .post-tags a:hover {
  text-decoration: underline;
}

.no-posts {
  text-align: center;
  padding: 3rem 1rem;
}

.no-posts p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--green-main-text);
  padding: 0;
}

/* Responsive: Tablet and Desktop */
@media (min-width: 768px) {
  .blog-post-item {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
  }
}

/* ==========================================================================
   Single Post
   ========================================================================== */
.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: var(--green-main-text-hover);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--green-border-gray);
}

.entry-meta time {
  color: var(--green-main-text-hover);
}

.entry-meta .categories {
  color: var(--green-medium-green);
}

.entry-meta .categories a {
  color: var(--green-medium-green);
  text-decoration: none;
}

.entry-meta .categories a:hover {
  text-decoration: underline;
}

.entry-content {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--green-main-text);
  margin-bottom: 2rem;
}

.entry-content p {
  margin-bottom: 1.5rem;
  padding: 0;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding: 0;
}

.entry-content img {
  max-width: 100%;
  height: auto;
  margin: 1.5rem 0;
}

.entry-content ul,
.entry-content ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.entry-content li {
  margin-bottom: 0.5rem;
  padding: 0;
}

.entry-content blockquote {
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  border-left: 4px solid var(--green-medium-green);
  background-color: var(--green-light-gray);
  font-style: italic;
}

.entry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--green-main-text-hover);
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--green-border-gray);
}

.entry-tags span {
  font-weight: 500;
  color: var(--green-main-text);
  margin-right: 0.5rem;
}

.entry-tags a {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  color: var(--green-medium-green);
  text-decoration: none;
  border: 1px solid var(--green-border-gray);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.entry-tags a:hover {
  background-color: var(--green-light-gray);
  border-color: var(--green-medium-green);
  text-decoration: none;
}

/* ==========================================================================
   404 Error Page
   ========================================================================== */
.error-404-content {
  text-align: center;
  padding: 3rem 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.error-404-content h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--green-main-text);
}

.error-404-content > p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  color: var(--green-main-text);
  padding: 0;
}

.error-404-actions {
  margin: 2rem 0;
}

.error-404-actions .wp-block-green-link-button {
  display: inline-block;
  margin: 0 auto;
}

.error-404-search {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--green-border-gray);
}

.error-404-search h3 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: var(--green-main-text);
}

.error-404-search form {
  display: flex;
  gap: 0.5rem;
  max-width: 500px;
  margin: 0 auto;
}

.error-404-search input[type="search"] {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  border: 1px solid var(--green-border-gray);
  border-radius: 4px;
  font-family: var(--green-zenkaku);
}

.error-404-search input[type="submit"] {
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #fff;
  background-color: var(--green-medium-green);
  border: 1px solid var(--green-medium-green);
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-family: var(--green-zenkaku);
}

.error-404-search input[type="submit"]:hover {
  background-color: var(--green-dark-green);
  border-color: var(--green-dark-green);
}