
* {
  box-sizing: border-box;
}


body {
  font-family: "Noto Sans JP", 'Helvetica', 'Arial', sans-serif;
  background-color: #f9f9f9;
  color: #333;
  font-weight: 400;
  line-height: 1.5;
  margin: 0;
  padding: 10px;
  
}

header {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}



/* span→aタグに変更予定 */
.logo span {
  font-family: "Montserrat","Noto Sans JP", sans-serif;
  font-weight: 800;
  font-size: 30px;
  color: #2c3e50;
  letter-spacing: 0.5px;
}


/* .logo a:hover {
  text-decoration: none;
} */


.container {
  margin-right: auto;
  margin-left: auto;
  width: 100%;
  max-width: 800px;
}

nav {
  background-color: #eef1f5;
  padding: 15px;
  border-radius: 8px;
  
}

nav h2 {
  margin-top: 0;
}

nav ul {
  padding-left: 0;
}


.back-top-page {
  display: inline-block;
  margin-top: 30px;
}






h1 {
  color: #2c3e50;
  border-bottom: 2px solid #ccc;
  padding-bottom: 10px;
}


h2 {
  display: inline-block;
  color: #34495e;
  margin-top: 30px;
  border-bottom: 2px solid #34495e;
  padding-bottom: 10px;
}

h3 {
  margin-top: 20px;
  color:  #34495e;
}

h4 {
  color:#34495e;
  margin-left: 10px;
}

p {
  font-size: 17px;
  margin-bottom: 30px;
  letter-spacing: 1px;
  line-height: 1.6;
}

.siteLink {
  color: rgb(8, 172, 236);

}


section {
  padding: 20px;
  margin-top: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.05);
}

article h3 {
  padding-left: 20px;
  
  border-left: 2px solid #2c3e50;
}



ul {
  list-style-type: none;
  padding-left: 10px;
}

ul li {
  margin-top: 12px;
}

ol {
  margin-bottom: 10px;
}

ol li {
  margin-bottom: 20px;
}





table {
  /* width: 30%; */
  width: 100%;
  max-width: 800px;
  border-collapse: collapse;
  margin-top: 30px;
  margin-bottom: 40px;
}

th, td {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: left;
}

th {
  background-color: #ecf0f1;
}

section table {
  margin-bottom: 30px;
}


a {
  color: #2c3e50;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}


.instruction {
  border-bottom: 2px solid #2c3e50;
}

.instruction:hover {
  text-decoration: none;
}


select {
  background-color: transparent;
  border: none;
  padding: 0;
  margin: 0 5px;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: none; /* 通常時はアンダーラインなし */
}

select:hover {
  border-bottom: 1px solid #34495e; /* ホバー時にアンダーライン追加 */
}

.copy-cell {
  display: flex;
  align-items: center;
}

.copy-button {
  border: 1px solid #c7c7ce;
  padding: 6px 10px;
  font-size: 10px;
  border-radius: 6px;
  cursor: pointer;
  margin-left: auto;
}

textarea {
  display: block;
  margin: 10px 0;
  width: 100%;
  font-size: 20px;
  padding: 10px;
}

#copy-textarea-button {
  font-size: 15px;
  padding: 5px;
}

.back-table {
  padding: 0;
  text-align: right;
}

.back-table a {
  text-decoration: none;  
  color: #333;
  margin-right: 15px;
}

/* プライバシーポリシー */
.contact-button {
  color: #34495e;
}

/* 関連記事一覧 */

.article-wrapper {
  max-width: 500px;
  margin: 30px 0;
  padding: 0;
  background-color: #fff;
  opacity: 1;
  transition: background-color 0.3s, opacity 0.3s;
}

.article-wrapper a {
  display: block;
}

.article-wrapper a:hover {
  background-color: #f9f9f9;
  opacity: 0.8;
}

.article {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.article img {
  width: 150px;
  height: auto;
  margin-right: 8px;
  border-radius: 3px;
  display: block;
}

.article-content {
  flex: 1;
}

.article-description p {
  margin-left: 10px;
  font-size: 16px;
  line-height: 1;
  margin-bottom: 16px;
}

.back-top {
  padding: 0;
  margin-top: 30px;
  text-align: center;
}

.back-top a {
  text-decoration: none;  
  color: #333;
  margin-right: 15px;
}

footer {
  background-color: #555454;
  border-radius: 4px;
  height:130px;
  margin-top: 40px;
}

footer a {
  display: inline-block;
  font-size: 13px;
  margin: 20px;
  text-decoration: none;
  color: #fff;
}


footer p {
  font-size: 13px;
  color: #fff;
  padding: 10px;
}

/* ツールチップ */
.copy-button {
  position: relative;
  cursor: pointer;
}

/* ツールチップテキストのスタイル */
.tooltip-text {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 125%; /* ボタンの下に表示 */
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  font-size: 12px;
  z-index: 1;
  transition: opacity 0.3s;
}


/* ホバー時にツールチップを表示 */
.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 0.8;
}


.contact-form input, textarea{
  border-radius: 3px;
}


/* ai-tips.htmlの注意書き */
.note {
  background-color: #fff3cd;
  color: #7e5f03;
  padding: 5px;
  border-left: 4px solid #ffeeba;
  margin: 20px 0 40px 0;
}




/* ====================
   レスポンシブ対応
==================== */
@media screen and (max-width: 768px) {
body {
  padding: 10px;
}
header,
nav,
section {
  padding: 15px;
  width: 95%;
}
h1 {
  font-size: 20px;
}
h2 {
  font-size: 18px;
}
h3 {
  font-size: 16px;
}


p, li {
  font-size: 16px;
}

table {
  font-size: 14px;
  width: 100%;
  display: block;
  overflow-x: auto;
}

th, td {
  padding: 8px;
  white-space: nowrap;
}
.copy-cell {
  display: flex;
  align-items: center; /* ボタンとテキストを縦中央揃え */
  gap: 8px;           /* 要素間のスペース */
}

nav ul {
  padding-left: 10px;
}

 

textarea {
  font-size: 16px;
  padding: 0;
}

#copy-textarea-button {
  font-size: 16px;
  padding: 10px;
}

.contact-button {
  width: 100%;
  padding: 10px;
  text-align: center;
}

.contact-button a {
  display: block;
  width: 100%;
}
.article-description p {
  font-size: 14px;
}

.back-link {
  text-align: center;
  margin-top: 20px;
}

footer {
  font-size: 14px;
  margin-top: 40px;
  height: auto;
}

footer a {
  text-align: left;
  font-size: 11px;
}




.tooltip-text {
  display: none;
}

}

